diff --git a/.gitignore b/.gitignore index cdc6f76..6ec6138 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ .vscode/ *.log .core/ +node_modules/ +bin/ +dist/ diff --git a/bin/core-agent b/bin/core-agent deleted file mode 100755 index 10d919b..0000000 Binary files a/bin/core-agent and /dev/null differ diff --git a/ui/node_modules/.bin/tsc b/ui/node_modules/.bin/tsc deleted file mode 120000 index 0863208..0000000 --- a/ui/node_modules/.bin/tsc +++ /dev/null @@ -1 +0,0 @@ -../typescript/bin/tsc \ No newline at end of file diff --git a/ui/node_modules/.bin/tsserver b/ui/node_modules/.bin/tsserver deleted file mode 120000 index f8f8f1a..0000000 --- a/ui/node_modules/.bin/tsserver +++ /dev/null @@ -1 +0,0 @@ -../typescript/bin/tsserver \ No newline at end of file diff --git a/ui/node_modules/.package-lock.json b/ui/node_modules/.package-lock.json deleted file mode 100644 index 6f47b41..0000000 --- a/ui/node_modules/.package-lock.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "name": "core-agent-panel", - "version": "0.1.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "node_modules/@lit-labs/ssr-dom-shim": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.5.1.tgz", - "integrity": "sha512-Aou5UdlSpr5whQe8AA/bZG0jMj96CoJIWbGfZ91qieWu5AWUMKw8VR/pAkQkJYvBNhmCcWnZlyyk5oze8JIqYA==", - "license": "BSD-3-Clause" - }, - "node_modules/@lit/reactive-element": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.1.2.tgz", - "integrity": "sha512-pbCDiVMnne1lYUIaYNN5wrwQXDtHaYtg7YEFPeW+hws6U47WeFvISGUWekPGKWOP1ygrs0ef0o1VJMk1exos5A==", - "license": "BSD-3-Clause", - "dependencies": { - "@lit-labs/ssr-dom-shim": "^1.5.0" - } - }, - "node_modules/@types/trusted-types": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", - "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", - "license": "MIT" - }, - "node_modules/lit": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/lit/-/lit-3.3.2.tgz", - "integrity": "sha512-NF9zbsP79l4ao2SNrH3NkfmFgN/hBYSQo90saIVI1o5GpjAdCPVstVzO1MrLOakHoEhYkrtRjPK6Ob521aoYWQ==", - "license": "BSD-3-Clause", - "dependencies": { - "@lit/reactive-element": "^2.1.0", - "lit-element": "^4.2.0", - "lit-html": "^3.3.0" - } - }, - "node_modules/lit-element": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.2.2.tgz", - "integrity": "sha512-aFKhNToWxoyhkNDmWZwEva2SlQia+jfG0fjIWV//YeTaWrVnOxD89dPKfigCUspXFmjzOEUQpOkejH5Ly6sG0w==", - "license": "BSD-3-Clause", - "dependencies": { - "@lit-labs/ssr-dom-shim": "^1.5.0", - "@lit/reactive-element": "^2.1.0", - "lit-html": "^3.3.0" - } - }, - "node_modules/lit-html": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.3.2.tgz", - "integrity": "sha512-Qy9hU88zcmaxBXcc10ZpdK7cOLXvXpRoBxERdtqV9QOrfpMZZ6pSYP91LhpPtap3sFMUiL7Tw2RImbe0Al2/kw==", - "license": "BSD-3-Clause", - "dependencies": { - "@types/trusted-types": "^2.0.2" - } - }, - "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - } - } -} diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/README.md b/ui/node_modules/@lit-labs/ssr-dom-shim/README.md deleted file mode 100644 index 233192f..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/README.md +++ /dev/null @@ -1,96 +0,0 @@ -# @lit-labs/ssr-dom-shim - -## Overview - -This package provides minimal implementations of `Element`, `HTMLElement`, -`EventTarget`, `Event`, `CustomEvent`, `CustomElementRegistry`, and -`customElements`, designed to be used when Server Side Rendering (SSR) web -components from Node, including Lit components. - -## Usage - -### Usage from Lit - -Lit itself automatically imports these shims when running in Node, so Lit users -should typically not need to directly depend on or import from this package. - -See the [lit.dev SSR docs](https://lit.dev/docs/ssr/overview/) for general -information about server-side rendering with Lit. - -### Usage in other contexts - -Other libraries or frameworks who wish to support SSR are welcome to also depend -on these shims. (This package is planned to eventually move to -`@webcomponents/ssr-dom-shim` to better reflect this use case). There are two -main patterns for providing access to these shims to users: - -1. Assigning shims to `globalThis`, ensuring that assignment occurs before - user-code runs. - -2. Importing shims directly from the module that provides your base class, using - the `node` [export - condition](https://nodejs.org/api/packages.html#conditional-exports) to - ensure this only happens when running in Node, and not in the browser. - -Lit takes approach #2 for all of the shims except for `customElements`, `Event` -and `CustomEvent`, so that users who have imported `lit` are able to call -`customElements.define` or `new Event(...)`/`new CustomEvent(...)` in their -components from Node. - -### Exports - -The main module exports the following values. Note that no globals are set by -this module. - -- [`EventTarget`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget) - - [`addEventListener`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener) - - [`dispatchEvent`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent) - - [`removeEventListener`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener) -- [`Element`](https://developer.mozilla.org/en-US/docs/Web/API/Element) - - (Inherits from EventTarget) - - [`attachShadow`](https://developer.mozilla.org/en-US/docs/Web/API/Element/attachShadow) - - [`shadowRoot`](https://developer.mozilla.org/en-US/docs/Web/API/Element/shadowRoot) - - [`attributes`](https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes) - - [`hasAttribute`](https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttribute) - - [`getAttribute`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttribute) - - [`setAttribute`](https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute) - - [`removeAttribute`](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttribute) -- [`HTMLElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement) - - (Inherits from Element) -- [`CustomElementRegistry`](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry) -- [`customElements`](https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements) -- [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event) -- [`CustomEvent`](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent) -- [`MediaList`](https://developer.mozilla.org/en-US/docs/Web/API/MediaList) -- [`StyleSheet`](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet) -- [`CSSRule`](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule) -- [`CSSRuleList`](https://developer.mozilla.org/en-US/docs/Web/API/CSSRuleList) -- [`CSSStyleSheet`](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet) - - (Inherits from StyleSheet) - - [`replace`](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/replace) - - [`replaceSync`](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/replaceSync) - -### CSS Node.js customization hook - -`@lit-labs/ssr-dom-shim/register-css-hook.js` implements/registers a -[Node.js customization hook](https://nodejs.org/api/module.html#customization-hooks) -(Node.js >= 18.6.0) to import CSS files/modules as instances of `CSSStyleSheet`. - -```ts -import styles from 'my-styles.css' with {type: 'css'}; -// styles is now an instance of CSSStyleSheet -``` - -This can either be used as a parameter with the Node.js CLI -(e.g. `node --import @lit-labs/ssr-dom-shim/register-css-hook.js my-script.js` or via -environment variable `NODE_OPTIONS="--import @lit-labs/ssr-dom-shim/register-css-hook.js"`) -or imported inline, and it will apply to any module dynamically imported afterwards -(e.g. `import @lit-labs/ssr-dom-shim/register-css-hook.js` and -subsequently `await import('./my-component.js')`). - -- [Node.js Customization Hooks](https://nodejs.org/api/module.html#customization-hooks) -- [Import Attributes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import/with) - -## Contributing - -Please see [CONTRIBUTING.md](../../../CONTRIBUTING.md). diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/index.d.ts b/ui/node_modules/@lit-labs/ssr-dom-shim/index.d.ts deleted file mode 100644 index 5d7e38c..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { EventTargetShimMeta } from './lib/events.js'; -export { ariaMixinAttributes, ElementInternals, HYDRATE_INTERNALS_ATTR_PREFIX, } from './lib/element-internals.js'; -export { CSSRule, CSSRuleList, CSSStyleSheet, MediaList, StyleSheet, } from './lib/css.js'; -export { CustomEvent, Event, EventTarget } from './lib/events.js'; -export type HTMLElementWithEventMeta = HTMLElement & EventTargetShimMeta; -declare const ElementShimWithRealType: typeof Element; -export { ElementShimWithRealType as Element }; -declare const HTMLElementShimWithRealType: typeof HTMLElement; -export { HTMLElementShimWithRealType as HTMLElement }; -type RealCustomElementRegistryClass = (typeof globalThis)['CustomElementRegistry']; -declare const CustomElementRegistryShimWithRealType: RealCustomElementRegistryClass; -export { CustomElementRegistryShimWithRealType as CustomElementRegistry }; -export declare const customElements: globalThis.CustomElementRegistry; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/index.d.ts.map b/ui/node_modules/@lit-labs/ssr-dom-shim/index.d.ts.map deleted file mode 100644 index b99ee1b..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAIL,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,6BAA6B,GAC9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,OAAO,EACP,WAAW,EACX,aAAa,EACb,SAAS,EACT,UAAU,GACX,MAAM,cAAc,CAAC;AACtB,OAAO,EAAC,WAAW,EAAE,KAAK,EAAE,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAShE,MAAM,MAAM,wBAAwB,GAAG,WAAW,GAAG,mBAAmB,CAAC;AA2GzE,QAAA,MAAM,uBAAuB,EAA4B,OAAO,OAAO,CAAC;AACxE,OAAO,EAAC,uBAAuB,IAAI,OAAO,EAAC,CAAC;AAG5C,QAAA,MAAM,2BAA2B,EACF,OAAO,WAAW,CAAC;AAClD,OAAO,EAAC,2BAA2B,IAAI,WAAW,EAAC,CAAC;AAmCpD,KAAK,8BAA8B,GACjC,CAAC,OAAO,UAAU,CAAC,CAAC,uBAAuB,CAAC,CAAC;AAwG/C,QAAA,MAAM,qCAAqC,EACN,8BAA8B,CAAC;AACpE,OAAO,EAAC,qCAAqC,IAAI,qBAAqB,EAAC,CAAC;AAExE,eAAO,MAAM,cAAc,kCAA8C,CAAC"} \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/index.js b/ui/node_modules/@lit-labs/ssr-dom-shim/index.js deleted file mode 100644 index 9010218..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/index.js +++ /dev/null @@ -1,216 +0,0 @@ -/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import { ElementInternalsShim } from './lib/element-internals.js'; -import { EventTargetShim, EventShim, CustomEventShim, } from './lib/events.js'; -export { ariaMixinAttributes, ElementInternals, HYDRATE_INTERNALS_ATTR_PREFIX, } from './lib/element-internals.js'; -export { CSSRule, CSSRuleList, CSSStyleSheet, MediaList, StyleSheet, } from './lib/css.js'; -export { CustomEvent, Event, EventTarget } from './lib/events.js'; -// In an empty Node.js vm, we need to patch the global context. -// TODO: Remove these globalThis assignments when we remove support -// for vm modules (--experimental-vm-modules). -globalThis.Event ??= EventShim; -globalThis.CustomEvent ??= CustomEventShim; -const attributes = new WeakMap(); -const attributesForElement = (element) => { - let attrs = attributes.get(element); - if (attrs === undefined) { - attributes.set(element, (attrs = new Map())); - } - return attrs; -}; -// The typings around the exports below are a little funky: -// -// 1. We want the `name` of the shim classes to match the real ones at runtime, -// hence e.g. `class Element`. -// 2. We can't shadow the global types with a simple class declaration, because -// then we can't reference the global types for casting, hence e.g. -// `const ElementShim = class Element`. -// 3. We want to export the classes typed as the real ones, hence e.g. -// `const ElementShimWithRealType = ElementShim as object as typeof Element;`. -// 4. We want the exported names to match the real ones, hence e.g. -// `export {ElementShimWithRealType as Element}`. -const ElementShim = class Element extends EventTargetShim { - constructor() { - super(...arguments); - this.__shadowRootMode = null; - this.__shadowRoot = null; - this.__internals = null; - } - get attributes() { - return Array.from(attributesForElement(this)).map(([name, value]) => ({ - name, - value, - })); - } - get shadowRoot() { - if (this.__shadowRootMode === 'closed') { - return null; - } - return this.__shadowRoot; - } - get localName() { - return this.constructor.__localName; - } - get tagName() { - return this.localName?.toUpperCase(); - } - setAttribute(name, value) { - // Emulate browser behavior that silently casts all values to string. E.g. - // `42` becomes `"42"` and `{}` becomes `"[object Object]""`. - attributesForElement(this).set(name, String(value)); - } - removeAttribute(name) { - attributesForElement(this).delete(name); - } - toggleAttribute(name, force) { - // Steps reference https://dom.spec.whatwg.org/#dom-element-toggleattribute - if (this.hasAttribute(name)) { - // Step 5 - if (force === undefined || !force) { - this.removeAttribute(name); - return false; - } - } - else { - // Step 4 - if (force === undefined || force) { - // Step 4.1 - this.setAttribute(name, ''); - return true; - } - else { - // Step 4.2 - return false; - } - } - // Step 6 - return true; - } - hasAttribute(name) { - return attributesForElement(this).has(name); - } - attachShadow(init) { - const shadowRoot = { host: this }; - this.__shadowRootMode = init.mode; - if (init && init.mode === 'open') { - this.__shadowRoot = shadowRoot; - } - return shadowRoot; - } - attachInternals() { - if (this.__internals !== null) { - throw new Error(`Failed to execute 'attachInternals' on 'HTMLElement': ` + - `ElementInternals for the specified element was already attached.`); - } - const internals = new ElementInternalsShim(this); - this.__internals = internals; - return internals; - } - getAttribute(name) { - const value = attributesForElement(this).get(name); - return value ?? null; - } -}; -const ElementShimWithRealType = ElementShim; -export { ElementShimWithRealType as Element }; -const HTMLElementShim = class HTMLElement extends ElementShim { -}; -const HTMLElementShimWithRealType = HTMLElementShim; -export { HTMLElementShimWithRealType as HTMLElement }; -// For convenience, we provide a global instance of a HTMLElement as an event -// target. This facilitates registering global event handlers -// (e.g. for @lit/context ContextProvider). -// We use this in in the SSR render function. -// Note, this is a bespoke element and not simply `document` or `window` since -// user code relies on these being undefined in the server environment. -globalThis.litServerRoot ??= Object.defineProperty(new HTMLElementShimWithRealType(), 'localName', { - // Patch localName (and tagName) to return a unique name. - get() { - return 'lit-server-root'; - }, -}); -function promiseWithResolvers() { - let resolve; - let reject; - const promise = new Promise((res, rej) => { - resolve = res; - reject = rej; - }); - return { promise, resolve: resolve, reject: reject }; -} -class CustomElementRegistry { - constructor() { - this.__definitions = new Map(); - this.__reverseDefinitions = new Map(); - this.__pendingWhenDefineds = new Map(); - } - define(name, ctor) { - if (this.__definitions.has(name)) { - if (process.env.NODE_ENV === 'development') { - console.warn(`'CustomElementRegistry' already has "${name}" defined. ` + - `This may have been caused by live reload or hot module ` + - `replacement in which case it can be safely ignored.\n` + - `Make sure to test your application with a production build as ` + - `repeat registrations will throw in production.`); - } - else { - throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': ` + - `the name "${name}" has already been used with this registry`); - } - } - if (this.__reverseDefinitions.has(ctor)) { - throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': ` + - `the constructor has already been used with this registry for the ` + - `tag name ${this.__reverseDefinitions.get(ctor)}`); - } - // Provide tagName and localName for the component. - ctor.__localName = name; - this.__definitions.set(name, { - ctor, - // Note it's important we read `observedAttributes` in case it is a getter - // with side-effects, as is the case in Lit, where it triggers class - // finalization. - // - // TODO(aomarks) To be spec compliant, we should also capture the - // registration-time lifecycle methods like `connectedCallback`. For them - // to be actually accessible to e.g. the Lit SSR element renderer, though, - // we'd need to introduce a new API for accessing them (since `get` only - // returns the constructor). - observedAttributes: ctor.observedAttributes ?? [], - }); - this.__reverseDefinitions.set(ctor, name); - this.__pendingWhenDefineds.get(name)?.resolve(ctor); - this.__pendingWhenDefineds.delete(name); - } - get(name) { - const definition = this.__definitions.get(name); - return definition?.ctor; - } - getName(ctor) { - return this.__reverseDefinitions.get(ctor) ?? null; - } - upgrade(_element) { - // In SSR this doesn't make a lot of sense, so we do nothing. - throw new Error(`customElements.upgrade is not currently supported in SSR. ` + - `Please file a bug if you need it.`); - } - async whenDefined(name) { - const definition = this.__definitions.get(name); - if (definition) { - return definition.ctor; - } - let withResolvers = this.__pendingWhenDefineds.get(name); - if (!withResolvers) { - withResolvers = promiseWithResolvers(); - this.__pendingWhenDefineds.set(name, withResolvers); - } - return withResolvers.promise; - } -} -const CustomElementRegistryShimWithRealType = CustomElementRegistry; -export { CustomElementRegistryShimWithRealType as CustomElementRegistry }; -export const customElements = new CustomElementRegistryShimWithRealType(); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/index.js.map b/ui/node_modules/@lit-labs/ssr-dom-shim/index.js.map deleted file mode 100644 index 6c0ef25..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAC,oBAAoB,EAAC,MAAM,4BAA4B,C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AI,UAAU,EAAE,CAAC;YACf,OAAO,UAAU,CAAC,IAAI,CAAC;QACzB,CAAC;QACD,IAAI,aAAa,GAAG,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,aAAa,GAAG,oBAAoB,EAA4B,CAAC;YACjE,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;QACtD,CAAC;QACD,OAAO,aAAa,CAAC,OAAO,CAAC;IAC/B,CAAC;CACF;AAED,MAAM,qCAAqC,GACzC,qBAAiE,CAAC;AACpE,OAAO,EAAC,qCAAqC,IAAI,qBAAqB,EAAC,CAAC;AAExE,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,qCAAqC,EAAE,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nimport {ElementInternalsShim} from './lib/element-internals.js';\nimport {\n EventTargetShim,\n EventShim,\n CustomEventShim,\n EventTargetShimMeta,\n} from './lib/events.js';\n\nexport {\n ariaMixinAttributes,\n ElementInternals,\n HYDRATE_INTERNALS_ATTR_PREFIX,\n} from './lib/element-internals.js';\nexport {\n CSSRule,\n CSSRuleList,\n CSSStyleSheet,\n MediaList,\n StyleSheet,\n} from './lib/css.js';\nexport {CustomEvent, Event, EventTarget} from './lib/events.js';\n\n// In an empty Node.js vm, we need to patch the global context.\n// TODO: Remove these globalThis assignments when we remove support\n// for vm modules (--experimental-vm-modules).\nglobalThis.Event ??= EventShim;\nglobalThis.CustomEvent ??= CustomEventShim;\n\n// Internal type to be used for the event polyfill functionality.\nexport type HTMLElementWithEventMeta = HTMLElement & EventTargetShimMeta;\n\nconst attributes = new WeakMap<\n InstanceType,\n Map\n>();\nconst attributesForElement = (\n element: InstanceType\n) => {\n let attrs = attributes.get(element);\n if (attrs === undefined) {\n attributes.set(element, (attrs = new Map()));\n }\n return attrs;\n};\n\n// The typings around the exports below are a little funky:\n//\n// 1. We want the `name` of the shim classes to match the real ones at runtime,\n// hence e.g. `class Element`.\n// 2. We can't shadow the global types with a simple class declaration, because\n// then we can't reference the global types for casting, hence e.g.\n// `const ElementShim = class Element`.\n// 3. We want to export the classes typed as the real ones, hence e.g.\n// `const ElementShimWithRealType = ElementShim as object as typeof Element;`.\n// 4. We want the exported names to match the real ones, hence e.g.\n// `export {ElementShimWithRealType as Element}`.\nconst ElementShim = class Element extends EventTargetShim {\n get attributes() {\n return Array.from(attributesForElement(this)).map(([name, value]) => ({\n name,\n value,\n }));\n }\n private __shadowRootMode: null | ShadowRootMode = null;\n protected __shadowRoot: null | ShadowRoot = null;\n protected __internals: null | ElementInternals = null;\n\n get shadowRoot() {\n if (this.__shadowRootMode === 'closed') {\n return null;\n }\n return this.__shadowRoot;\n }\n get localName() {\n return (this.constructor as NamedCustomHTMLElementConstructor).__localName;\n }\n get tagName() {\n return this.localName?.toUpperCase();\n }\n setAttribute(name: string, value: unknown): void {\n // Emulate browser behavior that silently casts all values to string. E.g.\n // `42` becomes `\"42\"` and `{}` becomes `\"[object Object]\"\"`.\n attributesForElement(this).set(name, String(value));\n }\n removeAttribute(name: string) {\n attributesForElement(this).delete(name);\n }\n toggleAttribute(name: string, force?: boolean): boolean {\n // Steps reference https://dom.spec.whatwg.org/#dom-element-toggleattribute\n if (this.hasAttribute(name)) {\n // Step 5\n if (force === undefined || !force) {\n this.removeAttribute(name);\n return false;\n }\n } else {\n // Step 4\n if (force === undefined || force) {\n // Step 4.1\n this.setAttribute(name, '');\n return true;\n } else {\n // Step 4.2\n return false;\n }\n }\n // Step 6\n return true;\n }\n hasAttribute(name: string) {\n return attributesForElement(this).has(name);\n }\n attachShadow(init: ShadowRootInit): ShadowRoot {\n const shadowRoot = {host: this} as object as ShadowRoot;\n this.__shadowRootMode = init.mode;\n if (init && init.mode === 'open') {\n this.__shadowRoot = shadowRoot;\n }\n return shadowRoot;\n }\n attachInternals(): ElementInternals {\n if (this.__internals !== null) {\n throw new Error(\n `Failed to execute 'attachInternals' on 'HTMLElement': ` +\n `ElementInternals for the specified element was already attached.`\n );\n }\n const internals = new ElementInternalsShim(this as unknown as HTMLElement);\n this.__internals = internals;\n return internals as ElementInternals;\n }\n getAttribute(name: string) {\n const value = attributesForElement(this).get(name);\n return value ?? null;\n }\n};\nconst ElementShimWithRealType = ElementShim as object as typeof Element;\nexport {ElementShimWithRealType as Element};\n\nconst HTMLElementShim = class HTMLElement extends ElementShim {};\nconst HTMLElementShimWithRealType =\n HTMLElementShim as object as typeof HTMLElement;\nexport {HTMLElementShimWithRealType as HTMLElement};\n\n// For convenience, we provide a global instance of a HTMLElement as an event\n// target. This facilitates registering global event handlers\n// (e.g. for @lit/context ContextProvider).\n// We use this in in the SSR render function.\n// Note, this is a bespoke element and not simply `document` or `window` since\n// user code relies on these being undefined in the server environment.\nglobalThis.litServerRoot ??= Object.defineProperty(\n new HTMLElementShimWithRealType(),\n 'localName',\n {\n // Patch localName (and tagName) to return a unique name.\n get() {\n return 'lit-server-root';\n },\n }\n);\n\ninterface CustomHTMLElementConstructor {\n new (): HTMLElement;\n observedAttributes?: string[];\n}\n\ninterface NamedCustomHTMLElementConstructor\n extends CustomHTMLElementConstructor {\n __localName: string;\n}\n\ntype CustomElementRegistration = {\n ctor: {new (): HTMLElement};\n observedAttributes: string[];\n};\n\ntype RealCustomElementRegistry = (typeof globalThis)['customElements'];\ntype RealCustomElementRegistryClass =\n (typeof globalThis)['CustomElementRegistry'];\n\n// Ponyfill for PromiseWithResolvers, remove once we can assume its presence.\ntype PromiseWithResolvers = {\n promise: Promise;\n resolve: (value: T) => void;\n reject: (reason?: unknown) => void;\n};\nfunction promiseWithResolvers(): PromiseWithResolvers {\n let resolve: (value: T) => void;\n let reject: (reason?: unknown) => void;\n const promise = new Promise((res, rej) => {\n resolve = res;\n reject = rej;\n });\n return {promise, resolve: resolve!, reject: reject!};\n}\n\nclass CustomElementRegistry implements RealCustomElementRegistry {\n private __definitions = new Map();\n private __reverseDefinitions = new Map<\n CustomHTMLElementConstructor,\n string\n >();\n private __pendingWhenDefineds = new Map<\n string,\n PromiseWithResolvers\n >();\n\n define(name: string, ctor: CustomHTMLElementConstructor) {\n if (this.__definitions.has(name)) {\n if (process.env.NODE_ENV === 'development') {\n console.warn(\n `'CustomElementRegistry' already has \"${name}\" defined. ` +\n `This may have been caused by live reload or hot module ` +\n `replacement in which case it can be safely ignored.\\n` +\n `Make sure to test your application with a production build as ` +\n `repeat registrations will throw in production.`\n );\n } else {\n throw new Error(\n `Failed to execute 'define' on 'CustomElementRegistry': ` +\n `the name \"${name}\" has already been used with this registry`\n );\n }\n }\n if (this.__reverseDefinitions.has(ctor)) {\n throw new Error(\n `Failed to execute 'define' on 'CustomElementRegistry': ` +\n `the constructor has already been used with this registry for the ` +\n `tag name ${this.__reverseDefinitions.get(ctor)}`\n );\n }\n // Provide tagName and localName for the component.\n (ctor as NamedCustomHTMLElementConstructor).__localName = name;\n this.__definitions.set(name, {\n ctor,\n // Note it's important we read `observedAttributes` in case it is a getter\n // with side-effects, as is the case in Lit, where it triggers class\n // finalization.\n //\n // TODO(aomarks) To be spec compliant, we should also capture the\n // registration-time lifecycle methods like `connectedCallback`. For them\n // to be actually accessible to e.g. the Lit SSR element renderer, though,\n // we'd need to introduce a new API for accessing them (since `get` only\n // returns the constructor).\n observedAttributes: ctor.observedAttributes ?? [],\n });\n this.__reverseDefinitions.set(ctor, name);\n this.__pendingWhenDefineds.get(name)?.resolve(ctor);\n this.__pendingWhenDefineds.delete(name);\n }\n\n get(name: string) {\n const definition = this.__definitions.get(name);\n return definition?.ctor;\n }\n\n getName(ctor: CustomHTMLElementConstructor) {\n return this.__reverseDefinitions.get(ctor) ?? null;\n }\n\n upgrade(_element: HTMLElement) {\n // In SSR this doesn't make a lot of sense, so we do nothing.\n throw new Error(\n `customElements.upgrade is not currently supported in SSR. ` +\n `Please file a bug if you need it.`\n );\n }\n\n async whenDefined(name: string): Promise {\n const definition = this.__definitions.get(name);\n if (definition) {\n return definition.ctor;\n }\n let withResolvers = this.__pendingWhenDefineds.get(name);\n if (!withResolvers) {\n withResolvers = promiseWithResolvers();\n this.__pendingWhenDefineds.set(name, withResolvers);\n }\n return withResolvers.promise;\n }\n}\n\nconst CustomElementRegistryShimWithRealType =\n CustomElementRegistry as object as RealCustomElementRegistryClass;\nexport {CustomElementRegistryShimWithRealType as CustomElementRegistry};\n\nexport const customElements = new CustomElementRegistryShimWithRealType();\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css-hook.d.ts b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css-hook.d.ts deleted file mode 100644 index 440e358..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css-hook.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { LoadHook } from 'node:module'; -/** - * When an attempt is made to import a CSS file/module, code is - * generated to read the corresponding file, add it to a CSSStyleSheet - * instance and return that instance as the default export. - * - * https://nodejs.org/api/module.html#loadurl-context-nextload - */ -export declare const load: LoadHook; -//# sourceMappingURL=css-hook.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css-hook.d.ts.map b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css-hook.d.ts.map deleted file mode 100644 index f008fae..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css-hook.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"css-hook.d.ts","sourceRoot":"","sources":["../src/lib/css-hook.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AAE1C;;;;;;GAMG;AACH,eAAO,MAAM,IAAI,EAAE,QAsBlB,CAAC"} \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css-hook.js b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css-hook.js deleted file mode 100644 index 2d658aa..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css-hook.js +++ /dev/null @@ -1,32 +0,0 @@ -import { readFile } from 'node:fs/promises'; -/** - * When an attempt is made to import a CSS file/module, code is - * generated to read the corresponding file, add it to a CSSStyleSheet - * instance and return that instance as the default export. - * - * https://nodejs.org/api/module.html#loadurl-context-nextload - */ -export const load = async (url, context, nextLoad) => { - if (context.importAttributes.type === 'css') { - const content = await readFile(new URL(url), 'utf-8'); - const code = ` - import {CSSStyleSheet} from '@lit-labs/ssr-dom-shim'; - const sheet = new CSSStyleSheet(); - sheet.replaceSync(${JSON.stringify(content)}); - export default sheet; - `; - return { format: 'module', shortCircuit: true, source: code }; - } - else if (new URL(url).pathname.endsWith('.css')) { - try { - return await nextLoad(url, context); - } - catch (e) { - console.warn(`Tried to import ${url} without import attributes!\n` + - `(e.g. use "import s from './a.css' with {type: 'css'}" instead of "import s from './a.css'")`); - throw e; - } - } - return await nextLoad(url, context); -}; -//# sourceMappingURL=css-hook.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css-hook.js.map b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css-hook.js.map deleted file mode 100644 index 6fc3179..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css-hook.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"css-hook.js","sourceRoot":"","sources":["../src/lib/css-hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAG1C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,IAAI,GAAa,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE;IAC7D,IAAI,OAAO,CAAC,gBAAgB,CAAC,IAAI,KAAK,KAAK,EAAE,CAAC;QAC5C,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;QACtD,MAAM,IAAI,GAAG;;;0BAGS,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;;KAE5C,CAAC;QACF,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,CAAC;IAC9D,CAAC;SAAM,IAAI,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,IAAI,CAAC;YACH,OAAO,MAAM,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QACtC,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,CAAC,IAAI,CACV,mBAAmB,GAAG,+BAA+B;gBACnD,8FAA8F,CACjG,CAAC;YACF,MAAM,CAAC,CAAC;QACV,CAAC;IACH,CAAC;IACD,OAAO,MAAM,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACtC,CAAC,CAAC","sourcesContent":["import {readFile} from 'node:fs/promises';\nimport type {LoadHook} from 'node:module';\n\n/**\n * When an attempt is made to import a CSS file/module, code is\n * generated to read the corresponding file, add it to a CSSStyleSheet\n * instance and return that instance as the default export.\n *\n * https://nodejs.org/api/module.html#loadurl-context-nextload\n */\nexport const load: LoadHook = async (url, context, nextLoad) => {\n if (context.importAttributes.type === 'css') {\n const content = await readFile(new URL(url), 'utf-8');\n const code = `\n import {CSSStyleSheet} from '@lit-labs/ssr-dom-shim';\n const sheet = new CSSStyleSheet();\n sheet.replaceSync(${JSON.stringify(content)});\n export default sheet;\n `;\n return {format: 'module', shortCircuit: true, source: code};\n } else if (new URL(url).pathname.endsWith('.css')) {\n try {\n return await nextLoad(url, context);\n } catch (e) {\n console.warn(\n `Tried to import ${url} without import attributes!\\n` +\n `(e.g. use \"import s from './a.css' with {type: 'css'}\" instead of \"import s from './a.css'\")`\n );\n throw e;\n }\n }\n return await nextLoad(url, context);\n};\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css.d.ts b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css.d.ts deleted file mode 100644 index 3843d53..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * @license - * Copyright 2024 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -declare const MediaListShimWithRealType: typeof MediaList; -export { MediaListShimWithRealType as MediaList }; -declare const StyleSheetShimWithRealType: typeof StyleSheet; -export { StyleSheetShimWithRealType as StyleSheet }; -declare const CSSRuleShimWithRealType: typeof CSSRule; -export { CSSRuleShimWithRealType as CSSRule }; -declare const CSSRuleListShimWithRealType: typeof CSSRuleList; -export { CSSRuleListShimWithRealType as CSSRuleList }; -declare const CSSStyleSheetShimWithRealType: typeof CSSStyleSheet; -export { CSSStyleSheetShimWithRealType as CSSStyleSheet, CSSStyleSheetShimWithRealType as CSSStyleSheetShim, }; -//# sourceMappingURL=css.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css.d.ts.map b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css.d.ts.map deleted file mode 100644 index fb50977..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../src/lib/css.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAkCH,QAAA,MAAM,yBAAyB,EAA8B,OAAO,SAAS,CAAC;AAC9E,OAAO,EAAC,yBAAyB,IAAI,SAAS,EAAC,CAAC;AA4BhD,QAAA,MAAM,0BAA0B,EACF,OAAO,UAAU,CAAC;AAChD,OAAO,EAAC,0BAA0B,IAAI,UAAU,EAAC,CAAC;AA2ClD,QAAA,MAAM,uBAAuB,EAA4B,OAAO,OAAO,CAAC;AACxE,OAAO,EAAC,uBAAuB,IAAI,OAAO,EAAC,CAAC;AAa5C,QAAA,MAAM,2BAA2B,EACF,OAAO,WAAW,CAAC;AAClD,OAAO,EAAC,2BAA2B,IAAI,WAAW,EAAC,CAAC;AA0CpD,QAAA,MAAM,6BAA6B,EACF,OAAO,aAAa,CAAC;AACtD,OAAO,EACL,6BAA6B,IAAI,aAAa,EAC9C,6BAA6B,IAAI,iBAAiB,GACnD,CAAC"} \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css.js b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css.js deleted file mode 100644 index f5d334c..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css.js +++ /dev/null @@ -1,145 +0,0 @@ -/** - * @license - * Copyright 2024 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -var _a; -const MediaListShim = class MediaList extends Array { - get mediaText() { - return this.join(', '); - } - toString() { - return this.mediaText; - } - appendMedium(medium) { - if (!this.includes(medium)) { - this.push(medium); - } - } - deleteMedium(medium) { - const index = this.indexOf(medium); - if (index !== -1) { - this.splice(index, 1); - } - } - item(index) { - return this[index] ?? null; - } -}; -const MediaListShimWithRealType = MediaListShim; -export { MediaListShimWithRealType as MediaList }; -const StyleSheetShim = class StyleSheet { - constructor() { - this.__media = new MediaListShim(); - this.disabled = false; - } - get href() { - return null; - } - get media() { - return this.__media; - } - get ownerNode() { - return null; - } - get parentStyleSheet() { - return null; - } - get title() { - return null; - } - get type() { - return 'text/css'; - } -}; -const StyleSheetShimWithRealType = StyleSheetShim; -export { StyleSheetShimWithRealType as StyleSheet }; -const CSSRuleShim = (_a = class CSSRule { - constructor() { - this.STYLE_RULE = 1; - this.CHARSET_RULE = 2; - this.IMPORT_RULE = 3; - this.MEDIA_RULE = 4; - this.FONT_FACE_RULE = 5; - this.PAGE_RULE = 6; - this.NAMESPACE_RULE = 10; - this.KEYFRAMES_RULE = 7; - this.KEYFRAME_RULE = 8; - this.SUPPORTS_RULE = 12; - this.COUNTER_STYLE_RULE = 11; - this.FONT_FEATURE_VALUES_RULE = 14; - this.__parentStyleSheet = null; - this.cssText = ''; - } - get parentRule() { - return null; - } - get parentStyleSheet() { - return this.__parentStyleSheet; - } - get type() { - return 0; - } - }, - _a.STYLE_RULE = 1, - _a.CHARSET_RULE = 2, - _a.IMPORT_RULE = 3, - _a.MEDIA_RULE = 4, - _a.FONT_FACE_RULE = 5, - _a.PAGE_RULE = 6, - _a.NAMESPACE_RULE = 10, - _a.KEYFRAMES_RULE = 7, - _a.KEYFRAME_RULE = 8, - _a.SUPPORTS_RULE = 12, - _a.COUNTER_STYLE_RULE = 11, - _a.FONT_FEATURE_VALUES_RULE = 14, - _a); -const CSSRuleShimWithRealType = CSSRuleShim; -export { CSSRuleShimWithRealType as CSSRule }; -const CSSRuleListShim = class CSSRuleList extends Array { - item(index) { - return this[index] ?? null; - } -}; -const CSSRuleListShimWithRealType = CSSRuleListShim; -export { CSSRuleListShimWithRealType as CSSRuleList }; -const CSSStyleSheetShim = class CSSStyleSheet extends StyleSheetShim { - constructor() { - super(...arguments); - this.__rules = new CSSRuleListShim(); - } - get cssRules() { - return this.__rules; - } - get ownerRule() { - return null; - } - get rules() { - return this.cssRules; - } - addRule(_selector, _style, _index) { - throw new Error('Method not implemented.'); - } - deleteRule(_index) { - throw new Error('Method not implemented.'); - } - insertRule(_rule, _index) { - throw new Error('Method not implemented.'); - } - removeRule(_index) { - throw new Error('Method not implemented.'); - } - replace(text) { - this.replaceSync(text); - return Promise.resolve(this); - } - replaceSync(text) { - this.__rules.length = 0; - const rule = new CSSRuleShim(); - rule.cssText = text; - this.__rules.push(rule); - } -}; -const CSSStyleSheetShimWithRealType = CSSStyleSheetShim; -export { CSSStyleSheetShimWithRealType as CSSStyleSheet, CSSStyleSheetShimWithRealType as CSSStyleSheetShim, }; -//# sourceMappingURL=css.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css.js.map b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css.js.map deleted file mode 100644 index 7b94ef9..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/css.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"css.js","sourceRoot":"","sources":["../src/lib/css.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AASH,MAAM,aAAa,GAAG,MAAM,SAC1B,SAAQ,KAAa;IAGrB,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IACD,QAAQ;QACN,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IACD,YAAY,CAAC,MAAc;QACzB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;YAC3B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACpB,CAAC;IACH,CAAC;IACD,YAAY,CAAC,MAAc;QACzB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACnC,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;YACjB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;IACD,IAAI,CAAC,KAAa;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;IAC7B,CAAC;CACF,CAAC;AACF,MAAM,yBAAyB,GAAG,aAA2C,CAAC;AAC9E,OAAO,EAAC,yBAAyB,IAAI,SAAS,EAAC,CAAC;AAIhD,MAAM,cAAc,GAAG,MAAM,UAAU;IAAhB;QACb,YAAO,GAAG,IAAI,aAAa,EAAE,CAAC;QAEtC,aAAQ,GAAY,KAAK,CAAC;IAmB5B,CAAC;IAlBC,IAAI,IAAI;QACN,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IACD,IAAI,SAAS;QACX,OAAO,IAAI,CAAC;IACd,CAA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CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;QACxB,MAAM,IAAI,GAAG,IAAI,WAAW,EAAE,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF,CAAC;AAEF,MAAM,6BAA6B,GACjC,iBAAmD,CAAC;AACtD,OAAO,EACL,6BAA6B,IAAI,aAAa,EAC9C,6BAA6B,IAAI,iBAAiB,GACnD,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2024 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * This is a limited implemenation of the CSSStyleSheet class\n * and associated functionality.\n */\n\ntype MediaListInterface = MediaList;\n\nconst MediaListShim = class MediaList\n extends Array\n implements MediaListInterface\n{\n get mediaText(): string {\n return this.join(', ');\n }\n toString(): string {\n return this.mediaText;\n }\n appendMedium(medium: string): void {\n if (!this.includes(medium)) {\n this.push(medium);\n }\n }\n deleteMedium(medium: string): void {\n const index = this.indexOf(medium);\n if (index !== -1) {\n this.splice(index, 1);\n }\n }\n item(index: number): string | null {\n return this[index] ?? null;\n }\n};\nconst MediaListShimWithRealType = MediaListShim as object as typeof MediaList;\nexport {MediaListShimWithRealType as MediaList};\n\ntype StyleSheetInterface = StyleSheet;\n\nconst StyleSheetShim = class StyleSheet implements StyleSheetInterface {\n private __media = new MediaListShim();\n\n disabled: boolean = false;\n get href(): string | null {\n return null;\n }\n get media(): MediaList {\n return this.__media;\n }\n get ownerNode(): Element | ProcessingInstruction | null {\n return null;\n }\n get parentStyleSheet(): CSSStyleSheet | null {\n return null;\n }\n get title(): string | null {\n return null;\n }\n get type(): string {\n return 'text/css';\n }\n};\n\nconst StyleSheetShimWithRealType =\n StyleSheetShim as object as typeof StyleSheet;\nexport {StyleSheetShimWithRealType as StyleSheet};\n\ntype CSSRuleInterface = CSSRule;\n\nconst CSSRuleShim = class CSSRule implements CSSRuleInterface {\n static readonly STYLE_RULE: 1 = 1 as const;\n static readonly CHARSET_RULE: 2 = 2 as const;\n static readonly IMPORT_RULE: 3 = 3 as const;\n static readonly MEDIA_RULE: 4 = 4 as const;\n static readonly FONT_FACE_RULE: 5 = 5 as const;\n static readonly PAGE_RULE: 6 = 6 as const;\n static readonly NAMESPACE_RULE: 10 = 10 as const;\n static readonly KEYFRAMES_RULE: 7 = 7 as const;\n static readonly KEYFRAME_RULE: 8 = 8 as const;\n static readonly SUPPORTS_RULE: 12 = 12 as const;\n static readonly COUNTER_STYLE_RULE: 11 = 11 as const;\n static readonly FONT_FEATURE_VALUES_RULE: 14 = 14 as const;\n readonly STYLE_RULE: 1 = 1 as const;\n readonly CHARSET_RULE: 2 = 2 as const;\n readonly IMPORT_RULE: 3 = 3 as const;\n readonly MEDIA_RULE: 4 = 4 as const;\n readonly FONT_FACE_RULE: 5 = 5 as const;\n readonly PAGE_RULE: 6 = 6 as const;\n readonly NAMESPACE_RULE: 10 = 10 as const;\n readonly KEYFRAMES_RULE: 7 = 7 as const;\n readonly KEYFRAME_RULE: 8 = 8 as const;\n readonly SUPPORTS_RULE: 12 = 12 as const;\n readonly COUNTER_STYLE_RULE: 11 = 11 as const;\n readonly FONT_FEATURE_VALUES_RULE: 14 = 14 as const;\n __parentStyleSheet: CSSStyleSheet | null = null;\n\n cssText: string = '';\n get parentRule(): CSSRule | null {\n return null;\n }\n get parentStyleSheet(): CSSStyleSheet | null {\n return this.__parentStyleSheet;\n }\n get type(): number {\n return 0;\n }\n};\n\nconst CSSRuleShimWithRealType = CSSRuleShim as object as typeof CSSRule;\nexport {CSSRuleShimWithRealType as CSSRule};\n\ntype CSSRuleListInterface = CSSRuleList;\n\nconst CSSRuleListShim = class CSSRuleList\n extends Array\n implements CSSRuleListInterface\n{\n item(index: number): CSSRule | null {\n return this[index] ?? null;\n }\n};\n\nconst CSSRuleListShimWithRealType =\n CSSRuleListShim as object as typeof CSSRuleList;\nexport {CSSRuleListShimWithRealType as CSSRuleList};\n\ntype CSSStyleSheetInterface = CSSStyleSheet;\n\nconst CSSStyleSheetShim = class CSSStyleSheet\n extends StyleSheetShim\n implements CSSStyleSheetInterface\n{\n private __rules = new CSSRuleListShim();\n get cssRules(): CSSRuleList {\n return this.__rules;\n }\n get ownerRule(): CSSRule | null {\n return null;\n }\n get rules(): CSSRuleList {\n return this.cssRules;\n }\n addRule(_selector?: string, _style?: string, _index?: number): number {\n throw new Error('Method not implemented.');\n }\n deleteRule(_index: number): void {\n throw new Error('Method not implemented.');\n }\n insertRule(_rule: string, _index?: number): number {\n throw new Error('Method not implemented.');\n }\n removeRule(_index?: number): void {\n throw new Error('Method not implemented.');\n }\n replace(text: string): Promise {\n this.replaceSync(text);\n return Promise.resolve(this);\n }\n replaceSync(text: string): void {\n this.__rules.length = 0;\n const rule = new CSSRuleShim();\n rule.cssText = text;\n this.__rules.push(rule);\n }\n};\n\nconst CSSStyleSheetShimWithRealType =\n CSSStyleSheetShim as object as typeof CSSStyleSheet;\nexport {\n CSSStyleSheetShimWithRealType as CSSStyleSheet,\n CSSStyleSheetShimWithRealType as CSSStyleSheetShim,\n};\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.d.ts b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.d.ts deleted file mode 100644 index 31a53e7..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -/** - * @license - * Copyright 2023 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -type StringKeys = { - [K in keyof T]: T[K] extends string | null ? K : never; -}[keyof T]; -type ARIAAttributeMap = { - [K in StringKeys]: string; -}; -/** - * Map of ARIAMixin properties to attributes - */ -export declare const ariaMixinAttributes: ARIAAttributeMap; -export declare const ElementInternalsShim: { - new (_host: HTMLElement): { - ariaActiveDescendantElement: null; - ariaAtomic: string; - ariaAutoComplete: string; - ariaBrailleLabel: string; - ariaBrailleRoleDescription: string; - ariaBusy: string; - ariaChecked: string; - ariaColCount: string; - ariaColIndex: string; - ariaColIndexText: string; - ariaColSpan: string; - ariaControlsElements: null; - ariaCurrent: string; - ariaDescribedByElements: null; - ariaDescription: string; - ariaDetailsElements: null; - ariaDisabled: string; - ariaErrorMessageElements: null; - ariaExpanded: string; - ariaFlowToElements: null; - ariaHasPopup: string; - ariaHidden: string; - ariaInvalid: string; - ariaKeyShortcuts: string; - ariaLabel: string; - ariaLabelledByElements: null; - ariaLevel: string; - ariaLive: string; - ariaModal: string; - ariaMultiLine: string; - ariaMultiSelectable: string; - ariaOrientation: string; - ariaOwnsElements: null; - ariaPlaceholder: string; - ariaPosInSet: string; - ariaPressed: string; - ariaReadOnly: string; - ariaRelevant: string; - ariaRequired: string; - ariaRoleDescription: string; - ariaRowCount: string; - ariaRowIndex: string; - ariaRowIndexText: string; - ariaRowSpan: string; - ariaSelected: string; - ariaSetSize: string; - ariaSort: string; - ariaValueMax: string; - ariaValueMin: string; - ariaValueNow: string; - ariaValueText: string; - role: string; - __host: HTMLElement; - get shadowRoot(): ShadowRoot; - checkValidity(): boolean; - form: null; - labels: NodeListOf; - reportValidity(): boolean; - setFormValue(): void; - setValidity(): void; - states: Set; - validationMessage: string; - validity: ValidityState; - willValidate: boolean; - }; -}; -declare const ElementInternalsShimWithRealType: typeof ElementInternals; -export { ElementInternalsShimWithRealType as ElementInternals }; -export declare const HYDRATE_INTERNALS_ATTR_PREFIX = "hydrate-internals-"; -//# sourceMappingURL=element-internals.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.d.ts.map b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.d.ts.map deleted file mode 100644 index 6f58b16..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"element-internals.d.ts","sourceRoot":"","sources":["../src/lib/element-internals.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,KAAK,UAAU,CAAC,CAAC,SAAS,MAAM,IAAI;KACjC,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,KAAK;CACvD,CAAC,MAAM,CAAC,CAAC,CAAC;AAKX,KAAK,gBAAgB,GAAG;KACrB,CAAC,IAAI,UAAU,CAAC,SAAS,CAAC,GAAG,MAAM;CACrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,gBA6CjC,CAAC;AAOF,eAAO,MAAM,oBAAoB;gBA+DZ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBARtB,WAAW;;;;gBAqBO,UAAU,CAAC,gBAAgB,CAAC;;wBAItC,IAAI;uBACL,IAAI;;;kBAGF,aAAa;;;CAE/B,CAAC;AAEF,QAAA,MAAM,gCAAgC,EACF,OAAO,gBAAgB,CAAC;AAC5D,OAAO,EAAC,gCAAgC,IAAI,gBAAgB,EAAC,CAAC;AAE9D,eAAO,MAAM,6BAA6B,uBAAuB,CAAC"} \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.js b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.js deleted file mode 100644 index 0357fc1..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.js +++ /dev/null @@ -1,143 +0,0 @@ -/** - * @license - * Copyright 2023 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -/** - * Map of ARIAMixin properties to attributes - */ -export const ariaMixinAttributes = { - ariaAtomic: 'aria-atomic', - ariaAutoComplete: 'aria-autocomplete', - ariaBrailleLabel: 'aria-braillelabel', - ariaBrailleRoleDescription: 'aria-brailleroledescription', - ariaBusy: 'aria-busy', - ariaChecked: 'aria-checked', - ariaColCount: 'aria-colcount', - ariaColIndex: 'aria-colindex', - ariaColIndexText: 'aria-colindextext', - ariaColSpan: 'aria-colspan', - ariaCurrent: 'aria-current', - ariaDescription: 'aria-description', - ariaDisabled: 'aria-disabled', - ariaExpanded: 'aria-expanded', - ariaHasPopup: 'aria-haspopup', - ariaHidden: 'aria-hidden', - ariaInvalid: 'aria-invalid', - ariaKeyShortcuts: 'aria-keyshortcuts', - ariaLabel: 'aria-label', - ariaLevel: 'aria-level', - ariaLive: 'aria-live', - ariaModal: 'aria-modal', - ariaMultiLine: 'aria-multiline', - ariaMultiSelectable: 'aria-multiselectable', - ariaOrientation: 'aria-orientation', - ariaPlaceholder: 'aria-placeholder', - ariaPosInSet: 'aria-posinset', - ariaPressed: 'aria-pressed', - ariaReadOnly: 'aria-readonly', - ariaRelevant: 'aria-relevant', - ariaRequired: 'aria-required', - ariaRoleDescription: 'aria-roledescription', - ariaRowCount: 'aria-rowcount', - ariaRowIndex: 'aria-rowindex', - ariaRowIndexText: 'aria-rowindextext', - ariaRowSpan: 'aria-rowspan', - ariaSelected: 'aria-selected', - ariaSetSize: 'aria-setsize', - ariaSort: 'aria-sort', - ariaValueMax: 'aria-valuemax', - ariaValueMin: 'aria-valuemin', - ariaValueNow: 'aria-valuenow', - ariaValueText: 'aria-valuetext', - role: 'role', -}; -// Shim the global element internals object -// Methods should be fine as noops and properties can generally -// be while on the server. -export const ElementInternalsShim = class ElementInternals { - get shadowRoot() { - // Grab the shadow root instance from the Element shim - // to ensure that the shadow root is always available - // to the internals instance even if the mode is 'closed' - return this.__host - .__shadowRoot; - } - constructor(_host) { - this.ariaActiveDescendantElement = null; - this.ariaAtomic = ''; - this.ariaAutoComplete = ''; - this.ariaBrailleLabel = ''; - this.ariaBrailleRoleDescription = ''; - this.ariaBusy = ''; - this.ariaChecked = ''; - this.ariaColCount = ''; - this.ariaColIndex = ''; - this.ariaColIndexText = ''; - this.ariaColSpan = ''; - this.ariaControlsElements = null; - this.ariaCurrent = ''; - this.ariaDescribedByElements = null; - this.ariaDescription = ''; - this.ariaDetailsElements = null; - this.ariaDisabled = ''; - this.ariaErrorMessageElements = null; - this.ariaExpanded = ''; - this.ariaFlowToElements = null; - this.ariaHasPopup = ''; - this.ariaHidden = ''; - this.ariaInvalid = ''; - this.ariaKeyShortcuts = ''; - this.ariaLabel = ''; - this.ariaLabelledByElements = null; - this.ariaLevel = ''; - this.ariaLive = ''; - this.ariaModal = ''; - this.ariaMultiLine = ''; - this.ariaMultiSelectable = ''; - this.ariaOrientation = ''; - this.ariaOwnsElements = null; - this.ariaPlaceholder = ''; - this.ariaPosInSet = ''; - this.ariaPressed = ''; - this.ariaReadOnly = ''; - this.ariaRelevant = ''; - this.ariaRequired = ''; - this.ariaRoleDescription = ''; - this.ariaRowCount = ''; - this.ariaRowIndex = ''; - this.ariaRowIndexText = ''; - this.ariaRowSpan = ''; - this.ariaSelected = ''; - this.ariaSetSize = ''; - this.ariaSort = ''; - this.ariaValueMax = ''; - this.ariaValueMin = ''; - this.ariaValueNow = ''; - this.ariaValueText = ''; - this.role = ''; - this.form = null; - this.labels = []; - this.states = new Set(); - this.validationMessage = ''; - this.validity = {}; - this.willValidate = true; - this.__host = _host; - } - checkValidity() { - // TODO(augustjk) Consider actually implementing logic. - // See https://github.com/lit/lit/issues/3740 - console.warn('`ElementInternals.checkValidity()` was called on the server.' + - 'This method always returns true.'); - return true; - } - reportValidity() { - return true; - } - setFormValue() { } - setValidity() { } -}; -const ElementInternalsShimWithRealType = ElementInternalsShim; -export { ElementInternalsShimWithRealType as ElementInternals }; -export const HYDRATE_INTERNALS_ATTR_PREFIX = 'hydrate-internals-'; -//# sourceMappingURL=element-internals.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.js.map b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.js.map deleted file mode 100644 index 00c7ae1..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3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ACpC,oBAAyD,CAAC;AAC5D,OAAO,EAAC,gCAAgC,IAAI,gBAAgB,EAAC,CAAC;AAE9D,MAAM,CAAC,MAAM,6BAA6B,GAAG,oBAAoB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\ntype StringKeys = {\n [K in keyof T]: T[K] extends string | null ? K : never;\n}[keyof T];\n\n// Since TypeScript 5.9, ARIAMixin has properties with the type Element | null\n// or Element[] | null. However, we can only support string attributes,\n// which is why we filter for string properties.\ntype ARIAAttributeMap = {\n [K in StringKeys]: string;\n};\n\n/**\n * Map of ARIAMixin properties to attributes\n */\nexport const ariaMixinAttributes: ARIAAttributeMap = {\n ariaAtomic: 'aria-atomic',\n ariaAutoComplete: 'aria-autocomplete',\n ariaBrailleLabel: 'aria-braillelabel',\n ariaBrailleRoleDescription: 'aria-brailleroledescription',\n ariaBusy: 'aria-busy',\n ariaChecked: 'aria-checked',\n ariaColCount: 'aria-colcount',\n ariaColIndex: 'aria-colindex',\n ariaColIndexText: 'aria-colindextext',\n ariaColSpan: 'aria-colspan',\n ariaCurrent: 'aria-current',\n ariaDescription: 'aria-description',\n ariaDisabled: 'aria-disabled',\n ariaExpanded: 'aria-expanded',\n ariaHasPopup: 'aria-haspopup',\n ariaHidden: 'aria-hidden',\n ariaInvalid: 'aria-invalid',\n ariaKeyShortcuts: 'aria-keyshortcuts',\n ariaLabel: 'aria-label',\n ariaLevel: 'aria-level',\n ariaLive: 'aria-live',\n ariaModal: 'aria-modal',\n ariaMultiLine: 'aria-multiline',\n ariaMultiSelectable: 'aria-multiselectable',\n ariaOrientation: 'aria-orientation',\n ariaPlaceholder: 'aria-placeholder',\n ariaPosInSet: 'aria-posinset',\n ariaPressed: 'aria-pressed',\n ariaReadOnly: 'aria-readonly',\n ariaRelevant: 'aria-relevant',\n ariaRequired: 'aria-required',\n ariaRoleDescription: 'aria-roledescription',\n ariaRowCount: 'aria-rowcount',\n ariaRowIndex: 'aria-rowindex',\n ariaRowIndexText: 'aria-rowindextext',\n ariaRowSpan: 'aria-rowspan',\n ariaSelected: 'aria-selected',\n ariaSetSize: 'aria-setsize',\n ariaSort: 'aria-sort',\n ariaValueMax: 'aria-valuemax',\n ariaValueMin: 'aria-valuemin',\n ariaValueNow: 'aria-valuenow',\n ariaValueText: 'aria-valuetext',\n role: 'role',\n};\n\ntype ElementInternalsInterface = ElementInternals;\n\n// Shim the global element internals object\n// Methods should be fine as noops and properties can generally\n// be while on the server.\nexport const ElementInternalsShim = class ElementInternals\n implements ElementInternalsInterface\n{\n ariaActiveDescendantElement = null;\n ariaAtomic = '';\n ariaAutoComplete = '';\n ariaBrailleLabel = '';\n ariaBrailleRoleDescription = '';\n ariaBusy = '';\n ariaChecked = '';\n ariaColCount = '';\n ariaColIndex = '';\n ariaColIndexText = '';\n ariaColSpan = '';\n ariaControlsElements = null;\n ariaCurrent = '';\n ariaDescribedByElements = null;\n ariaDescription = '';\n ariaDetailsElements = null;\n ariaDisabled = '';\n ariaErrorMessageElements = null;\n ariaExpanded = '';\n ariaFlowToElements = null;\n ariaHasPopup = '';\n ariaHidden = '';\n ariaInvalid = '';\n ariaKeyShortcuts = '';\n ariaLabel = '';\n ariaLabelledByElements = null;\n ariaLevel = '';\n ariaLive = '';\n ariaModal = '';\n ariaMultiLine = '';\n ariaMultiSelectable = '';\n ariaOrientation = '';\n ariaOwnsElements = null;\n ariaPlaceholder = '';\n ariaPosInSet = '';\n ariaPressed = '';\n ariaReadOnly = '';\n ariaRelevant = '';\n ariaRequired = '';\n ariaRoleDescription = '';\n ariaRowCount = '';\n ariaRowIndex = '';\n ariaRowIndexText = '';\n ariaRowSpan = '';\n ariaSelected = '';\n ariaSetSize = '';\n ariaSort = '';\n ariaValueMax = '';\n ariaValueMin = '';\n ariaValueNow = '';\n ariaValueText = '';\n role = '';\n __host: HTMLElement;\n get shadowRoot() {\n // Grab the shadow root instance from the Element shim\n // to ensure that the shadow root is always available\n // to the internals instance even if the mode is 'closed'\n return (this.__host as HTMLElement & {__shadowRoot: ShadowRoot})\n .__shadowRoot;\n }\n constructor(_host: HTMLElement) {\n this.__host = _host;\n }\n checkValidity() {\n // TODO(augustjk) Consider actually implementing logic.\n // See https://github.com/lit/lit/issues/3740\n console.warn(\n '`ElementInternals.checkValidity()` was called on the server.' +\n 'This method always returns true.'\n );\n return true;\n }\n form = null;\n labels = [] as unknown as NodeListOf;\n reportValidity() {\n return true;\n }\n setFormValue(): void {}\n setValidity(): void {}\n states = new Set();\n validationMessage = '';\n validity = {} as ValidityState;\n willValidate = true;\n};\n\nconst ElementInternalsShimWithRealType =\n ElementInternalsShim as object as typeof ElementInternals;\nexport {ElementInternalsShimWithRealType as ElementInternals};\n\nexport const HYDRATE_INTERNALS_ATTR_PREFIX = 'hydrate-internals-';\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/events.d.ts b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/events.d.ts deleted file mode 100644 index b741f00..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/events.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @license - * Copyright 2023 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -/** - * This is a basic implementation of an EventTarget, Event and CustomEvent. - * - * This is not fully spec compliant (e.g. validation), - * but should work well enough for our use cases. - * - * @see https://dom.spec.whatwg.org/#eventtarget - * @see https://dom.spec.whatwg.org/#event - * @see https://dom.spec.whatwg.org/#customevent - */ -export interface EventTargetShimMeta { - /** - * The event target parent represents the previous event target for an event - * in capture phase and the next event target for a bubbling event. - * Note that this is not the element parent - */ - __eventTargetParent: globalThis.EventTarget | undefined; - /** - * The host event target/element of this event target, if this event target - * is inside a Shadow DOM. - */ - __host: globalThis.EventTarget | undefined; -} -declare const EventTargetShimWithRealType: typeof globalThis.EventTarget; -export { EventTargetShimWithRealType as EventTarget, EventTargetShimWithRealType as EventTargetShim, }; -declare const EventShimWithRealType: typeof Event; -declare const CustomEventShimWithRealType: typeof CustomEvent; -export { EventShimWithRealType as Event, EventShimWithRealType as EventShim, CustomEventShimWithRealType as CustomEvent, CustomEventShimWithRealType as CustomEventShim, }; -//# sourceMappingURL=events.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/events.d.ts.map b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/events.d.ts.map deleted file mode 100644 index db67106..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/events.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/lib/events.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;GASG;AAEH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,mBAAmB,EAAE,UAAU,CAAC,WAAW,GAAG,SAAS,CAAC;IACxD;;;OAGG;IACH,MAAM,EAAE,UAAU,CAAC,WAAW,GAAG,SAAS,CAAC;CAC5C;AAyPD,QAAA,MAAM,2BAA2B,EACN,OAAO,UAAU,CAAC,WAAW,CAAC;AACzD,OAAO,EACL,2BAA2B,IAAI,WAAW,EAC1C,2BAA2B,IAAI,eAAe,GAC/C,CAAC;AAkLF,QAAA,MAAM,qBAAqB,EAA0B,OAAO,KAAK,CAAC;AAClE,QAAA,MAAM,2BAA2B,EACF,OAAO,WAAW,CAAC;AAClD,OAAO,EACL,qBAAqB,IAAI,KAAK,EAC9B,qBAAqB,IAAI,SAAS,EAClC,2BAA2B,IAAI,WAAW,EAC1C,2BAA2B,IAAI,eAAe,GAC/C,CAAC"} \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/events.js b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/events.js deleted file mode 100644 index c119bd5..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/events.js +++ /dev/null @@ -1,375 +0,0 @@ -/** - * @license - * Copyright 2023 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _Event_cancelable, _Event_bubbles, _Event_composed, _Event_defaultPrevented, _Event_timestamp, _Event_propagationStopped, _Event_type, _Event_target, _Event_isBeingDispatched, _a, _CustomEvent_detail, _b; -const isCaptureEventListener = (options) => (typeof options === 'boolean' ? options : (options?.capture ?? false)); -// Event phases -const NONE = 0; -const CAPTURING_PHASE = 1; -const AT_TARGET = 2; -const BUBBLING_PHASE = 3; -// Shim the global EventTarget object -class EventTarget { - constructor() { - this.__eventListeners = new Map(); - this.__captureEventListeners = new Map(); - } - addEventListener(type, callback, options) { - if (callback === undefined || callback === null) { - return; - } - const eventListenersMap = isCaptureEventListener(options) - ? this.__captureEventListeners - : this.__eventListeners; - let eventListeners = eventListenersMap.get(type); - if (eventListeners === undefined) { - eventListeners = new Map(); - eventListenersMap.set(type, eventListeners); - } - else if (eventListeners.has(callback)) { - return; - } - const normalizedOptions = typeof options === 'object' && options ? options : {}; - normalizedOptions.signal?.addEventListener('abort', () => this.removeEventListener(type, callback, options)); - eventListeners.set(callback, normalizedOptions ?? {}); - } - removeEventListener(type, callback, options) { - if (callback === undefined || callback === null) { - return; - } - const eventListenersMap = isCaptureEventListener(options) - ? this.__captureEventListeners - : this.__eventListeners; - const eventListeners = eventListenersMap.get(type); - if (eventListeners !== undefined) { - eventListeners.delete(callback); - if (!eventListeners.size) { - eventListenersMap.delete(type); - } - } - } - dispatchEvent(event) { - const composedPath = [this]; - let parent = this.__eventTargetParent; - if (event.composed) { - while (parent) { - composedPath.push(parent); - parent = parent.__eventTargetParent; - } - } - else { - // If the event is not composed and the event was dispatched inside - // shadow DOM, we need to stop before the host of the shadow DOM. - while (parent && parent !== this.__host) { - composedPath.push(parent); - parent = parent.__eventTargetParent; - } - } - // We need to patch various properties that would either be empty or wrong - // in this scenario. - let stopPropagation = false; - let stopImmediatePropagation = false; - let eventPhase = NONE; - let target = null; - let tmpTarget = null; - let currentTarget = null; - const originalStopPropagation = event.stopPropagation; - const originalStopImmediatePropagation = event.stopImmediatePropagation; - Object.defineProperties(event, { - target: { - get() { - return target ?? tmpTarget; - }, - ...enumerableProperty, - }, - srcElement: { - get() { - return event.target; - }, - ...enumerableProperty, - }, - currentTarget: { - get() { - return currentTarget; - }, - ...enumerableProperty, - }, - eventPhase: { - get() { - return eventPhase; - }, - ...enumerableProperty, - }, - composedPath: { - value: () => composedPath, - ...enumerableProperty, - }, - stopPropagation: { - value: () => { - stopPropagation = true; - originalStopPropagation.call(event); - }, - ...enumerableProperty, - }, - stopImmediatePropagation: { - value: () => { - stopImmediatePropagation = true; - originalStopImmediatePropagation.call(event); - }, - ...enumerableProperty, - }, - }); - // An event handler can either be a function, an object with a handleEvent - // method or null. This function takes care to call the event handler - // correctly. - const invokeEventListener = (listener, options, eventListenerMap) => { - if (typeof listener === 'function') { - listener(event); - } - else if (typeof listener?.handleEvent === 'function') { - listener.handleEvent(event); - } - if (options.once) { - eventListenerMap.delete(listener); - } - }; - // When an event is finished being dispatched, which can be after the event - // tree has been traversed or stopPropagation/stopImmediatePropagation has - // been called. Once that is the case, the currentTarget and eventPhase - // need to be reset and a value, representing whether the event has not - // been prevented, needs to be returned. - const finishDispatch = () => { - currentTarget = null; - eventPhase = NONE; - return !event.defaultPrevented; - }; - // An event starts with the capture order, where it starts from the top. - // This is done even if bubbles is set to false, which is the default. - const captureEventPath = composedPath.slice().reverse(); - // If the event target, which dispatches the event, is either in the light DOM - // or the event is not composed, the target is always itself. If that is not - // the case, the target needs to be retargeted: https://dom.spec.whatwg.org/#retarget - target = !this.__host || !event.composed ? this : null; - const retarget = (eventTargets) => { - // eslint-disable-next-line @typescript-eslint/no-this-alias - tmpTarget = this; - while (tmpTarget.__host && eventTargets.includes(tmpTarget.__host)) { - tmpTarget = tmpTarget.__host; - } - }; - for (const eventTarget of captureEventPath) { - if (!target && (!tmpTarget || tmpTarget === eventTarget.__host)) { - retarget(captureEventPath.slice(captureEventPath.indexOf(eventTarget))); - } - currentTarget = eventTarget; - eventPhase = eventTarget === event.target ? AT_TARGET : CAPTURING_PHASE; - const captureEventListeners = eventTarget.__captureEventListeners.get(event.type); - if (captureEventListeners) { - for (const [listener, options] of captureEventListeners) { - invokeEventListener(listener, options, captureEventListeners); - if (stopImmediatePropagation) { - // Event.stopImmediatePropagation() stops any following invocation - // of an event handler even on the same event target. - return finishDispatch(); - } - } - } - if (stopPropagation) { - // Event.stopPropagation() stops any following invocation - // of an event handler for any following event targets. - return finishDispatch(); - } - } - const bubbleEventPath = event.bubbles ? composedPath : [this]; - tmpTarget = null; - for (const eventTarget of bubbleEventPath) { - if (!target && - (!tmpTarget || eventTarget === tmpTarget.__host)) { - retarget(bubbleEventPath.slice(0, bubbleEventPath.indexOf(eventTarget) + 1)); - } - currentTarget = eventTarget; - eventPhase = eventTarget === event.target ? AT_TARGET : BUBBLING_PHASE; - const captureEventListeners = eventTarget.__eventListeners.get(event.type); - if (captureEventListeners) { - for (const [listener, options] of captureEventListeners) { - invokeEventListener(listener, options, captureEventListeners); - if (stopImmediatePropagation) { - // Event.stopImmediatePropagation() stops any following invocation - // of an event handler even on the same event target. - return finishDispatch(); - } - } - } - if (stopPropagation) { - // Event.stopPropagation() stops any following invocation - // of an event handler for any following event targets. - return finishDispatch(); - } - } - return finishDispatch(); - } -} -const EventTargetShimWithRealType = EventTarget; -export { EventTargetShimWithRealType as EventTarget, EventTargetShimWithRealType as EventTargetShim, }; -const enumerableProperty = { __proto__: null }; -enumerableProperty.enumerable = true; -Object.freeze(enumerableProperty); -// TODO: Remove this when we remove support for vm modules (--experimental-vm-modules). -const EventShim = (_a = class Event { - constructor(type, options = {}) { - _Event_cancelable.set(this, false); - _Event_bubbles.set(this, false); - _Event_composed.set(this, false); - _Event_defaultPrevented.set(this, false); - _Event_timestamp.set(this, Date.now()); - _Event_propagationStopped.set(this, false); - _Event_type.set(this, void 0); - _Event_target.set(this, void 0); - _Event_isBeingDispatched.set(this, void 0); - this.NONE = NONE; - this.CAPTURING_PHASE = CAPTURING_PHASE; - this.AT_TARGET = AT_TARGET; - this.BUBBLING_PHASE = BUBBLING_PHASE; - if (arguments.length === 0) - throw new Error(`The type argument must be specified`); - if (typeof options !== 'object' || !options) { - throw new Error(`The "options" argument must be an object`); - } - const { bubbles, cancelable, composed } = options; - __classPrivateFieldSet(this, _Event_cancelable, !!cancelable, "f"); - __classPrivateFieldSet(this, _Event_bubbles, !!bubbles, "f"); - __classPrivateFieldSet(this, _Event_composed, !!composed, "f"); - __classPrivateFieldSet(this, _Event_type, `${type}`, "f"); - __classPrivateFieldSet(this, _Event_target, null, "f"); - __classPrivateFieldSet(this, _Event_isBeingDispatched, false, "f"); - } - initEvent(_type, _bubbles, _cancelable) { - throw new Error('Method not implemented.'); - } - stopImmediatePropagation() { - this.stopPropagation(); - } - preventDefault() { - __classPrivateFieldSet(this, _Event_defaultPrevented, true, "f"); - } - get target() { - return __classPrivateFieldGet(this, _Event_target, "f"); - } - get currentTarget() { - return __classPrivateFieldGet(this, _Event_target, "f"); - } - get srcElement() { - return __classPrivateFieldGet(this, _Event_target, "f"); - } - get type() { - return __classPrivateFieldGet(this, _Event_type, "f"); - } - get cancelable() { - return __classPrivateFieldGet(this, _Event_cancelable, "f"); - } - get defaultPrevented() { - return __classPrivateFieldGet(this, _Event_cancelable, "f") && __classPrivateFieldGet(this, _Event_defaultPrevented, "f"); - } - get timeStamp() { - return __classPrivateFieldGet(this, _Event_timestamp, "f"); - } - composedPath() { - return __classPrivateFieldGet(this, _Event_isBeingDispatched, "f") ? [__classPrivateFieldGet(this, _Event_target, "f")] : []; - } - get returnValue() { - return !__classPrivateFieldGet(this, _Event_cancelable, "f") || !__classPrivateFieldGet(this, _Event_defaultPrevented, "f"); - } - get bubbles() { - return __classPrivateFieldGet(this, _Event_bubbles, "f"); - } - get composed() { - return __classPrivateFieldGet(this, _Event_composed, "f"); - } - get eventPhase() { - return __classPrivateFieldGet(this, _Event_isBeingDispatched, "f") ? _a.AT_TARGET : _a.NONE; - } - get cancelBubble() { - return __classPrivateFieldGet(this, _Event_propagationStopped, "f"); - } - set cancelBubble(value) { - if (value) { - __classPrivateFieldSet(this, _Event_propagationStopped, true, "f"); - } - } - stopPropagation() { - __classPrivateFieldSet(this, _Event_propagationStopped, true, "f"); - } - get isTrusted() { - return false; - } - }, - _Event_cancelable = new WeakMap(), - _Event_bubbles = new WeakMap(), - _Event_composed = new WeakMap(), - _Event_defaultPrevented = new WeakMap(), - _Event_timestamp = new WeakMap(), - _Event_propagationStopped = new WeakMap(), - _Event_type = new WeakMap(), - _Event_target = new WeakMap(), - _Event_isBeingDispatched = new WeakMap(), - _a.NONE = NONE, - _a.CAPTURING_PHASE = CAPTURING_PHASE, - _a.AT_TARGET = AT_TARGET, - _a.BUBBLING_PHASE = BUBBLING_PHASE, - _a); -Object.defineProperties(EventShim.prototype, { - initEvent: enumerableProperty, - stopImmediatePropagation: enumerableProperty, - preventDefault: enumerableProperty, - target: enumerableProperty, - currentTarget: enumerableProperty, - srcElement: enumerableProperty, - type: enumerableProperty, - cancelable: enumerableProperty, - defaultPrevented: enumerableProperty, - timeStamp: enumerableProperty, - composedPath: enumerableProperty, - returnValue: enumerableProperty, - bubbles: enumerableProperty, - composed: enumerableProperty, - eventPhase: enumerableProperty, - cancelBubble: enumerableProperty, - stopPropagation: enumerableProperty, - isTrusted: enumerableProperty, -}); -// TODO: Remove this when we remove support for vm modules (--experimental-vm-modules). -const CustomEventShim = (_b = class CustomEvent extends EventShim { - constructor(type, options = {}) { - super(type, options); - _CustomEvent_detail.set(this, void 0); - __classPrivateFieldSet(this, _CustomEvent_detail, options?.detail ?? null, "f"); - } - initCustomEvent(_type, _bubbles, _cancelable, _detail) { - throw new Error('Method not implemented.'); - } - get detail() { - return __classPrivateFieldGet(this, _CustomEvent_detail, "f"); - } - }, - _CustomEvent_detail = new WeakMap(), - _b); -Object.defineProperties(CustomEventShim.prototype, { - detail: enumerableProperty, -}); -const EventShimWithRealType = EventShim; -const CustomEventShimWithRealType = CustomEventShim; -export { EventShimWithRealType as Event, EventShimWithRealType as EventShim, CustomEventShimWithRealType as CustomEvent, CustomEventShimWithRealType as CustomEventShim, }; -//# sourceMappingURL=events.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/events.js.map b/ui/node_modules/@lit-labs/ssr-dom-shim/lib/events.js.map deleted file mode 100644 index 3e71b09..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/lib/events.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"events.js","sourceRoot":"","sources":["../src/lib/events.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;AA2BH,MAAM,sBAAsB,GAAG,CAC7B,OAAsD,EACtD,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC;AAE5E,eAAe;AACf,MAAM,IAAI,GAAG,CAAC,CAAC;AACf,MAAM,eAAe,GAAG,CAAC,CAAC;AAC1B,MAAM,SAAS,GAAG,CAAC,CAAC;AACpB,MAAM,cAAc,GAAG,CAAC,CAAC;AAEzB,qCAAqC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C1C,2BAA2B,IAAI,eAAe,GAC/C,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * This is a basic implementation of an EventTarget, Event and CustomEvent.\n *\n * This is not fully spec compliant (e.g. validation),\n * but should work well enough for our use cases.\n *\n * @see https://dom.spec.whatwg.org/#eventtarget\n * @see https://dom.spec.whatwg.org/#event\n * @see https://dom.spec.whatwg.org/#customevent\n */\n\nexport interface EventTargetShimMeta {\n /**\n * The event target parent represents the previous event target for an event\n * in capture phase and the next event target for a bubbling event.\n * Note that this is not the element parent\n */\n __eventTargetParent: globalThis.EventTarget | undefined;\n /**\n * The host event target/element of this event target, if this event target\n * is inside a Shadow DOM.\n */\n __host: globalThis.EventTarget | undefined;\n}\n\nconst isCaptureEventListener = (\n options: undefined | AddEventListenerOptions | boolean\n) => (typeof options === 'boolean' ? options : (options?.capture ?? false));\n\n// Event phases\nconst NONE = 0;\nconst CAPTURING_PHASE = 1;\nconst AT_TARGET = 2;\nconst BUBBLING_PHASE = 3;\n\n// Shim the global EventTarget object\nclass EventTarget implements globalThis.EventTarget, EventTargetShimMeta {\n private __eventListeners = new Map<\n string,\n Map\n >();\n private __captureEventListeners = new Map<\n string,\n Map\n >();\n __eventTargetParent: EventTarget | undefined;\n __host: EventTarget | undefined;\n\n addEventListener(\n type: string,\n callback: EventListenerOrEventListenerObject | null,\n options?: AddEventListenerOptions | boolean\n ): void {\n if (callback === undefined || callback === null) {\n return;\n }\n const eventListenersMap = isCaptureEventListener(options)\n ? this.__captureEventListeners\n : this.__eventListeners;\n let eventListeners = eventListenersMap.get(type);\n if (eventListeners === undefined) {\n eventListeners = new Map();\n eventListenersMap.set(type, eventListeners);\n } else if (eventListeners.has(callback)) {\n return;\n }\n\n const normalizedOptions =\n typeof options === 'object' && options ? options : {};\n normalizedOptions.signal?.addEventListener('abort', () =>\n this.removeEventListener(type, callback, options)\n );\n eventListeners.set(callback, normalizedOptions ?? {});\n }\n removeEventListener(\n type: string,\n callback: EventListenerOrEventListenerObject | null,\n options?: EventListenerOptions | boolean\n ): void {\n if (callback === undefined || callback === null) {\n return;\n }\n const eventListenersMap = isCaptureEventListener(options)\n ? this.__captureEventListeners\n : this.__eventListeners;\n const eventListeners = eventListenersMap.get(type);\n if (eventListeners !== undefined) {\n eventListeners.delete(callback);\n if (!eventListeners.size) {\n eventListenersMap.delete(type);\n }\n }\n }\n dispatchEvent(event: Event): boolean {\n const composedPath: EventTarget[] = [this];\n let parent = this.__eventTargetParent;\n if (event.composed) {\n while (parent) {\n composedPath.push(parent);\n parent = parent.__eventTargetParent;\n }\n } else {\n // If the event is not composed and the event was dispatched inside\n // shadow DOM, we need to stop before the host of the shadow DOM.\n while (parent && parent !== this.__host) {\n composedPath.push(parent);\n parent = parent.__eventTargetParent;\n }\n }\n\n // We need to patch various properties that would either be empty or wrong\n // in this scenario.\n let stopPropagation = false;\n let stopImmediatePropagation = false;\n let eventPhase = NONE;\n let target: EventTarget | null = null;\n let tmpTarget: EventTarget | null = null;\n let currentTarget: EventTarget | null = null;\n const originalStopPropagation = event.stopPropagation;\n const originalStopImmediatePropagation = event.stopImmediatePropagation;\n Object.defineProperties(event, {\n target: {\n get() {\n return target ?? tmpTarget;\n },\n ...enumerableProperty,\n },\n srcElement: {\n get() {\n return event.target;\n },\n ...enumerableProperty,\n },\n currentTarget: {\n get() {\n return currentTarget;\n },\n ...enumerableProperty,\n },\n eventPhase: {\n get() {\n return eventPhase;\n },\n ...enumerableProperty,\n },\n composedPath: {\n value: () => composedPath,\n ...enumerableProperty,\n },\n stopPropagation: {\n value: () => {\n stopPropagation = true;\n originalStopPropagation.call(event);\n },\n ...enumerableProperty,\n },\n stopImmediatePropagation: {\n value: () => {\n stopImmediatePropagation = true;\n originalStopImmediatePropagation.call(event);\n },\n ...enumerableProperty,\n },\n });\n\n // An event handler can either be a function, an object with a handleEvent\n // method or null. This function takes care to call the event handler\n // correctly.\n const invokeEventListener = (\n listener: EventListenerOrEventListenerObject,\n options: AddEventListenerOptions,\n eventListenerMap: Map<\n EventListenerOrEventListenerObject,\n AddEventListenerOptions\n >\n ) => {\n if (typeof listener === 'function') {\n listener(event);\n } else if (typeof listener?.handleEvent === 'function') {\n listener.handleEvent(event);\n }\n if (options.once) {\n eventListenerMap.delete(listener);\n }\n };\n // When an event is finished being dispatched, which can be after the event\n // tree has been traversed or stopPropagation/stopImmediatePropagation has\n // been called. Once that is the case, the currentTarget and eventPhase\n // need to be reset and a value, representing whether the event has not\n // been prevented, needs to be returned.\n const finishDispatch = () => {\n currentTarget = null;\n eventPhase = NONE;\n return !event.defaultPrevented;\n };\n\n // An event starts with the capture order, where it starts from the top.\n // This is done even if bubbles is set to false, which is the default.\n const captureEventPath = composedPath.slice().reverse();\n // If the event target, which dispatches the event, is either in the light DOM\n // or the event is not composed, the target is always itself. If that is not\n // the case, the target needs to be retargeted: https://dom.spec.whatwg.org/#retarget\n target = !this.__host || !event.composed ? this : null;\n const retarget = (eventTargets: EventTarget[]) => {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n tmpTarget = this;\n while (tmpTarget.__host && eventTargets.includes(tmpTarget.__host)) {\n tmpTarget = tmpTarget.__host;\n }\n };\n for (const eventTarget of captureEventPath) {\n if (!target && (!tmpTarget || tmpTarget === eventTarget.__host)) {\n retarget(captureEventPath.slice(captureEventPath.indexOf(eventTarget)));\n }\n currentTarget = eventTarget;\n eventPhase = eventTarget === event.target ? AT_TARGET : CAPTURING_PHASE;\n const captureEventListeners = eventTarget.__captureEventListeners.get(\n event.type\n );\n if (captureEventListeners) {\n for (const [listener, options] of captureEventListeners) {\n invokeEventListener(listener, options, captureEventListeners);\n if (stopImmediatePropagation) {\n // Event.stopImmediatePropagation() stops any following invocation\n // of an event handler even on the same event target.\n return finishDispatch();\n }\n }\n }\n if (stopPropagation) {\n // Event.stopPropagation() stops any following invocation\n // of an event handler for any following event targets.\n return finishDispatch();\n }\n }\n\n const bubbleEventPath = event.bubbles ? composedPath : [this];\n tmpTarget = null;\n for (const eventTarget of bubbleEventPath) {\n if (\n !target &&\n (!tmpTarget || eventTarget === (tmpTarget as EventTarget).__host)\n ) {\n retarget(\n bubbleEventPath.slice(0, bubbleEventPath.indexOf(eventTarget) + 1)\n );\n }\n currentTarget = eventTarget;\n eventPhase = eventTarget === event.target ? AT_TARGET : BUBBLING_PHASE;\n const captureEventListeners = eventTarget.__eventListeners.get(\n event.type\n );\n if (captureEventListeners) {\n for (const [listener, options] of captureEventListeners) {\n invokeEventListener(listener, options, captureEventListeners);\n if (stopImmediatePropagation) {\n // Event.stopImmediatePropagation() stops any following invocation\n // of an event handler even on the same event target.\n return finishDispatch();\n }\n }\n }\n if (stopPropagation) {\n // Event.stopPropagation() stops any following invocation\n // of an event handler for any following event targets.\n return finishDispatch();\n }\n }\n return finishDispatch();\n }\n}\n\nconst EventTargetShimWithRealType =\n EventTarget as object as typeof globalThis.EventTarget;\nexport {\n EventTargetShimWithRealType as EventTarget,\n EventTargetShimWithRealType as EventTargetShim,\n};\n\n/* Adapted from Node.js https://github.com/nodejs/node/blob/main/lib/internal/event_target.js */\n\ntype EventInterface = Event;\n\nconst enumerableProperty: Record = {__proto__: null};\nenumerableProperty.enumerable = true;\nObject.freeze(enumerableProperty);\n\n// TODO: Remove this when we remove support for vm modules (--experimental-vm-modules).\nconst EventShim = class Event implements EventInterface {\n #cancelable = false;\n #bubbles = false;\n #composed = false;\n #defaultPrevented = false;\n #timestamp = Date.now();\n #propagationStopped = false;\n #type: string;\n #target: globalThis.EventTarget | null;\n #isBeingDispatched: boolean;\n readonly NONE = NONE;\n readonly CAPTURING_PHASE = CAPTURING_PHASE;\n readonly AT_TARGET = AT_TARGET;\n readonly BUBBLING_PHASE = BUBBLING_PHASE;\n static readonly NONE = NONE;\n static readonly CAPTURING_PHASE = CAPTURING_PHASE;\n static readonly AT_TARGET = AT_TARGET;\n static readonly BUBBLING_PHASE = BUBBLING_PHASE;\n\n constructor(type: string, options: EventInit = {}) {\n if (arguments.length === 0)\n throw new Error(`The type argument must be specified`);\n if (typeof options !== 'object' || !options) {\n throw new Error(`The \"options\" argument must be an object`);\n }\n const {bubbles, cancelable, composed} = options;\n this.#cancelable = !!cancelable;\n this.#bubbles = !!bubbles;\n this.#composed = !!composed;\n\n this.#type = `${type}`;\n this.#target = null;\n this.#isBeingDispatched = false;\n }\n\n initEvent(_type: string, _bubbles?: boolean, _cancelable?: boolean): void {\n throw new Error('Method not implemented.');\n }\n\n stopImmediatePropagation() {\n this.stopPropagation();\n }\n\n preventDefault() {\n this.#defaultPrevented = true;\n }\n\n get target(): globalThis.EventTarget | null {\n return this.#target;\n }\n\n get currentTarget(): globalThis.EventTarget | null {\n return this.#target;\n }\n\n get srcElement(): globalThis.EventTarget | null {\n return this.#target;\n }\n\n get type(): string {\n return this.#type;\n }\n\n get cancelable(): boolean {\n return this.#cancelable;\n }\n\n get defaultPrevented(): boolean {\n return this.#cancelable && this.#defaultPrevented;\n }\n\n get timeStamp(): number {\n return this.#timestamp;\n }\n\n composedPath(): globalThis.EventTarget[] {\n return this.#isBeingDispatched ? [this.#target!] : [];\n }\n\n get returnValue(): boolean {\n return !this.#cancelable || !this.#defaultPrevented;\n }\n\n get bubbles(): boolean {\n return this.#bubbles;\n }\n\n get composed(): boolean {\n return this.#composed;\n }\n\n get eventPhase(): number {\n return this.#isBeingDispatched ? Event.AT_TARGET : Event.NONE;\n }\n\n get cancelBubble(): boolean {\n return this.#propagationStopped;\n }\n\n set cancelBubble(value) {\n if (value) {\n this.#propagationStopped = true;\n }\n }\n\n stopPropagation(): void {\n this.#propagationStopped = true;\n }\n\n get isTrusted(): boolean {\n return false;\n }\n};\n\nObject.defineProperties(EventShim.prototype, {\n initEvent: enumerableProperty,\n stopImmediatePropagation: enumerableProperty,\n preventDefault: enumerableProperty,\n target: enumerableProperty,\n currentTarget: enumerableProperty,\n srcElement: enumerableProperty,\n type: enumerableProperty,\n cancelable: enumerableProperty,\n defaultPrevented: enumerableProperty,\n timeStamp: enumerableProperty,\n composedPath: enumerableProperty,\n returnValue: enumerableProperty,\n bubbles: enumerableProperty,\n composed: enumerableProperty,\n eventPhase: enumerableProperty,\n cancelBubble: enumerableProperty,\n stopPropagation: enumerableProperty,\n isTrusted: enumerableProperty,\n});\n\ntype CustomEventInterface = CustomEvent;\n\n// TODO: Remove this when we remove support for vm modules (--experimental-vm-modules).\nconst CustomEventShim = class CustomEvent\n extends EventShim\n implements CustomEventInterface\n{\n #detail: T | null;\n\n constructor(type: string, options: CustomEventInit = {}) {\n super(type, options);\n this.#detail = options?.detail ?? null;\n }\n\n initCustomEvent(\n _type: string,\n _bubbles?: boolean,\n _cancelable?: boolean,\n _detail?: T\n ): void {\n throw new Error('Method not implemented.');\n }\n\n get detail(): T {\n return this.#detail!;\n }\n};\n\nObject.defineProperties(CustomEventShim.prototype, {\n detail: enumerableProperty,\n});\n\nconst EventShimWithRealType = EventShim as object as typeof Event;\nconst CustomEventShimWithRealType =\n CustomEventShim as object as typeof CustomEvent;\nexport {\n EventShimWithRealType as Event,\n EventShimWithRealType as EventShim,\n CustomEventShimWithRealType as CustomEvent,\n CustomEventShimWithRealType as CustomEventShim,\n};\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/package.json b/ui/node_modules/@lit-labs/ssr-dom-shim/package.json deleted file mode 100644 index 58f53c4..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/package.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "name": "@lit-labs/ssr-dom-shim", - "version": "1.5.1", - "publishConfig": { - "access": "public" - }, - "description": "DOM shim for Lit Server Side Rendering (SSR)", - "license": "BSD-3-Clause", - "author": "Google LLC", - "homepage": "https://github.com/lit/lit/tree/main/packages/labs/ssr-dom-shim", - "repository": { - "type": "git", - "url": "git+https://github.com/lit/lit.git", - "directory": "packages/labs/ssr-dom-shim" - }, - "main": "index.js", - "typings": "index.d.ts", - "type": "module", - "exports": { - ".": { - "types": "./index.d.ts", - "default": "./index.js" - }, - "./register-css-hook.js": { - "types": "./register-css-hook.d.ts", - "default": "./register-css-hook.js" - } - }, - "files": [ - "index.{d.ts,d.ts.map,js,js.map}", - "register-css-hook.{d.ts,d.ts.map,js,js.map}", - "lib/" - ], - "scripts": { - "build": "wireit", - "build:ts": "wireit", - "test": "wireit" - }, - "wireit": { - "build": { - "dependencies": [ - "build:ts" - ] - }, - "build:ts": { - "command": "tsc --build --pretty", - "clean": "if-file-deleted", - "files": [ - "src/**/*.ts", - "tsconfig.json" - ], - "output": [ - "lib/", - "index.{d.ts,d.ts.map,js,js.map}", - "tsconfig.tsbuildinfo" - ] - }, - "test": { - "command": "uvu test \"_test\\.js$\"", - "dependencies": [ - "build" - ], - "env": { - "NODE_OPTIONS": "--enable-source-maps --import ./register-css-hook.js" - }, - "output": [] - } - } -} diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/register-css-hook.d.ts b/ui/node_modules/@lit-labs/ssr-dom-shim/register-css-hook.d.ts deleted file mode 100644 index 07ad53c..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/register-css-hook.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @license - * Copyright 2024 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -export {}; -//# sourceMappingURL=register-css-hook.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/register-css-hook.d.ts.map b/ui/node_modules/@lit-labs/ssr-dom-shim/register-css-hook.d.ts.map deleted file mode 100644 index 72be620..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/register-css-hook.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"register-css-hook.d.ts","sourceRoot":"","sources":["src/register-css-hook.ts"],"names":[],"mappings":"AAAA;;;;GAIG"} \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/register-css-hook.js b/ui/node_modules/@lit-labs/ssr-dom-shim/register-css-hook.js deleted file mode 100644 index 06ee72f..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/register-css-hook.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * @license - * Copyright 2024 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -try { - // Detect whether the environment supports importing CSS files. - const cssImportsSupported = await import('./detection.css', { - with: { type: 'css' }, - }) - .then(() => true) - .catch(() => false); - // Avoid breaking non-Node.js environments by checking for the - // existance of register on the node:module import. - const nodeModule = cssImportsSupported ? null : await import('node:module'); - if (nodeModule && 'register' in nodeModule.default) { - /** - * This module registers a Node.js Hook for loading CSS - * files as CSSStyleSheet instances. - * - * @example - * - * ```ts - * import styles from 'my-styles.css' with {type: 'css'}; - * ``` - * - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import/with - * @see https://nodejs.org/api/module.html#customization-hooks - */ - nodeModule.default.register('./lib/css-hook.js', { - parentURL: import.meta.url, - }); - } -} -catch { - /* empty */ -} -export {}; -//# sourceMappingURL=register-css-hook.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit-labs/ssr-dom-shim/register-css-hook.js.map b/ui/node_modules/@lit-labs/ssr-dom-shim/register-css-hook.js.map deleted file mode 100644 index a9c80d8..0000000 --- a/ui/node_modules/@lit-labs/ssr-dom-shim/register-css-hook.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"register-css-hook.js","sourceRoot":"","sources":["src/register-css-hook.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,IAAI,CAAC;IACH,+DAA+D;IAC/D,MAAM,mBAAmB,GAAG,MAAM,MAAM,CAAC,iBAAiB,EAAE;QAC1D,IAAI,EAAE,EAAC,IAAI,EAAE,KAAK,EAAC;KACpB,CAAC;SACC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;SAChB,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;IAEtB,8DAA8D;IAC9D,mDAAmD;IACnD,MAAM,UAAU,GAAG,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,CAAC;IAC5E,IAAI,UAAU,IAAI,UAAU,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;QACnD;;;;;;;;;;;;WAYG;QACH,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,EAAE;YAC/C,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;SAC3B,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAAC,MAAM,CAAC;IACP,WAAW;AACb,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2024 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\ntry {\n // Detect whether the environment supports importing CSS files.\n const cssImportsSupported = await import('./detection.css', {\n with: {type: 'css'},\n })\n .then(() => true)\n .catch(() => false);\n\n // Avoid breaking non-Node.js environments by checking for the\n // existance of register on the node:module import.\n const nodeModule = cssImportsSupported ? null : await import('node:module');\n if (nodeModule && 'register' in nodeModule.default) {\n /**\n * This module registers a Node.js Hook for loading CSS\n * files as CSSStyleSheet instances.\n *\n * @example\n *\n * ```ts\n * import styles from 'my-styles.css' with {type: 'css'};\n * ```\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import/with\n * @see https://nodejs.org/api/module.html#customization-hooks\n */\n nodeModule.default.register('./lib/css-hook.js', {\n parentURL: import.meta.url,\n });\n }\n} catch {\n /* empty */\n}\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/LICENSE b/ui/node_modules/@lit/reactive-element/LICENSE deleted file mode 100644 index be7a97b..0000000 --- a/ui/node_modules/@lit/reactive-element/LICENSE +++ /dev/null @@ -1,28 +0,0 @@ -BSD 3-Clause License - -Copyright (c) 2017 Google LLC. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -3. Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/README.md b/ui/node_modules/@lit/reactive-element/README.md deleted file mode 100644 index a60331f..0000000 --- a/ui/node_modules/@lit/reactive-element/README.md +++ /dev/null @@ -1,85 +0,0 @@ -# ReactiveElement - -A simple low level base class for creating fast, lightweight web components. - -[![Build Status](https://github.com/lit/lit/workflows/Tests/badge.svg)](https://github.com/lit/lit/actions?query=workflow%3ATests) -[![Published on npm](https://img.shields.io/npm/v/@lit/reactive-element?logo=npm)](https://www.npmjs.com/package/@lit/reactive-element) -[![Join our Discord](https://img.shields.io/badge/discord-join%20chat-5865F2.svg?logo=discord&logoColor=fff)](https://lit.dev/discord/) -[![Mentioned in Awesome Lit](https://awesome.re/mentioned-badge.svg)](https://github.com/web-padawan/awesome-lit) - -## Documentation - -Full documentation is available at [lit.dev/docs/api/ReactiveElement/](https://lit.dev/docs/api/ReactiveElement/). - -## Overview - -`ReactiveElement` is a base class for writing web components that react to changes in properties and attributes. `ReactiveElement` adds reactive properties and a batching, asynchronous update lifecycle to the standard web component APIs. Subclasses can respond to changes and update the DOM to reflect the element state. - -`ReactiveElement` doesn't include a DOM template system, but can easily be extended to add one by overriding the `update()` method to call the template library. `LitElement` is such an extension that adds `lit-html` templating. - -## Example - -```ts -import { - ReactiveElement, - html, - css, - customElement, - property, - PropertyValues, -} from '@lit/reactive-element'; - -// This decorator defines the element. -@customElement('my-element') -export class MyElement extends ReactiveElement { - // This decorator creates a property accessor that triggers rendering and - // an observed attribute. - @property() - mood = 'great'; - - static styles = css` - span { - color: green; - } - `; - - contentEl?: HTMLSpanElement; - - // One time setup of shadowRoot content. - createRenderRoot() { - const shadowRoot = super.createRenderRoot(); - shadowRoot.innerHTML = `Web Components are !`; - this.contentEl = shadowRoot.firstElementChild; - return shadowRoot; - } - - // Use a DOM rendering library of your choice or manually update the DOM. - update(changedProperties: PropertyValues) { - super.update(changedProperties); - this.contentEl.textContent = this.mood; - } -} -``` - -```html - -``` - -Note, this example uses decorators to create properties. Decorators are a proposed -standard currently available in [TypeScript](https://www.typescriptlang.org/) or [Babel](https://babeljs.io/docs/en/babel-plugin-proposal-decorators). ReactiveElement also supports a [vanilla JavaScript method](https://lit.dev/docs/components/properties/#declaring-properties-in-a-static-properties-field) of declaring reactive properties. - -## Installation - -```bash -$ npm install @lit/reactive-element -``` - -Or use from `lit`: - -```bash -$ npm install lit -``` - -## Contributing - -Please see [CONTRIBUTING.md](../../CONTRIBUTING.md). diff --git a/ui/node_modules/@lit/reactive-element/css-tag.d.ts b/ui/node_modules/@lit/reactive-element/css-tag.d.ts deleted file mode 100644 index 1143019..0000000 --- a/ui/node_modules/@lit/reactive-element/css-tag.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -/** - * Whether the current browser supports `adoptedStyleSheets`. - */ -export declare const supportsAdoptingStyleSheets: boolean; -/** - * A CSSResult or native CSSStyleSheet. - * - * In browsers that support constructible CSS style sheets, CSSStyleSheet - * object can be used for styling along side CSSResult from the `css` - * template tag. - */ -export type CSSResultOrNative = CSSResult | CSSStyleSheet; -export type CSSResultArray = Array; -/** - * A single CSSResult, CSSStyleSheet, or an array or nested arrays of those. - */ -export type CSSResultGroup = CSSResultOrNative | CSSResultArray; -/** - * A container for a string of CSS text, that may be used to create a CSSStyleSheet. - * - * CSSResult is the return value of `css`-tagged template literals and - * `unsafeCSS()`. In order to ensure that CSSResults are only created via the - * `css` tag and `unsafeCSS()`, CSSResult cannot be constructed directly. - */ -export declare class CSSResult { - ['_$cssResult$']: boolean; - readonly cssText: string; - private _styleSheet?; - private _strings; - private constructor(); - get styleSheet(): CSSStyleSheet | undefined; - toString(): string; -} -/** - * Wrap a value for interpolation in a {@linkcode css} tagged template literal. - * - * This is unsafe because untrusted CSS text can be used to phone home - * or exfiltrate data to an attacker controlled site. Take care to only use - * this with trusted input. - */ -export declare const unsafeCSS: (value: unknown) => CSSResult; -/** - * A template literal tag which can be used with LitElement's - * {@linkcode LitElement.styles} property to set element styles. - * - * For security reasons, only literal string values and number may be used in - * embedded expressions. To incorporate non-literal values {@linkcode unsafeCSS} - * may be used inside an expression. - */ -export declare const css: (strings: TemplateStringsArray, ...values: (CSSResultGroup | number)[]) => CSSResult; -/** - * Applies the given styles to a `shadowRoot`. When Shadow DOM is - * available but `adoptedStyleSheets` is not, styles are appended to the - * `shadowRoot` to [mimic the native feature](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/adoptedStyleSheets). - * Note, when shimming is used, any styles that are subsequently placed into - * the shadowRoot should be placed *before* any shimmed adopted styles. This - * will match spec behavior that gives adopted sheets precedence over styles in - * shadowRoot. - */ -export declare const adoptStyles: (renderRoot: ShadowRoot, styles: Array) => void; -export declare const getCompatibleStyle: (s: CSSResultOrNative) => CSSResultOrNative; -//# sourceMappingURL=css-tag.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/css-tag.d.ts.map b/ui/node_modules/@lit/reactive-element/css-tag.d.ts.map deleted file mode 100644 index 5a45fea..0000000 --- a/ui/node_modules/@lit/reactive-element/css-tag.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"css-tag.d.ts","sourceRoot":"","sources":["../src/css-tag.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,OAIJ,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,aAAa,CAAC;AAE1D,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,iBAAiB,GAAG,cAAc,CAAC,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG,cAAc,CAAC;AAMhE;;;;;;GAMG;AACH,qBAAa,SAAS;IAEpB,CAAC,cAAc,CAAC,UAAQ;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,WAAW,CAAC,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAmC;IAEnD,OAAO;IAgBP,IAAI,UAAU,IAAI,aAAa,GAAG,SAAS,CAoB1C;IAED,QAAQ,IAAI,MAAM;CAGnB;AAyBD;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,OAAO,cAKrC,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,GAAG,GACd,SAAS,oBAAoB,EAC7B,GAAG,QAAQ,CAAC,cAAc,GAAG,MAAM,CAAC,EAAE,KACrC,SAaF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,GACtB,YAAY,UAAU,EACtB,QAAQ,KAAK,CAAC,iBAAiB,CAAC,SAkBjC,CAAC;AAUF,eAAO,MAAM,kBAAkB,MAGrB,iBAAiB,sBAEwC,CAAC"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/css-tag.js b/ui/node_modules/@lit/reactive-element/css-tag.js deleted file mode 100644 index b84a548..0000000 --- a/ui/node_modules/@lit/reactive-element/css-tag.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n("string"==typeof t?t:t+"",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of o){const o=document.createElement("style"),n=t.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS}; -//# sourceMappingURL=css-tag.js.map diff --git a/ui/node_modules/@lit/reactive-element/css-tag.js.map b/ui/node_modules/@lit/reactive-element/css-tag.js.map deleted file mode 100644 index 5ebea2a..0000000 --- a/ui/node_modules/@lit/reactive-element/css-tag.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"css-tag.js","sources":["src/css-tag.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nconst NODE_MODE = false;\n\n// Allows minifiers to rename references to globalThis\nconst global = globalThis;\n\n/**\n * Whether the current browser supports `adoptedStyleSheets`.\n */\nexport const supportsAdoptingStyleSheets: boolean =\n global.ShadowRoot &&\n (global.ShadyCSS === undefined || global.ShadyCSS.nativeShadow) &&\n 'adoptedStyleSheets' in Document.prototype &&\n 'replace' in CSSStyleSheet.prototype;\n\n/**\n * A CSSResult or native CSSStyleSheet.\n *\n * In browsers that support constructible CSS style sheets, CSSStyleSheet\n * object can be used for styling along side CSSResult from the `css`\n * template tag.\n */\nexport type CSSResultOrNative = CSSResult | CSSStyleSheet;\n\nexport type CSSResultArray = Array;\n\n/**\n * A single CSSResult, CSSStyleSheet, or an array or nested arrays of those.\n */\nexport type CSSResultGroup = CSSResultOrNative | CSSResultArray;\n\nconst constructionToken = Symbol();\n\nconst cssTagCache = new WeakMap();\n\n/**\n * A container for a string of CSS text, that may be used to create a CSSStyleSheet.\n *\n * CSSResult is the return value of `css`-tagged template literals and\n * `unsafeCSS()`. In order to ensure that CSSResults are only created via the\n * `css` tag and `unsafeCSS()`, CSSResult cannot be constructed directly.\n */\nexport class CSSResult {\n // This property needs to remain unminified.\n ['_$cssResult$'] = true;\n readonly cssText: string;\n private _styleSheet?: CSSStyleSheet;\n private _strings: TemplateStringsArray | undefined;\n\n private constructor(\n cssText: string,\n strings: TemplateStringsArray | undefined,\n safeToken: symbol\n ) {\n if (safeToken !== constructionToken) {\n throw new Error(\n 'CSSResult is not constructable. Use `unsafeCSS` or `css` instead.'\n );\n }\n this.cssText = cssText;\n this._strings = strings;\n }\n\n // This is a getter so that it's lazy. In practice, this means stylesheets\n // are not created until the first element instance is made.\n get styleSheet(): CSSStyleSheet | undefined {\n // If `supportsAdoptingStyleSheets` is true then we assume CSSStyleSheet is\n // constructable.\n let styleSheet = this._styleSheet;\n const strings = this._strings;\n if (supportsAdoptingStyleSheets && styleSheet === undefined) {\n const cacheable = strings !== undefined && strings.length === 1;\n if (cacheable) {\n styleSheet = cssTagCache.get(strings);\n }\n if (styleSheet === undefined) {\n (this._styleSheet = styleSheet = new CSSStyleSheet()).replaceSync(\n this.cssText\n );\n if (cacheable) {\n cssTagCache.set(strings, styleSheet);\n }\n }\n }\n return styleSheet;\n }\n\n toString(): string {\n return this.cssText;\n }\n}\n\ntype ConstructableCSSResult = CSSResult & {\n new (\n cssText: string,\n strings: TemplateStringsArray | undefined,\n safeToken: symbol\n ): CSSResult;\n};\n\nconst textFromCSSResult = (value: CSSResultGroup | number) => {\n // This property needs to remain unminified.\n if ((value as CSSResult)['_$cssResult$'] === true) {\n return (value as CSSResult).cssText;\n } else if (typeof value === 'number') {\n return value;\n } else {\n throw new Error(\n `Value passed to 'css' function must be a 'css' function result: ` +\n `${value}. Use 'unsafeCSS' to pass non-literal values, but take care ` +\n `to ensure page security.`\n );\n }\n};\n\n/**\n * Wrap a value for interpolation in a {@linkcode css} tagged template literal.\n *\n * This is unsafe because untrusted CSS text can be used to phone home\n * or exfiltrate data to an attacker controlled site. Take care to only use\n * this with trusted input.\n */\nexport const unsafeCSS = (value: unknown) =>\n new (CSSResult as ConstructableCSSResult)(\n typeof value === 'string' ? value : String(value),\n undefined,\n constructionToken\n );\n\n/**\n * A template literal tag which can be used with LitElement's\n * {@linkcode LitElement.styles} property to set element styles.\n *\n * For security reasons, only literal string values and number may be used in\n * embedded expressions. To incorporate non-literal values {@linkcode unsafeCSS}\n * may be used inside an expression.\n */\nexport const css = (\n strings: TemplateStringsArray,\n ...values: (CSSResultGroup | number)[]\n): CSSResult => {\n const cssText =\n strings.length === 1\n ? strings[0]\n : values.reduce(\n (acc, v, idx) => acc + textFromCSSResult(v) + strings[idx + 1],\n strings[0]\n );\n return new (CSSResult as ConstructableCSSResult)(\n cssText,\n strings,\n constructionToken\n );\n};\n\n/**\n * Applies the given styles to a `shadowRoot`. When Shadow DOM is\n * available but `adoptedStyleSheets` is not, styles are appended to the\n * `shadowRoot` to [mimic the native feature](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/adoptedStyleSheets).\n * Note, when shimming is used, any styles that are subsequently placed into\n * the shadowRoot should be placed *before* any shimmed adopted styles. This\n * will match spec behavior that gives adopted sheets precedence over styles in\n * shadowRoot.\n */\nexport const adoptStyles = (\n renderRoot: ShadowRoot,\n styles: Array\n) => {\n if (supportsAdoptingStyleSheets) {\n (renderRoot as ShadowRoot).adoptedStyleSheets = styles.map((s) =>\n s instanceof CSSStyleSheet ? s : s.styleSheet!\n );\n } else {\n for (const s of styles) {\n const style = document.createElement('style');\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const nonce = (global as any)['litNonce'];\n if (nonce !== undefined) {\n style.setAttribute('nonce', nonce);\n }\n style.textContent = (s as CSSResult).cssText;\n renderRoot.appendChild(style);\n }\n }\n};\n\nconst cssResultFromStyleSheet = (sheet: CSSStyleSheet) => {\n let cssText = '';\n for (const rule of sheet.cssRules) {\n cssText += rule.cssText;\n }\n return unsafeCSS(cssText);\n};\n\nexport const getCompatibleStyle =\n supportsAdoptingStyleSheets ||\n (NODE_MODE && global.CSSStyleSheet === undefined)\n ? (s: CSSResultOrNative) => s\n : (s: CSSResultOrNative) =>\n s instanceof CSSStyleSheet ? cssResultFromStyleSheet(s) : s;\n"],"names":["global","globalThis","supportsAdoptingStyleSheets","ShadowRoot","undefined","ShadyCSS","nativeShadow","Document","prototype","CSSStyleSheet","constructionToken","Symbol","cssTagCache","WeakMap","CSSResult","constructor","cssText","strings","safeToken","this","Error","_strings","styleSheet","_styleSheet","cacheable","length","get","replaceSync","set","toString","unsafeCSS","value","String","css","values","reduce","acc","v","idx","textFromCSSResult","adoptStyles","renderRoot","styles","adoptedStyleSheets","map","s","style","document","createElement","nonce","setAttribute","textContent","appendChild","getCompatibleStyle","sheet","rule","cssRules","cssResultFromStyleSheet"],"mappings":";;;;;AAMA,MAGMA,EAASC,WAKFC,EACXF,EAAOG,kBACcC,IAApBJ,EAAOK,UAA0BL,EAAOK,SAASC,eAClD,uBAAwBC,SAASC,WACjC,YAAaC,cAAcD,UAkBvBE,EAAoBC,SAEpBC,EAAc,IAAIC,cASXC,EAOX,WAAAC,CACEC,EACAC,EACAC,GAEA,GAVFC,KAAe,cAAI,EAUbD,IAAcR,EAChB,MAAUU,MACR,qEAGJD,KAAKH,QAAUA,EACfG,KAAKE,EAAWJ,CAClB,CAIA,cAAIK,GAGF,IAAIA,EAAaH,KAAKI,EACtB,MAAMN,EAAUE,KAAKE,EACrB,GAAInB,QAA8CE,IAAfkB,EAA0B,CAC3D,MAAME,OAAwBpB,IAAZa,GAA4C,IAAnBA,EAAQQ,OAC/CD,IACFF,EAAaV,EAAYc,IAAIT,SAEZb,IAAfkB,KACDH,KAAKI,EAAcD,EAAa,IAAIb,eAAiBkB,YACpDR,KAAKH,SAEHQ,GACFZ,EAAYgB,IAAIX,EAASK,GAG/B,CACA,OAAOA,CACT,CAEA,QAAAO,GACE,OAAOV,KAAKH,OACd,EAWF,MAsBac,EAAaC,GACxB,IAAKjB,EACc,iBAAViB,EAAqBA,EAAeA,EAAPC,QACpC5B,EACAM,GAWSuB,EAAM,CACjBhB,KACGiB,KAEH,MAAMlB,EACe,IAAnBC,EAAQQ,OACJR,EAAQ,GACRiB,EAAOC,OACL,CAACC,EAAKC,EAAGC,IAAQF,EA7CD,CAACL,IAEzB,IAA6C,IAAxCA,EAAkC,aACrC,OAAQA,EAAoBf,QACvB,GAAqB,iBAAVe,EAChB,OAAOA,EAEP,MAAUX,MACR,mEACKW,EADL,yFAqC2BQ,CAAkBF,GAAKpB,EAAQqB,EAAM,GAC5DrB,EAAQ,IAEhB,OAAO,IAAKH,EACVE,EACAC,EACAP,IAaS8B,EAAc,CACzBC,EACAC,KAEA,GAAIxC,EACDuC,EAA0BE,mBAAqBD,EAAOE,IAAKC,GAC1DA,aAAapC,cAAgBoC,EAAIA,EAAEvB,iBAGrC,IAAK,MAAMuB,KAAKH,EAAQ,CACtB,MAAMI,EAAQC,SAASC,cAAc,SAE/BC,EAASjD,EAAyB,cAC1BI,IAAV6C,GACFH,EAAMI,aAAa,QAASD,GAE9BH,EAAMK,YAAeN,EAAgB7B,QACrCyB,EAAWW,YAAYN,EACzB,GAYSO,EACXnD,EAEK2C,GAAyBA,EACzBA,GACCA,aAAapC,cAbW,CAAC6C,IAC/B,IAAItC,EAAU,GACd,IAAK,MAAMuC,KAAQD,EAAME,SACvBxC,GAAWuC,EAAKvC,QAElB,OAAOc,EAAUd,IAQkByC,CAAwBZ,GAAKA"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators.d.ts b/ui/node_modules/@lit/reactive-element/decorators.d.ts deleted file mode 100644 index 8dfae5d..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -export * from './decorators/custom-element.js'; -export * from './decorators/property.js'; -export * from './decorators/state.js'; -export * from './decorators/event-options.js'; -export * from './decorators/query.js'; -export * from './decorators/query-all.js'; -export * from './decorators/query-async.js'; -export * from './decorators/query-assigned-elements.js'; -export * from './decorators/query-assigned-nodes.js'; -//# sourceMappingURL=decorators.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators.d.ts.map b/ui/node_modules/@lit/reactive-element/decorators.d.ts.map deleted file mode 100644 index 7390791..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../src/decorators.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators.js b/ui/node_modules/@lit/reactive-element/decorators.js deleted file mode 100644 index 2e316a0..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators.js +++ /dev/null @@ -1,2 +0,0 @@ -export{customElement}from"./decorators/custom-element.js";export{property,standardProperty}from"./decorators/property.js";export{state}from"./decorators/state.js";export{eventOptions}from"./decorators/event-options.js";export{query}from"./decorators/query.js";export{queryAll}from"./decorators/query-all.js";export{queryAsync}from"./decorators/query-async.js";export{queryAssignedElements}from"./decorators/query-assigned-elements.js";export{queryAssignedNodes}from"./decorators/query-assigned-nodes.js"; -//# sourceMappingURL=decorators.js.map diff --git a/ui/node_modules/@lit/reactive-element/decorators.js.map b/ui/node_modules/@lit/reactive-element/decorators.js.map deleted file mode 100644 index e6068f6..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decorators.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/base.d.ts b/ui/node_modules/@lit/reactive-element/decorators/base.d.ts deleted file mode 100644 index 0d6df5e..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/base.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -/** - * Generates a public interface type that removes private and protected fields. - * This allows accepting otherwise incompatible versions of the type (e.g. from - * multiple copies of the same package in `node_modules`). - */ -export type Interface = { - [K in keyof T]: T[K]; -}; -export type Constructor = { - new (...args: any[]): T; -}; -//# sourceMappingURL=base.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/base.d.ts.map b/ui/node_modules/@lit/reactive-element/decorators/base.d.ts.map deleted file mode 100644 index e20abe3..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/base.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/decorators/base.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;KACxB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAE3B,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CACzB,CAAC"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/base.js b/ui/node_modules/@lit/reactive-element/decorators/base.js deleted file mode 100644 index 32cbc84..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/base.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -const e=(e,t,c)=>(c.configurable=!0,c.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,c),c);export{e as desc}; -//# sourceMappingURL=base.js.map diff --git a/ui/node_modules/@lit/reactive-element/decorators/base.js.map b/ui/node_modules/@lit/reactive-element/decorators/base.js.map deleted file mode 100644 index 43816b9..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/base.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"base.js","sources":["../src/decorators/base.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * Generates a public interface type that removes private and protected fields.\n * This allows accepting otherwise incompatible versions of the type (e.g. from\n * multiple copies of the same package in `node_modules`).\n */\nexport type Interface = {\n [K in keyof T]: T[K];\n};\n\nexport type Constructor = {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n new (...args: any[]): T;\n};\n\n/**\n * Wraps up a few best practices when returning a property descriptor from a\n * decorator.\n *\n * Marks the defined property as configurable, and enumerable, and handles\n * the case where we have a busted Reflect.decorate zombiefill (e.g. in Angular\n * apps).\n *\n * @internal\n */\nexport const desc = (\n obj: object,\n name: PropertyKey | ClassAccessorDecoratorContext,\n descriptor: PropertyDescriptor\n) => {\n // For backwards compatibility, we keep them configurable and enumerable.\n descriptor.configurable = true;\n descriptor.enumerable = true;\n if (\n // We check for Reflect.decorate each time, in case the zombiefill\n // is applied via lazy loading some Angular code.\n (Reflect as typeof Reflect & {decorate?: unknown}).decorate &&\n typeof name !== 'object'\n ) {\n // If we're called as a legacy decorator, and Reflect.decorate is present\n // then we have no guarantees that the returned descriptor will be\n // defined on the class, so we must apply it directly ourselves.\n\n Object.defineProperty(obj, name, descriptor);\n }\n return descriptor;\n};\n"],"names":["desc","obj","name","descriptor","configurable","enumerable","Reflect","decorate","Object","defineProperty"],"mappings":";;;;;AA8BO,MAAMA,EAAO,CAClBC,EACAC,EACAC,KAGAA,EAAWC,cAAe,EAC1BD,EAAWE,YAAa,EAIrBC,QAAkDC,UACnC,iBAATL,GAMPM,OAAOC,eAAeR,EAAKC,EAAMC,GAE5BA"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/custom-element.d.ts b/ui/node_modules/@lit/reactive-element/decorators/custom-element.d.ts deleted file mode 100644 index b73b297..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/custom-element.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import type { Constructor } from './base.js'; -/** - * Allow for custom element classes with private constructors - */ -type CustomElementClass = Omit; -export type CustomElementDecorator = { - (cls: CustomElementClass): void; - (target: CustomElementClass, context: ClassDecoratorContext>): void; -}; -/** - * Class decorator factory that defines the decorated class as a custom element. - * - * ```js - * @customElement('my-element') - * class MyElement extends LitElement { - * render() { - * return html``; - * } - * } - * ``` - * @category Decorator - * @param tagName The tag name of the custom element to define. - */ -export declare const customElement: (tagName: string) => CustomElementDecorator; -export {}; -//# sourceMappingURL=custom-element.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/custom-element.d.ts.map b/ui/node_modules/@lit/reactive-element/decorators/custom-element.d.ts.map deleted file mode 100644 index 315aae5..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/custom-element.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"custom-element.d.ts","sourceRoot":"","sources":["../../src/decorators/custom-element.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAE3C;;GAEG;AACH,KAAK,kBAAkB,GAAG,IAAI,CAAC,OAAO,WAAW,EAAE,KAAK,CAAC,CAAC;AAE1D,MAAM,MAAM,sBAAsB,GAAG;IAEnC,CAAC,GAAG,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAGhC,CACE,MAAM,EAAE,kBAAkB,EAC1B,OAAO,EAAE,qBAAqB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,GACvD,IAAI,CAAC;CACT,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,GACvB,SAAS,MAAM,KAAG,sBAelB,CAAC"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/custom-element.js b/ui/node_modules/@lit/reactive-element/decorators/custom-element.js deleted file mode 100644 index 258eea7..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/custom-element.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -const t=t=>(e,o)=>{void 0!==o?o.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};export{t as customElement}; -//# sourceMappingURL=custom-element.js.map diff --git a/ui/node_modules/@lit/reactive-element/decorators/custom-element.js.map b/ui/node_modules/@lit/reactive-element/decorators/custom-element.js.map deleted file mode 100644 index 23fe1b4..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/custom-element.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"custom-element.js","sources":["../src/decorators/custom-element.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport type {Constructor} from './base.js';\n\n/**\n * Allow for custom element classes with private constructors\n */\ntype CustomElementClass = Omit;\n\nexport type CustomElementDecorator = {\n // legacy\n (cls: CustomElementClass): void;\n\n // standard\n (\n target: CustomElementClass,\n context: ClassDecoratorContext>\n ): void;\n};\n\n/**\n * Class decorator factory that defines the decorated class as a custom element.\n *\n * ```js\n * @customElement('my-element')\n * class MyElement extends LitElement {\n * render() {\n * return html``;\n * }\n * }\n * ```\n * @category Decorator\n * @param tagName The tag name of the custom element to define.\n */\nexport const customElement =\n (tagName: string): CustomElementDecorator =>\n (\n classOrTarget: CustomElementClass | Constructor,\n context?: ClassDecoratorContext>\n ) => {\n if (context !== undefined) {\n context.addInitializer(() => {\n customElements.define(\n tagName,\n classOrTarget as CustomElementConstructor\n );\n });\n } else {\n customElements.define(tagName, classOrTarget as CustomElementConstructor);\n }\n };\n"],"names":["customElement","tagName","classOrTarget","context","undefined","addInitializer","customElements","define"],"mappings":";;;;;AA6CO,MAAMA,EACVC,GACD,CACEC,EACAC,UAEgBC,IAAZD,EACFA,EAAQE,eAAe,KACrBC,eAAeC,OACbN,EACAC,KAIJI,eAAeC,OAAON,EAASC"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/event-options.d.ts b/ui/node_modules/@lit/reactive-element/decorators/event-options.d.ts deleted file mode 100644 index 6cb6913..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/event-options.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import type { ReactiveElement } from '../reactive-element.js'; -import type { Interface } from './base.js'; -export type EventOptionsDecorator = { - (proto: Interface, name: PropertyKey): void | any; - any>(value: V, _context: ClassMethodDecoratorContext): void; -}; -/** - * Adds event listener options to a method used as an event listener in a - * lit-html template. - * - * @param options An object that specifies event listener options as accepted by - * `EventTarget#addEventListener` and `EventTarget#removeEventListener`. - * - * Current browsers support the `capture`, `passive`, and `once` options. See: - * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Parameters - * - * ```ts - * class MyElement { - * clicked = false; - * - * render() { - * return html` - *
- * - *
- * `; - * } - * - * @eventOptions({capture: true}) - * _onClick(e) { - * this.clicked = true; - * } - * } - * ``` - * @category Decorator - */ -export declare function eventOptions(options: AddEventListenerOptions): EventOptionsDecorator; -//# sourceMappingURL=event-options.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/event-options.d.ts.map b/ui/node_modules/@lit/reactive-element/decorators/event-options.d.ts.map deleted file mode 100644 index 87bbc30..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/event-options.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"event-options.d.ts","sourceRoot":"","sources":["../../src/decorators/event-options.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,WAAW,CAAC;AAEzC,MAAM,MAAM,qBAAqB,GAAG;IAElC,CACE,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,EACjC,IAAI,EAAE,WAAW,GAGhB,IAAI,GAAG,GAAG,CAAC;IAId,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EAC1C,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,2BAA2B,CAAC,CAAC,EAAE,CAAC,CAAC,GAC1C,IAAI,CAAC;CACT,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,uBAAuB,GAC/B,qBAAqB,CAYvB"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/event-options.js b/ui/node_modules/@lit/reactive-element/decorators/event-options.js deleted file mode 100644 index 678794f..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/event-options.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -function t(t){return(n,o)=>{const c="function"==typeof n?n:n[o];Object.assign(c,t)}}export{t as eventOptions}; -//# sourceMappingURL=event-options.js.map diff --git a/ui/node_modules/@lit/reactive-element/decorators/event-options.js.map b/ui/node_modules/@lit/reactive-element/decorators/event-options.js.map deleted file mode 100644 index 55c25bc..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/event-options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"event-options.js","sources":["../src/decorators/event-options.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport type {ReactiveElement} from '../reactive-element.js';\nimport type {Interface} from './base.js';\n\nexport type EventOptionsDecorator = {\n // legacy\n (\n proto: Interface,\n name: PropertyKey\n // Note TypeScript requires the return type to be `void|any`\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): void | any;\n\n // standard\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n any>(\n value: V,\n _context: ClassMethodDecoratorContext\n ): void;\n};\n\n/**\n * Adds event listener options to a method used as an event listener in a\n * lit-html template.\n *\n * @param options An object that specifies event listener options as accepted by\n * `EventTarget#addEventListener` and `EventTarget#removeEventListener`.\n *\n * Current browsers support the `capture`, `passive`, and `once` options. See:\n * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Parameters\n *\n * ```ts\n * class MyElement {\n * clicked = false;\n *\n * render() {\n * return html`\n *
\n * \n *
\n * `;\n * }\n *\n * @eventOptions({capture: true})\n * _onClick(e) {\n * this.clicked = true;\n * }\n * }\n * ```\n * @category Decorator\n */\nexport function eventOptions(\n options: AddEventListenerOptions\n): EventOptionsDecorator {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return ( any>(\n protoOrValue: V,\n nameOrContext: PropertyKey | ClassMethodDecoratorContext\n ) => {\n const method =\n typeof protoOrValue === 'function'\n ? protoOrValue\n : protoOrValue[nameOrContext as keyof ReactiveElement];\n Object.assign(method, options);\n }) as EventOptionsDecorator;\n}\n"],"names":["eventOptions","options","protoOrValue","nameOrContext","method","Object","assign"],"mappings":";;;;;AA+DM,SAAUA,EACdC,GAGA,MAAA,CACEC,EACAC,KAEA,MAAMC,EACoB,mBAAjBF,EACHA,EACAA,EAAaC,GACnBE,OAAOC,OAAOF,EAAQH,EACvB,CACH"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/property.d.ts b/ui/node_modules/@lit/reactive-element/decorators/property.d.ts deleted file mode 100644 index d521bd2..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/property.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import { type PropertyDeclaration, type ReactiveElement } from '../reactive-element.js'; -import type { Interface } from './base.js'; -export type PropertyDecorator = { - , V>(target: ClassAccessorDecoratorTarget, context: ClassAccessorDecoratorContext): ClassAccessorDecoratorResult; - , V>(target: (value: V) => void, context: ClassSetterDecoratorContext): (this: C, value: V) => void; - (protoOrDescriptor: Object, name: PropertyKey, descriptor?: PropertyDescriptor): any; -}; -type StandardPropertyContext = (ClassAccessorDecoratorContext | ClassSetterDecoratorContext) & { - metadata: object; -}; -/** - * Wraps a class accessor or setter so that `requestUpdate()` is called with the - * property name and old value when the accessor is set. - */ -export declare const standardProperty: , V>(options: PropertyDeclaration | undefined, target: ClassAccessorDecoratorTarget | ((value: V) => void), context: StandardPropertyContext) => ClassAccessorDecoratorResult | ((this: C, value: V) => void); -/** - * A class field or accessor decorator which creates a reactive property that - * reflects a corresponding attribute value. When a decorated property is set - * the element will update and render. A {@linkcode PropertyDeclaration} may - * optionally be supplied to configure property features. - * - * This decorator should only be used for public fields. As public fields, - * properties should be considered as primarily settable by element users, - * either via attribute or the property itself. - * - * Generally, properties that are changed by the element should be private or - * protected fields and should use the {@linkcode state} decorator. - * - * However, sometimes element code does need to set a public property. This - * should typically only be done in response to user interaction, and an event - * should be fired informing the user; for example, a checkbox sets its - * `checked` property when clicked and fires a `changed` event. Mutating public - * properties should typically not be done for non-primitive (object or array) - * properties. In other cases when an element needs to manage state, a private - * property decorated via the {@linkcode state} decorator should be used. When - * needed, state properties can be initialized via public properties to - * facilitate complex interactions. - * - * ```ts - * class MyElement { - * @property({ type: Boolean }) - * clicked = false; - * } - * ``` - * @category Decorator - * @ExportDecoratedItems - */ -export declare function property(options?: PropertyDeclaration): PropertyDecorator; -export {}; -//# sourceMappingURL=property.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/property.d.ts.map b/ui/node_modules/@lit/reactive-element/decorators/property.d.ts.map deleted file mode 100644 index 29f7d1f..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/property.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../src/decorators/property.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,eAAe,EAGrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,WAAW,CAAC;AA+BzC,MAAM,MAAM,iBAAiB,GAAG;IAE9B,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,EACtC,MAAM,EAAE,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EAC1C,OAAO,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3C,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAGtC,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,EACtC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAC1B,OAAO,EAAE,2BAA2B,CAAC,CAAC,EAAE,CAAC,CAAC,GACzC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAG/B,CACE,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,WAAW,EACjB,UAAU,CAAC,EAAE,kBAAkB,GAE9B,GAAG,CAAC;CACR,CAAC;AA+BF,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CACjC,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,GACnC,2BAA2B,CAAC,CAAC,EAAE,CAAC,CAAC,CACpC,GAAG;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAC,CAAC;AAEvB;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,EACtE,SAAS,mBAAmB,YAA6B,EACzD,QAAQ,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,EACjE,SAAS,uBAAuB,CAAC,CAAC,EAAE,CAAC,CAAC,KACrC,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,IAAI,CAwDnE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,QAAQ,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,iBAAiB,CA4BzE"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/property.js b/ui/node_modules/@lit/reactive-element/decorators/property.js deleted file mode 100644 index 6d98f1e..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/property.js +++ /dev/null @@ -1,7 +0,0 @@ -import{notEqual as t,defaultConverter as e}from"../reactive-element.js"; -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const o={attribute:!0,type:String,converter:e,reflect:!1,hasChanged:t},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),"setter"===n&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),"accessor"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t,!0,r)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t,!0,r)}}throw Error("Unsupported decorator location: "+n)};function n(t){return(e,o)=>"object"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty}; -//# sourceMappingURL=property.js.map diff --git a/ui/node_modules/@lit/reactive-element/decorators/property.js.map b/ui/node_modules/@lit/reactive-element/decorators/property.js.map deleted file mode 100644 index 40e764b..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/property.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"property.js","sources":["../src/decorators/property.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport {\n type PropertyDeclaration,\n type ReactiveElement,\n defaultConverter,\n notEqual,\n} from '../reactive-element.js';\nimport type {Interface} from './base.js';\n\nconst DEV_MODE = true;\n\nlet issueWarning: (code: string, warning: string) => void;\n\nif (DEV_MODE) {\n // Ensure warnings are issued only 1x, even if multiple versions of Lit\n // are loaded.\n globalThis.litIssuedWarnings ??= new Set();\n\n /**\n * Issue a warning if we haven't already, based either on `code` or `warning`.\n * Warnings are disabled automatically only by `warning`; disabling via `code`\n * can be done by users.\n */\n issueWarning = (code: string, warning: string) => {\n warning += ` See https://lit.dev/msg/${code} for more information.`;\n if (\n !globalThis.litIssuedWarnings!.has(warning) &&\n !globalThis.litIssuedWarnings!.has(code)\n ) {\n console.warn(warning);\n globalThis.litIssuedWarnings!.add(warning);\n }\n };\n}\n\n// Overloads for property decorator so that TypeScript can infer the correct\n// return type when a decorator is used as an accessor decorator or a setter\n// decorator.\nexport type PropertyDecorator = {\n // accessor decorator signature\n , V>(\n target: ClassAccessorDecoratorTarget,\n context: ClassAccessorDecoratorContext\n ): ClassAccessorDecoratorResult;\n\n // setter decorator signature\n , V>(\n target: (value: V) => void,\n context: ClassSetterDecoratorContext\n ): (this: C, value: V) => void;\n\n // legacy decorator signature\n (\n protoOrDescriptor: Object,\n name: PropertyKey,\n descriptor?: PropertyDescriptor\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): any;\n};\n\nconst legacyProperty = (\n options: PropertyDeclaration | undefined,\n proto: Object,\n name: PropertyKey\n) => {\n const hasOwnProperty = proto.hasOwnProperty(name);\n (proto.constructor as typeof ReactiveElement).createProperty(name, options);\n // For accessors (which have a descriptor on the prototype) we need to\n // return a descriptor, otherwise TypeScript overwrites the descriptor we\n // define in createProperty() with the original descriptor. We don't do this\n // for fields, which don't have a descriptor, because this could overwrite\n // descriptor defined by other decorators.\n return hasOwnProperty\n ? Object.getOwnPropertyDescriptor(proto, name)\n : undefined;\n};\n\n// This is duplicated from a similar variable in reactive-element.ts, but\n// actually makes sense to have this default defined with the decorator, so\n// that different decorators could have different defaults.\nconst defaultPropertyDeclaration: PropertyDeclaration = {\n attribute: true,\n type: String,\n converter: defaultConverter,\n reflect: false,\n hasChanged: notEqual,\n};\n\n// Temporary type, until google3 is on TypeScript 5.2\ntype StandardPropertyContext = (\n | ClassAccessorDecoratorContext\n | ClassSetterDecoratorContext\n) & {metadata: object};\n\n/**\n * Wraps a class accessor or setter so that `requestUpdate()` is called with the\n * property name and old value when the accessor is set.\n */\nexport const standardProperty = , V>(\n options: PropertyDeclaration = defaultPropertyDeclaration,\n target: ClassAccessorDecoratorTarget | ((value: V) => void),\n context: StandardPropertyContext\n): ClassAccessorDecoratorResult | ((this: C, value: V) => void) => {\n const {kind, metadata} = context;\n\n if (DEV_MODE && metadata == null) {\n issueWarning(\n 'missing-class-metadata',\n `The class ${target} is missing decorator metadata. This ` +\n `could mean that you're using a compiler that supports decorators ` +\n `but doesn't support decorator metadata, such as TypeScript 5.1. ` +\n `Please update your compiler.`\n );\n }\n\n // Store the property options\n let properties = globalThis.litPropertyMetadata.get(metadata);\n if (properties === undefined) {\n globalThis.litPropertyMetadata.set(metadata, (properties = new Map()));\n }\n if (kind === 'setter') {\n options = Object.create(options);\n options.wrapped = true;\n }\n properties.set(context.name, options);\n\n if (kind === 'accessor') {\n // Standard decorators cannot dynamically modify the class, so we can't\n // replace a field with accessors. The user must use the new `accessor`\n // keyword instead.\n const {name} = context;\n return {\n set(this: ReactiveElement, v: V) {\n const oldValue = (\n target as ClassAccessorDecoratorTarget\n ).get.call(this as unknown as C);\n (target as ClassAccessorDecoratorTarget).set.call(\n this as unknown as C,\n v\n );\n this.requestUpdate(name, oldValue, options, true, v);\n },\n init(this: ReactiveElement, v: V): V {\n if (v !== undefined) {\n this._$changeProperty(name, undefined, options, v);\n }\n return v;\n },\n } as unknown as ClassAccessorDecoratorResult;\n } else if (kind === 'setter') {\n const {name} = context;\n return function (this: ReactiveElement, value: V) {\n const oldValue = this[name as keyof ReactiveElement];\n (target as (value: V) => void).call(this, value);\n this.requestUpdate(name, oldValue, options, true, value);\n } as unknown as (this: C, value: V) => void;\n }\n throw new Error(`Unsupported decorator location: ${kind}`);\n};\n\n/**\n * A class field or accessor decorator which creates a reactive property that\n * reflects a corresponding attribute value. When a decorated property is set\n * the element will update and render. A {@linkcode PropertyDeclaration} may\n * optionally be supplied to configure property features.\n *\n * This decorator should only be used for public fields. As public fields,\n * properties should be considered as primarily settable by element users,\n * either via attribute or the property itself.\n *\n * Generally, properties that are changed by the element should be private or\n * protected fields and should use the {@linkcode state} decorator.\n *\n * However, sometimes element code does need to set a public property. This\n * should typically only be done in response to user interaction, and an event\n * should be fired informing the user; for example, a checkbox sets its\n * `checked` property when clicked and fires a `changed` event. Mutating public\n * properties should typically not be done for non-primitive (object or array)\n * properties. In other cases when an element needs to manage state, a private\n * property decorated via the {@linkcode state} decorator should be used. When\n * needed, state properties can be initialized via public properties to\n * facilitate complex interactions.\n *\n * ```ts\n * class MyElement {\n * @property({ type: Boolean })\n * clicked = false;\n * }\n * ```\n * @category Decorator\n * @ExportDecoratedItems\n */\nexport function property(options?: PropertyDeclaration): PropertyDecorator {\n return , V>(\n protoOrTarget:\n | object\n | ClassAccessorDecoratorTarget\n | ((value: V) => void),\n nameOrContext:\n | PropertyKey\n | ClassAccessorDecoratorContext\n | ClassSetterDecoratorContext\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): any => {\n return (\n typeof nameOrContext === 'object'\n ? standardProperty(\n options,\n protoOrTarget as\n | ClassAccessorDecoratorTarget\n | ((value: V) => void),\n nameOrContext as StandardPropertyContext\n )\n : legacyProperty(\n options,\n protoOrTarget as Object,\n nameOrContext as PropertyKey\n )\n ) as PropertyDecorator;\n };\n}\n"],"names":["defaultPropertyDeclaration","attribute","type","String","converter","defaultConverter","reflect","hasChanged","notEqual","standardProperty","options","target","context","kind","metadata","properties","globalThis","litPropertyMetadata","get","undefined","set","Map","Object","create","wrapped","name","v","oldValue","call","this","requestUpdate","init","_$changeProperty","value","Error","property","protoOrTarget","nameOrContext","proto","hasOwnProperty","constructor","createProperty","getOwnPropertyDescriptor","legacyProperty"],"mappings":";;;;;GAwEA,MAoBMA,EAAkD,CACtDC,WAAW,EACXC,KAAMC,OACNC,UAAWC,EACXC,SAAS,EACTC,WAAYC,GAaDC,EAAmB,CAC9BC,EAA+BV,EAC/BW,EACAC,KAEA,MAAMC,KAACA,EAAIC,SAAEA,GAAYF,EAazB,IAAIG,EAAaC,WAAWC,oBAAoBC,IAAIJ,GAUpD,QATmBK,IAAfJ,GACFC,WAAWC,oBAAoBG,IAAIN,EAAWC,EAAa,IAAIM,KAEpD,WAATR,KACFH,EAAUY,OAAOC,OAAOb,IAChBc,SAAU,GAEpBT,EAAWK,IAAIR,EAAQa,KAAMf,GAEhB,aAATG,EAAqB,CAIvB,MAAMY,KAACA,GAAQb,EACf,MAAO,CACL,GAAAQ,CAA2BM,GACzB,MAAMC,EACJhB,EACAO,IAAIU,KAAKC,MACVlB,EAA8CS,IAAIQ,KACjDC,KACAH,GAEFG,KAAKC,cAAcL,EAAME,EAAUjB,GAAS,EAAMgB,EACpD,EACA,IAAAK,CAA4BL,GAI1B,YAHUP,IAANO,GACFG,KAAKG,EAAiBP,OAAMN,EAAWT,EAASgB,GAE3CA,CACT,EAEJ,CAAO,GAAa,WAATb,EAAmB,CAC5B,MAAMY,KAACA,GAAQb,EACf,OAAO,SAAiCqB,GACtC,MAAMN,EAAWE,KAAKJ,GACrBd,EAA8BiB,KAAKC,KAAMI,GAC1CJ,KAAKC,cAAcL,EAAME,EAAUjB,GAAS,EAAMuB,EACpD,CACF,CACA,MAAUC,MAAM,mCAAmCrB,IAmC/C,SAAUsB,EAASzB,GACvB,MAAO,CACL0B,EAIAC,IAO2B,iBAAlBA,EACH5B,EACEC,EACA0B,EAGAC,GAvJW,EACrB3B,EACA4B,EACAb,KAEA,MAAMc,EAAiBD,EAAMC,eAAed,GAO5C,OANCa,EAAME,YAAuCC,eAAehB,EAAMf,GAM5D6B,EACHjB,OAAOoB,yBAAyBJ,EAAOb,QACvCN,GA2IIwB,CACEjC,EACA0B,EACAC,EAIZ"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-all.d.ts b/ui/node_modules/@lit/reactive-element/decorators/query-all.d.ts deleted file mode 100644 index af0fc05..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-all.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import type { ReactiveElement } from '../reactive-element.js'; -import { type Interface } from './base.js'; -export type QueryAllDecorator = { - (proto: Interface, name: PropertyKey, descriptor?: PropertyDescriptor): void | any; - , V extends NodeList>(value: ClassAccessorDecoratorTarget, context: ClassAccessorDecoratorContext): ClassAccessorDecoratorResult; -}; -/** - * A property decorator that converts a class property into a getter - * that executes a querySelectorAll on the element's renderRoot. - * - * @param selector A DOMString containing one or more selectors to match. - * - * See: - * https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll - * - * ```ts - * class MyElement { - * @queryAll('div') - * divs: NodeListOf; - * - * render() { - * return html` - *
- *
- * `; - * } - * } - * ``` - * @category Decorator - */ -export declare function queryAll(selector: string): QueryAllDecorator; -//# sourceMappingURL=query-all.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-all.d.ts.map b/ui/node_modules/@lit/reactive-element/decorators/query-all.d.ts.map deleted file mode 100644 index f46ee6b..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-all.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-all.d.ts","sourceRoot":"","sources":["../../src/decorators/query-all.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAO,KAAK,SAAS,EAAC,MAAM,WAAW,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG;IAE9B,CACE,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,EACjC,IAAI,EAAE,WAAW,EACjB,UAAU,CAAC,EAAE,kBAAkB,GAG9B,IAAI,GAAG,GAAG,CAAC;IAGd,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,SAAS,QAAQ,EACvD,KAAK,EAAE,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EACzC,OAAO,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3C,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CACvC,CAAC;AAMF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAa5D"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-all.js b/ui/node_modules/@lit/reactive-element/decorators/query-all.js deleted file mode 100644 index e149a9f..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-all.js +++ /dev/null @@ -1,8 +0,0 @@ -import{desc as t}from"./base.js"; -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -let e;function r(r){return(n,o)=>t(n,o,{get(){return(this.renderRoot??(e??=document.createDocumentFragment())).querySelectorAll(r)}})}export{r as queryAll}; -//# sourceMappingURL=query-all.js.map diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-all.js.map b/ui/node_modules/@lit/reactive-element/decorators/query-all.js.map deleted file mode 100644 index 4d221c4..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-all.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-all.js","sources":["../src/decorators/query-all.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\nimport type {ReactiveElement} from '../reactive-element.js';\nimport {desc, type Interface} from './base.js';\n\nexport type QueryAllDecorator = {\n // legacy\n (\n proto: Interface,\n name: PropertyKey,\n descriptor?: PropertyDescriptor\n // Note TypeScript requires the return type to be `void|any`\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): void | any;\n\n // standard\n , V extends NodeList>(\n value: ClassAccessorDecoratorTarget,\n context: ClassAccessorDecoratorContext\n ): ClassAccessorDecoratorResult;\n};\n\n// Shared fragment used to generate empty NodeLists when a render root is\n// undefined\nlet fragment: DocumentFragment;\n\n/**\n * A property decorator that converts a class property into a getter\n * that executes a querySelectorAll on the element's renderRoot.\n *\n * @param selector A DOMString containing one or more selectors to match.\n *\n * See:\n * https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll\n *\n * ```ts\n * class MyElement {\n * @queryAll('div')\n * divs: NodeListOf;\n *\n * render() {\n * return html`\n *
\n *
\n * `;\n * }\n * }\n * ```\n * @category Decorator\n */\nexport function queryAll(selector: string): QueryAllDecorator {\n return ((\n obj: object,\n name: PropertyKey | ClassAccessorDecoratorContext\n ) => {\n return desc(obj, name, {\n get(this: ReactiveElement) {\n const container =\n this.renderRoot ?? (fragment ??= document.createDocumentFragment());\n return container.querySelectorAll(selector);\n },\n });\n }) as QueryAllDecorator;\n}\n"],"names":["fragment","queryAll","selector","obj","name","desc","get","this","renderRoot","document","createDocumentFragment","querySelectorAll"],"mappings":";;;;;;AAkCA,IAAIA,EA0BE,SAAUC,EAASC,GACvB,MAAA,CACEC,EACAC,IAEOC,EAAKF,EAAKC,EAAM,CACrB,GAAAE,GAGE,OADEC,KAAKC,aAAeR,IAAaS,SAASC,2BAC3BC,iBAAiBT,EACpC,GAGN"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts b/ui/node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts deleted file mode 100644 index 309cf89..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import type { ReactiveElement } from '../reactive-element.js'; -import type { QueryAssignedNodesOptions } from './query-assigned-nodes.js'; -import { type Interface } from './base.js'; -export type QueryAssignedElementsDecorator = { - (proto: Interface, name: PropertyKey, descriptor?: PropertyDescriptor): void | any; - , V extends Array>(value: ClassAccessorDecoratorTarget, context: ClassAccessorDecoratorContext): ClassAccessorDecoratorResult; -}; -/** - * Options for the {@linkcode queryAssignedElements} decorator. Extends the - * options that can be passed into - * [HTMLSlotElement.assignedElements](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedElements). - */ -export interface QueryAssignedElementsOptions extends QueryAssignedNodesOptions { - /** - * CSS selector used to filter the elements returned. For example, a selector - * of `".item"` will only include elements with the `item` class. - */ - selector?: string; -} -/** - * A property decorator that converts a class property into a getter that - * returns the `assignedElements` of the given `slot`. Provides a declarative - * way to use - * [`HTMLSlotElement.assignedElements`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedElements). - * - * Can be passed an optional {@linkcode QueryAssignedElementsOptions} object. - * - * Example usage: - * ```ts - * class MyElement { - * @queryAssignedElements({ slot: 'list' }) - * listItems!: Array; - * @queryAssignedElements() - * unnamedSlotEls!: Array; - * - * render() { - * return html` - * - * - * `; - * } - * } - * ``` - * - * Note, the type of this property should be annotated as `Array`. - * - * @category Decorator - */ -export declare function queryAssignedElements(options?: QueryAssignedElementsOptions): QueryAssignedElementsDecorator; -//# sourceMappingURL=query-assigned-elements.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts.map b/ui/node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts.map deleted file mode 100644 index c23e999..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-assigned-elements.d.ts","sourceRoot":"","sources":["../../src/decorators/query-assigned-elements.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAO,KAAK,SAAS,EAAC,MAAM,WAAW,CAAC;AAE/C,MAAM,MAAM,8BAA8B,GAAG;IAE3C,CACE,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,EACjC,IAAI,EAAE,WAAW,EACjB,UAAU,CAAC,EAAE,kBAAkB,GAG9B,IAAI,GAAG,GAAG,CAAC;IAGd,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,SAAS,KAAK,CAAC,OAAO,CAAC,EAC7D,KAAK,EAAE,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EACzC,OAAO,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3C,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CACvC,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,4BACf,SAAQ,yBAAyB;IACjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,CAAC,EAAE,4BAA4B,GACrC,8BAA8B,CAoBhC"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js b/ui/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js deleted file mode 100644 index 1b7e741..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +++ /dev/null @@ -1,7 +0,0 @@ -import{desc as t}from"./base.js"; -/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */function o(o){return(e,n)=>{const{slot:r,selector:s}=o??{},c="slot"+(r?`[name=${r}]`:":not([name])");return t(e,n,{get(){const t=this.renderRoot?.querySelector(c),e=t?.assignedElements(o)??[];return void 0===s?e:e.filter(t=>t.matches(s))}})}}export{o as queryAssignedElements}; -//# sourceMappingURL=query-assigned-elements.js.map diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js.map b/ui/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js.map deleted file mode 100644 index 8b18531..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-assigned-elements.js","sources":["../src/decorators/query-assigned-elements.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport type {ReactiveElement} from '../reactive-element.js';\nimport type {QueryAssignedNodesOptions} from './query-assigned-nodes.js';\nimport {desc, type Interface} from './base.js';\n\nexport type QueryAssignedElementsDecorator = {\n // legacy\n (\n proto: Interface,\n name: PropertyKey,\n descriptor?: PropertyDescriptor\n // Note TypeScript requires the return type to be `void|any`\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): void | any;\n\n // standard\n , V extends Array>(\n value: ClassAccessorDecoratorTarget,\n context: ClassAccessorDecoratorContext\n ): ClassAccessorDecoratorResult;\n};\n\n/**\n * Options for the {@linkcode queryAssignedElements} decorator. Extends the\n * options that can be passed into\n * [HTMLSlotElement.assignedElements](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedElements).\n */\nexport interface QueryAssignedElementsOptions\n extends QueryAssignedNodesOptions {\n /**\n * CSS selector used to filter the elements returned. For example, a selector\n * of `\".item\"` will only include elements with the `item` class.\n */\n selector?: string;\n}\n\n/**\n * A property decorator that converts a class property into a getter that\n * returns the `assignedElements` of the given `slot`. Provides a declarative\n * way to use\n * [`HTMLSlotElement.assignedElements`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedElements).\n *\n * Can be passed an optional {@linkcode QueryAssignedElementsOptions} object.\n *\n * Example usage:\n * ```ts\n * class MyElement {\n * @queryAssignedElements({ slot: 'list' })\n * listItems!: Array;\n * @queryAssignedElements()\n * unnamedSlotEls!: Array;\n *\n * render() {\n * return html`\n * \n * \n * `;\n * }\n * }\n * ```\n *\n * Note, the type of this property should be annotated as `Array`.\n *\n * @category Decorator\n */\nexport function queryAssignedElements(\n options?: QueryAssignedElementsOptions\n): QueryAssignedElementsDecorator {\n return (>(\n obj: object,\n name: PropertyKey | ClassAccessorDecoratorContext\n ) => {\n const {slot, selector} = options ?? {};\n const slotSelector = `slot${slot ? `[name=${slot}]` : ':not([name])'}`;\n return desc(obj, name, {\n get(this: ReactiveElement): V {\n const slotEl =\n this.renderRoot?.querySelector(slotSelector);\n const elements = slotEl?.assignedElements(options) ?? [];\n return (\n selector === undefined\n ? elements\n : elements.filter((node) => node.matches(selector))\n ) as V;\n },\n });\n }) as QueryAssignedElementsDecorator;\n}\n"],"names":["queryAssignedElements","options","obj","name","slot","selector","slotSelector","desc","get","slotEl","this","renderRoot","querySelector","elements","assignedElements","undefined","filter","node","matches"],"mappings":";;;;;GA6EM,SAAUA,EACdC,GAEA,MAAA,CACEC,EACAC,KAEA,MAAMC,KAACA,EAAIC,SAAEA,GAAYJ,GAAW,CAAA,EAC9BK,EAAe,QAAOF,EAAO,SAASA,KAAU,gBACtD,OAAOG,EAAKL,EAAKC,EAAM,CACrB,GAAAK,GACE,MAAMC,EACJC,KAAKC,YAAYC,cAA+BN,GAC5CO,EAAWJ,GAAQK,iBAAiBb,IAAY,GACtD,YACec,IAAbV,EACIQ,EACAA,EAASG,OAAQC,GAASA,EAAKC,QAAQb,GAE/C,GAEH,CACH"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts b/ui/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts deleted file mode 100644 index 7aa845e..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import type { ReactiveElement } from '../reactive-element.js'; -import { type Interface } from './base.js'; -/** - * Options for the {@linkcode queryAssignedNodes} decorator. Extends the options - * that can be passed into [HTMLSlotElement.assignedNodes](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedNodes). - */ -export interface QueryAssignedNodesOptions extends AssignedNodesOptions { - /** - * Name of the slot to query. Leave empty for the default slot. - */ - slot?: string; -} -export type QueryAssignedNodesDecorator = { - (proto: Interface, name: PropertyKey, descriptor?: PropertyDescriptor): void | any; - , V extends Array>(value: ClassAccessorDecoratorTarget, context: ClassAccessorDecoratorContext): ClassAccessorDecoratorResult; -}; -/** - * A property decorator that converts a class property into a getter that - * returns the `assignedNodes` of the given `slot`. - * - * Can be passed an optional {@linkcode QueryAssignedNodesOptions} object. - * - * Example usage: - * ```ts - * class MyElement { - * @queryAssignedNodes({slot: 'list', flatten: true}) - * listItems!: Array; - * - * render() { - * return html` - * - * `; - * } - * } - * ``` - * - * Note the type of this property should be annotated as `Array`. Use the - * queryAssignedElements decorator to list only elements, and optionally filter - * the element list using a CSS selector. - * - * @category Decorator - */ -export declare function queryAssignedNodes(options?: QueryAssignedNodesOptions): QueryAssignedNodesDecorator; -//# sourceMappingURL=query-assigned-nodes.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts.map b/ui/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts.map deleted file mode 100644 index 7c90b71..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-assigned-nodes.d.ts","sourceRoot":"","sources":["../../src/decorators/query-assigned-nodes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAO,KAAK,SAAS,EAAC,MAAM,WAAW,CAAC;AAE/C;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,2BAA2B,GAAG;IAExC,CACE,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,EACjC,IAAI,EAAE,WAAW,EACjB,UAAU,CAAC,EAAE,kBAAkB,GAG9B,IAAI,GAAG,GAAG,CAAC;IAGd,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,SAAS,KAAK,CAAC,IAAI,CAAC,EAC1D,KAAK,EAAE,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EACzC,OAAO,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3C,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CACvC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,CAAC,EAAE,yBAAyB,GAClC,2BAA2B,CAgB7B"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js b/ui/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js deleted file mode 100644 index 1baea67..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js +++ /dev/null @@ -1,7 +0,0 @@ -import{desc as t}from"./base.js"; -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */function n(n){return(o,r)=>{const{slot:e}=n??{},s="slot"+(e?`[name=${e}]`:":not([name])");return t(o,r,{get(){const t=this.renderRoot?.querySelector(s);return t?.assignedNodes(n)??[]}})}}export{n as queryAssignedNodes}; -//# sourceMappingURL=query-assigned-nodes.js.map diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js.map b/ui/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js.map deleted file mode 100644 index 525ae84..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-assigned-nodes.js","sources":["../src/decorators/query-assigned-nodes.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\nimport type {ReactiveElement} from '../reactive-element.js';\nimport {desc, type Interface} from './base.js';\n\n/**\n * Options for the {@linkcode queryAssignedNodes} decorator. Extends the options\n * that can be passed into [HTMLSlotElement.assignedNodes](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedNodes).\n */\nexport interface QueryAssignedNodesOptions extends AssignedNodesOptions {\n /**\n * Name of the slot to query. Leave empty for the default slot.\n */\n slot?: string;\n}\n\nexport type QueryAssignedNodesDecorator = {\n // legacy\n (\n proto: Interface,\n name: PropertyKey,\n descriptor?: PropertyDescriptor\n // Note TypeScript requires the return type to be `void|any`\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): void | any;\n\n // standard\n , V extends Array>(\n value: ClassAccessorDecoratorTarget,\n context: ClassAccessorDecoratorContext\n ): ClassAccessorDecoratorResult;\n};\n\n/**\n * A property decorator that converts a class property into a getter that\n * returns the `assignedNodes` of the given `slot`.\n *\n * Can be passed an optional {@linkcode QueryAssignedNodesOptions} object.\n *\n * Example usage:\n * ```ts\n * class MyElement {\n * @queryAssignedNodes({slot: 'list', flatten: true})\n * listItems!: Array;\n *\n * render() {\n * return html`\n * \n * `;\n * }\n * }\n * ```\n *\n * Note the type of this property should be annotated as `Array`. Use the\n * queryAssignedElements decorator to list only elements, and optionally filter\n * the element list using a CSS selector.\n *\n * @category Decorator\n */\nexport function queryAssignedNodes(\n options?: QueryAssignedNodesOptions\n): QueryAssignedNodesDecorator {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return (>(\n obj: object,\n name: PropertyKey | ClassAccessorDecoratorContext\n ) => {\n const {slot} = options ?? {};\n const slotSelector = `slot${slot ? `[name=${slot}]` : ':not([name])'}`;\n return desc(obj, name, {\n get(this: ReactiveElement): V {\n const slotEl =\n this.renderRoot?.querySelector(slotSelector);\n return (slotEl?.assignedNodes(options) ?? []) as unknown as V;\n },\n });\n }) as QueryAssignedNodesDecorator;\n}\n"],"names":["queryAssignedNodes","options","obj","name","slot","slotSelector","desc","get","slotEl","this","renderRoot","querySelector","assignedNodes"],"mappings":";;;;;GAqEM,SAAUA,EACdC,GAGA,MAAA,CACEC,EACAC,KAEA,MAAMC,KAACA,GAAQH,GAAW,CAAA,EACpBI,EAAe,QAAOD,EAAO,SAASA,KAAU,gBACtD,OAAOE,EAAKJ,EAAKC,EAAM,CACrB,GAAAI,GACE,MAAMC,EACJC,KAAKC,YAAYC,cAA+BN,GAClD,OAAQG,GAAQI,cAAcX,IAAY,EAC5C,GAEH,CACH"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-async.d.ts b/ui/node_modules/@lit/reactive-element/decorators/query-async.d.ts deleted file mode 100644 index 062fdc4..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-async.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import type { ReactiveElement } from '../reactive-element.js'; -import { type Interface } from './base.js'; -export type QueryAsyncDecorator = { - (proto: Interface, name: PropertyKey, descriptor?: PropertyDescriptor): void | any; - , V extends Promise>(value: ClassAccessorDecoratorTarget, context: ClassAccessorDecoratorContext): ClassAccessorDecoratorResult; -}; -/** - * A property decorator that converts a class property into a getter that - * returns a promise that resolves to the result of a querySelector on the - * element's renderRoot done after the element's `updateComplete` promise - * resolves. When the queried property may change with element state, this - * decorator can be used instead of requiring users to await the - * `updateComplete` before accessing the property. - * - * @param selector A DOMString containing one or more selectors to match. - * - * See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector - * - * ```ts - * class MyElement { - * @queryAsync('#first') - * first: Promise; - * - * render() { - * return html` - *
- *
- * `; - * } - * } - * - * // external usage - * async doSomethingWithFirst() { - * (await aMyElement.first).doSomething(); - * } - * ``` - * @category Decorator - */ -export declare function queryAsync(selector: string): QueryAsyncDecorator; -//# sourceMappingURL=query-async.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-async.d.ts.map b/ui/node_modules/@lit/reactive-element/decorators/query-async.d.ts.map deleted file mode 100644 index 5169cb7..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-async.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-async.d.ts","sourceRoot":"","sources":["../../src/decorators/query-async.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAO,KAAK,SAAS,EAAC,MAAM,WAAW,CAAC;AAE/C,MAAM,MAAM,mBAAmB,GAAG;IAEhC,CACE,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,EACjC,IAAI,EAAE,WAAW,EACjB,UAAU,CAAC,EAAE,kBAAkB,GAG9B,IAAI,GAAG,GAAG,CAAC;IAGd,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,SAAS,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,EACtE,KAAK,EAAE,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EACzC,OAAO,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3C,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CACvC,CAAC;AAOF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAWnC,mBAAmB,CAC1B"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-async.js b/ui/node_modules/@lit/reactive-element/decorators/query-async.js deleted file mode 100644 index 118829b..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-async.js +++ /dev/null @@ -1,8 +0,0 @@ -import{desc as t}from"./base.js"; -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -function r(r){return(n,e)=>t(n,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}export{r as queryAsync}; -//# sourceMappingURL=query-async.js.map diff --git a/ui/node_modules/@lit/reactive-element/decorators/query-async.js.map b/ui/node_modules/@lit/reactive-element/decorators/query-async.js.map deleted file mode 100644 index b7aaca8..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query-async.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-async.js","sources":["../src/decorators/query-async.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport type {ReactiveElement} from '../reactive-element.js';\nimport {desc, type Interface} from './base.js';\n\nexport type QueryAsyncDecorator = {\n // legacy\n (\n proto: Interface,\n name: PropertyKey,\n descriptor?: PropertyDescriptor\n // Note TypeScript requires the return type to be `void|any`\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): void | any;\n\n // standard\n , V extends Promise>(\n value: ClassAccessorDecoratorTarget,\n context: ClassAccessorDecoratorContext\n ): ClassAccessorDecoratorResult;\n};\n\n// Note, in the future, we may extend this decorator to support the use case\n// where the queried element may need to do work to become ready to interact\n// with (e.g. load some implementation code). If so, we might elect to\n// add a second argument defining a function that can be run to make the\n// queried element loaded/updated/ready.\n/**\n * A property decorator that converts a class property into a getter that\n * returns a promise that resolves to the result of a querySelector on the\n * element's renderRoot done after the element's `updateComplete` promise\n * resolves. When the queried property may change with element state, this\n * decorator can be used instead of requiring users to await the\n * `updateComplete` before accessing the property.\n *\n * @param selector A DOMString containing one or more selectors to match.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector\n *\n * ```ts\n * class MyElement {\n * @queryAsync('#first')\n * first: Promise;\n *\n * render() {\n * return html`\n *
\n *
\n * `;\n * }\n * }\n *\n * // external usage\n * async doSomethingWithFirst() {\n * (await aMyElement.first).doSomething();\n * }\n * ```\n * @category Decorator\n */\nexport function queryAsync(selector: string) {\n return ((\n obj: object,\n name: PropertyKey | ClassAccessorDecoratorContext\n ) => {\n return desc(obj, name, {\n async get(this: ReactiveElement) {\n await this.updateComplete;\n return this.renderRoot?.querySelector(selector) ?? null;\n },\n });\n }) as QueryAsyncDecorator;\n}\n"],"names":["queryAsync","selector","obj","name","desc","get","this","updateComplete","renderRoot","querySelector"],"mappings":";;;;;;AAsEM,SAAUA,EAAWC,GACzB,MAAA,CACEC,EACAC,IAEOC,EAAKF,EAAKC,EAAM,CACrB,SAAME,GAEJ,aADMC,KAAKC,eACJD,KAAKE,YAAYC,cAAcR,IAAa,IACrD,GAGN"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/query.d.ts b/ui/node_modules/@lit/reactive-element/decorators/query.d.ts deleted file mode 100644 index 06c860c..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import type { ReactiveElement } from '../reactive-element.js'; -import { type Interface } from './base.js'; -export type QueryDecorator = { - (proto: Interface, name: PropertyKey, descriptor?: PropertyDescriptor): void | any; - , V extends Element | null>(value: ClassAccessorDecoratorTarget, context: ClassAccessorDecoratorContext): ClassAccessorDecoratorResult; -}; -/** - * A property decorator that converts a class property into a getter that - * executes a querySelector on the element's renderRoot. - * - * @param selector A DOMString containing one or more selectors to match. - * @param cache An optional boolean which when true performs the DOM query only - * once and caches the result. - * - * See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector - * - * ```ts - * class MyElement { - * @query('#first') - * first: HTMLDivElement; - * - * render() { - * return html` - *
- *
- * `; - * } - * } - * ``` - * @category Decorator - */ -export declare function query(selector: string, cache?: boolean): QueryDecorator; -//# sourceMappingURL=query.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/query.d.ts.map b/ui/node_modules/@lit/reactive-element/decorators/query.d.ts.map deleted file mode 100644 index fc3344a..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/decorators/query.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAO,KAAK,SAAS,EAAC,MAAM,WAAW,CAAC;AA8B/C,MAAM,MAAM,cAAc,GAAG;IAE3B,CACE,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,EACjC,IAAI,EAAE,WAAW,EACjB,UAAU,CAAC,EAAE,kBAAkB,GAG9B,IAAI,GAAG,GAAG,CAAC;IAGd,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,SAAS,OAAO,GAAG,IAAI,EAC7D,KAAK,EAAE,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EACzC,OAAO,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3C,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CACvC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,cAAc,CA4EvE"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/query.js b/ui/node_modules/@lit/reactive-element/decorators/query.js deleted file mode 100644 index 275d341..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query.js +++ /dev/null @@ -1,7 +0,0 @@ -import{desc as t}from"./base.js"; -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */function e(e,r){return(n,s,i)=>{const o=t=>t.renderRoot?.querySelector(e)??null;if(r){const{get:e,set:r}="object"==typeof s?n:i??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return t(n,s,{get(){let t=e.call(this);return void 0===t&&(t=o(this),(null!==t||this.hasUpdated)&&r.call(this,t)),t}})}return t(n,s,{get(){return o(this)}})}}export{e as query}; -//# sourceMappingURL=query.js.map diff --git a/ui/node_modules/@lit/reactive-element/decorators/query.js.map b/ui/node_modules/@lit/reactive-element/decorators/query.js.map deleted file mode 100644 index 266842f..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/query.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query.js","sources":["../src/decorators/query.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\nimport type {ReactiveElement} from '../reactive-element.js';\nimport {desc, type Interface} from './base.js';\n\nconst DEV_MODE = true;\n\nlet issueWarning: (code: string, warning: string) => void;\n\nif (DEV_MODE) {\n // Ensure warnings are issued only 1x, even if multiple versions of Lit\n // are loaded.\n globalThis.litIssuedWarnings ??= new Set();\n\n /**\n * Issue a warning if we haven't already, based either on `code` or `warning`.\n * Warnings are disabled automatically only by `warning`; disabling via `code`\n * can be done by users.\n */\n issueWarning = (code: string, warning: string) => {\n warning += code\n ? ` See https://lit.dev/msg/${code} for more information.`\n : '';\n if (\n !globalThis.litIssuedWarnings!.has(warning) &&\n !globalThis.litIssuedWarnings!.has(code)\n ) {\n console.warn(warning);\n globalThis.litIssuedWarnings!.add(warning);\n }\n };\n}\n\nexport type QueryDecorator = {\n // legacy\n (\n proto: Interface,\n name: PropertyKey,\n descriptor?: PropertyDescriptor\n // Note TypeScript requires the return type to be `void|any`\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): void | any;\n\n // standard\n , V extends Element | null>(\n value: ClassAccessorDecoratorTarget,\n context: ClassAccessorDecoratorContext\n ): ClassAccessorDecoratorResult;\n};\n\n/**\n * A property decorator that converts a class property into a getter that\n * executes a querySelector on the element's renderRoot.\n *\n * @param selector A DOMString containing one or more selectors to match.\n * @param cache An optional boolean which when true performs the DOM query only\n * once and caches the result.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector\n *\n * ```ts\n * class MyElement {\n * @query('#first')\n * first: HTMLDivElement;\n *\n * render() {\n * return html`\n *
\n *
\n * `;\n * }\n * }\n * ```\n * @category Decorator\n */\nexport function query(selector: string, cache?: boolean): QueryDecorator {\n return (, V extends Element | null>(\n protoOrTarget: ClassAccessorDecoratorTarget,\n nameOrContext: PropertyKey | ClassAccessorDecoratorContext,\n descriptor?: PropertyDescriptor\n ) => {\n const doQuery = (el: Interface): V => {\n const result = (el.renderRoot?.querySelector(selector) ?? null) as V;\n if (DEV_MODE && result === null && cache && !el.hasUpdated) {\n const name =\n typeof nameOrContext === 'object'\n ? nameOrContext.name\n : nameOrContext;\n issueWarning(\n '',\n `@query'd field ${JSON.stringify(String(name))} with the 'cache' ` +\n `flag set for selector '${selector}' has been accessed before ` +\n `the first update and returned null. This is expected if the ` +\n `renderRoot tree has not been provided beforehand (e.g. via ` +\n `Declarative Shadow DOM). Therefore the value hasn't been cached.`\n );\n }\n // TODO: if we want to allow users to assert that the query will never\n // return null, we need a new option and to throw here if the result\n // is null.\n return result;\n };\n if (cache) {\n // Accessors to wrap from either:\n // 1. The decorator target, in the case of standard decorators\n // 2. The property descriptor, in the case of experimental decorators\n // on auto-accessors.\n // 3. Functions that access our own cache-key property on the instance,\n // in the case of experimental decorators on fields.\n const {get, set} =\n typeof nameOrContext === 'object'\n ? protoOrTarget\n : (descriptor ??\n (() => {\n const key = DEV_MODE\n ? Symbol(`${String(nameOrContext)} (@query() cache)`)\n : Symbol();\n type WithCache = ReactiveElement & {\n [key: symbol]: Element | null;\n };\n return {\n get() {\n return (this as WithCache)[key];\n },\n set(v) {\n (this as WithCache)[key] = v;\n },\n };\n })());\n return desc(protoOrTarget, nameOrContext, {\n get(this: ReactiveElement): V {\n let result: V = get!.call(this);\n if (result === undefined) {\n result = doQuery(this);\n if (result !== null || this.hasUpdated) {\n set!.call(this, result);\n }\n }\n return result;\n },\n });\n } else {\n // This object works as the return type for both standard and\n // experimental decorators.\n return desc(protoOrTarget, nameOrContext, {\n get(this: ReactiveElement) {\n return doQuery(this);\n },\n });\n }\n }) as QueryDecorator;\n}\n"],"names":["query","selector","cache","protoOrTarget","nameOrContext","descriptor","doQuery","el","renderRoot","querySelector","get","set","key","Symbol","this","v","desc","result","call","undefined","hasUpdated"],"mappings":";;;;;GAqFM,SAAUA,EAAMC,EAAkBC,GACtC,OACEC,EACAC,EACAC,KAEA,MAAMC,EAAWC,GACCA,EAAGC,YAAYC,cAAcR,IAAa,KAoB5D,GAAIC,EAAO,CAOT,MAAMQ,IAACA,EAAGC,IAAEA,GACe,iBAAlBP,EACHD,EACCE,GACD,MACE,MAAMO,EAEFC,SAIJ,MAAO,CACL,GAAAH,GACE,OAAQI,KAAmBF,EAC7B,EACA,GAAAD,CAAII,GACDD,KAAmBF,GAAOG,CAC7B,EAEH,EAfD,GAgBN,OAAOC,EAAKb,EAAeC,EAAe,CACxC,GAAAM,GACE,IAAIO,EAAYP,EAAKQ,KAAKJ,MAO1B,YANeK,IAAXF,IACFA,EAASX,EAAQQ,OACF,OAAXG,GAAmBH,KAAKM,aAC1BT,EAAKO,KAAKJ,KAAMG,IAGbA,CACT,GAEJ,CAGE,OAAOD,EAAKb,EAAeC,EAAe,CACxC,GAAAM,GACE,OAAOJ,EAAQQ,KACjB,GAGL,CACH"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/state.d.ts b/ui/node_modules/@lit/reactive-element/decorators/state.d.ts deleted file mode 100644 index e3b9841..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/state.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -export interface StateDeclaration { - /** - * A function that indicates if a property should be considered changed when - * it is set. The function should take the `newValue` and `oldValue` and - * return `true` if an update should be requested. - */ - hasChanged?(value: Type, oldValue: Type): boolean; -} -/** - * @deprecated use StateDeclaration - */ -export type InternalPropertyDeclaration = StateDeclaration; -/** - * Declares a private or protected reactive property that still triggers - * updates to the element when it changes. It does not reflect from the - * corresponding attribute. - * - * Properties declared this way must not be used from HTML or HTML templating - * systems, they're solely for properties internal to the element. These - * properties may be renamed by optimization tools like closure compiler. - * @category Decorator - */ -export declare function state(options?: StateDeclaration): import("./property.js").PropertyDecorator; -//# sourceMappingURL=state.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/state.d.ts.map b/ui/node_modules/@lit/reactive-element/decorators/state.d.ts.map deleted file mode 100644 index 37bb756..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/state.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/decorators/state.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAWH,MAAM,WAAW,gBAAgB,CAAC,IAAI,GAAG,OAAO;IAC9C;;;;OAIG;IACH,UAAU,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,GAAG,OAAO,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,MAAM,2BAA2B,CAAC,IAAI,GAAG,OAAO,IACpD,gBAAgB,CAAC,IAAI,CAAC,CAAC;AAEzB;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CAAC,OAAO,CAAC,EAAE,gBAAgB,6CAS/C"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/decorators/state.js b/ui/node_modules/@lit/reactive-element/decorators/state.js deleted file mode 100644 index ca0d20e..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/state.js +++ /dev/null @@ -1,7 +0,0 @@ -import{property as t}from"./property.js"; -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */function r(r){return t({...r,state:!0,attribute:!1})}export{r as state}; -//# sourceMappingURL=state.js.map diff --git a/ui/node_modules/@lit/reactive-element/decorators/state.js.map b/ui/node_modules/@lit/reactive-element/decorators/state.js.map deleted file mode 100644 index b1f71e9..0000000 --- a/ui/node_modules/@lit/reactive-element/decorators/state.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"state.js","sources":["../src/decorators/state.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport {property} from './property.js';\n\nexport interface StateDeclaration {\n /**\n * A function that indicates if a property should be considered changed when\n * it is set. The function should take the `newValue` and `oldValue` and\n * return `true` if an update should be requested.\n */\n hasChanged?(value: Type, oldValue: Type): boolean;\n}\n\n/**\n * @deprecated use StateDeclaration\n */\nexport type InternalPropertyDeclaration =\n StateDeclaration;\n\n/**\n * Declares a private or protected reactive property that still triggers\n * updates to the element when it changes. It does not reflect from the\n * corresponding attribute.\n *\n * Properties declared this way must not be used from HTML or HTML templating\n * systems, they're solely for properties internal to the element. These\n * properties may be renamed by optimization tools like closure compiler.\n * @category Decorator\n */\nexport function state(options?: StateDeclaration) {\n return property({\n ...options,\n // Add both `state` and `attribute` because we found a third party\n // controller that is keying off of PropertyOptions.state to determine\n // whether a field is a private internal property or not.\n state: true,\n attribute: false,\n });\n}\n"],"names":["state","options","property","attribute"],"mappings":";;;;;GAwCM,SAAUA,EAAMC,GACpB,OAAOC,EAAS,IACXD,EAIHD,OAAO,EACPG,WAAW,GAEf"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/css-tag.d.ts b/ui/node_modules/@lit/reactive-element/development/css-tag.d.ts deleted file mode 100644 index 1143019..0000000 --- a/ui/node_modules/@lit/reactive-element/development/css-tag.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -/** - * Whether the current browser supports `adoptedStyleSheets`. - */ -export declare const supportsAdoptingStyleSheets: boolean; -/** - * A CSSResult or native CSSStyleSheet. - * - * In browsers that support constructible CSS style sheets, CSSStyleSheet - * object can be used for styling along side CSSResult from the `css` - * template tag. - */ -export type CSSResultOrNative = CSSResult | CSSStyleSheet; -export type CSSResultArray = Array; -/** - * A single CSSResult, CSSStyleSheet, or an array or nested arrays of those. - */ -export type CSSResultGroup = CSSResultOrNative | CSSResultArray; -/** - * A container for a string of CSS text, that may be used to create a CSSStyleSheet. - * - * CSSResult is the return value of `css`-tagged template literals and - * `unsafeCSS()`. In order to ensure that CSSResults are only created via the - * `css` tag and `unsafeCSS()`, CSSResult cannot be constructed directly. - */ -export declare class CSSResult { - ['_$cssResult$']: boolean; - readonly cssText: string; - private _styleSheet?; - private _strings; - private constructor(); - get styleSheet(): CSSStyleSheet | undefined; - toString(): string; -} -/** - * Wrap a value for interpolation in a {@linkcode css} tagged template literal. - * - * This is unsafe because untrusted CSS text can be used to phone home - * or exfiltrate data to an attacker controlled site. Take care to only use - * this with trusted input. - */ -export declare const unsafeCSS: (value: unknown) => CSSResult; -/** - * A template literal tag which can be used with LitElement's - * {@linkcode LitElement.styles} property to set element styles. - * - * For security reasons, only literal string values and number may be used in - * embedded expressions. To incorporate non-literal values {@linkcode unsafeCSS} - * may be used inside an expression. - */ -export declare const css: (strings: TemplateStringsArray, ...values: (CSSResultGroup | number)[]) => CSSResult; -/** - * Applies the given styles to a `shadowRoot`. When Shadow DOM is - * available but `adoptedStyleSheets` is not, styles are appended to the - * `shadowRoot` to [mimic the native feature](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/adoptedStyleSheets). - * Note, when shimming is used, any styles that are subsequently placed into - * the shadowRoot should be placed *before* any shimmed adopted styles. This - * will match spec behavior that gives adopted sheets precedence over styles in - * shadowRoot. - */ -export declare const adoptStyles: (renderRoot: ShadowRoot, styles: Array) => void; -export declare const getCompatibleStyle: (s: CSSResultOrNative) => CSSResultOrNative; -//# sourceMappingURL=css-tag.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/css-tag.d.ts.map b/ui/node_modules/@lit/reactive-element/development/css-tag.d.ts.map deleted file mode 100644 index 5a45fea..0000000 --- a/ui/node_modules/@lit/reactive-element/development/css-tag.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"css-tag.d.ts","sourceRoot":"","sources":["../src/css-tag.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,OAIJ,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,aAAa,CAAC;AAE1D,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,iBAAiB,GAAG,cAAc,CAAC,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG,cAAc,CAAC;AAMhE;;;;;;GAMG;AACH,qBAAa,SAAS;IAEpB,CAAC,cAAc,CAAC,UAAQ;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,WAAW,CAAC,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAmC;IAEnD,OAAO;IAgBP,IAAI,UAAU,IAAI,aAAa,GAAG,SAAS,CAoB1C;IAED,QAAQ,IAAI,MAAM;CAGnB;AAyBD;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,OAAO,cAKrC,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,GAAG,GACd,SAAS,oBAAoB,EAC7B,GAAG,QAAQ,CAAC,cAAc,GAAG,MAAM,CAAC,EAAE,KACrC,SAaF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,GACtB,YAAY,UAAU,EACtB,QAAQ,KAAK,CAAC,iBAAiB,CAAC,SAkBjC,CAAC;AAUF,eAAO,MAAM,kBAAkB,MAGrB,iBAAiB,sBAEwC,CAAC"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/css-tag.js b/ui/node_modules/@lit/reactive-element/development/css-tag.js deleted file mode 100644 index bbc0a6a..0000000 --- a/ui/node_modules/@lit/reactive-element/development/css-tag.js +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -const NODE_MODE = false; -// Allows minifiers to rename references to globalThis -const global = globalThis; -/** - * Whether the current browser supports `adoptedStyleSheets`. - */ -export const supportsAdoptingStyleSheets = global.ShadowRoot && - (global.ShadyCSS === undefined || global.ShadyCSS.nativeShadow) && - 'adoptedStyleSheets' in Document.prototype && - 'replace' in CSSStyleSheet.prototype; -const constructionToken = Symbol(); -const cssTagCache = new WeakMap(); -/** - * A container for a string of CSS text, that may be used to create a CSSStyleSheet. - * - * CSSResult is the return value of `css`-tagged template literals and - * `unsafeCSS()`. In order to ensure that CSSResults are only created via the - * `css` tag and `unsafeCSS()`, CSSResult cannot be constructed directly. - */ -export class CSSResult { - constructor(cssText, strings, safeToken) { - // This property needs to remain unminified. - this['_$cssResult$'] = true; - if (safeToken !== constructionToken) { - throw new Error('CSSResult is not constructable. Use `unsafeCSS` or `css` instead.'); - } - this.cssText = cssText; - this._strings = strings; - } - // This is a getter so that it's lazy. In practice, this means stylesheets - // are not created until the first element instance is made. - get styleSheet() { - // If `supportsAdoptingStyleSheets` is true then we assume CSSStyleSheet is - // constructable. - let styleSheet = this._styleSheet; - const strings = this._strings; - if (supportsAdoptingStyleSheets && styleSheet === undefined) { - const cacheable = strings !== undefined && strings.length === 1; - if (cacheable) { - styleSheet = cssTagCache.get(strings); - } - if (styleSheet === undefined) { - (this._styleSheet = styleSheet = new CSSStyleSheet()).replaceSync(this.cssText); - if (cacheable) { - cssTagCache.set(strings, styleSheet); - } - } - } - return styleSheet; - } - toString() { - return this.cssText; - } -} -const textFromCSSResult = (value) => { - // This property needs to remain unminified. - if (value['_$cssResult$'] === true) { - return value.cssText; - } - else if (typeof value === 'number') { - return value; - } - else { - throw new Error(`Value passed to 'css' function must be a 'css' function result: ` + - `${value}. Use 'unsafeCSS' to pass non-literal values, but take care ` + - `to ensure page security.`); - } -}; -/** - * Wrap a value for interpolation in a {@linkcode css} tagged template literal. - * - * This is unsafe because untrusted CSS text can be used to phone home - * or exfiltrate data to an attacker controlled site. Take care to only use - * this with trusted input. - */ -export const unsafeCSS = (value) => new CSSResult(typeof value === 'string' ? value : String(value), undefined, constructionToken); -/** - * A template literal tag which can be used with LitElement's - * {@linkcode LitElement.styles} property to set element styles. - * - * For security reasons, only literal string values and number may be used in - * embedded expressions. To incorporate non-literal values {@linkcode unsafeCSS} - * may be used inside an expression. - */ -export const css = (strings, ...values) => { - const cssText = strings.length === 1 - ? strings[0] - : values.reduce((acc, v, idx) => acc + textFromCSSResult(v) + strings[idx + 1], strings[0]); - return new CSSResult(cssText, strings, constructionToken); -}; -/** - * Applies the given styles to a `shadowRoot`. When Shadow DOM is - * available but `adoptedStyleSheets` is not, styles are appended to the - * `shadowRoot` to [mimic the native feature](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/adoptedStyleSheets). - * Note, when shimming is used, any styles that are subsequently placed into - * the shadowRoot should be placed *before* any shimmed adopted styles. This - * will match spec behavior that gives adopted sheets precedence over styles in - * shadowRoot. - */ -export const adoptStyles = (renderRoot, styles) => { - if (supportsAdoptingStyleSheets) { - renderRoot.adoptedStyleSheets = styles.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet); - } - else { - for (const s of styles) { - const style = document.createElement('style'); - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const nonce = global['litNonce']; - if (nonce !== undefined) { - style.setAttribute('nonce', nonce); - } - style.textContent = s.cssText; - renderRoot.appendChild(style); - } - } -}; -const cssResultFromStyleSheet = (sheet) => { - let cssText = ''; - for (const rule of sheet.cssRules) { - cssText += rule.cssText; - } - return unsafeCSS(cssText); -}; -export const getCompatibleStyle = supportsAdoptingStyleSheets || - (NODE_MODE && global.CSSStyleSheet === undefined) - ? (s) => s - : (s) => s instanceof CSSStyleSheet ? cssResultFromStyleSheet(s) : s; -//# sourceMappingURL=css-tag.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/css-tag.js.map b/ui/node_modules/@lit/reactive-element/development/css-tag.js.map deleted file mode 100644 index a189291..0000000 --- a/ui/node_modules/@lit/reactive-element/development/css-tag.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"css-tag.js","sourceRoot":"","sources":["../src/css-tag.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,SAAS,GAAG,KAAK,CAAC;AAExB,sDAAsD;AACtD,MAAM,MAAM,GAAG,UAAU,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GACtC,MAAM,CAAC,UAAU;IACjB,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,IAAI,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC;IAC/D,oBAAoB,IAAI,QAAQ,CAAC,SAAS;IAC1C,SAAS,IAAI,aAAa,CAAC,SAAS,CAAC;AAkBvC,MAAM,iBAAiB,GAAG,MAAM,EAAE,CAAC;AAEnC,MAAM,WAAW,GAAG,IAAI,OAAO,EAAuC,CAAC;AAEvE;;;;;;GAMG;AACH,MAAM,OAAO,SAAS;IAOpB,YACE,OAAe,EACf,OAAyC,EACzC,SAAiB;QATnB,4CAA4C;QAC5C,KAAC,cAAc,CAAC,GAAG,IAAI,CAAC;QAUtB,IAAI,SAAS,KAAK,iBAAiB,EAAE,CAAC;YACpC,MAAM,IAAI,KAAK,CACb,mEAAmE,CACpE,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;IAED,0EAA0E;IAC1E,4DAA4D;IAC5D,IAAI,UAAU;QACZ,2EAA2E;QAC3E,iBAAiB;QACjB,IAAI,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC;QAClC,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,2BAA2B,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;YAC5D,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CAAC,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAAC,KAAoB,EAAE,EAAE;IACvD,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;QAClC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC;IAC1B,CAAC;IACD,OAAO,SAAS,CAAC,OAAO,CAAC,CAAC;AAC5B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAC7B,2BAA2B;IAC3B,CAAC,SAAS,IAAI,MAAM,CAAC,aAAa,KAAK,SAAS,CAAC;IAC/C,CAAC,CAAC,CAAC,CAAoB,EAAE,EAAE,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC,CAAoB,EAAE,EAAE,CACvB,CAAC,YAAY,aAAa,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nconst NODE_MODE = false;\n\n// Allows minifiers to rename references to globalThis\nconst global = globalThis;\n\n/**\n * Whether the current browser supports `adoptedStyleSheets`.\n */\nexport const supportsAdoptingStyleSheets: boolean =\n global.ShadowRoot &&\n (global.ShadyCSS === undefined || global.ShadyCSS.nativeShadow) &&\n 'adoptedStyleSheets' in Document.prototype &&\n 'replace' in CSSStyleSheet.prototype;\n\n/**\n * A CSSResult or native CSSStyleSheet.\n *\n * In browsers that support constructible CSS style sheets, CSSStyleSheet\n * object can be used for styling along side CSSResult from the `css`\n * template tag.\n */\nexport type CSSResultOrNative = CSSResult | CSSStyleSheet;\n\nexport type CSSResultArray = Array;\n\n/**\n * A single CSSResult, CSSStyleSheet, or an array or nested arrays of those.\n */\nexport type CSSResultGroup = CSSResultOrNative | CSSResultArray;\n\nconst constructionToken = Symbol();\n\nconst cssTagCache = new WeakMap();\n\n/**\n * A container for a string of CSS text, that may be used to create a CSSStyleSheet.\n *\n * CSSResult is the return value of `css`-tagged template literals and\n * `unsafeCSS()`. In order to ensure that CSSResults are only created via the\n * `css` tag and `unsafeCSS()`, CSSResult cannot be constructed directly.\n */\nexport class CSSResult {\n // This property needs to remain unminified.\n ['_$cssResult$'] = true;\n readonly cssText: string;\n private _styleSheet?: CSSStyleSheet;\n private _strings: TemplateStringsArray | undefined;\n\n private constructor(\n cssText: string,\n strings: TemplateStringsArray | undefined,\n safeToken: symbol\n ) {\n if (safeToken !== constructionToken) {\n throw new Error(\n 'CSSResult is not constructable. Use `unsafeCSS` or `css` instead.'\n );\n }\n this.cssText = cssText;\n this._strings = strings;\n }\n\n // This is a getter so that it's lazy. In practice, this means stylesheets\n // are not created until the first element instance is made.\n get styleSheet(): CSSStyleSheet | undefined {\n // If `supportsAdoptingStyleSheets` is true then we assume CSSStyleSheet is\n // constructable.\n let styleSheet = this._styleSheet;\n const strings = this._strings;\n if (supportsAdoptingStyleSheets && styleSheet === undefined) {\n const cacheable = strings !== undefined && strings.length === 1;\n if (cacheable) {\n styleSheet = cssTagCache.get(strings);\n }\n if (styleSheet === undefined) {\n (this._styleSheet = styleSheet = new CSSStyleSheet()).replaceSync(\n this.cssText\n );\n if (cacheable) {\n cssTagCache.set(strings, styleSheet);\n }\n }\n }\n return styleSheet;\n }\n\n toString(): string {\n return this.cssText;\n }\n}\n\ntype ConstructableCSSResult = CSSResult & {\n new (\n cssText: string,\n strings: TemplateStringsArray | undefined,\n safeToken: symbol\n ): CSSResult;\n};\n\nconst textFromCSSResult = (value: CSSResultGroup | number) => {\n // This property needs to remain unminified.\n if ((value as CSSResult)['_$cssResult$'] === true) {\n return (value as CSSResult).cssText;\n } else if (typeof value === 'number') {\n return value;\n } else {\n throw new Error(\n `Value passed to 'css' function must be a 'css' function result: ` +\n `${value}. Use 'unsafeCSS' to pass non-literal values, but take care ` +\n `to ensure page security.`\n );\n }\n};\n\n/**\n * Wrap a value for interpolation in a {@linkcode css} tagged template literal.\n *\n * This is unsafe because untrusted CSS text can be used to phone home\n * or exfiltrate data to an attacker controlled site. Take care to only use\n * this with trusted input.\n */\nexport const unsafeCSS = (value: unknown) =>\n new (CSSResult as ConstructableCSSResult)(\n typeof value === 'string' ? value : String(value),\n undefined,\n constructionToken\n );\n\n/**\n * A template literal tag which can be used with LitElement's\n * {@linkcode LitElement.styles} property to set element styles.\n *\n * For security reasons, only literal string values and number may be used in\n * embedded expressions. To incorporate non-literal values {@linkcode unsafeCSS}\n * may be used inside an expression.\n */\nexport const css = (\n strings: TemplateStringsArray,\n ...values: (CSSResultGroup | number)[]\n): CSSResult => {\n const cssText =\n strings.length === 1\n ? strings[0]\n : values.reduce(\n (acc, v, idx) => acc + textFromCSSResult(v) + strings[idx + 1],\n strings[0]\n );\n return new (CSSResult as ConstructableCSSResult)(\n cssText,\n strings,\n constructionToken\n );\n};\n\n/**\n * Applies the given styles to a `shadowRoot`. When Shadow DOM is\n * available but `adoptedStyleSheets` is not, styles are appended to the\n * `shadowRoot` to [mimic the native feature](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/adoptedStyleSheets).\n * Note, when shimming is used, any styles that are subsequently placed into\n * the shadowRoot should be placed *before* any shimmed adopted styles. This\n * will match spec behavior that gives adopted sheets precedence over styles in\n * shadowRoot.\n */\nexport const adoptStyles = (\n renderRoot: ShadowRoot,\n styles: Array\n) => {\n if (supportsAdoptingStyleSheets) {\n (renderRoot as ShadowRoot).adoptedStyleSheets = styles.map((s) =>\n s instanceof CSSStyleSheet ? s : s.styleSheet!\n );\n } else {\n for (const s of styles) {\n const style = document.createElement('style');\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const nonce = (global as any)['litNonce'];\n if (nonce !== undefined) {\n style.setAttribute('nonce', nonce);\n }\n style.textContent = (s as CSSResult).cssText;\n renderRoot.appendChild(style);\n }\n }\n};\n\nconst cssResultFromStyleSheet = (sheet: CSSStyleSheet) => {\n let cssText = '';\n for (const rule of sheet.cssRules) {\n cssText += rule.cssText;\n }\n return unsafeCSS(cssText);\n};\n\nexport const getCompatibleStyle =\n supportsAdoptingStyleSheets ||\n (NODE_MODE && global.CSSStyleSheet === undefined)\n ? (s: CSSResultOrNative) => s\n : (s: CSSResultOrNative) =>\n s instanceof CSSStyleSheet ? cssResultFromStyleSheet(s) : s;\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators.d.ts b/ui/node_modules/@lit/reactive-element/development/decorators.d.ts deleted file mode 100644 index 8dfae5d..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -export * from './decorators/custom-element.js'; -export * from './decorators/property.js'; -export * from './decorators/state.js'; -export * from './decorators/event-options.js'; -export * from './decorators/query.js'; -export * from './decorators/query-all.js'; -export * from './decorators/query-async.js'; -export * from './decorators/query-assigned-elements.js'; -export * from './decorators/query-assigned-nodes.js'; -//# sourceMappingURL=decorators.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators.d.ts.map b/ui/node_modules/@lit/reactive-element/development/decorators.d.ts.map deleted file mode 100644 index 7390791..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../src/decorators.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators.js b/ui/node_modules/@lit/reactive-element/development/decorators.js deleted file mode 100644 index 635edfc..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -// This module exports decorators that are compatible both with standard -// decorators as implemented by TypeScript 5.2 and Babel, and with TypeScript's -// experimentalDecorators option. -export * from './decorators/custom-element.js'; -export * from './decorators/property.js'; -export * from './decorators/state.js'; -export * from './decorators/event-options.js'; -export * from './decorators/query.js'; -export * from './decorators/query-all.js'; -export * from './decorators/query-async.js'; -export * from './decorators/query-assigned-elements.js'; -export * from './decorators/query-assigned-nodes.js'; -//# sourceMappingURL=decorators.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators.js.map b/ui/node_modules/@lit/reactive-element/development/decorators.js.map deleted file mode 100644 index f5e44cd..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../src/decorators.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wEAAwE;AACxE,+EAA+E;AAC/E,iCAAiC;AAEjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n// This module exports decorators that are compatible both with standard\n// decorators as implemented by TypeScript 5.2 and Babel, and with TypeScript's\n// experimentalDecorators option.\n\nexport * from './decorators/custom-element.js';\nexport * from './decorators/property.js';\nexport * from './decorators/state.js';\nexport * from './decorators/event-options.js';\nexport * from './decorators/query.js';\nexport * from './decorators/query-all.js';\nexport * from './decorators/query-async.js';\nexport * from './decorators/query-assigned-elements.js';\nexport * from './decorators/query-assigned-nodes.js';\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/base.d.ts b/ui/node_modules/@lit/reactive-element/development/decorators/base.d.ts deleted file mode 100644 index 0d6df5e..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/base.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -/** - * Generates a public interface type that removes private and protected fields. - * This allows accepting otherwise incompatible versions of the type (e.g. from - * multiple copies of the same package in `node_modules`). - */ -export type Interface = { - [K in keyof T]: T[K]; -}; -export type Constructor = { - new (...args: any[]): T; -}; -//# sourceMappingURL=base.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/base.d.ts.map b/ui/node_modules/@lit/reactive-element/development/decorators/base.d.ts.map deleted file mode 100644 index e20abe3..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/base.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/decorators/base.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;KACxB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAE3B,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CACzB,CAAC"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/base.js b/ui/node_modules/@lit/reactive-element/development/decorators/base.js deleted file mode 100644 index af70d12..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/base.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -/** - * Wraps up a few best practices when returning a property descriptor from a - * decorator. - * - * Marks the defined property as configurable, and enumerable, and handles - * the case where we have a busted Reflect.decorate zombiefill (e.g. in Angular - * apps). - * - * @internal - */ -export const desc = (obj, name, descriptor) => { - // For backwards compatibility, we keep them configurable and enumerable. - descriptor.configurable = true; - descriptor.enumerable = true; - if ( - // We check for Reflect.decorate each time, in case the zombiefill - // is applied via lazy loading some Angular code. - Reflect.decorate && - typeof name !== 'object') { - // If we're called as a legacy decorator, and Reflect.decorate is present - // then we have no guarantees that the returned descriptor will be - // defined on the class, so we must apply it directly ourselves. - Object.defineProperty(obj, name, descriptor); - } - return descriptor; -}; -//# sourceMappingURL=base.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/base.js.map b/ui/node_modules/@lit/reactive-element/development/decorators/base.js.map deleted file mode 100644 index 1fe6eef..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/base.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/decorators/base.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAgBH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAClB,GAAW,EACX,IAAmE,EACnE,UAA8B,EAC9B,EAAE;IACF,yEAAyE;IACzE,UAAU,CAAC,YAAY,GAAG,IAAI,CAAC;IAC/B,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC;IAC7B;IACE,kEAAkE;IAClE,iDAAiD;IAChD,OAAiD,CAAC,QAAQ;QAC3D,OAAO,IAAI,KAAK,QAAQ,EACxB,CAAC;QACD,yEAAyE;QACzE,kEAAkE;QAClE,gEAAgE;QAEhE,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * Generates a public interface type that removes private and protected fields.\n * This allows accepting otherwise incompatible versions of the type (e.g. from\n * multiple copies of the same package in `node_modules`).\n */\nexport type Interface = {\n [K in keyof T]: T[K];\n};\n\nexport type Constructor = {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n new (...args: any[]): T;\n};\n\n/**\n * Wraps up a few best practices when returning a property descriptor from a\n * decorator.\n *\n * Marks the defined property as configurable, and enumerable, and handles\n * the case where we have a busted Reflect.decorate zombiefill (e.g. in Angular\n * apps).\n *\n * @internal\n */\nexport const desc = (\n obj: object,\n name: PropertyKey | ClassAccessorDecoratorContext,\n descriptor: PropertyDescriptor\n) => {\n // For backwards compatibility, we keep them configurable and enumerable.\n descriptor.configurable = true;\n descriptor.enumerable = true;\n if (\n // We check for Reflect.decorate each time, in case the zombiefill\n // is applied via lazy loading some Angular code.\n (Reflect as typeof Reflect & {decorate?: unknown}).decorate &&\n typeof name !== 'object'\n ) {\n // If we're called as a legacy decorator, and Reflect.decorate is present\n // then we have no guarantees that the returned descriptor will be\n // defined on the class, so we must apply it directly ourselves.\n\n Object.defineProperty(obj, name, descriptor);\n }\n return descriptor;\n};\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/custom-element.d.ts b/ui/node_modules/@lit/reactive-element/development/decorators/custom-element.d.ts deleted file mode 100644 index b73b297..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/custom-element.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import type { Constructor } from './base.js'; -/** - * Allow for custom element classes with private constructors - */ -type CustomElementClass = Omit; -export type CustomElementDecorator = { - (cls: CustomElementClass): void; - (target: CustomElementClass, context: ClassDecoratorContext>): void; -}; -/** - * Class decorator factory that defines the decorated class as a custom element. - * - * ```js - * @customElement('my-element') - * class MyElement extends LitElement { - * render() { - * return html``; - * } - * } - * ``` - * @category Decorator - * @param tagName The tag name of the custom element to define. - */ -export declare const customElement: (tagName: string) => CustomElementDecorator; -export {}; -//# sourceMappingURL=custom-element.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/custom-element.d.ts.map b/ui/node_modules/@lit/reactive-element/development/decorators/custom-element.d.ts.map deleted file mode 100644 index 315aae5..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/custom-element.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"custom-element.d.ts","sourceRoot":"","sources":["../../src/decorators/custom-element.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAE3C;;GAEG;AACH,KAAK,kBAAkB,GAAG,IAAI,CAAC,OAAO,WAAW,EAAE,KAAK,CAAC,CAAC;AAE1D,MAAM,MAAM,sBAAsB,GAAG;IAEnC,CAAC,GAAG,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAGhC,CACE,MAAM,EAAE,kBAAkB,EAC1B,OAAO,EAAE,qBAAqB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,GACvD,IAAI,CAAC;CACT,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,GACvB,SAAS,MAAM,KAAG,sBAelB,CAAC"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/custom-element.js b/ui/node_modules/@lit/reactive-element/development/decorators/custom-element.js deleted file mode 100644 index 4947a8c..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/custom-element.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -/** - * Class decorator factory that defines the decorated class as a custom element. - * - * ```js - * @customElement('my-element') - * class MyElement extends LitElement { - * render() { - * return html``; - * } - * } - * ``` - * @category Decorator - * @param tagName The tag name of the custom element to define. - */ -export const customElement = (tagName) => (classOrTarget, context) => { - if (context !== undefined) { - context.addInitializer(() => { - customElements.define(tagName, classOrTarget); - }); - } - else { - customElements.define(tagName, classOrTarget); - } -}; -//# sourceMappingURL=custom-element.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/custom-element.js.map b/ui/node_modules/@lit/reactive-element/development/decorators/custom-element.js.map deleted file mode 100644 index 8812092..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/custom-element.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"custom-element.js","sourceRoot":"","sources":["../../src/decorators/custom-element.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA2BH;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,aAAa,GACxB,CAAC,OAAe,EAA0B,EAAE,CAC5C,CACE,aAA4D,EAC5D,OAAyD,EACzD,EAAE;IACF,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,CAAC,cAAc,CAAC,GAAG,EAAE;YAC1B,cAAc,CAAC,MAAM,CACnB,OAAO,EACP,aAAyC,CAC1C,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;SAAM,CAAC;QACN,cAAc,CAAC,MAAM,CAAC,OAAO,EAAE,aAAyC,CAAC,CAAC;IAC5E,CAAC;AACH,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport type {Constructor} from './base.js';\n\n/**\n * Allow for custom element classes with private constructors\n */\ntype CustomElementClass = Omit;\n\nexport type CustomElementDecorator = {\n // legacy\n (cls: CustomElementClass): void;\n\n // standard\n (\n target: CustomElementClass,\n context: ClassDecoratorContext>\n ): void;\n};\n\n/**\n * Class decorator factory that defines the decorated class as a custom element.\n *\n * ```js\n * @customElement('my-element')\n * class MyElement extends LitElement {\n * render() {\n * return html``;\n * }\n * }\n * ```\n * @category Decorator\n * @param tagName The tag name of the custom element to define.\n */\nexport const customElement =\n (tagName: string): CustomElementDecorator =>\n (\n classOrTarget: CustomElementClass | Constructor,\n context?: ClassDecoratorContext>\n ) => {\n if (context !== undefined) {\n context.addInitializer(() => {\n customElements.define(\n tagName,\n classOrTarget as CustomElementConstructor\n );\n });\n } else {\n customElements.define(tagName, classOrTarget as CustomElementConstructor);\n }\n };\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/event-options.d.ts b/ui/node_modules/@lit/reactive-element/development/decorators/event-options.d.ts deleted file mode 100644 index 6cb6913..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/event-options.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import type { ReactiveElement } from '../reactive-element.js'; -import type { Interface } from './base.js'; -export type EventOptionsDecorator = { - (proto: Interface, name: PropertyKey): void | any; - any>(value: V, _context: ClassMethodDecoratorContext): void; -}; -/** - * Adds event listener options to a method used as an event listener in a - * lit-html template. - * - * @param options An object that specifies event listener options as accepted by - * `EventTarget#addEventListener` and `EventTarget#removeEventListener`. - * - * Current browsers support the `capture`, `passive`, and `once` options. See: - * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Parameters - * - * ```ts - * class MyElement { - * clicked = false; - * - * render() { - * return html` - *
- * - *
- * `; - * } - * - * @eventOptions({capture: true}) - * _onClick(e) { - * this.clicked = true; - * } - * } - * ``` - * @category Decorator - */ -export declare function eventOptions(options: AddEventListenerOptions): EventOptionsDecorator; -//# sourceMappingURL=event-options.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/event-options.d.ts.map b/ui/node_modules/@lit/reactive-element/development/decorators/event-options.d.ts.map deleted file mode 100644 index 87bbc30..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/event-options.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"event-options.d.ts","sourceRoot":"","sources":["../../src/decorators/event-options.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,WAAW,CAAC;AAEzC,MAAM,MAAM,qBAAqB,GAAG;IAElC,CACE,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,EACjC,IAAI,EAAE,WAAW,GAGhB,IAAI,GAAG,GAAG,CAAC;IAId,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EAC1C,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,2BAA2B,CAAC,CAAC,EAAE,CAAC,CAAC,GAC1C,IAAI,CAAC;CACT,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,uBAAuB,GAC/B,qBAAqB,CAYvB"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/event-options.js b/ui/node_modules/@lit/reactive-element/development/decorators/event-options.js deleted file mode 100644 index 5117c1a..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/event-options.js +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -/** - * Adds event listener options to a method used as an event listener in a - * lit-html template. - * - * @param options An object that specifies event listener options as accepted by - * `EventTarget#addEventListener` and `EventTarget#removeEventListener`. - * - * Current browsers support the `capture`, `passive`, and `once` options. See: - * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Parameters - * - * ```ts - * class MyElement { - * clicked = false; - * - * render() { - * return html` - *
- * - *
- * `; - * } - * - * @eventOptions({capture: true}) - * _onClick(e) { - * this.clicked = true; - * } - * } - * ``` - * @category Decorator - */ -export function eventOptions(options) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return ((protoOrValue, nameOrContext) => { - const method = typeof protoOrValue === 'function' - ? protoOrValue - : protoOrValue[nameOrContext]; - Object.assign(method, options); - }); -} -//# sourceMappingURL=event-options.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/event-options.js.map b/ui/node_modules/@lit/reactive-element/development/decorators/event-options.js.map deleted file mode 100644 index 19c71d9..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/event-options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"event-options.js","sourceRoot":"","sources":["../../src/decorators/event-options.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA6BH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,UAAU,YAAY,CAC1B,OAAgC;IAEhC,8DAA8D;IAC9D,OAAO,CAAC,CACN,YAAe,EACf,aAA8D,EAC9D,EAAE;QACF,MAAM,MAAM,GACV,OAAO,YAAY,KAAK,UAAU;YAChC,CAAC,CAAC,YAAY;YACd,CAAC,CAAC,YAAY,CAAC,aAAsC,CAAC,CAAC;QAC3D,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,CAAC,CAA0B,CAAC;AAC9B,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport type {ReactiveElement} from '../reactive-element.js';\nimport type {Interface} from './base.js';\n\nexport type EventOptionsDecorator = {\n // legacy\n (\n proto: Interface,\n name: PropertyKey\n // Note TypeScript requires the return type to be `void|any`\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): void | any;\n\n // standard\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n any>(\n value: V,\n _context: ClassMethodDecoratorContext\n ): void;\n};\n\n/**\n * Adds event listener options to a method used as an event listener in a\n * lit-html template.\n *\n * @param options An object that specifies event listener options as accepted by\n * `EventTarget#addEventListener` and `EventTarget#removeEventListener`.\n *\n * Current browsers support the `capture`, `passive`, and `once` options. See:\n * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Parameters\n *\n * ```ts\n * class MyElement {\n * clicked = false;\n *\n * render() {\n * return html`\n *
\n * \n *
\n * `;\n * }\n *\n * @eventOptions({capture: true})\n * _onClick(e) {\n * this.clicked = true;\n * }\n * }\n * ```\n * @category Decorator\n */\nexport function eventOptions(\n options: AddEventListenerOptions\n): EventOptionsDecorator {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return ( any>(\n protoOrValue: V,\n nameOrContext: PropertyKey | ClassMethodDecoratorContext\n ) => {\n const method =\n typeof protoOrValue === 'function'\n ? protoOrValue\n : protoOrValue[nameOrContext as keyof ReactiveElement];\n Object.assign(method, options);\n }) as EventOptionsDecorator;\n}\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/property.d.ts b/ui/node_modules/@lit/reactive-element/development/decorators/property.d.ts deleted file mode 100644 index d521bd2..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/property.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import { type PropertyDeclaration, type ReactiveElement } from '../reactive-element.js'; -import type { Interface } from './base.js'; -export type PropertyDecorator = { - , V>(target: ClassAccessorDecoratorTarget, context: ClassAccessorDecoratorContext): ClassAccessorDecoratorResult; - , V>(target: (value: V) => void, context: ClassSetterDecoratorContext): (this: C, value: V) => void; - (protoOrDescriptor: Object, name: PropertyKey, descriptor?: PropertyDescriptor): any; -}; -type StandardPropertyContext = (ClassAccessorDecoratorContext | ClassSetterDecoratorContext) & { - metadata: object; -}; -/** - * Wraps a class accessor or setter so that `requestUpdate()` is called with the - * property name and old value when the accessor is set. - */ -export declare const standardProperty: , V>(options: PropertyDeclaration | undefined, target: ClassAccessorDecoratorTarget | ((value: V) => void), context: StandardPropertyContext) => ClassAccessorDecoratorResult | ((this: C, value: V) => void); -/** - * A class field or accessor decorator which creates a reactive property that - * reflects a corresponding attribute value. When a decorated property is set - * the element will update and render. A {@linkcode PropertyDeclaration} may - * optionally be supplied to configure property features. - * - * This decorator should only be used for public fields. As public fields, - * properties should be considered as primarily settable by element users, - * either via attribute or the property itself. - * - * Generally, properties that are changed by the element should be private or - * protected fields and should use the {@linkcode state} decorator. - * - * However, sometimes element code does need to set a public property. This - * should typically only be done in response to user interaction, and an event - * should be fired informing the user; for example, a checkbox sets its - * `checked` property when clicked and fires a `changed` event. Mutating public - * properties should typically not be done for non-primitive (object or array) - * properties. In other cases when an element needs to manage state, a private - * property decorated via the {@linkcode state} decorator should be used. When - * needed, state properties can be initialized via public properties to - * facilitate complex interactions. - * - * ```ts - * class MyElement { - * @property({ type: Boolean }) - * clicked = false; - * } - * ``` - * @category Decorator - * @ExportDecoratedItems - */ -export declare function property(options?: PropertyDeclaration): PropertyDecorator; -export {}; -//# sourceMappingURL=property.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/property.d.ts.map b/ui/node_modules/@lit/reactive-element/development/decorators/property.d.ts.map deleted file mode 100644 index 29f7d1f..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/property.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../src/decorators/property.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,eAAe,EAGrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,WAAW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E,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,QAAQ,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,iBAAiB,CA4BzE"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/property.js b/ui/node_modules/@lit/reactive-element/development/decorators/property.js deleted file mode 100644 index 924c7e9..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/property.js +++ /dev/null @@ -1,147 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -/* - * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all - * property decorators (but not class decorators) in this file that have - * an @ExportDecoratedItems annotation must be defined as a regular function, - * not an arrow function. - */ -import { defaultConverter, notEqual, } from '../reactive-element.js'; -const DEV_MODE = true; -let issueWarning; -if (DEV_MODE) { - // Ensure warnings are issued only 1x, even if multiple versions of Lit - // are loaded. - globalThis.litIssuedWarnings ??= new Set(); - /** - * Issue a warning if we haven't already, based either on `code` or `warning`. - * Warnings are disabled automatically only by `warning`; disabling via `code` - * can be done by users. - */ - issueWarning = (code, warning) => { - warning += ` See https://lit.dev/msg/${code} for more information.`; - if (!globalThis.litIssuedWarnings.has(warning) && - !globalThis.litIssuedWarnings.has(code)) { - console.warn(warning); - globalThis.litIssuedWarnings.add(warning); - } - }; -} -const legacyProperty = (options, proto, name) => { - const hasOwnProperty = proto.hasOwnProperty(name); - proto.constructor.createProperty(name, options); - // For accessors (which have a descriptor on the prototype) we need to - // return a descriptor, otherwise TypeScript overwrites the descriptor we - // define in createProperty() with the original descriptor. We don't do this - // for fields, which don't have a descriptor, because this could overwrite - // descriptor defined by other decorators. - return hasOwnProperty - ? Object.getOwnPropertyDescriptor(proto, name) - : undefined; -}; -// This is duplicated from a similar variable in reactive-element.ts, but -// actually makes sense to have this default defined with the decorator, so -// that different decorators could have different defaults. -const defaultPropertyDeclaration = { - attribute: true, - type: String, - converter: defaultConverter, - reflect: false, - hasChanged: notEqual, -}; -/** - * Wraps a class accessor or setter so that `requestUpdate()` is called with the - * property name and old value when the accessor is set. - */ -export const standardProperty = (options = defaultPropertyDeclaration, target, context) => { - const { kind, metadata } = context; - if (DEV_MODE && metadata == null) { - issueWarning('missing-class-metadata', `The class ${target} is missing decorator metadata. This ` + - `could mean that you're using a compiler that supports decorators ` + - `but doesn't support decorator metadata, such as TypeScript 5.1. ` + - `Please update your compiler.`); - } - // Store the property options - let properties = globalThis.litPropertyMetadata.get(metadata); - if (properties === undefined) { - globalThis.litPropertyMetadata.set(metadata, (properties = new Map())); - } - if (kind === 'setter') { - options = Object.create(options); - options.wrapped = true; - } - properties.set(context.name, options); - if (kind === 'accessor') { - // Standard decorators cannot dynamically modify the class, so we can't - // replace a field with accessors. The user must use the new `accessor` - // keyword instead. - const { name } = context; - return { - set(v) { - const oldValue = target.get.call(this); - target.set.call(this, v); - this.requestUpdate(name, oldValue, options, true, v); - }, - init(v) { - if (v !== undefined) { - this._$changeProperty(name, undefined, options, v); - } - return v; - }, - }; - } - else if (kind === 'setter') { - const { name } = context; - return function (value) { - const oldValue = this[name]; - target.call(this, value); - this.requestUpdate(name, oldValue, options, true, value); - }; - } - throw new Error(`Unsupported decorator location: ${kind}`); -}; -/** - * A class field or accessor decorator which creates a reactive property that - * reflects a corresponding attribute value. When a decorated property is set - * the element will update and render. A {@linkcode PropertyDeclaration} may - * optionally be supplied to configure property features. - * - * This decorator should only be used for public fields. As public fields, - * properties should be considered as primarily settable by element users, - * either via attribute or the property itself. - * - * Generally, properties that are changed by the element should be private or - * protected fields and should use the {@linkcode state} decorator. - * - * However, sometimes element code does need to set a public property. This - * should typically only be done in response to user interaction, and an event - * should be fired informing the user; for example, a checkbox sets its - * `checked` property when clicked and fires a `changed` event. Mutating public - * properties should typically not be done for non-primitive (object or array) - * properties. In other cases when an element needs to manage state, a private - * property decorated via the {@linkcode state} decorator should be used. When - * needed, state properties can be initialized via public properties to - * facilitate complex interactions. - * - * ```ts - * class MyElement { - * @property({ type: Boolean }) - * clicked = false; - * } - * ``` - * @category Decorator - * @ExportDecoratedItems - */ -export function property(options) { - return (protoOrTarget, nameOrContext - // eslint-disable-next-line @typescript-eslint/no-explicit-any - ) => { - return (typeof nameOrContext === 'object' - ? standardProperty(options, protoOrTarget, nameOrContext) - : legacyProperty(options, protoOrTarget, nameOrContext)); - }; -} -//# sourceMappingURL=property.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/property.js.map b/ui/node_modules/@lit/reactive-element/development/decorators/property.js.map deleted file mode 100644 index 46f6fd8..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/property.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"property.js","sourceRoot":"","sources":["../../src/decorators/property.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AAEH,OAAO,EAGL,gBAAgB,EAChB,QAAQ,GACT,MAAM,wBAAwB,CAAC;AAGhC,MAAM,QAAQ,GAAG,IAAI,CAAC;AAEtB,IAAI,YAAqD,CAAC;AAE1D,IAAI,QAAQ,EAAE,CAAC;IACb,uEAAuE;IACvE,cAAc;IACd,UAAU,CAAC,iBAAiB,KAAK,IAAI,GAAG,EAAE,CAAC;IAE3C;;;;OAIG;IACH,YAAY,GAAG,CAAC,IAAY,EAAE,OAAe,EAAE,EAAE;QAC/C,OAAO,IAAI,4BAA4B,IAAI,wBAAwB,CAAC;QACpE,IACE,CAAC,UAAU,CAAC,iBAAkB,CAAC,GAAG,CAAC,OAAO,CAAC;YAC3C,CAAC,UAAU,CAAC,iBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,EACxC,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACtB,UAAU,CAAC,iBAAkB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AA2BD,MAAM,cAAc,GAAG,CACrB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,CAAC;IAC9C,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,mCAAmC,IAAI,EAAE,CAAC,CAAC;AAC7D,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,UAAU,QAAQ,CAAC,OAA6B;IACpD,OAAO,CACL,aAGwB,EACxB,aAGqC;IACrC,8DAA8D;MACzD,EAAE;QACP,OAAO,CACL,OAAO,aAAa,KAAK,QAAQ;YAC/B,CAAC,CAAC,gBAAgB,CACd,OAAO,EACP,aAEwB,EACxB,aAA8C,CAC/C;YACH,CAAC,CAAC,cAAc,CACZ,OAAO,EACP,aAAuB,EACvB,aAA4B,CAC7B,CACe,CAAC;IACzB,CAAC,CAAC;AACJ,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport {\n type PropertyDeclaration,\n type ReactiveElement,\n defaultConverter,\n notEqual,\n} from '../reactive-element.js';\nimport type {Interface} from './base.js';\n\nconst DEV_MODE = true;\n\nlet issueWarning: (code: string, warning: string) => void;\n\nif (DEV_MODE) {\n // Ensure warnings are issued only 1x, even if multiple versions of Lit\n // are loaded.\n globalThis.litIssuedWarnings ??= new Set();\n\n /**\n * Issue a warning if we haven't already, based either on `code` or `warning`.\n * Warnings are disabled automatically only by `warning`; disabling via `code`\n * can be done by users.\n */\n issueWarning = (code: string, warning: string) => {\n warning += ` See https://lit.dev/msg/${code} for more information.`;\n if (\n !globalThis.litIssuedWarnings!.has(warning) &&\n !globalThis.litIssuedWarnings!.has(code)\n ) {\n console.warn(warning);\n globalThis.litIssuedWarnings!.add(warning);\n }\n };\n}\n\n// Overloads for property decorator so that TypeScript can infer the correct\n// return type when a decorator is used as an accessor decorator or a setter\n// decorator.\nexport type PropertyDecorator = {\n // accessor decorator signature\n , V>(\n target: ClassAccessorDecoratorTarget,\n context: ClassAccessorDecoratorContext\n ): ClassAccessorDecoratorResult;\n\n // setter decorator signature\n , V>(\n target: (value: V) => void,\n context: ClassSetterDecoratorContext\n ): (this: C, value: V) => void;\n\n // legacy decorator signature\n (\n protoOrDescriptor: Object,\n name: PropertyKey,\n descriptor?: PropertyDescriptor\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): any;\n};\n\nconst legacyProperty = (\n options: PropertyDeclaration | undefined,\n proto: Object,\n name: PropertyKey\n) => {\n const hasOwnProperty = proto.hasOwnProperty(name);\n (proto.constructor as typeof ReactiveElement).createProperty(name, options);\n // For accessors (which have a descriptor on the prototype) we need to\n // return a descriptor, otherwise TypeScript overwrites the descriptor we\n // define in createProperty() with the original descriptor. We don't do this\n // for fields, which don't have a descriptor, because this could overwrite\n // descriptor defined by other decorators.\n return hasOwnProperty\n ? Object.getOwnPropertyDescriptor(proto, name)\n : undefined;\n};\n\n// This is duplicated from a similar variable in reactive-element.ts, but\n// actually makes sense to have this default defined with the decorator, so\n// that different decorators could have different defaults.\nconst defaultPropertyDeclaration: PropertyDeclaration = {\n attribute: true,\n type: String,\n converter: defaultConverter,\n reflect: false,\n hasChanged: notEqual,\n};\n\n// Temporary type, until google3 is on TypeScript 5.2\ntype StandardPropertyContext = (\n | ClassAccessorDecoratorContext\n | ClassSetterDecoratorContext\n) & {metadata: object};\n\n/**\n * Wraps a class accessor or setter so that `requestUpdate()` is called with the\n * property name and old value when the accessor is set.\n */\nexport const standardProperty = , V>(\n options: PropertyDeclaration = defaultPropertyDeclaration,\n target: ClassAccessorDecoratorTarget | ((value: V) => void),\n context: StandardPropertyContext\n): ClassAccessorDecoratorResult | ((this: C, value: V) => void) => {\n const {kind, metadata} = context;\n\n if (DEV_MODE && metadata == null) {\n issueWarning(\n 'missing-class-metadata',\n `The class ${target} is missing decorator metadata. This ` +\n `could mean that you're using a compiler that supports decorators ` +\n `but doesn't support decorator metadata, such as TypeScript 5.1. ` +\n `Please update your compiler.`\n );\n }\n\n // Store the property options\n let properties = globalThis.litPropertyMetadata.get(metadata);\n if (properties === undefined) {\n globalThis.litPropertyMetadata.set(metadata, (properties = new Map()));\n }\n if (kind === 'setter') {\n options = Object.create(options);\n options.wrapped = true;\n }\n properties.set(context.name, options);\n\n if (kind === 'accessor') {\n // Standard decorators cannot dynamically modify the class, so we can't\n // replace a field with accessors. The user must use the new `accessor`\n // keyword instead.\n const {name} = context;\n return {\n set(this: ReactiveElement, v: V) {\n const oldValue = (\n target as ClassAccessorDecoratorTarget\n ).get.call(this as unknown as C);\n (target as ClassAccessorDecoratorTarget).set.call(\n this as unknown as C,\n v\n );\n this.requestUpdate(name, oldValue, options, true, v);\n },\n init(this: ReactiveElement, v: V): V {\n if (v !== undefined) {\n this._$changeProperty(name, undefined, options, v);\n }\n return v;\n },\n } as unknown as ClassAccessorDecoratorResult;\n } else if (kind === 'setter') {\n const {name} = context;\n return function (this: ReactiveElement, value: V) {\n const oldValue = this[name as keyof ReactiveElement];\n (target as (value: V) => void).call(this, value);\n this.requestUpdate(name, oldValue, options, true, value);\n } as unknown as (this: C, value: V) => void;\n }\n throw new Error(`Unsupported decorator location: ${kind}`);\n};\n\n/**\n * A class field or accessor decorator which creates a reactive property that\n * reflects a corresponding attribute value. When a decorated property is set\n * the element will update and render. A {@linkcode PropertyDeclaration} may\n * optionally be supplied to configure property features.\n *\n * This decorator should only be used for public fields. As public fields,\n * properties should be considered as primarily settable by element users,\n * either via attribute or the property itself.\n *\n * Generally, properties that are changed by the element should be private or\n * protected fields and should use the {@linkcode state} decorator.\n *\n * However, sometimes element code does need to set a public property. This\n * should typically only be done in response to user interaction, and an event\n * should be fired informing the user; for example, a checkbox sets its\n * `checked` property when clicked and fires a `changed` event. Mutating public\n * properties should typically not be done for non-primitive (object or array)\n * properties. In other cases when an element needs to manage state, a private\n * property decorated via the {@linkcode state} decorator should be used. When\n * needed, state properties can be initialized via public properties to\n * facilitate complex interactions.\n *\n * ```ts\n * class MyElement {\n * @property({ type: Boolean })\n * clicked = false;\n * }\n * ```\n * @category Decorator\n * @ExportDecoratedItems\n */\nexport function property(options?: PropertyDeclaration): PropertyDecorator {\n return , V>(\n protoOrTarget:\n | object\n | ClassAccessorDecoratorTarget\n | ((value: V) => void),\n nameOrContext:\n | PropertyKey\n | ClassAccessorDecoratorContext\n | ClassSetterDecoratorContext\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): any => {\n return (\n typeof nameOrContext === 'object'\n ? standardProperty(\n options,\n protoOrTarget as\n | ClassAccessorDecoratorTarget\n | ((value: V) => void),\n nameOrContext as StandardPropertyContext\n )\n : legacyProperty(\n options,\n protoOrTarget as Object,\n nameOrContext as PropertyKey\n )\n ) as PropertyDecorator;\n };\n}\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-all.d.ts b/ui/node_modules/@lit/reactive-element/development/decorators/query-all.d.ts deleted file mode 100644 index af0fc05..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-all.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import type { ReactiveElement } from '../reactive-element.js'; -import { type Interface } from './base.js'; -export type QueryAllDecorator = { - (proto: Interface, name: PropertyKey, descriptor?: PropertyDescriptor): void | any; - , V extends NodeList>(value: ClassAccessorDecoratorTarget, context: ClassAccessorDecoratorContext): ClassAccessorDecoratorResult; -}; -/** - * A property decorator that converts a class property into a getter - * that executes a querySelectorAll on the element's renderRoot. - * - * @param selector A DOMString containing one or more selectors to match. - * - * See: - * https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll - * - * ```ts - * class MyElement { - * @queryAll('div') - * divs: NodeListOf; - * - * render() { - * return html` - *
- *
- * `; - * } - * } - * ``` - * @category Decorator - */ -export declare function queryAll(selector: string): QueryAllDecorator; -//# sourceMappingURL=query-all.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-all.d.ts.map b/ui/node_modules/@lit/reactive-element/development/decorators/query-all.d.ts.map deleted file mode 100644 index f46ee6b..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-all.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-all.d.ts","sourceRoot":"","sources":["../../src/decorators/query-all.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAO,KAAK,SAAS,EAAC,MAAM,WAAW,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG;IAE9B,CACE,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,EACjC,IAAI,EAAE,WAAW,EACjB,UAAU,CAAC,EAAE,kBAAkB,GAG9B,IAAI,GAAG,GAAG,CAAC;IAGd,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,SAAS,QAAQ,EACvD,KAAK,EAAE,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EACzC,OAAO,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3C,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CACvC,CAAC;AAMF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAa5D"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-all.js b/ui/node_modules/@lit/reactive-element/development/decorators/query-all.js deleted file mode 100644 index 2152391..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-all.js +++ /dev/null @@ -1,44 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import { desc } from './base.js'; -// Shared fragment used to generate empty NodeLists when a render root is -// undefined -let fragment; -/** - * A property decorator that converts a class property into a getter - * that executes a querySelectorAll on the element's renderRoot. - * - * @param selector A DOMString containing one or more selectors to match. - * - * See: - * https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll - * - * ```ts - * class MyElement { - * @queryAll('div') - * divs: NodeListOf; - * - * render() { - * return html` - *
- *
- * `; - * } - * } - * ``` - * @category Decorator - */ -export function queryAll(selector) { - return ((obj, name) => { - return desc(obj, name, { - get() { - const container = this.renderRoot ?? (fragment ??= document.createDocumentFragment()); - return container.querySelectorAll(selector); - }, - }); - }); -} -//# sourceMappingURL=query-all.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-all.js.map b/ui/node_modules/@lit/reactive-element/development/decorators/query-all.js.map deleted file mode 100644 index a5f0858..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-all.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-all.js","sourceRoot":"","sources":["../../src/decorators/query-all.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAC,IAAI,EAAiB,MAAM,WAAW,CAAC;AAmB/C,yEAAyE;AACzE,YAAY;AACZ,IAAI,QAA0B,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,QAAQ,CAAC,QAAgB;IACvC,OAAO,CAAC,CACN,GAAW,EACX,IAAmE,EACnE,EAAE;QACF,OAAO,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE;YACrB,GAAG;gBACD,MAAM,SAAS,GACb,IAAI,CAAC,UAAU,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC,sBAAsB,EAAE,CAAC,CAAC;gBACtE,OAAO,SAAS,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;YAC9C,CAAC;SACF,CAAC,CAAC;IACL,CAAC,CAAsB,CAAC;AAC1B,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\nimport type {ReactiveElement} from '../reactive-element.js';\nimport {desc, type Interface} from './base.js';\n\nexport type QueryAllDecorator = {\n // legacy\n (\n proto: Interface,\n name: PropertyKey,\n descriptor?: PropertyDescriptor\n // Note TypeScript requires the return type to be `void|any`\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): void | any;\n\n // standard\n , V extends NodeList>(\n value: ClassAccessorDecoratorTarget,\n context: ClassAccessorDecoratorContext\n ): ClassAccessorDecoratorResult;\n};\n\n// Shared fragment used to generate empty NodeLists when a render root is\n// undefined\nlet fragment: DocumentFragment;\n\n/**\n * A property decorator that converts a class property into a getter\n * that executes a querySelectorAll on the element's renderRoot.\n *\n * @param selector A DOMString containing one or more selectors to match.\n *\n * See:\n * https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll\n *\n * ```ts\n * class MyElement {\n * @queryAll('div')\n * divs: NodeListOf;\n *\n * render() {\n * return html`\n *
\n *
\n * `;\n * }\n * }\n * ```\n * @category Decorator\n */\nexport function queryAll(selector: string): QueryAllDecorator {\n return ((\n obj: object,\n name: PropertyKey | ClassAccessorDecoratorContext\n ) => {\n return desc(obj, name, {\n get(this: ReactiveElement) {\n const container =\n this.renderRoot ?? (fragment ??= document.createDocumentFragment());\n return container.querySelectorAll(selector);\n },\n });\n }) as QueryAllDecorator;\n}\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-elements.d.ts b/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-elements.d.ts deleted file mode 100644 index 309cf89..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-elements.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import type { ReactiveElement } from '../reactive-element.js'; -import type { QueryAssignedNodesOptions } from './query-assigned-nodes.js'; -import { type Interface } from './base.js'; -export type QueryAssignedElementsDecorator = { - (proto: Interface, name: PropertyKey, descriptor?: PropertyDescriptor): void | any; - , V extends Array>(value: ClassAccessorDecoratorTarget, context: ClassAccessorDecoratorContext): ClassAccessorDecoratorResult; -}; -/** - * Options for the {@linkcode queryAssignedElements} decorator. Extends the - * options that can be passed into - * [HTMLSlotElement.assignedElements](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedElements). - */ -export interface QueryAssignedElementsOptions extends QueryAssignedNodesOptions { - /** - * CSS selector used to filter the elements returned. For example, a selector - * of `".item"` will only include elements with the `item` class. - */ - selector?: string; -} -/** - * A property decorator that converts a class property into a getter that - * returns the `assignedElements` of the given `slot`. Provides a declarative - * way to use - * [`HTMLSlotElement.assignedElements`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedElements). - * - * Can be passed an optional {@linkcode QueryAssignedElementsOptions} object. - * - * Example usage: - * ```ts - * class MyElement { - * @queryAssignedElements({ slot: 'list' }) - * listItems!: Array; - * @queryAssignedElements() - * unnamedSlotEls!: Array; - * - * render() { - * return html` - * - * - * `; - * } - * } - * ``` - * - * Note, the type of this property should be annotated as `Array`. - * - * @category Decorator - */ -export declare function queryAssignedElements(options?: QueryAssignedElementsOptions): QueryAssignedElementsDecorator; -//# sourceMappingURL=query-assigned-elements.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-elements.d.ts.map b/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-elements.d.ts.map deleted file mode 100644 index c23e999..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-elements.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-assigned-elements.d.ts","sourceRoot":"","sources":["../../src/decorators/query-assigned-elements.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAO,KAAK,SAAS,EAAC,MAAM,WAAW,CAAC;AAE/C,MAAM,MAAM,8BAA8B,GAAG;IAE3C,CACE,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,EACjC,IAAI,EAAE,WAAW,EACjB,UAAU,CAAC,EAAE,kBAAkB,GAG9B,IAAI,GAAG,GAAG,CAAC;IAGd,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,SAAS,KAAK,CAAC,OAAO,CAAC,EAC7D,KAAK,EAAE,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EACzC,OAAO,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3C,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CACvC,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,4BACf,SAAQ,yBAAyB;IACjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,CAAC,EAAE,4BAA4B,GACrC,8BAA8B,CAoBhC"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-elements.js b/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-elements.js deleted file mode 100644 index 2e6597e..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-elements.js +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import { desc } from './base.js'; -/** - * A property decorator that converts a class property into a getter that - * returns the `assignedElements` of the given `slot`. Provides a declarative - * way to use - * [`HTMLSlotElement.assignedElements`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedElements). - * - * Can be passed an optional {@linkcode QueryAssignedElementsOptions} object. - * - * Example usage: - * ```ts - * class MyElement { - * @queryAssignedElements({ slot: 'list' }) - * listItems!: Array; - * @queryAssignedElements() - * unnamedSlotEls!: Array; - * - * render() { - * return html` - * - * - * `; - * } - * } - * ``` - * - * Note, the type of this property should be annotated as `Array`. - * - * @category Decorator - */ -export function queryAssignedElements(options) { - return ((obj, name) => { - const { slot, selector } = options ?? {}; - const slotSelector = `slot${slot ? `[name=${slot}]` : ':not([name])'}`; - return desc(obj, name, { - get() { - const slotEl = this.renderRoot?.querySelector(slotSelector); - const elements = slotEl?.assignedElements(options) ?? []; - return (selector === undefined - ? elements - : elements.filter((node) => node.matches(selector))); - }, - }); - }); -} -//# sourceMappingURL=query-assigned-elements.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-elements.js.map b/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-elements.js.map deleted file mode 100644 index b5b6e0a..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-elements.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-assigned-elements.js","sourceRoot":"","sources":["../../src/decorators/query-assigned-elements.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAWH,OAAO,EAAC,IAAI,EAAiB,MAAM,WAAW,CAAC;AAiC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,UAAU,qBAAqB,CACnC,OAAsC;IAEtC,OAAO,CAAC,CACN,GAAW,EACX,IAAmE,EACnE,EAAE;QACF,MAAM,EAAC,IAAI,EAAE,QAAQ,EAAC,GAAG,OAAO,IAAI,EAAE,CAAC;QACvC,MAAM,YAAY,GAAG,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC;QACvE,OAAO,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE;YACrB,GAAG;gBACD,MAAM,MAAM,GACV,IAAI,CAAC,UAAU,EAAE,aAAa,CAAkB,YAAY,CAAC,CAAC;gBAChE,MAAM,QAAQ,GAAG,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;gBACzD,OAAO,CACL,QAAQ,KAAK,SAAS;oBACpB,CAAC,CAAC,QAAQ;oBACV,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CACjD,CAAC;YACT,CAAC;SACF,CAAC,CAAC;IACL,CAAC,CAAmC,CAAC;AACvC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport type {ReactiveElement} from '../reactive-element.js';\nimport type {QueryAssignedNodesOptions} from './query-assigned-nodes.js';\nimport {desc, type Interface} from './base.js';\n\nexport type QueryAssignedElementsDecorator = {\n // legacy\n (\n proto: Interface,\n name: PropertyKey,\n descriptor?: PropertyDescriptor\n // Note TypeScript requires the return type to be `void|any`\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): void | any;\n\n // standard\n , V extends Array>(\n value: ClassAccessorDecoratorTarget,\n context: ClassAccessorDecoratorContext\n ): ClassAccessorDecoratorResult;\n};\n\n/**\n * Options for the {@linkcode queryAssignedElements} decorator. Extends the\n * options that can be passed into\n * [HTMLSlotElement.assignedElements](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedElements).\n */\nexport interface QueryAssignedElementsOptions\n extends QueryAssignedNodesOptions {\n /**\n * CSS selector used to filter the elements returned. For example, a selector\n * of `\".item\"` will only include elements with the `item` class.\n */\n selector?: string;\n}\n\n/**\n * A property decorator that converts a class property into a getter that\n * returns the `assignedElements` of the given `slot`. Provides a declarative\n * way to use\n * [`HTMLSlotElement.assignedElements`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedElements).\n *\n * Can be passed an optional {@linkcode QueryAssignedElementsOptions} object.\n *\n * Example usage:\n * ```ts\n * class MyElement {\n * @queryAssignedElements({ slot: 'list' })\n * listItems!: Array;\n * @queryAssignedElements()\n * unnamedSlotEls!: Array;\n *\n * render() {\n * return html`\n * \n * \n * `;\n * }\n * }\n * ```\n *\n * Note, the type of this property should be annotated as `Array`.\n *\n * @category Decorator\n */\nexport function queryAssignedElements(\n options?: QueryAssignedElementsOptions\n): QueryAssignedElementsDecorator {\n return (>(\n obj: object,\n name: PropertyKey | ClassAccessorDecoratorContext\n ) => {\n const {slot, selector} = options ?? {};\n const slotSelector = `slot${slot ? `[name=${slot}]` : ':not([name])'}`;\n return desc(obj, name, {\n get(this: ReactiveElement): V {\n const slotEl =\n this.renderRoot?.querySelector(slotSelector);\n const elements = slotEl?.assignedElements(options) ?? [];\n return (\n selector === undefined\n ? elements\n : elements.filter((node) => node.matches(selector))\n ) as V;\n },\n });\n }) as QueryAssignedElementsDecorator;\n}\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-nodes.d.ts b/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-nodes.d.ts deleted file mode 100644 index 7aa845e..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-nodes.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import type { ReactiveElement } from '../reactive-element.js'; -import { type Interface } from './base.js'; -/** - * Options for the {@linkcode queryAssignedNodes} decorator. Extends the options - * that can be passed into [HTMLSlotElement.assignedNodes](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedNodes). - */ -export interface QueryAssignedNodesOptions extends AssignedNodesOptions { - /** - * Name of the slot to query. Leave empty for the default slot. - */ - slot?: string; -} -export type QueryAssignedNodesDecorator = { - (proto: Interface, name: PropertyKey, descriptor?: PropertyDescriptor): void | any; - , V extends Array>(value: ClassAccessorDecoratorTarget, context: ClassAccessorDecoratorContext): ClassAccessorDecoratorResult; -}; -/** - * A property decorator that converts a class property into a getter that - * returns the `assignedNodes` of the given `slot`. - * - * Can be passed an optional {@linkcode QueryAssignedNodesOptions} object. - * - * Example usage: - * ```ts - * class MyElement { - * @queryAssignedNodes({slot: 'list', flatten: true}) - * listItems!: Array; - * - * render() { - * return html` - * - * `; - * } - * } - * ``` - * - * Note the type of this property should be annotated as `Array`. Use the - * queryAssignedElements decorator to list only elements, and optionally filter - * the element list using a CSS selector. - * - * @category Decorator - */ -export declare function queryAssignedNodes(options?: QueryAssignedNodesOptions): QueryAssignedNodesDecorator; -//# sourceMappingURL=query-assigned-nodes.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-nodes.d.ts.map b/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-nodes.d.ts.map deleted file mode 100644 index 7c90b71..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-nodes.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-assigned-nodes.d.ts","sourceRoot":"","sources":["../../src/decorators/query-assigned-nodes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAO,KAAK,SAAS,EAAC,MAAM,WAAW,CAAC;AAE/C;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,2BAA2B,GAAG;IAExC,CACE,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,EACjC,IAAI,EAAE,WAAW,EACjB,UAAU,CAAC,EAAE,kBAAkB,GAG9B,IAAI,GAAG,GAAG,CAAC;IAGd,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,SAAS,KAAK,CAAC,IAAI,CAAC,EAC1D,KAAK,EAAE,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EACzC,OAAO,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3C,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CACvC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,CAAC,EAAE,yBAAyB,GAClC,2BAA2B,CAgB7B"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-nodes.js b/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-nodes.js deleted file mode 100644 index fd0bdd9..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-nodes.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import { desc } from './base.js'; -/** - * A property decorator that converts a class property into a getter that - * returns the `assignedNodes` of the given `slot`. - * - * Can be passed an optional {@linkcode QueryAssignedNodesOptions} object. - * - * Example usage: - * ```ts - * class MyElement { - * @queryAssignedNodes({slot: 'list', flatten: true}) - * listItems!: Array; - * - * render() { - * return html` - * - * `; - * } - * } - * ``` - * - * Note the type of this property should be annotated as `Array`. Use the - * queryAssignedElements decorator to list only elements, and optionally filter - * the element list using a CSS selector. - * - * @category Decorator - */ -export function queryAssignedNodes(options) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return ((obj, name) => { - const { slot } = options ?? {}; - const slotSelector = `slot${slot ? `[name=${slot}]` : ':not([name])'}`; - return desc(obj, name, { - get() { - const slotEl = this.renderRoot?.querySelector(slotSelector); - return (slotEl?.assignedNodes(options) ?? []); - }, - }); - }); -} -//# sourceMappingURL=query-assigned-nodes.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-nodes.js.map b/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-nodes.js.map deleted file mode 100644 index c46eed4..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-assigned-nodes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-assigned-nodes.js","sourceRoot":"","sources":["../../src/decorators/query-assigned-nodes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAC,IAAI,EAAiB,MAAM,WAAW,CAAC;AA8B/C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,kBAAkB,CAChC,OAAmC;IAEnC,8DAA8D;IAC9D,OAAO,CAAC,CACN,GAAW,EACX,IAAmE,EACnE,EAAE;QACF,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,IAAI,EAAE,CAAC;QAC7B,MAAM,YAAY,GAAG,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC;QACvE,OAAO,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE;YACrB,GAAG;gBACD,MAAM,MAAM,GACV,IAAI,CAAC,UAAU,EAAE,aAAa,CAAkB,YAAY,CAAC,CAAC;gBAChE,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,IAAI,EAAE,CAAiB,CAAC;YAChE,CAAC;SACF,CAAC,CAAC;IACL,CAAC,CAAgC,CAAC;AACpC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\nimport type {ReactiveElement} from '../reactive-element.js';\nimport {desc, type Interface} from './base.js';\n\n/**\n * Options for the {@linkcode queryAssignedNodes} decorator. Extends the options\n * that can be passed into [HTMLSlotElement.assignedNodes](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedNodes).\n */\nexport interface QueryAssignedNodesOptions extends AssignedNodesOptions {\n /**\n * Name of the slot to query. Leave empty for the default slot.\n */\n slot?: string;\n}\n\nexport type QueryAssignedNodesDecorator = {\n // legacy\n (\n proto: Interface,\n name: PropertyKey,\n descriptor?: PropertyDescriptor\n // Note TypeScript requires the return type to be `void|any`\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): void | any;\n\n // standard\n , V extends Array>(\n value: ClassAccessorDecoratorTarget,\n context: ClassAccessorDecoratorContext\n ): ClassAccessorDecoratorResult;\n};\n\n/**\n * A property decorator that converts a class property into a getter that\n * returns the `assignedNodes` of the given `slot`.\n *\n * Can be passed an optional {@linkcode QueryAssignedNodesOptions} object.\n *\n * Example usage:\n * ```ts\n * class MyElement {\n * @queryAssignedNodes({slot: 'list', flatten: true})\n * listItems!: Array;\n *\n * render() {\n * return html`\n * \n * `;\n * }\n * }\n * ```\n *\n * Note the type of this property should be annotated as `Array`. Use the\n * queryAssignedElements decorator to list only elements, and optionally filter\n * the element list using a CSS selector.\n *\n * @category Decorator\n */\nexport function queryAssignedNodes(\n options?: QueryAssignedNodesOptions\n): QueryAssignedNodesDecorator {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return (>(\n obj: object,\n name: PropertyKey | ClassAccessorDecoratorContext\n ) => {\n const {slot} = options ?? {};\n const slotSelector = `slot${slot ? `[name=${slot}]` : ':not([name])'}`;\n return desc(obj, name, {\n get(this: ReactiveElement): V {\n const slotEl =\n this.renderRoot?.querySelector(slotSelector);\n return (slotEl?.assignedNodes(options) ?? []) as unknown as V;\n },\n });\n }) as QueryAssignedNodesDecorator;\n}\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-async.d.ts b/ui/node_modules/@lit/reactive-element/development/decorators/query-async.d.ts deleted file mode 100644 index 062fdc4..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-async.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import type { ReactiveElement } from '../reactive-element.js'; -import { type Interface } from './base.js'; -export type QueryAsyncDecorator = { - (proto: Interface, name: PropertyKey, descriptor?: PropertyDescriptor): void | any; - , V extends Promise>(value: ClassAccessorDecoratorTarget, context: ClassAccessorDecoratorContext): ClassAccessorDecoratorResult; -}; -/** - * A property decorator that converts a class property into a getter that - * returns a promise that resolves to the result of a querySelector on the - * element's renderRoot done after the element's `updateComplete` promise - * resolves. When the queried property may change with element state, this - * decorator can be used instead of requiring users to await the - * `updateComplete` before accessing the property. - * - * @param selector A DOMString containing one or more selectors to match. - * - * See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector - * - * ```ts - * class MyElement { - * @queryAsync('#first') - * first: Promise; - * - * render() { - * return html` - *
- *
- * `; - * } - * } - * - * // external usage - * async doSomethingWithFirst() { - * (await aMyElement.first).doSomething(); - * } - * ``` - * @category Decorator - */ -export declare function queryAsync(selector: string): QueryAsyncDecorator; -//# sourceMappingURL=query-async.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-async.d.ts.map b/ui/node_modules/@lit/reactive-element/development/decorators/query-async.d.ts.map deleted file mode 100644 index 5169cb7..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-async.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-async.d.ts","sourceRoot":"","sources":["../../src/decorators/query-async.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAO,KAAK,SAAS,EAAC,MAAM,WAAW,CAAC;AAE/C,MAAM,MAAM,mBAAmB,GAAG;IAEhC,CACE,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,EACjC,IAAI,EAAE,WAAW,EACjB,UAAU,CAAC,EAAE,kBAAkB,GAG9B,IAAI,GAAG,GAAG,CAAC;IAGd,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,SAAS,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,EACtE,KAAK,EAAE,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EACzC,OAAO,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3C,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CACvC,CAAC;AAOF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAWnC,mBAAmB,CAC1B"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-async.js b/ui/node_modules/@lit/reactive-element/development/decorators/query-async.js deleted file mode 100644 index 913dd24..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-async.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import { desc } from './base.js'; -// Note, in the future, we may extend this decorator to support the use case -// where the queried element may need to do work to become ready to interact -// with (e.g. load some implementation code). If so, we might elect to -// add a second argument defining a function that can be run to make the -// queried element loaded/updated/ready. -/** - * A property decorator that converts a class property into a getter that - * returns a promise that resolves to the result of a querySelector on the - * element's renderRoot done after the element's `updateComplete` promise - * resolves. When the queried property may change with element state, this - * decorator can be used instead of requiring users to await the - * `updateComplete` before accessing the property. - * - * @param selector A DOMString containing one or more selectors to match. - * - * See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector - * - * ```ts - * class MyElement { - * @queryAsync('#first') - * first: Promise; - * - * render() { - * return html` - *
- *
- * `; - * } - * } - * - * // external usage - * async doSomethingWithFirst() { - * (await aMyElement.first).doSomething(); - * } - * ``` - * @category Decorator - */ -export function queryAsync(selector) { - return ((obj, name) => { - return desc(obj, name, { - async get() { - await this.updateComplete; - return this.renderRoot?.querySelector(selector) ?? null; - }, - }); - }); -} -//# sourceMappingURL=query-async.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query-async.js.map b/ui/node_modules/@lit/reactive-element/development/decorators/query-async.js.map deleted file mode 100644 index 6335754..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query-async.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query-async.js","sourceRoot":"","sources":["../../src/decorators/query-async.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAUH,OAAO,EAAC,IAAI,EAAiB,MAAM,WAAW,CAAC;AAmB/C,4EAA4E;AAC5E,4EAA4E;AAC5E,sEAAsE;AACtE,wEAAwE;AACxE,wCAAwC;AACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,UAAU,UAAU,CAAC,QAAgB;IACzC,OAAO,CAAC,CACN,GAAW,EACX,IAAmE,EACnE,EAAE;QACF,OAAO,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE;YACrB,KAAK,CAAC,GAAG;gBACP,MAAM,IAAI,CAAC,cAAc,CAAC;gBAC1B,OAAO,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC;YAC1D,CAAC;SACF,CAAC,CAAC;IACL,CAAC,CAAwB,CAAC;AAC5B,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport type {ReactiveElement} from '../reactive-element.js';\nimport {desc, type Interface} from './base.js';\n\nexport type QueryAsyncDecorator = {\n // legacy\n (\n proto: Interface,\n name: PropertyKey,\n descriptor?: PropertyDescriptor\n // Note TypeScript requires the return type to be `void|any`\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): void | any;\n\n // standard\n , V extends Promise>(\n value: ClassAccessorDecoratorTarget,\n context: ClassAccessorDecoratorContext\n ): ClassAccessorDecoratorResult;\n};\n\n// Note, in the future, we may extend this decorator to support the use case\n// where the queried element may need to do work to become ready to interact\n// with (e.g. load some implementation code). If so, we might elect to\n// add a second argument defining a function that can be run to make the\n// queried element loaded/updated/ready.\n/**\n * A property decorator that converts a class property into a getter that\n * returns a promise that resolves to the result of a querySelector on the\n * element's renderRoot done after the element's `updateComplete` promise\n * resolves. When the queried property may change with element state, this\n * decorator can be used instead of requiring users to await the\n * `updateComplete` before accessing the property.\n *\n * @param selector A DOMString containing one or more selectors to match.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector\n *\n * ```ts\n * class MyElement {\n * @queryAsync('#first')\n * first: Promise;\n *\n * render() {\n * return html`\n *
\n *
\n * `;\n * }\n * }\n *\n * // external usage\n * async doSomethingWithFirst() {\n * (await aMyElement.first).doSomething();\n * }\n * ```\n * @category Decorator\n */\nexport function queryAsync(selector: string) {\n return ((\n obj: object,\n name: PropertyKey | ClassAccessorDecoratorContext\n ) => {\n return desc(obj, name, {\n async get(this: ReactiveElement) {\n await this.updateComplete;\n return this.renderRoot?.querySelector(selector) ?? null;\n },\n });\n }) as QueryAsyncDecorator;\n}\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query.d.ts b/ui/node_modules/@lit/reactive-element/development/decorators/query.d.ts deleted file mode 100644 index 06c860c..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import type { ReactiveElement } from '../reactive-element.js'; -import { type Interface } from './base.js'; -export type QueryDecorator = { - (proto: Interface, name: PropertyKey, descriptor?: PropertyDescriptor): void | any; - , V extends Element | null>(value: ClassAccessorDecoratorTarget, context: ClassAccessorDecoratorContext): ClassAccessorDecoratorResult; -}; -/** - * A property decorator that converts a class property into a getter that - * executes a querySelector on the element's renderRoot. - * - * @param selector A DOMString containing one or more selectors to match. - * @param cache An optional boolean which when true performs the DOM query only - * once and caches the result. - * - * See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector - * - * ```ts - * class MyElement { - * @query('#first') - * first: HTMLDivElement; - * - * render() { - * return html` - *
- *
- * `; - * } - * } - * ``` - * @category Decorator - */ -export declare function query(selector: string, cache?: boolean): QueryDecorator; -//# sourceMappingURL=query.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query.d.ts.map b/ui/node_modules/@lit/reactive-element/development/decorators/query.d.ts.map deleted file mode 100644 index fc3344a..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/decorators/query.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAO,KAAK,SAAS,EAAC,MAAM,WAAW,CAAC;AA8B/C,MAAM,MAAM,cAAc,GAAG;IAE3B,CACE,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,EACjC,IAAI,EAAE,WAAW,EACjB,UAAU,CAAC,EAAE,kBAAkB,GAG9B,IAAI,GAAG,GAAG,CAAC;IAGd,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,SAAS,OAAO,GAAG,IAAI,EAC7D,KAAK,EAAE,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EACzC,OAAO,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3C,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CACvC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,cAAc,CA4EvE"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query.js b/ui/node_modules/@lit/reactive-element/development/decorators/query.js deleted file mode 100644 index 9e1622b..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -import { desc } from './base.js'; -const DEV_MODE = true; -let issueWarning; -if (DEV_MODE) { - // Ensure warnings are issued only 1x, even if multiple versions of Lit - // are loaded. - globalThis.litIssuedWarnings ??= new Set(); - /** - * Issue a warning if we haven't already, based either on `code` or `warning`. - * Warnings are disabled automatically only by `warning`; disabling via `code` - * can be done by users. - */ - issueWarning = (code, warning) => { - warning += code - ? ` See https://lit.dev/msg/${code} for more information.` - : ''; - if (!globalThis.litIssuedWarnings.has(warning) && - !globalThis.litIssuedWarnings.has(code)) { - console.warn(warning); - globalThis.litIssuedWarnings.add(warning); - } - }; -} -/** - * A property decorator that converts a class property into a getter that - * executes a querySelector on the element's renderRoot. - * - * @param selector A DOMString containing one or more selectors to match. - * @param cache An optional boolean which when true performs the DOM query only - * once and caches the result. - * - * See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector - * - * ```ts - * class MyElement { - * @query('#first') - * first: HTMLDivElement; - * - * render() { - * return html` - *
- *
- * `; - * } - * } - * ``` - * @category Decorator - */ -export function query(selector, cache) { - return ((protoOrTarget, nameOrContext, descriptor) => { - const doQuery = (el) => { - const result = (el.renderRoot?.querySelector(selector) ?? null); - if (DEV_MODE && result === null && cache && !el.hasUpdated) { - const name = typeof nameOrContext === 'object' - ? nameOrContext.name - : nameOrContext; - issueWarning('', `@query'd field ${JSON.stringify(String(name))} with the 'cache' ` + - `flag set for selector '${selector}' has been accessed before ` + - `the first update and returned null. This is expected if the ` + - `renderRoot tree has not been provided beforehand (e.g. via ` + - `Declarative Shadow DOM). Therefore the value hasn't been cached.`); - } - // TODO: if we want to allow users to assert that the query will never - // return null, we need a new option and to throw here if the result - // is null. - return result; - }; - if (cache) { - // Accessors to wrap from either: - // 1. The decorator target, in the case of standard decorators - // 2. The property descriptor, in the case of experimental decorators - // on auto-accessors. - // 3. Functions that access our own cache-key property on the instance, - // in the case of experimental decorators on fields. - const { get, set } = typeof nameOrContext === 'object' - ? protoOrTarget - : (descriptor ?? - (() => { - const key = DEV_MODE - ? Symbol(`${String(nameOrContext)} (@query() cache)`) - : Symbol(); - return { - get() { - return this[key]; - }, - set(v) { - this[key] = v; - }, - }; - })()); - return desc(protoOrTarget, nameOrContext, { - get() { - let result = get.call(this); - if (result === undefined) { - result = doQuery(this); - if (result !== null || this.hasUpdated) { - set.call(this, result); - } - } - return result; - }, - }); - } - else { - // This object works as the return type for both standard and - // experimental decorators. - return desc(protoOrTarget, nameOrContext, { - get() { - return doQuery(this); - }, - }); - } - }); -} -//# sourceMappingURL=query.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/query.js.map b/ui/node_modules/@lit/reactive-element/development/decorators/query.js.map deleted file mode 100644 index 2013cb1..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/query.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/decorators/query.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAC,IAAI,EAAiB,MAAM,WAAW,CAAC;AAE/C,MAAM,QAAQ,GAAG,IAAI,CAAC;AAEtB,IAAI,YAAqD,CAAC;AAE1D,IAAI,QAAQ,EAAE,CAAC;IACb,uEAAuE;IACvE,cAAc;IACd,UAAU,CAAC,iBAAiB,KAAK,IAAI,GAAG,EAAE,CAAC;IAE3C;;;;OAIG;IACH,YAAY,GAAG,CAAC,IAAY,EAAE,OAAe,EAAE,E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,CAAC;IACH,CAAC,CAAmB,CAAC;AACvB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\nimport type {ReactiveElement} from '../reactive-element.js';\nimport {desc, type Interface} from './base.js';\n\nconst DEV_MODE = true;\n\nlet issueWarning: (code: string, warning: string) => void;\n\nif (DEV_MODE) {\n // Ensure warnings are issued only 1x, even if multiple versions of Lit\n // are loaded.\n globalThis.litIssuedWarnings ??= new Set();\n\n /**\n * Issue a warning if we haven't already, based either on `code` or `warning`.\n * Warnings are disabled automatically only by `warning`; disabling via `code`\n * can be done by users.\n */\n issueWarning = (code: string, warning: string) => {\n warning += code\n ? ` See https://lit.dev/msg/${code} for more information.`\n : '';\n if (\n !globalThis.litIssuedWarnings!.has(warning) &&\n !globalThis.litIssuedWarnings!.has(code)\n ) {\n console.warn(warning);\n globalThis.litIssuedWarnings!.add(warning);\n }\n };\n}\n\nexport type QueryDecorator = {\n // legacy\n (\n proto: Interface,\n name: PropertyKey,\n descriptor?: PropertyDescriptor\n // Note TypeScript requires the return type to be `void|any`\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): void | any;\n\n // standard\n , V extends Element | null>(\n value: ClassAccessorDecoratorTarget,\n context: ClassAccessorDecoratorContext\n ): ClassAccessorDecoratorResult;\n};\n\n/**\n * A property decorator that converts a class property into a getter that\n * executes a querySelector on the element's renderRoot.\n *\n * @param selector A DOMString containing one or more selectors to match.\n * @param cache An optional boolean which when true performs the DOM query only\n * once and caches the result.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector\n *\n * ```ts\n * class MyElement {\n * @query('#first')\n * first: HTMLDivElement;\n *\n * render() {\n * return html`\n *
\n *
\n * `;\n * }\n * }\n * ```\n * @category Decorator\n */\nexport function query(selector: string, cache?: boolean): QueryDecorator {\n return (, V extends Element | null>(\n protoOrTarget: ClassAccessorDecoratorTarget,\n nameOrContext: PropertyKey | ClassAccessorDecoratorContext,\n descriptor?: PropertyDescriptor\n ) => {\n const doQuery = (el: Interface): V => {\n const result = (el.renderRoot?.querySelector(selector) ?? null) as V;\n if (DEV_MODE && result === null && cache && !el.hasUpdated) {\n const name =\n typeof nameOrContext === 'object'\n ? nameOrContext.name\n : nameOrContext;\n issueWarning(\n '',\n `@query'd field ${JSON.stringify(String(name))} with the 'cache' ` +\n `flag set for selector '${selector}' has been accessed before ` +\n `the first update and returned null. This is expected if the ` +\n `renderRoot tree has not been provided beforehand (e.g. via ` +\n `Declarative Shadow DOM). Therefore the value hasn't been cached.`\n );\n }\n // TODO: if we want to allow users to assert that the query will never\n // return null, we need a new option and to throw here if the result\n // is null.\n return result;\n };\n if (cache) {\n // Accessors to wrap from either:\n // 1. The decorator target, in the case of standard decorators\n // 2. The property descriptor, in the case of experimental decorators\n // on auto-accessors.\n // 3. Functions that access our own cache-key property on the instance,\n // in the case of experimental decorators on fields.\n const {get, set} =\n typeof nameOrContext === 'object'\n ? protoOrTarget\n : (descriptor ??\n (() => {\n const key = DEV_MODE\n ? Symbol(`${String(nameOrContext)} (@query() cache)`)\n : Symbol();\n type WithCache = ReactiveElement & {\n [key: symbol]: Element | null;\n };\n return {\n get() {\n return (this as WithCache)[key];\n },\n set(v) {\n (this as WithCache)[key] = v;\n },\n };\n })());\n return desc(protoOrTarget, nameOrContext, {\n get(this: ReactiveElement): V {\n let result: V = get!.call(this);\n if (result === undefined) {\n result = doQuery(this);\n if (result !== null || this.hasUpdated) {\n set!.call(this, result);\n }\n }\n return result;\n },\n });\n } else {\n // This object works as the return type for both standard and\n // experimental decorators.\n return desc(protoOrTarget, nameOrContext, {\n get(this: ReactiveElement) {\n return doQuery(this);\n },\n });\n }\n }) as QueryDecorator;\n}\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/state.d.ts b/ui/node_modules/@lit/reactive-element/development/decorators/state.d.ts deleted file mode 100644 index e3b9841..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/state.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -export interface StateDeclaration { - /** - * A function that indicates if a property should be considered changed when - * it is set. The function should take the `newValue` and `oldValue` and - * return `true` if an update should be requested. - */ - hasChanged?(value: Type, oldValue: Type): boolean; -} -/** - * @deprecated use StateDeclaration - */ -export type InternalPropertyDeclaration = StateDeclaration; -/** - * Declares a private or protected reactive property that still triggers - * updates to the element when it changes. It does not reflect from the - * corresponding attribute. - * - * Properties declared this way must not be used from HTML or HTML templating - * systems, they're solely for properties internal to the element. These - * properties may be renamed by optimization tools like closure compiler. - * @category Decorator - */ -export declare function state(options?: StateDeclaration): import("./property.js").PropertyDecorator; -//# sourceMappingURL=state.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/state.d.ts.map b/ui/node_modules/@lit/reactive-element/development/decorators/state.d.ts.map deleted file mode 100644 index 37bb756..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/state.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/decorators/state.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAWH,MAAM,WAAW,gBAAgB,CAAC,IAAI,GAAG,OAAO;IAC9C;;;;OAIG;IACH,UAAU,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,GAAG,OAAO,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,MAAM,2BAA2B,CAAC,IAAI,GAAG,OAAO,IACpD,gBAAgB,CAAC,IAAI,CAAC,CAAC;AAEzB;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CAAC,OAAO,CAAC,EAAE,gBAAgB,6CAS/C"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/state.js b/ui/node_modules/@lit/reactive-element/development/decorators/state.js deleted file mode 100644 index 8ea1281..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/state.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -/* - * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all - * property decorators (but not class decorators) in this file that have - * an @ExportDecoratedItems annotation must be defined as a regular function, - * not an arrow function. - */ -import { property } from './property.js'; -/** - * Declares a private or protected reactive property that still triggers - * updates to the element when it changes. It does not reflect from the - * corresponding attribute. - * - * Properties declared this way must not be used from HTML or HTML templating - * systems, they're solely for properties internal to the element. These - * properties may be renamed by optimization tools like closure compiler. - * @category Decorator - */ -export function state(options) { - return property({ - ...options, - // Add both `state` and `attribute` because we found a third party - // controller that is keying off of PropertyOptions.state to determine - // whether a field is a private internal property or not. - state: true, - attribute: false, - }); -} -//# sourceMappingURL=state.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/decorators/state.js.map b/ui/node_modules/@lit/reactive-element/development/decorators/state.js.map deleted file mode 100644 index d6602df..0000000 --- a/ui/node_modules/@lit/reactive-element/development/decorators/state.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"state.js","sourceRoot":"","sources":["../../src/decorators/state.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAiBvC;;;;;;;;;GASG;AACH,MAAM,UAAU,KAAK,CAAC,OAA0B;IAC9C,OAAO,QAAQ,CAAC;QACd,GAAG,OAAO;QACV,kEAAkE;QAClE,sEAAsE;QACtE,yDAAyD;QACzD,KAAK,EAAE,IAAI;QACX,SAAS,EAAE,KAAK;KACjB,CAAC,CAAC;AACL,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport {property} from './property.js';\n\nexport interface StateDeclaration {\n /**\n * A function that indicates if a property should be considered changed when\n * it is set. The function should take the `newValue` and `oldValue` and\n * return `true` if an update should be requested.\n */\n hasChanged?(value: Type, oldValue: Type): boolean;\n}\n\n/**\n * @deprecated use StateDeclaration\n */\nexport type InternalPropertyDeclaration =\n StateDeclaration;\n\n/**\n * Declares a private or protected reactive property that still triggers\n * updates to the element when it changes. It does not reflect from the\n * corresponding attribute.\n *\n * Properties declared this way must not be used from HTML or HTML templating\n * systems, they're solely for properties internal to the element. These\n * properties may be renamed by optimization tools like closure compiler.\n * @category Decorator\n */\nexport function state(options?: StateDeclaration) {\n return property({\n ...options,\n // Add both `state` and `attribute` because we found a third party\n // controller that is keying off of PropertyOptions.state to determine\n // whether a field is a private internal property or not.\n state: true,\n attribute: false,\n });\n}\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/polyfill-support.d.ts b/ui/node_modules/@lit/reactive-element/development/polyfill-support.d.ts deleted file mode 100644 index f97127f..0000000 --- a/ui/node_modules/@lit/reactive-element/development/polyfill-support.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -/** - * ReactiveElement patch to support browsers without native web components. - * - * This module should be used in addition to loading the web components - * polyfills via @webcomponents/webcomponentjs. When using those polyfills - * support for polyfilled Shadow DOM is automatic via the ShadyDOM polyfill, but - * support for Shadow DOM like css scoping is opt-in. This module uses ShadyCSS - * to scope styles defined via the `static styles` property. - * - * @packageDocumentation - */ -export {}; -//# sourceMappingURL=polyfill-support.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/polyfill-support.d.ts.map b/ui/node_modules/@lit/reactive-element/development/polyfill-support.d.ts.map deleted file mode 100644 index 7af0270..0000000 --- a/ui/node_modules/@lit/reactive-element/development/polyfill-support.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"polyfill-support.d.ts","sourceRoot":"","sources":["../src/polyfill-support.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/polyfill-support.js b/ui/node_modules/@lit/reactive-element/development/polyfill-support.js deleted file mode 100644 index e7e0863..0000000 --- a/ui/node_modules/@lit/reactive-element/development/polyfill-support.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -var _a, _b; -var SCOPED = '__scoped'; -// Note, explicitly use `var` here so that this can be re-defined when -// bundled. -// eslint-disable-next-line no-var -var DEV_MODE = true; -var polyfillSupport = function (_a) { - var ReactiveElement = _a.ReactiveElement; - // polyfill-support is only needed if ShadyCSS or the ApplyShim is in use - // We test at the point of patching, which makes it safe to load - // webcomponentsjs and polyfill-support in either order - if (window.ShadyCSS === undefined || - (window.ShadyCSS.nativeShadow && !window.ShadyCSS.ApplyShim)) { - return; - } - // console.log( - // '%c Making ReactiveElement compatible with ShadyDOM/CSS.', - // 'color: lightgreen; font-style: italic' - // ); - var elementProto = ReactiveElement.prototype; - // In noPatch mode, patch the ReactiveElement prototype so that no - // ReactiveElements must be wrapped. - if (window.ShadyDOM && - window.ShadyDOM.inUse && - window.ShadyDOM.noPatch === true) { - window.ShadyDOM.patchElementProto(elementProto); - } - /** - * Patch to apply adoptedStyleSheets via ShadyCSS - */ - var createRenderRoot = elementProto.createRenderRoot; - elementProto.createRenderRoot = function () { - var _a, _b, _c; - // Pass the scope to render options so that it gets to lit-html for proper - // scoping via ShadyCSS. - var name = this.localName; - // If using native Shadow DOM must adoptStyles normally, - // otherwise do nothing. - if (window.ShadyCSS.nativeShadow) { - return createRenderRoot.call(this); - } - else { - if (!this.constructor.hasOwnProperty(SCOPED)) { - this.constructor[SCOPED] = - true; - // Use ShadyCSS's `prepareAdoptedCssText` to shim adoptedStyleSheets. - var css = this.constructor.elementStyles.map(function (v) { - return v instanceof CSSStyleSheet - ? Array.from(v.cssRules).reduce(function (a, r) { return (a += r.cssText); }, '') - : v.cssText; - }); - (_b = (_a = window.ShadyCSS) === null || _a === void 0 ? void 0 : _a.ScopingShim) === null || _b === void 0 ? void 0 : _b.prepareAdoptedCssText(css, name); - if (this.constructor._$handlesPrepareStyles === undefined) { - window.ShadyCSS.prepareTemplateStyles(document.createElement('template'), name); - } - } - return ((_c = this.shadowRoot) !== null && _c !== void 0 ? _c : this.attachShadow(this.constructor - .shadowRootOptions)); - } - }; - /** - * Patch connectedCallback to apply ShadyCSS custom properties shimming. - */ - var connectedCallback = elementProto.connectedCallback; - elementProto.connectedCallback = function () { - connectedCallback.call(this); - // Note, must do first update separately so that we're ensured - // that rendering has completed before calling this. - if (this.hasUpdated) { - window.ShadyCSS.styleElement(this); - } - }; - /** - * Patch update to apply ShadyCSS custom properties shimming for first - * update. - */ - var didUpdate = elementProto._$didUpdate; - elementProto._$didUpdate = function (changedProperties) { - // Note, must do first update here so rendering has completed before - // calling this and styles are correct by updated/firstUpdated. - if (!this.hasUpdated) { - window.ShadyCSS.styleElement(this); - } - didUpdate.call(this, changedProperties); - }; -}; -if (DEV_MODE) { - (_a = globalThis.reactiveElementPolyfillSupportDevMode) !== null && _a !== void 0 ? _a : (globalThis.reactiveElementPolyfillSupportDevMode = polyfillSupport); -} -else { - (_b = globalThis.reactiveElementPolyfillSupport) !== null && _b !== void 0 ? _b : (globalThis.reactiveElementPolyfillSupport = polyfillSupport); -} -export {}; -//# sourceMappingURL=polyfill-support.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/polyfill-support.js.map b/ui/node_modules/@lit/reactive-element/development/polyfill-support.js.map deleted file mode 100644 index fca0835..0000000 --- a/ui/node_modules/@lit/reactive-element/development/polyfill-support.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"polyfill-support.js","sourceRoot":"","sources":["../src/polyfill-support.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAqBH,IAAM,MAAM,GAAG,UAAU,CAAC;AAsB1B,sEAAsE;AACtE,WAAW;AACX,kCAAkC;AAClC,IAAI,QAAQ,GAAG,IAAI,CAAC;AAEpB,IAAM,eAAe,GAAG,UAAC,EAIxB;QAHC,eAAe,qBAAA;IAIf,yEAAyE;IACzE,gEAAgE;IAChE,uDAAuD;IACvD,IACE,MAAM,CAAC,QAAQ,KAAK,SAAS;QAC7B,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,EAC5D,CAAC;QACD,OAAO;IACT,CAAC;IAED,eAAe;IACf,+DAA+D;IAC/D,4CAA4C;IAC5C,KAAK;IAEL,IAAM,YAAY,GAAG,eAAe,CAAC,SAAS,CAAC;IAE/C,kEAAkE;IAClE,oCAAoC;IACpC,IACE,MAAM,CAAC,QAAQ;QACf,MAAM,CAAC,QAAQ,CAAC,KAAK;QACrB,MAAM,CAAC,QAAQ,CAAC,OAAO,KAAK,IAAI,EAChC,CAAC;QACD,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACH,IAAM,gBAAgB,GAAG,YAAY,CAAC,gBAAgB,CAAC;IACvD,YAAY,CAAC,gBAAgB,GAAG;;QAC9B,0EAA0E;QAC1E,wBAAwB;QACxB,IAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC;QAC5B,wDAAwD;QACxD,wBAAwB;QACxB,IAAI,MAAM,CAAC,QAAS,CAAC,YAAY,EAAE,CAAC;YAClC,OAAO,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,CAAC;aAAM,CAAC;YACN,IA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Y,CAAC,IAAI,CAAC,CAAC;QACtC,CAAC;IACH,CAAC,CAAC;IAEF;;;OAGG;IACH,IAAM,SAAS,GAAG,YAAY,CAAC,WAAW,CAAC;IAC3C,YAAY,CAAC,WAAW,GAAG,UAEzB,iBAA0B;QAE1B,oEAAoE;QACpE,+DAA+D;QAC/D,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,MAAM,CAAC,QAAS,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QACtC,CAAC;QACD,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;IAC1C,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,IAAI,QAAQ,EAAE,CAAC;IACb,MAAA,UAAU,CAAC,qCAAqC,oCAAhD,UAAU,CAAC,qCAAqC,GAAK,eAAe,EAAC;AACvE,CAAC;KAAM,CAAC;IACN,MAAA,UAAU,CAAC,8BAA8B,oCAAzC,UAAU,CAAC,8BAA8B,GAAK,eAAe,EAAC;AAChE,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * ReactiveElement patch to support browsers without native web components.\n *\n * This module should be used in addition to loading the web components\n * polyfills via @webcomponents/webcomponentjs. When using those polyfills\n * support for polyfilled Shadow DOM is automatic via the ShadyDOM polyfill, but\n * support for Shadow DOM like css scoping is opt-in. This module uses ShadyCSS\n * to scope styles defined via the `static styles` property.\n *\n * @packageDocumentation\n */\n\nexport {};\n\ninterface RenderOptions {\n readonly renderBefore?: ChildNode | null;\n scope?: string;\n}\n\nconst SCOPED = '__scoped';\n\ntype CSSResults = Array<{cssText: string} | CSSStyleSheet>;\n\ninterface PatchableReactiveElementConstructor {\n [SCOPED]: boolean;\n elementStyles: CSSResults;\n shadowRootOptions: ShadowRootInit;\n _$handlesPrepareStyles?: boolean;\n}\n\ninterface PatchableReactiveElement extends HTMLElement {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-misused-new\n new (...args: any[]): PatchableReactiveElement;\n constructor: PatchableReactiveElementConstructor;\n connectedCallback(): void;\n hasUpdated: boolean;\n _$didUpdate(changedProperties: unknown): void;\n createRenderRoot(): Element | ShadowRoot;\n renderOptions: RenderOptions;\n}\n\n// Note, explicitly use `var` here so that this can be re-defined when\n// bundled.\n// eslint-disable-next-line no-var\nvar DEV_MODE = true;\n\nconst polyfillSupport = ({\n ReactiveElement,\n}: {\n ReactiveElement: PatchableReactiveElement;\n}) => {\n // polyfill-support is only needed if ShadyCSS or the ApplyShim is in use\n // We test at the point of patching, which makes it safe to load\n // webcomponentsjs and polyfill-support in either order\n if (\n window.ShadyCSS === undefined ||\n (window.ShadyCSS.nativeShadow && !window.ShadyCSS.ApplyShim)\n ) {\n return;\n }\n\n // console.log(\n // '%c Making ReactiveElement compatible with ShadyDOM/CSS.',\n // 'color: lightgreen; font-style: italic'\n // );\n\n const elementProto = ReactiveElement.prototype;\n\n // In noPatch mode, patch the ReactiveElement prototype so that no\n // ReactiveElements must be wrapped.\n if (\n window.ShadyDOM &&\n window.ShadyDOM.inUse &&\n window.ShadyDOM.noPatch === true\n ) {\n window.ShadyDOM.patchElementProto(elementProto);\n }\n\n /**\n * Patch to apply adoptedStyleSheets via ShadyCSS\n */\n const createRenderRoot = elementProto.createRenderRoot;\n elementProto.createRenderRoot = function (this: PatchableReactiveElement) {\n // Pass the scope to render options so that it gets to lit-html for proper\n // scoping via ShadyCSS.\n const name = this.localName;\n // If using native Shadow DOM must adoptStyles normally,\n // otherwise do nothing.\n if (window.ShadyCSS!.nativeShadow) {\n return createRenderRoot.call(this);\n } else {\n if (!this.constructor.hasOwnProperty(SCOPED)) {\n (this.constructor as PatchableReactiveElementConstructor)[SCOPED] =\n true;\n // Use ShadyCSS's `prepareAdoptedCssText` to shim adoptedStyleSheets.\n const css = (\n this.constructor as PatchableReactiveElementConstructor\n ).elementStyles.map((v) =>\n v instanceof CSSStyleSheet\n ? Array.from(v.cssRules).reduce(\n (a: string, r: CSSRule) => (a += r.cssText),\n ''\n )\n : v.cssText\n );\n window.ShadyCSS?.ScopingShim?.prepareAdoptedCssText(css, name);\n if (this.constructor._$handlesPrepareStyles === undefined) {\n window.ShadyCSS!.prepareTemplateStyles(\n document.createElement('template'),\n name\n );\n }\n }\n return (\n this.shadowRoot ??\n this.attachShadow(\n (this.constructor as PatchableReactiveElementConstructor)\n .shadowRootOptions\n )\n );\n }\n };\n\n /**\n * Patch connectedCallback to apply ShadyCSS custom properties shimming.\n */\n const connectedCallback = elementProto.connectedCallback;\n elementProto.connectedCallback = function (this: PatchableReactiveElement) {\n connectedCallback.call(this);\n // Note, must do first update separately so that we're ensured\n // that rendering has completed before calling this.\n if (this.hasUpdated) {\n window.ShadyCSS!.styleElement(this);\n }\n };\n\n /**\n * Patch update to apply ShadyCSS custom properties shimming for first\n * update.\n */\n const didUpdate = elementProto._$didUpdate;\n elementProto._$didUpdate = function (\n this: PatchableReactiveElement,\n changedProperties: unknown\n ) {\n // Note, must do first update here so rendering has completed before\n // calling this and styles are correct by updated/firstUpdated.\n if (!this.hasUpdated) {\n window.ShadyCSS!.styleElement(this);\n }\n didUpdate.call(this, changedProperties);\n };\n};\n\nif (DEV_MODE) {\n globalThis.reactiveElementPolyfillSupportDevMode ??= polyfillSupport;\n} else {\n globalThis.reactiveElementPolyfillSupport ??= polyfillSupport;\n}\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/reactive-controller.d.ts b/ui/node_modules/@lit/reactive-element/development/reactive-controller.d.ts deleted file mode 100644 index 3a35f10..0000000 --- a/ui/node_modules/@lit/reactive-element/development/reactive-controller.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -/** - * An object that can host Reactive Controllers and call their lifecycle - * callbacks. - */ -export interface ReactiveControllerHost { - /** - * Adds a controller to the host, which sets up the controller's lifecycle - * methods to be called with the host's lifecycle. - */ - addController(controller: ReactiveController): void; - /** - * Removes a controller from the host. - */ - removeController(controller: ReactiveController): void; - /** - * Requests a host update which is processed asynchronously. The update can - * be waited on via the `updateComplete` property. - */ - requestUpdate(): void; - /** - * Returns a Promise that resolves when the host has completed updating. - * The Promise value is a boolean that is `true` if the element completed the - * update without triggering another update. The Promise result is `false` if - * a property was set inside `updated()`. If the Promise is rejected, an - * exception was thrown during the update. - * - * @return A promise of a boolean that indicates if the update resolved - * without triggering another update. - */ - readonly updateComplete: Promise; -} -/** - * A Reactive Controller is an object that enables sub-component code - * organization and reuse by aggregating the state, behavior, and lifecycle - * hooks related to a single feature. - * - * Controllers are added to a host component, or other object that implements - * the `ReactiveControllerHost` interface, via the `addController()` method. - * They can hook their host components's lifecycle by implementing one or more - * of the lifecycle callbacks, or initiate an update of the host component by - * calling `requestUpdate()` on the host. - */ -export interface ReactiveController { - /** - * Called when the host is connected to the component tree. For custom - * element hosts, this corresponds to the `connectedCallback()` lifecycle, - * which is only called when the component is connected to the document. - */ - hostConnected?(): void; - /** - * Called when the host is disconnected from the component tree. For custom - * element hosts, this corresponds to the `disconnectedCallback()` lifecycle, - * which is called the host or an ancestor component is disconnected from the - * document. - */ - hostDisconnected?(): void; - /** - * Called during the client-side host update, just before the host calls - * its own update. - * - * Code in `update()` can depend on the DOM as it is not called in - * server-side rendering. - */ - hostUpdate?(): void; - /** - * Called after a host update, just before the host calls firstUpdated and - * updated. It is not called in server-side rendering. - * - */ - hostUpdated?(): void; -} -//# sourceMappingURL=reactive-controller.d.ts.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/reactive-controller.d.ts.map b/ui/node_modules/@lit/reactive-element/development/reactive-controller.d.ts.map deleted file mode 100644 index e0560d1..0000000 --- a/ui/node_modules/@lit/reactive-element/development/reactive-controller.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reactive-controller.d.ts","sourceRoot":"","sources":["../src/reactive-controller.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,aAAa,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAEpD;;OAEG;IACH,gBAAgB,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAEvD;;;OAGG;IACH,aAAa,IAAI,IAAI,CAAC;IAEtB;;;;;;;;;OASG;IACH,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;CAC3C;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,aAAa,CAAC,IAAI,IAAI,CAAC;IAEvB;;;;;OAKG;IACH,gBAAgB,CAAC,IAAI,IAAI,CAAC;IAE1B;;;;;;OAMG;IACH,UAAU,CAAC,IAAI,IAAI,CAAC;IAEpB;;;;OAIG;IACH,WAAW,CAAC,IAAI,IAAI,CAAC;CACtB"} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/reactive-controller.js b/ui/node_modules/@lit/reactive-element/development/reactive-controller.js deleted file mode 100644 index 0bacd92..0000000 --- a/ui/node_modules/@lit/reactive-element/development/reactive-controller.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -export {}; -//# sourceMappingURL=reactive-controller.js.map \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/reactive-controller.js.map b/ui/node_modules/@lit/reactive-element/development/reactive-controller.js.map deleted file mode 100644 index 996785d..0000000 --- a/ui/node_modules/@lit/reactive-element/development/reactive-controller.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reactive-controller.js","sourceRoot":"","sources":["../src/reactive-controller.ts"],"names":[],"mappings":"AAAA;;;;GAIG","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * An object that can host Reactive Controllers and call their lifecycle\n * callbacks.\n */\nexport interface ReactiveControllerHost {\n /**\n * Adds a controller to the host, which sets up the controller's lifecycle\n * methods to be called with the host's lifecycle.\n */\n addController(controller: ReactiveController): void;\n\n /**\n * Removes a controller from the host.\n */\n removeController(controller: ReactiveController): void;\n\n /**\n * Requests a host update which is processed asynchronously. The update can\n * be waited on via the `updateComplete` property.\n */\n requestUpdate(): void;\n\n /**\n * Returns a Promise that resolves when the host has completed updating.\n * The Promise value is a boolean that is `true` if the element completed the\n * update without triggering another update. The Promise result is `false` if\n * a property was set inside `updated()`. If the Promise is rejected, an\n * exception was thrown during the update.\n *\n * @return A promise of a boolean that indicates if the update resolved\n * without triggering another update.\n */\n readonly updateComplete: Promise;\n}\n\n/**\n * A Reactive Controller is an object that enables sub-component code\n * organization and reuse by aggregating the state, behavior, and lifecycle\n * hooks related to a single feature.\n *\n * Controllers are added to a host component, or other object that implements\n * the `ReactiveControllerHost` interface, via the `addController()` method.\n * They can hook their host components's lifecycle by implementing one or more\n * of the lifecycle callbacks, or initiate an update of the host component by\n * calling `requestUpdate()` on the host.\n */\nexport interface ReactiveController {\n /**\n * Called when the host is connected to the component tree. For custom\n * element hosts, this corresponds to the `connectedCallback()` lifecycle,\n * which is only called when the component is connected to the document.\n */\n hostConnected?(): void;\n\n /**\n * Called when the host is disconnected from the component tree. For custom\n * element hosts, this corresponds to the `disconnectedCallback()` lifecycle,\n * which is called the host or an ancestor component is disconnected from the\n * document.\n */\n hostDisconnected?(): void;\n\n /**\n * Called during the client-side host update, just before the host calls\n * its own update.\n *\n * Code in `update()` can depend on the DOM as it is not called in\n * server-side rendering.\n */\n hostUpdate?(): void;\n\n /**\n * Called after a host update, just before the host calls firstUpdated and\n * updated. It is not called in server-side rendering.\n *\n */\n hostUpdated?(): void;\n}\n"]} \ No newline at end of file diff --git a/ui/node_modules/@lit/reactive-element/development/reactive-element.d.ts b/ui/node_modules/@lit/reactive-element/development/reactive-element.d.ts deleted file mode 100644 index d44991e..0000000 --- a/ui/node_modules/@lit/reactive-element/development/reactive-element.d.ts +++ /dev/null @@ -1,765 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -/** - * Use this module if you want to create your own base class extending - * {@link ReactiveElement}. - * @packageDocumentation - */ -import { CSSResultGroup, CSSResultOrNative } from './css-tag.js'; -import type { ReactiveController, ReactiveControllerHost } from './reactive-controller.js'; -export * from './css-tag.js'; -export type { ReactiveController, ReactiveControllerHost, } from './reactive-controller.js'; -/** - * Contains types that are part of the unstable debug API. - * - * Everything in this API is not stable and may change or be removed in the future, - * even on patch releases. - */ -export declare namespace ReactiveUnstable { - /** - * When Lit is running in dev mode and `window.emitLitDebugLogEvents` is true, - * we will emit 'lit-debug' events to window, with live details about the update and render - * lifecycle. These can be useful for writing debug tooling and visualizations. - * - * Please be aware that running with window.emitLitDebugLogEvents has performance overhead, - * making certain operations that are normally very cheap (like a no-op render) much slower, - * because we must copy data and dispatch events. - */ - namespace DebugLog { - type Entry = Update; - interface Update { - kind: 'update'; - } - } -} -/** - * Converts property values to and from attribute values. - */ -export interface ComplexAttributeConverter { - /** - * Called to convert an attribute value to a property - * value. - */ - fromAttribute?(value: string | null, type?: TypeHint): Type; - /** - * Called to convert a property value to an attribute - * value. - * - * It returns unknown instead of string, to be compatible with - * https://github.com/WICG/trusted-types (and similar efforts). - */ - toAttribute?(value: Type, type?: TypeHint): unknown; -} -type AttributeConverter = ComplexAttributeConverter | ((value: string | null, type?: TypeHint) => Type); -/** - * Defines options for a property accessor. - */ -export interface PropertyDeclaration { - /** - * When set to `true`, indicates the property is internal private state. The - * property should not be set by users. When using TypeScript, this property - * should be marked as `private` or `protected`, and it is also a common - * practice to use a leading `_` in the name. The property is not added to - * `observedAttributes`. - */ - readonly state?: boolean; - /** - * Indicates how and whether the property becomes an observed attribute. - * If the value is `false`, the property is not added to `observedAttributes`. - * If true or absent, the lowercased property name is observed (e.g. `fooBar` - * becomes `foobar`). If a string, the string value is observed (e.g - * `attribute: 'foo-bar'`). - */ - readonly attribute?: boolean | string; - /** - * Indicates the type of the property. This is used only as a hint for the - * `converter` to determine how to convert the attribute - * to/from a property. - */ - readonly type?: TypeHint; - /** - * Indicates how to convert the attribute to/from a property. If this value - * is a function, it is used to convert the attribute value a the property - * value. If it's an object, it can have keys for `fromAttribute` and - * `toAttribute`. If no `toAttribute` function is provided and - * `reflect` is set to `true`, the property value is set directly to the - * attribute. A default `converter` is used if none is provided; it supports - * `Boolean`, `String`, `Number`, `Object`, and `Array`. Note, - * when a property changes and the converter is used to update the attribute, - * the property is never updated again as a result of the attribute changing, - * and vice versa. - */ - readonly converter?: AttributeConverter; - /** - * Indicates if the property should reflect to an attribute. - * If `true`, when the property is set, the attribute is set using the - * attribute name determined according to the rules for the `attribute` - * property option and the value of the property converted using the rules - * from the `converter` property option. - */ - readonly reflect?: boolean; - /** - * A function that indicates if a property should be considered changed when - * it is set. The function should take the `newValue` and `oldValue` and - * return `true` if an update should be requested. - */ - hasChanged?(value: Type, oldValue: Type): boolean; - /** - * Indicates whether an accessor will be created for this property. By - * default, an accessor will be generated for this property that requests an - * update when set. If this flag is `true`, no accessor will be created, and - * it will be the user's responsibility to call - * `this.requestUpdate(propertyName, oldValue)` to request an update when - * the property changes. - */ - readonly noAccessor?: boolean; - /** - * When `true`, uses the initial value of the property as the default value, - * which changes how attributes are handled: - * - The initial value does *not* reflect, even if the `reflect` option is `true`. - * Subsequent changes to the property will reflect, even if they are equal to the - * default value. - * - When the attribute is removed, the property is set to the default value - * - The initial value will not trigger an old value in the `changedProperties` map - * argument to update lifecycle methods. - * - * When set, properties must be initialized, either with a field initializer, or an - * assignment in the constructor. Not initializing the property may lead to - * improper handling of subsequent property assignments. - * - * While this behavior is opt-in, most properties that reflect to attributes should - * use `useDefault: true` so that their initial values do not reflect. - */ - useDefault?: boolean; -} -/** - * Map of properties to PropertyDeclaration options. For each property an - * accessor is made, and the property is processed according to the - * PropertyDeclaration options. - */ -export interface PropertyDeclarations { - readonly [key: string]: PropertyDeclaration; -} -type PropertyDeclarationMap = Map; -/** - * A Map of property keys to values. - * - * Takes an optional type parameter T, which when specified as a non-any, - * non-unknown type, will make the Map more strongly-typed, associating the map - * keys with their corresponding value type on T. - * - * Use `PropertyValues` when overriding ReactiveElement.update() and - * other lifecycle methods in order to get stronger type-checking on keys - * and values. - */ -export type PropertyValues = T extends object ? PropertyValueMap : Map; -/** - * Do not use, instead prefer {@linkcode PropertyValues}. - */ -export interface PropertyValueMap extends Map { - get(k: K): T[K] | undefined; - set(key: K, value: T[K]): this; - has(k: K): boolean; - delete(k: K): boolean; -} -export declare const defaultConverter: ComplexAttributeConverter; -export interface HasChanged { - (value: unknown, old: unknown): boolean; -} -/** - * Change function that returns true if `value` is different from `oldValue`. - * This method is used as the default for a property's `hasChanged` function. - */ -export declare const notEqual: HasChanged; -/** - * A string representing one of the supported dev mode warning categories. - */ -export type WarningKind = 'change-in-update' | 'migration' | 'async-perform-update'; -export type Initializer = (element: ReactiveElement) => void; -declare global { - interface SymbolConstructor { - readonly metadata: unique symbol; - } -} -declare global { - var litPropertyMetadata: WeakMap>; -} -/** - * Base element class which manages element properties and attributes. When - * properties change, the `update` method is asynchronously called. This method - * should be supplied by subclasses to render updates as desired. - * @noInheritDoc - */ -export declare abstract class ReactiveElement extends HTMLElement implements ReactiveControllerHost { - /** - * Read or set all the enabled warning categories for this class. - * - * This property is only used in development builds. - * - * @nocollapse - * @category dev-mode - */ - static enabledWarnings?: WarningKind[]; - /** - * Enable the given warning category for this class. - * - * This method only exists in development builds, so it should be accessed - * with a guard like: - * - * ```ts - * // Enable for all ReactiveElement subclasses - * ReactiveElement.enableWarning?.('migration'); - * - * // Enable for only MyElement and subclasses - * MyElement.enableWarning?.('migration'); - * ``` - * - * @nocollapse - * @category dev-mode - */ - static enableWarning?: (warningKind: WarningKind) => void; - /** - * Disable the given warning category for this class. - * - * This method only exists in development builds, so it should be accessed - * with a guard like: - * - * ```ts - * // Disable for all ReactiveElement subclasses - * ReactiveElement.disableWarning?.('migration'); - * - * // Disable for only MyElement and subclasses - * MyElement.disableWarning?.('migration'); - * ``` - * - * @nocollapse - * @category dev-mode - */ - static disableWarning?: (warningKind: WarningKind) => void; - /** - * Adds an initializer function to the class that is called during instance - * construction. - * - * This is useful for code that runs against a `ReactiveElement` - * subclass, such as a decorator, that needs to do work for each - * instance, such as setting up a `ReactiveController`. - * - * ```ts - * const myDecorator = (target: typeof ReactiveElement, key: string) => { - * target.addInitializer((instance: ReactiveElement) => { - * // This is run during construction of the element - * new MyController(instance); - * }); - * } - * ``` - * - * Decorating a field will then cause each instance to run an initializer - * that adds a controller: - * - * ```ts - * class MyElement extends LitElement { - * @myDecorator foo; - * } - * ``` - * - * Initializers are stored per-constructor. Adding an initializer to a - * subclass does not add it to a superclass. Since initializers are run in - * constructors, initializers will run in order of the class hierarchy, - * starting with superclasses and progressing to the instance's class. - * - * @nocollapse - */ - static addInitializer(initializer: Initializer): void; - static _initializers?: Initializer[]; - /** - * Maps attribute names to properties; for example `foobar` attribute to - * `fooBar` property. Created lazily on user subclasses when finalizing the - * class. - * @nocollapse - */ - private static __attributeToPropertyMap; - /** - * Marks class as having been finalized, which includes creating properties - * from `static properties`, but does *not* include all properties created - * from decorators. - * @nocollapse - */ - protected static finalized: true | undefined; - /** - * Memoized list of all element properties, including any superclass - * properties. Created lazily on user subclasses when finalizing the class. - * - * @nocollapse - * @category properties - */ - static elementProperties: PropertyDeclarationMap; - /** - * User-supplied object that maps property names to `PropertyDeclaration` - * objects containing options for configuring reactive properties. When - * a reactive property is set the element will update and render. - * - * By default properties are public fields, and as such, they should be - * considered as primarily settable by element users, either via attribute or - * the property itself. - * - * Generally, properties that are changed by the element should be private or - * protected fields and should use the `state: true` option. Properties - * marked as `state` do not reflect from the corresponding attribute - * - * However, sometimes element code does need to set a public property. This - * should typically only be done in response to user interaction, and an event - * should be fired informing the user; for example, a checkbox sets its - * `checked` property when clicked and fires a `changed` event. Mutating - * public properties should typically not be done for non-primitive (object or - * array) properties. In other cases when an element needs to manage state, a - * private property set with the `state: true` option should be used. When - * needed, state properties can be initialized via public properties to - * facilitate complex interactions. - * @nocollapse - * @category properties - */ - static properties: PropertyDeclarations; - /** - * Memoized list of all element styles. - * Created lazily on user subclasses when finalizing the class. - * @nocollapse - * @category styles - */ - static elementStyles: Array; - /** - * Array of styles to apply to the element. The styles should be defined - * using the {@linkcode css} tag function, via constructible stylesheets, or - * imported from native CSS module scripts. - * - * Note on Content Security Policy: - * - * Element styles are implemented with `