proto-tinker-wc 0.0.412 → 0.0.413

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.
@@ -107,6 +107,7 @@ function queryNonceMetaTagContent(doc) {
107
107
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
108
108
  const h = (nodeName, vnodeData, ...children) => {
109
109
  let child = null;
110
+ let key = null;
110
111
  let simple = false;
111
112
  let lastSimple = false;
112
113
  const vNodeChildren = [];
@@ -134,6 +135,9 @@ const h = (nodeName, vnodeData, ...children) => {
134
135
  };
135
136
  walk(children);
136
137
  if (vnodeData) {
138
+ if (vnodeData.key) {
139
+ key = vnodeData.key;
140
+ }
137
141
  // normalize class / className attributes
138
142
  {
139
143
  const classData = vnodeData.className || vnodeData.class;
@@ -156,6 +160,9 @@ const h = (nodeName, vnodeData, ...children) => {
156
160
  if (vNodeChildren.length > 0) {
157
161
  vnode.$children$ = vNodeChildren;
158
162
  }
163
+ {
164
+ vnode.$key$ = key;
165
+ }
159
166
  return vnode;
160
167
  };
161
168
  /**
@@ -177,6 +184,9 @@ const newVNode = (tag, text) => {
177
184
  {
178
185
  vnode.$attrs$ = null;
179
186
  }
187
+ {
188
+ vnode.$key$ = null;
189
+ }
180
190
  return vnode;
181
191
  };
182
192
  const Host = {};
@@ -402,6 +412,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
402
412
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
403
413
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
404
414
  }
415
+ else if (memberName === 'key')
416
+ ;
405
417
  else if ((!isProp ) &&
406
418
  memberName[0] === 'o' &&
407
419
  memberName[1] === 'n') {
@@ -713,6 +725,8 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
713
725
  const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
714
726
  let oldStartIdx = 0;
715
727
  let newStartIdx = 0;
728
+ let idxInOld = 0;
729
+ let i = 0;
716
730
  let oldEndIdx = oldCh.length - 1;
717
731
  let oldStartVnode = oldCh[0];
718
732
  let oldEndVnode = oldCh[oldEndIdx];
@@ -720,6 +734,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = fal
720
734
  let newStartVnode = newCh[0];
721
735
  let newEndVnode = newCh[newEndIdx];
722
736
  let node;
737
+ let elmToMove;
723
738
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
724
739
  if (oldStartVnode == null) {
725
740
  // VNode might have been moved left
@@ -786,7 +801,41 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = fal
786
801
  newStartVnode = newCh[++newStartIdx];
787
802
  }
788
803
  else {
804
+ // Here we do some checks to match up old and new nodes based on the
805
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
806
+ // in the JSX for a DOM element in the implementation of a Stencil
807
+ // component.
808
+ //
809
+ // First we check to see if there are any nodes in the array of old
810
+ // children which have the same key as the first node in the new
811
+ // children.
812
+ idxInOld = -1;
789
813
  {
814
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
815
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
816
+ idxInOld = i;
817
+ break;
818
+ }
819
+ }
820
+ }
821
+ if (idxInOld >= 0) {
822
+ // We found a node in the old children which matches up with the first
823
+ // node in the new children! So let's deal with that
824
+ elmToMove = oldCh[idxInOld];
825
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
826
+ // the tag doesn't match so we'll need a new DOM element
827
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
828
+ }
829
+ else {
830
+ patch(elmToMove, newStartVnode, isInitialRender);
831
+ // invalidate the matching old node so that we won't try to update it
832
+ // again later on
833
+ oldCh[idxInOld] = undefined;
834
+ node = elmToMove.$elm$;
835
+ }
836
+ newStartVnode = newCh[++newStartIdx];
837
+ }
838
+ else {
790
839
  // We either didn't find an element in the old children that matches
791
840
  // the key of the first new child OR the build is not using `key`
792
841
  // attributes at all. In either case we need to create a new element
@@ -836,6 +885,14 @@ const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
836
885
  // compare if two vnode to see if they're "technically" the same
837
886
  // need to have the same element tag, and same key to be the same
838
887
  if (leftVNode.$tag$ === rightVNode.$tag$) {
888
+ // this will be set if JSX tags in the build have `key` attrs set on them
889
+ // we only want to check this if we're not on the first render since on
890
+ // first render `leftVNode.$key$` will always be `null`, so we can be led
891
+ // astray and, for instance, accidentally delete a DOM node that we want to
892
+ // keep around.
893
+ if (!isInitialRender) {
894
+ return leftVNode.$key$ === rightVNode.$key$;
895
+ }
839
896
  return true;
840
897
  }
841
898
  return false;
@@ -1621,8 +1678,19 @@ const setNonce = (nonce) => (plt.$nonce$ = nonce);
1621
1678
  /**
1622
1679
  * A WeakMap mapping runtime component references to their corresponding host reference
1623
1680
  * instances.
1681
+ *
1682
+ * **Note**: If we're in an HMR context we need to store a reference to this
1683
+ * value on `window` in order to maintain the mapping of {@link d.RuntimeRef}
1684
+ * to {@link d.HostRef} across HMR updates.
1685
+ *
1686
+ * This is necessary because when HMR updates for a component are processed by
1687
+ * the browser-side dev server client the JS bundle for that component is
1688
+ * re-fetched. Since the module containing {@link hostRefs} is included in
1689
+ * that bundle, if we do not store a reference to it the new iteration of the
1690
+ * component will not have access to the previous hostRef map, leading to a
1691
+ * bug where the new version of the component cannot properly initialize.
1624
1692
  */
1625
- const hostRefs = /*@__PURE__*/ new WeakMap();
1693
+ const hostRefs = new WeakMap();
1626
1694
  /**
1627
1695
  * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
1628
1696
  *
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9c3ee45f.js');
5
+ const index = require('./index-fb958656.js');
6
6
 
7
7
  const defineCustomElements = (win, options) => {
8
8
  if (typeof window === 'undefined') return undefined;
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9c3ee45f.js');
5
+ const index = require('./index-fb958656.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v4.11.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.12.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchBrowser = () => {
11
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-tinker-wc.cjs.js', document.baseURI).href));
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9c3ee45f.js');
5
+ const index = require('./index-fb958656.js');
6
6
 
7
7
  const Radio = props => {
8
8
  const hex = props.hex || 'currentColor';
@@ -2560,7 +2560,7 @@ const ProtoTinker = class {
2560
2560
  actions.initApp();
2561
2561
  }
2562
2562
  render() {
2563
- return (index.h("div", { id: "app", class: "ds1-main" }, index.h(Header, { label: "tinker wc" }), index.h(Eswat2Io, null), index.h(DataSource, { actions: actions, state: state }), index.h(ColorPicker, { actions: actions, state: state }), index.h("hr", { class: "ml-0 mr-0" }), index.h(DataValues, { state: state })));
2563
+ return (index.h("div", { key: '42b12329731d1f7a60a9908ece49d5a0117c3d51', id: "app", class: "ds1-main" }, index.h(Header, { key: 'd9b37d9fe1cf7fbdab5b62d31a355189a4d310cb', label: "tinker wc" }), index.h(Eswat2Io, { key: '3dbc75dd83adb932d5926d86e05d78f8dcf1c514' }), index.h(DataSource, { key: 'a7a68754deab9474644849a939613013d041965e', actions: actions, state: state }), index.h(ColorPicker, { key: 'd604b7714be5212446aaa26a92592ab2c9374654', actions: actions, state: state }), index.h("hr", { key: '36393479c18e487538ff1ad49b0c7916c22ef706', class: "ml-0 mr-0" }), index.h(DataValues, { key: '416dc2ef76326017369a89e0c85a687eaa7582d5', state: state })));
2564
2564
  }
2565
2565
  };
2566
2566
  ProtoTinker.style = ProtoTinkerStyle0;
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.11.0",
7
+ "version": "4.12.0",
8
8
  "typescriptVersion": "5.3.3"
9
9
  },
10
10
  "collections": [],
@@ -13,7 +13,7 @@ export class ProtoTinker {
13
13
  actions.initApp();
14
14
  }
15
15
  render() {
16
- return (h("div", { id: "app", class: "ds1-main" }, h(Header, { label: "tinker wc" }), h(Eswat2Io, null), h(DataSource, { actions: actions, state: state }), h(ColorPicker, { actions: actions, state: state }), h("hr", { class: "ml-0 mr-0" }), h(DataValues, { state: state })));
16
+ return (h("div", { key: '42b12329731d1f7a60a9908ece49d5a0117c3d51', id: "app", class: "ds1-main" }, h(Header, { key: 'd9b37d9fe1cf7fbdab5b62d31a355189a4d310cb', label: "tinker wc" }), h(Eswat2Io, { key: '3dbc75dd83adb932d5926d86e05d78f8dcf1c514' }), h(DataSource, { key: 'a7a68754deab9474644849a939613013d041965e', actions: actions, state: state }), h(ColorPicker, { key: 'd604b7714be5212446aaa26a92592ab2c9374654', actions: actions, state: state }), h("hr", { key: '36393479c18e487538ff1ad49b0c7916c22ef706', class: "ml-0 mr-0" }), h(DataValues, { key: '416dc2ef76326017369a89e0c85a687eaa7582d5', state: state })));
17
17
  }
18
18
  static get is() { return "proto-tinker"; }
19
19
  static get encapsulation() { return "shadow"; }
@@ -2558,7 +2558,7 @@ const ProtoTinker$1 = /*@__PURE__*/ proxyCustomElement(class ProtoTinker extends
2558
2558
  actions.initApp();
2559
2559
  }
2560
2560
  render() {
2561
- return (h("div", { id: "app", class: "ds1-main" }, h(Header, { label: "tinker wc" }), h(Eswat2Io, null), h(DataSource, { actions: actions, state: state }), h(ColorPicker, { actions: actions, state: state }), h("hr", { class: "ml-0 mr-0" }), h(DataValues, { state: state })));
2561
+ return (h("div", { key: '42b12329731d1f7a60a9908ece49d5a0117c3d51', id: "app", class: "ds1-main" }, h(Header, { key: 'd9b37d9fe1cf7fbdab5b62d31a355189a4d310cb', label: "tinker wc" }), h(Eswat2Io, { key: '3dbc75dd83adb932d5926d86e05d78f8dcf1c514' }), h(DataSource, { key: 'a7a68754deab9474644849a939613013d041965e', actions: actions, state: state }), h(ColorPicker, { key: 'd604b7714be5212446aaa26a92592ab2c9374654', actions: actions, state: state }), h("hr", { key: '36393479c18e487538ff1ad49b0c7916c22ef706', class: "ml-0 mr-0" }), h(DataValues, { key: '416dc2ef76326017369a89e0c85a687eaa7582d5', state: state })));
2562
2562
  }
2563
2563
  static get style() { return ProtoTinkerStyle0; }
2564
2564
  }, [1, "proto-tinker", {
@@ -85,6 +85,7 @@ function queryNonceMetaTagContent(doc) {
85
85
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
86
86
  const h = (nodeName, vnodeData, ...children) => {
87
87
  let child = null;
88
+ let key = null;
88
89
  let simple = false;
89
90
  let lastSimple = false;
90
91
  const vNodeChildren = [];
@@ -112,6 +113,9 @@ const h = (nodeName, vnodeData, ...children) => {
112
113
  };
113
114
  walk(children);
114
115
  if (vnodeData) {
116
+ if (vnodeData.key) {
117
+ key = vnodeData.key;
118
+ }
115
119
  // normalize class / className attributes
116
120
  {
117
121
  const classData = vnodeData.className || vnodeData.class;
@@ -134,6 +138,9 @@ const h = (nodeName, vnodeData, ...children) => {
134
138
  if (vNodeChildren.length > 0) {
135
139
  vnode.$children$ = vNodeChildren;
136
140
  }
141
+ {
142
+ vnode.$key$ = key;
143
+ }
137
144
  return vnode;
138
145
  };
139
146
  /**
@@ -155,6 +162,9 @@ const newVNode = (tag, text) => {
155
162
  {
156
163
  vnode.$attrs$ = null;
157
164
  }
165
+ {
166
+ vnode.$key$ = null;
167
+ }
158
168
  return vnode;
159
169
  };
160
170
  const Host = {};
@@ -380,6 +390,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
380
390
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
381
391
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
382
392
  }
393
+ else if (memberName === 'key')
394
+ ;
383
395
  else if ((!isProp ) &&
384
396
  memberName[0] === 'o' &&
385
397
  memberName[1] === 'n') {
@@ -691,6 +703,8 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
691
703
  const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
692
704
  let oldStartIdx = 0;
693
705
  let newStartIdx = 0;
706
+ let idxInOld = 0;
707
+ let i = 0;
694
708
  let oldEndIdx = oldCh.length - 1;
695
709
  let oldStartVnode = oldCh[0];
696
710
  let oldEndVnode = oldCh[oldEndIdx];
@@ -698,6 +712,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = fal
698
712
  let newStartVnode = newCh[0];
699
713
  let newEndVnode = newCh[newEndIdx];
700
714
  let node;
715
+ let elmToMove;
701
716
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
702
717
  if (oldStartVnode == null) {
703
718
  // VNode might have been moved left
@@ -764,7 +779,41 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = fal
764
779
  newStartVnode = newCh[++newStartIdx];
765
780
  }
766
781
  else {
782
+ // Here we do some checks to match up old and new nodes based on the
783
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
784
+ // in the JSX for a DOM element in the implementation of a Stencil
785
+ // component.
786
+ //
787
+ // First we check to see if there are any nodes in the array of old
788
+ // children which have the same key as the first node in the new
789
+ // children.
790
+ idxInOld = -1;
767
791
  {
792
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
793
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
794
+ idxInOld = i;
795
+ break;
796
+ }
797
+ }
798
+ }
799
+ if (idxInOld >= 0) {
800
+ // We found a node in the old children which matches up with the first
801
+ // node in the new children! So let's deal with that
802
+ elmToMove = oldCh[idxInOld];
803
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
804
+ // the tag doesn't match so we'll need a new DOM element
805
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
806
+ }
807
+ else {
808
+ patch(elmToMove, newStartVnode, isInitialRender);
809
+ // invalidate the matching old node so that we won't try to update it
810
+ // again later on
811
+ oldCh[idxInOld] = undefined;
812
+ node = elmToMove.$elm$;
813
+ }
814
+ newStartVnode = newCh[++newStartIdx];
815
+ }
816
+ else {
768
817
  // We either didn't find an element in the old children that matches
769
818
  // the key of the first new child OR the build is not using `key`
770
819
  // attributes at all. In either case we need to create a new element
@@ -814,6 +863,14 @@ const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
814
863
  // compare if two vnode to see if they're "technically" the same
815
864
  // need to have the same element tag, and same key to be the same
816
865
  if (leftVNode.$tag$ === rightVNode.$tag$) {
866
+ // this will be set if JSX tags in the build have `key` attrs set on them
867
+ // we only want to check this if we're not on the first render since on
868
+ // first render `leftVNode.$key$` will always be `null`, so we can be led
869
+ // astray and, for instance, accidentally delete a DOM node that we want to
870
+ // keep around.
871
+ if (!isInitialRender) {
872
+ return leftVNode.$key$ === rightVNode.$key$;
873
+ }
817
874
  return true;
818
875
  }
819
876
  return false;
@@ -1599,8 +1656,19 @@ const setNonce = (nonce) => (plt.$nonce$ = nonce);
1599
1656
  /**
1600
1657
  * A WeakMap mapping runtime component references to their corresponding host reference
1601
1658
  * instances.
1659
+ *
1660
+ * **Note**: If we're in an HMR context we need to store a reference to this
1661
+ * value on `window` in order to maintain the mapping of {@link d.RuntimeRef}
1662
+ * to {@link d.HostRef} across HMR updates.
1663
+ *
1664
+ * This is necessary because when HMR updates for a component are processed by
1665
+ * the browser-side dev server client the JS bundle for that component is
1666
+ * re-fetched. Since the module containing {@link hostRefs} is included in
1667
+ * that bundle, if we do not store a reference to it the new iteration of the
1668
+ * component will not have access to the previous hostRef map, leading to a
1669
+ * bug where the new version of the component cannot properly initialize.
1602
1670
  */
1603
- const hostRefs = /*@__PURE__*/ new WeakMap();
1671
+ const hostRefs = new WeakMap();
1604
1672
  /**
1605
1673
  * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
1606
1674
  *
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-103deccc.js';
2
- export { s as setNonce } from './index-103deccc.js';
1
+ import { b as bootstrapLazy } from './index-b73046cf.js';
2
+ export { s as setNonce } from './index-b73046cf.js';
3
3
 
4
4
  const defineCustomElements = (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-103deccc.js';
2
- export { s as setNonce } from './index-103deccc.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-b73046cf.js';
2
+ export { s as setNonce } from './index-b73046cf.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v4.11.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.12.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchBrowser = () => {
8
8
  const importMeta = import.meta.url;
@@ -1,4 +1,4 @@
1
- import { h, g as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-103deccc.js';
1
+ import { h, g as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-b73046cf.js';
2
2
 
3
3
  const Radio = props => {
4
4
  const hex = props.hex || 'currentColor';
@@ -2556,7 +2556,7 @@ const ProtoTinker = class {
2556
2556
  actions.initApp();
2557
2557
  }
2558
2558
  render() {
2559
- return (h("div", { id: "app", class: "ds1-main" }, h(Header, { label: "tinker wc" }), h(Eswat2Io, null), h(DataSource, { actions: actions, state: state }), h(ColorPicker, { actions: actions, state: state }), h("hr", { class: "ml-0 mr-0" }), h(DataValues, { state: state })));
2559
+ return (h("div", { key: '42b12329731d1f7a60a9908ece49d5a0117c3d51', id: "app", class: "ds1-main" }, h(Header, { key: 'd9b37d9fe1cf7fbdab5b62d31a355189a4d310cb', label: "tinker wc" }), h(Eswat2Io, { key: '3dbc75dd83adb932d5926d86e05d78f8dcf1c514' }), h(DataSource, { key: 'a7a68754deab9474644849a939613013d041965e', actions: actions, state: state }), h(ColorPicker, { key: 'd604b7714be5212446aaa26a92592ab2c9374654', actions: actions, state: state }), h("hr", { key: '36393479c18e487538ff1ad49b0c7916c22ef706', class: "ml-0 mr-0" }), h(DataValues, { key: '416dc2ef76326017369a89e0c85a687eaa7582d5', state: state })));
2560
2560
  }
2561
2561
  };
2562
2562
  ProtoTinker.style = ProtoTinkerStyle0;
@@ -0,0 +1,2 @@
1
+ let e,n,t=!1,l=null,o=!1;const s="slot-fb{display:contents}slot-fb[hidden]{display:none}",i={},r=e=>"object"==(e=typeof e)||"function"===e;function c(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const u=(e,n,...t)=>{let l=null,o=null,s=!1,i=!1;const c=[],u=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!r(l))&&(l+=""),s&&i?c[c.length-1].t+=l:c.push(s?f(null,l):l),i=s)};if(u(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}if("function"==typeof e)return e(null===n?{}:n,c,d);const a=f(e,null);return a.l=n,c.length>0&&(a.o=c),a.i=o,a},f=(e,n)=>({u:0,v:e,t:n,p:null,o:null,l:null,i:null}),a={},d={forEach:(e,n)=>e.map(v).forEach(n),map:(e,n)=>e.map(v).map(n).map(y)},v=e=>({vattrs:e.l,vchildren:e.o,vkey:e.i,vname:e.h,vtag:e.v,vtext:e.t}),y=e=>{if("function"==typeof e.vtag){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),u(e.vtag,n,...e.vchildren||[])}const n=f(e.vtag,e.vtext);return n.l=e.vattrs,n.o=e.vchildren,n.i=e.vkey,n.h=e.vname,n},p=new WeakMap,h=e=>"sc-"+e.$,$=(e,n,t,l,o,s)=>{if(t!==l){let i=J(e,n),c=n.toLowerCase();if("class"===n){const n=e.classList,o=b(t),s=b(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===n);else if(i||"o"!==n[0]||"n"!==n[1]){const c=r(l);if((i||c&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?i=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!i||4&s||o)&&!c&&e.setAttribute(n,l=!0===l?"":l)}else if(n="-"===n[2]?n.slice(3):J(Z,c)?c.slice(2):c[2]+n.slice(3),t||l){const o=n.endsWith(w);n=n.replace(g,""),t&&ne.rel(e,n,t,o),l&&ne.ael(e,n,l,o)}}},m=/\s/,b=e=>e?e.split(m):[],w="Capture",g=RegExp(w+"$"),j=(e,n,t,l)=>{const o=11===n.p.nodeType&&n.p.host?n.p.host:n.p,s=e&&e.l||i,r=n.l||i;for(l in s)l in r||$(o,l,s[l],void 0,t,n.u);for(l in r)$(o,l,s[l],r[l],t,n.u)},S=(l,o,s)=>{const i=o.o[s];let r,c,u=0;if(null!==i.t)r=i.p=ee.createTextNode(i.t);else{if(t||(t="svg"===i.v),r=i.p=ee.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.v),t&&"foreignObject"===i.v&&(t=!1),j(null,i,t),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),i.o)for(u=0;u<i.o.length;++u)c=S(l,i,u),c&&r.appendChild(c);"svg"===i.v?t=!1:"foreignObject"===r.tagName&&(t=!0)}return r["s-hn"]=n,r},k=(e,t,l,o,s,i)=>{let r,c=e;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);s<=i;++s)o[s]&&(r=S(null,l,s),r&&(o[s].p=r,c.insertBefore(r,t)))},O=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.p;e&&e.remove()}}},M=(e,n,t=!1)=>e.v===n.v&&(!!t||e.i===n.i),C=(e,n,l=!1)=>{const o=n.p=e.p,s=e.o,i=n.o,r=n.v,c=n.t;null===c?(t="svg"===r||"foreignObject"!==r&&t,j(e,n,t),null!==s&&null!==i?((e,n,t,l,o=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=n.length-1,d=n[0],v=n[a],y=l.length-1,p=l[0],h=l[y];for(;r<=a&&c<=y;)if(null==d)d=n[++r];else if(null==v)v=n[--a];else if(null==p)p=l[++c];else if(null==h)h=l[--y];else if(M(d,p,o))C(d,p,o),d=n[++r],p=l[++c];else if(M(v,h,o))C(v,h,o),v=n[--a],h=l[--y];else if(M(d,h,o))C(d,h,o),e.insertBefore(d.p,v.p.nextSibling),d=n[++r],h=l[--y];else if(M(v,p,o))C(v,p,o),e.insertBefore(v.p,d.p),v=n[--a],p=l[++c];else{for(u=-1,f=r;f<=a;++f)if(n[f]&&null!==n[f].i&&n[f].i===p.i){u=f;break}u>=0?(i=n[u],i.v!==p.v?s=S(n&&n[c],t,u):(C(i,p,o),n[u]=void 0,s=i.p),p=l[++c]):(s=S(n&&n[c],t,c),p=l[++c]),s&&d.p.parentNode.insertBefore(s,d.p)}r>a?k(e,null==l[y+1]?null:l[y+1].p,t,l,c,y):c>y&&O(n,r,a)})(o,s,n,i,l):null!==i?(null!==e.t&&(o.textContent=""),k(o,null,n,i,0,i.length-1)):null!==s&&O(s,0,s.length-1),t&&"svg"===r&&(t=!1)):e.t!==c&&(o.data=c)},x=(e,n)=>{n&&!e.m&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.m=n)))},E=(e,n)=>{if(e.u|=16,!(4&e.u))return x(e,e.j),fe((()=>P(e,n)));e.u|=512},P=(e,n)=>{const t=e.S;return A(void 0,(()=>N(e,t,n)))},A=(e,n)=>L(e)?e.then(n):n(),L=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,N=async(e,n,t)=>{var l;const o=e.$hostElement$,i=o["s-rc"];t&&(e=>{const n=e.k,t=e.$hostElement$,l=n.u,o=((e,n)=>{var t;const l=h(n),o=Y.get(l);if(e=11===e.nodeType?e:ee,o)if("string"==typeof o){let i,r=p.get(e=e.head||e);if(r||p.set(e,r=new Set),!r.has(l)){{i=ee.createElement("style"),i.innerHTML=o;const n=null!==(t=ne.O)&&void 0!==t?t:c(ee);null!=n&&i.setAttribute("nonce",n),e.insertBefore(i,e.querySelector("link"))}4&n.u&&(i.innerHTML+=s),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"))})(e);R(e,n,o,t),i&&(i.map((e=>e())),o["s-rc"]=void 0);{const n=null!==(l=o["s-p"])&&void 0!==l?l:[],t=()=>U(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},R=(t,o,s,i)=>{try{l=o,o=o.render(),t.u&=-17,t.u|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.M||f(null,null),r=(e=>e&&e.v===a)(l)?l:u(null,null,l);if(n=s.tagName,o&&r.l)for(const e of Object.keys(r.l))s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.l[e]=s[e]);r.v=null,r.u|=4,t.M=r,r.p=i.p=s.shadowRoot||s,e=s["s-sc"],C(i,r,o)})(t,o,i)}catch(e){K(e,t.$hostElement$)}return l=null,null},T=()=>l,U=e=>{const n=e.$hostElement$,t=e.S,l=e.j;64&e.u||(e.u|=64,F(n),D(t,"componentDidLoad"),e.C(n),l||q()),e.m&&(e.m(),e.m=void 0),512&e.u&&ue((()=>E(e,!1))),e.u&=-517},W=e=>{{const n=B(e),t=n.$hostElement$.isConnected;return t&&2==(18&n.u)&&E(n,!1),t}},q=()=>{F(ee.documentElement),ue((()=>(e=>{const n=ne.ce("appload",{detail:{namespace:"proto-tinker-wc"}});return e.dispatchEvent(n),n})(Z)))},D=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){K(e)}},F=e=>e.classList.add("hydrated"),H=(e,n,t)=>{var l;const o=e.prototype;if(n.P){const s=Object.entries(n.P);if(s.map((([e,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(o,e,{get(){return((e,n)=>B(this).A.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=B(e),s=o.A.get(n),i=o.u,c=o.S;t=((e,n)=>null==e||r(e)?e:1&n?e+"":e)(t,l.P[n][0]),8&i&&void 0!==s||t===s||Number.isNaN(s)&&Number.isNaN(t)||(o.A.set(n,t),c&&2==(18&i)&&E(o,!1))})(this,e,t,n)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;o.attributeChangedCallback=function(e,l,s){ne.jmp((()=>{var i;const r=t.get(e);if(this.hasOwnProperty(r))s=this[r],delete this[r];else{if(o.hasOwnProperty(r)&&"number"==typeof this[r]&&this[r]==s)return;if(null==r){const t=B(this),o=null==t?void 0:t.u;if(o&&!(8&o)&&128&o&&s!==l){const o=t.S,r=null===(i=n.L)||void 0===i?void 0:i[e];null==r||r.forEach((n=>{null!=o[n]&&o[n].call(o,s,l,e)}))}return}}this[r]=(null!==s||"boolean"!=typeof this[r])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=n.L)&&void 0!==l?l:{}),...s.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},V=(e,n={})=>{var t;const l=[],o=n.exclude||[],i=Z.customElements,r=ee.head,u=r.querySelector("meta[charset]"),f=ee.createElement("style"),a=[];let d,v=!0;Object.assign(ne,n),ne.N=new URL(n.resourcesUrl||"./",ee.baseURI).href;let y=!1;if(e.map((e=>{e[1].map((n=>{const t={u:n[0],$:n[1],P:n[2],R:n[3]};4&t.u&&(y=!0),t.P=n[2];const s=t.$,r=class extends HTMLElement{constructor(e){super(e),I(e=this,t),1&t.u&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),v?a.push(this):ne.jmp((()=>(e=>{if(0==(1&ne.u)){const n=B(e),t=n.k,l=()=>{};if(1&n.u)(null==n?void 0:n.S)||(null==n?void 0:n.T)&&n.T.then((()=>{}));else{n.u|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){x(n,n.j=t);break}}t.P&&Object.entries(t.P).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t)=>{let l;if(0==(32&n.u)){n.u|=32;{if(l=X(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(H(l,t,2),l.isProxied=!0);const e=()=>{};n.u|=8;try{new l(n)}catch(e){K(e)}n.u&=-9,e()}if(l.style){let e=l.style;const n=h(t);if(!Y.has(n)){const l=()=>{};((e,n,t)=>{let l=Y.get(e);le&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,Y.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.j,s=()=>E(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,n,t)}l()}})(this)))}disconnectedCallback(){ne.jmp((()=>(async()=>{if(0==(1&ne.u)){const e=B(this);(null==e?void 0:e.S)||(null==e?void 0:e.T)&&e.T.then((()=>{}))}})()))}componentOnReady(){return B(this).T}};t.U=e[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,H(r,t,1)))}))})),y&&(f.innerHTML+=s),f.innerHTML+=l+"{visibility:hidden}.hydrated{visibility:inherit}",f.innerHTML.length){f.setAttribute("data-styles","");const e=null!==(t=ne.O)&&void 0!==t?t:c(ee);null!=e&&f.setAttribute("nonce",e),r.insertBefore(f,u?u.nextSibling:r.firstChild)}v=!1,a.length?a.map((e=>e.connectedCallback())):ne.jmp((()=>d=setTimeout(q,30)))},_=e=>ne.O=e,z=new WeakMap,B=e=>z.get(e),G=(e,n)=>z.set(n.S=e,n),I=(e,n)=>{const t={u:0,$hostElement$:e,k:n,A:new Map};return t.T=new Promise((e=>t.C=e)),e["s-p"]=[],e["s-rc"]=[],z.set(e,t)},J=(e,n)=>n in e,K=(e,n)=>(0,console.error)(e,n),Q=new Map,X=e=>{const n=e.$.replace(/-/g,"_"),t=e.U,l=Q.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(Q.set(t,e),e[n])),K)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Y=new Map,Z="undefined"!=typeof window?window:{},ee=Z.document||{head:{}},ne={u:0,N:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},te=e=>Promise.resolve(e),le=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),oe=[],se=[],ie=(e,n)=>t=>{e.push(t),o||(o=!0,n&&4&ne.u?ue(ce):ne.raf(ce))},re=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){K(e)}e.length=0},ce=()=>{re(oe),re(se),(o=oe.length>0)&&ne.raf(ce)},ue=e=>te().then(e),fe=ie(se,!0);export{V as b,W as f,T as g,u as h,te as p,G as r,_ as s}
@@ -1 +1 @@
1
- import{h as e,g as t,f as r,r as n}from"./p-d8b16e88.js";const a=t=>{const r=t.hex||"currentColor",n=t.selected||!1,a=t.size||24;return e("svg",{class:t.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.label||"radio")," ",e("g",{fill:r},e("path",n?{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={exports:{}},o={exports:{}},l=Array.prototype.concat,s=Array.prototype.slice,u=o.exports=function(e){for(var t=[],r=0,n=e.length;r<n;r++){var a=e[r];(i=a)&&"string"!=typeof i&&(i instanceof Array||Array.isArray(i)||i.length>=0&&(i.splice instanceof Function||Object.getOwnPropertyDescriptor(i,i.length-1)&&"String"!==i.constructor.name))?t=l.call(t,s.call(a)):t.push(a)}var i;return t};u.wrap=function(e){return function(){return e(u(arguments))}};var c={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]},h=o.exports,f=Object.hasOwnProperty,d=Object.create(null);for(var g in c)f.call(c,g)&&(d[c[g]]=g);var b=i.exports={to:{},get:{}};function p(e,t,r){return Math.min(Math.max(t,e),r)}function v(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}b.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=b.get.hsl(e),r="hsl";break;case"hwb":t=b.get.hwb(e),r="hwb";break;default:t=b.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},b.get.rgb=function(e){if(!e)return null;var t,r,n,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=t[2],t=t[1],r=0;r<3;r++){var i=2*r;a[r]=parseInt(t.slice(i,i+2),16)}n&&(a[3]=parseInt(n,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(n=(t=t[1])[3],r=0;r<3;r++)a[r]=parseInt(t[r]+t[r],16);n&&(a[3]=parseInt(n+n,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)a[r]=parseInt(t[r+1],0);t[4]&&(a[3]=t[5]?.01*parseFloat(t[4]):parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:f.call(c,t[1])?((a=c[t[1]])[3]=1,a):null:null;for(r=0;r<3;r++)a[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(a[3]=t[5]?.01*parseFloat(t[4]):parseFloat(t[4]))}for(r=0;r<3;r++)a[r]=p(a[r],0,255);return a[3]=p(a[3],0,1),a},b.get.hsl=function(e){if(!e)return null;var t=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(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,p(parseFloat(t[2]),0,100),p(parseFloat(t[3]),0,100),p(isNaN(r)?1:r,0,1)]}return null},b.get.hwb=function(e){if(!e)return null;var t=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(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,p(parseFloat(t[2]),0,100),p(parseFloat(t[3]),0,100),p(isNaN(r)?1:r,0,1)]}return null},b.to.hex=function(){var e=h(arguments);return"#"+v(e[0])+v(e[1])+v(e[2])+(e[3]<1?v(Math.round(255*e[3])):"")},b.to.rgb=function(){var e=h(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]+")"},b.to.rgb.percent=function(){var e=h(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},b.to.hsl=function(){var e=h(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},b.to.hwb=function(){var e=h(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},b.to.keyword=function(e){return d[e.slice(0,3)]};var w={exports:{}},m={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]},y={};for(var k in m)m.hasOwnProperty(k)&&(y[m[k]]=k);var M=w.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 x in M)if(M.hasOwnProperty(x)){if(!("channels"in M[x]))throw new Error("missing channels property: "+x);if(!("labels"in M[x]))throw new Error("missing channel labels property: "+x);if(M[x].labels.length!==M[x].channels)throw new Error("channel and label counts mismatch: "+x);var C=M[x].channels,j=M[x].labels;delete M[x].channels,delete M[x].labels,Object.defineProperty(M[x],"channels",{value:C}),Object.defineProperty(M[x],"labels",{value:j})}M.rgb.hsl=function(e){var t,r,n=e[0]/255,a=e[1]/255,i=e[2]/255,o=Math.min(n,a,i),l=Math.max(n,a,i),s=l-o;return l===o?t=0:n===l?t=(a-i)/s:a===l?t=2+(i-n)/s:i===l&&(t=4+(n-a)/s),(t=Math.min(60*t,360))<0&&(t+=360),r=(o+l)/2,[t,100*(l===o?0:r<=.5?s/(l+o):s/(2-l-o)),100*r]},M.rgb.hsv=function(e){var t,r,n,a,i,o=e[0]/255,l=e[1]/255,s=e[2]/255,u=Math.max(o,l,s),c=u-Math.min(o,l,s),h=function(e){return(u-e)/6/c+.5};return 0===c?a=i=0:(i=c/u,t=h(o),r=h(l),n=h(s),o===u?a=n-r:l===u?a=1/3+t-n:s===u&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*u]},M.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[M.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,n))*100,100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},M.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,a=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-a)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},M.rgb.keyword=function(e){var t=y[e];if(t)return t;var r,n,a,i=1/0;for(var o in m)if(m.hasOwnProperty(o)){var l=(n=e,a=m[o],Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)+Math.pow(n[2]-a[2],2));l<i&&(i=l,r=o)}return r},M.keyword.rgb=function(e){return m[e]},M.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},M.rgb.lab=function(e){var t=M.rgb.xyz(e),r=t[0],n=t[1],a=t[2];return n/=100,a/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},M.hsl.rgb=function(e){var t,r,n,a,i,o=e[0]/360,l=e[1]/100,s=e[2]/100;if(0===l)return[i=255*s,i,i];t=2*s-(r=s<.5?s*(1+l):s+l-s*l),a=[0,0,0];for(var u=0;u<3;u++)(n=o+1/3*-(u-1))<0&&n++,n>1&&n--,a[u]=255*(i=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t);return a},M.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,a=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,a*=i<=1?i:2-i,[t,100*(0===n?2*a/(i+a):2*r/(n+r)),(n+r)/2*100]},M.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,i=t-Math.floor(t),o=255*n*(1-r),l=255*n*(1-r*i),s=255*n*(1-r*(1-i));switch(n*=255,a){case 0:return[n,s,o];case 1:return[l,n,o];case 2:return[o,n,s];case 3:return[o,l,n];case 4:return[s,o,n];case 5:return[n,o,l]}},M.hsv.hsl=function(e){var t,r,n,a=e[0],i=e[1]/100,o=e[2]/100,l=Math.max(o,.01);return n=(2-i)*o,r=i*l,[a,100*(r=(r/=(t=(2-i)*l)<=1?t:2-t)||0),100*(n/=2)]},M.hwb.rgb=function(e){var t,r,n,a,i,o,l,s=e[0]/360,u=e[1]/100,c=e[2]/100,h=u+c;switch(h>1&&(u/=h,c/=h),n=6*s-(t=Math.floor(6*s)),0!=(1&t)&&(n=1-n),a=u+n*((r=1-c)-u),t){default:case 6:case 0:i=r,o=a,l=u;break;case 1:i=a,o=r,l=u;break;case 2:i=u,o=r,l=a;break;case 3:i=u,o=a,l=r;break;case 4:i=a,o=u,l=r;break;case 5:i=r,o=u,l=a}return[255*i,255*o,255*l]},M.cmyk.rgb=function(e){var t=e[1]/100,r=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-n)+n)),255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n))]},M.xyz.rgb=function(e){var t,r,n,a=e[0]/100,i=e[1]/100,o=e[2]/100;return r=-.9689*a+1.8758*i+.0415*o,n=.0557*a+-.204*i+1.057*o,t=(t=3.2406*a+-1.5372*i+-.4986*o)>.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,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},M.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},M.lab.xyz=function(e){var t,r,n;t=e[1]/500+(r=(e[0]+16)/116),n=r-e[2]/200;var a=Math.pow(r,3),i=Math.pow(t,3),o=Math.pow(n,3);return r=a>.008856?a:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},M.lab.lch=function(e){var t,r=e[0],n=e[1],a=e[2];return(t=360*Math.atan2(a,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+a*a),t]},M.lch.lab=function(e){var t,r=e[1];return t=e[2]/360*2*Math.PI,[e[0],r*Math.cos(t),r*Math.sin(t)]},M.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],a=1 in arguments?arguments[1]:M.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===a&&(i+=60),i},M.hsv.ansi16=function(e){return M.rgb.ansi16(M.hsv.rgb(e),e[2])},M.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},M.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},M.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},M.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},M.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},M.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,a=e[2]/255,i=Math.max(Math.max(r,n),a),o=Math.min(Math.min(r,n),a),l=i-o;return t=l<=0?0:i===r?(n-a)/l%6:i===n?2+(a-r)/l:4+(r-n)/l+4,t/=6,[360*(t%=1),100*l,100*(l<1?o/(1-l):0)]},M.hsl.hcg=function(e){var t,r=e[1]/100,n=e[2]/100,a=0;return(t=n<.5?2*r*n:2*r*(1-n))<1&&(a=(n-.5*t)/(1-t)),[e[0],100*t,100*a]},M.hsv.hcg=function(e){var t=e[2]/100,r=e[1]/100*t,n=0;return r<1&&(n=(t-r)/(1-r)),[e[0],100*r,100*n]},M.hcg.rgb=function(e){var t=e[1]/100,r=e[2]/100;if(0===t)return[255*r,255*r,255*r];var n,a=[0,0,0],i=e[0]/360%1*6,o=i%1,l=1-o;switch(Math.floor(i)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=l,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=l,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=l}return[255*(t*a[0]+(n=(1-t)*r)),255*(t*a[1]+n),255*(t*a[2]+n)]},M.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},M.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},M.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},M.hwb.hcg=function(e){var t=1-e[2]/100,r=t-e[1]/100,n=0;return r<1&&(n=(t-r)/(1-r)),[e[0],100*r,100*n]},M.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},M.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},M.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},M.gray.hsl=M.gray.hsv=function(e){return[0,0,e[0]]},M.gray.hwb=function(e){return[0,100,e[0]]},M.gray.cmyk=function(e){return[0,0,0,e[0]]},M.gray.lab=function(e){return[e[0],0,0]},M.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},M.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var O=w.exports;function z(e,t){return function(r){return t(e(r))}}function A(e,t){for(var r=[t[e].parent,e],n=O[t[e].parent][e],a=t[e].parent;t[a].parent;)r.unshift(t[a].parent),n=z(O[t[a].parent][a],n),a=t[a].parent;return n.conversion=r,n}var q=w.exports,L=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(O),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),a=Object.keys(O[n]),i=a.length,o=0;o<i;o++){var l=a[o],s=t[l];-1===s.distance&&(s.distance=t[n].distance+1,s.parent=n,r.unshift(l))}return t}(e),r={},n=Object.keys(t),a=n.length,i=0;i<a;i++){var o=n[i];null!==t[o].parent&&(r[o]=A(o,t))}return r},F={};Object.keys(q).forEach((function(e){F[e]={},Object.defineProperty(F[e],"channels",{value:q[e].channels}),Object.defineProperty(F[e],"labels",{value:q[e].labels});var t=L(e);Object.keys(t).forEach((function(r){var n=t[r];F[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,a=0;a<n;a++)r[a]=Math.round(r[a]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(n),F[e][r].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))}));var S=i.exports,E=F,N=[].slice,I=["keyword","gray","hex"],$={};Object.keys(E).forEach((function(e){$[N.call(E[e].labels).sort().join("")]=e}));var U={};function B(e,t){if(!(this instanceof B))return new B(e,t);if(t&&t in I&&(t=null),t&&!(t in E))throw new Error("Unknown model: "+t);var r,n;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof B)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var a=S.get(e);if(null===a)throw new Error("Unable to parse color from string: "+e);this.model=a.model,this.color=a.value.slice(0,n=E[this.model].channels),this.valpha="number"==typeof a.value[n]?a.value[n]:1}else if(e.length){this.model=t||"rgb";var i=N.call(e,0,n=E[this.model].channels);this.color=P(i,n),this.valpha="number"==typeof e[n]?e[n]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var l=o.sort().join("");if(!(l in $))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=$[l];var s=E[this.model].labels,u=[];for(r=0;r<s.length;r++)u.push(e[s[r]]);this.color=P(u)}if(U[this.model])for(n=E[this.model].channels,r=0;r<n;r++){var c=U[this.model][r];c&&(this.color[r]=c(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function H(e,t,r){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(U[e]||(U[e]=[]))[t]=r})),e=e[0],function(n){var a;return arguments.length?(r&&(n=r(n)),(a=this[e]()).color[t]=n,a):(a=this[e]().color[t],r&&(a=r(a)),a)}}function J(e){return function(t){return Math.max(0,Math.min(e,t))}}function P(e,t){for(var r=0;r<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}B.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in S.to?this:this.rgb(),r=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return S.to[t.model](r)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),r=1===t.valpha?t.color:t.color.concat(this.valpha);return S.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=E[this.model].channels,r=E[this.model].labels,n=0;n<t;n++)e[r[n]]=this.color[n];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 B(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new B(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:H("rgb",0,J(255)),green:H("rgb",1,J(255)),blue:H("rgb",2,J(255)),hue:H(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:H("hsl",1,J(100)),lightness:H("hsl",2,J(100)),saturationv:H("hsv",1,J(100)),value:H("hsv",2,J(100)),chroma:H("hcg",1,J(100)),gray:H("hcg",2,J(100)),white:H("hwb",1,J(100)),wblack:H("hwb",2,J(100)),cyan:H("cmyk",0,J(100)),magenta:H("cmyk",1,J(100)),yellow:H("cmyk",2,J(100)),black:H("cmyk",3,J(100)),x:H("xyz",0,J(100)),y:H("xyz",1,J(100)),z:H("xyz",2,J(100)),l:H("lab",0,J(100)),a:H("lab",1),b:H("lab",2),keyword:function(e){return arguments.length?new B(e):E[this.model].keyword(this.color)},hex:function(e){return arguments.length?new B(e):S.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,t=[],r=0;r<e.length;r++){var n=e[r]/255;t[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=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(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return B.rgb(t,t,t)},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 t=this.hsl(),r=t.color[0];return t.color[0]=r=(r=(r+e)%360)<0?360+r:r,t},mix:function(e,t){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(),n=this.rgb(),a=void 0===t?.5:t,i=2*a-1,o=r.alpha()-n.alpha(),l=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,s=1-l;return B.rgb(l*r.red()+s*n.red(),l*r.green()+s*n.green(),l*r.blue()+s*n.blue(),r.alpha()*a+n.alpha()*(1-a))}},Object.keys(E).forEach((function(e){if(-1===I.indexOf(e)){var t=E[e].channels;B.prototype[e]=function(){if(this.model===e)return new B(this);if(arguments.length)return new B(arguments,e);var r,n="number"==typeof arguments[t]?t:this.valpha;return new B((r=E[this.model][e].raw(this.color),Array.isArray(r)?r:[r]).concat(n),e)},B[e]=function(r){return"number"==typeof r&&(r=P(N.call(arguments),t)),new B(r,e)}}}));const R=[{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)),D={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"},T={slate:"#708090",slate4:"#4e5964",white:"#ffffff"},Z=Object.keys(D),K=e=>!("isConnected"in e)||e.isConnected,V=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(K))})(...t)}),2e3)}})(),_=e=>"function"==typeof e?e():e,G="proto-tinker-wc::app-data",Q=(()=>{const e=((e,t=((e,t)=>e!==t))=>{const r=_(e);let n=new Map(Object.entries(null!=r?r:{}));const a={dispose:[],get:[],set:[],reset:[]},i=()=>{var t;n=new Map(Object.entries(null!==(t=_(e))&&void 0!==t?t:{})),a.reset.forEach((e=>e()))},o=e=>(a.get.forEach((t=>t(e))),n.get(e)),l=(e,r)=>{const i=n.get(e);t(r,i,e)&&(n.set(e,r),a.set.forEach((t=>t(e,r,i))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(e,t)=>o(t),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>n.has(t),set:(e,t,r)=>(l(t,r),!0)}),u=(e,t)=>(a[e].push(t),()=>{((e,t)=>{const r=e.indexOf(t);r>=0&&(e[r]=e[e.length-1],e.length--)})(a[e],t)});return{state:s,get:o,set:l,on:u,onChange:(t,r)=>{const n=u("set",((e,n)=>{e===t&&r(n)})),a=u("reset",(()=>r(_(e)[t])));return()=>{n(),a()}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(u("set",t.set)),t.get&&e.push(u("get",t.get)),t.reset&&e.push(u("reset",t.reset)),t.dispose&&e.push(u("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{a.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const t=n.get(e);a.set.forEach((r=>r(e,t,t)))}}})({count:0,pick:"bada55",values:[...R]},void 0);return e.use((()=>{if("function"!=typeof t)return{};const e=new Map;return{dispose:()=>e.clear(),get:r=>{const n=t();n&&((e,t,r)=>{const n=e.get(t);n?n.includes(r)||n.push(r):e.set(t,[r])})(e,r,n)},set:t=>{const n=e.get(t);n&&e.set(t,n.filter(r)),V(e)},reset:()=>{e.forEach((e=>e.forEach(r))),V(e)}}})()),e})(),{state:W}=Q,X=()=>{const{count:e,pick:t,values:r}=W;(e=>{const t=JSON.stringify(e);localStorage.setItem(G,t)})({count:e,pick:t,values:r})},Y={initApp:()=>{const e=(()=>{const e=localStorage.getItem(G);return e?JSON.parse(e):void 0})();if(e){const{count:t,pick:r,values:n}=e;W.count=t,W.pick=r,W.values=n}},refresh:()=>{const e=R.map((()=>Math.floor(100*Math.random())));W.count=W.count+1,W.values=e,X()},reset:()=>{W.count=0,W.values=[...R],X()},updatePick:e=>{W.pick=e,X()}},ee=t=>{const{actions:r,state:n}=t,{pick:i}=n;return e("div",{id:"toolbar",class:"flex flex-wrap",role:"radiogroup"},Z.map((t=>{const n=(e=>D[e]||T[e])(t),o=i===t;return e("div",{"aria-label":t,"aria-checked":o?"true":"false",role:"radio",onClick:()=>{r.updatePick(t)}},e(a,{hex:n,selected:o,label:t}))})))},te=t=>{const r=t.hex||"currentColor",n=t.size||24;return e("svg",{class:t.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.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"}))},re=t=>{const r=t.hex||"currentColor",n=t.size||24;return e("svg",{class:t.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.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"}))},ne=t=>{const r=t.hex||"currentColor",n=t.size||24;return e("svg",{class:t.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.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"}))},ae=t=>{const{actions:r,state:n}=t,{count:a}=n;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(ne,{label:"Refresh"})),e("button",{"aria-label":"Reset",class:"ds1-button data-button bg-clrs-red",onClick:()=>{r.reset()}},e(re,{label:"Reset"})),e("span",{class:"flex items-center"},e(te,{size:28}),e("span",{class:"italic"},"click a button... ",e("sup",null,a))))},ie=()=>e("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.4.1"),oe=t=>{const{state:r}=t,{values:n,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?n:"..."}`))),e(ie,null))},le=t=>{const r=t.hex||"currentColor",n=t.size||24;return e("svg",{class:t.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.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"}))},se="eswat2",ue=()=>e("a",{class:"absolute right-8 top-8 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":se,target:"blank",title:se},e(le,{label:"eswat2"})),ce=t=>e("h1",{class:"mb-11 ml-0 mr-0 mt-11 text-center text-6xl font-thin uppercase text-clrs-red"},t.label),he=class{constructor(e){n(this,e),this.tag="proto-tinker"}componentDidLoad(){Y.initApp()}render(){return e("div",{id:"app",class:"ds1-main"},e(ce,{label:"tinker wc"}),e(ue,null),e(ae,{actions:Y,state:W}),e(ee,{actions:Y,state:W}),e("hr",{class:"ml-0 mr-0"}),e(oe,{state:W}))}};he.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{display:flex;flex-direction:column;padding:1rem;font-family:ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ds1-button{display:flex;align-items:center;border-style:solid;border-color:var(--clrs-slate, #708090);color:var(--clrs-white, #ffffff)}.ds1-button:active{background-color:var(--clrs-gray, #aaaaaa);color:var(--clrs-navy, #001f3f)}.absolute{position:absolute}.right-8{right:2rem}.top-8{top:2rem}.mb-10px{margin-bottom:10px}.mb-11{margin-bottom:2.75rem}.ml-0{margin-left:0px}.ml-auto{margin-left:auto}.mr-0{margin-right:0px}.mr-10px{margin-right:10px}.mt-11{margin-top:2.75rem}.mt-3{margin-top:0.75rem}.mt-5px{margin-top:5px}.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.text-center{text-align:center}.align-top{vertical-align:top}.text-6xl{font-size:3.75rem;line-height:1}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.data-button{border-radius:5px;border-width:1px;padding:5px;margin:0px;margin-right:5px;cursor:pointer}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";export{he as proto_tinker}
1
+ import{h as e,g as t,f as r,r as a}from"./p-0940c870.js";const n=t=>{const r=t.hex||"currentColor",a=t.selected||!1,n=t.size||24;return e("svg",{class:t.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.label||"radio")," ",e("g",{fill:r},e("path",a?{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={exports:{}},o={exports:{}},l=Array.prototype.concat,s=Array.prototype.slice,u=o.exports=function(e){for(var t=[],r=0,a=e.length;r<a;r++){var n=e[r];(i=n)&&"string"!=typeof i&&(i instanceof Array||Array.isArray(i)||i.length>=0&&(i.splice instanceof Function||Object.getOwnPropertyDescriptor(i,i.length-1)&&"String"!==i.constructor.name))?t=l.call(t,s.call(n)):t.push(n)}var i;return t};u.wrap=function(e){return function(){return e(u(arguments))}};var c={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]},h=o.exports,f=Object.hasOwnProperty,d=Object.create(null);for(var g in c)f.call(c,g)&&(d[c[g]]=g);var b=i.exports={to:{},get:{}};function p(e,t,r){return Math.min(Math.max(t,e),r)}function v(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}b.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=b.get.hsl(e),r="hsl";break;case"hwb":t=b.get.hwb(e),r="hwb";break;default:t=b.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},b.get.rgb=function(e){if(!e)return null;var t,r,a,n=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],r=0;r<3;r++){var i=2*r;n[r]=parseInt(t.slice(i,i+2),16)}a&&(n[3]=parseInt(a,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],r=0;r<3;r++)n[r]=parseInt(t[r]+t[r],16);a&&(n[3]=parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)n[r]=parseInt(t[r+1],0);t[4]&&(n[3]=t[5]?.01*parseFloat(t[4]):parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:f.call(c,t[1])?((n=c[t[1]])[3]=1,n):null:null;for(r=0;r<3;r++)n[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(n[3]=t[5]?.01*parseFloat(t[4]):parseFloat(t[4]))}for(r=0;r<3;r++)n[r]=p(n[r],0,255);return n[3]=p(n[3],0,1),n},b.get.hsl=function(e){if(!e)return null;var t=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(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,p(parseFloat(t[2]),0,100),p(parseFloat(t[3]),0,100),p(isNaN(r)?1:r,0,1)]}return null},b.get.hwb=function(e){if(!e)return null;var t=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(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,p(parseFloat(t[2]),0,100),p(parseFloat(t[3]),0,100),p(isNaN(r)?1:r,0,1)]}return null},b.to.hex=function(){var e=h(arguments);return"#"+v(e[0])+v(e[1])+v(e[2])+(e[3]<1?v(Math.round(255*e[3])):"")},b.to.rgb=function(){var e=h(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]+")"},b.to.rgb.percent=function(){var e=h(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]+")"},b.to.hsl=function(){var e=h(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},b.to.hwb=function(){var e=h(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},b.to.keyword=function(e){return d[e.slice(0,3)]};var w={exports:{}},m={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]},y={};for(var k in m)m.hasOwnProperty(k)&&(y[m[k]]=k);var M=w.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 x in M)if(M.hasOwnProperty(x)){if(!("channels"in M[x]))throw new Error("missing channels property: "+x);if(!("labels"in M[x]))throw new Error("missing channel labels property: "+x);if(M[x].labels.length!==M[x].channels)throw new Error("channel and label counts mismatch: "+x);var C=M[x].channels,j=M[x].labels;delete M[x].channels,delete M[x].labels,Object.defineProperty(M[x],"channels",{value:C}),Object.defineProperty(M[x],"labels",{value:j})}M.rgb.hsl=function(e){var t,r,a=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.min(a,n,i),l=Math.max(a,n,i),s=l-o;return l===o?t=0:a===l?t=(n-i)/s:n===l?t=2+(i-a)/s:i===l&&(t=4+(a-n)/s),(t=Math.min(60*t,360))<0&&(t+=360),r=(o+l)/2,[t,100*(l===o?0:r<=.5?s/(l+o):s/(2-l-o)),100*r]},M.rgb.hsv=function(e){var t,r,a,n,i,o=e[0]/255,l=e[1]/255,s=e[2]/255,u=Math.max(o,l,s),c=u-Math.min(o,l,s),h=function(e){return(u-e)/6/c+.5};return 0===c?n=i=0:(i=c/u,t=h(o),r=h(l),a=h(s),o===u?n=a-r:l===u?n=1/3+t-a:s===u&&(n=2/3+r-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*i,100*u]},M.rgb.hwb=function(e){var t=e[0],r=e[1],a=e[2];return[M.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,a))*100,100*(a=1-1/255*Math.max(t,Math.max(r,a)))]},M.rgb.cmyk=function(e){var t,r=e[0]/255,a=e[1]/255,n=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-a,1-n)))/(1-t)||0),100*((1-a-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*t]},M.rgb.keyword=function(e){var t=y[e];if(t)return t;var r,a,n,i=1/0;for(var o in m)if(m.hasOwnProperty(o)){var l=(a=e,n=m[o],Math.pow(a[0]-n[0],2)+Math.pow(a[1]-n[1],2)+Math.pow(a[2]-n[2],2));l<i&&(i=l,r=o)}return r},M.keyword.rgb=function(e){return m[e]},M.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)),100*(.2126*t+.7152*r+.0722*a),100*(.0193*t+.1192*r+.9505*a)]},M.rgb.lab=function(e){var t=M.rgb.xyz(e),r=t[0],a=t[1],n=t[2];return a/=100,n/=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-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},M.hsl.rgb=function(e){var t,r,a,n,i,o=e[0]/360,l=e[1]/100,s=e[2]/100;if(0===l)return[i=255*s,i,i];t=2*s-(r=s<.5?s*(1+l):s+l-s*l),n=[0,0,0];for(var u=0;u<3;u++)(a=o+1/3*-(u-1))<0&&a++,a>1&&a--,n[u]=255*(i=6*a<1?t+6*(r-t)*a:2*a<1?r:3*a<2?t+(r-t)*(2/3-a)*6:t);return n},M.hsl.hsv=function(e){var t=e[0],r=e[1]/100,a=e[2]/100,n=r,i=Math.max(a,.01);return r*=(a*=2)<=1?a:2-a,n*=i<=1?i:2-i,[t,100*(0===a?2*n/(i+n):2*r/(a+r)),(a+r)/2*100]},M.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,a=e[2]/100,n=Math.floor(t)%6,i=t-Math.floor(t),o=255*a*(1-r),l=255*a*(1-r*i),s=255*a*(1-r*(1-i));switch(a*=255,n){case 0:return[a,s,o];case 1:return[l,a,o];case 2:return[o,a,s];case 3:return[o,l,a];case 4:return[s,o,a];case 5:return[a,o,l]}},M.hsv.hsl=function(e){var t,r,a,n=e[0],i=e[1]/100,o=e[2]/100,l=Math.max(o,.01);return a=(2-i)*o,r=i*l,[n,100*(r=(r/=(t=(2-i)*l)<=1?t:2-t)||0),100*(a/=2)]},M.hwb.rgb=function(e){var t,r,a,n,i,o,l,s=e[0]/360,u=e[1]/100,c=e[2]/100,h=u+c;switch(h>1&&(u/=h,c/=h),a=6*s-(t=Math.floor(6*s)),0!=(1&t)&&(a=1-a),n=u+a*((r=1-c)-u),t){default:case 6:case 0:i=r,o=n,l=u;break;case 1:i=n,o=r,l=u;break;case 2:i=u,o=r,l=n;break;case 3:i=u,o=n,l=r;break;case 4:i=n,o=u,l=r;break;case 5:i=r,o=u,l=n}return[255*i,255*o,255*l]},M.cmyk.rgb=function(e){var t=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-a)+a)),255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]},M.xyz.rgb=function(e){var t,r,a,n=e[0]/100,i=e[1]/100,o=e[2]/100;return r=-.9689*n+1.8758*i+.0415*o,a=.0557*n+-.204*i+1.057*o,t=(t=3.2406*n+-1.5372*i+-.4986*o)>.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,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(a=Math.min(Math.max(0,a),1))]},M.xyz.lab=function(e){var t=e[0],r=e[1],a=e[2];return r/=100,a/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},M.lab.xyz=function(e){var t,r,a;t=e[1]/500+(r=(e[0]+16)/116),a=r-e[2]/200;var n=Math.pow(r,3),i=Math.pow(t,3),o=Math.pow(a,3);return r=n>.008856?n:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,a=o>.008856?o:(a-16/116)/7.787,[t*=95.047,r*=100,a*=108.883]},M.lab.lch=function(e){var t,r=e[0],a=e[1],n=e[2];return(t=360*Math.atan2(n,a)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(a*a+n*n),t]},M.lch.lab=function(e){var t,r=e[1];return t=e[2]/360*2*Math.PI,[e[0],r*Math.cos(t),r*Math.sin(t)]},M.rgb.ansi16=function(e){var t=e[0],r=e[1],a=e[2],n=1 in arguments?arguments[1]:M.rgb.hsv(e)[2];if(0===(n=Math.round(n/50)))return 30;var i=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===n&&(i+=60),i},M.hsv.ansi16=function(e){return M.rgb.ansi16(M.hsv.rgb(e),e[2])},M.rgb.ansi256=function(e){var t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},M.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},M.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},M.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},M.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var a=parseInt(r,16);return[a>>16&255,a>>8&255,255&a]},M.rgb.hcg=function(e){var t,r=e[0]/255,a=e[1]/255,n=e[2]/255,i=Math.max(Math.max(r,a),n),o=Math.min(Math.min(r,a),n),l=i-o;return t=l<=0?0:i===r?(a-n)/l%6:i===a?2+(n-r)/l:4+(r-a)/l+4,t/=6,[360*(t%=1),100*l,100*(l<1?o/(1-l):0)]},M.hsl.hcg=function(e){var t,r=e[1]/100,a=e[2]/100,n=0;return(t=a<.5?2*r*a:2*r*(1-a))<1&&(n=(a-.5*t)/(1-t)),[e[0],100*t,100*n]},M.hsv.hcg=function(e){var t=e[2]/100,r=e[1]/100*t,a=0;return r<1&&(a=(t-r)/(1-r)),[e[0],100*r,100*a]},M.hcg.rgb=function(e){var t=e[1]/100,r=e[2]/100;if(0===t)return[255*r,255*r,255*r];var a,n=[0,0,0],i=e[0]/360%1*6,o=i%1,l=1-o;switch(Math.floor(i)){case 0:n[0]=1,n[1]=o,n[2]=0;break;case 1:n[0]=l,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=o;break;case 3:n[0]=0,n[1]=l,n[2]=1;break;case 4:n[0]=o,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=l}return[255*(t*n[0]+(a=(1-t)*r)),255*(t*n[1]+a),255*(t*n[2]+a)]},M.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),a=0;return r>0&&(a=t/r),[e[0],100*a,100*r]},M.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],100*a,100*r]},M.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},M.hwb.hcg=function(e){var t=1-e[2]/100,r=t-e[1]/100,a=0;return r<1&&(a=(t-r)/(1-r)),[e[0],100*r,100*a]},M.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},M.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},M.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},M.gray.hsl=M.gray.hsv=function(e){return[0,0,e[0]]},M.gray.hwb=function(e){return[0,100,e[0]]},M.gray.cmyk=function(e){return[0,0,0,e[0]]},M.gray.lab=function(e){return[e[0],0,0]},M.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},M.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var O=w.exports;function z(e,t){return function(r){return t(e(r))}}function A(e,t){for(var r=[t[e].parent,e],a=O[t[e].parent][e],n=t[e].parent;t[n].parent;)r.unshift(t[n].parent),a=z(O[t[n].parent][n],a),n=t[n].parent;return a.conversion=r,a}var q=w.exports,L=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(O),r=t.length,a=0;a<r;a++)e[t[a]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var a=r.pop(),n=Object.keys(O[a]),i=n.length,o=0;o<i;o++){var l=n[o],s=t[l];-1===s.distance&&(s.distance=t[a].distance+1,s.parent=a,r.unshift(l))}return t}(e),r={},a=Object.keys(t),n=a.length,i=0;i<n;i++){var o=a[i];null!==t[o].parent&&(r[o]=A(o,t))}return r},F={};Object.keys(q).forEach((function(e){F[e]={},Object.defineProperty(F[e],"channels",{value:q[e].channels}),Object.defineProperty(F[e],"labels",{value:q[e].labels});var t=L(e);Object.keys(t).forEach((function(r){var a=t[r];F[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var a=r.length,n=0;n<a;n++)r[n]=Math.round(r[n]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(a),F[e][r].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(a)}))}));var S=i.exports,E=F,N=[].slice,I=["keyword","gray","hex"],$={};Object.keys(E).forEach((function(e){$[N.call(E[e].labels).sort().join("")]=e}));var U={};function B(e,t){if(!(this instanceof B))return new B(e,t);if(t&&t in I&&(t=null),t&&!(t in E))throw new Error("Unknown model: "+t);var r,a;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof B)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var n=S.get(e);if(null===n)throw new Error("Unable to parse color from string: "+e);this.model=n.model,this.color=n.value.slice(0,a=E[this.model].channels),this.valpha="number"==typeof n.value[a]?n.value[a]:1}else if(e.length){this.model=t||"rgb";var i=N.call(e,0,a=E[this.model].channels);this.color=P(i,a),this.valpha="number"==typeof e[a]?e[a]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var l=o.sort().join("");if(!(l in $))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=$[l];var s=E[this.model].labels,u=[];for(r=0;r<s.length;r++)u.push(e[s[r]]);this.color=P(u)}if(U[this.model])for(a=E[this.model].channels,r=0;r<a;r++){var c=U[this.model][r];c&&(this.color[r]=c(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function H(e,t,r){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(U[e]||(U[e]=[]))[t]=r})),e=e[0],function(a){var n;return arguments.length?(r&&(a=r(a)),(n=this[e]()).color[t]=a,n):(n=this[e]().color[t],r&&(n=r(n)),n)}}function J(e){return function(t){return Math.max(0,Math.min(e,t))}}function P(e,t){for(var r=0;r<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}B.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in S.to?this:this.rgb(),r=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return S.to[t.model](r)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),r=1===t.valpha?t.color:t.color.concat(this.valpha);return S.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=E[this.model].channels,r=E[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 B(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new B(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:H("rgb",0,J(255)),green:H("rgb",1,J(255)),blue:H("rgb",2,J(255)),hue:H(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:H("hsl",1,J(100)),lightness:H("hsl",2,J(100)),saturationv:H("hsv",1,J(100)),value:H("hsv",2,J(100)),chroma:H("hcg",1,J(100)),gray:H("hcg",2,J(100)),white:H("hwb",1,J(100)),wblack:H("hwb",2,J(100)),cyan:H("cmyk",0,J(100)),magenta:H("cmyk",1,J(100)),yellow:H("cmyk",2,J(100)),black:H("cmyk",3,J(100)),x:H("xyz",0,J(100)),y:H("xyz",1,J(100)),z:H("xyz",2,J(100)),l:H("lab",0,J(100)),a:H("lab",1),b:H("lab",2),keyword:function(e){return arguments.length?new B(e):E[this.model].keyword(this.color)},hex:function(e){return arguments.length?new B(e):S.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,t=[],r=0;r<e.length;r++){var a=e[r]/255;t[r]=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=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(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return B.rgb(t,t,t)},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 t=this.hsl(),r=t.color[0];return t.color[0]=r=(r=(r+e)%360)<0?360+r:r,t},mix:function(e,t){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(),a=this.rgb(),n=void 0===t?.5:t,i=2*n-1,o=r.alpha()-a.alpha(),l=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,s=1-l;return B.rgb(l*r.red()+s*a.red(),l*r.green()+s*a.green(),l*r.blue()+s*a.blue(),r.alpha()*n+a.alpha()*(1-n))}},Object.keys(E).forEach((function(e){if(-1===I.indexOf(e)){var t=E[e].channels;B.prototype[e]=function(){if(this.model===e)return new B(this);if(arguments.length)return new B(arguments,e);var r,a="number"==typeof arguments[t]?t:this.valpha;return new B((r=E[this.model][e].raw(this.color),Array.isArray(r)?r:[r]).concat(a),e)},B[e]=function(r){return"number"==typeof r&&(r=P(N.call(arguments),t)),new B(r,e)}}}));const R=[{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)),D={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"},T={slate:"#708090",slate4:"#4e5964",white:"#ffffff"},Z=Object.keys(D),K=e=>!("isConnected"in e)||e.isConnected,V=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(K))})(...t)}),2e3)}})(),_=e=>"function"==typeof e?e():e,G="proto-tinker-wc::app-data",Q=(()=>{const e=((e,t=((e,t)=>e!==t))=>{const r=_(e);let a=new Map(Object.entries(null!=r?r:{}));const n={dispose:[],get:[],set:[],reset:[]},i=()=>{var t;a=new Map(Object.entries(null!==(t=_(e))&&void 0!==t?t:{})),n.reset.forEach((e=>e()))},o=e=>(n.get.forEach((t=>t(e))),a.get(e)),l=(e,r)=>{const i=a.get(e);t(r,i,e)&&(a.set(e,r),n.set.forEach((t=>t(e,r,i))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(e,t)=>o(t),ownKeys:()=>Array.from(a.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>a.has(t),set:(e,t,r)=>(l(t,r),!0)}),u=(e,t)=>(n[e].push(t),()=>{((e,t)=>{const r=e.indexOf(t);r>=0&&(e[r]=e[e.length-1],e.length--)})(n[e],t)});return{state:s,get:o,set:l,on:u,onChange:(t,r)=>{const a=u("set",((e,a)=>{e===t&&r(a)})),n=u("reset",(()=>r(_(e)[t])));return()=>{a(),n()}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(u("set",t.set)),t.get&&e.push(u("get",t.get)),t.reset&&e.push(u("reset",t.reset)),t.dispose&&e.push(u("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{n.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const t=a.get(e);n.set.forEach((r=>r(e,t,t)))}}})({count:0,pick:"bada55",values:[...R]},void 0);return e.use((()=>{if("function"!=typeof t)return{};const e=new Map;return{dispose:()=>e.clear(),get:r=>{const a=t();a&&((e,t,r)=>{const a=e.get(t);a?a.includes(r)||a.push(r):e.set(t,[r])})(e,r,a)},set:t=>{const a=e.get(t);a&&e.set(t,a.filter(r)),V(e)},reset:()=>{e.forEach((e=>e.forEach(r))),V(e)}}})()),e})(),{state:W}=Q,X=()=>{const{count:e,pick:t,values:r}=W;(e=>{const t=JSON.stringify(e);localStorage.setItem(G,t)})({count:e,pick:t,values:r})},Y={initApp:()=>{const e=(()=>{const e=localStorage.getItem(G);return e?JSON.parse(e):void 0})();if(e){const{count:t,pick:r,values:a}=e;W.count=t,W.pick=r,W.values=a}},refresh:()=>{const e=R.map((()=>Math.floor(100*Math.random())));W.count=W.count+1,W.values=e,X()},reset:()=>{W.count=0,W.values=[...R],X()},updatePick:e=>{W.pick=e,X()}},ee=t=>{const{actions:r,state:a}=t,{pick:i}=a;return e("div",{id:"toolbar",class:"flex flex-wrap",role:"radiogroup"},Z.map((t=>{const a=(e=>D[e]||T[e])(t),o=i===t;return e("div",{"aria-label":t,"aria-checked":o?"true":"false",role:"radio",onClick:()=>{r.updatePick(t)}},e(n,{hex:a,selected:o,label:t}))})))},te=t=>{const r=t.hex||"currentColor",a=t.size||24;return e("svg",{class:t.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.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"}))},re=t=>{const r=t.hex||"currentColor",a=t.size||24;return e("svg",{class:t.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.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"}))},ae=t=>{const r=t.hex||"currentColor",a=t.size||24;return e("svg",{class:t.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.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"}))},ne=t=>{const{actions:r,state:a}=t,{count:n}=a;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(ae,{label:"Refresh"})),e("button",{"aria-label":"Reset",class:"ds1-button data-button bg-clrs-red",onClick:()=>{r.reset()}},e(re,{label:"Reset"})),e("span",{class:"flex items-center"},e(te,{size:28}),e("span",{class:"italic"},"click a button... ",e("sup",null,n))))},ie=()=>e("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.4.1"),oe=t=>{const{state:r}=t,{values:a,pick:n,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"},n)),e("div",{class:"mt-5px flex"},e("span",{class:"mr-10px font-bold"},"sample:"),e("span",{class:"italic text-clrs-slate4"},`${i>0?a:"..."}`))),e(ie,null))},le=t=>{const r=t.hex||"currentColor",a=t.size||24;return e("svg",{class:t.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.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"}))},se="eswat2",ue=()=>e("a",{class:"absolute right-8 top-8 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":se,target:"blank",title:se},e(le,{label:"eswat2"})),ce=t=>e("h1",{class:"mb-11 ml-0 mr-0 mt-11 text-center text-6xl font-thin uppercase text-clrs-red"},t.label),he=class{constructor(e){a(this,e),this.tag="proto-tinker"}componentDidLoad(){Y.initApp()}render(){return e("div",{key:"42b12329731d1f7a60a9908ece49d5a0117c3d51",id:"app",class:"ds1-main"},e(ce,{key:"d9b37d9fe1cf7fbdab5b62d31a355189a4d310cb",label:"tinker wc"}),e(ue,{key:"3dbc75dd83adb932d5926d86e05d78f8dcf1c514"}),e(ne,{key:"a7a68754deab9474644849a939613013d041965e",actions:Y,state:W}),e(ee,{key:"d604b7714be5212446aaa26a92592ab2c9374654",actions:Y,state:W}),e("hr",{key:"36393479c18e487538ff1ad49b0c7916c22ef706",class:"ml-0 mr-0"}),e(oe,{key:"416dc2ef76326017369a89e0c85a687eaa7582d5",state:W}))}};he.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{display:flex;flex-direction:column;padding:1rem;font-family:ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ds1-button{display:flex;align-items:center;border-style:solid;border-color:var(--clrs-slate, #708090);color:var(--clrs-white, #ffffff)}.ds1-button:active{background-color:var(--clrs-gray, #aaaaaa);color:var(--clrs-navy, #001f3f)}.absolute{position:absolute}.right-8{right:2rem}.top-8{top:2rem}.mb-10px{margin-bottom:10px}.mb-11{margin-bottom:2.75rem}.ml-0{margin-left:0px}.ml-auto{margin-left:auto}.mr-0{margin-right:0px}.mr-10px{margin-right:10px}.mt-11{margin-top:2.75rem}.mt-3{margin-top:0.75rem}.mt-5px{margin-top:5px}.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.text-center{text-align:center}.align-top{vertical-align:top}.text-6xl{font-size:3.75rem;line-height:1}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.data-button{border-radius:5px;border-width:1px;padding:5px;margin:0px;margin-right:5px;cursor:pointer}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";export{he as proto_tinker}
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-d8b16e88.js";export{s as setNonce}from"./p-d8b16e88.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-bc8260e5",[[1,"proto-tinker",{tag:[1]}]]]],e)));
1
+ import{p as t,b as o}from"./p-0940c870.js";export{s as setNonce}from"./p-0940c870.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),t(r)})().then((t=>o([["p-3490913e",[[1,"proto-tinker",{tag:[1]}]]]],t)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-tinker-wc",
3
- "version": "0.0.412",
3
+ "version": "0.0.413",
4
4
  "description": "prototype - simple demo built from Stencil & Tailwind",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -28,8 +28,8 @@
28
28
  "format": "prettier --write src"
29
29
  },
30
30
  "dependencies": {
31
- "@stencil/core": "4.11.0",
32
- "@stencil/store": "2.0.12",
31
+ "@stencil/core": "4.12.0",
32
+ "@stencil/store": "2.0.13",
33
33
  "between.js": "0.1.2-fix.2"
34
34
  },
35
35
  "devDependencies": {
@@ -1,2 +0,0 @@
1
- let n,t,e=!1,l=null,o=!1;const s="slot-fb{display:contents}slot-fb[hidden]{display:none}",i={},r=n=>"object"==(n=typeof n)||"function"===n;function c(n){var t,e,l;return null!==(l=null===(e=null===(t=n.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const u=(n,t,...e)=>{let l=null,o=!1,s=!1;const i=[],c=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!r(l))&&(l+=""),o&&s?i[i.length-1].t+=l:i.push(o?a(null,l):l),s=o)};if(c(e),t){const n=t.className||t.class;n&&(t.class="object"!=typeof n?n:Object.keys(n).filter((t=>n[t])).join(" "))}if("function"==typeof n)return n(null===t?{}:t,i,d);const u=a(n,null);return u.l=t,i.length>0&&(u.o=i),u},a=(n,t)=>({i:0,u:n,t,v:null,o:null,l:null}),f={},d={forEach:(n,t)=>n.map(v).forEach(t),map:(n,t)=>n.map(v).map(t).map(p)},v=n=>({vattrs:n.l,vchildren:n.o,vkey:n.p,vname:n.h,vtag:n.u,vtext:n.t}),p=n=>{if("function"==typeof n.vtag){const t=Object.assign({},n.vattrs);return n.vkey&&(t.key=n.vkey),n.vname&&(t.name=n.vname),u(n.vtag,t,...n.vchildren||[])}const t=a(n.vtag,n.vtext);return t.l=n.vattrs,t.o=n.vchildren,t.p=n.vkey,t.h=n.vname,t},y=new WeakMap,h=n=>"sc-"+n.m,m=(n,t,e,l,o,s)=>{if(e!==l){let i=J(n,t),c=t.toLowerCase();if("class"===t){const t=n.classList,o=w(e),s=w(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else if(i||"o"!==t[0]||"n"!==t[1]){const c=r(l);if((i||c&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(t)||n.removeAttribute(t):(!i||4&s||o)&&!c&&n.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):J(Z,c)?c.slice(2):c[2]+t.slice(3),e||l){const o=t.endsWith(b);t=t.replace(g,""),e&&tn.rel(n,t,e,o),l&&tn.ael(n,t,l,o)}}},$=/\s/,w=n=>n?n.split($):[],b="Capture",g=RegExp(b+"$"),j=(n,t,e,l)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,s=n&&n.l||i,r=t.l||i;for(l in s)l in r||m(o,l,s[l],void 0,e,t.i);for(l in r)m(o,l,s[l],r[l],e,t.i)},S=(l,o,s)=>{const i=o.o[s];let r,c,u=0;if(null!==i.t)r=i.v=nn.createTextNode(i.t);else{if(e||(e="svg"===i.u),r=i.v=nn.createElementNS(e?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.u),e&&"foreignObject"===i.u&&(e=!1),j(null,i,e),null!=n&&r["s-si"]!==n&&r.classList.add(r["s-si"]=n),i.o)for(u=0;u<i.o.length;++u)c=S(l,i,u),c&&r.appendChild(c);"svg"===i.u?e=!1:"foreignObject"===r.tagName&&(e=!0)}return r["s-hn"]=t,r},O=(n,e,l,o,s,i)=>{let r,c=n;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);s<=i;++s)o[s]&&(r=S(null,l,s),r&&(o[s].v=r,c.insertBefore(r,e)))},k=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.v;n&&n.remove()}}},M=(n,t)=>n.u===t.u,C=(n,t,l=!1)=>{const o=t.v=n.v,s=n.o,i=t.o,r=t.u,c=t.t;null===c?(e="svg"===r||"foreignObject"!==r&&e,j(n,t,e),null!==s&&null!==i?((n,t,e,l,o=!1)=>{let s,i=0,r=0,c=t.length-1,u=t[0],a=t[c],f=l.length-1,d=l[0],v=l[f];for(;i<=c&&r<=f;)null==u?u=t[++i]:null==a?a=t[--c]:null==d?d=l[++r]:null==v?v=l[--f]:M(u,d)?(C(u,d,o),u=t[++i],d=l[++r]):M(a,v)?(C(a,v,o),a=t[--c],v=l[--f]):M(u,v)?(C(u,v,o),n.insertBefore(u.v,a.v.nextSibling),u=t[++i],v=l[--f]):M(a,d)?(C(a,d,o),n.insertBefore(a.v,u.v),a=t[--c],d=l[++r]):(s=S(t&&t[r],e,r),d=l[++r],s&&u.v.parentNode.insertBefore(s,u.v));i>c?O(n,null==l[f+1]?null:l[f+1].v,e,l,r,f):r>f&&k(t,i,c)})(o,s,t,i,l):null!==i?(null!==n.t&&(o.textContent=""),O(o,null,t,i,0,i.length-1)):null!==s&&k(s,0,s.length-1),e&&"svg"===r&&(e=!1)):n.t!==c&&(o.data=c)},x=(n,t)=>{t&&!n.$&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.$=t)))},E=(n,t)=>{if(n.i|=16,!(4&n.i))return x(n,n.j),fn((()=>P(n,t)));n.i|=512},P=(n,t)=>{const e=n.S;return A(void 0,(()=>N(n,e,t)))},A=(n,t)=>L(n)?n.then(t):t(),L=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,N=async(n,t,e)=>{var l;const o=n.$hostElement$,i=o["s-rc"];e&&(n=>{const t=n.O,e=n.$hostElement$,l=t.i,o=((n,t)=>{var e;const l=h(t),o=Y.get(l);if(n=11===n.nodeType?n:nn,o)if("string"==typeof o){let i,r=y.get(n=n.head||n);if(r||y.set(n,r=new Set),!r.has(l)){{i=nn.createElement("style"),i.innerHTML=o;const t=null!==(e=tn.k)&&void 0!==e?e:c(nn);null!=t&&i.setAttribute("nonce",t),n.insertBefore(i,n.querySelector("link"))}4&t.i&&(i.innerHTML+=s),r&&r.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o]);return l})(e.shadowRoot?e.shadowRoot:e.getRootNode(),t);10&l&&(e["s-sc"]=o,e.classList.add(o+"-h"))})(n);R(n,t,o,e),i&&(i.map((n=>n())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],e=()=>U(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},R=(e,o,s,i)=>{try{l=o,o=o.render(),e.i&=-17,e.i|=2,((e,l,o=!1)=>{const s=e.$hostElement$,i=e.M||a(null,null),r=(n=>n&&n.u===f)(l)?l:u(null,null,l);if(t=s.tagName,o&&r.l)for(const n of Object.keys(r.l))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(r.l[n]=s[n]);r.u=null,r.i|=4,e.M=r,r.v=i.v=s.shadowRoot||s,n=s["s-sc"],C(i,r,o)})(e,o,i)}catch(n){K(n,e.$hostElement$)}return l=null,null},T=()=>l,U=n=>{const t=n.$hostElement$,e=n.S,l=n.j;64&n.i||(n.i|=64,F(t),D(e,"componentDidLoad"),n.C(t),l||q()),n.$&&(n.$(),n.$=void 0),512&n.i&&an((()=>E(n,!1))),n.i&=-517},W=n=>{{const t=B(n),e=t.$hostElement$.isConnected;return e&&2==(18&t.i)&&E(t,!1),e}},q=()=>{F(nn.documentElement),an((()=>(n=>{const t=tn.ce("appload",{detail:{namespace:"proto-tinker-wc"}});return n.dispatchEvent(t),t})(Z)))},D=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){K(n)}},F=n=>n.classList.add("hydrated"),H=(n,t,e)=>{var l;const o=n.prototype;if(t.P){const s=Object.entries(t.P);if(s.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(o,n,{get(){return((n,t)=>B(this).A.get(t))(0,n)},set(e){((n,t,e,l)=>{const o=B(n),s=o.A.get(t),i=o.i,c=o.S;e=((n,t)=>null==n||r(n)?n:1&t?n+"":n)(e,l.P[t][0]),8&i&&void 0!==s||e===s||Number.isNaN(s)&&Number.isNaN(e)||(o.A.set(t,e),c&&2==(18&i)&&E(o,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;o.attributeChangedCallback=function(n,l,s){tn.jmp((()=>{var i;const r=e.get(n);if(this.hasOwnProperty(r))s=this[r],delete this[r];else{if(o.hasOwnProperty(r)&&"number"==typeof this[r]&&this[r]==s)return;if(null==r){const e=B(this),o=null==e?void 0:e.i;if(o&&!(8&o)&&128&o&&s!==l){const o=e.S,r=null===(i=t.L)||void 0===i?void 0:i[n];null==r||r.forEach((t=>{null!=o[t]&&o[t].call(o,s,l,n)}))}return}}this[r]=(null!==s||"boolean"!=typeof this[r])&&s}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=t.L)&&void 0!==l?l:{}),...s.filter((([n,t])=>15&t[0])).map((([n,t])=>{const l=t[1]||n;return e.set(l,n),l}))]))}}return n},V=(n,t={})=>{var e;const l=[],o=t.exclude||[],i=Z.customElements,r=nn.head,u=r.querySelector("meta[charset]"),a=nn.createElement("style"),f=[];let d,v=!0;Object.assign(tn,t),tn.N=new URL(t.resourcesUrl||"./",nn.baseURI).href;let p=!1;if(n.map((n=>{n[1].map((t=>{const e={i:t[0],m:t[1],P:t[2],R:t[3]};4&e.i&&(p=!0),e.P=t[2];const s=e.m,r=class extends HTMLElement{constructor(n){super(n),I(n=this,e),1&e.i&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),v?f.push(this):tn.jmp((()=>(n=>{if(0==(1&tn.i)){const t=B(n),e=t.O,l=()=>{};if(1&t.i)(null==t?void 0:t.S)||(null==t?void 0:t.T)&&t.T.then((()=>{}));else{t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){x(t,t.j=e);break}}e.P&&Object.entries(e.P).map((([t,[e]])=>{if(31&e&&n.hasOwnProperty(t)){const e=n[t];delete n[t],n[t]=e}})),(async(n,t,e)=>{let l;if(0==(32&t.i)){t.i|=32;{if(l=X(e),l.then){const n=()=>{};l=await l,n()}l.isProxied||(H(l,e,2),l.isProxied=!0);const n=()=>{};t.i|=8;try{new l(t)}catch(n){K(n)}t.i&=-9,n()}if(l.style){let n=l.style;const t=h(e);if(!Y.has(t)){const l=()=>{};((n,t,e)=>{let l=Y.get(n);ln&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,Y.set(n,l)})(t,n,!!(1&e.i)),l()}}}const o=t.j,s=()=>E(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,t,e)}l()}})(this)))}disconnectedCallback(){tn.jmp((()=>(async()=>{if(0==(1&tn.i)){const n=B(this);(null==n?void 0:n.S)||(null==n?void 0:n.T)&&n.T.then((()=>{}))}})()))}componentOnReady(){return B(this).T}};e.U=n[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,H(r,e,1)))}))})),p&&(a.innerHTML+=s),a.innerHTML+=l+"{visibility:hidden}.hydrated{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles","");const n=null!==(e=tn.k)&&void 0!==e?e:c(nn);null!=n&&a.setAttribute("nonce",n),r.insertBefore(a,u?u.nextSibling:r.firstChild)}v=!1,f.length?f.map((n=>n.connectedCallback())):tn.jmp((()=>d=setTimeout(q,30)))},_=n=>tn.k=n,z=new WeakMap,B=n=>z.get(n),G=(n,t)=>z.set(t.S=n,t),I=(n,t)=>{const e={i:0,$hostElement$:n,O:t,A:new Map};return e.T=new Promise((n=>e.C=n)),n["s-p"]=[],n["s-rc"]=[],z.set(n,e)},J=(n,t)=>t in n,K=(n,t)=>(0,console.error)(n,t),Q=new Map,X=n=>{const t=n.m.replace(/-/g,"_"),e=n.U,l=Q.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(Q.set(e,n),n[t])),K)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Y=new Map,Z="undefined"!=typeof window?window:{},nn=Z.document||{head:{}},tn={i:0,N:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,t,e,l)=>n.addEventListener(t,e,l),rel:(n,t,e,l)=>n.removeEventListener(t,e,l),ce:(n,t)=>new CustomEvent(n,t)},en=n=>Promise.resolve(n),ln=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),on=[],sn=[],rn=(n,t)=>e=>{n.push(e),o||(o=!0,t&&4&tn.i?an(un):tn.raf(un))},cn=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){K(n)}n.length=0},un=()=>{cn(on),cn(sn),(o=on.length>0)&&tn.raf(un)},an=n=>en().then(n),fn=rn(sn,!0);export{V as b,W as f,T as g,u as h,en as p,G as r,_ as s}