@decidables/detectable-elements 0.2.15 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/detectableElements.esm.js +186 -188
- package/lib/detectableElements.esm.js.map +1 -1
- package/lib/detectableElements.esm.min.js +3 -3
- package/lib/detectableElements.esm.min.js.map +1 -1
- package/lib/detectableElements.umd.js +186 -188
- package/lib/detectableElements.umd.js.map +1 -1
- package/lib/detectableElements.umd.min.js +3 -3
- package/lib/detectableElements.umd.min.js.map +1 -1
- package/package.json +5 -5
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
11
|
*/
|
|
12
12
|
const t$1 = globalThis,
|
|
13
|
-
e$2 = t$1.ShadowRoot && (
|
|
14
|
-
s$
|
|
13
|
+
e$2 = t$1.ShadowRoot && (undefined === t$1.ShadyCSS || t$1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
14
|
+
s$1 = Symbol(),
|
|
15
15
|
o$3 = new WeakMap();
|
|
16
16
|
let n$2 = class n {
|
|
17
17
|
constructor(t, e, o) {
|
|
18
|
-
if (this._$cssResult$ =
|
|
18
|
+
if (this._$cssResult$ = true, o !== s$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
19
19
|
this.cssText = t, this.t = e;
|
|
20
20
|
}
|
|
21
21
|
get styleSheet() {
|
|
22
22
|
let t = this.o;
|
|
23
23
|
const s = this.t;
|
|
24
|
-
if (e$2 &&
|
|
25
|
-
const e =
|
|
26
|
-
e && (t = o$3.get(s)),
|
|
24
|
+
if (e$2 && undefined === t) {
|
|
25
|
+
const e = undefined !== s && 1 === s.length;
|
|
26
|
+
e && (t = o$3.get(s)), undefined === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$3.set(s, t));
|
|
27
27
|
}
|
|
28
28
|
return t;
|
|
29
29
|
}
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
return this.cssText;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
const r$3 = t => new n$2("string" == typeof t ? t : t + "",
|
|
35
|
-
i$
|
|
34
|
+
const r$3 = t => new n$2("string" == typeof t ? t : t + "", undefined, s$1),
|
|
35
|
+
i$3 = (t, ...e) => {
|
|
36
36
|
const o = 1 === t.length ? t[0] : e.reduce((e, s, o) => e + (t => {
|
|
37
|
-
if (
|
|
37
|
+
if (true === t._$cssResult$) return t.cssText;
|
|
38
38
|
if ("number" == typeof t) return t;
|
|
39
39
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
40
40
|
})(s) + t[o + 1], t[0]);
|
|
41
|
-
return new n$2(o, t, s$
|
|
41
|
+
return new n$2(o, t, s$1);
|
|
42
42
|
},
|
|
43
43
|
S$1 = (s, o) => {
|
|
44
44
|
if (e$2) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
|
|
45
45
|
const o = document.createElement("style"),
|
|
46
46
|
n = t$1.litNonce;
|
|
47
|
-
|
|
47
|
+
undefined !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
c$2 = e$2 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
60
60
|
*/
|
|
61
61
|
const {
|
|
62
|
-
is: i$
|
|
62
|
+
is: i$2,
|
|
63
63
|
defineProperty: e$1,
|
|
64
64
|
getOwnPropertyDescriptor: r$2,
|
|
65
65
|
getOwnPropertyNames: h$1,
|
|
@@ -103,12 +103,12 @@
|
|
|
103
103
|
return i;
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
|
-
f$1 = (t, s) => !i$
|
|
106
|
+
f$1 = (t, s) => !i$2(t, s),
|
|
107
107
|
y$2 = {
|
|
108
|
-
attribute:
|
|
108
|
+
attribute: true,
|
|
109
109
|
type: String,
|
|
110
110
|
converter: u$1,
|
|
111
|
-
reflect:
|
|
111
|
+
reflect: false,
|
|
112
112
|
hasChanged: f$1
|
|
113
113
|
};
|
|
114
114
|
Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= new WeakMap();
|
|
@@ -120,10 +120,10 @@
|
|
|
120
120
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
121
121
|
}
|
|
122
122
|
static createProperty(t, s = y$2) {
|
|
123
|
-
if (s.state && (s.attribute =
|
|
123
|
+
if (s.state && (s.attribute = false), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
124
124
|
const i = Symbol(),
|
|
125
125
|
r = this.getPropertyDescriptor(t, i, s);
|
|
126
|
-
|
|
126
|
+
undefined !== r && e$1(this.prototype, t, r);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
static getPropertyDescriptor(t, s, i) {
|
|
@@ -146,8 +146,8 @@
|
|
|
146
146
|
const r = e?.call(this);
|
|
147
147
|
h.call(this, s), this.requestUpdate(t, r, i);
|
|
148
148
|
},
|
|
149
|
-
configurable:
|
|
150
|
-
enumerable:
|
|
149
|
+
configurable: true,
|
|
150
|
+
enumerable: true
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
static getPropertyOptions(t) {
|
|
@@ -156,11 +156,11 @@
|
|
|
156
156
|
static _$Ei() {
|
|
157
157
|
if (this.hasOwnProperty(d$1("elementProperties"))) return;
|
|
158
158
|
const t = n$1(this);
|
|
159
|
-
t.finalize(),
|
|
159
|
+
t.finalize(), undefined !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
160
160
|
}
|
|
161
161
|
static finalize() {
|
|
162
162
|
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
163
|
-
if (this.finalized =
|
|
163
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
164
164
|
const t = this.properties,
|
|
165
165
|
s = [...h$1(t), ...o$2(t)];
|
|
166
166
|
for (const i of s) this.createProperty(i, t[i]);
|
|
@@ -168,12 +168,12 @@
|
|
|
168
168
|
const t = this[Symbol.metadata];
|
|
169
169
|
if (null !== t) {
|
|
170
170
|
const s = litPropertyMetadata.get(t);
|
|
171
|
-
if (
|
|
171
|
+
if (undefined !== s) for (const [t, i] of s) this.elementProperties.set(t, i);
|
|
172
172
|
}
|
|
173
173
|
this._$Eh = new Map();
|
|
174
174
|
for (const [t, s] of this.elementProperties) {
|
|
175
175
|
const i = this._$Eu(t, s);
|
|
176
|
-
|
|
176
|
+
undefined !== i && this._$Eh.set(i, t);
|
|
177
177
|
}
|
|
178
178
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
179
179
|
}
|
|
@@ -182,21 +182,21 @@
|
|
|
182
182
|
if (Array.isArray(s)) {
|
|
183
183
|
const e = new Set(s.flat(1 / 0).reverse());
|
|
184
184
|
for (const s of e) i.unshift(c$2(s));
|
|
185
|
-
} else
|
|
185
|
+
} else undefined !== s && i.push(c$2(s));
|
|
186
186
|
return i;
|
|
187
187
|
}
|
|
188
188
|
static _$Eu(t, s) {
|
|
189
189
|
const i = s.attribute;
|
|
190
|
-
return
|
|
190
|
+
return false === i ? undefined : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : undefined;
|
|
191
191
|
}
|
|
192
192
|
constructor() {
|
|
193
|
-
super(), this._$Ep =
|
|
193
|
+
super(), this._$Ep = undefined, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
194
194
|
}
|
|
195
195
|
_$Ev() {
|
|
196
196
|
this._$ES = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(t => t(this));
|
|
197
197
|
}
|
|
198
198
|
addController(t) {
|
|
199
|
-
(this._$EO ??= new Set()).add(t),
|
|
199
|
+
(this._$EO ??= new Set()).add(t), undefined !== this.renderRoot && this.isConnected && t.hostConnected?.();
|
|
200
200
|
}
|
|
201
201
|
removeController(t) {
|
|
202
202
|
this._$EO?.delete(t);
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
return S$1(t, this.constructor.elementStyles), t;
|
|
213
213
|
}
|
|
214
214
|
connectedCallback() {
|
|
215
|
-
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(
|
|
215
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(t => t.hostConnected?.());
|
|
216
216
|
}
|
|
217
217
|
enableUpdating(t) {}
|
|
218
218
|
disconnectedCallback() {
|
|
@@ -224,34 +224,34 @@
|
|
|
224
224
|
_$EC(t, s) {
|
|
225
225
|
const i = this.constructor.elementProperties.get(t),
|
|
226
226
|
e = this.constructor._$Eu(t, i);
|
|
227
|
-
if (
|
|
228
|
-
const r = (
|
|
227
|
+
if (undefined !== e && true === i.reflect) {
|
|
228
|
+
const r = (undefined !== i.converter?.toAttribute ? i.converter : u$1).toAttribute(s, i.type);
|
|
229
229
|
this._$Em = t, null == r ? this.removeAttribute(e) : this.setAttribute(e, r), this._$Em = null;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
_$AK(t, s) {
|
|
233
233
|
const i = this.constructor,
|
|
234
234
|
e = i._$Eh.get(t);
|
|
235
|
-
if (
|
|
235
|
+
if (undefined !== e && this._$Em !== e) {
|
|
236
236
|
const t = i.getPropertyOptions(e),
|
|
237
237
|
r = "function" == typeof t.converter ? {
|
|
238
238
|
fromAttribute: t.converter
|
|
239
|
-
} :
|
|
239
|
+
} : undefined !== t.converter?.fromAttribute ? t.converter : u$1;
|
|
240
240
|
this._$Em = e, this[e] = r.fromAttribute(s, t.type), this._$Em = null;
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
requestUpdate(t, s, i) {
|
|
244
|
-
if (
|
|
244
|
+
if (undefined !== t) {
|
|
245
245
|
if (i ??= this.constructor.getPropertyOptions(t), !(i.hasChanged ?? f$1)(this[t], s)) return;
|
|
246
246
|
this.P(t, s, i);
|
|
247
247
|
}
|
|
248
|
-
|
|
248
|
+
false === this.isUpdatePending && (this._$ES = this._$ET());
|
|
249
249
|
}
|
|
250
250
|
P(t, s, i) {
|
|
251
|
-
this._$AL.has(t) || this._$AL.set(t, s),
|
|
251
|
+
this._$AL.has(t) || this._$AL.set(t, s), true === i.reflect && this._$Em !== t && (this._$Ej ??= new Set()).add(t);
|
|
252
252
|
}
|
|
253
253
|
async _$ET() {
|
|
254
|
-
this.isUpdatePending =
|
|
254
|
+
this.isUpdatePending = true;
|
|
255
255
|
try {
|
|
256
256
|
await this._$ES;
|
|
257
257
|
} catch (t) {
|
|
@@ -268,26 +268,26 @@
|
|
|
268
268
|
if (!this.hasUpdated) {
|
|
269
269
|
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
270
270
|
for (const [t, s] of this._$Ep) this[t] = s;
|
|
271
|
-
this._$Ep =
|
|
271
|
+
this._$Ep = undefined;
|
|
272
272
|
}
|
|
273
273
|
const t = this.constructor.elementProperties;
|
|
274
|
-
if (t.size > 0) for (const [s, i] of t)
|
|
274
|
+
if (t.size > 0) for (const [s, i] of t) true !== i.wrapped || this._$AL.has(s) || undefined === this[s] || this.P(s, this[s], i);
|
|
275
275
|
}
|
|
276
|
-
let t =
|
|
276
|
+
let t = false;
|
|
277
277
|
const s = this._$AL;
|
|
278
278
|
try {
|
|
279
279
|
t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$EU();
|
|
280
280
|
} catch (s) {
|
|
281
|
-
throw t =
|
|
281
|
+
throw t = false, this._$EU(), s;
|
|
282
282
|
}
|
|
283
283
|
t && this._$AE(s);
|
|
284
284
|
}
|
|
285
285
|
willUpdate(t) {}
|
|
286
286
|
_$AE(t) {
|
|
287
|
-
this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated =
|
|
287
|
+
this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
|
|
288
288
|
}
|
|
289
289
|
_$EU() {
|
|
290
|
-
this._$AL = new Map(), this.isUpdatePending =
|
|
290
|
+
this._$AL = new Map(), this.isUpdatePending = false;
|
|
291
291
|
}
|
|
292
292
|
get updateComplete() {
|
|
293
293
|
return this.getUpdateComplete();
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
return this._$ES;
|
|
297
297
|
}
|
|
298
298
|
shouldUpdate(t) {
|
|
299
|
-
return
|
|
299
|
+
return true;
|
|
300
300
|
}
|
|
301
301
|
update(t) {
|
|
302
302
|
this._$Ej &&= this._$Ej.forEach(t => this._$EC(t, this[t])), this._$EU();
|
|
@@ -316,10 +316,10 @@
|
|
|
316
316
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
317
317
|
*/
|
|
318
318
|
const t = globalThis,
|
|
319
|
-
i = t.trustedTypes,
|
|
320
|
-
s
|
|
319
|
+
i$1 = t.trustedTypes,
|
|
320
|
+
s = i$1 ? i$1.createPolicy("lit-html", {
|
|
321
321
|
createHTML: t => t
|
|
322
|
-
}) :
|
|
322
|
+
}) : undefined,
|
|
323
323
|
e = "$lit$",
|
|
324
324
|
h = `lit$${Math.random().toFixed(9).slice(2)}$`,
|
|
325
325
|
o$1 = "?" + h,
|
|
@@ -344,19 +344,19 @@
|
|
|
344
344
|
}),
|
|
345
345
|
x$1 = y$1(1),
|
|
346
346
|
b = y$1(2),
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
T = Symbol.for("lit-noChange"),
|
|
348
|
+
E = Symbol.for("lit-nothing"),
|
|
349
349
|
A = new WeakMap(),
|
|
350
|
-
|
|
351
|
-
function
|
|
352
|
-
if (!
|
|
353
|
-
return
|
|
350
|
+
C = r$1.createTreeWalker(r$1, 129);
|
|
351
|
+
function P(t, i) {
|
|
352
|
+
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
353
|
+
return undefined !== s ? s.createHTML(i) : i;
|
|
354
354
|
}
|
|
355
|
-
const
|
|
355
|
+
const V = (t, i) => {
|
|
356
356
|
const s = t.length - 1,
|
|
357
357
|
o = [];
|
|
358
358
|
let r,
|
|
359
|
-
l = 2 === i ? "<svg>" : "",
|
|
359
|
+
l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "",
|
|
360
360
|
c = f;
|
|
361
361
|
for (let i = 0; i < s; i++) {
|
|
362
362
|
const s = t[i];
|
|
@@ -364,13 +364,13 @@
|
|
|
364
364
|
u,
|
|
365
365
|
d = -1,
|
|
366
366
|
y = 0;
|
|
367
|
-
for (; y < s.length && (c.lastIndex = y, u = c.exec(s), null !== u);) y = c.lastIndex, c === f ? "!--" === u[1] ? c = v :
|
|
367
|
+
for (; y < s.length && (c.lastIndex = y, u = c.exec(s), null !== u);) y = c.lastIndex, c === f ? "!--" === u[1] ? c = v : undefined !== u[1] ? c = _ : undefined !== u[2] ? ($.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m) : undefined !== u[3] && (c = m) : c === m ? ">" === u[0] ? (c = r ?? f, d = -1) : undefined === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = undefined === u[3] ? m : '"' === u[3] ? g : p) : c === g || c === p ? c = m : c === v || c === _ ? c = f : (c = m, r = undefined);
|
|
368
368
|
const x = c === m && t[i + 1].startsWith("/>") ? " " : "";
|
|
369
369
|
l += c === f ? s + n : d >= 0 ? (o.push(a), s.slice(0, d) + e + s.slice(d) + h + x) : s + h + (-2 === d ? i : x);
|
|
370
370
|
}
|
|
371
|
-
return [
|
|
371
|
+
return [P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), o];
|
|
372
372
|
};
|
|
373
|
-
class
|
|
373
|
+
class N {
|
|
374
374
|
constructor({
|
|
375
375
|
strings: t,
|
|
376
376
|
_$litType$: s
|
|
@@ -381,12 +381,12 @@
|
|
|
381
381
|
a = 0;
|
|
382
382
|
const u = t.length - 1,
|
|
383
383
|
d = this.parts,
|
|
384
|
-
[f, v] =
|
|
385
|
-
if (this.el =
|
|
384
|
+
[f, v] = V(t, s);
|
|
385
|
+
if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
|
|
386
386
|
const t = this.el.content.firstChild;
|
|
387
387
|
t.replaceWith(...t.childNodes);
|
|
388
388
|
}
|
|
389
|
-
for (; null !== (r =
|
|
389
|
+
for (; null !== (r = C.nextNode()) && d.length < u;) {
|
|
390
390
|
if (1 === r.nodeType) {
|
|
391
391
|
if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(e)) {
|
|
392
392
|
const i = v[a++],
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
index: c,
|
|
398
398
|
name: e[2],
|
|
399
399
|
strings: s,
|
|
400
|
-
ctor: "." === e[1] ?
|
|
400
|
+
ctor: "." === e[1] ? H : "?" === e[1] ? I : "@" === e[1] ? L : k
|
|
401
401
|
}), r.removeAttribute(t);
|
|
402
402
|
} else t.startsWith(h) && (d.push({
|
|
403
403
|
type: 6,
|
|
@@ -407,8 +407,8 @@
|
|
|
407
407
|
const t = r.textContent.split(h),
|
|
408
408
|
s = t.length - 1;
|
|
409
409
|
if (s > 0) {
|
|
410
|
-
r.textContent = i ? i.emptyScript : "";
|
|
411
|
-
for (let i = 0; i < s; i++) r.append(t[i], l()),
|
|
410
|
+
r.textContent = i$1 ? i$1.emptyScript : "";
|
|
411
|
+
for (let i = 0; i < s; i++) r.append(t[i], l()), C.nextNode(), d.push({
|
|
412
412
|
type: 2,
|
|
413
413
|
index: ++c
|
|
414
414
|
});
|
|
@@ -433,15 +433,15 @@
|
|
|
433
433
|
return s.innerHTML = t, s;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
function
|
|
437
|
-
if (i ===
|
|
438
|
-
let h =
|
|
439
|
-
const o = c(i) ?
|
|
440
|
-
return h?.constructor !== o && (h?._$AO?.(
|
|
436
|
+
function S(t, i, s = t, e) {
|
|
437
|
+
if (i === T) return i;
|
|
438
|
+
let h = undefined !== e ? s._$Co?.[e] : s._$Cl;
|
|
439
|
+
const o = c(i) ? undefined : i._$litDirective$;
|
|
440
|
+
return h?.constructor !== o && (h?._$AO?.(false), undefined === o ? h = undefined : (h = new o(t), h._$AT(t, s, e)), undefined !== e ? (s._$Co ??= [])[e] = h : s._$Cl = h), undefined !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
|
|
441
441
|
}
|
|
442
|
-
class
|
|
442
|
+
class M {
|
|
443
443
|
constructor(t, i) {
|
|
444
|
-
this._$AV = [], this._$AN =
|
|
444
|
+
this._$AV = [], this._$AN = undefined, this._$AD = t, this._$AM = i;
|
|
445
445
|
}
|
|
446
446
|
get parentNode() {
|
|
447
447
|
return this._$AM.parentNode;
|
|
@@ -456,37 +456,37 @@
|
|
|
456
456
|
},
|
|
457
457
|
parts: s
|
|
458
458
|
} = this._$AD,
|
|
459
|
-
e = (t?.creationScope ?? r$1).importNode(i,
|
|
460
|
-
|
|
461
|
-
let h =
|
|
459
|
+
e = (t?.creationScope ?? r$1).importNode(i, true);
|
|
460
|
+
C.currentNode = e;
|
|
461
|
+
let h = C.nextNode(),
|
|
462
462
|
o = 0,
|
|
463
463
|
n = 0,
|
|
464
464
|
l = s[0];
|
|
465
|
-
for (;
|
|
465
|
+
for (; undefined !== l;) {
|
|
466
466
|
if (o === l.index) {
|
|
467
467
|
let i;
|
|
468
|
-
2 === l.type ? i = new
|
|
468
|
+
2 === l.type ? i = new R(h, h.nextSibling, this, t) : 1 === l.type ? i = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i = new z(h, this, t)), this._$AV.push(i), l = s[++n];
|
|
469
469
|
}
|
|
470
|
-
o !== l?.index && (h =
|
|
470
|
+
o !== l?.index && (h = C.nextNode(), o++);
|
|
471
471
|
}
|
|
472
|
-
return
|
|
472
|
+
return C.currentNode = r$1, e;
|
|
473
473
|
}
|
|
474
474
|
p(t) {
|
|
475
475
|
let i = 0;
|
|
476
|
-
for (const s of this._$AV)
|
|
476
|
+
for (const s of this._$AV) undefined !== s && (undefined !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
class
|
|
479
|
+
class R {
|
|
480
480
|
get _$AU() {
|
|
481
481
|
return this._$AM?._$AU ?? this._$Cv;
|
|
482
482
|
}
|
|
483
483
|
constructor(t, i, s, e) {
|
|
484
|
-
this.type = 2, this._$AH =
|
|
484
|
+
this.type = 2, this._$AH = E, this._$AN = undefined, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = e?.isConnected ?? true;
|
|
485
485
|
}
|
|
486
486
|
get parentNode() {
|
|
487
487
|
let t = this._$AA.parentNode;
|
|
488
488
|
const i = this._$AM;
|
|
489
|
-
return
|
|
489
|
+
return undefined !== i && 11 === t?.nodeType && (t = i.parentNode), t;
|
|
490
490
|
}
|
|
491
491
|
get startNode() {
|
|
492
492
|
return this._$AA;
|
|
@@ -495,52 +495,52 @@
|
|
|
495
495
|
return this._$AB;
|
|
496
496
|
}
|
|
497
497
|
_$AI(t, i = this) {
|
|
498
|
-
t =
|
|
498
|
+
t = S(this, t, i), c(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : undefined !== t._$litType$ ? this.$(t) : undefined !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
|
|
499
499
|
}
|
|
500
|
-
|
|
500
|
+
O(t) {
|
|
501
501
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
502
502
|
}
|
|
503
503
|
T(t) {
|
|
504
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.
|
|
504
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
505
505
|
}
|
|
506
506
|
_(t) {
|
|
507
|
-
this._$AH !==
|
|
507
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$1.createTextNode(t)), this._$AH = t;
|
|
508
508
|
}
|
|
509
509
|
$(t) {
|
|
510
510
|
const {
|
|
511
511
|
values: i,
|
|
512
512
|
_$litType$: s
|
|
513
513
|
} = t,
|
|
514
|
-
e = "number" == typeof s ? this._$AC(t) : (
|
|
514
|
+
e = "number" == typeof s ? this._$AC(t) : (undefined === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
|
|
515
515
|
if (this._$AH?._$AD === e) this._$AH.p(i);else {
|
|
516
|
-
const t = new
|
|
516
|
+
const t = new M(e, this),
|
|
517
517
|
s = t.u(this.options);
|
|
518
518
|
t.p(i), this.T(s), this._$AH = t;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
_$AC(t) {
|
|
522
522
|
let i = A.get(t.strings);
|
|
523
|
-
return
|
|
523
|
+
return undefined === i && A.set(t.strings, i = new N(t)), i;
|
|
524
524
|
}
|
|
525
525
|
k(t) {
|
|
526
526
|
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
527
527
|
const i = this._$AH;
|
|
528
528
|
let s,
|
|
529
529
|
e = 0;
|
|
530
|
-
for (const h of t) e === i.length ? i.push(s = new
|
|
530
|
+
for (const h of t) e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
|
531
531
|
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
532
532
|
}
|
|
533
533
|
_$AR(t = this._$AA.nextSibling, i) {
|
|
534
|
-
for (this._$AP?.(
|
|
534
|
+
for (this._$AP?.(false, true, i); t && t !== this._$AB;) {
|
|
535
535
|
const i = t.nextSibling;
|
|
536
536
|
t.remove(), t = i;
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
setConnected(t) {
|
|
540
|
-
|
|
540
|
+
undefined === this._$AM && (this._$Cv = t, this._$AP?.(t));
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
class
|
|
543
|
+
class k {
|
|
544
544
|
get tagName() {
|
|
545
545
|
return this.element.tagName;
|
|
546
546
|
}
|
|
@@ -548,72 +548,72 @@
|
|
|
548
548
|
return this._$AM._$AU;
|
|
549
549
|
}
|
|
550
550
|
constructor(t, i, s, e, h) {
|
|
551
|
-
this.type = 1, this._$AH =
|
|
551
|
+
this.type = 1, this._$AH = E, this._$AN = undefined, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = E;
|
|
552
552
|
}
|
|
553
553
|
_$AI(t, i = this, s, e) {
|
|
554
554
|
const h = this.strings;
|
|
555
|
-
let o =
|
|
556
|
-
if (
|
|
555
|
+
let o = false;
|
|
556
|
+
if (undefined === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);else {
|
|
557
557
|
const e = t;
|
|
558
558
|
let n, r;
|
|
559
|
-
for (t = h[0], n = 0; n < h.length - 1; n++) r =
|
|
559
|
+
for (t = h[0], n = 0; n < h.length - 1; n++) r = S(this, e[s + n], i, n), r === T && (r = this._$AH[n]), o ||= !c(r) || r !== this._$AH[n], r === E ? t = E : t !== E && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
|
|
560
560
|
}
|
|
561
561
|
o && !e && this.j(t);
|
|
562
562
|
}
|
|
563
563
|
j(t) {
|
|
564
|
-
t ===
|
|
564
|
+
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
class
|
|
567
|
+
class H extends k {
|
|
568
568
|
constructor() {
|
|
569
569
|
super(...arguments), this.type = 3;
|
|
570
570
|
}
|
|
571
571
|
j(t) {
|
|
572
|
-
this.element[this.name] = t ===
|
|
572
|
+
this.element[this.name] = t === E ? undefined : t;
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
class
|
|
575
|
+
class I extends k {
|
|
576
576
|
constructor() {
|
|
577
577
|
super(...arguments), this.type = 4;
|
|
578
578
|
}
|
|
579
579
|
j(t) {
|
|
580
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
580
|
+
this.element.toggleAttribute(this.name, !!t && t !== E);
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
|
-
class
|
|
583
|
+
class L extends k {
|
|
584
584
|
constructor(t, i, s, e, h) {
|
|
585
585
|
super(t, i, s, e, h), this.type = 5;
|
|
586
586
|
}
|
|
587
587
|
_$AI(t, i = this) {
|
|
588
|
-
if ((t =
|
|
588
|
+
if ((t = S(this, t, i, 0) ?? E) === T) return;
|
|
589
589
|
const s = this._$AH,
|
|
590
|
-
e = t ===
|
|
591
|
-
h = t !==
|
|
590
|
+
e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
|
|
591
|
+
h = t !== E && (s === E || e);
|
|
592
592
|
e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
593
593
|
}
|
|
594
594
|
handleEvent(t) {
|
|
595
595
|
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
class
|
|
598
|
+
class z {
|
|
599
599
|
constructor(t, i, s) {
|
|
600
|
-
this.element = t, this.type = 6, this._$AN =
|
|
600
|
+
this.element = t, this.type = 6, this._$AN = undefined, this._$AM = i, this.options = s;
|
|
601
601
|
}
|
|
602
602
|
get _$AU() {
|
|
603
603
|
return this._$AM._$AU;
|
|
604
604
|
}
|
|
605
605
|
_$AI(t) {
|
|
606
|
-
|
|
606
|
+
S(this, t);
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
const
|
|
610
|
-
|
|
611
|
-
const
|
|
609
|
+
const j = t.litHtmlPolyfillSupport;
|
|
610
|
+
j?.(N, R), (t.litHtmlVersions ??= []).push("3.2.1");
|
|
611
|
+
const B = (t, i, s) => {
|
|
612
612
|
const e = s?.renderBefore ?? i;
|
|
613
613
|
let h = e._$litPart$;
|
|
614
|
-
if (
|
|
614
|
+
if (undefined === h) {
|
|
615
615
|
const t = s?.renderBefore ?? null;
|
|
616
|
-
e._$litPart$ = h = new
|
|
616
|
+
e._$litPart$ = h = new R(i.insertBefore(l(), t), t, undefined, s ?? {});
|
|
617
617
|
}
|
|
618
618
|
return h._$AI(t), h;
|
|
619
619
|
};
|
|
@@ -623,38 +623,38 @@
|
|
|
623
623
|
* Copyright 2017 Google LLC
|
|
624
624
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
625
625
|
*/
|
|
626
|
-
class
|
|
626
|
+
class r extends b$1 {
|
|
627
627
|
constructor() {
|
|
628
628
|
super(...arguments), this.renderOptions = {
|
|
629
629
|
host: this
|
|
630
|
-
}, this._$Do =
|
|
630
|
+
}, this._$Do = undefined;
|
|
631
631
|
}
|
|
632
632
|
createRenderRoot() {
|
|
633
633
|
const t = super.createRenderRoot();
|
|
634
634
|
return this.renderOptions.renderBefore ??= t.firstChild, t;
|
|
635
635
|
}
|
|
636
636
|
update(t) {
|
|
637
|
-
const
|
|
638
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
637
|
+
const s = this.render();
|
|
638
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = B(s, this.renderRoot, this.renderOptions);
|
|
639
639
|
}
|
|
640
640
|
connectedCallback() {
|
|
641
|
-
super.connectedCallback(), this._$Do?.setConnected(
|
|
641
|
+
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
642
642
|
}
|
|
643
643
|
disconnectedCallback() {
|
|
644
|
-
super.disconnectedCallback(), this._$Do?.setConnected(
|
|
644
|
+
super.disconnectedCallback(), this._$Do?.setConnected(false);
|
|
645
645
|
}
|
|
646
646
|
render() {
|
|
647
|
-
return
|
|
647
|
+
return T;
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
|
-
|
|
651
|
-
LitElement:
|
|
650
|
+
r._$litElement$ = true, r["finalized"] = true, globalThis.litElementHydrateSupport?.({
|
|
651
|
+
LitElement: r
|
|
652
652
|
});
|
|
653
|
-
const
|
|
654
|
-
|
|
655
|
-
LitElement:
|
|
653
|
+
const i = globalThis.litElementPolyfillSupport;
|
|
654
|
+
i?.({
|
|
655
|
+
LitElement: r
|
|
656
656
|
});
|
|
657
|
-
(globalThis.litElementVersions ??= []).push("4.
|
|
657
|
+
(globalThis.litElementVersions ??= []).push("4.1.1");
|
|
658
658
|
|
|
659
659
|
function ascending$2(a, b) {
|
|
660
660
|
return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
@@ -2119,7 +2119,7 @@
|
|
|
2119
2119
|
}
|
|
2120
2120
|
}
|
|
2121
2121
|
|
|
2122
|
-
var constant$3 =
|
|
2122
|
+
var constant$3 = x => () => x;
|
|
2123
2123
|
|
|
2124
2124
|
function DragEvent(type, {
|
|
2125
2125
|
sourceEvent,
|
|
@@ -2725,7 +2725,7 @@
|
|
|
2725
2725
|
return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
|
|
2726
2726
|
}
|
|
2727
2727
|
|
|
2728
|
-
var constant$2 =
|
|
2728
|
+
var constant$2 = x => () => x;
|
|
2729
2729
|
|
|
2730
2730
|
function linear$2(a, d) {
|
|
2731
2731
|
return function (t) {
|
|
@@ -4080,7 +4080,7 @@
|
|
|
4080
4080
|
return area;
|
|
4081
4081
|
}
|
|
4082
4082
|
|
|
4083
|
-
var constant$1 =
|
|
4083
|
+
var constant$1 = x => () => x;
|
|
4084
4084
|
|
|
4085
4085
|
function contains (ring, hole) {
|
|
4086
4086
|
var i = -1,
|
|
@@ -4896,7 +4896,7 @@
|
|
|
4896
4896
|
}
|
|
4897
4897
|
|
|
4898
4898
|
var clipMax = 1e9,
|
|
4899
|
-
clipMin = -
|
|
4899
|
+
clipMin = -1e9;
|
|
4900
4900
|
|
|
4901
4901
|
// TODO Use d3-polygon’s polygonContains here for the ring check?
|
|
4902
4902
|
// TODO Eliminate duplicate buffering in clipBuffer and polygon.push?
|
|
@@ -5043,7 +5043,7 @@
|
|
|
5043
5043
|
};
|
|
5044
5044
|
}
|
|
5045
5045
|
|
|
5046
|
-
var identity$2 =
|
|
5046
|
+
var identity$2 = x => x;
|
|
5047
5047
|
|
|
5048
5048
|
var areaSum = new Adder(),
|
|
5049
5049
|
areaRingSum = new Adder(),
|
|
@@ -5317,7 +5317,7 @@
|
|
|
5317
5317
|
const r = this._radius;
|
|
5318
5318
|
const s = this._;
|
|
5319
5319
|
this._ = ""; // stash the old string so we can cache the circle path fragment
|
|
5320
|
-
this._append`m0,${r}a${r},${r} 0 1,1 0,${-2 * r}a${r},${r} 0 1,1 0,${2 * r}z`;
|
|
5320
|
+
this._append`m0,${r}a${r},${r} 0 1,1 0,${ -2 * r}a${r},${r} 0 1,1 0,${2 * r}z`;
|
|
5321
5321
|
cacheRadius = r;
|
|
5322
5322
|
cacheAppend = this._append;
|
|
5323
5323
|
cacheCircle = this._;
|
|
@@ -5960,7 +5960,7 @@
|
|
|
5960
5960
|
DecidablesElement Base Class - Not intended for instantiation!
|
|
5961
5961
|
<decidables-element>
|
|
5962
5962
|
*/
|
|
5963
|
-
class DecidablesElement extends
|
|
5963
|
+
class DecidablesElement extends r {
|
|
5964
5964
|
getComputedStyleValue(property) {
|
|
5965
5965
|
return getComputedStyle(this).getPropertyValue(property).trim();
|
|
5966
5966
|
}
|
|
@@ -6213,7 +6213,7 @@
|
|
|
6213
6213
|
`;
|
|
6214
6214
|
}
|
|
6215
6215
|
static get styles() {
|
|
6216
|
-
return i$
|
|
6216
|
+
return i$3`
|
|
6217
6217
|
:host {
|
|
6218
6218
|
---shadow-0: var(--shadow-0, ${r$3(this.cssBoxShadow(0))});
|
|
6219
6219
|
---shadow-2: var(--shadow-2, ${r$3(this.cssBoxShadow(2))});
|
|
@@ -6291,7 +6291,7 @@
|
|
|
6291
6291
|
this.disabled = false;
|
|
6292
6292
|
}
|
|
6293
6293
|
static get styles() {
|
|
6294
|
-
return [super.styles, i$
|
|
6294
|
+
return [super.styles, i$3`
|
|
6295
6295
|
:host {
|
|
6296
6296
|
margin: 0.25rem;
|
|
6297
6297
|
}
|
|
@@ -6361,7 +6361,7 @@
|
|
|
6361
6361
|
* Copyright 2018 Google LLC
|
|
6362
6362
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6363
6363
|
*/
|
|
6364
|
-
const o = o => o ??
|
|
6364
|
+
const o = o => o ?? E;
|
|
6365
6365
|
|
|
6366
6366
|
class DecidablesSlider extends DecidablesElement {
|
|
6367
6367
|
static get properties() {
|
|
@@ -6416,7 +6416,7 @@
|
|
|
6416
6416
|
this.value = event.target.value;
|
|
6417
6417
|
}
|
|
6418
6418
|
static get styles() {
|
|
6419
|
-
return [super.styles, i$
|
|
6419
|
+
return [super.styles, i$3`
|
|
6420
6420
|
:host {
|
|
6421
6421
|
---shadow-2-rotate: var(--shadow-2-rotate, ${r$3(this.cssBoxShadow(2, true, false))});
|
|
6422
6422
|
---shadow-4-rotate: var(--shadow-4-rotate, ${r$3(this.cssBoxShadow(4, true, false))});
|
|
@@ -6726,7 +6726,7 @@
|
|
|
6726
6726
|
this.value = event.target.value;
|
|
6727
6727
|
}
|
|
6728
6728
|
static get styles() {
|
|
6729
|
-
return [super.styles, i$
|
|
6729
|
+
return [super.styles, i$3`
|
|
6730
6730
|
:host {
|
|
6731
6731
|
---decidables-spinner-font-size: var(--decidables-spinner-font-size, 1.125rem);
|
|
6732
6732
|
---decidables-spinner-input-width: var(--decidables-spinner-input-width, 4rem);
|
|
@@ -6865,7 +6865,7 @@
|
|
|
6865
6865
|
}));
|
|
6866
6866
|
}
|
|
6867
6867
|
static get styles() {
|
|
6868
|
-
return [super.styles, i$
|
|
6868
|
+
return [super.styles, i$3`
|
|
6869
6869
|
:host {
|
|
6870
6870
|
display: flex;
|
|
6871
6871
|
|
|
@@ -7018,7 +7018,7 @@
|
|
|
7018
7018
|
this.disabled = false;
|
|
7019
7019
|
}
|
|
7020
7020
|
static get styles() {
|
|
7021
|
-
return [super.styles, i$
|
|
7021
|
+
return [super.styles, i$3`
|
|
7022
7022
|
fieldset {
|
|
7023
7023
|
display: flex;
|
|
7024
7024
|
|
|
@@ -7093,7 +7093,7 @@
|
|
|
7093
7093
|
}));
|
|
7094
7094
|
}
|
|
7095
7095
|
static get styles() {
|
|
7096
|
-
return [super.styles, i$
|
|
7096
|
+
return [super.styles, i$3`
|
|
7097
7097
|
:host {
|
|
7098
7098
|
display: flex;
|
|
7099
7099
|
}
|
|
@@ -7323,7 +7323,7 @@
|
|
|
7323
7323
|
}, {});
|
|
7324
7324
|
}
|
|
7325
7325
|
static get styles() {
|
|
7326
|
-
return [super.styles, i$
|
|
7326
|
+
return [super.styles, i$3`
|
|
7327
7327
|
:host {
|
|
7328
7328
|
---color-h: var(--color-h, ${r$3(this.colors.h)});
|
|
7329
7329
|
---color-m: var(--color-m, ${r$3(this.colors.m)});
|
|
@@ -7487,7 +7487,7 @@
|
|
|
7487
7487
|
this.yScale = undefined; // D3 Scale for y-axis
|
|
7488
7488
|
}
|
|
7489
7489
|
static get styles() {
|
|
7490
|
-
return [super.styles, i$
|
|
7490
|
+
return [super.styles, i$3`
|
|
7491
7491
|
:host {
|
|
7492
7492
|
display: inline-block;
|
|
7493
7493
|
|
|
@@ -7668,7 +7668,7 @@
|
|
|
7668
7668
|
const queryUpdate = select(this.renderRoot).select('.content').selectAll('.query').data([]);
|
|
7669
7669
|
queryUpdate.exit().remove();
|
|
7670
7670
|
}
|
|
7671
|
-
run(
|
|
7671
|
+
run(/* elapsed */
|
|
7672
7672
|
) {
|
|
7673
7673
|
const realTime = now();
|
|
7674
7674
|
const currentTime = this.baseTime ? realTime - this.baseTime : 0;
|
|
@@ -7846,20 +7846,19 @@
|
|
|
7846
7846
|
}
|
|
7847
7847
|
customElements.define('rdk-task', RDKTask);
|
|
7848
7848
|
|
|
7849
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
7850
|
-
|
|
7851
7849
|
function getDefaultExportFromCjs (x) {
|
|
7852
7850
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
7853
7851
|
}
|
|
7854
7852
|
|
|
7855
|
-
var jstat = {exports: {}};
|
|
7853
|
+
var jstat$1 = {exports: {}};
|
|
7856
7854
|
|
|
7855
|
+
var jstat = jstat$1.exports;
|
|
7857
7856
|
(function (module, exports) {
|
|
7858
7857
|
(function (window, factory) {
|
|
7859
7858
|
{
|
|
7860
7859
|
module.exports = factory();
|
|
7861
7860
|
}
|
|
7862
|
-
})(
|
|
7861
|
+
})(jstat, function () {
|
|
7863
7862
|
var jStat = function (Math, undefined$1) {
|
|
7864
7863
|
// For quick reference.
|
|
7865
7864
|
var concat = Array.prototype.concat;
|
|
@@ -8928,7 +8927,7 @@
|
|
|
8928
8927
|
// Log-gamma function
|
|
8929
8928
|
jStat.gammaln = function gammaln(x) {
|
|
8930
8929
|
var j = 0;
|
|
8931
|
-
var cof = [76.18009172947146, -86.
|
|
8930
|
+
var cof = [76.18009172947146, -86.50532032941678, 24.01409824083091, -1.231739572450155, 0.1208650973866179e-2, -5395239384953e-18];
|
|
8932
8931
|
var ser = 1.000000000190015;
|
|
8933
8932
|
var xx, y, tmp;
|
|
8934
8933
|
tmp = (y = xx = x) + 5.5;
|
|
@@ -8945,7 +8944,7 @@
|
|
|
8945
8944
|
jStat.loggam = function loggam(x) {
|
|
8946
8945
|
var x0, x2, xp, gl, gl0;
|
|
8947
8946
|
var k, n;
|
|
8948
|
-
var a = [8.333333333333333e-02, -
|
|
8947
|
+
var a = [8.333333333333333e-02, -0.002777777777777778, 7.936507936507937e-04, -5952380952380952e-19, 8.417508417508418e-04, -0.001917526917526918, 6.410256410256410e-03, -0.02955065359477124, 1.796443723688307e-01, -1.3924322169059];
|
|
8949
8948
|
x0 = x;
|
|
8950
8949
|
n = 0;
|
|
8951
8950
|
if (x == 1.0 || x == 2.0) {
|
|
@@ -9170,7 +9169,7 @@
|
|
|
9170
9169
|
|
|
9171
9170
|
// Returns the error function erf(x)
|
|
9172
9171
|
jStat.erf = function erf(x) {
|
|
9173
|
-
var cof = [-1.3026537197817094, 6.4196979235649026e-1, 1.9476473204185836e-2, -
|
|
9172
|
+
var cof = [-1.3026537197817094, 6.4196979235649026e-1, 1.9476473204185836e-2, -0.00956151478680863, -946595344482036e-18, 3.66839497852761e-4, 4.2523324806907e-5, -20278578112534e-18, -1624290004647e-18, 1.303655835580e-6, 1.5626441722e-8, -8.5238095915e-8, 6.529054439e-9, 5.059343495e-9, -991364156e-18, -227365122e-18, 9.6467911e-11, 2.394038e-12, -6886027e-18, 8.94487e-13, 3.13092e-13, -112708e-18, 3.81e-16, 7.106e-15, -1523e-18, -94e-18, 1.21e-16, -28e-18];
|
|
9174
9173
|
var j = cof.length - 1;
|
|
9175
9174
|
var isneg = false;
|
|
9176
9175
|
var d = 0;
|
|
@@ -9546,7 +9545,7 @@
|
|
|
9546
9545
|
median: function (rate) {
|
|
9547
9546
|
return 1 / rate * Math.log(2);
|
|
9548
9547
|
},
|
|
9549
|
-
mode: function mode(
|
|
9548
|
+
mode: function mode(/*rate*/
|
|
9550
9549
|
) {
|
|
9551
9550
|
return 0;
|
|
9552
9551
|
},
|
|
@@ -9637,7 +9636,7 @@
|
|
|
9637
9636
|
if (!(alpha >= 1 && beta >= 1 && alpha !== 1 && beta !== 1)) return undefined;
|
|
9638
9637
|
return Math.pow((alpha - 1) / (alpha * beta - 1), 1 / alpha);
|
|
9639
9638
|
},
|
|
9640
|
-
variance: function variance(
|
|
9639
|
+
variance: function variance(/*alpha, beta*/
|
|
9641
9640
|
) {
|
|
9642
9641
|
throw new Error('variance not yet implemented');
|
|
9643
9642
|
// TODO: complete this
|
|
@@ -9655,7 +9654,7 @@
|
|
|
9655
9654
|
return 0.5 + 0.5 * jStat.erf((Math.log(x) - mu) / Math.sqrt(2 * sigma * sigma));
|
|
9656
9655
|
},
|
|
9657
9656
|
inv: function (p, mu, sigma) {
|
|
9658
|
-
return Math.exp(-1.
|
|
9657
|
+
return Math.exp(-1.4142135623730951 * sigma * jStat.erfcinv(2 * p) + mu);
|
|
9659
9658
|
},
|
|
9660
9659
|
mean: function mean(mu, sigma) {
|
|
9661
9660
|
return Math.exp(mu + sigma * sigma / 2);
|
|
@@ -9733,7 +9732,7 @@
|
|
|
9733
9732
|
return 0.5 * (1 + jStat.erf((x - mean) / Math.sqrt(2 * std * std)));
|
|
9734
9733
|
},
|
|
9735
9734
|
inv: function (p, mean, std) {
|
|
9736
|
-
return -1.
|
|
9735
|
+
return -1.4142135623730951 * std * jStat.erfcinv(2 * p) + mean;
|
|
9737
9736
|
},
|
|
9738
9737
|
mean: function (mean /*, std*/) {
|
|
9739
9738
|
return mean;
|
|
@@ -9799,11 +9798,11 @@
|
|
|
9799
9798
|
mean: function mean(dof) {
|
|
9800
9799
|
return dof > 1 ? 0 : undefined;
|
|
9801
9800
|
},
|
|
9802
|
-
median: function median(
|
|
9801
|
+
median: function median(/*dof*/
|
|
9803
9802
|
) {
|
|
9804
9803
|
return 0;
|
|
9805
9804
|
},
|
|
9806
|
-
mode: function mode(
|
|
9805
|
+
mode: function mode(/*dof*/
|
|
9807
9806
|
) {
|
|
9808
9807
|
return 0;
|
|
9809
9808
|
},
|
|
@@ -9863,7 +9862,7 @@
|
|
|
9863
9862
|
median: function median(a, b) {
|
|
9864
9863
|
return jStat.mean(a, b);
|
|
9865
9864
|
},
|
|
9866
|
-
mode: function mode(
|
|
9865
|
+
mode: function mode(/*a, b*/
|
|
9867
9866
|
) {
|
|
9868
9867
|
throw new Error('mode is not yet implemented');
|
|
9869
9868
|
},
|
|
@@ -10260,7 +10259,7 @@
|
|
|
10260
10259
|
if (b <= a) return NaN;
|
|
10261
10260
|
return (a + b) / 2;
|
|
10262
10261
|
},
|
|
10263
|
-
mode: function mode(
|
|
10262
|
+
mode: function mode(/*a, b*/
|
|
10264
10263
|
) {
|
|
10265
10264
|
throw new Error('mode is not yet implemented');
|
|
10266
10265
|
},
|
|
@@ -10408,17 +10407,16 @@
|
|
|
10408
10407
|
function tukeyQinv(p, c, v) {
|
|
10409
10408
|
var p0 = 0.322232421088;
|
|
10410
10409
|
var q0 = 0.993484626060e-01;
|
|
10411
|
-
var p1 = -1
|
|
10410
|
+
var p1 = -1;
|
|
10412
10411
|
var q1 = 0.588581570495;
|
|
10413
10412
|
var p2 = -0.342242088547;
|
|
10414
10413
|
var q2 = 0.531103462366;
|
|
10415
10414
|
var p3 = -0.204231210125;
|
|
10416
10415
|
var q3 = 0.103537752850;
|
|
10417
|
-
var p4 = -
|
|
10416
|
+
var p4 = -453642210148e-16;
|
|
10418
10417
|
var q4 = 0.38560700634e-02;
|
|
10419
10418
|
var c1 = 0.8832;
|
|
10420
10419
|
var c2 = 0.2368;
|
|
10421
|
-
var c3 = 1.214;
|
|
10422
10420
|
var c4 = 1.208;
|
|
10423
10421
|
var c5 = 1.4142;
|
|
10424
10422
|
var vmax = 120.0;
|
|
@@ -10427,7 +10425,7 @@
|
|
|
10427
10425
|
var t = yi + ((((yi * p4 + p3) * yi + p2) * yi + p1) * yi + p0) / ((((yi * q4 + q3) * yi + q2) * yi + q1) * yi + q0);
|
|
10428
10426
|
if (v < vmax) t += (t * t * t + t) / v / 4.0;
|
|
10429
10427
|
var q = c1 - c2 * t;
|
|
10430
|
-
if (v < vmax) q += -
|
|
10428
|
+
if (v < vmax) q += -1.214 / v + c4 * t / v;
|
|
10431
10429
|
return t * (q * Math.log(c - 1.0) + c5);
|
|
10432
10430
|
}
|
|
10433
10431
|
jStat.extend(jStat.tukey, {
|
|
@@ -10437,7 +10435,7 @@
|
|
|
10437
10435
|
var cc = nmeans;
|
|
10438
10436
|
var nlegq = 16;
|
|
10439
10437
|
var ihalfq = 8;
|
|
10440
|
-
var eps1 = -30
|
|
10438
|
+
var eps1 = -30;
|
|
10441
10439
|
var eps2 = 1.0e-14;
|
|
10442
10440
|
var dhaf = 100.0;
|
|
10443
10441
|
var dquar = 800.0;
|
|
@@ -12123,8 +12121,8 @@
|
|
|
12123
12121
|
jStat.jStat = jStat;
|
|
12124
12122
|
return jStat;
|
|
12125
12123
|
});
|
|
12126
|
-
})(jstat);
|
|
12127
|
-
var jstatExports = jstat.exports;
|
|
12124
|
+
})(jstat$1);
|
|
12125
|
+
var jstatExports = jstat$1.exports;
|
|
12128
12126
|
var jStat = /*@__PURE__*/getDefaultExportFromCjs(jstatExports);
|
|
12129
12127
|
|
|
12130
12128
|
/*
|
|
@@ -12498,7 +12496,7 @@
|
|
|
12498
12496
|
this.requestUpdate();
|
|
12499
12497
|
}
|
|
12500
12498
|
static get styles() {
|
|
12501
|
-
return [super.styles, i$
|
|
12499
|
+
return [super.styles, i$3`
|
|
12502
12500
|
:host {
|
|
12503
12501
|
display: inline-block;
|
|
12504
12502
|
|
|
@@ -12896,7 +12894,7 @@
|
|
|
12896
12894
|
titleYEnter.append('tspan').classed('z math-var', true);
|
|
12897
12895
|
titleYEnter.append('tspan').classed('name', true);
|
|
12898
12896
|
// MERGE
|
|
12899
|
-
const titleYMerge = underlayerMerge.select('.title-y').attr('transform', `translate(${-2 * this.rem}, ${height / 2})rotate(-90)`);
|
|
12897
|
+
const titleYMerge = underlayerMerge.select('.title-y').attr('transform', `translate(${ -2 * this.rem}, ${height / 2})rotate(-90)`);
|
|
12900
12898
|
titleYMerge.select('tspan.z').text(this.zRoc ? 'z' : '');
|
|
12901
12899
|
titleYMerge.select('tspan.name').text(this.zRoc ? '(Hit Rate)' : 'Hit Rate');
|
|
12902
12900
|
|
|
@@ -13315,7 +13313,7 @@
|
|
|
13315
13313
|
this.state = 'ended';
|
|
13316
13314
|
}
|
|
13317
13315
|
static get styles() {
|
|
13318
|
-
return [super.styles, i$
|
|
13316
|
+
return [super.styles, i$3`
|
|
13319
13317
|
:host {
|
|
13320
13318
|
display: inline-block;
|
|
13321
13319
|
}
|
|
@@ -13504,7 +13502,7 @@
|
|
|
13504
13502
|
this.l = NaN; // lambda (threshold location)
|
|
13505
13503
|
this.hS = NaN; // Height of signal distribution
|
|
13506
13504
|
|
|
13507
|
-
this.binRange = [-3
|
|
13505
|
+
this.binRange = [-3, 3.0]; // Range of histogram
|
|
13508
13506
|
this.h = 0; // Hits
|
|
13509
13507
|
this.m = 0; // Misses
|
|
13510
13508
|
this.fa = 0; // False alarms
|
|
@@ -13566,7 +13564,7 @@
|
|
|
13566
13564
|
}
|
|
13567
13565
|
}
|
|
13568
13566
|
static get styles() {
|
|
13569
|
-
return [super.styles, i$
|
|
13567
|
+
return [super.styles, i$3`
|
|
13570
13568
|
:host {
|
|
13571
13569
|
display: inline-block;
|
|
13572
13570
|
|
|
@@ -14039,7 +14037,7 @@
|
|
|
14039
14037
|
// ENTER
|
|
14040
14038
|
const titleYEnter = titleYUpdate.enter().append('text').classed('title-y', true).attr('text-anchor', 'middle').text('Probability');
|
|
14041
14039
|
// MERGE
|
|
14042
|
-
titleYEnter.merge(titleYUpdate).attr('transform', `translate(${-2 * this.rem}, ${height / 2})rotate(-90)`);
|
|
14040
|
+
titleYEnter.merge(titleYUpdate).attr('transform', `translate(${ -2 * this.rem}, ${height / 2})rotate(-90)`);
|
|
14043
14041
|
// EXIT
|
|
14044
14042
|
titleYUpdate.exit().remove();
|
|
14045
14043
|
|
|
@@ -14060,7 +14058,7 @@
|
|
|
14060
14058
|
// ENTER
|
|
14061
14059
|
const titleY2Enter = titleY2Update.enter().append('text').classed('title-y2', true).attr('text-anchor', 'middle').text('Count');
|
|
14062
14060
|
// MERGE
|
|
14063
|
-
titleY2Enter.merge(titleY2Update).attr('transform', this.distributions ? `translate(${width + 1.5 * this.rem}, ${height / 2})rotate(90)` : `translate(${-1.5 * this.rem}, ${height / 2})rotate(-90)`);
|
|
14061
|
+
titleY2Enter.merge(titleY2Update).attr('transform', this.distributions ? `translate(${width + 1.5 * this.rem}, ${height / 2})rotate(90)` : `translate(${ -1.5 * this.rem}, ${height / 2})rotate(-90)`);
|
|
14064
14062
|
// EXIT
|
|
14065
14063
|
titleY2Update.exit().remove();
|
|
14066
14064
|
|
|
@@ -14906,7 +14904,7 @@
|
|
|
14906
14904
|
this.e = 0;
|
|
14907
14905
|
}
|
|
14908
14906
|
static get styles() {
|
|
14909
|
-
return [super.styles, i$
|
|
14907
|
+
return [super.styles, i$3`
|
|
14910
14908
|
:host {
|
|
14911
14909
|
display: inline-block;
|
|
14912
14910
|
}
|
|
@@ -15300,7 +15298,7 @@
|
|
|
15300
15298
|
this.sendEvent();
|
|
15301
15299
|
}
|
|
15302
15300
|
static get styles() {
|
|
15303
|
-
return [super.styles, i$
|
|
15301
|
+
return [super.styles, i$3`
|
|
15304
15302
|
:host {
|
|
15305
15303
|
display: inline-block;
|
|
15306
15304
|
}
|
|
@@ -15675,7 +15673,7 @@
|
|
|
15675
15673
|
this.numeric = false;
|
|
15676
15674
|
}
|
|
15677
15675
|
static get styles() {
|
|
15678
|
-
return [super.styles, i$
|
|
15676
|
+
return [super.styles, i$3`
|
|
15679
15677
|
:host {
|
|
15680
15678
|
display: block;
|
|
15681
15679
|
|
|
@@ -17048,7 +17046,7 @@
|
|
|
17048
17046
|
*/
|
|
17049
17047
|
class SDTExample extends DetectableElement {
|
|
17050
17048
|
static get styles() {
|
|
17051
|
-
return [super.styles, i$
|
|
17049
|
+
return [super.styles, i$3`
|
|
17052
17050
|
:host {
|
|
17053
17051
|
display: inline-block;
|
|
17054
17052
|
|
|
@@ -17302,7 +17300,7 @@
|
|
|
17302
17300
|
});
|
|
17303
17301
|
}
|
|
17304
17302
|
if (this.detectableControl && this.detectableControl.hasAttribute('run')) {
|
|
17305
|
-
this.detectableControl.addEventListener('detectable-control-run', (
|
|
17303
|
+
this.detectableControl.addEventListener('detectable-control-run', (/* event */
|
|
17306
17304
|
) => {
|
|
17307
17305
|
if (this.rdkTask) {
|
|
17308
17306
|
this.rdkTask.running = true;
|
|
@@ -17310,7 +17308,7 @@
|
|
|
17310
17308
|
});
|
|
17311
17309
|
}
|
|
17312
17310
|
if (this.detectableControl && this.detectableControl.hasAttribute('pause')) {
|
|
17313
|
-
this.detectableControl.addEventListener('detectable-control-pause', (
|
|
17311
|
+
this.detectableControl.addEventListener('detectable-control-pause', (/* event */
|
|
17314
17312
|
) => {
|
|
17315
17313
|
if (this.rdkTask) {
|
|
17316
17314
|
this.rdkTask.running = false;
|
|
@@ -17318,7 +17316,7 @@
|
|
|
17318
17316
|
});
|
|
17319
17317
|
}
|
|
17320
17318
|
if (this.detectableControl && this.detectableControl.hasAttribute('reset')) {
|
|
17321
|
-
this.detectableControl.addEventListener('detectable-control-reset', (
|
|
17319
|
+
this.detectableControl.addEventListener('detectable-control-reset', (/* event */
|
|
17322
17320
|
) => {
|
|
17323
17321
|
if (this.rdkTask) {
|
|
17324
17322
|
this.rdkTask.reset();
|
|
@@ -17360,7 +17358,7 @@
|
|
|
17360
17358
|
});
|
|
17361
17359
|
}
|
|
17362
17360
|
if (this.rdkTask) {
|
|
17363
|
-
this.rdkTask.addEventListener('rdk-trial-end', (
|
|
17361
|
+
this.rdkTask.addEventListener('rdk-trial-end', (/* event */
|
|
17364
17362
|
) => {
|
|
17365
17363
|
if (this.detectableResponse) {
|
|
17366
17364
|
this.detectableResponse.stop();
|
|
@@ -17368,7 +17366,7 @@
|
|
|
17368
17366
|
});
|
|
17369
17367
|
}
|
|
17370
17368
|
if (this.rdkTask) {
|
|
17371
|
-
this.rdkTask.addEventListener('rdk-block-end', (
|
|
17369
|
+
this.rdkTask.addEventListener('rdk-block-end', (/* event */
|
|
17372
17370
|
) => {
|
|
17373
17371
|
if (this.detectableControl) {
|
|
17374
17372
|
this.detectableControl.complete();
|
|
@@ -17552,7 +17550,7 @@
|
|
|
17552
17550
|
});
|
|
17553
17551
|
}
|
|
17554
17552
|
if (this.detectableControl && this.detectableControl.hasAttribute('run')) {
|
|
17555
|
-
this.detectableControl.addEventListener('detectable-control-run', (
|
|
17553
|
+
this.detectableControl.addEventListener('detectable-control-run', (/* event */
|
|
17556
17554
|
) => {
|
|
17557
17555
|
if (this.rdkTask) {
|
|
17558
17556
|
this.rdkTask.running = true;
|
|
@@ -17563,7 +17561,7 @@
|
|
|
17563
17561
|
});
|
|
17564
17562
|
}
|
|
17565
17563
|
if (this.detectableControl && this.detectableControl.hasAttribute('pause')) {
|
|
17566
|
-
this.detectableControl.addEventListener('detectable-control-pause', (
|
|
17564
|
+
this.detectableControl.addEventListener('detectable-control-pause', (/* event */
|
|
17567
17565
|
) => {
|
|
17568
17566
|
if (this.rdkTask) {
|
|
17569
17567
|
this.rdkTask.running = false;
|
|
@@ -17574,7 +17572,7 @@
|
|
|
17574
17572
|
});
|
|
17575
17573
|
}
|
|
17576
17574
|
if (this.detectableControl && this.detectableControl.hasAttribute('reset')) {
|
|
17577
|
-
this.detectableControl.addEventListener('detectable-control-reset', (
|
|
17575
|
+
this.detectableControl.addEventListener('detectable-control-reset', (/* event */
|
|
17578
17576
|
) => {
|
|
17579
17577
|
if (this.rdkTask) {
|
|
17580
17578
|
this.rdkTask.reset();
|
|
@@ -17618,7 +17616,7 @@
|
|
|
17618
17616
|
});
|
|
17619
17617
|
}
|
|
17620
17618
|
if (this.rdkTask) {
|
|
17621
|
-
this.rdkTask.addEventListener('rdk-trial-middle', (
|
|
17619
|
+
this.rdkTask.addEventListener('rdk-trial-middle', (/* event */
|
|
17622
17620
|
) => {
|
|
17623
17621
|
// if (this.sdtModel) {
|
|
17624
17622
|
// this.sdtModel.trial(event.detail.trial, event.detail.signal);
|
|
@@ -17626,7 +17624,7 @@
|
|
|
17626
17624
|
});
|
|
17627
17625
|
}
|
|
17628
17626
|
if (this.rdkTask) {
|
|
17629
|
-
this.rdkTask.addEventListener('rdk-trial-end', (
|
|
17627
|
+
this.rdkTask.addEventListener('rdk-trial-end', (/* event */
|
|
17630
17628
|
) => {
|
|
17631
17629
|
if (this.detectableResponse) {
|
|
17632
17630
|
this.detectableResponse.stop();
|
|
@@ -17634,7 +17632,7 @@
|
|
|
17634
17632
|
});
|
|
17635
17633
|
}
|
|
17636
17634
|
if (this.rdkTask) {
|
|
17637
|
-
this.rdkTask.addEventListener('rdk-block-end', (
|
|
17635
|
+
this.rdkTask.addEventListener('rdk-block-end', (/* event */
|
|
17638
17636
|
) => {
|
|
17639
17637
|
if (this.detectableControl) {
|
|
17640
17638
|
this.detectableControl.complete();
|