proto-tinker-wc 0.1.46 → 0.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-KX5csEug.js → index-CuXPzZwo.js} +14 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/proto-tinker-wc.cjs.js +2 -2
- package/dist/cjs/proto-tinker.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/styles/shadow.css +1 -1
- package/dist/collection/tokens.css +1 -1
- package/dist/collection/utils/tw-version.js +1 -1
- package/dist/components/proto-tinker.js +2 -2
- package/dist/esm/{index-Cd4rJsTz.js → index-D2EiAaUF.js} +14 -7
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-tinker-wc.js +3 -3
- package/dist/esm/proto-tinker.entry.js +3 -3
- package/dist/proto-tinker-wc/p-70a8d45c.entry.js +1 -0
- package/dist/proto-tinker-wc/{p-Cd4rJsTz.js → p-D2EiAaUF.js} +1 -1
- package/dist/proto-tinker-wc/proto-tinker-wc.esm.js +1 -1
- package/dist/proto-tinker-wc/tokens.css +1 -1
- package/dist/types/utils/tw-version.d.ts +1 -1
- package/package.json +3 -3
- package/dist/proto-tinker-wc/p-47619778.entry.js +0 -1
|
@@ -7,7 +7,7 @@ const globalScripts = () => {};
|
|
|
7
7
|
const globalStyles = "";
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
|
-
Stencil Client Platform v4.
|
|
10
|
+
Stencil Client Platform v4.34.0 | MIT Licensed | https://stenciljs.com
|
|
11
11
|
*/
|
|
12
12
|
var __defProp = Object.defineProperty;
|
|
13
13
|
var __export = (target, all) => {
|
|
@@ -83,7 +83,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
83
83
|
|
|
84
84
|
// src/client/client-style.ts
|
|
85
85
|
var styles = /* @__PURE__ */ new Map();
|
|
86
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
87
86
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
88
87
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
89
88
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -339,7 +338,7 @@ var createSupportsRuleRe = (selector) => {
|
|
|
339
338
|
createSupportsRuleRe("::slotted");
|
|
340
339
|
createSupportsRuleRe(":host");
|
|
341
340
|
createSupportsRuleRe(":host-context");
|
|
342
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
341
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
343
342
|
if (propValue != null && !isComplexType(propValue)) {
|
|
344
343
|
if (propType & 1 /* String */) {
|
|
345
344
|
return String(propValue);
|
|
@@ -386,7 +385,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
386
385
|
}
|
|
387
386
|
if (!appliedStyles.has(scopeId2)) {
|
|
388
387
|
{
|
|
389
|
-
styleElm =
|
|
388
|
+
styleElm = win.document.createElement("style");
|
|
390
389
|
styleElm.innerHTML = style;
|
|
391
390
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
392
391
|
if (nonce != null) {
|
|
@@ -973,7 +972,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
973
972
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
974
973
|
const flags = hostRef.$flags$;
|
|
975
974
|
const instance = hostRef.$lazyInstance$ ;
|
|
976
|
-
newVal = parsePropertyValue(
|
|
975
|
+
newVal = parsePropertyValue(
|
|
976
|
+
newVal,
|
|
977
|
+
cmpMeta.$members$[propName][0]);
|
|
977
978
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
978
979
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
979
980
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -1029,7 +1030,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1029
1030
|
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1030
1031
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
1031
1032
|
}
|
|
1032
|
-
origSetter.apply(this, [
|
|
1033
|
+
origSetter.apply(this, [
|
|
1034
|
+
parsePropertyValue(
|
|
1035
|
+
newValue,
|
|
1036
|
+
memberFlags)
|
|
1037
|
+
]);
|
|
1033
1038
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1034
1039
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1035
1040
|
return;
|
|
@@ -1051,7 +1056,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1051
1056
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1052
1057
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
1053
1058
|
}
|
|
1054
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
1059
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
1060
|
+
newValue,
|
|
1061
|
+
memberFlags);
|
|
1055
1062
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1056
1063
|
};
|
|
1057
1064
|
if (ref.$lazyInstance$) {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CuXPzZwo.js');
|
|
4
4
|
|
|
5
5
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
6
6
|
/*
|
|
7
|
-
Stencil Client Patch Browser v4.
|
|
7
|
+
Stencil Client Patch Browser v4.34.0 | MIT Licensed | https://stenciljs.com
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
var patchBrowser = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CuXPzZwo.js');
|
|
4
4
|
|
|
5
5
|
const Radio = props => {
|
|
6
6
|
const hex = props.hex || 'currentColor';
|
|
@@ -2510,7 +2510,7 @@ const actions = {
|
|
|
2510
2510
|
};
|
|
2511
2511
|
|
|
2512
2512
|
// WARNING: generated file...
|
|
2513
|
-
const TW_VERSION = '4.1.
|
|
2513
|
+
const TW_VERSION = '4.1.10';
|
|
2514
2514
|
|
|
2515
2515
|
const ColorPicker = props => {
|
|
2516
2516
|
const { actions, state } = props;
|
|
@@ -2624,7 +2624,7 @@ const Header = props => {
|
|
|
2624
2624
|
return (index.h("h1", { class: "mb-11 ml-0 mr-0 mt-11 text-center text-6xl font-thin uppercase text-clrs-red" }, props.label));
|
|
2625
2625
|
};
|
|
2626
2626
|
|
|
2627
|
-
const shadowCss = "/*! tailwindcss v4.1.
|
|
2627
|
+
const shadowCss = "/*! tailwindcss v4.1.10 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n :root,\n :host {\n --font-sans:\n ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n --spacing: 0.25rem;\n --text-xs: 0.75rem;\n --text-xs--line-height: calc(1 / 0.75);\n --text-6xl: 3.75rem;\n --text-6xl--line-height: 1;\n --font-weight-thin: 100;\n --font-weight-bold: 700;\n }\n}\n@layer utilities {\n .absolute {\n position: absolute;\n }\n .relative {\n position: relative;\n }\n .top-8 {\n top: calc(var(--spacing) * 8);\n }\n .right-8 {\n right: calc(var(--spacing) * 8);\n }\n .mt-3 {\n margin-top: calc(var(--spacing) * 3);\n }\n .mt-5px {\n margin-top: 5px;\n }\n .mt-11 {\n margin-top: calc(var(--spacing) * 11);\n }\n .mr-0 {\n margin-right: calc(var(--spacing) * 0);\n }\n .mr-10px {\n margin-right: 10px;\n }\n .mb-10px {\n margin-bottom: 10px;\n }\n .mb-11 {\n margin-bottom: calc(var(--spacing) * 11);\n }\n .ml-0 {\n margin-left: calc(var(--spacing) * 0);\n }\n .ml-auto {\n margin-left: auto;\n }\n .flex {\n display: flex;\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-wrap {\n flex-wrap: wrap;\n }\n .items-center {\n align-items: center;\n }\n .border-solid {\n --tw-border-style: solid;\n border-style: solid;\n }\n .border-clrs-slate {\n border-color: var(--clrs-slate, #708090);\n }\n .bg-clrs-blue {\n background-color: var(--clrs-blue, #0074d9);\n }\n .bg-clrs-red {\n background-color: var(--clrs-red, #ff4136);\n }\n .p-4 {\n padding: calc(var(--spacing) * 4);\n }\n .text-center {\n text-align: center;\n }\n .align-top {\n vertical-align: top;\n }\n .font-sans {\n font-family: var(--font-sans);\n }\n .text-6xl {\n font-size: var(--text-6xl);\n line-height: var(--tw-leading, var(--text-6xl--line-height));\n }\n .text-xs {\n font-size: var(--text-xs);\n line-height: var(--tw-leading, var(--text-xs--line-height));\n }\n .font-bold {\n --tw-font-weight: var(--font-weight-bold);\n font-weight: var(--font-weight-bold);\n }\n .font-thin {\n --tw-font-weight: var(--font-weight-thin);\n font-weight: var(--font-weight-thin);\n }\n .text-clrs-gray {\n color: var(--clrs-gray, #aaaaaa);\n }\n .text-clrs-navy {\n color: var(--clrs-navy, #001f3f);\n }\n .text-clrs-red {\n color: var(--clrs-red, #ff4136);\n }\n .text-clrs-slate4 {\n color: var(--clrs-slate4, #4e5964);\n }\n .text-clrs-white {\n color: var(--clrs-white, #ffffff);\n }\n .uppercase {\n text-transform: uppercase;\n }\n .italic {\n font-style: italic;\n }\n .shadow {\n --tw-shadow:\n 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)),\n 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow:\n var(--tw-inset-shadow), var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n .hover\\:text-clrs-navy {\n &:hover {\n @media (hover: hover) {\n color: var(--clrs-navy, #001f3f);\n }\n }\n }\n .active\\:bg-clrs-gray {\n &:active {\n background-color: var(--clrs-gray, #aaaaaa);\n }\n }\n}\n@layer components {\n .ds1-main {\n display: flex;\n flex-direction: column;\n padding: calc(var(--spacing) * 4);\n font-family: var(--font-sans);\n color: var(--clrs-navy, #001f3f);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .ds1-button {\n display: flex;\n align-items: center;\n --tw-border-style: solid;\n border-style: solid;\n border-color: var(--clrs-slate, #708090);\n color: var(--clrs-white, #ffffff);\n &:active {\n background-color: var(--clrs-gray, #aaaaaa);\n }\n &:active {\n color: var(--clrs-navy, #001f3f);\n }\n }\n}\n.data-button {\n border-radius: 5px;\n border-width: 1px;\n padding: 5px;\n margin: 0px;\n margin-right: 5px;\n cursor: pointer;\n}\n";
|
|
2628
2628
|
|
|
2629
2629
|
const ProtoTinker = class {
|
|
2630
2630
|
constructor(hostRef) {
|
|
@@ -2508,7 +2508,7 @@ const actions = {
|
|
|
2508
2508
|
};
|
|
2509
2509
|
|
|
2510
2510
|
// WARNING: generated file...
|
|
2511
|
-
const TW_VERSION = '4.1.
|
|
2511
|
+
const TW_VERSION = '4.1.10';
|
|
2512
2512
|
|
|
2513
2513
|
const ColorPicker = props => {
|
|
2514
2514
|
const { actions, state } = props;
|
|
@@ -2622,7 +2622,7 @@ const Header = props => {
|
|
|
2622
2622
|
return (h("h1", { class: "mb-11 ml-0 mr-0 mt-11 text-center text-6xl font-thin uppercase text-clrs-red" }, props.label));
|
|
2623
2623
|
};
|
|
2624
2624
|
|
|
2625
|
-
const shadowCss = "/*! tailwindcss v4.1.
|
|
2625
|
+
const shadowCss = "/*! tailwindcss v4.1.10 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n :root,\n :host {\n --font-sans:\n ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n --spacing: 0.25rem;\n --text-xs: 0.75rem;\n --text-xs--line-height: calc(1 / 0.75);\n --text-6xl: 3.75rem;\n --text-6xl--line-height: 1;\n --font-weight-thin: 100;\n --font-weight-bold: 700;\n }\n}\n@layer utilities {\n .absolute {\n position: absolute;\n }\n .relative {\n position: relative;\n }\n .top-8 {\n top: calc(var(--spacing) * 8);\n }\n .right-8 {\n right: calc(var(--spacing) * 8);\n }\n .mt-3 {\n margin-top: calc(var(--spacing) * 3);\n }\n .mt-5px {\n margin-top: 5px;\n }\n .mt-11 {\n margin-top: calc(var(--spacing) * 11);\n }\n .mr-0 {\n margin-right: calc(var(--spacing) * 0);\n }\n .mr-10px {\n margin-right: 10px;\n }\n .mb-10px {\n margin-bottom: 10px;\n }\n .mb-11 {\n margin-bottom: calc(var(--spacing) * 11);\n }\n .ml-0 {\n margin-left: calc(var(--spacing) * 0);\n }\n .ml-auto {\n margin-left: auto;\n }\n .flex {\n display: flex;\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-wrap {\n flex-wrap: wrap;\n }\n .items-center {\n align-items: center;\n }\n .border-solid {\n --tw-border-style: solid;\n border-style: solid;\n }\n .border-clrs-slate {\n border-color: var(--clrs-slate, #708090);\n }\n .bg-clrs-blue {\n background-color: var(--clrs-blue, #0074d9);\n }\n .bg-clrs-red {\n background-color: var(--clrs-red, #ff4136);\n }\n .p-4 {\n padding: calc(var(--spacing) * 4);\n }\n .text-center {\n text-align: center;\n }\n .align-top {\n vertical-align: top;\n }\n .font-sans {\n font-family: var(--font-sans);\n }\n .text-6xl {\n font-size: var(--text-6xl);\n line-height: var(--tw-leading, var(--text-6xl--line-height));\n }\n .text-xs {\n font-size: var(--text-xs);\n line-height: var(--tw-leading, var(--text-xs--line-height));\n }\n .font-bold {\n --tw-font-weight: var(--font-weight-bold);\n font-weight: var(--font-weight-bold);\n }\n .font-thin {\n --tw-font-weight: var(--font-weight-thin);\n font-weight: var(--font-weight-thin);\n }\n .text-clrs-gray {\n color: var(--clrs-gray, #aaaaaa);\n }\n .text-clrs-navy {\n color: var(--clrs-navy, #001f3f);\n }\n .text-clrs-red {\n color: var(--clrs-red, #ff4136);\n }\n .text-clrs-slate4 {\n color: var(--clrs-slate4, #4e5964);\n }\n .text-clrs-white {\n color: var(--clrs-white, #ffffff);\n }\n .uppercase {\n text-transform: uppercase;\n }\n .italic {\n font-style: italic;\n }\n .shadow {\n --tw-shadow:\n 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)),\n 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow:\n var(--tw-inset-shadow), var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n .hover\\:text-clrs-navy {\n &:hover {\n @media (hover: hover) {\n color: var(--clrs-navy, #001f3f);\n }\n }\n }\n .active\\:bg-clrs-gray {\n &:active {\n background-color: var(--clrs-gray, #aaaaaa);\n }\n }\n}\n@layer components {\n .ds1-main {\n display: flex;\n flex-direction: column;\n padding: calc(var(--spacing) * 4);\n font-family: var(--font-sans);\n color: var(--clrs-navy, #001f3f);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .ds1-button {\n display: flex;\n align-items: center;\n --tw-border-style: solid;\n border-style: solid;\n border-color: var(--clrs-slate, #708090);\n color: var(--clrs-white, #ffffff);\n &:active {\n background-color: var(--clrs-gray, #aaaaaa);\n }\n &:active {\n color: var(--clrs-navy, #001f3f);\n }\n }\n}\n.data-button {\n border-radius: 5px;\n border-width: 1px;\n padding: 5px;\n margin: 0px;\n margin-right: 5px;\n cursor: pointer;\n}\n";
|
|
2626
2626
|
|
|
2627
2627
|
const ProtoTinker$1 = /*@__PURE__*/ proxyCustomElement(class ProtoTinker extends HTMLElement {
|
|
2628
2628
|
constructor() {
|
|
@@ -5,7 +5,7 @@ const globalScripts = () => {};
|
|
|
5
5
|
const globalStyles = "";
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Platform v4.
|
|
8
|
+
Stencil Client Platform v4.34.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
11
11
|
var __export = (target, all) => {
|
|
@@ -81,7 +81,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
81
81
|
|
|
82
82
|
// src/client/client-style.ts
|
|
83
83
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
85
84
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
86
85
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
87
86
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -337,7 +336,7 @@ var createSupportsRuleRe = (selector) => {
|
|
|
337
336
|
createSupportsRuleRe("::slotted");
|
|
338
337
|
createSupportsRuleRe(":host");
|
|
339
338
|
createSupportsRuleRe(":host-context");
|
|
340
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
339
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
341
340
|
if (propValue != null && !isComplexType(propValue)) {
|
|
342
341
|
if (propType & 1 /* String */) {
|
|
343
342
|
return String(propValue);
|
|
@@ -384,7 +383,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
384
383
|
}
|
|
385
384
|
if (!appliedStyles.has(scopeId2)) {
|
|
386
385
|
{
|
|
387
|
-
styleElm =
|
|
386
|
+
styleElm = win.document.createElement("style");
|
|
388
387
|
styleElm.innerHTML = style;
|
|
389
388
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
390
389
|
if (nonce != null) {
|
|
@@ -971,7 +970,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
971
970
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
972
971
|
const flags = hostRef.$flags$;
|
|
973
972
|
const instance = hostRef.$lazyInstance$ ;
|
|
974
|
-
newVal = parsePropertyValue(
|
|
973
|
+
newVal = parsePropertyValue(
|
|
974
|
+
newVal,
|
|
975
|
+
cmpMeta.$members$[propName][0]);
|
|
975
976
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
976
977
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
977
978
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -1027,7 +1028,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1027
1028
|
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1028
1029
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
1029
1030
|
}
|
|
1030
|
-
origSetter.apply(this, [
|
|
1031
|
+
origSetter.apply(this, [
|
|
1032
|
+
parsePropertyValue(
|
|
1033
|
+
newValue,
|
|
1034
|
+
memberFlags)
|
|
1035
|
+
]);
|
|
1031
1036
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1032
1037
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1033
1038
|
return;
|
|
@@ -1049,7 +1054,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1049
1054
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1050
1055
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
1051
1056
|
}
|
|
1052
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
1057
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
1058
|
+
newValue,
|
|
1059
|
+
memberFlags);
|
|
1053
1060
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1054
1061
|
};
|
|
1055
1062
|
if (ref.$lazyInstance$) {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { g as globalScripts, b as bootstrapLazy } from './index-D2EiAaUF.js';
|
|
2
|
+
export { s as setNonce } from './index-D2EiAaUF.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = async (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-D2EiAaUF.js';
|
|
2
|
+
export { s as setNonce } from './index-D2EiAaUF.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.
|
|
5
|
+
Stencil Client Patch Browser v4.34.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
var patchBrowser = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, a as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-
|
|
1
|
+
import { h, a as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-D2EiAaUF.js';
|
|
2
2
|
|
|
3
3
|
const Radio = props => {
|
|
4
4
|
const hex = props.hex || 'currentColor';
|
|
@@ -2508,7 +2508,7 @@ const actions = {
|
|
|
2508
2508
|
};
|
|
2509
2509
|
|
|
2510
2510
|
// WARNING: generated file...
|
|
2511
|
-
const TW_VERSION = '4.1.
|
|
2511
|
+
const TW_VERSION = '4.1.10';
|
|
2512
2512
|
|
|
2513
2513
|
const ColorPicker = props => {
|
|
2514
2514
|
const { actions, state } = props;
|
|
@@ -2622,7 +2622,7 @@ const Header = props => {
|
|
|
2622
2622
|
return (h("h1", { class: "mb-11 ml-0 mr-0 mt-11 text-center text-6xl font-thin uppercase text-clrs-red" }, props.label));
|
|
2623
2623
|
};
|
|
2624
2624
|
|
|
2625
|
-
const shadowCss = "/*! tailwindcss v4.1.
|
|
2625
|
+
const shadowCss = "/*! tailwindcss v4.1.10 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n :root,\n :host {\n --font-sans:\n ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n --spacing: 0.25rem;\n --text-xs: 0.75rem;\n --text-xs--line-height: calc(1 / 0.75);\n --text-6xl: 3.75rem;\n --text-6xl--line-height: 1;\n --font-weight-thin: 100;\n --font-weight-bold: 700;\n }\n}\n@layer utilities {\n .absolute {\n position: absolute;\n }\n .relative {\n position: relative;\n }\n .top-8 {\n top: calc(var(--spacing) * 8);\n }\n .right-8 {\n right: calc(var(--spacing) * 8);\n }\n .mt-3 {\n margin-top: calc(var(--spacing) * 3);\n }\n .mt-5px {\n margin-top: 5px;\n }\n .mt-11 {\n margin-top: calc(var(--spacing) * 11);\n }\n .mr-0 {\n margin-right: calc(var(--spacing) * 0);\n }\n .mr-10px {\n margin-right: 10px;\n }\n .mb-10px {\n margin-bottom: 10px;\n }\n .mb-11 {\n margin-bottom: calc(var(--spacing) * 11);\n }\n .ml-0 {\n margin-left: calc(var(--spacing) * 0);\n }\n .ml-auto {\n margin-left: auto;\n }\n .flex {\n display: flex;\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-wrap {\n flex-wrap: wrap;\n }\n .items-center {\n align-items: center;\n }\n .border-solid {\n --tw-border-style: solid;\n border-style: solid;\n }\n .border-clrs-slate {\n border-color: var(--clrs-slate, #708090);\n }\n .bg-clrs-blue {\n background-color: var(--clrs-blue, #0074d9);\n }\n .bg-clrs-red {\n background-color: var(--clrs-red, #ff4136);\n }\n .p-4 {\n padding: calc(var(--spacing) * 4);\n }\n .text-center {\n text-align: center;\n }\n .align-top {\n vertical-align: top;\n }\n .font-sans {\n font-family: var(--font-sans);\n }\n .text-6xl {\n font-size: var(--text-6xl);\n line-height: var(--tw-leading, var(--text-6xl--line-height));\n }\n .text-xs {\n font-size: var(--text-xs);\n line-height: var(--tw-leading, var(--text-xs--line-height));\n }\n .font-bold {\n --tw-font-weight: var(--font-weight-bold);\n font-weight: var(--font-weight-bold);\n }\n .font-thin {\n --tw-font-weight: var(--font-weight-thin);\n font-weight: var(--font-weight-thin);\n }\n .text-clrs-gray {\n color: var(--clrs-gray, #aaaaaa);\n }\n .text-clrs-navy {\n color: var(--clrs-navy, #001f3f);\n }\n .text-clrs-red {\n color: var(--clrs-red, #ff4136);\n }\n .text-clrs-slate4 {\n color: var(--clrs-slate4, #4e5964);\n }\n .text-clrs-white {\n color: var(--clrs-white, #ffffff);\n }\n .uppercase {\n text-transform: uppercase;\n }\n .italic {\n font-style: italic;\n }\n .shadow {\n --tw-shadow:\n 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)),\n 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow:\n var(--tw-inset-shadow), var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n .hover\\:text-clrs-navy {\n &:hover {\n @media (hover: hover) {\n color: var(--clrs-navy, #001f3f);\n }\n }\n }\n .active\\:bg-clrs-gray {\n &:active {\n background-color: var(--clrs-gray, #aaaaaa);\n }\n }\n}\n@layer components {\n .ds1-main {\n display: flex;\n flex-direction: column;\n padding: calc(var(--spacing) * 4);\n font-family: var(--font-sans);\n color: var(--clrs-navy, #001f3f);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .ds1-button {\n display: flex;\n align-items: center;\n --tw-border-style: solid;\n border-style: solid;\n border-color: var(--clrs-slate, #708090);\n color: var(--clrs-white, #ffffff);\n &:active {\n background-color: var(--clrs-gray, #aaaaaa);\n }\n &:active {\n color: var(--clrs-navy, #001f3f);\n }\n }\n}\n.data-button {\n border-radius: 5px;\n border-width: 1px;\n padding: 5px;\n margin: 0px;\n margin-right: 5px;\n cursor: pointer;\n}\n";
|
|
2626
2626
|
|
|
2627
2627
|
const ProtoTinker = class {
|
|
2628
2628
|
constructor(hostRef) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,a as n,f as t,r}from"./p-D2EiAaUF.js";const a=n=>{const t=n.hex||"currentColor",r=n.selected||!1,a=n.size||24;return e("svg",{class:n.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"radio")," ",e("g",{fill:t},e("path",r?{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))};var i,l,o,s,c,u,h={exports:{}},f={exports:{}};function d(){return s?o:(s=1,o=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))})}function g(){if(u)return h.exports;u=1;var e=l?i:(l=1,i={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),n=function(){if(c)return f.exports;c=1;var e=d(),n=Array.prototype.concat,t=Array.prototype.slice,r=f.exports=function(r){for(var a=[],i=0,l=r.length;i<l;i++){var o=r[i];e(o)?a=n.call(a,t.call(o)):a.push(o)}return a};return r.wrap=function(e){return function(){return e(r(arguments))}},f.exports}(),t=Object.hasOwnProperty,r=Object.create(null);for(var a in e)t.call(e,a)&&(r[e[a]]=a);var o=h.exports={to:{},get:{}};function s(e,n,t){return Math.min(Math.max(n,e),t)}function g(e){var n=Math.round(e).toString(16).toUpperCase();return n.length<2?"0"+n:n}return o.get=function(e){var n,t;switch(e.substring(0,3).toLowerCase()){case"hsl":n=o.get.hsl(e),t="hsl";break;case"hwb":n=o.get.hwb(e),t="hwb";break;default:n=o.get.rgb(e),t="rgb"}return n?{model:t,value:n}:null},o.get.rgb=function(n){if(!n)return null;var r,a,i,l=[0,0,0,1];if(r=n.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=r[2],r=r[1],a=0;a<3;a++){var o=2*a;l[a]=parseInt(r.slice(o,o+2),16)}i&&(l[3]=parseInt(i,16)/255)}else if(r=n.match(/^#([a-f0-9]{3,4})$/i)){for(i=(r=r[1])[3],a=0;a<3;a++)l[a]=parseInt(r[a]+r[a],16);i&&(l[3]=parseInt(i+i,16)/255)}else if(r=n.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(a=0;a<3;a++)l[a]=parseInt(r[a+1],0);r[4]&&(l[3]=r[5]?.01*parseFloat(r[4]):parseFloat(r[4]))}else{if(!(r=n.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(r=n.match(/^(\w+)$/))?"transparent"===r[1]?[0,0,0,0]:t.call(e,r[1])?((l=e[r[1]])[3]=1,l):null:null;for(a=0;a<3;a++)l[a]=Math.round(2.55*parseFloat(r[a+1]));r[4]&&(l[3]=r[5]?.01*parseFloat(r[4]):parseFloat(r[4]))}for(a=0;a<3;a++)l[a]=s(l[a],0,255);return l[3]=s(l[3],0,1),l},o.get.hsl=function(e){if(!e)return null;var n=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(n){var t=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,s(parseFloat(n[2]),0,100),s(parseFloat(n[3]),0,100),s(isNaN(t)?1:t,0,1)]}return null},o.get.hwb=function(e){if(!e)return null;var n=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(n){var t=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,s(parseFloat(n[2]),0,100),s(parseFloat(n[3]),0,100),s(isNaN(t)?1:t,0,1)]}return null},o.to.hex=function(){var e=n(arguments);return"#"+g(e[0])+g(e[1])+g(e[2])+(e[3]<1?g(Math.round(255*e[3])):"")},o.to.rgb=function(){var e=n(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},o.to.rgb.percent=function(){var e=n(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+a+"%)":"rgba("+t+"%, "+r+"%, "+a+"%, "+e[3]+")"},o.to.hsl=function(){var e=n(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},o.to.hwb=function(){var e=n(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},o.to.keyword=function(e){return r[e.slice(0,3)]},h.exports}var b,v,p,m,y,w,k,M,x,C={exports:{}};function j(){if(p)return C.exports;p=1;var e=v?b:(v=1,b={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),n={};for(var t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);var r=C.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in r)if(r.hasOwnProperty(a)){if(!("channels"in r[a]))throw new Error("missing channels property: "+a);if(!("labels"in r[a]))throw new Error("missing channel labels property: "+a);if(r[a].labels.length!==r[a].channels)throw new Error("channel and label counts mismatch: "+a);var i=r[a].channels,l=r[a].labels;delete r[a].channels,delete r[a].labels,Object.defineProperty(r[a],"channels",{value:i}),Object.defineProperty(r[a],"labels",{value:l})}return r.rgb.hsl=function(e){var n,t,r=e[0]/255,a=e[1]/255,i=e[2]/255,l=Math.min(r,a,i),o=Math.max(r,a,i),s=o-l;return o===l?n=0:r===o?n=(a-i)/s:a===o?n=2+(i-r)/s:i===o&&(n=4+(r-a)/s),(n=Math.min(60*n,360))<0&&(n+=360),t=(l+o)/2,[n,100*(o===l?0:t<=.5?s/(o+l):s/(2-o-l)),100*t]},r.rgb.hsv=function(e){var n,t,r,a,i,l=e[0]/255,o=e[1]/255,s=e[2]/255,c=Math.max(l,o,s),u=c-Math.min(l,o,s),h=function(e){return(c-e)/6/u+.5};return 0===u?a=i=0:(i=u/c,n=h(l),t=h(o),r=h(s),l===c?a=r-t:o===c?a=1/3+n-r:s===c&&(a=2/3+t-n),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*c]},r.rgb.hwb=function(e){var n=e[0],t=e[1],a=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(n,Math.min(t,a))*100,100*(a=1-1/255*Math.max(n,Math.max(t,a)))]},r.rgb.cmyk=function(e){var n,t=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-t-(n=Math.min(1-t,1-r,1-a)))/(1-n)||0),100*((1-r-n)/(1-n)||0),100*((1-a-n)/(1-n)||0),100*n]},r.rgb.keyword=function(t){var r=n[t];if(r)return r;var a,i,l,o=1/0;for(var s in e)if(e.hasOwnProperty(s)){var c=(i=t,l=e[s],Math.pow(i[0]-l[0],2)+Math.pow(i[1]-l[1],2)+Math.pow(i[2]-l[2],2));c<o&&(o=c,a=s)}return a},r.keyword.rgb=function(n){return e[n]},r.rgb.xyz=function(e){var n=e[0]/255,t=e[1]/255,r=e[2]/255;return[100*(.4124*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.3576*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*n+.7152*t+.0722*r),100*(.0193*n+.1192*t+.9505*r)]},r.rgb.lab=function(e){var n=r.rgb.xyz(e),t=n[0],a=n[1],i=n[2];return a/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(t-a),200*(a-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.hsl.rgb=function(e){var n,t,r,a,i,l=e[0]/360,o=e[1]/100,s=e[2]/100;if(0===o)return[i=255*s,i,i];n=2*s-(t=s<.5?s*(1+o):s+o-s*o),a=[0,0,0];for(var c=0;c<3;c++)(r=l+1/3*-(c-1))<0&&r++,r>1&&r--,a[c]=255*(i=6*r<1?n+6*(t-n)*r:2*r<1?t:3*r<2?n+(t-n)*(2/3-r)*6:n);return a},r.hsl.hsv=function(e){var n=e[0],t=e[1]/100,r=e[2]/100,a=t,i=Math.max(r,.01);return t*=(r*=2)<=1?r:2-r,a*=i<=1?i:2-i,[n,100*(0===r?2*a/(i+a):2*t/(r+t)),(r+t)/2*100]},r.hsv.rgb=function(e){var n=e[0]/60,t=e[1]/100,r=e[2]/100,a=Math.floor(n)%6,i=n-Math.floor(n),l=255*r*(1-t),o=255*r*(1-t*i),s=255*r*(1-t*(1-i));switch(r*=255,a){case 0:return[r,s,l];case 1:return[o,r,l];case 2:return[l,r,s];case 3:return[l,o,r];case 4:return[s,l,r];case 5:return[r,l,o]}},r.hsv.hsl=function(e){var n,t,r,a=e[0],i=e[1]/100,l=e[2]/100,o=Math.max(l,.01);return r=(2-i)*l,t=i*o,[a,100*(t=(t/=(n=(2-i)*o)<=1?n:2-n)||0),100*(r/=2)]},r.hwb.rgb=function(e){var n,t,r,a,i,l,o,s=e[0]/360,c=e[1]/100,u=e[2]/100,h=c+u;switch(h>1&&(c/=h,u/=h),r=6*s-(n=Math.floor(6*s)),1&n&&(r=1-r),a=c+r*((t=1-u)-c),n){default:case 6:case 0:i=t,l=a,o=c;break;case 1:i=a,l=t,o=c;break;case 2:i=c,l=t,o=a;break;case 3:i=c,l=a,o=t;break;case 4:i=a,l=c,o=t;break;case 5:i=t,l=c,o=a}return[255*i,255*l,255*o]},r.cmyk.rgb=function(e){var n=e[1]/100,t=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,t*(1-r)+r))]},r.xyz.rgb=function(e){var n,t,r,a=e[0]/100,i=e[1]/100,l=e[2]/100;return t=-.9689*a+1.8758*i+.0415*l,r=.0557*a+-.204*i+1.057*l,n=(n=3.2406*a+-1.5372*i+-.4986*l)>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(n=Math.min(Math.max(0,n),1)),255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var n=e[0],t=e[1],r=e[2];return t/=100,r/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(t=t>.008856?Math.pow(t,1/3):7.787*t+16/116)-16,500*(n-t),200*(t-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var n,t,r;n=e[1]/500+(t=(e[0]+16)/116),r=t-e[2]/200;var a=Math.pow(t,3),i=Math.pow(n,3),l=Math.pow(r,3);return t=a>.008856?a:(t-16/116)/7.787,n=i>.008856?i:(n-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,[n*=95.047,t*=100,r*=108.883]},r.lab.lch=function(e){var n,t=e[0],r=e[1],a=e[2];return(n=360*Math.atan2(a,r)/2/Math.PI)<0&&(n+=360),[t,Math.sqrt(r*r+a*a),n]},r.lch.lab=function(e){var n,t=e[1];return n=e[2]/360*2*Math.PI,[e[0],t*Math.cos(n),t*Math.sin(n)]},r.rgb.ansi16=function(e){var n=e[0],t=e[1],a=e[2],i=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var l=30+(Math.round(a/255)<<2|Math.round(t/255)<<1|Math.round(n/255));return 2===i&&(l+=60),l},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var n=e[0],t=e[1],r=e[2];return n===t&&t===r?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var n=e%10;if(0===n||7===n)return e>50&&(n+=3.5),[n=n/10.5*255,n,n];var t=.5*(1+~~(e>50));return[(1&n)*t*255,(n>>1&1)*t*255,(n>>2&1)*t*255]},r.ansi256.rgb=function(e){if(e>=232){var n=10*(e-232)+8;return[n,n,n]}var t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},r.rgb.hex=function(e){var n=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.hex.rgb=function(e){var n=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];var t=n[0];3===n[0].length&&(t=t.split("").map((function(e){return e+e})).join(""));var r=parseInt(t,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var n,t=e[0]/255,r=e[1]/255,a=e[2]/255,i=Math.max(Math.max(t,r),a),l=Math.min(Math.min(t,r),a),o=i-l;return n=o<=0?0:i===t?(r-a)/o%6:i===r?2+(a-t)/o:4+(t-r)/o+4,n/=6,[360*(n%=1),100*o,100*(o<1?l/(1-o):0)]},r.hsl.hcg=function(e){var n,t=e[1]/100,r=e[2]/100,a=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},r.hsv.hcg=function(e){var n=e[2]/100,t=e[1]/100*n,r=0;return t<1&&(r=(n-t)/(1-t)),[e[0],100*t,100*r]},r.hcg.rgb=function(e){var n=e[1]/100,t=e[2]/100;if(0===n)return[255*t,255*t,255*t];var r,a=[0,0,0],i=e[0]/360%1*6,l=i%1,o=1-l;switch(Math.floor(i)){case 0:a[0]=1,a[1]=l,a[2]=0;break;case 1:a[0]=o,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=l;break;case 3:a[0]=0,a[1]=o,a[2]=1;break;case 4:a[0]=l,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=o}return[255*(n*a[0]+(r=(1-n)*t)),255*(n*a[1]+r),255*(n*a[2]+r)]},r.hcg.hsv=function(e){var n=e[1]/100,t=n+e[2]/100*(1-n),r=0;return t>0&&(r=n/t),[e[0],100*r,100*t]},r.hcg.hsl=function(e){var n=e[1]/100,t=e[2]/100*(1-n)+.5*n,r=0;return t>0&&t<.5?r=n/(2*t):t>=.5&&t<1&&(r=n/(2*(1-t))),[e[0],100*r,100*t]},r.hcg.hwb=function(e){var n=e[1]/100,t=n+e[2]/100*(1-n);return[e[0],100*(t-n),100*(1-t)]},r.hwb.hcg=function(e){var n=1-e[2]/100,t=n-e[1]/100,r=0;return t<1&&(r=(n-t)/(1-t)),[e[0],100*t,100*r]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var n=255&Math.round(e[0]/100*255),t=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]},C.exports}function O(){if(y)return m;y=1;var e=j();function n(e,n){return function(t){return n(e(t))}}function t(t,r){for(var a=[r[t].parent,t],i=e[r[t].parent][t],l=r[t].parent;r[l].parent;)a.unshift(r[l].parent),i=n(e[r[l].parent][l],i),l=r[l].parent;return i.conversion=a,i}return m=function(n){for(var r=function(n){var t=function(){for(var n={},t=Object.keys(e),r=t.length,a=0;a<r;a++)n[t[a]]={distance:-1,parent:null};return n}(),r=[n];for(t[n].distance=0;r.length;)for(var a=r.pop(),i=Object.keys(e[a]),l=i.length,o=0;o<l;o++){var s=i[o],c=t[s];-1===c.distance&&(c.distance=t[a].distance+1,c.parent=a,r.unshift(s))}return t}(n),a={},i=Object.keys(r),l=i.length,o=0;o<l;o++){var s=i[o];null!==r[s].parent&&(a[s]=t(s,r))}return a}}!function(){if(x)return M;x=1;var e=g(),n=function(){if(k)return w;k=1;var e=j(),n=O(),t={};return Object.keys(e).forEach((function(r){t[r]={},Object.defineProperty(t[r],"channels",{value:e[r].channels}),Object.defineProperty(t[r],"labels",{value:e[r].labels});var a=n(r);Object.keys(a).forEach((function(e){var n=a[e];t[r][e]=function(e){var n=function(n){if(null==n)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var t=e(n);if("object"==typeof t)for(var r=t.length,a=0;a<r;a++)t[a]=Math.round(t[a]);return t};return"conversion"in e&&(n.conversion=e.conversion),n}(n),t[r][e].raw=function(e){var n=function(n){return null==n?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),e(n))};return"conversion"in e&&(n.conversion=e.conversion),n}(n)}))})),w=t}(),t=[].slice,r=["keyword","gray","hex"],a={};Object.keys(n).forEach((function(e){a[t.call(n[e].labels).sort().join("")]=e}));var i={};function l(o,s){if(!(this instanceof l))return new l(o,s);if(s&&s in r&&(s=null),s&&!(s in n))throw new Error("Unknown model: "+s);var u,h;if(null==o)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(o instanceof l)this.model=o.model,this.color=o.color.slice(),this.valpha=o.valpha;else if("string"==typeof o){var f=e.get(o);if(null===f)throw new Error("Unable to parse color from string: "+o);this.model=f.model,this.color=f.value.slice(0,h=n[this.model].channels),this.valpha="number"==typeof f.value[h]?f.value[h]:1}else if(o.length){this.model=s||"rgb";var d=t.call(o,0,h=n[this.model].channels);this.color=c(d,h),this.valpha="number"==typeof o[h]?o[h]:1}else if("number"==typeof o)o&=16777215,this.model="rgb",this.color=[o>>16&255,o>>8&255,255&o],this.valpha=1;else{this.valpha=1;var g=Object.keys(o);"alpha"in o&&(g.splice(g.indexOf("alpha"),1),this.valpha="number"==typeof o.alpha?o.alpha:0);var b=g.sort().join("");if(!(b in a))throw new Error("Unable to parse color from object: "+JSON.stringify(o));this.model=a[b];var v=n[this.model].labels,p=[];for(u=0;u<v.length;u++)p.push(o[v[u]]);this.color=c(p)}if(i[this.model])for(h=n[this.model].channels,u=0;u<h;u++){var m=i[this.model][u];m&&(this.color[u]=m(this.color[u]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function o(e,n,t){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(i[e]||(i[e]=[]))[n]=t})),e=e[0],function(r){var a;return arguments.length?(t&&(r=t(r)),(a=this[e]()).color[n]=r,a):(a=this[e]().color[n],t&&(a=t(a)),a)}}function s(e){return function(n){return Math.max(0,Math.min(e,n))}}function c(e,n){for(var t=0;t<n;t++)"number"!=typeof e[t]&&(e[t]=0);return e}l.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(n){var t=this.model in e.to?this:this.rgb(),r=1===(t=t.round("number"==typeof n?n:1)).valpha?t.color:t.color.concat(this.valpha);return e.to[t.model](r)},percentString:function(n){var t=this.rgb().round("number"==typeof n?n:1),r=1===t.valpha?t.color:t.color.concat(this.valpha);return e.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=n[this.model].channels,r=n[this.model].labels,a=0;a<t;a++)e[r[a]]=this.color[a];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new l(this.color.map(function(e){return function(n){return function(e,n){return Number(e.toFixed(n))}(n,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new l(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:o("rgb",0,s(255)),green:o("rgb",1,s(255)),blue:o("rgb",2,s(255)),hue:o(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:o("hsl",1,s(100)),lightness:o("hsl",2,s(100)),saturationv:o("hsv",1,s(100)),value:o("hsv",2,s(100)),chroma:o("hcg",1,s(100)),gray:o("hcg",2,s(100)),white:o("hwb",1,s(100)),wblack:o("hwb",2,s(100)),cyan:o("cmyk",0,s(100)),magenta:o("cmyk",1,s(100)),yellow:o("cmyk",2,s(100)),black:o("cmyk",3,s(100)),x:o("xyz",0,s(100)),y:o("xyz",1,s(100)),z:o("xyz",2,s(100)),l:o("lab",0,s(100)),a:o("lab",1),b:o("lab",2),keyword:function(e){return arguments.length?new l(e):n[this.model].keyword(this.color)},hex:function(n){return arguments.length?new l(n):e.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,n=[],t=0;t<e.length;t++){var r=e[t]/255;n[t]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast:function(e){var n=this.luminosity(),t=e.luminosity();return n>t?(n+.05)/(t+.05):(t+.05)/(n+.05)},level:function(e){var n=this.contrast(e);return n>=7.1?"AAA":n>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),n=0;n<3;n++)e.color[n]=255-e.color[n];return e},lighten:function(e){var n=this.hsl();return n.color[2]+=n.color[2]*e,n},darken:function(e){var n=this.hsl();return n.color[2]-=n.color[2]*e,n},saturate:function(e){var n=this.hsl();return n.color[1]+=n.color[1]*e,n},desaturate:function(e){var n=this.hsl();return n.color[1]-=n.color[1]*e,n},whiten:function(e){var n=this.hwb();return n.color[1]+=n.color[1]*e,n},blacken:function(e){var n=this.hwb();return n.color[2]+=n.color[2]*e,n},grayscale:function(){var e=this.rgb().color,n=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(n,n,n)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var n=this.hsl(),t=n.color[0];return n.color[0]=t=(t=(t+e)%360)<0?360+t:t,n},mix:function(e,n){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var t=e.rgb(),r=this.rgb(),a=void 0===n?.5:n,i=2*a-1,o=t.alpha()-r.alpha(),s=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,c=1-s;return l.rgb(s*t.red()+c*r.red(),s*t.green()+c*r.green(),s*t.blue()+c*r.blue(),t.alpha()*a+r.alpha()*(1-a))}},Object.keys(n).forEach((function(e){if(-1===r.indexOf(e)){var a=n[e].channels;l.prototype[e]=function(){if(this.model===e)return new l(this);if(arguments.length)return new l(arguments,e);var t,r="number"==typeof arguments[a]?a:this.valpha;return new l((t=n[this.model][e].raw(this.color),Array.isArray(t)?t:[t]).concat(r),e)},l[e]=function(n){return"number"==typeof n&&(n=c(t.call(arguments),a)),new l(n,e)}}})),M=l}(),g();const z=[{id:1,height:400,width:100,x:10,y:10,drop:20},{id:2,height:356,width:100,x:120,y:32,drop:20},{id:3,height:312,width:100,x:230,y:54,drop:20},{id:4,height:268,width:100,x:340,y:76,drop:20},{id:5,height:224,width:100,x:450,y:98,drop:20}].map((()=>0)),A={bada55:"#bada55",navy:"#001f3f",blue:"#0074d9",aqua:"#7fdbff",teal:"#39cccc",olive:"#3d9970",green:"#2ecc40",lime:"#01ff70",yellow:"#ffdc00",orange:"#ff851b",red:"#ff4136",maroon:"#85144b",fuchsia:"#f012be",purple:"#b10dc9",black:"#111111",gray:"#aaaaaa",silver:"#dddddd"},q={slate:"#708090",slate4:"#4e5964",white:"#ffffff"},L=Object.keys(A),F=e=>!("isConnected"in e)||e.isConnected,S=(()=>{let e;return(...n)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let n of e.keys())e.set(n,e.get(n).filter(F))})(...n)}),2e3)}})(),E=e=>"function"==typeof e?e():e,N="proto-tinker-wc::app-data",I=(()=>{const e=((e,n=(e,n)=>e!==n)=>{const t=E(e);let r=new Map(Object.entries(t??{}));const a={dispose:[],get:[],set:[],reset:[]},i=()=>{r=new Map(Object.entries(E(e)??{})),a.reset.forEach((e=>e()))},l=e=>(a.get.forEach((n=>n(e))),r.get(e)),o=(e,t)=>{const i=r.get(e);n(t,i,e)&&(r.set(e,t),a.set.forEach((n=>n(e,t,i))))},s="undefined"==typeof Proxy?{}:new Proxy(t,{get:(e,n)=>l(n),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,n)=>r.has(n),set:(e,n,t)=>(o(n,t),!0)}),c=(e,n)=>(a[e].push(n),()=>{((e,n)=>{const t=e.indexOf(n);t>=0&&(e[t]=e[e.length-1],e.length--)})(a[e],n)});return{state:s,get:l,set:o,on:c,onChange:(n,t)=>{const r=c("set",((e,r)=>{e===n&&t(r)})),a=c("reset",(()=>t(E(e)[n])));return()=>{r(),a()}},use:(...e)=>{const n=e.reduce(((e,n)=>(n.set&&e.push(c("set",n.set)),n.get&&e.push(c("get",n.get)),n.reset&&e.push(c("reset",n.reset)),n.dispose&&e.push(c("dispose",n.dispose)),e)),[]);return()=>n.forEach((e=>e()))},dispose:()=>{a.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const n=r.get(e);a.set.forEach((t=>t(e,n,n)))}}})({count:0,pick:"bada55",values:[...z]},void 0);return e.use((()=>{if("function"!=typeof n)return{};const e=new Map;return{dispose:()=>e.clear(),get:t=>{const r=n();r&&((e,n,t)=>{const r=e.get(n);r?r.includes(t)||r.push(t):e.set(n,[t])})(e,t,r)},set:n=>{const r=e.get(n);r&&e.set(n,r.filter(t)),S(e)},reset:()=>{e.forEach((e=>e.forEach(t))),S(e)}}})()),e})(),{state:$}=I,U=()=>{const{count:e,pick:n,values:t}=$;(e=>{const n=JSON.stringify(e);localStorage.setItem(N,n)})({count:e,pick:n,values:t})},B={initApp:()=>{const e=(()=>{const e=localStorage.getItem(N);return e?JSON.parse(e):void 0})();if(e){const{count:n,pick:t,values:r}=e;$.count=n,$.pick=t,$.values=r}},refresh:()=>{const e=z.map((()=>Math.floor(100*Math.random())));$.count=$.count+1,$.values=e,U()},reset:()=>{$.count=0,$.values=[...z],U()},updatePick:e=>{$.pick=e,U()}},H=n=>{const{actions:t,state:r}=n,{pick:i}=r;return e("div",{id:"toolbar",class:"flex flex-wrap",role:"radiogroup"},L.map((n=>{const r=(e=>A[e]||q[e])(n),l=i===n;return e("div",{"aria-label":n,"aria-checked":l?"true":"false",role:"radio",onClick:()=>{t.updatePick(n)}},e(a,{hex:r,selected:l,label:n}))})))},D=n=>{const t=n.hex||"currentColor",r=n.size||24;return e("svg",{class:n.class,width:r,height:r,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"chevron-double-left"),e("g",{fill:t},e("path",{d:"M18.41,7.41L17,6L11,12L17,18L18.41,16.59L13.83,12L18.41,7.41M12.41,7.41L11,6L5,12L11,18L12.41,16.59L7.83,12L12.41,7.41Z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},J=n=>{const t=n.hex||"currentColor",r=n.size||24;return e("svg",{class:n.class,width:r,height:r,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"close"),e("g",{fill:t},e("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},P=n=>{const t=n.hex||"currentColor",r=n.size||24;return e("svg",{class:n.class,width:r,height:r,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"refresh"),e("g",{fill:t},e("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99\n 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65\n 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35\n 2.35z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},R=n=>{const{actions:t,state:r}=n,{count:a}=r;return e("div",{class:"mb-10px mt-3 flex items-center"},e("button",{"aria-label":"Refresh",class:"ds1-button data-button bg-clrs-blue",onClick:()=>{t.refresh()}},e(P,{label:"Refresh"})),e("button",{"aria-label":"Reset",class:"ds1-button data-button bg-clrs-red",onClick:()=>{t.reset()}},e(J,{label:"Reset"})),e("span",{class:"flex items-center"},e(D,{size:28}),e("span",{class:"italic"},"click a button... ",e("sup",null,a))))},T=()=>e("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","4.1.10"),Z=n=>{const{state:t}=n,{values:r,pick:a,count:i}=t;return e("div",{class:"flex"},e("div",{class:"flex flex-col"},e("div",{class:"flex"},e("span",{class:"mr-10px font-bold"},"color:"),e("span",{class:"italic text-clrs-slate4"},a)),e("div",{class:"mt-5px flex"},e("span",{class:"mr-10px font-bold"},"sample:"),e("span",{class:"italic text-clrs-slate4"},`${i>0?r:"..."}`))),e(T,null))},K=n=>{const t=n.hex||"currentColor",r=n.size||24;return e("svg",{class:n.class,width:r,height:r,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"fingerprint"),e("g",{fill:t},e("path",{d:"M17.81,4.47C17.73,4.47 17.65,4.45 17.58,4.41C15.66,3.42 14,3\n 12,3C10.03,3 8.15,3.47 6.44,4.41C6.2,4.54 5.9,4.45 5.76,4.21C5.63,3.97\n 5.72,3.66 5.96,3.53C7.82,2.5 9.86,2 12,2C14.14,2 16,2.47\n 18.04,3.5C18.29,3.65 18.38,3.95 18.25,4.19C18.16,4.37 18,4.47\n 17.81,4.47M3.5,9.72C3.4,9.72 3.3,9.69 3.21,9.63C3,9.47 2.93,9.16\n 3.09,8.93C4.08,7.53 5.34,6.43 6.84,5.66C10,4.04 14,4.03\n 17.15,5.65C18.65,6.42 19.91,7.5 20.9,8.9C21.06,9.12 21,9.44\n 20.78,9.6C20.55,9.76 20.24,9.71 20.08,9.5C19.18,8.22 18.04,7.23\n 16.69,6.54C13.82,5.07 10.15,5.07 7.29,6.55C5.93,7.25 4.79,8.25\n 3.89,9.5C3.81,9.65 3.66,9.72 3.5,9.72M9.75,21.79C9.62,21.79 9.5,21.74\n 9.4,21.64C8.53,20.77 8.06,20.21 7.39,19C6.7,17.77 6.34,16.27\n 6.34,14.66C6.34,11.69 8.88,9.27 12,9.27C15.12,9.27 17.66,11.69\n 17.66,14.66A0.5,0.5 0 0,1 17.16,15.16A0.5,0.5 0 0,1\n 16.66,14.66C16.66,12.24 14.57,10.27 12,10.27C9.43,10.27 7.34,12.24\n 7.34,14.66C7.34,16.1 7.66,17.43 8.27,18.5C8.91,19.66 9.35,20.15\n 10.12,20.93C10.31,21.13 10.31,21.44 10.12,21.64C10,21.74 9.88,21.79\n 9.75,21.79M16.92,19.94C15.73,19.94 14.68,19.64 13.82,19.05C12.33,18.04\n 11.44,16.4 11.44,14.66A0.5,0.5 0 0,1 11.94,14.16A0.5,0.5 0 0,1\n 12.44,14.66C12.44,16.07 13.16,17.4 14.38,18.22C15.09,18.7 15.92,18.93\n 16.92,18.93C17.16,18.93 17.56,18.9 17.96,18.83C18.23,18.78 18.5,18.96\n 18.54,19.24C18.59,19.5 18.41,19.77 18.13,19.82C17.56,19.93 17.06,19.94\n 16.92,19.94M14.91,22C14.87,22 14.82,22 14.78,22C13.19,21.54 12.15,20.95\n 11.06,19.88C9.66,18.5 8.89,16.64 8.89,14.66C8.89,13.04 10.27,11.72\n 11.97,11.72C13.67,11.72 15.05,13.04 15.05,14.66C15.05,15.73 16,16.6\n 17.13,16.6C18.28,16.6 19.21,15.73 19.21,14.66C19.21,10.89 15.96,7.83\n 11.96,7.83C9.12,7.83 6.5,9.41 5.35,11.86C4.96,12.67 4.76,13.62\n 4.76,14.66C4.76,15.44 4.83,16.67 5.43,18.27C5.53,18.53 5.4,18.82\n 5.14,18.91C4.88,19 4.59,18.87 4.5,18.62C4,17.31 3.77,16\n 3.77,14.66C3.77,13.46 4,12.37 4.45,11.42C5.78,8.63 8.73,6.82\n 11.96,6.82C16.5,6.82 20.21,10.33 20.21,14.65C20.21,16.27 18.83,17.59\n 17.13,17.59C15.43,17.59 14.05,16.27 14.05,14.65C14.05,13.58 13.12,12.71\n 11.97,12.71C10.82,12.71 9.89,13.58 9.89,14.65C9.89,16.36 10.55,17.96\n 11.76,19.16C12.71,20.1 13.62,20.62 15.03,21C15.3,21.08 15.45,21.36\n 15.38,21.62C15.33,21.85 15.12,22 14.91,22Z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},V="eswat2",_=()=>e("a",{class:"absolute right-8 top-8 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":V,target:"blank",title:V},e(K,{label:"eswat2"})),G=n=>e("h1",{class:"mb-11 ml-0 mr-0 mt-11 text-center text-6xl font-thin uppercase text-clrs-red"},n.label),Q=class{constructor(e){r(this,e),this.tag="proto-tinker"}componentDidLoad(){B.initApp()}render(){return e("div",{key:"8ce0faa12c39b5b7ebc87c2f8d00dade936e3ded",id:"app",class:"ds1-main relative"},e(G,{key:"d1a5aba6e4221c2f233f8675a4d5cd81aab4d93d",label:"tinker wc"}),e(_,{key:"919ca01768ea309609ec6be67fede120434d723e"}),e(R,{key:"e8220f685b6b44e3d7ccd1bf644d3f98219d7310",actions:B,state:$}),e(H,{key:"463901312bdd5ee72715de3e2fc47ad364902f40",actions:B,state:$}),e("hr",{key:"35ba2812a3b068b21b5252c5f07d0b5dc2f18527",class:"ml-0 mr-0"}),e(Z,{key:"df047e0968a8267a031b87fd733c454911771fe0",state:$}))}};Q.style="/*! tailwindcss v4.1.10 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n :root,\n :host {\n --font-sans:\n ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n --spacing: 0.25rem;\n --text-xs: 0.75rem;\n --text-xs--line-height: calc(1 / 0.75);\n --text-6xl: 3.75rem;\n --text-6xl--line-height: 1;\n --font-weight-thin: 100;\n --font-weight-bold: 700;\n }\n}\n@layer utilities {\n .absolute {\n position: absolute;\n }\n .relative {\n position: relative;\n }\n .top-8 {\n top: calc(var(--spacing) * 8);\n }\n .right-8 {\n right: calc(var(--spacing) * 8);\n }\n .mt-3 {\n margin-top: calc(var(--spacing) * 3);\n }\n .mt-5px {\n margin-top: 5px;\n }\n .mt-11 {\n margin-top: calc(var(--spacing) * 11);\n }\n .mr-0 {\n margin-right: calc(var(--spacing) * 0);\n }\n .mr-10px {\n margin-right: 10px;\n }\n .mb-10px {\n margin-bottom: 10px;\n }\n .mb-11 {\n margin-bottom: calc(var(--spacing) * 11);\n }\n .ml-0 {\n margin-left: calc(var(--spacing) * 0);\n }\n .ml-auto {\n margin-left: auto;\n }\n .flex {\n display: flex;\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-wrap {\n flex-wrap: wrap;\n }\n .items-center {\n align-items: center;\n }\n .border-solid {\n --tw-border-style: solid;\n border-style: solid;\n }\n .border-clrs-slate {\n border-color: var(--clrs-slate, #708090);\n }\n .bg-clrs-blue {\n background-color: var(--clrs-blue, #0074d9);\n }\n .bg-clrs-red {\n background-color: var(--clrs-red, #ff4136);\n }\n .p-4 {\n padding: calc(var(--spacing) * 4);\n }\n .text-center {\n text-align: center;\n }\n .align-top {\n vertical-align: top;\n }\n .font-sans {\n font-family: var(--font-sans);\n }\n .text-6xl {\n font-size: var(--text-6xl);\n line-height: var(--tw-leading, var(--text-6xl--line-height));\n }\n .text-xs {\n font-size: var(--text-xs);\n line-height: var(--tw-leading, var(--text-xs--line-height));\n }\n .font-bold {\n --tw-font-weight: var(--font-weight-bold);\n font-weight: var(--font-weight-bold);\n }\n .font-thin {\n --tw-font-weight: var(--font-weight-thin);\n font-weight: var(--font-weight-thin);\n }\n .text-clrs-gray {\n color: var(--clrs-gray, #aaaaaa);\n }\n .text-clrs-navy {\n color: var(--clrs-navy, #001f3f);\n }\n .text-clrs-red {\n color: var(--clrs-red, #ff4136);\n }\n .text-clrs-slate4 {\n color: var(--clrs-slate4, #4e5964);\n }\n .text-clrs-white {\n color: var(--clrs-white, #ffffff);\n }\n .uppercase {\n text-transform: uppercase;\n }\n .italic {\n font-style: italic;\n }\n .shadow {\n --tw-shadow:\n 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)),\n 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow:\n var(--tw-inset-shadow), var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n .hover\\:text-clrs-navy {\n &:hover {\n @media (hover: hover) {\n color: var(--clrs-navy, #001f3f);\n }\n }\n }\n .active\\:bg-clrs-gray {\n &:active {\n background-color: var(--clrs-gray, #aaaaaa);\n }\n }\n}\n@layer components {\n .ds1-main {\n display: flex;\n flex-direction: column;\n padding: calc(var(--spacing) * 4);\n font-family: var(--font-sans);\n color: var(--clrs-navy, #001f3f);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .ds1-button {\n display: flex;\n align-items: center;\n --tw-border-style: solid;\n border-style: solid;\n border-color: var(--clrs-slate, #708090);\n color: var(--clrs-white, #ffffff);\n &:active {\n background-color: var(--clrs-gray, #aaaaaa);\n }\n &:active {\n color: var(--clrs-navy, #001f3f);\n }\n }\n}\n.data-button {\n border-radius: 5px;\n border-width: 1px;\n padding: 5px;\n margin: 0px;\n margin-right: 5px;\n cursor: pointer;\n}\n";export{Q as proto_tinker}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const t=()=>{};var e=Object.defineProperty,n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),h=!1,p=[],m=[],v=(t,e)=>n=>{t.push(n),h||(h=!0,e&&4&a.o?b(w):a.raf(w))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},w=()=>{y(p),y(m),(h=p.length>0)&&a.raf(w)},b=t=>f().then(t),$=v(m,!0),g=t=>"object"==(t=typeof t)||"function"===t;function S(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>O,ok:()=>j,unwrap:()=>E,unwrapErr:()=>C});var j=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function O(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>j(t))):j(n)}if(t.isErr)return k(t.value);throw"should never get here"}var E=t=>{if(t.isOk)return t.value;throw t.value},C=t=>{if(t.isErr)return t.value;throw t.value};function x(){const t=this.attachShadow({mode:"open"});if(d){const e=new CSSStyleSheet;e.replaceSync(""),t.adoptedStyleSheets.push(e)}}var M=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?P(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,r,D);const u=P(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},P=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),R={},D={forEach:(t,e)=>t.map(U).forEach(e),map:(t,e)=>t.map(U).map(e).map(W)},U=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.$,vtag:t.m,vtext:t.i}),W=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),M(t.vtag,e,...t.vchildren||[])}const e=P(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.$=t.vname,e},A=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};A("::slotted"),A(":host"),A(":host-context");var N,L=(t,e)=>null==t||g(t)?t:1&e?t+"":t,T=new WeakMap,H=t=>"sc-"+t.S,z=(t,e,n,o,s,i)=>{if(n===o)return;let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=V(n);let s=V(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("key"===e);else if(r||"o"!==e[0]||"n"!==e[1]){const l=g(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!l&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(q);e=e.replace(G,""),n&&a.rel(t,e,n,l),o&&a.ael(t,e,o,l)}},F=/\s/,V=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(F):[]),q="Capture",G=RegExp(q+"$"),I=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of Y(Object.keys(l)))t in s||z(o,t,l[t],void 0,n,e.o);for(const t of Y(Object.keys(s)))z(o,t,l[t],s[t],n,e.o)};function Y(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var _=!1,B=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(null!==o.i)l=o.v=u.document.createTextNode(o.i);else{if(_||(_="svg"===o.m),!u.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.v=u.document.createElementNS(_?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),_&&"foreignObject"===o.m&&(_=!1),I(null,o,_),o.h)for(i=0;i<o.h.length;++i)s=B(t,o,i),s&&l.appendChild(s);"svg"===o.m?_=!1:"foreignObject"===l.tagName&&(_=!0)}return l["s-hn"]=N,l},J=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===N&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=B(null,n,l),i&&(o[l].v=i,Z(r,i,e)))},K=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},Q=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),X=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m,r=e.i;null===r?(I(t,e,_="svg"===i||"foreignObject"!==i&&_),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(Q(d,m,l))X(d,m,l),d=e[++r],m=o[++c];else if(Q(h,v,l))X(h,v,l),h=e[--f],v=o[--p];else if(Q(d,v,l))X(d,v,l),Z(t,d.v,h.v.nextSibling),d=e[++r],v=o[--p];else if(Q(h,m,l))X(h,m,l),Z(t,h.v,d.v),h=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(i=e[u],i.m!==m.m?s=B(e&&e[c],n,u):(X(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=B(e&&e[c],n,c),m=o[++c]),s&&Z(d.v.parentNode,s,d.v)}r>f?J(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&K(e,r,f)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),J(o,null,e,s,0,s.length-1)):!n&&null!==l&&K(l,0,l.length-1),_&&"svg"===i&&(_=!1)):t.i!==r&&(o.data=r)},Z=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),tt=(t,e)=>{if(e&&!t.j&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.j=()=>{e["s-p"].splice(n-1,1),o()})))}},et=(t,e)=>{if(t.o|=16,!(4&t.o))return tt(t,t.k),$((()=>nt(t,e)));t.o|=512},nt=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=dt(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),l=ot(l,(()=>dt(o,"componentWillRender",void 0,n))),ot(l,(()=>st(t,o,e)))},ot=(t,e)=>lt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),lt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,st=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=H(e),l=r.get(o);if(!u.document)return o;if(t=11===t.nodeType?t:u.document,l)if("string"==typeof l){let s,i=T.get(t=t.head||t);if(i||T.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.document.createElement("style"),s.innerHTML=l;const i=null!=(n=a.C)?n:S(u.document);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);rt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>ut(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},it=null,rt=(t,e,n,o)=>{try{it=e,e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.M||P(null,null),s=(t=>t&&t.m===R)(e)?e:M(null,null,e);if(N=o.tagName,n&&s.u)for(const t of Object.keys(s.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.u[t]=o[t]);s.m=null,s.o|=4,t.M=s,s.v=l.v=o.shadowRoot||o,X(l,s,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return it=null,null},ct=()=>it,ut=t=>{const e=t.$hostElement$,n=t.t,o=t.k;dt(n,"componentDidRender",void 0,e),64&t.o?dt(n,"componentDidUpdate",void 0,e):(t.o|=64,ht(e),dt(n,"componentDidLoad",void 0,e),t.P(e),o||ft()),t.j&&(t.j(),t.j=void 0),512&t.o&&b((()=>et(t,!1))),t.o&=-517},at=t=>{{const e=n(t),o=e.$hostElement$.isConnected;return o&&2==(18&e.o)&&et(e,!1),o}},ft=()=>{b((()=>(t=>{const e=a.ce("appload",{detail:{namespace:"proto-tinker-wc"}});return t.dispatchEvent(e),e})(u)))},dt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},ht=t=>t.classList.add("hydrated"),pt=(t,e,o,l)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const i=s.R.get(e),r=s.o,c=s.t;if(o=L(o,l.D[e][0]),(!(8&r)||void 0===i)&&o!==i&&(!Number.isNaN(i)||!Number.isNaN(o))&&(s.R.set(e,o),c&&2==(18&r))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,i,e))return;et(s,!1)}},mt=(t,e,o)=>{var l,s;const i=t.prototype;if(e.D){const r=Object.entries(null!=(l=e.D)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.D[t][0]|=2048),r&&(e.D[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.D[t][0]))return((t,e)=>n(this).R.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.R.get(t)?s=i.R.get(t):!i.R.get(t)&&n&&i.R.set(t,n),r.call(this,L(s,l)),void pt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.D[t][0]))return pt(this,t,s,e),void(1&o&&!i.t&&i.U.then((()=>{4096&e.D[t][0]&&i.t[t]!==i.R.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.R.get(t)&&n&&i.R.set(t,n),i.t[t]=L(s,l),pt(this,t,i.t[t],e)};i.t?n():i.U.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.W)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.W)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},vt=(t,e)=>{dt(t,"connectedCallback",void 0,e)},yt=(t,e)=>{dt(t,"disconnectedCallback",void 0,e||t)},wt=(t,e={})=>{var o;if(!u.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const l=[],f=e.exclude||[],h=u.customElements,p=u.document.head,m=p.querySelector("meta[charset]"),v=u.document.createElement("style"),y=[];let w,b=!0;Object.assign(a,e),a.l=new URL(e.resourcesUrl||"./",u.document.baseURI).href;let $=!1;if(t.map((t=>{t[1].map((e=>{const o={o:e[0],S:e[1],D:e[2],A:e[3]};4&o.o&&($=!0),o.D=e[2];const c=o.S,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,O:e,R:new Map};n.U=new Promise((t=>n.P=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,o),1&o.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else x.call(t,o)}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),b?y.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.O,l=()=>{};if(1&e.o)(null==e?void 0:e.t)?vt(e.t,t):(null==e?void 0:e.U)&&e.U.then((()=>vt(e.t,t)));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){tt(e,e.k=n);break}}o.D&&Object.entries(o.D).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.N){const l=((t,e)=>{const n=t.S.replace(/-/g,"_"),o=t.N;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
|
|
1
|
+
const t=()=>{};var e=Object.defineProperty,n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),h=!1,p=[],m=[],v=(t,e)=>n=>{t.push(n),h||(h=!0,e&&4&a.o?b(w):a.raf(w))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},w=()=>{y(p),y(m),(h=p.length>0)&&a.raf(w)},b=t=>f().then(t),$=v(m,!0),g=t=>"object"==(t=typeof t)||"function"===t;function S(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>O,ok:()=>j,unwrap:()=>E,unwrapErr:()=>C});var j=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function O(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>j(t))):j(n)}if(t.isErr)return k(t.value);throw"should never get here"}var E=t=>{if(t.isOk)return t.value;throw t.value},C=t=>{if(t.isErr)return t.value;throw t.value};function x(){const t=this.attachShadow({mode:"open"});if(d){const e=new CSSStyleSheet;e.replaceSync(""),t.adoptedStyleSheets.push(e)}}var M=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?P(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,r,D);const u=P(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},P=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),R={},D={forEach:(t,e)=>t.map(U).forEach(e),map:(t,e)=>t.map(U).map(e).map(W)},U=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.$,vtag:t.m,vtext:t.i}),W=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),M(t.vtag,e,...t.vchildren||[])}const e=P(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.$=t.vname,e},A=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};A("::slotted"),A(":host"),A(":host-context");var N,L=(t,e)=>null==t||g(t)?t:1&e?t+"":t,T=new WeakMap,H=t=>"sc-"+t.S,z=(t,e,n,o,s,i)=>{if(n===o)return;let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=V(n);let s=V(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("key"===e);else if(r||"o"!==e[0]||"n"!==e[1]){const l=g(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!l&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(q);e=e.replace(G,""),n&&a.rel(t,e,n,l),o&&a.ael(t,e,o,l)}},F=/\s/,V=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(F):[]),q="Capture",G=RegExp(q+"$"),I=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of Y(Object.keys(l)))t in s||z(o,t,l[t],void 0,n,e.o);for(const t of Y(Object.keys(s)))z(o,t,l[t],s[t],n,e.o)};function Y(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var _=!1,B=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(null!==o.i)l=o.v=u.document.createTextNode(o.i);else{if(_||(_="svg"===o.m),!u.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.v=u.document.createElementNS(_?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),_&&"foreignObject"===o.m&&(_=!1),I(null,o,_),o.h)for(i=0;i<o.h.length;++i)s=B(t,o,i),s&&l.appendChild(s);"svg"===o.m?_=!1:"foreignObject"===l.tagName&&(_=!0)}return l["s-hn"]=N,l},J=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===N&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=B(null,n,l),i&&(o[l].v=i,Z(r,i,e)))},K=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},Q=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),X=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m,r=e.i;null===r?(I(t,e,_="svg"===i||"foreignObject"!==i&&_),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(Q(d,m,l))X(d,m,l),d=e[++r],m=o[++c];else if(Q(h,v,l))X(h,v,l),h=e[--f],v=o[--p];else if(Q(d,v,l))X(d,v,l),Z(t,d.v,h.v.nextSibling),d=e[++r],v=o[--p];else if(Q(h,m,l))X(h,m,l),Z(t,h.v,d.v),h=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(i=e[u],i.m!==m.m?s=B(e&&e[c],n,u):(X(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=B(e&&e[c],n,c),m=o[++c]),s&&Z(d.v.parentNode,s,d.v)}r>f?J(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&K(e,r,f)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),J(o,null,e,s,0,s.length-1)):!n&&null!==l&&K(l,0,l.length-1),_&&"svg"===i&&(_=!1)):t.i!==r&&(o.data=r)},Z=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),tt=(t,e)=>{if(e&&!t.j&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.j=()=>{e["s-p"].splice(n-1,1),o()})))}},et=(t,e)=>{if(t.o|=16,!(4&t.o))return tt(t,t.k),$((()=>nt(t,e)));t.o|=512},nt=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=dt(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),l=ot(l,(()=>dt(o,"componentWillRender",void 0,n))),ot(l,(()=>st(t,o,e)))},ot=(t,e)=>lt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),lt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,st=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=H(e),l=r.get(o);if(!u.document)return o;if(t=11===t.nodeType?t:u.document,l)if("string"==typeof l){let s,i=T.get(t=t.head||t);if(i||T.set(t,i=new Set),!i.has(o)){{s=u.document.createElement("style"),s.innerHTML=l;const o=null!=(n=a.C)?n:S(u.document);if(null!=o&&s.setAttribute("nonce",o),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);rt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>ut(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},it=null,rt=(t,e,n,o)=>{try{it=e,e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.M||P(null,null),s=(t=>t&&t.m===R)(e)?e:M(null,null,e);if(N=o.tagName,n&&s.u)for(const t of Object.keys(s.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.u[t]=o[t]);s.m=null,s.o|=4,t.M=s,s.v=l.v=o.shadowRoot||o,X(l,s,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return it=null,null},ct=()=>it,ut=t=>{const e=t.$hostElement$,n=t.t,o=t.k;dt(n,"componentDidRender",void 0,e),64&t.o?dt(n,"componentDidUpdate",void 0,e):(t.o|=64,ht(e),dt(n,"componentDidLoad",void 0,e),t.P(e),o||ft()),t.j&&(t.j(),t.j=void 0),512&t.o&&b((()=>et(t,!1))),t.o&=-517},at=t=>{{const e=n(t),o=e.$hostElement$.isConnected;return o&&2==(18&e.o)&&et(e,!1),o}},ft=()=>{b((()=>(t=>{const e=a.ce("appload",{detail:{namespace:"proto-tinker-wc"}});return t.dispatchEvent(e),e})(u)))},dt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},ht=t=>t.classList.add("hydrated"),pt=(t,e,o,l)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const i=s.R.get(e),r=s.o,c=s.t;if(o=L(o,l.D[e][0]),(!(8&r)||void 0===i)&&o!==i&&(!Number.isNaN(i)||!Number.isNaN(o))&&(s.R.set(e,o),c&&2==(18&r))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,i,e))return;et(s,!1)}},mt=(t,e,o)=>{var l,s;const i=t.prototype;if(e.D){const r=Object.entries(null!=(l=e.D)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.D[t][0]|=2048),r&&(e.D[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.D[t][0]))return((t,e)=>n(this).R.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.R.get(t)?s=i.R.get(t):!i.R.get(t)&&n&&i.R.set(t,n),r.call(this,L(s,l)),void pt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.D[t][0]))return pt(this,t,s,e),void(1&o&&!i.t&&i.U.then((()=>{4096&e.D[t][0]&&i.t[t]!==i.R.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.R.get(t)&&n&&i.R.set(t,n),i.t[t]=L(s,l),pt(this,t,i.t[t],e)};i.t?n():i.U.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.W)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.W)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},vt=(t,e)=>{dt(t,"connectedCallback",void 0,e)},yt=(t,e)=>{dt(t,"disconnectedCallback",void 0,e||t)},wt=(t,e={})=>{var o;if(!u.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const l=[],f=e.exclude||[],h=u.customElements,p=u.document.head,m=p.querySelector("meta[charset]"),v=u.document.createElement("style"),y=[];let w,b=!0;Object.assign(a,e),a.l=new URL(e.resourcesUrl||"./",u.document.baseURI).href;let $=!1;if(t.map((t=>{t[1].map((e=>{const o={o:e[0],S:e[1],D:e[2],A:e[3]};4&o.o&&($=!0),o.D=e[2];const c=o.S,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,O:e,R:new Map};n.U=new Promise((t=>n.P=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,o),1&o.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else x.call(t,o)}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),b?y.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.O,l=()=>{};if(1&e.o)(null==e?void 0:e.t)?vt(e.t,t):(null==e?void 0:e.U)&&e.U.then((()=>vt(e.t,t)));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){tt(e,e.k=n);break}}o.D&&Object.entries(o.D).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.N){const l=((t,e)=>{const n=t.S.replace(/-/g,"_"),o=t.N;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
|
|
2
2
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.S}#${e.L}" was not found`);o.isProxied||(mt(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,r(),vt(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=H(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.k,c=()=>et(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.o)){const e=n(t);(null==e?void 0:e.t)?yt(e.t,t):(null==e?void 0:e.U)&&e.U.then((()=>yt(e.t,t)))}T.has(t)&&T.delete(t),t.shadowRoot&&T.has(t.shadowRoot)&&T.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const e=n(this),o=y.findIndex((t=>t===this));o>-1&&y.splice(o,1),(null==(t=null==e?void 0:e.M)?void 0:t.v)instanceof Node&&!e.M.v.isConnected&&delete e.M.v}))}componentOnReady(){return n(this).U}};o.N=t[0],f.includes(c)||h.get(c)||(l.push(c),h.define(c,mt(u,o,1)))}))})),l.length>0&&($&&(v.textContent+=c),v.textContent+=l.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(o=a.C)?o:S(u.document);null!=t&&v.setAttribute("nonce",t),p.insertBefore(v,m?m.nextSibling:p.firstChild)}b=!1,y.length?y.map((t=>t.connectedCallback())):a.jmp((()=>w=setTimeout(ft,30)))},bt=t=>a.C=t;export{ct as a,wt as b,at as f,t as g,M as h,f as p,o as r,bt as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as a,g as t,b as o}from"./p-D2EiAaUF.js";export{s as setNonce}from"./p-D2EiAaUF.js";(()=>{const t=import.meta.url,s={};return""!==t&&(s.resourcesUrl=new URL(".",t).href),a(s)})().then((async a=>(await t(),o([["p-70a8d45c",[[1,"proto-tinker",{tag:[1]}]]]],a))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proto-tinker-wc",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.47",
|
|
4
4
|
"description": "prototype - simple demo built from Stencil & Tailwind",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"format": "prettier --write src"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@stencil/core": "4.
|
|
31
|
+
"@stencil/core": "4.34.0",
|
|
32
32
|
"@stencil/store": "2.1.3",
|
|
33
33
|
"between.js": "0.1.2-fix.2"
|
|
34
34
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"prettier": "3.5.3",
|
|
42
42
|
"prettier-plugin-tailwindcss": "0.6.12",
|
|
43
43
|
"proto-tailwindcss-clrs": "0.0.420",
|
|
44
|
-
"tailwindcss": "4.1.
|
|
44
|
+
"tailwindcss": "4.1.10",
|
|
45
45
|
"typescript": "5.8.3",
|
|
46
46
|
"workbox-build": "7.3.0"
|
|
47
47
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,a as n,f as r,r as t}from"./p-Cd4rJsTz.js";const a=n=>{const r=n.hex||"currentColor",t=n.selected||!1,a=n.size||24;return e("svg",{class:n.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"radio")," ",e("g",{fill:r},e("path",t?{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))};var i,l,o,s,c,u,h={exports:{}},f={exports:{}};function d(){return s?o:(s=1,o=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))})}function g(){if(u)return h.exports;u=1;var e=l?i:(l=1,i={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),n=function(){if(c)return f.exports;c=1;var e=d(),n=Array.prototype.concat,r=Array.prototype.slice,t=f.exports=function(t){for(var a=[],i=0,l=t.length;i<l;i++){var o=t[i];e(o)?a=n.call(a,r.call(o)):a.push(o)}return a};return t.wrap=function(e){return function(){return e(t(arguments))}},f.exports}(),r=Object.hasOwnProperty,t=Object.create(null);for(var a in e)r.call(e,a)&&(t[e[a]]=a);var o=h.exports={to:{},get:{}};function s(e,n,r){return Math.min(Math.max(n,e),r)}function g(e){var n=Math.round(e).toString(16).toUpperCase();return n.length<2?"0"+n:n}return o.get=function(e){var n,r;switch(e.substring(0,3).toLowerCase()){case"hsl":n=o.get.hsl(e),r="hsl";break;case"hwb":n=o.get.hwb(e),r="hwb";break;default:n=o.get.rgb(e),r="rgb"}return n?{model:r,value:n}:null},o.get.rgb=function(n){if(!n)return null;var t,a,i,l=[0,0,0,1];if(t=n.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],a=0;a<3;a++){var o=2*a;l[a]=parseInt(t.slice(o,o+2),16)}i&&(l[3]=parseInt(i,16)/255)}else if(t=n.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],a=0;a<3;a++)l[a]=parseInt(t[a]+t[a],16);i&&(l[3]=parseInt(i+i,16)/255)}else if(t=n.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(a=0;a<3;a++)l[a]=parseInt(t[a+1],0);t[4]&&(l[3]=t[5]?.01*parseFloat(t[4]):parseFloat(t[4]))}else{if(!(t=n.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=n.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:r.call(e,t[1])?((l=e[t[1]])[3]=1,l):null:null;for(a=0;a<3;a++)l[a]=Math.round(2.55*parseFloat(t[a+1]));t[4]&&(l[3]=t[5]?.01*parseFloat(t[4]):parseFloat(t[4]))}for(a=0;a<3;a++)l[a]=s(l[a],0,255);return l[3]=s(l[3],0,1),l},o.get.hsl=function(e){if(!e)return null;var n=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(n){var r=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,s(parseFloat(n[2]),0,100),s(parseFloat(n[3]),0,100),s(isNaN(r)?1:r,0,1)]}return null},o.get.hwb=function(e){if(!e)return null;var n=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(n){var r=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,s(parseFloat(n[2]),0,100),s(parseFloat(n[3]),0,100),s(isNaN(r)?1:r,0,1)]}return null},o.to.hex=function(){var e=n(arguments);return"#"+g(e[0])+g(e[1])+g(e[2])+(e[3]<1?g(Math.round(255*e[3])):"")},o.to.rgb=function(){var e=n(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},o.to.rgb.percent=function(){var e=n(arguments),r=Math.round(e[0]/255*100),t=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+r+"%, "+t+"%, "+a+"%)":"rgba("+r+"%, "+t+"%, "+a+"%, "+e[3]+")"},o.to.hsl=function(){var e=n(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},o.to.hwb=function(){var e=n(arguments),r="";return e.length>=4&&1!==e[3]&&(r=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+r+")"},o.to.keyword=function(e){return t[e.slice(0,3)]},h.exports}var b,v,p,m,y,w,k,M,x,C={exports:{}};function j(){if(p)return C.exports;p=1;var e=v?b:(v=1,b={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),n={};for(var r in e)e.hasOwnProperty(r)&&(n[e[r]]=r);var t=C.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in t)if(t.hasOwnProperty(a)){if(!("channels"in t[a]))throw new Error("missing channels property: "+a);if(!("labels"in t[a]))throw new Error("missing channel labels property: "+a);if(t[a].labels.length!==t[a].channels)throw new Error("channel and label counts mismatch: "+a);var i=t[a].channels,l=t[a].labels;delete t[a].channels,delete t[a].labels,Object.defineProperty(t[a],"channels",{value:i}),Object.defineProperty(t[a],"labels",{value:l})}return t.rgb.hsl=function(e){var n,r,t=e[0]/255,a=e[1]/255,i=e[2]/255,l=Math.min(t,a,i),o=Math.max(t,a,i),s=o-l;return o===l?n=0:t===o?n=(a-i)/s:a===o?n=2+(i-t)/s:i===o&&(n=4+(t-a)/s),(n=Math.min(60*n,360))<0&&(n+=360),r=(l+o)/2,[n,100*(o===l?0:r<=.5?s/(o+l):s/(2-o-l)),100*r]},t.rgb.hsv=function(e){var n,r,t,a,i,l=e[0]/255,o=e[1]/255,s=e[2]/255,c=Math.max(l,o,s),u=c-Math.min(l,o,s),h=function(e){return(c-e)/6/u+.5};return 0===u?a=i=0:(i=u/c,n=h(l),r=h(o),t=h(s),l===c?a=t-r:o===c?a=1/3+n-t:s===c&&(a=2/3+r-n),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*c]},t.rgb.hwb=function(e){var n=e[0],r=e[1],a=e[2];return[t.rgb.hsl(e)[0],1/255*Math.min(n,Math.min(r,a))*100,100*(a=1-1/255*Math.max(n,Math.max(r,a)))]},t.rgb.cmyk=function(e){var n,r=e[0]/255,t=e[1]/255,a=e[2]/255;return[100*((1-r-(n=Math.min(1-r,1-t,1-a)))/(1-n)||0),100*((1-t-n)/(1-n)||0),100*((1-a-n)/(1-n)||0),100*n]},t.rgb.keyword=function(r){var t=n[r];if(t)return t;var a,i,l,o=1/0;for(var s in e)if(e.hasOwnProperty(s)){var c=(i=r,l=e[s],Math.pow(i[0]-l[0],2)+Math.pow(i[1]-l[1],2)+Math.pow(i[2]-l[2],2));c<o&&(o=c,a=s)}return a},t.keyword.rgb=function(n){return e[n]},t.rgb.xyz=function(e){var n=e[0]/255,r=e[1]/255,t=e[2]/255;return[100*(.4124*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)),100*(.2126*n+.7152*r+.0722*t),100*(.0193*n+.1192*r+.9505*t)]},t.rgb.lab=function(e){var n=t.rgb.xyz(e),r=n[0],a=n[1],i=n[2];return a/=100,i/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(r-a),200*(a-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},t.hsl.rgb=function(e){var n,r,t,a,i,l=e[0]/360,o=e[1]/100,s=e[2]/100;if(0===o)return[i=255*s,i,i];n=2*s-(r=s<.5?s*(1+o):s+o-s*o),a=[0,0,0];for(var c=0;c<3;c++)(t=l+1/3*-(c-1))<0&&t++,t>1&&t--,a[c]=255*(i=6*t<1?n+6*(r-n)*t:2*t<1?r:3*t<2?n+(r-n)*(2/3-t)*6:n);return a},t.hsl.hsv=function(e){var n=e[0],r=e[1]/100,t=e[2]/100,a=r,i=Math.max(t,.01);return r*=(t*=2)<=1?t:2-t,a*=i<=1?i:2-i,[n,100*(0===t?2*a/(i+a):2*r/(t+r)),(t+r)/2*100]},t.hsv.rgb=function(e){var n=e[0]/60,r=e[1]/100,t=e[2]/100,a=Math.floor(n)%6,i=n-Math.floor(n),l=255*t*(1-r),o=255*t*(1-r*i),s=255*t*(1-r*(1-i));switch(t*=255,a){case 0:return[t,s,l];case 1:return[o,t,l];case 2:return[l,t,s];case 3:return[l,o,t];case 4:return[s,l,t];case 5:return[t,l,o]}},t.hsv.hsl=function(e){var n,r,t,a=e[0],i=e[1]/100,l=e[2]/100,o=Math.max(l,.01);return t=(2-i)*l,r=i*o,[a,100*(r=(r/=(n=(2-i)*o)<=1?n:2-n)||0),100*(t/=2)]},t.hwb.rgb=function(e){var n,r,t,a,i,l,o,s=e[0]/360,c=e[1]/100,u=e[2]/100,h=c+u;switch(h>1&&(c/=h,u/=h),t=6*s-(n=Math.floor(6*s)),1&n&&(t=1-t),a=c+t*((r=1-u)-c),n){default:case 6:case 0:i=r,l=a,o=c;break;case 1:i=a,l=r,o=c;break;case 2:i=c,l=r,o=a;break;case 3:i=c,l=a,o=r;break;case 4:i=a,l=c,o=r;break;case 5:i=r,l=c,o=a}return[255*i,255*l,255*o]},t.cmyk.rgb=function(e){var n=e[1]/100,r=e[2]/100,t=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-t)+t)),255*(1-Math.min(1,n*(1-t)+t)),255*(1-Math.min(1,r*(1-t)+t))]},t.xyz.rgb=function(e){var n,r,t,a=e[0]/100,i=e[1]/100,l=e[2]/100;return r=-.9689*a+1.8758*i+.0415*l,t=.0557*a+-.204*i+1.057*l,n=(n=3.2406*a+-1.5372*i+-.4986*l)>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,[255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1)),255*(t=Math.min(Math.max(0,t),1))]},t.xyz.lab=function(e){var n=e[0],r=e[1],t=e[2];return r/=100,t/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(t=t>.008856?Math.pow(t,1/3):7.787*t+16/116))]},t.lab.xyz=function(e){var n,r,t;n=e[1]/500+(r=(e[0]+16)/116),t=r-e[2]/200;var a=Math.pow(r,3),i=Math.pow(n,3),l=Math.pow(t,3);return r=a>.008856?a:(r-16/116)/7.787,n=i>.008856?i:(n-16/116)/7.787,t=l>.008856?l:(t-16/116)/7.787,[n*=95.047,r*=100,t*=108.883]},t.lab.lch=function(e){var n,r=e[0],t=e[1],a=e[2];return(n=360*Math.atan2(a,t)/2/Math.PI)<0&&(n+=360),[r,Math.sqrt(t*t+a*a),n]},t.lch.lab=function(e){var n,r=e[1];return n=e[2]/360*2*Math.PI,[e[0],r*Math.cos(n),r*Math.sin(n)]},t.rgb.ansi16=function(e){var n=e[0],r=e[1],a=e[2],i=1 in arguments?arguments[1]:t.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var l=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===i&&(l+=60),l},t.hsv.ansi16=function(e){return t.rgb.ansi16(t.hsv.rgb(e),e[2])},t.rgb.ansi256=function(e){var n=e[0],r=e[1],t=e[2];return n===r&&r===t?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(r/255*5)+Math.round(t/255*5)},t.ansi16.rgb=function(e){var n=e%10;if(0===n||7===n)return e>50&&(n+=3.5),[n=n/10.5*255,n,n];var r=.5*(1+~~(e>50));return[(1&n)*r*255,(n>>1&1)*r*255,(n>>2&1)*r*255]},t.ansi256.rgb=function(e){if(e>=232){var n=10*(e-232)+8;return[n,n,n]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},t.rgb.hex=function(e){var n=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(n.length)+n},t.hex.rgb=function(e){var n=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];var r=n[0];3===n[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var t=parseInt(r,16);return[t>>16&255,t>>8&255,255&t]},t.rgb.hcg=function(e){var n,r=e[0]/255,t=e[1]/255,a=e[2]/255,i=Math.max(Math.max(r,t),a),l=Math.min(Math.min(r,t),a),o=i-l;return n=o<=0?0:i===r?(t-a)/o%6:i===t?2+(a-r)/o:4+(r-t)/o+4,n/=6,[360*(n%=1),100*o,100*(o<1?l/(1-o):0)]},t.hsl.hcg=function(e){var n,r=e[1]/100,t=e[2]/100,a=0;return(n=t<.5?2*r*t:2*r*(1-t))<1&&(a=(t-.5*n)/(1-n)),[e[0],100*n,100*a]},t.hsv.hcg=function(e){var n=e[2]/100,r=e[1]/100*n,t=0;return r<1&&(t=(n-r)/(1-r)),[e[0],100*r,100*t]},t.hcg.rgb=function(e){var n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var t,a=[0,0,0],i=e[0]/360%1*6,l=i%1,o=1-l;switch(Math.floor(i)){case 0:a[0]=1,a[1]=l,a[2]=0;break;case 1:a[0]=o,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=l;break;case 3:a[0]=0,a[1]=o,a[2]=1;break;case 4:a[0]=l,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=o}return[255*(n*a[0]+(t=(1-n)*r)),255*(n*a[1]+t),255*(n*a[2]+t)]},t.hcg.hsv=function(e){var n=e[1]/100,r=n+e[2]/100*(1-n),t=0;return r>0&&(t=n/r),[e[0],100*t,100*r]},t.hcg.hsl=function(e){var n=e[1]/100,r=e[2]/100*(1-n)+.5*n,t=0;return r>0&&r<.5?t=n/(2*r):r>=.5&&r<1&&(t=n/(2*(1-r))),[e[0],100*t,100*r]},t.hcg.hwb=function(e){var n=e[1]/100,r=n+e[2]/100*(1-n);return[e[0],100*(r-n),100*(1-r)]},t.hwb.hcg=function(e){var n=1-e[2]/100,r=n-e[1]/100,t=0;return r<1&&(t=(n-r)/(1-r)),[e[0],100*r,100*t]},t.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},t.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},t.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},t.gray.hsl=t.gray.hsv=function(e){return[0,0,e[0]]},t.gray.hwb=function(e){return[0,100,e[0]]},t.gray.cmyk=function(e){return[0,0,0,e[0]]},t.gray.lab=function(e){return[e[0],0,0]},t.gray.hex=function(e){var n=255&Math.round(e[0]/100*255),r=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(r.length)+r},t.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]},C.exports}function O(){if(y)return m;y=1;var e=j();function n(e,n){return function(r){return n(e(r))}}function r(r,t){for(var a=[t[r].parent,r],i=e[t[r].parent][r],l=t[r].parent;t[l].parent;)a.unshift(t[l].parent),i=n(e[t[l].parent][l],i),l=t[l].parent;return i.conversion=a,i}return m=function(n){for(var t=function(n){var r=function(){for(var n={},r=Object.keys(e),t=r.length,a=0;a<t;a++)n[r[a]]={distance:-1,parent:null};return n}(),t=[n];for(r[n].distance=0;t.length;)for(var a=t.pop(),i=Object.keys(e[a]),l=i.length,o=0;o<l;o++){var s=i[o],c=r[s];-1===c.distance&&(c.distance=r[a].distance+1,c.parent=a,t.unshift(s))}return r}(n),a={},i=Object.keys(t),l=i.length,o=0;o<l;o++){var s=i[o];null!==t[s].parent&&(a[s]=r(s,t))}return a}}!function(){if(x)return M;x=1;var e=g(),n=function(){if(k)return w;k=1;var e=j(),n=O(),r={};return Object.keys(e).forEach((function(t){r[t]={},Object.defineProperty(r[t],"channels",{value:e[t].channels}),Object.defineProperty(r[t],"labels",{value:e[t].labels});var a=n(t);Object.keys(a).forEach((function(e){var n=a[e];r[t][e]=function(e){var n=function(n){if(null==n)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var r=e(n);if("object"==typeof r)for(var t=r.length,a=0;a<t;a++)r[a]=Math.round(r[a]);return r};return"conversion"in e&&(n.conversion=e.conversion),n}(n),r[t][e].raw=function(e){var n=function(n){return null==n?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),e(n))};return"conversion"in e&&(n.conversion=e.conversion),n}(n)}))})),w=r}(),r=[].slice,t=["keyword","gray","hex"],a={};Object.keys(n).forEach((function(e){a[r.call(n[e].labels).sort().join("")]=e}));var i={};function l(o,s){if(!(this instanceof l))return new l(o,s);if(s&&s in t&&(s=null),s&&!(s in n))throw new Error("Unknown model: "+s);var u,h;if(null==o)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(o instanceof l)this.model=o.model,this.color=o.color.slice(),this.valpha=o.valpha;else if("string"==typeof o){var f=e.get(o);if(null===f)throw new Error("Unable to parse color from string: "+o);this.model=f.model,this.color=f.value.slice(0,h=n[this.model].channels),this.valpha="number"==typeof f.value[h]?f.value[h]:1}else if(o.length){this.model=s||"rgb";var d=r.call(o,0,h=n[this.model].channels);this.color=c(d,h),this.valpha="number"==typeof o[h]?o[h]:1}else if("number"==typeof o)o&=16777215,this.model="rgb",this.color=[o>>16&255,o>>8&255,255&o],this.valpha=1;else{this.valpha=1;var g=Object.keys(o);"alpha"in o&&(g.splice(g.indexOf("alpha"),1),this.valpha="number"==typeof o.alpha?o.alpha:0);var b=g.sort().join("");if(!(b in a))throw new Error("Unable to parse color from object: "+JSON.stringify(o));this.model=a[b];var v=n[this.model].labels,p=[];for(u=0;u<v.length;u++)p.push(o[v[u]]);this.color=c(p)}if(i[this.model])for(h=n[this.model].channels,u=0;u<h;u++){var m=i[this.model][u];m&&(this.color[u]=m(this.color[u]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function o(e,n,r){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(i[e]||(i[e]=[]))[n]=r})),e=e[0],function(t){var a;return arguments.length?(r&&(t=r(t)),(a=this[e]()).color[n]=t,a):(a=this[e]().color[n],r&&(a=r(a)),a)}}function s(e){return function(n){return Math.max(0,Math.min(e,n))}}function c(e,n){for(var r=0;r<n;r++)"number"!=typeof e[r]&&(e[r]=0);return e}l.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(n){var r=this.model in e.to?this:this.rgb(),t=1===(r=r.round("number"==typeof n?n:1)).valpha?r.color:r.color.concat(this.valpha);return e.to[r.model](t)},percentString:function(n){var r=this.rgb().round("number"==typeof n?n:1),t=1===r.valpha?r.color:r.color.concat(this.valpha);return e.to.rgb.percent(t)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},r=n[this.model].channels,t=n[this.model].labels,a=0;a<r;a++)e[t[a]]=this.color[a];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new l(this.color.map(function(e){return function(n){return function(e,n){return Number(e.toFixed(n))}(n,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new l(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:o("rgb",0,s(255)),green:o("rgb",1,s(255)),blue:o("rgb",2,s(255)),hue:o(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:o("hsl",1,s(100)),lightness:o("hsl",2,s(100)),saturationv:o("hsv",1,s(100)),value:o("hsv",2,s(100)),chroma:o("hcg",1,s(100)),gray:o("hcg",2,s(100)),white:o("hwb",1,s(100)),wblack:o("hwb",2,s(100)),cyan:o("cmyk",0,s(100)),magenta:o("cmyk",1,s(100)),yellow:o("cmyk",2,s(100)),black:o("cmyk",3,s(100)),x:o("xyz",0,s(100)),y:o("xyz",1,s(100)),z:o("xyz",2,s(100)),l:o("lab",0,s(100)),a:o("lab",1),b:o("lab",2),keyword:function(e){return arguments.length?new l(e):n[this.model].keyword(this.color)},hex:function(n){return arguments.length?new l(n):e.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,n=[],r=0;r<e.length;r++){var t=e[r]/255;n[r]=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast:function(e){var n=this.luminosity(),r=e.luminosity();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},level:function(e){var n=this.contrast(e);return n>=7.1?"AAA":n>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),n=0;n<3;n++)e.color[n]=255-e.color[n];return e},lighten:function(e){var n=this.hsl();return n.color[2]+=n.color[2]*e,n},darken:function(e){var n=this.hsl();return n.color[2]-=n.color[2]*e,n},saturate:function(e){var n=this.hsl();return n.color[1]+=n.color[1]*e,n},desaturate:function(e){var n=this.hsl();return n.color[1]-=n.color[1]*e,n},whiten:function(e){var n=this.hwb();return n.color[1]+=n.color[1]*e,n},blacken:function(e){var n=this.hwb();return n.color[2]+=n.color[2]*e,n},grayscale:function(){var e=this.rgb().color,n=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(n,n,n)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var n=this.hsl(),r=n.color[0];return n.color[0]=r=(r=(r+e)%360)<0?360+r:r,n},mix:function(e,n){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var r=e.rgb(),t=this.rgb(),a=void 0===n?.5:n,i=2*a-1,o=r.alpha()-t.alpha(),s=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,c=1-s;return l.rgb(s*r.red()+c*t.red(),s*r.green()+c*t.green(),s*r.blue()+c*t.blue(),r.alpha()*a+t.alpha()*(1-a))}},Object.keys(n).forEach((function(e){if(-1===t.indexOf(e)){var a=n[e].channels;l.prototype[e]=function(){if(this.model===e)return new l(this);if(arguments.length)return new l(arguments,e);var r,t="number"==typeof arguments[a]?a:this.valpha;return new l((r=n[this.model][e].raw(this.color),Array.isArray(r)?r:[r]).concat(t),e)},l[e]=function(n){return"number"==typeof n&&(n=c(r.call(arguments),a)),new l(n,e)}}})),M=l}(),g();const z=[{id:1,height:400,width:100,x:10,y:10,drop:20},{id:2,height:356,width:100,x:120,y:32,drop:20},{id:3,height:312,width:100,x:230,y:54,drop:20},{id:4,height:268,width:100,x:340,y:76,drop:20},{id:5,height:224,width:100,x:450,y:98,drop:20}].map((()=>0)),A={bada55:"#bada55",navy:"#001f3f",blue:"#0074d9",aqua:"#7fdbff",teal:"#39cccc",olive:"#3d9970",green:"#2ecc40",lime:"#01ff70",yellow:"#ffdc00",orange:"#ff851b",red:"#ff4136",maroon:"#85144b",fuchsia:"#f012be",purple:"#b10dc9",black:"#111111",gray:"#aaaaaa",silver:"#dddddd"},q={slate:"#708090",slate4:"#4e5964",white:"#ffffff"},L=Object.keys(A),F=e=>!("isConnected"in e)||e.isConnected,S=(()=>{let e;return(...n)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let n of e.keys())e.set(n,e.get(n).filter(F))})(...n)}),2e3)}})(),E=e=>"function"==typeof e?e():e,N="proto-tinker-wc::app-data",I=(()=>{const e=((e,n=(e,n)=>e!==n)=>{const r=E(e);let t=new Map(Object.entries(r??{}));const a={dispose:[],get:[],set:[],reset:[]},i=()=>{t=new Map(Object.entries(E(e)??{})),a.reset.forEach((e=>e()))},l=e=>(a.get.forEach((n=>n(e))),t.get(e)),o=(e,r)=>{const i=t.get(e);n(r,i,e)&&(t.set(e,r),a.set.forEach((n=>n(e,r,i))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(e,n)=>l(n),ownKeys:()=>Array.from(t.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,n)=>t.has(n),set:(e,n,r)=>(o(n,r),!0)}),c=(e,n)=>(a[e].push(n),()=>{((e,n)=>{const r=e.indexOf(n);r>=0&&(e[r]=e[e.length-1],e.length--)})(a[e],n)});return{state:s,get:l,set:o,on:c,onChange:(n,r)=>{const t=c("set",((e,t)=>{e===n&&r(t)})),a=c("reset",(()=>r(E(e)[n])));return()=>{t(),a()}},use:(...e)=>{const n=e.reduce(((e,n)=>(n.set&&e.push(c("set",n.set)),n.get&&e.push(c("get",n.get)),n.reset&&e.push(c("reset",n.reset)),n.dispose&&e.push(c("dispose",n.dispose)),e)),[]);return()=>n.forEach((e=>e()))},dispose:()=>{a.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const n=t.get(e);a.set.forEach((r=>r(e,n,n)))}}})({count:0,pick:"bada55",values:[...z]},void 0);return e.use((()=>{if("function"!=typeof n)return{};const e=new Map;return{dispose:()=>e.clear(),get:r=>{const t=n();t&&((e,n,r)=>{const t=e.get(n);t?t.includes(r)||t.push(r):e.set(n,[r])})(e,r,t)},set:n=>{const t=e.get(n);t&&e.set(n,t.filter(r)),S(e)},reset:()=>{e.forEach((e=>e.forEach(r))),S(e)}}})()),e})(),{state:$}=I,U=()=>{const{count:e,pick:n,values:r}=$;(e=>{const n=JSON.stringify(e);localStorage.setItem(N,n)})({count:e,pick:n,values:r})},B={initApp:()=>{const e=(()=>{const e=localStorage.getItem(N);return e?JSON.parse(e):void 0})();if(e){const{count:n,pick:r,values:t}=e;$.count=n,$.pick=r,$.values=t}},refresh:()=>{const e=z.map((()=>Math.floor(100*Math.random())));$.count=$.count+1,$.values=e,U()},reset:()=>{$.count=0,$.values=[...z],U()},updatePick:e=>{$.pick=e,U()}},H=n=>{const{actions:r,state:t}=n,{pick:i}=t;return e("div",{id:"toolbar",class:"flex flex-wrap",role:"radiogroup"},L.map((n=>{const t=(e=>A[e]||q[e])(n),l=i===n;return e("div",{"aria-label":n,"aria-checked":l?"true":"false",role:"radio",onClick:()=>{r.updatePick(n)}},e(a,{hex:t,selected:l,label:n}))})))},J=n=>{const r=n.hex||"currentColor",t=n.size||24;return e("svg",{class:n.class,width:t,height:t,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"chevron-double-left"),e("g",{fill:r},e("path",{d:"M18.41,7.41L17,6L11,12L17,18L18.41,16.59L13.83,12L18.41,7.41M12.41,7.41L11,6L5,12L11,18L12.41,16.59L7.83,12L12.41,7.41Z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},T=n=>{const r=n.hex||"currentColor",t=n.size||24;return e("svg",{class:n.class,width:t,height:t,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"close"),e("g",{fill:r},e("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},P=n=>{const r=n.hex||"currentColor",t=n.size||24;return e("svg",{class:n.class,width:t,height:t,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"refresh"),e("g",{fill:r},e("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99\n 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65\n 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35\n 2.35z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},R=n=>{const{actions:r,state:t}=n,{count:a}=t;return e("div",{class:"mb-10px mt-3 flex items-center"},e("button",{"aria-label":"Refresh",class:"ds1-button data-button bg-clrs-blue",onClick:()=>{r.refresh()}},e(P,{label:"Refresh"})),e("button",{"aria-label":"Reset",class:"ds1-button data-button bg-clrs-red",onClick:()=>{r.reset()}},e(T,{label:"Reset"})),e("span",{class:"flex items-center"},e(J,{size:28}),e("span",{class:"italic"},"click a button... ",e("sup",null,a))))},D=()=>e("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","4.1.9"),Z=n=>{const{state:r}=n,{values:t,pick:a,count:i}=r;return e("div",{class:"flex"},e("div",{class:"flex flex-col"},e("div",{class:"flex"},e("span",{class:"mr-10px font-bold"},"color:"),e("span",{class:"italic text-clrs-slate4"},a)),e("div",{class:"mt-5px flex"},e("span",{class:"mr-10px font-bold"},"sample:"),e("span",{class:"italic text-clrs-slate4"},`${i>0?t:"..."}`))),e(D,null))},K=n=>{const r=n.hex||"currentColor",t=n.size||24;return e("svg",{class:n.class,width:t,height:t,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"fingerprint"),e("g",{fill:r},e("path",{d:"M17.81,4.47C17.73,4.47 17.65,4.45 17.58,4.41C15.66,3.42 14,3\n 12,3C10.03,3 8.15,3.47 6.44,4.41C6.2,4.54 5.9,4.45 5.76,4.21C5.63,3.97\n 5.72,3.66 5.96,3.53C7.82,2.5 9.86,2 12,2C14.14,2 16,2.47\n 18.04,3.5C18.29,3.65 18.38,3.95 18.25,4.19C18.16,4.37 18,4.47\n 17.81,4.47M3.5,9.72C3.4,9.72 3.3,9.69 3.21,9.63C3,9.47 2.93,9.16\n 3.09,8.93C4.08,7.53 5.34,6.43 6.84,5.66C10,4.04 14,4.03\n 17.15,5.65C18.65,6.42 19.91,7.5 20.9,8.9C21.06,9.12 21,9.44\n 20.78,9.6C20.55,9.76 20.24,9.71 20.08,9.5C19.18,8.22 18.04,7.23\n 16.69,6.54C13.82,5.07 10.15,5.07 7.29,6.55C5.93,7.25 4.79,8.25\n 3.89,9.5C3.81,9.65 3.66,9.72 3.5,9.72M9.75,21.79C9.62,21.79 9.5,21.74\n 9.4,21.64C8.53,20.77 8.06,20.21 7.39,19C6.7,17.77 6.34,16.27\n 6.34,14.66C6.34,11.69 8.88,9.27 12,9.27C15.12,9.27 17.66,11.69\n 17.66,14.66A0.5,0.5 0 0,1 17.16,15.16A0.5,0.5 0 0,1\n 16.66,14.66C16.66,12.24 14.57,10.27 12,10.27C9.43,10.27 7.34,12.24\n 7.34,14.66C7.34,16.1 7.66,17.43 8.27,18.5C8.91,19.66 9.35,20.15\n 10.12,20.93C10.31,21.13 10.31,21.44 10.12,21.64C10,21.74 9.88,21.79\n 9.75,21.79M16.92,19.94C15.73,19.94 14.68,19.64 13.82,19.05C12.33,18.04\n 11.44,16.4 11.44,14.66A0.5,0.5 0 0,1 11.94,14.16A0.5,0.5 0 0,1\n 12.44,14.66C12.44,16.07 13.16,17.4 14.38,18.22C15.09,18.7 15.92,18.93\n 16.92,18.93C17.16,18.93 17.56,18.9 17.96,18.83C18.23,18.78 18.5,18.96\n 18.54,19.24C18.59,19.5 18.41,19.77 18.13,19.82C17.56,19.93 17.06,19.94\n 16.92,19.94M14.91,22C14.87,22 14.82,22 14.78,22C13.19,21.54 12.15,20.95\n 11.06,19.88C9.66,18.5 8.89,16.64 8.89,14.66C8.89,13.04 10.27,11.72\n 11.97,11.72C13.67,11.72 15.05,13.04 15.05,14.66C15.05,15.73 16,16.6\n 17.13,16.6C18.28,16.6 19.21,15.73 19.21,14.66C19.21,10.89 15.96,7.83\n 11.96,7.83C9.12,7.83 6.5,9.41 5.35,11.86C4.96,12.67 4.76,13.62\n 4.76,14.66C4.76,15.44 4.83,16.67 5.43,18.27C5.53,18.53 5.4,18.82\n 5.14,18.91C4.88,19 4.59,18.87 4.5,18.62C4,17.31 3.77,16\n 3.77,14.66C3.77,13.46 4,12.37 4.45,11.42C5.78,8.63 8.73,6.82\n 11.96,6.82C16.5,6.82 20.21,10.33 20.21,14.65C20.21,16.27 18.83,17.59\n 17.13,17.59C15.43,17.59 14.05,16.27 14.05,14.65C14.05,13.58 13.12,12.71\n 11.97,12.71C10.82,12.71 9.89,13.58 9.89,14.65C9.89,16.36 10.55,17.96\n 11.76,19.16C12.71,20.1 13.62,20.62 15.03,21C15.3,21.08 15.45,21.36\n 15.38,21.62C15.33,21.85 15.12,22 14.91,22Z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},V="eswat2",_=()=>e("a",{class:"absolute right-8 top-8 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":V,target:"blank",title:V},e(K,{label:"eswat2"})),G=n=>e("h1",{class:"mb-11 ml-0 mr-0 mt-11 text-center text-6xl font-thin uppercase text-clrs-red"},n.label),Q=class{constructor(e){t(this,e),this.tag="proto-tinker"}componentDidLoad(){B.initApp()}render(){return e("div",{key:"8ce0faa12c39b5b7ebc87c2f8d00dade936e3ded",id:"app",class:"ds1-main relative"},e(G,{key:"d1a5aba6e4221c2f233f8675a4d5cd81aab4d93d",label:"tinker wc"}),e(_,{key:"919ca01768ea309609ec6be67fede120434d723e"}),e(R,{key:"e8220f685b6b44e3d7ccd1bf644d3f98219d7310",actions:B,state:$}),e(H,{key:"463901312bdd5ee72715de3e2fc47ad364902f40",actions:B,state:$}),e("hr",{key:"35ba2812a3b068b21b5252c5f07d0b5dc2f18527",class:"ml-0 mr-0"}),e(Z,{key:"df047e0968a8267a031b87fd733c454911771fe0",state:$}))}};Q.style="/*! tailwindcss v4.1.9 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n :root,\n :host {\n --font-sans:\n ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n --spacing: 0.25rem;\n --text-xs: 0.75rem;\n --text-xs--line-height: calc(1 / 0.75);\n --text-6xl: 3.75rem;\n --text-6xl--line-height: 1;\n --font-weight-thin: 100;\n --font-weight-bold: 700;\n }\n}\n@layer utilities {\n .absolute {\n position: absolute;\n }\n .relative {\n position: relative;\n }\n .top-8 {\n top: calc(var(--spacing) * 8);\n }\n .right-8 {\n right: calc(var(--spacing) * 8);\n }\n .mt-3 {\n margin-top: calc(var(--spacing) * 3);\n }\n .mt-5px {\n margin-top: 5px;\n }\n .mt-11 {\n margin-top: calc(var(--spacing) * 11);\n }\n .mr-0 {\n margin-right: calc(var(--spacing) * 0);\n }\n .mr-10px {\n margin-right: 10px;\n }\n .mb-10px {\n margin-bottom: 10px;\n }\n .mb-11 {\n margin-bottom: calc(var(--spacing) * 11);\n }\n .ml-0 {\n margin-left: calc(var(--spacing) * 0);\n }\n .ml-auto {\n margin-left: auto;\n }\n .flex {\n display: flex;\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-wrap {\n flex-wrap: wrap;\n }\n .items-center {\n align-items: center;\n }\n .border-solid {\n --tw-border-style: solid;\n border-style: solid;\n }\n .border-clrs-slate {\n border-color: var(--clrs-slate, #708090);\n }\n .bg-clrs-blue {\n background-color: var(--clrs-blue, #0074d9);\n }\n .bg-clrs-red {\n background-color: var(--clrs-red, #ff4136);\n }\n .p-4 {\n padding: calc(var(--spacing) * 4);\n }\n .text-center {\n text-align: center;\n }\n .align-top {\n vertical-align: top;\n }\n .font-sans {\n font-family: var(--font-sans);\n }\n .text-6xl {\n font-size: var(--text-6xl);\n line-height: var(--tw-leading, var(--text-6xl--line-height));\n }\n .text-xs {\n font-size: var(--text-xs);\n line-height: var(--tw-leading, var(--text-xs--line-height));\n }\n .font-bold {\n --tw-font-weight: var(--font-weight-bold);\n font-weight: var(--font-weight-bold);\n }\n .font-thin {\n --tw-font-weight: var(--font-weight-thin);\n font-weight: var(--font-weight-thin);\n }\n .text-clrs-gray {\n color: var(--clrs-gray, #aaaaaa);\n }\n .text-clrs-navy {\n color: var(--clrs-navy, #001f3f);\n }\n .text-clrs-red {\n color: var(--clrs-red, #ff4136);\n }\n .text-clrs-slate4 {\n color: var(--clrs-slate4, #4e5964);\n }\n .text-clrs-white {\n color: var(--clrs-white, #ffffff);\n }\n .uppercase {\n text-transform: uppercase;\n }\n .italic {\n font-style: italic;\n }\n .shadow {\n --tw-shadow:\n 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)),\n 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow:\n var(--tw-inset-shadow), var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n .hover\\:text-clrs-navy {\n &:hover {\n @media (hover: hover) {\n color: var(--clrs-navy, #001f3f);\n }\n }\n }\n .active\\:bg-clrs-gray {\n &:active {\n background-color: var(--clrs-gray, #aaaaaa);\n }\n }\n}\n@layer components {\n .ds1-main {\n display: flex;\n flex-direction: column;\n padding: calc(var(--spacing) * 4);\n font-family: var(--font-sans);\n color: var(--clrs-navy, #001f3f);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .ds1-button {\n display: flex;\n align-items: center;\n --tw-border-style: solid;\n border-style: solid;\n border-color: var(--clrs-slate, #708090);\n color: var(--clrs-white, #ffffff);\n &:active {\n background-color: var(--clrs-gray, #aaaaaa);\n }\n &:active {\n color: var(--clrs-navy, #001f3f);\n }\n }\n}\n.data-button {\n border-radius: 5px;\n border-width: 1px;\n padding: 5px;\n margin: 0px;\n margin-right: 5px;\n cursor: pointer;\n}\n";export{Q as proto_tinker}
|