proto-daisy-db 0.0.163 → 0.0.165

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.
@@ -236,9 +236,9 @@ const registerStyle = (scopeId, cssText, allowCS) => {
236
236
  }
237
237
  styles.set(scopeId, style);
238
238
  };
239
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
239
+ const addStyle = (styleContainerNode, cmpMeta, mode) => {
240
240
  var _a;
241
- let scopeId = getScopeId(cmpMeta);
241
+ const scopeId = getScopeId(cmpMeta);
242
242
  const style = styles.get(scopeId);
243
243
  // if an element is NOT connected then getRootNode() will return the wrong root node
244
244
  // so the fallback is to always use the document for the root node in those cases
@@ -253,11 +253,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
253
253
  }
254
254
  if (!appliedStyles.has(scopeId)) {
255
255
  {
256
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
257
- {
258
- styleElm = doc.createElement('style');
259
- styleElm.innerHTML = style;
260
- }
256
+ styleElm = doc.createElement('style');
257
+ styleElm.innerHTML = style;
261
258
  // Apply CSP nonce to the style tag if it exists
262
259
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
263
260
  if (nonce != null) {
@@ -282,7 +279,6 @@ const attachStyles = (hostRef) => {
282
279
  const flags = cmpMeta.$flags$;
283
280
  const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
284
281
  const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
285
- // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
286
282
  if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
287
283
  // only required when we're NOT using native shadow dom (slot)
288
284
  // or this browser doesn't support native shadow dom
@@ -852,7 +848,19 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
852
848
  * @param fn a function to enqueue
853
849
  * @returns either a `Promise` or the return value of the provided function
854
850
  */
855
- const enqueue = (maybePromise, fn) => maybePromise instanceof Promise ? maybePromise.then(fn) : fn();
851
+ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
852
+ /**
853
+ * Check that a value is a `Promise`. To check, we first see if the value is an
854
+ * instance of the `Promise` global. In a few circumstances, in particular if
855
+ * the global has been overwritten, this is could be misleading, so we also do
856
+ * a little 'duck typing' check to see if the `.then` property of the value is
857
+ * defined and a function.
858
+ *
859
+ * @param maybePromise it might be a promise!
860
+ * @returns whether it is or not
861
+ */
862
+ const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
863
+ (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
856
864
  const updateComponent = async (hostRef, instance, isInitialLoad) => {
857
865
  var _a;
858
866
  const elm = hostRef.$hostElement$;
@@ -2,20 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1aec1ff2.js');
6
-
7
- /*
8
- Stencil Client Patch Esm v3.3.1 | MIT Licensed | https://stenciljs.com
9
- */
10
- const patchEsm = () => {
11
- return index.promiseResolve();
12
- };
5
+ const index = require('./index-3f55ff78.js');
13
6
 
14
7
  const defineCustomElements = (win, options) => {
15
8
  if (typeof window === 'undefined') return Promise.resolve();
16
- return patchEsm().then(() => {
17
9
  return index.bootstrapLazy([["proto-daisy-db_5.cjs",[[0,"proto-faux-trigger",{"emitter":[1],"data":[1040]}],[1,"proto-daisy-db",{"emitter":[1]}],[0,"proto-faux-keys",{"data":[16]}],[0,"proto-faux-stamp",{"data":[16]}],[0,"proto-faux-type",{"emitter":[1],"eventType":[1025,"event-type"]}]]]], options);
18
- });
19
10
  };
20
11
 
21
12
  exports.setNonce = index.setNonce;
@@ -2,19 +2,16 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1aec1ff2.js');
5
+ const index = require('./index-3f55ff78.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v3.3.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.0.1 | 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-daisy-db.cjs.js', document.baseURI).href));
12
12
  const opts = {};
13
- // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
14
13
  if (importMeta !== '') {
15
14
  opts.resourcesUrl = new URL('.', importMeta).href;
16
- // TODO(STENCIL-661): Remove code related to the dynamic import shim
17
- // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
18
15
  }
19
16
  return index.promiseResolve(opts);
20
17
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1aec1ff2.js');
5
+ const index = require('./index-3f55ff78.js');
6
6
 
7
7
  const KEY = 'proto-daisy-db:app-data';
8
8
  const promisedParseJSON = (json) => {
@@ -91,7 +91,7 @@ const ProtoFauxStamp = class {
91
91
  };
92
92
  ProtoFauxStamp.style = protoFauxStampCss;
93
93
 
94
- const protoFauxTriggerCss = "*,::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;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.font-sans{font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.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)}";
94
+ const protoFauxTriggerCss = "*,::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;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.font-sans{font-family:ui-sans-serif,\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n 'Helvetica Neue',\n Arial,\n 'Noto Sans',\n sans-serif,\n 'Apple Color Emoji',\n 'Segoe UI Emoji',\n 'Segoe UI Symbol',\n 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.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)}";
95
95
 
96
96
  const ProtoFauxTrigger = class {
97
97
  constructor(hostRef) {
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "entries": [
3
- "./components/proto-daisy-db/proto-daisy-db.js",
4
- "./components/proto-faux-keys/proto-faux-keys.js",
5
- "./components/proto-faux-stamp/proto-faux-stamp.js",
6
- "./components/proto-faux-trigger/proto-faux-trigger.js",
7
- "./components/proto-faux-type/proto-faux-type.js"
3
+ "components/proto-daisy-db/proto-daisy-db.js",
4
+ "components/proto-faux-keys/proto-faux-keys.js",
5
+ "components/proto-faux-stamp/proto-faux-stamp.js",
6
+ "components/proto-faux-trigger/proto-faux-trigger.js",
7
+ "components/proto-faux-type/proto-faux-type.js"
8
8
  ],
9
9
  "compiler": {
10
10
  "name": "@stencil/core",
11
- "version": "3.3.1",
11
+ "version": "4.0.1",
12
12
  "typescriptVersion": "5.0.4"
13
13
  },
14
14
  "collections": [],
@@ -1,5 +1,5 @@
1
- import { h } from '@stencil/core';
2
- import { bag } from '../../utils';
1
+ import { h } from "@stencil/core";
2
+ import { bag } from "../../utils";
3
3
  export class ProtoDaisyDB {
4
4
  constructor() {
5
5
  this.emitter = undefined;
@@ -1,4 +1,4 @@
1
- import { h } from '@stencil/core';
1
+ import { h } from "@stencil/core";
2
2
  export class ProtoFauxKeys {
3
3
  constructor() {
4
4
  this.data = undefined;
@@ -1,4 +1,4 @@
1
- import { h } from '@stencil/core';
1
+ import { h } from "@stencil/core";
2
2
  export class ProtoFauxStamp {
3
3
  constructor() {
4
4
  this.data = undefined;
@@ -10,19 +10,19 @@
10
10
  --tw-skew-y: 0;
11
11
  --tw-scale-x: 1;
12
12
  --tw-scale-y: 1;
13
- --tw-pan-x: ;
14
- --tw-pan-y: ;
15
- --tw-pinch-zoom: ;
13
+ --tw-pan-x: ;
14
+ --tw-pan-y: ;
15
+ --tw-pinch-zoom: ;
16
16
  --tw-scroll-snap-strictness: proximity;
17
- --tw-gradient-from-position: ;
18
- --tw-gradient-via-position: ;
19
- --tw-gradient-to-position: ;
20
- --tw-ordinal: ;
21
- --tw-slashed-zero: ;
22
- --tw-numeric-figure: ;
23
- --tw-numeric-spacing: ;
24
- --tw-numeric-fraction: ;
25
- --tw-ring-inset: ;
17
+ --tw-gradient-from-position: ;
18
+ --tw-gradient-via-position: ;
19
+ --tw-gradient-to-position: ;
20
+ --tw-ordinal: ;
21
+ --tw-slashed-zero: ;
22
+ --tw-numeric-figure: ;
23
+ --tw-numeric-spacing: ;
24
+ --tw-numeric-fraction: ;
25
+ --tw-ring-inset: ;
26
26
  --tw-ring-offset-width: 0px;
27
27
  --tw-ring-offset-color: #fff;
28
28
  --tw-ring-color: rgb(59 130 246 / 0.5);
@@ -30,24 +30,25 @@
30
30
  --tw-ring-shadow: 0 0 #0000;
31
31
  --tw-shadow: 0 0 #0000;
32
32
  --tw-shadow-colored: 0 0 #0000;
33
- --tw-blur: ;
34
- --tw-brightness: ;
35
- --tw-contrast: ;
36
- --tw-grayscale: ;
37
- --tw-hue-rotate: ;
38
- --tw-invert: ;
39
- --tw-saturate: ;
40
- --tw-sepia: ;
41
- --tw-drop-shadow: ;
42
- --tw-backdrop-blur: ;
43
- --tw-backdrop-brightness: ;
44
- --tw-backdrop-contrast: ;
45
- --tw-backdrop-grayscale: ;
46
- --tw-backdrop-hue-rotate: ;
47
- --tw-backdrop-invert: ;
48
- --tw-backdrop-opacity: ;
49
- --tw-backdrop-saturate: ;
50
- --tw-backdrop-sepia: ;
33
+ --tw-blur: ;
34
+ --tw-brightness: ;
35
+ --tw-contrast: ;
36
+ --tw-grayscale: ;
37
+ --tw-hue-rotate: ;
38
+ --tw-invert: ;
39
+ --tw-saturate: ;
40
+ --tw-sepia: ;
41
+ --tw-drop-shadow: ;
42
+ --tw-backdrop-blur: ;
43
+ --tw-backdrop-brightness: ;
44
+ --tw-backdrop-contrast: ;
45
+ --tw-backdrop-grayscale: ;
46
+ --tw-backdrop-hue-rotate: ;
47
+ --tw-backdrop-invert: ;
48
+ --tw-backdrop-opacity: ;
49
+ --tw-backdrop-saturate: ;
50
+ --tw-backdrop-sepia:
51
+ ;
51
52
  }
52
53
 
53
54
  ::backdrop {
@@ -60,19 +61,19 @@
60
61
  --tw-skew-y: 0;
61
62
  --tw-scale-x: 1;
62
63
  --tw-scale-y: 1;
63
- --tw-pan-x: ;
64
- --tw-pan-y: ;
65
- --tw-pinch-zoom: ;
64
+ --tw-pan-x: ;
65
+ --tw-pan-y: ;
66
+ --tw-pinch-zoom: ;
66
67
  --tw-scroll-snap-strictness: proximity;
67
- --tw-gradient-from-position: ;
68
- --tw-gradient-via-position: ;
69
- --tw-gradient-to-position: ;
70
- --tw-ordinal: ;
71
- --tw-slashed-zero: ;
72
- --tw-numeric-figure: ;
73
- --tw-numeric-spacing: ;
74
- --tw-numeric-fraction: ;
75
- --tw-ring-inset: ;
68
+ --tw-gradient-from-position: ;
69
+ --tw-gradient-via-position: ;
70
+ --tw-gradient-to-position: ;
71
+ --tw-ordinal: ;
72
+ --tw-slashed-zero: ;
73
+ --tw-numeric-figure: ;
74
+ --tw-numeric-spacing: ;
75
+ --tw-numeric-fraction: ;
76
+ --tw-ring-inset: ;
76
77
  --tw-ring-offset-width: 0px;
77
78
  --tw-ring-offset-color: #fff;
78
79
  --tw-ring-color: rgb(59 130 246 / 0.5);
@@ -80,24 +81,25 @@
80
81
  --tw-ring-shadow: 0 0 #0000;
81
82
  --tw-shadow: 0 0 #0000;
82
83
  --tw-shadow-colored: 0 0 #0000;
83
- --tw-blur: ;
84
- --tw-brightness: ;
85
- --tw-contrast: ;
86
- --tw-grayscale: ;
87
- --tw-hue-rotate: ;
88
- --tw-invert: ;
89
- --tw-saturate: ;
90
- --tw-sepia: ;
91
- --tw-drop-shadow: ;
92
- --tw-backdrop-blur: ;
93
- --tw-backdrop-brightness: ;
94
- --tw-backdrop-contrast: ;
95
- --tw-backdrop-grayscale: ;
96
- --tw-backdrop-hue-rotate: ;
97
- --tw-backdrop-invert: ;
98
- --tw-backdrop-opacity: ;
99
- --tw-backdrop-saturate: ;
100
- --tw-backdrop-sepia: ;
84
+ --tw-blur: ;
85
+ --tw-brightness: ;
86
+ --tw-contrast: ;
87
+ --tw-grayscale: ;
88
+ --tw-hue-rotate: ;
89
+ --tw-invert: ;
90
+ --tw-saturate: ;
91
+ --tw-sepia: ;
92
+ --tw-drop-shadow: ;
93
+ --tw-backdrop-blur: ;
94
+ --tw-backdrop-brightness: ;
95
+ --tw-backdrop-contrast: ;
96
+ --tw-backdrop-grayscale: ;
97
+ --tw-backdrop-hue-rotate: ;
98
+ --tw-backdrop-invert: ;
99
+ --tw-backdrop-opacity: ;
100
+ --tw-backdrop-saturate: ;
101
+ --tw-backdrop-sepia:
102
+ ;
101
103
  }
102
104
 
103
105
  .btn {
@@ -145,9 +147,21 @@
145
147
  }
146
148
 
147
149
  .font-sans {
148
- font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
149
- 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
150
- 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
150
+ font-family:
151
+ ui-sans-serif,
152
+ system-ui,
153
+ -apple-system,
154
+ BlinkMacSystemFont,
155
+ 'Segoe UI',
156
+ Roboto,
157
+ 'Helvetica Neue',
158
+ Arial,
159
+ 'Noto Sans',
160
+ sans-serif,
161
+ 'Apple Color Emoji',
162
+ 'Segoe UI Emoji',
163
+ 'Segoe UI Symbol',
164
+ 'Noto Color Emoji';
151
165
  }
152
166
 
153
167
  .text-xs {
@@ -1,4 +1,4 @@
1
- import { h } from '@stencil/core';
1
+ import { h } from "@stencil/core";
2
2
  export class ProtoFauxTrigger {
3
3
  constructor() {
4
4
  this.emitter = undefined;
@@ -1,4 +1,4 @@
1
- import { h } from '@stencil/core';
1
+ import { h } from "@stencil/core";
2
2
  export class ProtoFauxType {
3
3
  constructor() {
4
4
  this.emitter = undefined;
@@ -3,7 +3,7 @@ import { d as defineCustomElement$4 } from './proto-faux-keys2.js';
3
3
  import { d as defineCustomElement$3 } from './proto-faux-stamp2.js';
4
4
  import { d as defineCustomElement$2 } from './proto-faux-type2.js';
5
5
 
6
- const protoFauxTriggerCss = "*,::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;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.font-sans{font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.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)}";
6
+ const protoFauxTriggerCss = "*,::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;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.font-sans{font-family:ui-sans-serif,\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n 'Helvetica Neue',\n Arial,\n 'Noto Sans',\n sans-serif,\n 'Apple Color Emoji',\n 'Segoe UI Emoji',\n 'Segoe UI Symbol',\n 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.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)}";
7
7
 
8
8
  const ProtoFauxTrigger$1 = /*@__PURE__*/ proxyCustomElement(class ProtoFauxTrigger extends HTMLElement {
9
9
  constructor() {
@@ -214,9 +214,9 @@ const registerStyle = (scopeId, cssText, allowCS) => {
214
214
  }
215
215
  styles.set(scopeId, style);
216
216
  };
217
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
217
+ const addStyle = (styleContainerNode, cmpMeta, mode) => {
218
218
  var _a;
219
- let scopeId = getScopeId(cmpMeta);
219
+ const scopeId = getScopeId(cmpMeta);
220
220
  const style = styles.get(scopeId);
221
221
  // if an element is NOT connected then getRootNode() will return the wrong root node
222
222
  // so the fallback is to always use the document for the root node in those cases
@@ -231,11 +231,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
231
231
  }
232
232
  if (!appliedStyles.has(scopeId)) {
233
233
  {
234
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
235
- {
236
- styleElm = doc.createElement('style');
237
- styleElm.innerHTML = style;
238
- }
234
+ styleElm = doc.createElement('style');
235
+ styleElm.innerHTML = style;
239
236
  // Apply CSP nonce to the style tag if it exists
240
237
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
241
238
  if (nonce != null) {
@@ -260,7 +257,6 @@ const attachStyles = (hostRef) => {
260
257
  const flags = cmpMeta.$flags$;
261
258
  const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
262
259
  const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
263
- // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
264
260
  if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
265
261
  // only required when we're NOT using native shadow dom (slot)
266
262
  // or this browser doesn't support native shadow dom
@@ -830,7 +826,19 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
830
826
  * @param fn a function to enqueue
831
827
  * @returns either a `Promise` or the return value of the provided function
832
828
  */
833
- const enqueue = (maybePromise, fn) => maybePromise instanceof Promise ? maybePromise.then(fn) : fn();
829
+ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
830
+ /**
831
+ * Check that a value is a `Promise`. To check, we first see if the value is an
832
+ * instance of the `Promise` global. In a few circumstances, in particular if
833
+ * the global has been overwritten, this is could be misleading, so we also do
834
+ * a little 'duck typing' check to see if the `.then` property of the value is
835
+ * defined and a function.
836
+ *
837
+ * @param maybePromise it might be a promise!
838
+ * @returns whether it is or not
839
+ */
840
+ const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
841
+ (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
834
842
  const updateComponent = async (hostRef, instance, isInitialLoad) => {
835
843
  var _a;
836
844
  const elm = hostRef.$hostElement$;
@@ -1,18 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-91470ec8.js';
2
- export { s as setNonce } from './index-91470ec8.js';
3
-
4
- /*
5
- Stencil Client Patch Esm v3.3.1 | MIT Licensed | https://stenciljs.com
6
- */
7
- const patchEsm = () => {
8
- return promiseResolve();
9
- };
1
+ import { b as bootstrapLazy } from './index-4f7b19b8.js';
2
+ export { s as setNonce } from './index-4f7b19b8.js';
10
3
 
11
4
  const defineCustomElements = (win, options) => {
12
5
  if (typeof window === 'undefined') return Promise.resolve();
13
- return patchEsm().then(() => {
14
6
  return bootstrapLazy([["proto-daisy-db_5",[[0,"proto-faux-trigger",{"emitter":[1],"data":[1040]}],[1,"proto-daisy-db",{"emitter":[1]}],[0,"proto-faux-keys",{"data":[16]}],[0,"proto-faux-stamp",{"data":[16]}],[0,"proto-faux-type",{"emitter":[1],"eventType":[1025,"event-type"]}]]]], options);
15
- });
16
7
  };
17
8
 
18
9
  export { defineCustomElements };
@@ -1,17 +1,14 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-91470ec8.js';
2
- export { s as setNonce } from './index-91470ec8.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-4f7b19b8.js';
2
+ export { s as setNonce } from './index-4f7b19b8.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v3.3.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.0.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchBrowser = () => {
8
8
  const importMeta = import.meta.url;
9
9
  const opts = {};
10
- // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
11
10
  if (importMeta !== '') {
12
11
  opts.resourcesUrl = new URL('.', importMeta).href;
13
- // TODO(STENCIL-661): Remove code related to the dynamic import shim
14
- // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
15
12
  }
16
13
  return promiseResolve(opts);
17
14
  };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-91470ec8.js';
1
+ import { r as registerInstance, h } from './index-4f7b19b8.js';
2
2
 
3
3
  const KEY = 'proto-daisy-db:app-data';
4
4
  const promisedParseJSON = (json) => {
@@ -87,7 +87,7 @@ const ProtoFauxStamp = class {
87
87
  };
88
88
  ProtoFauxStamp.style = protoFauxStampCss;
89
89
 
90
- const protoFauxTriggerCss = "*,::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;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.font-sans{font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.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)}";
90
+ const protoFauxTriggerCss = "*,::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;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.font-sans{font-family:ui-sans-serif,\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n 'Helvetica Neue',\n Arial,\n 'Noto Sans',\n sans-serif,\n 'Apple Color Emoji',\n 'Segoe UI Emoji',\n 'Segoe UI Symbol',\n 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.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)}";
91
91
 
92
92
  const ProtoFauxTrigger = class {
93
93
  constructor(hostRef) {
@@ -0,0 +1,2 @@
1
+ let n,t,e=!1;const l={},o=n=>"object"==(n=typeof n)||"function"===n;function s(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 i=(n,t,...e)=>{let l=null,s=!1,i=!1;const r=[],u=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof n&&!o(l))&&(l+=""),s&&i?r[r.length-1].t+=l:r.push(s?c(null,l):l),i=s)};if(u(e),t){const n=t.className||t.class;n&&(t.class="object"!=typeof n?n:Object.keys(n).filter((t=>n[t])).join(" "))}const a=c(n,null);return a.l=t,r.length>0&&(a.o=r),a},c=(n,t)=>({i:0,u:n,t,$:null,o:null,l:null}),r={},u=new WeakMap,a=n=>"sc-"+n.p,f=(n,t,e,l,s,i)=>{if(e!==l){let c=q(n,t),r=t.toLowerCase();if("class"===t){const t=n.classList,o=y(e),s=y(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else if(c||"o"!==t[0]||"n"!==t[1]){const r=o(l);if((c||r&&null!==l)&&!s)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?c=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(t)||n.removeAttribute(t):(!c||4&i||s)&&!r&&n.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):q(_,r)?r.slice(2):r[2]+t.slice(3),e&&B.rel(n,t,e,!1),l&&B.ael(n,t,l,!1)}},d=/\s/,y=n=>n?n.split(d):[],$=(n,t,e,o)=>{const s=11===t.$.nodeType&&t.$.host?t.$.host:t.$,i=n&&n.l||l,c=t.l||l;for(o in i)o in c||f(s,o,i[o],void 0,e,t.i);for(o in c)f(s,o,i[o],c[o],e,t.i)},p=(t,e,l)=>{const o=e.o[l];let s,i,c=0;if(null!==o.t)s=o.$=z.createTextNode(o.t);else if(s=o.$=z.createElement(o.u),$(null,o,!1),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),o.o)for(c=0;c<o.o.length;++c)i=p(t,o,c),i&&s.appendChild(i);return s},h=(n,e,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=p(null,l,s),c&&(o[s].$=c,r.insertBefore(c,e)))},m=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.$;n&&n.remove()}}},b=(n,t)=>n.u===t.u,v=(n,t)=>{const e=t.$=n.$,l=n.o,o=t.o,s=t.t;null===s?($(n,t,!1),null!==l&&null!==o?((n,t,e,l)=>{let o,s=0,i=0,c=t.length-1,r=t[0],u=t[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&i<=a;)null==r?r=t[++s]:null==u?u=t[--c]:null==f?f=l[++i]:null==d?d=l[--a]:b(r,f)?(v(r,f),r=t[++s],f=l[++i]):b(u,d)?(v(u,d),u=t[--c],d=l[--a]):b(r,d)?(v(r,d),n.insertBefore(r.$,u.$.nextSibling),r=t[++s],d=l[--a]):b(u,f)?(v(u,f),n.insertBefore(u.$,r.$),u=t[--c],f=l[++i]):(o=p(t&&t[i],e,i),f=l[++i],o&&r.$.parentNode.insertBefore(o,r.$));s>c?h(n,null==l[a+1]?null:l[a+1].$,e,l,i,a):i>a&&m(t,s,c)})(e,l,t,o):null!==o?(null!==n.t&&(e.textContent=""),h(e,null,t,o,0,o.length-1)):null!==l&&m(l,0,l.length-1)):n.t!==s&&(e.data=s)},w=(n,t)=>{t&&!n.h&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.h=t)))},S=(n,t)=>{if(n.i|=16,!(4&n.i))return w(n,n.m),nn((()=>g(n,t)));n.i|=512},g=(n,t)=>{const e=n.v;return j(void 0,(()=>k(n,e,t)))},j=(n,t)=>M(n)?n.then(t):t(),M=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,k=async(n,t,e)=>{var l;const o=n.S,i=o["s-rc"];e&&(n=>{const t=n.g,e=n.S,l=t.i,o=((n,t)=>{var e;const l=a(t),o=V.get(l);if(n=11===n.nodeType?n:z,o)if("string"==typeof o){let t,i=u.get(n=n.head||n);if(i||u.set(n,i=new Set),!i.has(l)){{t=z.createElement("style"),t.innerHTML=o;const l=null!==(e=B.j)&&void 0!==e?e:s(z);null!=l&&t.setAttribute("nonce",l),n.insertBefore(t,n.querySelector("link"))}i&&i.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);C(n,t),i&&(i.map((n=>n())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],e=()=>O(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},C=(e,l)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l)=>{const o=e.S,s=e.M||c(null,null),u=(n=>n&&n.u===r)(l)?l:i(null,null,l);t=o.tagName,u.u=null,u.i|=4,e.M=u,u.$=s.$=o.shadowRoot||o,n=o["s-sc"],v(s,u)})(e,l)}catch(n){D(n,e.S)}return null},O=n=>{const t=n.S,e=n.v,l=n.m;64&n.i||(n.i|=64,E(t),x(e,"componentDidLoad"),n.k(t),l||P()),n.h&&(n.h(),n.h=void 0),512&n.i&&Z((()=>S(n,!1))),n.i&=-517},P=()=>{E(z.documentElement),Z((()=>(n=>{const t=B.ce("appload",{detail:{namespace:"proto-daisy-db"}});return n.dispatchEvent(t),t})(_)))},x=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){D(n)}},E=n=>n.classList.add("hydrated"),L=(n,t,e)=>{if(t.C){const l=Object.entries(t.C),s=n.prototype;if(l.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(s,n,{get(){return((n,t)=>R(this).O.get(t))(0,n)},set(e){((n,t,e,l)=>{const s=R(n),i=s.O.get(t),c=s.i,r=s.v;e=((n,t)=>null==n||o(n)?n:1&t?n+"":n)(e,l.C[t][0]),8&c&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(s.O.set(t,e),r&&2==(18&c)&&S(s,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const t=new Map;s.attributeChangedCallback=function(n,e,l){B.jmp((()=>{const e=t.get(n);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(s.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},n.observedAttributes=l.filter((([n,t])=>15&t[0])).map((([n,e])=>{const l=e[1]||n;return t.set(l,n),l}))}}return n},N=(n,t={})=>{var e;const l=[],o=t.exclude||[],i=_.customElements,c=z.head,r=c.querySelector("meta[charset]"),u=z.createElement("style"),f=[];let d,y=!0;Object.assign(B,t),B.P=new URL(t.resourcesUrl||"./",z.baseURI).href,n.map((n=>{n[1].map((t=>{const e={i:t[0],p:t[1],C:t[2],L:t[3]};e.C=t[2];const s=e.p,c=class extends HTMLElement{constructor(n){super(n),W(n=this,e),1&e.i&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?f.push(this):B.jmp((()=>(n=>{if(0==(1&B.i)){const t=R(n),e=t.g,l=()=>{};if(!(1&t.i)){t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){w(t,t.m=e);break}}e.C&&Object.entries(e.C).map((([t,[e]])=>{if(31&e&&n.hasOwnProperty(t)){const e=n[t];delete n[t],n[t]=e}})),(async(n,t,e,l,o)=>{if(0==(32&t.i)){t.i|=32;{if((o=H(e)).then){const n=()=>{};o=await o,n()}o.isProxied||(L(o,e,2),o.isProxied=!0);const n=()=>{};t.i|=8;try{new o(t)}catch(n){D(n)}t.i&=-9,n()}if(o.style){let n=o.style;const t=a(e);if(!V.has(t)){const l=()=>{};((n,t,e)=>{let l=V.get(n);I&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,V.set(n,l)})(t,n,!!(1&e.i)),l()}}}const s=t.m,i=()=>S(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,e)}l()}})(this)))}disconnectedCallback(){B.jmp((()=>{}))}componentOnReady(){return R(this).N}};e.T=n[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,L(c,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(e=B.j)&&void 0!==e?e:s(z);null!=n&&u.setAttribute("nonce",n),c.insertBefore(u,r?r.nextSibling:c.firstChild)}y=!1,f.length?f.map((n=>n.connectedCallback())):B.jmp((()=>d=setTimeout(P,30)))},T=n=>B.j=n,A=new WeakMap,R=n=>A.get(n),U=(n,t)=>A.set(t.v=n,t),W=(n,t)=>{const e={i:0,S:n,g:t,O:new Map};return e.N=new Promise((n=>e.k=n)),n["s-p"]=[],n["s-rc"]=[],A.set(n,e)},q=(n,t)=>t in n,D=(n,t)=>(0,console.error)(n,t),F=new Map,H=n=>{const t=n.p.replace(/-/g,"_"),e=n.T,l=F.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(F.set(e,n),n[t])),D)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},V=new Map,_="undefined"!=typeof window?window:{},z=_.document||{head:{}},B={i:0,P:"",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)},G=n=>Promise.resolve(n),I=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),J=[],K=[],Q=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&B.i?Z(Y):B.raf(Y))},X=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){D(n)}n.length=0},Y=()=>{X(J),X(K),(e=J.length>0)&&B.raf(Y)},Z=n=>G().then(n),nn=Q(K,!0);export{N as b,i as h,G as p,U as r,T as s}
@@ -1 +1 @@
1
- import{r as t,h as o}from"./p-cc5e756a.js";const s="proto-daisy-db:app-data",a=class{constructor(o){t(this,o),this.emitter=void 0}componentDidLoad(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter];t.on("app-data:get",(()=>{var o;console.log("app-data:get"),(o=localStorage.getItem(s),new Promise(((t,s)=>{try{t(JSON.parse(o))}catch(t){s(t)}}))).then((o=>{t.emit("app-data:value",o)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const o=JSON.stringify(t);localStorage.setItem(s,o)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return o("div",null)}};a.style="";const r=class{constructor(o){t(this,o),this.data=void 0}render(){const t=this.data?Object.keys(this.data):[];return o("div",{class:"flex flex-col"},t.map((t=>o("span",null,t))))}};r.style="";const e=class{constructor(o){t(this,o),this.data=void 0}render(){return o("div",{class:"flex"},o("span",null,this.data?this.data.stamp:""))}};e.style="";const i=class{constructor(o){t(this,o),this.emitter=void 0,this.data=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("app-data:value",(t=>{this.data=t}))}emitData(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter],o={login:!0,stamp:Date.now(),theme:"dark",dealers:[]};this.data=void 0,t.emit("app-data:store",o)}}fetchData(){this.emitter&&window[this.emitter]&&window[this.emitter].emit("app-data:get",42)}render(){return o("div",{class:"flex flex-col font-sans"},o("div",{class:"flex flex-row content-center gap-2"},o("button",{class:"btn bg-clrs-navy text-clrs-white",onClick:()=>this.emitData()},"Save"),o("button",{class:"btn bg-clrs-blue text-clrs-white",onClick:()=>this.fetchData()},"Fetch")),o("proto-faux-type",{class:"mt-4",emitter:this.emitter}),o("proto-faux-stamp",{class:"mt-2 text-xs",data:this.data}),o("proto-faux-keys",{class:"mt-2",data:this.data}))}};i.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;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.font-sans{font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.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)}";const n=class{constructor(o){t(this,o),this.emitter=void 0,this.eventType=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("*",(t=>{this.eventType=t}))}render(){return o("div",null,o("span",{class:"text-xs italic"},this.eventType))}};n.style="proto-faux-type{}";export{a as proto_daisy_db,r as proto_faux_keys,e as proto_faux_stamp,i as proto_faux_trigger,n as proto_faux_type}
1
+ import{r as t,h as o}from"./p-d062bae6.js";const s="proto-daisy-db:app-data",a=class{constructor(o){t(this,o),this.emitter=void 0}componentDidLoad(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter];t.on("app-data:get",(()=>{var o;console.log("app-data:get"),(o=localStorage.getItem(s),new Promise(((t,s)=>{try{t(JSON.parse(o))}catch(t){s(t)}}))).then((o=>{t.emit("app-data:value",o)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const o=JSON.stringify(t);localStorage.setItem(s,o)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return o("div",null)}};a.style="";const r=class{constructor(o){t(this,o),this.data=void 0}render(){const t=this.data?Object.keys(this.data):[];return o("div",{class:"flex flex-col"},t.map((t=>o("span",null,t))))}};r.style="";const e=class{constructor(o){t(this,o),this.data=void 0}render(){return o("div",{class:"flex"},o("span",null,this.data?this.data.stamp:""))}};e.style="";const i=class{constructor(o){t(this,o),this.emitter=void 0,this.data=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("app-data:value",(t=>{this.data=t}))}emitData(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter],o={login:!0,stamp:Date.now(),theme:"dark",dealers:[]};this.data=void 0,t.emit("app-data:store",o)}}fetchData(){this.emitter&&window[this.emitter]&&window[this.emitter].emit("app-data:get",42)}render(){return o("div",{class:"flex flex-col font-sans"},o("div",{class:"flex flex-row content-center gap-2"},o("button",{class:"btn bg-clrs-navy text-clrs-white",onClick:()=>this.emitData()},"Save"),o("button",{class:"btn bg-clrs-blue text-clrs-white",onClick:()=>this.fetchData()},"Fetch")),o("proto-faux-type",{class:"mt-4",emitter:this.emitter}),o("proto-faux-stamp",{class:"mt-2 text-xs",data:this.data}),o("proto-faux-keys",{class:"mt-2",data:this.data}))}};i.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;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.font-sans{font-family:ui-sans-serif,\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n 'Helvetica Neue',\n Arial,\n 'Noto Sans',\n sans-serif,\n 'Apple Color Emoji',\n 'Segoe UI Emoji',\n 'Segoe UI Symbol',\n 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.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)}";const n=class{constructor(o){t(this,o),this.emitter=void 0,this.eventType=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("*",(t=>{this.eventType=t}))}render(){return o("div",null,o("span",{class:"text-xs italic"},this.eventType))}};n.style="proto-faux-type{}";export{a as proto_daisy_db,r as proto_faux_keys,e as proto_faux_stamp,i as proto_faux_trigger,n as proto_faux_type}
@@ -1 +1 @@
1
- import{p as t,b as e}from"./p-cc5e756a.js";export{s as setNonce}from"./p-cc5e756a.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((t=>e([["p-b5172c1e",[[0,"proto-faux-trigger",{emitter:[1],data:[1040]}],[1,"proto-daisy-db",{emitter:[1]}],[0,"proto-faux-keys",{data:[16]}],[0,"proto-faux-stamp",{data:[16]}],[0,"proto-faux-type",{emitter:[1],eventType:[1025,"event-type"]}]]]],t)));
1
+ import{p as t,b as e}from"./p-d062bae6.js";export{s as setNonce}from"./p-d062bae6.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((t=>e([["p-fa435e3e",[[0,"proto-faux-trigger",{emitter:[1],data:[1040]}],[1,"proto-daisy-db",{emitter:[1]}],[0,"proto-faux-keys",{data:[16]}],[0,"proto-faux-stamp",{data:[16]}],[0,"proto-faux-type",{emitter:[1],eventType:[1025,"event-type"]}]]]],t)));
@@ -1131,6 +1131,8 @@ export declare namespace JSXBase {
1131
1131
  summary?: string;
1132
1132
  }
1133
1133
  interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1134
+ autoComplete?: string;
1135
+ autocomplete?: string;
1134
1136
  autoFocus?: boolean;
1135
1137
  autofocus?: boolean | string;
1136
1138
  cols?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-daisy-db",
3
- "version": "0.0.163",
3
+ "version": "0.0.165",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -27,17 +27,17 @@
27
27
  "format": "prettier --write src"
28
28
  },
29
29
  "dependencies": {
30
- "@stencil/core": "3.3.1",
31
- "mitt": "3.0.0"
30
+ "@stencil/core": "4.0.1",
31
+ "mitt": "3.0.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "autoprefixer": "10.4.14",
35
35
  "concurrently": "8.2.0",
36
36
  "cspell": "6.31.1",
37
- "postcss": "8.4.24",
38
- "prettier": "2.8.8",
37
+ "postcss": "8.4.25",
38
+ "prettier": "3.0.0",
39
39
  "prettier-plugin-tailwindcss": "0.3.0",
40
- "proto-tailwindcss-clrs": "0.0.253",
40
+ "proto-tailwindcss-clrs": "0.0.254",
41
41
  "tailwindcss": "3.3.2"
42
42
  },
43
43
  "license": "MIT"
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},__assign.apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
@@ -1,2 +0,0 @@
1
- let n,t,e=!1;const l={},o=n=>"object"==(n=typeof n)||"function"===n;function s(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 i=(n,t,...e)=>{let l=null,s=!1,i=!1;const r=[],u=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof n&&!o(l))&&(l+=""),s&&i?r[r.length-1].t+=l:r.push(s?c(null,l):l),i=s)};if(u(e),t){const n=t.className||t.class;n&&(t.class="object"!=typeof n?n:Object.keys(n).filter((t=>n[t])).join(" "))}const a=c(n,null);return a.l=t,r.length>0&&(a.o=r),a},c=(n,t)=>({i:0,u:n,t,$:null,o:null,l:null}),r={},u=new WeakMap,a=n=>"sc-"+n.h,f=(n,t,e,l,s,i)=>{if(e!==l){let c=W(n,t),r=t.toLowerCase();if("class"===t){const t=n.classList,o=$(e),s=$(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else if(c||"o"!==t[0]||"n"!==t[1]){const r=o(l);if((c||r&&null!==l)&&!s)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?c=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(t)||n.removeAttribute(t):(!c||4&i||s)&&!r&&n.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):W(V,r)?r.slice(2):r[2]+t.slice(3),e&&z.rel(n,t,e,!1),l&&z.ael(n,t,l,!1)}},d=/\s/,$=n=>n?n.split(d):[],y=(n,t,e,o)=>{const s=11===t.$.nodeType&&t.$.host?t.$.host:t.$,i=n&&n.l||l,c=t.l||l;for(o in i)o in c||f(s,o,i[o],void 0,e,t.i);for(o in c)f(s,o,i[o],c[o],e,t.i)},h=(t,e,l)=>{const o=e.o[l];let s,i,c=0;if(null!==o.t)s=o.$=_.createTextNode(o.t);else if(s=o.$=_.createElement(o.u),y(null,o,!1),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),o.o)for(c=0;c<o.o.length;++c)i=h(t,o,c),i&&s.appendChild(i);return s},m=(n,e,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=h(null,l,s),c&&(o[s].$=c,r.insertBefore(c,e)))},p=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.$;n&&n.remove()}}},b=(n,t)=>n.u===t.u,v=(n,t)=>{const e=t.$=n.$,l=n.o,o=t.o,s=t.t;null===s?(y(n,t,!1),null!==l&&null!==o?((n,t,e,l)=>{let o,s=0,i=0,c=t.length-1,r=t[0],u=t[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&i<=a;)null==r?r=t[++s]:null==u?u=t[--c]:null==f?f=l[++i]:null==d?d=l[--a]:b(r,f)?(v(r,f),r=t[++s],f=l[++i]):b(u,d)?(v(u,d),u=t[--c],d=l[--a]):b(r,d)?(v(r,d),n.insertBefore(r.$,u.$.nextSibling),r=t[++s],d=l[--a]):b(u,f)?(v(u,f),n.insertBefore(u.$,r.$),u=t[--c],f=l[++i]):(o=h(t&&t[i],e,i),f=l[++i],o&&r.$.parentNode.insertBefore(o,r.$));s>c?m(n,null==l[a+1]?null:l[a+1].$,e,l,i,a):i>a&&p(t,s,c)})(e,l,t,o):null!==o?(null!==n.t&&(e.textContent=""),m(e,null,t,o,0,o.length-1)):null!==l&&p(l,0,l.length-1)):n.t!==s&&(e.data=s)},w=(n,t)=>{t&&!n.m&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.m=t)))},S=(n,t)=>{if(n.i|=16,!(4&n.i))return w(n,n.p),Z((()=>g(n,t)));n.i|=512},g=(n,t)=>{const e=n.v;return j(void 0,(()=>M(n,e,t)))},j=(n,t)=>n instanceof Promise?n.then(t):t(),M=async(n,t,e)=>{var l;const o=n.S,i=o["s-rc"];e&&(n=>{const t=n.g,e=n.S,l=t.i,o=((n,t)=>{var e;let l=a(t);const o=H.get(l);if(n=11===n.nodeType?n:_,o)if("string"==typeof o){let t,i=u.get(n=n.head||n);if(i||u.set(n,i=new Set),!i.has(l)){{t=_.createElement("style"),t.innerHTML=o;const l=null!==(e=z.j)&&void 0!==e?e:s(_);null!=l&&t.setAttribute("nonce",l),n.insertBefore(t,n.querySelector("link"))}i&&i.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);k(n,t),i&&(i.map((n=>n())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],e=()=>C(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},k=(e,l)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l)=>{const o=e.S,s=e.M||c(null,null),u=(n=>n&&n.u===r)(l)?l:i(null,null,l);t=o.tagName,u.u=null,u.i|=4,e.M=u,u.$=s.$=o.shadowRoot||o,n=o["s-sc"],v(s,u)})(e,l)}catch(n){q(n,e.S)}return null},C=n=>{const t=n.S,e=n.v,l=n.p;64&n.i||(n.i|=64,x(t),P(e,"componentDidLoad"),n.k(t),l||O()),n.m&&(n.m(),n.m=void 0),512&n.i&&Y((()=>S(n,!1))),n.i&=-517},O=()=>{x(_.documentElement),Y((()=>(n=>{const t=z.ce("appload",{detail:{namespace:"proto-daisy-db"}});return n.dispatchEvent(t),t})(V)))},P=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){q(n)}},x=n=>n.classList.add("hydrated"),E=(n,t,e)=>{if(t.C){const l=Object.entries(t.C),s=n.prototype;if(l.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(s,n,{get(){return((n,t)=>A(this).O.get(t))(0,n)},set(e){((n,t,e,l)=>{const s=A(n),i=s.O.get(t),c=s.i,r=s.v;e=((n,t)=>null==n||o(n)?n:1&t?n+"":n)(e,l.C[t][0]),8&c&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(s.O.set(t,e),r&&2==(18&c)&&S(s,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const t=new Map;s.attributeChangedCallback=function(n,e,l){z.jmp((()=>{const e=t.get(n);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(s.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},n.observedAttributes=l.filter((([n,t])=>15&t[0])).map((([n,e])=>{const l=e[1]||n;return t.set(l,n),l}))}}return n},L=(n,t={})=>{var e;const l=[],o=t.exclude||[],i=V.customElements,c=_.head,r=c.querySelector("meta[charset]"),u=_.createElement("style"),f=[];let d,$=!0;Object.assign(z,t),z.P=new URL(t.resourcesUrl||"./",_.baseURI).href,n.map((n=>{n[1].map((t=>{const e={i:t[0],h:t[1],C:t[2],L:t[3]};e.C=t[2];const s=e.h,c=class extends HTMLElement{constructor(n){super(n),U(n=this,e),1&e.i&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),$?f.push(this):z.jmp((()=>(n=>{if(0==(1&z.i)){const t=A(n),e=t.g,l=()=>{};if(!(1&t.i)){t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){w(t,t.p=e);break}}e.C&&Object.entries(e.C).map((([t,[e]])=>{if(31&e&&n.hasOwnProperty(t)){const e=n[t];delete n[t],n[t]=e}})),(async(n,t,e,l,o)=>{if(0==(32&t.i)){t.i|=32;{if((o=F(e)).then){const n=()=>{};o=await o,n()}o.isProxied||(E(o,e,2),o.isProxied=!0);const n=()=>{};t.i|=8;try{new o(t)}catch(n){q(n)}t.i&=-9,n()}if(o.style){let n=o.style;const t=a(e);if(!H.has(t)){const l=()=>{};((n,t,e)=>{let l=H.get(n);G&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,H.set(n,l)})(t,n,!!(1&e.i)),l()}}}const s=t.p,i=()=>S(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,e)}l()}})(this)))}disconnectedCallback(){z.jmp((()=>{}))}componentOnReady(){return A(this).N}};e.T=n[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,E(c,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(e=z.j)&&void 0!==e?e:s(_);null!=n&&u.setAttribute("nonce",n),c.insertBefore(u,r?r.nextSibling:c.firstChild)}$=!1,f.length?f.map((n=>n.connectedCallback())):z.jmp((()=>d=setTimeout(O,30)))},N=n=>z.j=n,T=new WeakMap,A=n=>T.get(n),R=(n,t)=>T.set(t.v=n,t),U=(n,t)=>{const e={i:0,S:n,g:t,O:new Map};return e.N=new Promise((n=>e.k=n)),n["s-p"]=[],n["s-rc"]=[],T.set(n,e)},W=(n,t)=>t in n,q=(n,t)=>(0,console.error)(n,t),D=new Map,F=n=>{const t=n.h.replace(/-/g,"_"),e=n.T,l=D.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(D.set(e,n),n[t])),q)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},H=new Map,V="undefined"!=typeof window?window:{},_=V.document||{head:{}},z={i:0,P:"",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)},B=n=>Promise.resolve(n),G=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),I=[],J=[],K=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&z.i?Y(X):z.raf(X))},Q=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){q(n)}n.length=0},X=()=>{Q(I),Q(J),(e=I.length>0)&&z.raf(X)},Y=n=>B().then(n),Z=K(J,!0);export{L as b,i as h,B as p,R as r,N as s}