@spectric/ui 0.0.25 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/input.d.ts +5 -0
- package/dist/components/query_bar/QueryBar.d.ts +4 -4
- package/dist/components/table/table.d.ts +5 -1
- package/dist/components/table/virtualBody.d.ts +2 -1
- package/dist/custom-elements.json +11 -5
- package/dist/index.es.js +862 -845
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +127 -124
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/input.ts +10 -0
- package/src/components/query_bar/QueryBar.css +67 -68
- package/src/components/query_bar/QueryBar.ts +24 -14
- package/src/components/query_bar/__tests__/test_highlighting.spec.ts +101 -0
- package/src/components/query_bar/querylanguage/outputTypes/toHTML.ts +25 -4
- package/src/components/table/table.css +81 -71
- package/src/components/table/table.ts +21 -12
- package/src/components/table/virtualBody.ts +21 -18
- package/src/stories/QueryBar.stories.ts +9 -8
- package/src/stories/fixtures/data.ts +14 -17
- /package/src/components/query_bar/querylanguage/kuery/ast/{kuery.peg → kuery.peggy} +0 -0
package/dist/index.es.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
6
|
+
const hr = globalThis, es = hr.ShadowRoot && (hr.ShadyCSS === void 0 || hr.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ts = Symbol(), Bs = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let li = class {
|
|
8
8
|
constructor(t, s, i) {
|
|
9
9
|
if (this._$cssResult$ = !0, i !== ts) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -32,7 +32,7 @@ const En = (e) => new li(typeof e == "string" ? e : e + "", void 0, ts), oe = (e
|
|
|
32
32
|
}, Pn = (e, t) => {
|
|
33
33
|
if (es) e.adoptedStyleSheets = t.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet);
|
|
34
34
|
else for (const s of t) {
|
|
35
|
-
const i = document.createElement("style"), r =
|
|
35
|
+
const i = document.createElement("style"), r = hr.litNonce;
|
|
36
36
|
r !== void 0 && i.setAttribute("nonce", r), i.textContent = s.cssText, e.appendChild(i);
|
|
37
37
|
}
|
|
38
38
|
}, Us = es ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
|
@@ -45,7 +45,7 @@ const En = (e) => new li(typeof e == "string" ? e : e + "", void 0, ts), oe = (e
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: Tn, defineProperty: Ln, getOwnPropertyDescriptor: Nn, getOwnPropertyNames: Dn, getOwnPropertySymbols: Mn, getPrototypeOf: zn } = Object, Ee = globalThis,
|
|
48
|
+
const { is: Tn, defineProperty: Ln, getOwnPropertyDescriptor: Nn, getOwnPropertyNames: Dn, getOwnPropertySymbols: Mn, getPrototypeOf: zn } = Object, Ee = globalThis, Fs = Ee.trustedTypes, Rn = Fs ? Fs.emptyScript : "", Br = Ee.reactiveElementPolyfillSupport, Ut = (e, t) => e, dr = { toAttribute(e, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
e = e ? Rn : null;
|
|
@@ -73,7 +73,7 @@ const { is: Tn, defineProperty: Ln, getOwnPropertyDescriptor: Nn, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return s;
|
|
76
|
-
} }, rs = (e, t) => !Tn(e, t),
|
|
76
|
+
} }, rs = (e, t) => !Tn(e, t), Hs = { attribute: !0, type: String, converter: dr, reflect: !1, hasChanged: rs };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Ee.litPropertyMetadata ?? (Ee.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
class bt extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
@@ -82,7 +82,7 @@ class bt extends HTMLElement {
|
|
|
82
82
|
static get observedAttributes() {
|
|
83
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
84
|
}
|
|
85
|
-
static createProperty(t, s =
|
|
85
|
+
static createProperty(t, s = Hs) {
|
|
86
86
|
if (s.state && (s.attribute = !1), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
87
87
|
const i = Symbol(), r = this.getPropertyDescriptor(t, i, s);
|
|
88
88
|
r !== void 0 && Ln(this.prototype, t, r);
|
|
@@ -102,16 +102,16 @@ class bt extends HTMLElement {
|
|
|
102
102
|
}, configurable: !0, enumerable: !0 };
|
|
103
103
|
}
|
|
104
104
|
static getPropertyOptions(t) {
|
|
105
|
-
return this.elementProperties.get(t) ??
|
|
105
|
+
return this.elementProperties.get(t) ?? Hs;
|
|
106
106
|
}
|
|
107
107
|
static _$Ei() {
|
|
108
|
-
if (this.hasOwnProperty(
|
|
108
|
+
if (this.hasOwnProperty(Ut("elementProperties"))) return;
|
|
109
109
|
const t = zn(this);
|
|
110
110
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
111
111
|
}
|
|
112
112
|
static finalize() {
|
|
113
|
-
if (this.hasOwnProperty(
|
|
114
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
113
|
+
if (this.hasOwnProperty(Ut("finalized"))) return;
|
|
114
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ut("properties"))) {
|
|
115
115
|
const s = this.properties, i = [...Dn(s), ...Mn(s)];
|
|
116
116
|
for (const r of i) this.createProperty(r, s[r]);
|
|
117
117
|
}
|
|
@@ -186,7 +186,7 @@ class bt extends HTMLElement {
|
|
|
186
186
|
var a;
|
|
187
187
|
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
|
188
188
|
if (r !== void 0 && i.reflect === !0) {
|
|
189
|
-
const n = (((a = i.converter) == null ? void 0 : a.toAttribute) !== void 0 ? i.converter :
|
|
189
|
+
const n = (((a = i.converter) == null ? void 0 : a.toAttribute) !== void 0 ? i.converter : dr).toAttribute(s, i.type);
|
|
190
190
|
this._$Em = t, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
@@ -194,7 +194,7 @@ class bt extends HTMLElement {
|
|
|
194
194
|
var a;
|
|
195
195
|
const i = this.constructor, r = i._$Eh.get(t);
|
|
196
196
|
if (r !== void 0 && this._$Em !== r) {
|
|
197
|
-
const n = i.getPropertyOptions(r), h = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((a = n.converter) == null ? void 0 : a.fromAttribute) !== void 0 ? n.converter :
|
|
197
|
+
const n = i.getPropertyOptions(r), h = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((a = n.converter) == null ? void 0 : a.fromAttribute) !== void 0 ? n.converter : dr;
|
|
198
198
|
this._$Em = r, this[r] = h.fromAttribute(s, n.type), this._$Em = null;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
@@ -273,53 +273,53 @@ class bt extends HTMLElement {
|
|
|
273
273
|
firstUpdated(t) {
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
bt.elementStyles = [], bt.shadowRootOptions = { mode: "open" }, bt[
|
|
276
|
+
bt.elementStyles = [], bt.shadowRootOptions = { mode: "open" }, bt[Ut("elementProperties")] = /* @__PURE__ */ new Map(), bt[Ut("finalized")] = /* @__PURE__ */ new Map(), Br == null || Br({ ReactiveElement: bt }), (Ee.reactiveElementVersions ?? (Ee.reactiveElementVersions = [])).push("2.0.4");
|
|
277
277
|
/**
|
|
278
278
|
* @license
|
|
279
279
|
* Copyright 2017 Google LLC
|
|
280
280
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
281
281
|
*/
|
|
282
|
-
const
|
|
283
|
-
\f\r]`,
|
|
284
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Vs = /'/g, Ys = /"/g, pi = /^(?:script|style|textarea|title)$/i, In = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }), m = In(1), we = Symbol.for("lit-noChange"), L = Symbol.for("lit-nothing"), Gs = /* @__PURE__ */ new WeakMap(),
|
|
282
|
+
const Ft = globalThis, fr = Ft.trustedTypes, qs = fr ? fr.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, ss = "$lit$", $e = `lit$${Math.random().toFixed(9).slice(2)}$`, is = "?" + $e, jn = `<${is}>`, Qe = document, Wt = () => Qe.createComment(""), Vt = (e) => e === null || typeof e != "object" && typeof e != "function", os = Array.isArray, ci = (e) => os(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", Ur = `[
|
|
283
|
+
\f\r]`, Rt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Qs = /-->/g, Ws = />/g, Be = RegExp(`>|${Ur}(?:([^\\s"'>=/]+)(${Ur}*=${Ur}*(?:[^
|
|
284
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Vs = /'/g, Ys = /"/g, pi = /^(?:script|style|textarea|title)$/i, In = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }), m = In(1), we = Symbol.for("lit-noChange"), L = Symbol.for("lit-nothing"), Gs = /* @__PURE__ */ new WeakMap(), He = Qe.createTreeWalker(Qe, 129);
|
|
285
285
|
function ui(e, t) {
|
|
286
286
|
if (!os(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
287
287
|
return qs !== void 0 ? qs.createHTML(t) : t;
|
|
288
288
|
}
|
|
289
289
|
const hi = (e, t) => {
|
|
290
290
|
const s = e.length - 1, i = [];
|
|
291
|
-
let r, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n =
|
|
291
|
+
let r, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = Rt;
|
|
292
292
|
for (let h = 0; h < s; h++) {
|
|
293
293
|
const u = e[h];
|
|
294
|
-
let g,
|
|
295
|
-
for (;
|
|
296
|
-
const
|
|
297
|
-
a += n ===
|
|
294
|
+
let g, $, v = -1, C = 0;
|
|
295
|
+
for (; C < u.length && (n.lastIndex = C, $ = n.exec(u), $ !== null); ) C = n.lastIndex, n === Rt ? $[1] === "!--" ? n = Qs : $[1] !== void 0 ? n = Ws : $[2] !== void 0 ? (pi.test($[2]) && (r = RegExp("</" + $[2], "g")), n = Be) : $[3] !== void 0 && (n = Be) : n === Be ? $[0] === ">" ? (n = r ?? Rt, v = -1) : $[1] === void 0 ? v = -2 : (v = n.lastIndex - $[2].length, g = $[1], n = $[3] === void 0 ? Be : $[3] === '"' ? Ys : Vs) : n === Ys || n === Vs ? n = Be : n === Qs || n === Ws ? n = Rt : (n = Be, r = void 0);
|
|
296
|
+
const w = n === Be && e[h + 1].startsWith("/>") ? " " : "";
|
|
297
|
+
a += n === Rt ? u + jn : v >= 0 ? (i.push(g), u.slice(0, v) + ss + u.slice(v) + $e + w) : u + $e + (v === -2 ? h : w);
|
|
298
298
|
}
|
|
299
299
|
return [ui(e, a + (e[s] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
300
300
|
};
|
|
301
|
-
class
|
|
301
|
+
class Yt {
|
|
302
302
|
constructor({ strings: t, _$litType$: s }, i) {
|
|
303
303
|
let r;
|
|
304
304
|
this.parts = [];
|
|
305
305
|
let a = 0, n = 0;
|
|
306
|
-
const h = t.length - 1, u = this.parts, [g,
|
|
307
|
-
if (this.el =
|
|
306
|
+
const h = t.length - 1, u = this.parts, [g, $] = hi(t, s);
|
|
307
|
+
if (this.el = Yt.createElement(g, i), He.currentNode = this.el.content, s === 2 || s === 3) {
|
|
308
308
|
const v = this.el.content.firstChild;
|
|
309
309
|
v.replaceWith(...v.childNodes);
|
|
310
310
|
}
|
|
311
|
-
for (; (r =
|
|
311
|
+
for (; (r = He.nextNode()) !== null && u.length < h; ) {
|
|
312
312
|
if (r.nodeType === 1) {
|
|
313
313
|
if (r.hasAttributes()) for (const v of r.getAttributeNames()) if (v.endsWith(ss)) {
|
|
314
|
-
const
|
|
315
|
-
u.push({ type: 1, index: a, name: _[2], strings:
|
|
314
|
+
const C = $[n++], w = r.getAttribute(v).split($e), _ = /([.?@])?(.*)/.exec(C);
|
|
315
|
+
u.push({ type: 1, index: a, name: _[2], strings: w, ctor: _[1] === "." ? fi : _[1] === "?" ? gi : _[1] === "@" ? bi : Jt }), r.removeAttribute(v);
|
|
316
316
|
} else v.startsWith($e) && (u.push({ type: 6, index: a }), r.removeAttribute(v));
|
|
317
317
|
if (pi.test(r.tagName)) {
|
|
318
|
-
const v = r.textContent.split($e),
|
|
319
|
-
if (
|
|
320
|
-
r.textContent =
|
|
321
|
-
for (let
|
|
322
|
-
r.append(v[
|
|
318
|
+
const v = r.textContent.split($e), C = v.length - 1;
|
|
319
|
+
if (C > 0) {
|
|
320
|
+
r.textContent = fr ? fr.emptyScript : "";
|
|
321
|
+
for (let w = 0; w < C; w++) r.append(v[w], Wt()), He.nextNode(), u.push({ type: 2, index: ++a });
|
|
322
|
+
r.append(v[C], Wt());
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
} else if (r.nodeType === 8) if (r.data === is) u.push({ type: 2, index: a });
|
|
@@ -339,7 +339,7 @@ function We(e, t, s = e, i) {
|
|
|
339
339
|
var n, h;
|
|
340
340
|
if (t === we) return t;
|
|
341
341
|
let r = i !== void 0 ? (n = s._$Co) == null ? void 0 : n[i] : s._$Cl;
|
|
342
|
-
const a =
|
|
342
|
+
const a = Vt(t) ? void 0 : t._$litDirective$;
|
|
343
343
|
return (r == null ? void 0 : r.constructor) !== a && ((h = r == null ? void 0 : r._$AO) == null || h.call(r, !1), a === void 0 ? r = void 0 : (r = new a(e), r._$AT(e, s, i)), i !== void 0 ? (s._$Co ?? (s._$Co = []))[i] = r : s._$Cl = r), r !== void 0 && (t = We(e, r._$AS(e, t.values), r, i)), t;
|
|
344
344
|
}
|
|
345
345
|
let di = class {
|
|
@@ -354,23 +354,23 @@ let di = class {
|
|
|
354
354
|
}
|
|
355
355
|
u(t) {
|
|
356
356
|
const { el: { content: s }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? Qe).importNode(s, !0);
|
|
357
|
-
|
|
358
|
-
let a =
|
|
357
|
+
He.currentNode = r;
|
|
358
|
+
let a = He.nextNode(), n = 0, h = 0, u = i[0];
|
|
359
359
|
for (; u !== void 0; ) {
|
|
360
360
|
if (n === u.index) {
|
|
361
361
|
let g;
|
|
362
|
-
u.type === 2 ? g = new
|
|
362
|
+
u.type === 2 ? g = new kt(a, a.nextSibling, this, t) : u.type === 1 ? g = new u.ctor(a, u.name, u.strings, this, t) : u.type === 6 && (g = new vi(a, this, t)), this._$AV.push(g), u = i[++h];
|
|
363
363
|
}
|
|
364
|
-
n !== (u == null ? void 0 : u.index) && (a =
|
|
364
|
+
n !== (u == null ? void 0 : u.index) && (a = He.nextNode(), n++);
|
|
365
365
|
}
|
|
366
|
-
return
|
|
366
|
+
return He.currentNode = Qe, r;
|
|
367
367
|
}
|
|
368
368
|
p(t) {
|
|
369
369
|
let s = 0;
|
|
370
370
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, s), s += i.strings.length - 2) : i._$AI(t[s])), s++;
|
|
371
371
|
}
|
|
372
372
|
};
|
|
373
|
-
class
|
|
373
|
+
class kt {
|
|
374
374
|
get _$AU() {
|
|
375
375
|
var t;
|
|
376
376
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -390,7 +390,7 @@ class St {
|
|
|
390
390
|
return this._$AB;
|
|
391
391
|
}
|
|
392
392
|
_$AI(t, s = this) {
|
|
393
|
-
t = We(this, t, s),
|
|
393
|
+
t = We(this, t, s), Vt(t) ? t === L || t == null || t === "" ? (this._$AH !== L && this._$AR(), this._$AH = L) : t !== this._$AH && t !== we && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : ci(t) ? this.k(t) : this._(t);
|
|
394
394
|
}
|
|
395
395
|
O(t) {
|
|
396
396
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -399,11 +399,11 @@ class St {
|
|
|
399
399
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
400
400
|
}
|
|
401
401
|
_(t) {
|
|
402
|
-
this._$AH !== L &&
|
|
402
|
+
this._$AH !== L && Vt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Qe.createTextNode(t)), this._$AH = t;
|
|
403
403
|
}
|
|
404
404
|
$(t) {
|
|
405
405
|
var a;
|
|
406
|
-
const { values: s, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
|
406
|
+
const { values: s, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Yt.createElement(ui(i.h, i.h[0]), this.options)), i);
|
|
407
407
|
if (((a = this._$AH) == null ? void 0 : a._$AD) === r) this._$AH.p(s);
|
|
408
408
|
else {
|
|
409
409
|
const n = new di(r, this), h = n.u(this.options);
|
|
@@ -412,13 +412,13 @@ class St {
|
|
|
412
412
|
}
|
|
413
413
|
_$AC(t) {
|
|
414
414
|
let s = Gs.get(t.strings);
|
|
415
|
-
return s === void 0 && Gs.set(t.strings, s = new
|
|
415
|
+
return s === void 0 && Gs.set(t.strings, s = new Yt(t)), s;
|
|
416
416
|
}
|
|
417
417
|
k(t) {
|
|
418
418
|
os(this._$AH) || (this._$AH = [], this._$AR());
|
|
419
419
|
const s = this._$AH;
|
|
420
420
|
let i, r = 0;
|
|
421
|
-
for (const a of t) r === s.length ? s.push(i = new
|
|
421
|
+
for (const a of t) r === s.length ? s.push(i = new kt(this.O(Wt()), this.O(Wt()), this, this.options)) : i = s[r], i._$AI(a), r++;
|
|
422
422
|
r < s.length && (this._$AR(i && i._$AB.nextSibling, r), s.length = r);
|
|
423
423
|
}
|
|
424
424
|
_$AR(t = this._$AA.nextSibling, s) {
|
|
@@ -433,7 +433,7 @@ class St {
|
|
|
433
433
|
this._$AM === void 0 && (this._$Cv = t, (s = this._$AP) == null || s.call(this, t));
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
class
|
|
436
|
+
class Jt {
|
|
437
437
|
get tagName() {
|
|
438
438
|
return this.element.tagName;
|
|
439
439
|
}
|
|
@@ -446,11 +446,11 @@ class Zt {
|
|
|
446
446
|
_$AI(t, s = this, i, r) {
|
|
447
447
|
const a = this.strings;
|
|
448
448
|
let n = !1;
|
|
449
|
-
if (a === void 0) t = We(this, t, s, 0), n = !
|
|
449
|
+
if (a === void 0) t = We(this, t, s, 0), n = !Vt(t) || t !== this._$AH && t !== we, n && (this._$AH = t);
|
|
450
450
|
else {
|
|
451
451
|
const h = t;
|
|
452
452
|
let u, g;
|
|
453
|
-
for (t = a[0], u = 0; u < a.length - 1; u++) g = We(this, h[i + u], s, u), g === we && (g = this._$AH[u]), n || (n = !
|
|
453
|
+
for (t = a[0], u = 0; u < a.length - 1; u++) g = We(this, h[i + u], s, u), g === we && (g = this._$AH[u]), n || (n = !Vt(g) || g !== this._$AH[u]), g === L ? t = L : t !== L && (t += (g ?? "") + a[u + 1]), this._$AH[u] = g;
|
|
454
454
|
}
|
|
455
455
|
n && !r && this.j(t);
|
|
456
456
|
}
|
|
@@ -458,7 +458,7 @@ class Zt {
|
|
|
458
458
|
t === L ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
class fi extends
|
|
461
|
+
class fi extends Jt {
|
|
462
462
|
constructor() {
|
|
463
463
|
super(...arguments), this.type = 3;
|
|
464
464
|
}
|
|
@@ -466,7 +466,7 @@ class fi extends Zt {
|
|
|
466
466
|
this.element[this.name] = t === L ? void 0 : t;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
class gi extends
|
|
469
|
+
class gi extends Jt {
|
|
470
470
|
constructor() {
|
|
471
471
|
super(...arguments), this.type = 4;
|
|
472
472
|
}
|
|
@@ -474,7 +474,7 @@ class gi extends Zt {
|
|
|
474
474
|
this.element.toggleAttribute(this.name, !!t && t !== L);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
class bi extends
|
|
477
|
+
class bi extends Jt {
|
|
478
478
|
constructor(t, s, i, r, a) {
|
|
479
479
|
super(t, s, i, r, a), this.type = 5;
|
|
480
480
|
}
|
|
@@ -499,14 +499,14 @@ class vi {
|
|
|
499
499
|
We(this, t);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
const Bn = { M: ss, P: $e, A: is, C: 1, L: hi, R: di, D: ci, V: We, I:
|
|
503
|
-
|
|
504
|
-
const
|
|
502
|
+
const Bn = { M: ss, P: $e, A: is, C: 1, L: hi, R: di, D: ci, V: We, I: kt, H: Jt, N: gi, U: bi, B: fi, F: vi }, Fr = Ft.litHtmlPolyfillSupport;
|
|
503
|
+
Fr == null || Fr(Yt, kt), (Ft.litHtmlVersions ?? (Ft.litHtmlVersions = [])).push("3.2.1");
|
|
504
|
+
const $r = (e, t, s) => {
|
|
505
505
|
const i = (s == null ? void 0 : s.renderBefore) ?? t;
|
|
506
506
|
let r = i._$litPart$;
|
|
507
507
|
if (r === void 0) {
|
|
508
508
|
const a = (s == null ? void 0 : s.renderBefore) ?? null;
|
|
509
|
-
i._$litPart$ = r = new
|
|
509
|
+
i._$litPart$ = r = new kt(t.insertBefore(Wt(), a), a, void 0, s ?? {});
|
|
510
510
|
}
|
|
511
511
|
return r._$AI(e), r;
|
|
512
512
|
};
|
|
@@ -526,7 +526,7 @@ let B = class extends bt {
|
|
|
526
526
|
}
|
|
527
527
|
update(t) {
|
|
528
528
|
const s = this.render();
|
|
529
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
529
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = $r(s, this.renderRoot, this.renderOptions);
|
|
530
530
|
}
|
|
531
531
|
connectedCallback() {
|
|
532
532
|
var t;
|
|
@@ -550,8 +550,8 @@ Hr == null || Hr({ LitElement: B });
|
|
|
550
550
|
* Copyright 2017 Google LLC
|
|
551
551
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
552
552
|
*/
|
|
553
|
-
const
|
|
554
|
-
let
|
|
553
|
+
const _r = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, At = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
|
554
|
+
let Kt = class {
|
|
555
555
|
constructor(t) {
|
|
556
556
|
}
|
|
557
557
|
get _$AU() {
|
|
@@ -572,10 +572,10 @@ let Jt = class {
|
|
|
572
572
|
* Copyright 2018 Google LLC
|
|
573
573
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
574
574
|
*/
|
|
575
|
-
const yi = "important", Un = " !" + yi, ns =
|
|
575
|
+
const yi = "important", Un = " !" + yi, ns = At(class extends Kt {
|
|
576
576
|
constructor(e) {
|
|
577
577
|
var t;
|
|
578
|
-
if (super(e), e.type !==
|
|
578
|
+
if (super(e), e.type !== _r.ATTRIBUTE || e.name !== "style" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
579
579
|
}
|
|
580
580
|
render(e) {
|
|
581
581
|
return Object.keys(e).reduce((t, s) => {
|
|
@@ -597,7 +597,7 @@ const yi = "important", Un = " !" + yi, ns = kt(class extends Jt {
|
|
|
597
597
|
}
|
|
598
598
|
return we;
|
|
599
599
|
}
|
|
600
|
-
}),
|
|
600
|
+
}), Fn = oe`
|
|
601
601
|
:host{
|
|
602
602
|
display: inline-block;
|
|
603
603
|
--text-on-color: var(--spectric-text-on-color, #ffffff);
|
|
@@ -857,7 +857,7 @@ opacity:1
|
|
|
857
857
|
* Copyright 2017 Google LLC
|
|
858
858
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
859
859
|
*/
|
|
860
|
-
const
|
|
860
|
+
const I = (e) => (t, s) => {
|
|
861
861
|
s !== void 0 ? s.addInitializer(() => {
|
|
862
862
|
customElements.define(e, t);
|
|
863
863
|
}) : customElements.define(e, t);
|
|
@@ -867,7 +867,7 @@ const j = (e) => (t, s) => {
|
|
|
867
867
|
* Copyright 2017 Google LLC
|
|
868
868
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
869
869
|
*/
|
|
870
|
-
const
|
|
870
|
+
const Hn = { attribute: !0, type: String, converter: dr, reflect: !1, hasChanged: rs }, qn = (e = Hn, t, s) => {
|
|
871
871
|
const { kind: i, metadata: r } = s;
|
|
872
872
|
let a = globalThis.litPropertyMetadata.get(r);
|
|
873
873
|
if (a === void 0 && globalThis.litPropertyMetadata.set(r, a = /* @__PURE__ */ new Map()), a.set(s.name, e), i === "accessor") {
|
|
@@ -940,22 +940,22 @@ function Se(e, t) {
|
|
|
940
940
|
* Copyright 2017 Google LLC
|
|
941
941
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
942
942
|
*/
|
|
943
|
-
function
|
|
943
|
+
function Xt(e) {
|
|
944
944
|
return (t, s) => mi(t, s, { async get() {
|
|
945
945
|
var i;
|
|
946
946
|
return await this.updateComplete, ((i = this.renderRoot) == null ? void 0 : i.querySelector(e)) ?? null;
|
|
947
947
|
} });
|
|
948
948
|
}
|
|
949
|
-
let
|
|
950
|
-
const Qn = () =>
|
|
949
|
+
let Wr = 0;
|
|
950
|
+
const Qn = () => Wr;
|
|
951
951
|
class Zs {
|
|
952
952
|
constructor(t, s, i, r) {
|
|
953
953
|
this._handler = i, this._type = s, this._handler = i, this._options = r || !1, t instanceof Promise ? t.then((a) => {
|
|
954
954
|
this._handler && (this._node = a, this._node.addEventListener(this._type, this._handler, this._options));
|
|
955
|
-
}) : typeof t == "function" ? (this._node = t(), this._node.addEventListener(this._type, this._handler, this._options)) : (this._node = t, this._node.addEventListener(this._type, this._handler, this._options)),
|
|
955
|
+
}) : typeof t == "function" ? (this._node = t(), this._node.addEventListener(this._type, this._handler, this._options)) : (this._node = t, this._node.addEventListener(this._type, this._handler, this._options)), Wr += 1;
|
|
956
956
|
}
|
|
957
957
|
dispose() {
|
|
958
|
-
this._handler && (this._node && (
|
|
958
|
+
this._handler && (this._node && (Wr -= 1, this._node.removeEventListener(this._type, this._handler, this._options)), this._node = void 0, this._handler = void 0);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
class ke extends B {
|
|
@@ -987,7 +987,7 @@ class ke extends B {
|
|
|
987
987
|
}), this._isDisposed = !0;
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
|
-
var Wn = Object.defineProperty, Vn = Object.getOwnPropertyDescriptor,
|
|
990
|
+
var Wn = Object.defineProperty, Vn = Object.getOwnPropertyDescriptor, ge = (e, t, s, i) => {
|
|
991
991
|
for (var r = i > 1 ? void 0 : i ? Vn(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
992
992
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
993
993
|
return i && r && Wn(t, s, r), r;
|
|
@@ -1009,7 +1009,7 @@ let J = class extends ke {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
1011
|
updated(e) {
|
|
1012
|
-
this.tooltip && this.tooltip !== "" &&
|
|
1012
|
+
this.tooltip && this.tooltip !== "" && $r(m`<spectric-tooltip slot="tooltip" .text=${this.tooltip} .position=${this.tooltipPosition || "right"}></spectric-tooltip>`, this);
|
|
1013
1013
|
}
|
|
1014
1014
|
render() {
|
|
1015
1015
|
const e = Yn[this.variant] || "spectric-button--primary";
|
|
@@ -1027,36 +1027,36 @@ let J = class extends ke {
|
|
|
1027
1027
|
`;
|
|
1028
1028
|
}
|
|
1029
1029
|
};
|
|
1030
|
-
J.styles =
|
|
1031
|
-
|
|
1030
|
+
J.styles = Fn;
|
|
1031
|
+
ge([
|
|
1032
1032
|
f({ type: String, reflect: !0 })
|
|
1033
1033
|
], J.prototype, "variant", 2);
|
|
1034
|
-
|
|
1034
|
+
ge([
|
|
1035
1035
|
f({ type: Boolean, reflect: !0 })
|
|
1036
1036
|
], J.prototype, "disabled", 2);
|
|
1037
|
-
|
|
1037
|
+
ge([
|
|
1038
1038
|
f({ type: String, reflect: !0 })
|
|
1039
1039
|
], J.prototype, "backgroundColor", 2);
|
|
1040
|
-
|
|
1040
|
+
ge([
|
|
1041
1041
|
f({ type: String, reflect: !0 })
|
|
1042
1042
|
], J.prototype, "size", 2);
|
|
1043
|
-
|
|
1043
|
+
ge([
|
|
1044
1044
|
f({ type: String, reflect: !0 })
|
|
1045
1045
|
], J.prototype, "label", 2);
|
|
1046
|
-
|
|
1046
|
+
ge([
|
|
1047
1047
|
f({ type: Boolean, reflect: !0 })
|
|
1048
1048
|
], J.prototype, "danger", 2);
|
|
1049
|
-
|
|
1049
|
+
ge([
|
|
1050
1050
|
f({ type: Boolean, reflect: !0 })
|
|
1051
1051
|
], J.prototype, "icon", 2);
|
|
1052
|
-
|
|
1052
|
+
ge([
|
|
1053
1053
|
f({ type: String, reflect: !0 })
|
|
1054
1054
|
], J.prototype, "tooltip", 2);
|
|
1055
|
-
|
|
1055
|
+
ge([
|
|
1056
1056
|
f({ type: String, reflect: !0 })
|
|
1057
1057
|
], J.prototype, "tooltipPosition", 2);
|
|
1058
|
-
J =
|
|
1059
|
-
|
|
1058
|
+
J = ge([
|
|
1059
|
+
I("spectric-button")
|
|
1060
1060
|
], J);
|
|
1061
1061
|
/**
|
|
1062
1062
|
* @license
|
|
@@ -1066,7 +1066,7 @@ J = fe([
|
|
|
1066
1066
|
const { I: Gn } = Bn, Js = (e, t) => (e == null ? void 0 : e._$litType$) !== void 0, Zn = (e) => {
|
|
1067
1067
|
var t;
|
|
1068
1068
|
return ((t = e == null ? void 0 : e._$litType$) == null ? void 0 : t.h) != null;
|
|
1069
|
-
}, Jn = (e) => e.strings === void 0, Ks = () => document.createComment(""),
|
|
1069
|
+
}, Jn = (e) => e.strings === void 0, Ks = () => document.createComment(""), Fe = (e, t, s) => {
|
|
1070
1070
|
var a;
|
|
1071
1071
|
const i = e._$AA.parentNode, r = t === void 0 ? e._$AB : t._$AA;
|
|
1072
1072
|
if (s === void 0) {
|
|
@@ -1081,13 +1081,13 @@ const { I: Gn } = Bn, Js = (e, t) => (e == null ? void 0 : e._$litType$) !== voi
|
|
|
1081
1081
|
if (n !== r || u) {
|
|
1082
1082
|
let g = s._$AA;
|
|
1083
1083
|
for (; g !== n; ) {
|
|
1084
|
-
const
|
|
1085
|
-
i.insertBefore(g, r), g =
|
|
1084
|
+
const $ = g.nextSibling;
|
|
1085
|
+
i.insertBefore(g, r), g = $;
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
1089
|
return s;
|
|
1090
|
-
}, Ue = (e, t, s = e) => (e._$AI(t, s), e), Kn = {},
|
|
1090
|
+
}, Ue = (e, t, s = e) => (e._$AI(t, s), e), Kn = {}, Vr = (e, t = Kn) => e._$AH = t, Yr = (e) => e._$AH, qr = (e) => {
|
|
1091
1091
|
var i;
|
|
1092
1092
|
(i = e._$AP) == null || i.call(e, !1, !0);
|
|
1093
1093
|
let t = e._$AA;
|
|
@@ -1110,7 +1110,7 @@ const Ht = (e, t) => {
|
|
|
1110
1110
|
if (s === void 0) return !1;
|
|
1111
1111
|
for (const r of s) (i = r._$AO) == null || i.call(r, t, !1), Ht(r, t);
|
|
1112
1112
|
return !0;
|
|
1113
|
-
},
|
|
1113
|
+
}, gr = (e) => {
|
|
1114
1114
|
let t, s;
|
|
1115
1115
|
do {
|
|
1116
1116
|
if ((t = e._$AM) === void 0) break;
|
|
@@ -1125,18 +1125,18 @@ const Ht = (e, t) => {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
};
|
|
1127
1127
|
function ea(e) {
|
|
1128
|
-
this._$AN !== void 0 ? (
|
|
1128
|
+
this._$AN !== void 0 ? (gr(this), this._$AM = e, wi(this)) : this._$AM = e;
|
|
1129
1129
|
}
|
|
1130
1130
|
function ta(e, t = !1, s = 0) {
|
|
1131
1131
|
const i = this._$AH, r = this._$AN;
|
|
1132
|
-
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let a = s; a < i.length; a++) Ht(i[a], !1),
|
|
1133
|
-
else i != null && (Ht(i, !1),
|
|
1132
|
+
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let a = s; a < i.length; a++) Ht(i[a], !1), gr(i[a]);
|
|
1133
|
+
else i != null && (Ht(i, !1), gr(i));
|
|
1134
1134
|
else Ht(this, e);
|
|
1135
1135
|
}
|
|
1136
1136
|
const ra = (e) => {
|
|
1137
|
-
e.type ==
|
|
1137
|
+
e.type == _r.CHILD && (e._$AP ?? (e._$AP = ta), e._$AQ ?? (e._$AQ = ea));
|
|
1138
1138
|
};
|
|
1139
|
-
class xi extends
|
|
1139
|
+
class xi extends Kt {
|
|
1140
1140
|
constructor() {
|
|
1141
1141
|
super(...arguments), this._$AN = void 0;
|
|
1142
1142
|
}
|
|
@@ -1145,7 +1145,7 @@ class xi extends Jt {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
_$AO(t, s = !0) {
|
|
1147
1147
|
var i, r;
|
|
1148
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), s && (Ht(this, t),
|
|
1148
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), s && (Ht(this, t), gr(this));
|
|
1149
1149
|
}
|
|
1150
1150
|
setValue(t) {
|
|
1151
1151
|
if (Jn(this._$Ct)) this._$Ct._$AI(t, this);
|
|
@@ -1167,7 +1167,7 @@ class xi extends Jt {
|
|
|
1167
1167
|
const yt = () => new sa();
|
|
1168
1168
|
let sa = class {
|
|
1169
1169
|
};
|
|
1170
|
-
const
|
|
1170
|
+
const Qr = /* @__PURE__ */ new WeakMap(), mt = At(class extends xi {
|
|
1171
1171
|
render(e) {
|
|
1172
1172
|
return L;
|
|
1173
1173
|
}
|
|
@@ -1179,13 +1179,13 @@ const qr = /* @__PURE__ */ new WeakMap(), mt = kt(class extends xi {
|
|
|
1179
1179
|
rt(e) {
|
|
1180
1180
|
if (this.isConnected || (e = void 0), typeof this.Y == "function") {
|
|
1181
1181
|
const t = this.ht ?? globalThis;
|
|
1182
|
-
let s =
|
|
1183
|
-
s === void 0 && (s = /* @__PURE__ */ new WeakMap(),
|
|
1182
|
+
let s = Qr.get(t);
|
|
1183
|
+
s === void 0 && (s = /* @__PURE__ */ new WeakMap(), Qr.set(t, s)), s.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), s.set(this.Y, e), e !== void 0 && this.Y.call(this.ht, e);
|
|
1184
1184
|
} else this.Y.value = e;
|
|
1185
1185
|
}
|
|
1186
1186
|
get lt() {
|
|
1187
1187
|
var e, t;
|
|
1188
|
-
return typeof this.Y == "function" ? (e =
|
|
1188
|
+
return typeof this.Y == "function" ? (e = Qr.get(this.ht ?? globalThis)) == null ? void 0 : e.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
|
1189
1189
|
}
|
|
1190
1190
|
disconnected() {
|
|
1191
1191
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -1228,7 +1228,7 @@ const qr = /* @__PURE__ */ new WeakMap(), mt = kt(class extends xi {
|
|
|
1228
1228
|
return (...i) => {
|
|
1229
1229
|
clearTimeout(s), s = window.setTimeout(() => e.apply(void 0, i), t);
|
|
1230
1230
|
};
|
|
1231
|
-
},
|
|
1231
|
+
}, wr = (e) => {
|
|
1232
1232
|
var t;
|
|
1233
1233
|
return (...s) => {
|
|
1234
1234
|
t && cancelAnimationFrame(t), t = requestAnimationFrame(() => {
|
|
@@ -1241,8 +1241,8 @@ var oa = Object.defineProperty, na = Object.getOwnPropertyDescriptor, Ke = (e, t
|
|
|
1241
1241
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
1242
1242
|
return i && r && oa(t, s, r), r;
|
|
1243
1243
|
};
|
|
1244
|
-
const aa = ["mousemove", "click", "dblclick", "mousedown", "mouseup", "contextmenu"],
|
|
1245
|
-
let
|
|
1244
|
+
const aa = ["mousemove", "click", "dblclick", "mousedown", "mouseup", "contextmenu"], lr = { width: 200, height: 200 }, br = { width: 10, height: 10 };
|
|
1245
|
+
let de = class extends ke {
|
|
1246
1246
|
constructor() {
|
|
1247
1247
|
super(), this.arrayBuffer = new ArrayBuffer(0), this.frameWidth = 100, this.scale = 1, this.width = 200, this.height = 200, this.state = {}, this.yStart = 0, this.xStart = 0, this.refs = {
|
|
1248
1248
|
viewport: yt(),
|
|
@@ -1265,7 +1265,7 @@ let he = class extends ke {
|
|
|
1265
1265
|
}, this.resizeObserver = e, this.addDisposableListener(document.body, "theme-change", this.onThemeChange);
|
|
1266
1266
|
var t = {};
|
|
1267
1267
|
aa.forEach((s) => {
|
|
1268
|
-
this.addDisposableListener(this._canvas, s,
|
|
1268
|
+
this.addDisposableListener(this._canvas, s, wr(async (i) => {
|
|
1269
1269
|
i.stopImmediatePropagation(), i.stopPropagation(), i.preventDefault();
|
|
1270
1270
|
var r = await this._canvas;
|
|
1271
1271
|
let a = r.getBoundingClientRect(), n = {
|
|
@@ -1308,7 +1308,7 @@ let he = class extends ke {
|
|
|
1308
1308
|
if (e <= 0)
|
|
1309
1309
|
return;
|
|
1310
1310
|
this.calculateViewport();
|
|
1311
|
-
const { width: s =
|
|
1311
|
+
const { width: s = lr.width, height: i = lr.height } = this, r = this.getPxPerBit(), a = this.refs.canvas.value.getContext("2d");
|
|
1312
1312
|
if (!a)
|
|
1313
1313
|
return;
|
|
1314
1314
|
this.state.scale != r && (a.reset(), a.scale(r, r));
|
|
@@ -1316,15 +1316,15 @@ let he = class extends ke {
|
|
|
1316
1316
|
a.fillStyle = n.color, a.clearRect(0, 0, s, i);
|
|
1317
1317
|
let h = 0;
|
|
1318
1318
|
for (let u = this.yStart * e + this.xStart, g = t.length; u < g; u++) {
|
|
1319
|
-
let
|
|
1320
|
-
if (!(
|
|
1321
|
-
if (Math.floor(
|
|
1319
|
+
let $ = u % e - this.xStart;
|
|
1320
|
+
if (!($ < 0)) {
|
|
1321
|
+
if (Math.floor($ * r) > s) {
|
|
1322
1322
|
h++, u = h * e + this.yStart * e + this.xStart - 1;
|
|
1323
1323
|
continue;
|
|
1324
1324
|
}
|
|
1325
1325
|
if (Math.floor(h * r) > i)
|
|
1326
1326
|
break;
|
|
1327
|
-
t.getBit(u) === 1 && a.fillRect(
|
|
1327
|
+
t.getBit(u) === 1 && a.fillRect($, h, 1, 1), (u + 1) % e === 0 && u >= e - 1 && h++;
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
@@ -1340,13 +1340,13 @@ let he = class extends ke {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
1342
|
render() {
|
|
1343
|
-
const { height: e =
|
|
1343
|
+
const { height: e = lr.height, width: t = lr.width } = this;
|
|
1344
1344
|
return m`
|
|
1345
1345
|
<div
|
|
1346
1346
|
id="viewport"
|
|
1347
1347
|
${mt(this.refs.viewport)}
|
|
1348
1348
|
@scroll=${this.handleScroll}
|
|
1349
|
-
style=${`width:${t +
|
|
1349
|
+
style=${`width:${t + br.width}px;height:${e + br.height}px;overflow:auto;position:relative`}
|
|
1350
1350
|
>
|
|
1351
1351
|
<div
|
|
1352
1352
|
id="fakescrolldiv"
|
|
@@ -1362,7 +1362,7 @@ let he = class extends ke {
|
|
|
1362
1362
|
`;
|
|
1363
1363
|
}
|
|
1364
1364
|
};
|
|
1365
|
-
|
|
1365
|
+
de.styles = oe`
|
|
1366
1366
|
:host{
|
|
1367
1367
|
position: relative;
|
|
1368
1368
|
--border-radius: var(--spectric-border-radius,4em);
|
|
@@ -1386,8 +1386,8 @@ he.styles = oe`
|
|
|
1386
1386
|
background-color:var(--background-color);
|
|
1387
1387
|
}
|
|
1388
1388
|
::-webkit-scrollbar {
|
|
1389
|
-
height: ${
|
|
1390
|
-
width: ${
|
|
1389
|
+
height: ${br.height}px;
|
|
1390
|
+
width: ${br.width}px;
|
|
1391
1391
|
|
|
1392
1392
|
}
|
|
1393
1393
|
|
|
@@ -1461,25 +1461,25 @@ he.styles = oe`
|
|
|
1461
1461
|
`;
|
|
1462
1462
|
Ke([
|
|
1463
1463
|
f({ type: Object, attribute: !1 })
|
|
1464
|
-
],
|
|
1464
|
+
], de.prototype, "arrayBuffer", 2);
|
|
1465
1465
|
Ke([
|
|
1466
1466
|
f({ type: Number })
|
|
1467
|
-
],
|
|
1467
|
+
], de.prototype, "frameWidth", 2);
|
|
1468
1468
|
Ke([
|
|
1469
1469
|
f({ type: Number })
|
|
1470
|
-
],
|
|
1470
|
+
], de.prototype, "scale", 2);
|
|
1471
1471
|
Ke([
|
|
1472
1472
|
f({ type: Number })
|
|
1473
|
-
],
|
|
1473
|
+
], de.prototype, "width", 2);
|
|
1474
1474
|
Ke([
|
|
1475
1475
|
f({ type: Number })
|
|
1476
|
-
],
|
|
1476
|
+
], de.prototype, "height", 2);
|
|
1477
1477
|
Ke([
|
|
1478
|
-
|
|
1479
|
-
],
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
],
|
|
1478
|
+
Xt("canvas")
|
|
1479
|
+
], de.prototype, "_canvas", 2);
|
|
1480
|
+
de = Ke([
|
|
1481
|
+
I("spectric-bit-display")
|
|
1482
|
+
], de);
|
|
1483
1483
|
const la = oe`.spectric-header {
|
|
1484
1484
|
display: flex;
|
|
1485
1485
|
justify-content: space-between;
|
|
@@ -1516,7 +1516,7 @@ const la = oe`.spectric-header {
|
|
|
1516
1516
|
font-size: 14px;
|
|
1517
1517
|
}
|
|
1518
1518
|
`;
|
|
1519
|
-
var ca = Object.defineProperty, pa = Object.getOwnPropertyDescriptor,
|
|
1519
|
+
var ca = Object.defineProperty, pa = Object.getOwnPropertyDescriptor, xr = (e, t, s, i) => {
|
|
1520
1520
|
for (var r = i > 1 ? void 0 : i ? pa(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
1521
1521
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
1522
1522
|
return i && r && ca(t, s, r), r;
|
|
@@ -1567,19 +1567,19 @@ let Ve = class extends B {
|
|
|
1567
1567
|
}
|
|
1568
1568
|
};
|
|
1569
1569
|
Ve.styles = la;
|
|
1570
|
-
|
|
1570
|
+
xr([
|
|
1571
1571
|
f({ type: Boolean, reflect: !0 })
|
|
1572
1572
|
], Ve.prototype, "showCreateAccount", 2);
|
|
1573
|
-
|
|
1573
|
+
xr([
|
|
1574
1574
|
f({ type: Boolean, reflect: !0 })
|
|
1575
1575
|
], Ve.prototype, "showLoginButton", 2);
|
|
1576
|
-
|
|
1576
|
+
xr([
|
|
1577
1577
|
f({ type: String, reflect: !0 })
|
|
1578
1578
|
], Ve.prototype, "username", 2);
|
|
1579
|
-
Ve =
|
|
1580
|
-
|
|
1579
|
+
Ve = xr([
|
|
1580
|
+
I("spectric-header")
|
|
1581
1581
|
], Ve);
|
|
1582
|
-
var ua = Object.defineProperty, ha = Object.getOwnPropertyDescriptor,
|
|
1582
|
+
var ua = Object.defineProperty, ha = Object.getOwnPropertyDescriptor, Ct = (e, t, s, i) => {
|
|
1583
1583
|
for (var r = i > 1 ? void 0 : i ? ha(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
1584
1584
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
1585
1585
|
return i && r && ua(t, s, r), r;
|
|
@@ -1623,23 +1623,23 @@ let Ye = class extends B {
|
|
|
1623
1623
|
`;
|
|
1624
1624
|
}
|
|
1625
1625
|
};
|
|
1626
|
-
|
|
1626
|
+
Ct([
|
|
1627
1627
|
f({ type: Boolean, reflect: !0 })
|
|
1628
1628
|
], Ye.prototype, "dismissable", 2);
|
|
1629
|
-
|
|
1629
|
+
Ct([
|
|
1630
1630
|
f({ type: String, reflect: !0 })
|
|
1631
1631
|
], Ye.prototype, "text", 2);
|
|
1632
|
-
|
|
1632
|
+
Ct([
|
|
1633
1633
|
f({ type: String, reflect: !0 })
|
|
1634
1634
|
], Ye.prototype, "bannerId", 2);
|
|
1635
|
-
|
|
1635
|
+
Ct([
|
|
1636
1636
|
f({ type: Object })
|
|
1637
1637
|
], Ye.prototype, "headerStyle", 2);
|
|
1638
|
-
|
|
1638
|
+
Ct([
|
|
1639
1639
|
f({ state: !0, type: Boolean, attribute: !1 })
|
|
1640
1640
|
], Ye.prototype, "_dismissed", 2);
|
|
1641
|
-
Ye =
|
|
1642
|
-
|
|
1641
|
+
Ye = Ct([
|
|
1642
|
+
I("spectric-banner")
|
|
1643
1643
|
], Ye);
|
|
1644
1644
|
const fa = oe`
|
|
1645
1645
|
|
|
@@ -1803,7 +1803,7 @@ article{
|
|
|
1803
1803
|
* Copyright 2018 Google LLC
|
|
1804
1804
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1805
1805
|
*/
|
|
1806
|
-
const
|
|
1806
|
+
const Gr = (e) => e ?? L;
|
|
1807
1807
|
class ki extends xi {
|
|
1808
1808
|
constructor() {
|
|
1809
1809
|
super(...arguments), this.prevData = {};
|
|
@@ -1830,9 +1830,9 @@ class ki extends xi {
|
|
|
1830
1830
|
(!t || !(r in t) && i[r] === s[r]) && (i[r] = void 0);
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
|
-
const qe =
|
|
1834
|
-
var
|
|
1835
|
-
const
|
|
1833
|
+
const qe = At(ki);
|
|
1834
|
+
var Zr = /* @__PURE__ */ ((e) => (e.None = "none", e.Uscui = "us.cui", e.Usclassified = "us.classified", e.Usunclassified = "us.unclassified", e.Usconfidential = "us.confidential", e.Ussecret = "us.secret", e.Ustopsecret = "us.topsecret", e.UstopsecretSi = "us.topsecret.si", e.Uknotset = "uk.notset", e.Ukofficial = "uk.official", e.Uksecret = "uk.secret", e.Uktopsecret = "uk.topsecret", e.Caprotected_a = "ca.protected_a", e.Caprotected_b = "ca.protected_b", e.Caprotected_c = "ca.protected_c", e.Caconfidential = "ca.confidential", e.Casecret = "ca.secret", e.Catopsecret = "ca.topsecret", e.Auunofficial = "au.unofficial", e.Auofficial = "au.official", e.Auofficialsensitive = "au.officialsensitive", e.Auconfidential = "au.confidential", e.Ausecret = "au.secret", e.Autopsecret = "au.topsecret", e))(Zr || {});
|
|
1835
|
+
const cr = {
|
|
1836
1836
|
none: {},
|
|
1837
1837
|
//US Department of Defense spec CFR-2002-title31-vol1-sec2-7
|
|
1838
1838
|
"us.cui": {
|
|
@@ -1952,21 +1952,21 @@ const lr = {
|
|
|
1952
1952
|
content: "Top Secret"
|
|
1953
1953
|
}
|
|
1954
1954
|
};
|
|
1955
|
-
var ga = Object.defineProperty, ba = Object.getOwnPropertyDescriptor,
|
|
1955
|
+
var ga = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, be = (e, t, s, i) => {
|
|
1956
1956
|
for (var r = i > 1 ? void 0 : i ? ba(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
1957
1957
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
1958
1958
|
return i && r && ga(t, s, r), r;
|
|
1959
1959
|
};
|
|
1960
1960
|
let K = class extends B {
|
|
1961
1961
|
constructor() {
|
|
1962
|
-
super(...arguments), this.showHeader = !0, this.headerSticky = !0, this.classificationLevel =
|
|
1962
|
+
super(...arguments), this.showHeader = !0, this.headerSticky = !0, this.classificationLevel = Zr.None, this.classificationText = "", this.notifications = [], this.showCreateAccount = !1, this.showLoginButton = !0, this.username = "";
|
|
1963
1963
|
}
|
|
1964
1964
|
// protected createRenderRoot(): HTMLElement | DocumentFragment {
|
|
1965
1965
|
// return this
|
|
1966
1966
|
// }
|
|
1967
1967
|
render() {
|
|
1968
|
-
this.classificationLevel && !
|
|
1969
|
-
const e = this.classificationLevel ? this.classificationText ||
|
|
1968
|
+
this.classificationLevel && !cr[this.classificationLevel] && (console.warn("Unknown classification", this.classificationLevel), this.classificationLevel = Zr.None);
|
|
1969
|
+
const e = this.classificationLevel ? this.classificationText || cr[this.classificationLevel].content : "", t = this.showHeader ? m`<spectric-header ?showCreateAccount=${this.showCreateAccount} .showLoginButton=${this.showLoginButton} username=${Gr(this.username)}>
|
|
1970
1970
|
<slot name="branding" slot="branding"></slot>
|
|
1971
1971
|
<slot name="name" slot="name"></slot>
|
|
1972
1972
|
<slot name="center" slot="center"></slot>
|
|
@@ -1975,9 +1975,9 @@ let K = class extends B {
|
|
|
1975
1975
|
return m`
|
|
1976
1976
|
${this.classificationLevel && e ? m`
|
|
1977
1977
|
<!-- Classification Banner -->
|
|
1978
|
-
<spectric-banner ${qe({ text: e, headerStyle:
|
|
1978
|
+
<spectric-banner ${qe({ text: e, headerStyle: cr[this.classificationLevel] })}></spectric-banner>
|
|
1979
1979
|
` : null}
|
|
1980
|
-
<spectric-theme theme=${
|
|
1980
|
+
<spectric-theme theme=${Gr(this.theme)}>
|
|
1981
1981
|
${this.notifications ? this.notifications.map((s) => m`<spectric-banner ${qe(s)} ></spectric-banner>`) : null}
|
|
1982
1982
|
${this.headerSticky ? t : null}
|
|
1983
1983
|
<article>
|
|
@@ -1988,50 +1988,50 @@ let K = class extends B {
|
|
|
1988
1988
|
</section>
|
|
1989
1989
|
</article>
|
|
1990
1990
|
</spectric-theme>
|
|
1991
|
-
${this.classificationLevel && e ? m`<spectric-banner ${qe({ text: e, headerStyle:
|
|
1991
|
+
${this.classificationLevel && e ? m`<spectric-banner ${qe({ text: e, headerStyle: cr[this.classificationLevel] })}></spectric-banner>` : null}
|
|
1992
1992
|
|
|
1993
1993
|
`;
|
|
1994
1994
|
}
|
|
1995
1995
|
};
|
|
1996
1996
|
K.styles = fa;
|
|
1997
|
-
|
|
1997
|
+
be([
|
|
1998
1998
|
f({ type: Boolean, reflect: !0 })
|
|
1999
1999
|
], K.prototype, "showHeader", 2);
|
|
2000
|
-
|
|
2000
|
+
be([
|
|
2001
2001
|
f({ type: Boolean, reflect: !0 })
|
|
2002
2002
|
], K.prototype, "headerSticky", 2);
|
|
2003
|
-
|
|
2003
|
+
be([
|
|
2004
2004
|
f({ type: String, reflect: !0 })
|
|
2005
2005
|
], K.prototype, "classificationLevel", 2);
|
|
2006
|
-
|
|
2006
|
+
be([
|
|
2007
2007
|
f({ type: String, reflect: !0 })
|
|
2008
2008
|
], K.prototype, "classificationText", 2);
|
|
2009
|
-
|
|
2009
|
+
be([
|
|
2010
2010
|
f({ type: Array, reflect: !0 })
|
|
2011
2011
|
], K.prototype, "notifications", 2);
|
|
2012
|
-
|
|
2012
|
+
be([
|
|
2013
2013
|
f({ type: Boolean, reflect: !0 })
|
|
2014
2014
|
], K.prototype, "showCreateAccount", 2);
|
|
2015
|
-
|
|
2015
|
+
be([
|
|
2016
2016
|
f({ type: Boolean, reflect: !0 })
|
|
2017
2017
|
], K.prototype, "showLoginButton", 2);
|
|
2018
|
-
|
|
2018
|
+
be([
|
|
2019
2019
|
f({ type: String, reflect: !0 })
|
|
2020
2020
|
], K.prototype, "username", 2);
|
|
2021
|
-
|
|
2021
|
+
be([
|
|
2022
2022
|
f({ type: String, reflect: !0 })
|
|
2023
2023
|
], K.prototype, "theme", 2);
|
|
2024
|
-
K =
|
|
2025
|
-
|
|
2024
|
+
K = be([
|
|
2025
|
+
I("spectric-page")
|
|
2026
2026
|
], K);
|
|
2027
|
-
var va = Object.defineProperty, ya = Object.getOwnPropertyDescriptor,
|
|
2027
|
+
var va = Object.defineProperty, ya = Object.getOwnPropertyDescriptor, R = (e, t, s, i) => {
|
|
2028
2028
|
for (var r = i > 1 ? void 0 : i ? ya(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
2029
2029
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
2030
2030
|
return i && r && va(t, s, r), r;
|
|
2031
2031
|
}, Ai = /* @__PURE__ */ ((e) => (e.Text = "text", e.TextArea = "text-area", e.number = "number", e.color = "color", e.date = "date", e.datePopup = "popup-date", e.datetime = "datetime-local", e.email = "email", e.file = "file", e.hidden = "hidden", e.password = "password", e.checkbox = "checkbox", e.range = "range", e))(Ai || {});
|
|
2032
|
-
let
|
|
2032
|
+
let M = class extends B {
|
|
2033
2033
|
constructor() {
|
|
2034
|
-
super(...arguments), this.checked = !1, this.files = null, this.placeholder = "", this.readonly = !1, this.variant = "text", this.disabled = !1, this.label = "", this.hidePasswordLabel = "Hide", this.showPasswordLabel = "Show", this.showPasswordVisibilityToggle = !0, this.helperText = "", this.invalid = !1, this.required = !1, this.invalidText = "", this.name = "", this.pattern = "", this.maxCount = 0, this._value = "", this._showPassword = !1, this.autocomplete = "off", this._handleInput = ({ target: e }) => {
|
|
2034
|
+
super(...arguments), this.checked = !1, this.files = null, this.placeholder = "", this.readonly = !1, this.variant = "text", this.disabled = !1, this.label = "", this.hidePasswordLabel = "Hide", this.showPasswordLabel = "Show", this.showPasswordVisibilityToggle = !0, this.helperText = "", this.invalid = !1, this.required = !1, this.invalidText = "", this.name = "", this.pattern = "", this.maxCount = 0, this._value = "", this._showPassword = !1, this.autocomplete = "off", this.spellcheck = !0, this._handleInput = ({ target: e }) => {
|
|
2035
2035
|
const t = e;
|
|
2036
2036
|
this.variant == "file" ? this.files = t.files : this.value = t.value, this.invalid = !t.validity.valid;
|
|
2037
2037
|
}, this.handleTogglePasswordVisibility = () => {
|
|
@@ -2106,6 +2106,7 @@ let z = class extends B {
|
|
|
2106
2106
|
pattern="${lt(this.pattern)}"
|
|
2107
2107
|
placeholder="${lt(this.placeholder)}"
|
|
2108
2108
|
autocomplete="${lt(this.autocomplete)}"
|
|
2109
|
+
spellcheck=${this.spellcheck}
|
|
2109
2110
|
?readonly="${this.readonly}"
|
|
2110
2111
|
?required="${this.required}"
|
|
2111
2112
|
type="${lt(
|
|
@@ -2190,79 +2191,82 @@ let z = class extends B {
|
|
|
2190
2191
|
return `Not yet implemented ${this.variant}`;
|
|
2191
2192
|
}
|
|
2192
2193
|
};
|
|
2193
|
-
|
|
2194
|
+
R([
|
|
2194
2195
|
f({ type: Boolean, reflect: !0 })
|
|
2195
|
-
],
|
|
2196
|
-
|
|
2196
|
+
], M.prototype, "checked", 2);
|
|
2197
|
+
R([
|
|
2197
2198
|
f({ type: String, reflect: !0 })
|
|
2198
|
-
],
|
|
2199
|
-
|
|
2199
|
+
], M.prototype, "placeholder", 2);
|
|
2200
|
+
R([
|
|
2200
2201
|
f({ type: Boolean, reflect: !0 })
|
|
2201
|
-
],
|
|
2202
|
-
|
|
2202
|
+
], M.prototype, "readonly", 2);
|
|
2203
|
+
R([
|
|
2203
2204
|
f({ type: String, reflect: !0 })
|
|
2204
|
-
],
|
|
2205
|
-
|
|
2205
|
+
], M.prototype, "variant", 2);
|
|
2206
|
+
R([
|
|
2206
2207
|
f({ type: Boolean, reflect: !0 })
|
|
2207
|
-
],
|
|
2208
|
-
|
|
2208
|
+
], M.prototype, "disabled", 2);
|
|
2209
|
+
R([
|
|
2209
2210
|
f({ type: String, reflect: !0 })
|
|
2210
|
-
],
|
|
2211
|
-
|
|
2211
|
+
], M.prototype, "label", 2);
|
|
2212
|
+
R([
|
|
2212
2213
|
f()
|
|
2213
|
-
],
|
|
2214
|
-
|
|
2214
|
+
], M.prototype, "hidePasswordLabel", 2);
|
|
2215
|
+
R([
|
|
2215
2216
|
f()
|
|
2216
|
-
],
|
|
2217
|
-
|
|
2217
|
+
], M.prototype, "showPasswordLabel", 2);
|
|
2218
|
+
R([
|
|
2218
2219
|
f({
|
|
2219
2220
|
type: Boolean,
|
|
2220
2221
|
reflect: !0
|
|
2221
2222
|
})
|
|
2222
|
-
],
|
|
2223
|
-
|
|
2223
|
+
], M.prototype, "showPasswordVisibilityToggle", 2);
|
|
2224
|
+
R([
|
|
2224
2225
|
f({ type: String, reflect: !0 })
|
|
2225
|
-
],
|
|
2226
|
-
|
|
2226
|
+
], M.prototype, "helperText", 2);
|
|
2227
|
+
R([
|
|
2227
2228
|
f({ type: Boolean, reflect: !0 })
|
|
2228
|
-
],
|
|
2229
|
-
|
|
2229
|
+
], M.prototype, "invalid", 2);
|
|
2230
|
+
R([
|
|
2230
2231
|
f({ type: Boolean, reflect: !0 })
|
|
2231
|
-
],
|
|
2232
|
-
|
|
2232
|
+
], M.prototype, "required", 2);
|
|
2233
|
+
R([
|
|
2233
2234
|
f({ type: String, reflect: !0 })
|
|
2234
|
-
],
|
|
2235
|
-
|
|
2235
|
+
], M.prototype, "invalidText", 2);
|
|
2236
|
+
R([
|
|
2236
2237
|
f()
|
|
2237
|
-
],
|
|
2238
|
-
|
|
2238
|
+
], M.prototype, "name", 2);
|
|
2239
|
+
R([
|
|
2239
2240
|
f()
|
|
2240
|
-
],
|
|
2241
|
-
|
|
2241
|
+
], M.prototype, "pattern", 2);
|
|
2242
|
+
R([
|
|
2242
2243
|
f({ type: Number, reflect: !0 })
|
|
2243
|
-
],
|
|
2244
|
-
|
|
2244
|
+
], M.prototype, "maxCount", 2);
|
|
2245
|
+
R([
|
|
2245
2246
|
f({ reflect: !0 })
|
|
2246
|
-
],
|
|
2247
|
-
|
|
2247
|
+
], M.prototype, "autocomplete", 2);
|
|
2248
|
+
R([
|
|
2249
|
+
f({ reflect: !0, type: Boolean })
|
|
2250
|
+
], M.prototype, "spellcheck", 2);
|
|
2251
|
+
R([
|
|
2248
2252
|
f({ reflect: !0 })
|
|
2249
|
-
],
|
|
2250
|
-
|
|
2253
|
+
], M.prototype, "value", 1);
|
|
2254
|
+
R([
|
|
2251
2255
|
Se("input")
|
|
2252
|
-
],
|
|
2253
|
-
|
|
2256
|
+
], M.prototype, "_input", 2);
|
|
2257
|
+
R([
|
|
2254
2258
|
Je({ capture: !0 })
|
|
2255
|
-
],
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
],
|
|
2259
|
-
const lt = (e) =>
|
|
2259
|
+
], M.prototype, "_handleChange", 1);
|
|
2260
|
+
M = R([
|
|
2261
|
+
I("spectric-input")
|
|
2262
|
+
], M);
|
|
2263
|
+
const lt = (e) => Gr(e === "" ? void 0 : e ?? void 0), ma = "end of input", $a = {
|
|
2260
2264
|
fieldName: "field name",
|
|
2261
2265
|
value: "value",
|
|
2262
2266
|
literal: "literal",
|
|
2263
2267
|
whitespace: "whitespace"
|
|
2264
2268
|
};
|
|
2265
|
-
class
|
|
2269
|
+
class Ci extends Error {
|
|
2266
2270
|
constructor(t, s) {
|
|
2267
2271
|
let i = t.message;
|
|
2268
2272
|
if (t.expected) {
|
|
@@ -2291,7 +2295,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2291
2295
|
buildNode: $t,
|
|
2292
2296
|
toOpenSearchQuery: as
|
|
2293
2297
|
}, Symbol.toStringTag, { value: "Module" })), {
|
|
2294
|
-
parse:
|
|
2298
|
+
parse: Sr
|
|
2295
2299
|
} = (
|
|
2296
2300
|
// @generated by Peggy 5.0.6.
|
|
2297
2301
|
//
|
|
@@ -2305,15 +2309,15 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2305
2309
|
let r = "Error: " + this.message;
|
|
2306
2310
|
if (this.location) {
|
|
2307
2311
|
let a = null;
|
|
2308
|
-
const n = i.find((
|
|
2312
|
+
const n = i.find(($) => $.source === this.location.source);
|
|
2309
2313
|
n && (a = n.text.split(/\r\n|\n|\r/g));
|
|
2310
2314
|
const h = this.location.start, u = this.location.source && typeof this.location.source.offset == "function" ? this.location.source.offset(h) : h, g = this.location.source + ":" + u.line + ":" + u.column;
|
|
2311
2315
|
if (a) {
|
|
2312
|
-
const
|
|
2316
|
+
const $ = this.location.end, v = "".padEnd(u.line.toString().length, " "), C = a[h.line - 1], _ = (h.line === $.line ? $.column : C.length + 1) - h.column || 1;
|
|
2313
2317
|
r += `
|
|
2314
2318
|
--> ` + g + `
|
|
2315
2319
|
` + v + ` |
|
|
2316
|
-
` + u.line + " | " +
|
|
2320
|
+
` + u.line + " | " + C + `
|
|
2317
2321
|
` + v + " | " + "".padEnd(h.column - 1, " ") + "".padEnd(_, "^");
|
|
2318
2322
|
} else
|
|
2319
2323
|
r += `
|
|
@@ -2335,7 +2339,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2335
2339
|
function g(_) {
|
|
2336
2340
|
return h(_.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (A) => "\\x0" + a(A)).replace(/[\x10-\x1F\x7F-\x9F]/g, (A) => "\\x" + a(A)));
|
|
2337
2341
|
}
|
|
2338
|
-
const
|
|
2342
|
+
const $ = {
|
|
2339
2343
|
literal(_) {
|
|
2340
2344
|
return '"' + u(_.text) + '"';
|
|
2341
2345
|
},
|
|
@@ -2356,9 +2360,9 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2356
2360
|
}
|
|
2357
2361
|
};
|
|
2358
2362
|
function v(_) {
|
|
2359
|
-
return
|
|
2363
|
+
return $[_.type](_);
|
|
2360
2364
|
}
|
|
2361
|
-
function
|
|
2365
|
+
function C(_) {
|
|
2362
2366
|
const A = _.map(v);
|
|
2363
2367
|
if (A.sort(), A.length > 0) {
|
|
2364
2368
|
let T = 1;
|
|
@@ -2375,21 +2379,21 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2375
2379
|
return A.slice(0, -1).join(", ") + ", or " + A[A.length - 1];
|
|
2376
2380
|
}
|
|
2377
2381
|
}
|
|
2378
|
-
function
|
|
2382
|
+
function w(_) {
|
|
2379
2383
|
return _ ? '"' + u(_) + '"' : "end of input";
|
|
2380
2384
|
}
|
|
2381
|
-
return "Expected " +
|
|
2385
|
+
return "Expected " + C(i) + " but " + w(r) + " found.";
|
|
2382
2386
|
}
|
|
2383
2387
|
}
|
|
2384
2388
|
function t(s, i) {
|
|
2385
2389
|
i = i !== void 0 ? i : {};
|
|
2386
2390
|
const r = {}, a = i.grammarSource, n = {
|
|
2387
2391
|
start: As,
|
|
2388
|
-
Literal:
|
|
2392
|
+
Literal: Dr
|
|
2389
2393
|
};
|
|
2390
2394
|
let h = As;
|
|
2391
|
-
const u = "(", g = ")",
|
|
2392
|
-
`], !1, !1, !1), _o =
|
|
2395
|
+
const u = "(", g = ")", $ = ":", v = "{", C = "}", w = "or", _ = "and", A = "not", T = ".", N = '"', ue = "\\", z = "*", G = "\\t", F = "\\r", tt = "\\n", ve = "<@", ze = "<=", se = ">=", tr = "<", rt = ">", st = "©kuery-cursor©", Pt = /^[0-9]/, Ae = /^[\\"]/, Vi = /^[^"]/, Yi = /^[\\():<>"*{}]/, Gi = /^[ \t\r\n]/, ms = j("(", !1), $s = j(")", !1), _s = j(":", !1), Zi = j("{", !1), Ji = j("}", !1), Ki = Re("fieldName"), Xi = Re("value"), eo = Re("OR"), ws = j("or", !0), to = Re("AND"), xs = j("and", !0), ro = Re("NOT"), Ss = j("not", !0), so = Re("literal"), io = j(".", !1), rr = Nt([["0", "9"]], !1, !1, !1), sr = j('"', !1), Cr = j("\\", !1), oo = Nt(["\\", '"'], !1, !1, !1), no = Nt(['"'], !0, !1, !1), ao = nn(), lo = j("*", !1), co = j("\\t", !1), po = j("\\r", !1), uo = j("\\n", !1), ho = Nt(["\\", "(", ")", ":", "<", ">", '"', "*", "{", "}"], !1, !1, !1), fo = j("<@", !1), go = j("<=", !1), bo = j(">=", !1), vo = j("<", !1), yo = j(">", !1), mo = Re("whitespace"), $o = Nt([" ", " ", "\r", `
|
|
2396
|
+
`], !1, !1, !1), _o = j("©kuery-cursor©", !1);
|
|
2393
2397
|
function wo(o, l) {
|
|
2394
2398
|
return l.type === "cursor" ? {
|
|
2395
2399
|
...l,
|
|
@@ -2399,14 +2403,14 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2399
2403
|
}
|
|
2400
2404
|
function xo(o, l) {
|
|
2401
2405
|
const p = [o, l].find((d) => d.type === "cursor");
|
|
2402
|
-
return p ||
|
|
2406
|
+
return p || ie("or", [o, l]);
|
|
2403
2407
|
}
|
|
2404
2408
|
function So(o, l) {
|
|
2405
2409
|
const p = [o, l].find((d) => d.type === "cursor");
|
|
2406
|
-
return p ||
|
|
2410
|
+
return p || ie("and", [o, l]);
|
|
2407
2411
|
}
|
|
2408
2412
|
function ko(o) {
|
|
2409
|
-
return o.type === "cursor" ? o :
|
|
2413
|
+
return o.type === "cursor" ? o : ie("not", [o]);
|
|
2410
2414
|
}
|
|
2411
2415
|
function Ao(o, l) {
|
|
2412
2416
|
return l.type === "cursor" ? {
|
|
@@ -2415,16 +2419,16 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2415
2419
|
rule: "SubQuery"
|
|
2416
2420
|
} : (at++, { ...o, group: at });
|
|
2417
2421
|
}
|
|
2418
|
-
function
|
|
2422
|
+
function Co(o, l, p) {
|
|
2419
2423
|
return l.type === "cursor" ? {
|
|
2420
2424
|
...l,
|
|
2421
2425
|
nestedPath: l.nestedPath ? `${o.value}.${l.nestedPath}` : o.value
|
|
2422
2426
|
} : p.type === "cursor" ? {
|
|
2423
2427
|
...p,
|
|
2424
2428
|
suggestionTypes: ["conjunction"]
|
|
2425
|
-
} :
|
|
2429
|
+
} : ie("nested", [o, l]);
|
|
2426
2430
|
}
|
|
2427
|
-
function
|
|
2431
|
+
function Oo(o, l, p) {
|
|
2428
2432
|
return p.type === "cursor" ? {
|
|
2429
2433
|
...p,
|
|
2430
2434
|
fieldName: o.value,
|
|
@@ -2446,7 +2450,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2446
2450
|
};
|
|
2447
2451
|
Rs(l, p(o));
|
|
2448
2452
|
const d = p(o);
|
|
2449
|
-
return d.function == "is" ?
|
|
2453
|
+
return d.function == "is" ? ie("geospatial", [o, l, d.arguments[1]]) : { ...d, arguments: d.arguments.map((b) => ie("geospatial", {
|
|
2450
2454
|
type: "function",
|
|
2451
2455
|
function: "geospatial",
|
|
2452
2456
|
arguments: [o, l, b.arguments[1]]
|
|
@@ -2461,10 +2465,10 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2461
2465
|
rule: "FieldRangeExpression"
|
|
2462
2466
|
};
|
|
2463
2467
|
const d = Rs(l, p);
|
|
2464
|
-
return
|
|
2468
|
+
return ie("range", [o, d]);
|
|
2465
2469
|
}
|
|
2466
2470
|
function To(o, l) {
|
|
2467
|
-
return l.type === "cursor" ? l.prefix.includes(
|
|
2471
|
+
return l.type === "cursor" ? l.prefix.includes(zr) ? {
|
|
2468
2472
|
...l,
|
|
2469
2473
|
fieldName: o.value,
|
|
2470
2474
|
suggestionTypes: ["conjunction"],
|
|
@@ -2486,7 +2490,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2486
2490
|
rule: "ValueExpression"
|
|
2487
2491
|
};
|
|
2488
2492
|
}
|
|
2489
|
-
const l =
|
|
2493
|
+
const l = Ce(null);
|
|
2490
2494
|
return o(l);
|
|
2491
2495
|
}
|
|
2492
2496
|
function No(o, l) {
|
|
@@ -2502,7 +2506,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2502
2506
|
...p,
|
|
2503
2507
|
suggestionTypes: ["value"],
|
|
2504
2508
|
rule: "OrListOfValues"
|
|
2505
|
-
} : (at++, (d) => ({ ...
|
|
2509
|
+
} : (at++, (d) => ({ ...ie("or", [o(d), l(d)]), group: at }));
|
|
2506
2510
|
}
|
|
2507
2511
|
function Mo(o, l) {
|
|
2508
2512
|
const p = [o, l].find((d) => d.type === "cursor");
|
|
@@ -2510,31 +2514,31 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2510
2514
|
...p,
|
|
2511
2515
|
suggestionTypes: ["value"],
|
|
2512
2516
|
rule: "AndListOfValues"
|
|
2513
|
-
} : (at++, (d) => ({ ...
|
|
2517
|
+
} : (at++, (d) => ({ ...ie("and", [o(d), l(d)]), group: at }));
|
|
2514
2518
|
}
|
|
2515
2519
|
function zo(o) {
|
|
2516
2520
|
return o.type === "cursor" ? {
|
|
2517
2521
|
...list,
|
|
2518
2522
|
suggestionTypes: ["value"],
|
|
2519
2523
|
rule: "NotListOfValues"
|
|
2520
|
-
} : (l) =>
|
|
2524
|
+
} : (l) => ie("not", [o(l)]);
|
|
2521
2525
|
}
|
|
2522
2526
|
function Ro(o) {
|
|
2523
2527
|
if (o.type === "cursor") return o;
|
|
2524
|
-
const l =
|
|
2525
|
-
return (p) =>
|
|
2528
|
+
const l = Ce(!0);
|
|
2529
|
+
return (p) => ie("is", [p, o, l]);
|
|
2526
2530
|
}
|
|
2527
2531
|
function jo(o) {
|
|
2528
2532
|
if (o.type === "cursor") return o;
|
|
2529
|
-
!
|
|
2530
|
-
const l =
|
|
2531
|
-
return (p) =>
|
|
2533
|
+
!Cn && o.type === "wildcard" && je.wildcard.hasLeadingWildcard(o) && sn("Leading wildcards are disabled. See query:allowLeadingWildcards in Advanced Settings.");
|
|
2534
|
+
const l = Ce(!1);
|
|
2535
|
+
return (p) => ie("is", [p, o, l]);
|
|
2532
2536
|
}
|
|
2533
2537
|
function Io() {
|
|
2534
|
-
return parseFloat(
|
|
2538
|
+
return parseFloat(Lt());
|
|
2535
2539
|
}
|
|
2536
2540
|
function Bo() {
|
|
2537
|
-
return parseInt(
|
|
2541
|
+
return parseInt(Lt(), 10);
|
|
2538
2542
|
}
|
|
2539
2543
|
function Uo(o, l, p) {
|
|
2540
2544
|
const { start: d, end: b } = Or();
|
|
@@ -2544,12 +2548,12 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2544
2548
|
end: b.offset - l.length,
|
|
2545
2549
|
prefix: o.join(""),
|
|
2546
2550
|
suffix: p.join(""),
|
|
2547
|
-
text:
|
|
2551
|
+
text: Lt().replace(l, ""),
|
|
2548
2552
|
rule: "QuotedString"
|
|
2549
2553
|
};
|
|
2550
2554
|
}
|
|
2551
|
-
function
|
|
2552
|
-
return
|
|
2555
|
+
function Fo(o) {
|
|
2556
|
+
return Ce(o.join(""));
|
|
2553
2557
|
}
|
|
2554
2558
|
function Kc(o) {
|
|
2555
2559
|
return o;
|
|
@@ -2557,7 +2561,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2557
2561
|
function Xc(o) {
|
|
2558
2562
|
return o;
|
|
2559
2563
|
}
|
|
2560
|
-
function
|
|
2564
|
+
function Ho(o, l, p) {
|
|
2561
2565
|
const { start: d, end: b } = Or();
|
|
2562
2566
|
return {
|
|
2563
2567
|
type: "cursor",
|
|
@@ -2565,13 +2569,13 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2565
2569
|
end: b.offset - l.length,
|
|
2566
2570
|
prefix: o.join(""),
|
|
2567
2571
|
suffix: p.join(""),
|
|
2568
|
-
text:
|
|
2572
|
+
text: Lt().replace(l, ""),
|
|
2569
2573
|
rule: "UnquotedLiteral"
|
|
2570
2574
|
};
|
|
2571
2575
|
}
|
|
2572
2576
|
function qo(o) {
|
|
2573
2577
|
const l = o.join("").trim();
|
|
2574
|
-
return l === "null" ?
|
|
2578
|
+
return l === "null" ? Ce(null) : l === "true" ? Ce(!0) : l === "false" ? Ce(!1) : o.includes(zr) ? On(l) : Ce(
|
|
2575
2579
|
/^(-?[1-9]+\d*([.]\d+)?)$|^(-?0[.]\d*[1-9]+)$|^0$|^0.0$|^[.]\d{1,}$/.test(l) ? isFinite(l) && (l > Number.MAX_SAFE_INTEGER || l < Number.MIN_SAFE_INTEGER) ? BigInt(l) : Number(l) : l
|
|
2576
2580
|
);
|
|
2577
2581
|
}
|
|
@@ -2579,7 +2583,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2579
2583
|
return o;
|
|
2580
2584
|
}
|
|
2581
2585
|
function Qo() {
|
|
2582
|
-
return
|
|
2586
|
+
return zr;
|
|
2583
2587
|
}
|
|
2584
2588
|
function Wo(o, l, p) {
|
|
2585
2589
|
const { start: d, end: b } = Or();
|
|
@@ -2589,7 +2593,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2589
2593
|
end: b.offset - l.length,
|
|
2590
2594
|
prefix: o.join(""),
|
|
2591
2595
|
suffix: p.join(""),
|
|
2592
|
-
text:
|
|
2596
|
+
text: Lt().replace(l, ""),
|
|
2593
2597
|
rule: "OptionalSpace"
|
|
2594
2598
|
};
|
|
2595
2599
|
}
|
|
@@ -2632,29 +2636,29 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2632
2636
|
}
|
|
2633
2637
|
let c = i.peg$currPos | 0, E = c;
|
|
2634
2638
|
const it = [{ line: 1, column: 1 }];
|
|
2635
|
-
let ae = c,
|
|
2639
|
+
let ae = c, ir = i.peg$maxFailExpected || [], y = i.peg$silentFails | 0, Tt;
|
|
2636
2640
|
if (i.startRule) {
|
|
2637
2641
|
if (!(i.startRule in n))
|
|
2638
2642
|
throw new Error(`Can't start parsing from rule "` + i.startRule + '".');
|
|
2639
2643
|
h = n[i.startRule];
|
|
2640
2644
|
}
|
|
2641
|
-
function
|
|
2645
|
+
function Lt() {
|
|
2642
2646
|
return s.substring(E, c);
|
|
2643
2647
|
}
|
|
2644
2648
|
function Or() {
|
|
2645
|
-
return
|
|
2649
|
+
return or(E, c);
|
|
2646
2650
|
}
|
|
2647
2651
|
function sn(o, l) {
|
|
2648
|
-
throw l = l !== void 0 ? l :
|
|
2652
|
+
throw l = l !== void 0 ? l : or(E, c), ln(o, l);
|
|
2649
2653
|
}
|
|
2650
2654
|
function on(o = c) {
|
|
2651
2655
|
const l = s.codePointAt(o);
|
|
2652
2656
|
return l === void 0 ? "" : String.fromCodePoint(l);
|
|
2653
2657
|
}
|
|
2654
|
-
function
|
|
2658
|
+
function j(o, l) {
|
|
2655
2659
|
return { type: "literal", text: o, ignoreCase: l };
|
|
2656
2660
|
}
|
|
2657
|
-
function
|
|
2661
|
+
function Nt(o, l, p, d) {
|
|
2658
2662
|
return { type: "class", parts: o, inverted: l, ignoreCase: p, unicode: d };
|
|
2659
2663
|
}
|
|
2660
2664
|
function nn() {
|
|
@@ -2682,7 +2686,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2682
2686
|
s.charCodeAt(p) === 10 ? (l.line++, l.column = 1) : l.column++, p++;
|
|
2683
2687
|
return it[o] = l, l;
|
|
2684
2688
|
}
|
|
2685
|
-
function
|
|
2689
|
+
function or(o, l, p) {
|
|
2686
2690
|
const d = ks(o), b = ks(l);
|
|
2687
2691
|
return {
|
|
2688
2692
|
source: a,
|
|
@@ -2699,7 +2703,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2699
2703
|
};
|
|
2700
2704
|
}
|
|
2701
2705
|
function k(o) {
|
|
2702
|
-
c < ae || (c > ae && (ae = c,
|
|
2706
|
+
c < ae || (c > ae && (ae = c, ir = []), ir.push(o));
|
|
2703
2707
|
}
|
|
2704
2708
|
function ln(o, l) {
|
|
2705
2709
|
return new e(o, null, null, l);
|
|
@@ -2714,44 +2718,44 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2714
2718
|
}
|
|
2715
2719
|
function As() {
|
|
2716
2720
|
let o, l, p, d;
|
|
2717
|
-
for (o = c, l = [], p =
|
|
2718
|
-
l.push(p), p =
|
|
2719
|
-
return p =
|
|
2721
|
+
for (o = c, l = [], p = O(); p !== r; )
|
|
2722
|
+
l.push(p), p = O();
|
|
2723
|
+
return p = nr(), p === r && (p = null), d = Mt(), d !== r ? (E = o, o = wo(p, d)) : (c = o, o = r), o;
|
|
2720
2724
|
}
|
|
2721
|
-
function
|
|
2725
|
+
function nr() {
|
|
2722
2726
|
let o, l, p, d;
|
|
2723
|
-
return o = c, l =
|
|
2727
|
+
return o = c, l = Er(), l !== r ? (p = Tr(), p !== r ? (d = nr(), d !== r ? (E = o, o = xo(l, d)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = Er()), o;
|
|
2724
2728
|
}
|
|
2725
|
-
function
|
|
2729
|
+
function Er() {
|
|
2726
2730
|
let o, l, p, d;
|
|
2727
|
-
return o = c, l =
|
|
2731
|
+
return o = c, l = Cs(), l !== r ? (p = Lr(), p !== r ? (d = Er(), d !== r ? (E = o, o = So(l, d)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = Cs()), o;
|
|
2728
2732
|
}
|
|
2729
|
-
function
|
|
2733
|
+
function Cs() {
|
|
2730
2734
|
let o, l, p;
|
|
2731
|
-
return o = c, l =
|
|
2735
|
+
return o = c, l = Nr(), l !== r ? (p = Os(), p !== r ? (E = o, o = ko(p)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = Os()), o;
|
|
2732
2736
|
}
|
|
2733
|
-
function
|
|
2734
|
-
let o, l, p, d, b,
|
|
2737
|
+
function Os() {
|
|
2738
|
+
let o, l, p, d, b, S;
|
|
2735
2739
|
if (o = c, s.charCodeAt(c) === 40 ? (l = u, c++) : (l = r, y === 0 && k(ms)), l !== r) {
|
|
2736
|
-
for (p = [], d =
|
|
2737
|
-
p.push(d), d =
|
|
2738
|
-
d =
|
|
2740
|
+
for (p = [], d = O(); d !== r; )
|
|
2741
|
+
p.push(d), d = O();
|
|
2742
|
+
d = nr(), d !== r ? (b = Mt(), b !== r ? (s.charCodeAt(c) === 41 ? (S = g, c++) : (S = r, y === 0 && k($s)), S !== r ? (E = o, o = Ao(d, b)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r);
|
|
2739
2743
|
} else
|
|
2740
2744
|
c = o, o = r;
|
|
2741
2745
|
return o === r && (o = pn()), o;
|
|
2742
2746
|
}
|
|
2743
2747
|
function pn() {
|
|
2744
|
-
let o, l, p, d, b,
|
|
2745
|
-
if (o = c, l =
|
|
2746
|
-
for (p = [], d =
|
|
2747
|
-
p.push(d), d =
|
|
2748
|
-
if (s.charCodeAt(c) === 58 ? (d =
|
|
2749
|
-
for (b = [],
|
|
2750
|
-
b.push(
|
|
2751
|
-
if (s.charCodeAt(c) === 123 ? (
|
|
2752
|
-
for (Is = [], Ie =
|
|
2753
|
-
Is.push(Ie), Ie =
|
|
2754
|
-
Ie =
|
|
2748
|
+
let o, l, p, d, b, S, Is, Ie, jr, Ir;
|
|
2749
|
+
if (o = c, l = Dt(), l !== r) {
|
|
2750
|
+
for (p = [], d = O(); d !== r; )
|
|
2751
|
+
p.push(d), d = O();
|
|
2752
|
+
if (s.charCodeAt(c) === 58 ? (d = $, c++) : (d = r, y === 0 && k(_s)), d !== r) {
|
|
2753
|
+
for (b = [], S = O(); S !== r; )
|
|
2754
|
+
b.push(S), S = O();
|
|
2755
|
+
if (s.charCodeAt(c) === 123 ? (S = v, c++) : (S = r, y === 0 && k(Zi)), S !== r) {
|
|
2756
|
+
for (Is = [], Ie = O(); Ie !== r; )
|
|
2757
|
+
Is.push(Ie), Ie = O();
|
|
2758
|
+
Ie = nr(), Ie !== r ? (jr = Mt(), jr !== r ? (s.charCodeAt(c) === 125 ? (Ir = C, c++) : (Ir = r, y === 0 && k(Ji)), Ir !== r ? (E = o, o = Co(l, Ie, jr)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r);
|
|
2755
2759
|
} else
|
|
2756
2760
|
c = o, o = r;
|
|
2757
2761
|
} else
|
|
@@ -2764,19 +2768,19 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2764
2768
|
let o;
|
|
2765
2769
|
return o = hn(), o === r && (o = dn(), o === r && (o = fn(), o === r && (o = gn(), o === r && (o = bn())))), o;
|
|
2766
2770
|
}
|
|
2767
|
-
function
|
|
2771
|
+
function Dt() {
|
|
2768
2772
|
let o;
|
|
2769
|
-
return y++, o =
|
|
2773
|
+
return y++, o = Dr(), y--, o === r && y === 0 && k(Ki), o;
|
|
2770
2774
|
}
|
|
2771
2775
|
function hn() {
|
|
2772
|
-
let o, l, p, d, b,
|
|
2773
|
-
if (o = c, l =
|
|
2774
|
-
for (p = [], d =
|
|
2775
|
-
p.push(d), d =
|
|
2776
|
+
let o, l, p, d, b, S;
|
|
2777
|
+
if (o = c, l = Dt(), l !== r) {
|
|
2778
|
+
for (p = [], d = O(); d !== r; )
|
|
2779
|
+
p.push(d), d = O();
|
|
2776
2780
|
if (d = zs(), d !== r) {
|
|
2777
|
-
for (b = [],
|
|
2778
|
-
b.push(
|
|
2779
|
-
|
|
2781
|
+
for (b = [], S = O(); S !== r; )
|
|
2782
|
+
b.push(S), S = O();
|
|
2783
|
+
S = Dr(), S !== r ? (E = o, o = Oo(l, d, S)) : (c = o, o = r);
|
|
2780
2784
|
} else
|
|
2781
2785
|
c = o, o = r;
|
|
2782
2786
|
} else
|
|
@@ -2784,14 +2788,14 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2784
2788
|
return o;
|
|
2785
2789
|
}
|
|
2786
2790
|
function dn() {
|
|
2787
|
-
let o, l, p, d, b,
|
|
2788
|
-
if (o = c, l =
|
|
2789
|
-
for (p = [], d =
|
|
2790
|
-
p.push(d), d =
|
|
2791
|
+
let o, l, p, d, b, S;
|
|
2792
|
+
if (o = c, l = Dt(), l !== r) {
|
|
2793
|
+
for (p = [], d = O(); d !== r; )
|
|
2794
|
+
p.push(d), d = O();
|
|
2791
2795
|
if (d = zs(), d !== r) {
|
|
2792
|
-
for (b = [],
|
|
2793
|
-
b.push(
|
|
2794
|
-
|
|
2796
|
+
for (b = [], S = O(); S !== r; )
|
|
2797
|
+
b.push(S), S = O();
|
|
2798
|
+
S = ar(), S !== r ? (E = o, o = Eo(l, d, S)) : (c = o, o = r);
|
|
2795
2799
|
} else
|
|
2796
2800
|
c = o, o = r;
|
|
2797
2801
|
} else
|
|
@@ -2799,14 +2803,14 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2799
2803
|
return o;
|
|
2800
2804
|
}
|
|
2801
2805
|
function fn() {
|
|
2802
|
-
let o, l, p, d, b,
|
|
2803
|
-
if (o = c, l =
|
|
2804
|
-
for (p = [], d =
|
|
2805
|
-
p.push(d), d =
|
|
2806
|
+
let o, l, p, d, b, S;
|
|
2807
|
+
if (o = c, l = Dt(), l !== r) {
|
|
2808
|
+
for (p = [], d = O(); d !== r; )
|
|
2809
|
+
p.push(d), d = O();
|
|
2806
2810
|
if (d = Sn(), d !== r) {
|
|
2807
|
-
for (b = [],
|
|
2808
|
-
b.push(
|
|
2809
|
-
|
|
2811
|
+
for (b = [], S = O(); S !== r; )
|
|
2812
|
+
b.push(S), S = O();
|
|
2813
|
+
S = mn(), S !== r ? (E = o, o = Po(l, d, S)) : (c = o, o = r);
|
|
2810
2814
|
} else
|
|
2811
2815
|
c = o, o = r;
|
|
2812
2816
|
} else
|
|
@@ -2814,14 +2818,14 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2814
2818
|
return o;
|
|
2815
2819
|
}
|
|
2816
2820
|
function gn() {
|
|
2817
|
-
let o, l, p, d, b,
|
|
2818
|
-
if (o = c, l =
|
|
2819
|
-
for (p = [], d =
|
|
2820
|
-
p.push(d), d =
|
|
2821
|
-
if (s.charCodeAt(c) === 58 ? (d =
|
|
2822
|
-
for (b = [],
|
|
2823
|
-
b.push(
|
|
2824
|
-
|
|
2821
|
+
let o, l, p, d, b, S;
|
|
2822
|
+
if (o = c, l = Dt(), l !== r) {
|
|
2823
|
+
for (p = [], d = O(); d !== r; )
|
|
2824
|
+
p.push(d), d = O();
|
|
2825
|
+
if (s.charCodeAt(c) === 58 ? (d = $, c++) : (d = r, y === 0 && k(_s)), d !== r) {
|
|
2826
|
+
for (b = [], S = O(); S !== r; )
|
|
2827
|
+
b.push(S), S = O();
|
|
2828
|
+
S = ar(), S !== r ? (E = o, o = To(l, S)) : (c = o, o = r);
|
|
2825
2829
|
} else
|
|
2826
2830
|
c = o, o = r;
|
|
2827
2831
|
} else
|
|
@@ -2832,44 +2836,44 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2832
2836
|
let o, l;
|
|
2833
2837
|
return o = c, l = Ts(), l !== r && (E = o, l = Lo(l)), o = l, o;
|
|
2834
2838
|
}
|
|
2835
|
-
function
|
|
2836
|
-
let o, l, p, d, b,
|
|
2839
|
+
function ar() {
|
|
2840
|
+
let o, l, p, d, b, S;
|
|
2837
2841
|
if (o = c, s.charCodeAt(c) === 40 ? (l = u, c++) : (l = r, y === 0 && k(ms)), l !== r) {
|
|
2838
|
-
for (p = [], d =
|
|
2839
|
-
p.push(d), d =
|
|
2840
|
-
d = Es(), d !== r ? (b =
|
|
2842
|
+
for (p = [], d = O(); d !== r; )
|
|
2843
|
+
p.push(d), d = O();
|
|
2844
|
+
d = Es(), d !== r ? (b = Mt(), b !== r ? (s.charCodeAt(c) === 41 ? (S = g, c++) : (S = r, y === 0 && k($s)), S !== r ? (E = o, o = No(d, b)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r);
|
|
2841
2845
|
} else
|
|
2842
2846
|
c = o, o = r;
|
|
2843
2847
|
return o === r && (o = Ts()), o;
|
|
2844
2848
|
}
|
|
2845
2849
|
function Es() {
|
|
2846
2850
|
let o, l, p, d;
|
|
2847
|
-
return o = c, l =
|
|
2851
|
+
return o = c, l = Pr(), l !== r ? (p = Tr(), p !== r ? (d = Es(), d !== r ? (E = o, o = Do(l, d)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = Pr()), o;
|
|
2848
2852
|
}
|
|
2849
|
-
function
|
|
2853
|
+
function Pr() {
|
|
2850
2854
|
let o, l, p, d;
|
|
2851
|
-
return o = c, l = Ps(), l !== r ? (p =
|
|
2855
|
+
return o = c, l = Ps(), l !== r ? (p = Lr(), p !== r ? (d = Pr(), d !== r ? (E = o, o = Mo(l, d)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = Ps()), o;
|
|
2852
2856
|
}
|
|
2853
2857
|
function Ps() {
|
|
2854
2858
|
let o, l, p;
|
|
2855
|
-
return o = c, l =
|
|
2859
|
+
return o = c, l = Nr(), l !== r ? (p = ar(), p !== r ? (E = o, o = zo(p)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = ar()), o;
|
|
2856
2860
|
}
|
|
2857
2861
|
function Ts() {
|
|
2858
2862
|
let o, l;
|
|
2859
|
-
return y++, o = c, l =
|
|
2863
|
+
return y++, o = c, l = Mr(), l !== r && (E = o, l = Ro(l)), o = l, o === r && (o = c, l = Ns(), l !== r && (E = o, l = jo(l)), o = l), y--, o === r && (l = r, y === 0 && k(Xi)), o;
|
|
2860
2864
|
}
|
|
2861
|
-
function
|
|
2865
|
+
function Tr() {
|
|
2862
2866
|
let o, l, p, d, b;
|
|
2863
|
-
if (y++, o = c, l = [], p =
|
|
2867
|
+
if (y++, o = c, l = [], p = O(), p !== r)
|
|
2864
2868
|
for (; p !== r; )
|
|
2865
|
-
l.push(p), p =
|
|
2869
|
+
l.push(p), p = O();
|
|
2866
2870
|
else
|
|
2867
2871
|
l = r;
|
|
2868
2872
|
if (l !== r)
|
|
2869
|
-
if (p = s.substr(c, 2), p.toLowerCase() ===
|
|
2870
|
-
if (d = [], b =
|
|
2873
|
+
if (p = s.substr(c, 2), p.toLowerCase() === w ? c += 2 : (p = r, y === 0 && k(ws)), p !== r) {
|
|
2874
|
+
if (d = [], b = O(), b !== r)
|
|
2871
2875
|
for (; b !== r; )
|
|
2872
|
-
d.push(b), b =
|
|
2876
|
+
d.push(b), b = O();
|
|
2873
2877
|
else
|
|
2874
2878
|
d = r;
|
|
2875
2879
|
d !== r ? (l = [l, p, d], o = l) : (c = o, o = r);
|
|
@@ -2879,18 +2883,18 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2879
2883
|
c = o, o = r;
|
|
2880
2884
|
return y--, o === r && (l = r, y === 0 && k(eo)), o;
|
|
2881
2885
|
}
|
|
2882
|
-
function
|
|
2886
|
+
function Lr() {
|
|
2883
2887
|
let o, l, p, d, b;
|
|
2884
|
-
if (y++, o = c, l = [], p =
|
|
2888
|
+
if (y++, o = c, l = [], p = O(), p !== r)
|
|
2885
2889
|
for (; p !== r; )
|
|
2886
|
-
l.push(p), p =
|
|
2890
|
+
l.push(p), p = O();
|
|
2887
2891
|
else
|
|
2888
2892
|
l = r;
|
|
2889
2893
|
if (l !== r)
|
|
2890
2894
|
if (p = s.substr(c, 3), p.toLowerCase() === _ ? c += 3 : (p = r, y === 0 && k(xs)), p !== r) {
|
|
2891
|
-
if (d = [], b =
|
|
2895
|
+
if (d = [], b = O(), b !== r)
|
|
2892
2896
|
for (; b !== r; )
|
|
2893
|
-
d.push(b), b =
|
|
2897
|
+
d.push(b), b = O();
|
|
2894
2898
|
else
|
|
2895
2899
|
d = r;
|
|
2896
2900
|
d !== r ? (l = [l, p, d], o = l) : (c = o, o = r);
|
|
@@ -2900,12 +2904,12 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2900
2904
|
c = o, o = r;
|
|
2901
2905
|
return y--, o === r && (l = r, y === 0 && k(to)), o;
|
|
2902
2906
|
}
|
|
2903
|
-
function
|
|
2907
|
+
function Nr() {
|
|
2904
2908
|
let o, l, p, d;
|
|
2905
2909
|
if (y++, o = c, l = s.substr(c, 3), l.toLowerCase() === A ? c += 3 : (l = r, y === 0 && k(Ss)), l !== r) {
|
|
2906
|
-
if (p = [], d =
|
|
2910
|
+
if (p = [], d = O(), d !== r)
|
|
2907
2911
|
for (; d !== r; )
|
|
2908
|
-
p.push(d), d =
|
|
2912
|
+
p.push(d), d = O();
|
|
2909
2913
|
else
|
|
2910
2914
|
p = r;
|
|
2911
2915
|
p !== r ? (l = [l, p], o = l) : (c = o, o = r);
|
|
@@ -2913,9 +2917,9 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2913
2917
|
c = o, o = r;
|
|
2914
2918
|
return y--, o === r && (l = r, y === 0 && k(ro)), o;
|
|
2915
2919
|
}
|
|
2916
|
-
function
|
|
2920
|
+
function Dr() {
|
|
2917
2921
|
let o;
|
|
2918
|
-
return y++, o =
|
|
2922
|
+
return y++, o = Mr(), o === r && (o = Ns()), y--, o === r && y === 0 && k(so), o;
|
|
2919
2923
|
}
|
|
2920
2924
|
function vn() {
|
|
2921
2925
|
let o;
|
|
@@ -2925,9 +2929,9 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2925
2929
|
let o, l, p, d, b;
|
|
2926
2930
|
if (o = c, l = Ls(), l !== r)
|
|
2927
2931
|
if (s.charCodeAt(c) === 46 ? (p = T, c++) : (p = r, y === 0 && k(io)), p !== r) {
|
|
2928
|
-
if (d = [], b = s.charAt(c),
|
|
2932
|
+
if (d = [], b = s.charAt(c), Pt.test(b) ? c++ : (b = r, y === 0 && k(rr)), b !== r)
|
|
2929
2933
|
for (; b !== r; )
|
|
2930
|
-
d.push(b), b = s.charAt(c),
|
|
2934
|
+
d.push(b), b = s.charAt(c), Pt.test(b) ? c++ : (b = r, y === 0 && k(rr));
|
|
2931
2935
|
else
|
|
2932
2936
|
d = r;
|
|
2933
2937
|
d !== r ? (E = o, o = Io()) : (c = o, o = r);
|
|
@@ -2939,51 +2943,51 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2939
2943
|
}
|
|
2940
2944
|
function Ls() {
|
|
2941
2945
|
let o, l, p;
|
|
2942
|
-
if (o = c, l = [], p = s.charAt(c),
|
|
2946
|
+
if (o = c, l = [], p = s.charAt(c), Pt.test(p) ? c++ : (p = r, y === 0 && k(rr)), p !== r)
|
|
2943
2947
|
for (; p !== r; )
|
|
2944
|
-
l.push(p), p = s.charAt(c),
|
|
2948
|
+
l.push(p), p = s.charAt(c), Pt.test(p) ? c++ : (p = r, y === 0 && k(rr));
|
|
2945
2949
|
else
|
|
2946
2950
|
l = r;
|
|
2947
2951
|
return l !== r && (E = o, l = Bo()), o = l, o;
|
|
2948
2952
|
}
|
|
2949
|
-
function
|
|
2950
|
-
let o, l, p, d, b,
|
|
2951
|
-
if (o = c, s.charCodeAt(c) === 34 ? (l = N, c++) : (l = r, y === 0 && k(
|
|
2953
|
+
function Mr() {
|
|
2954
|
+
let o, l, p, d, b, S;
|
|
2955
|
+
if (o = c, s.charCodeAt(c) === 34 ? (l = N, c++) : (l = r, y === 0 && k(sr)), l !== r) {
|
|
2952
2956
|
for (p = [], d = ot(); d !== r; )
|
|
2953
2957
|
p.push(d), d = ot();
|
|
2954
|
-
if (d =
|
|
2955
|
-
for (b = [],
|
|
2956
|
-
b.push(
|
|
2957
|
-
s.charCodeAt(c) === 34 ? (
|
|
2958
|
+
if (d = zt(), d !== r) {
|
|
2959
|
+
for (b = [], S = ot(); S !== r; )
|
|
2960
|
+
b.push(S), S = ot();
|
|
2961
|
+
s.charCodeAt(c) === 34 ? (S = N, c++) : (S = r, y === 0 && k(sr)), S !== r ? (E = o, o = Uo(p, d, b)) : (c = o, o = r);
|
|
2958
2962
|
} else
|
|
2959
2963
|
c = o, o = r;
|
|
2960
2964
|
} else
|
|
2961
2965
|
c = o, o = r;
|
|
2962
2966
|
if (o === r)
|
|
2963
|
-
if (o = c, s.charCodeAt(c) === 34 ? (l = N, c++) : (l = r, y === 0 && k(
|
|
2967
|
+
if (o = c, s.charCodeAt(c) === 34 ? (l = N, c++) : (l = r, y === 0 && k(sr)), l !== r) {
|
|
2964
2968
|
for (p = [], d = ot(); d !== r; )
|
|
2965
2969
|
p.push(d), d = ot();
|
|
2966
|
-
s.charCodeAt(c) === 34 ? (d = N, c++) : (d = r, y === 0 && k(
|
|
2970
|
+
s.charCodeAt(c) === 34 ? (d = N, c++) : (d = r, y === 0 && k(sr)), d !== r ? (E = o, o = Fo(p)) : (c = o, o = r);
|
|
2967
2971
|
} else
|
|
2968
2972
|
c = o, o = r;
|
|
2969
2973
|
return o;
|
|
2970
2974
|
}
|
|
2971
2975
|
function mn() {
|
|
2972
2976
|
let o;
|
|
2973
|
-
return o = vn(), o === r && (o =
|
|
2977
|
+
return o = vn(), o === r && (o = Mr(), o === r && (o = Mt())), o;
|
|
2974
2978
|
}
|
|
2975
2979
|
function ot() {
|
|
2976
2980
|
let o, l, p;
|
|
2977
|
-
return o = Ds(), o === r && (o = c, s.charCodeAt(c) === 92 ? (l =
|
|
2981
|
+
return o = Ds(), o === r && (o = c, s.charCodeAt(c) === 92 ? (l = ue, c++) : (l = r, y === 0 && k(Cr)), l !== r ? (p = s.charAt(c), Ae.test(p) ? c++ : (p = r, y === 0 && k(oo)), p !== r ? (E = o, o = p) : (c = o, o = r)) : (c = o, o = r), o === r && (o = c, l = c, y++, p = zt(), y--, p === r ? l = void 0 : (c = l, l = r), l !== r ? (p = s.charAt(c), Vi.test(p) ? c++ : (p = r, y === 0 && k(no)), p !== r ? (E = o, o = p) : (c = o, o = r)) : (c = o, o = r))), o;
|
|
2978
2982
|
}
|
|
2979
2983
|
function Ns() {
|
|
2980
2984
|
let o, l, p, d, b;
|
|
2981
2985
|
for (o = c, l = [], p = nt(); p !== r; )
|
|
2982
2986
|
l.push(p), p = nt();
|
|
2983
|
-
if (p =
|
|
2987
|
+
if (p = zt(), p !== r) {
|
|
2984
2988
|
for (d = [], b = nt(); b !== r; )
|
|
2985
2989
|
d.push(b), b = nt();
|
|
2986
|
-
E = o, o =
|
|
2990
|
+
E = o, o = Ho(l, p, d);
|
|
2987
2991
|
} else
|
|
2988
2992
|
c = o, o = r;
|
|
2989
2993
|
if (o === r) {
|
|
@@ -2998,42 +3002,42 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2998
3002
|
}
|
|
2999
3003
|
function nt() {
|
|
3000
3004
|
let o, l, p, d, b;
|
|
3001
|
-
return o = Ds(), o === r && (o = _n(), o === r && (o = wn(), o === r && (o = $n(), o === r && (o = c, l = c, y++, p = Ms(), y--, p === r ? l = void 0 : (c = l, l = r), l !== r ? (p = c, y++, d = xn(), y--, d === r ? p = void 0 : (c = p, p = r), p !== r ? (d = c, y++, b =
|
|
3005
|
+
return o = Ds(), o === r && (o = _n(), o === r && (o = wn(), o === r && (o = $n(), o === r && (o = c, l = c, y++, p = Ms(), y--, p === r ? l = void 0 : (c = l, l = r), l !== r ? (p = c, y++, d = xn(), y--, d === r ? p = void 0 : (c = p, p = r), p !== r ? (d = c, y++, b = zt(), y--, b === r ? d = void 0 : (c = d, d = r), d !== r ? (s.length > c ? (b = s.charAt(c), c++) : (b = r, y === 0 && k(ao)), b !== r ? (E = o, o = b) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r))))), o;
|
|
3002
3006
|
}
|
|
3003
3007
|
function $n() {
|
|
3004
3008
|
let o, l;
|
|
3005
|
-
return o = c, s.charCodeAt(c) === 42 ? (l =
|
|
3009
|
+
return o = c, s.charCodeAt(c) === 42 ? (l = z, c++) : (l = r, y === 0 && k(lo)), l !== r && (E = o, l = Qo()), o = l, o;
|
|
3006
3010
|
}
|
|
3007
|
-
function
|
|
3011
|
+
function Mt() {
|
|
3008
3012
|
let o, l, p, d, b;
|
|
3009
|
-
for (o = c, l = [], p =
|
|
3010
|
-
l.push(p), p =
|
|
3011
|
-
if (p =
|
|
3012
|
-
for (d = [], b =
|
|
3013
|
-
d.push(b), b =
|
|
3013
|
+
for (o = c, l = [], p = O(); p !== r; )
|
|
3014
|
+
l.push(p), p = O();
|
|
3015
|
+
if (p = zt(), p !== r) {
|
|
3016
|
+
for (d = [], b = O(); b !== r; )
|
|
3017
|
+
d.push(b), b = O();
|
|
3014
3018
|
E = o, o = Wo(l, p, d);
|
|
3015
3019
|
} else
|
|
3016
3020
|
c = o, o = r;
|
|
3017
3021
|
if (o === r)
|
|
3018
|
-
for (o = [], l =
|
|
3019
|
-
o.push(l), l =
|
|
3022
|
+
for (o = [], l = O(); l !== r; )
|
|
3023
|
+
o.push(l), l = O();
|
|
3020
3024
|
return o;
|
|
3021
3025
|
}
|
|
3022
3026
|
function Ds() {
|
|
3023
3027
|
let o, l;
|
|
3024
|
-
return o = c, s.substr(c, 2) === G ? (l = G, c += 2) : (l = r, y === 0 && k(co)), l !== r && (E = o, l = Vo()), o = l, o === r && (o = c, s.substr(c, 2) ===
|
|
3028
|
+
return o = c, s.substr(c, 2) === G ? (l = G, c += 2) : (l = r, y === 0 && k(co)), l !== r && (E = o, l = Vo()), o = l, o === r && (o = c, s.substr(c, 2) === F ? (l = F, c += 2) : (l = r, y === 0 && k(po)), l !== r && (E = o, l = Yo()), o = l, o === r && (o = c, s.substr(c, 2) === tt ? (l = tt, c += 2) : (l = r, y === 0 && k(uo)), l !== r && (E = o, l = Go()), o = l)), o;
|
|
3025
3029
|
}
|
|
3026
3030
|
function _n() {
|
|
3027
3031
|
let o, l, p;
|
|
3028
|
-
return o = c, s.charCodeAt(c) === 92 ? (l =
|
|
3032
|
+
return o = c, s.charCodeAt(c) === 92 ? (l = ue, c++) : (l = r, y === 0 && k(Cr)), l !== r ? (p = Ms(), p !== r ? (E = o, o = p) : (c = o, o = r)) : (c = o, o = r), o;
|
|
3029
3033
|
}
|
|
3030
3034
|
function wn() {
|
|
3031
3035
|
let o, l, p;
|
|
3032
|
-
return o = c, s.charCodeAt(c) === 92 ? (l =
|
|
3036
|
+
return o = c, s.charCodeAt(c) === 92 ? (l = ue, c++) : (l = r, y === 0 && k(Cr)), l !== r ? (p = s.substr(c, 2), p.toLowerCase() === w ? c += 2 : (p = r, y === 0 && k(ws)), p === r && (p = s.substr(c, 3), p.toLowerCase() === _ ? c += 3 : (p = r, y === 0 && k(xs)), p === r && (p = s.substr(c, 3), p.toLowerCase() === A ? c += 3 : (p = r, y === 0 && k(Ss)))), p !== r ? (E = o, o = p) : (c = o, o = r)) : (c = o, o = r), o;
|
|
3033
3037
|
}
|
|
3034
3038
|
function xn() {
|
|
3035
3039
|
let o;
|
|
3036
|
-
return o =
|
|
3040
|
+
return o = Tr(), o === r && (o = Lr(), o === r && (o = Nr())), o;
|
|
3037
3041
|
}
|
|
3038
3042
|
function Ms() {
|
|
3039
3043
|
let o;
|
|
@@ -3045,42 +3049,42 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3045
3049
|
}
|
|
3046
3050
|
function Sn() {
|
|
3047
3051
|
let o, l;
|
|
3048
|
-
return o = c, s.substr(c, 2) === ze ? (l = ze, c += 2) : (l = r, y === 0 && k(go)), l !== r && (E = o, l = Jo()), o = l, o === r && (o = c, s.substr(c, 2) ===
|
|
3052
|
+
return o = c, s.substr(c, 2) === ze ? (l = ze, c += 2) : (l = r, y === 0 && k(go)), l !== r && (E = o, l = Jo()), o = l, o === r && (o = c, s.substr(c, 2) === se ? (l = se, c += 2) : (l = r, y === 0 && k(bo)), l !== r && (E = o, l = Ko()), o = l, o === r && (o = c, s.charCodeAt(c) === 60 ? (l = tr, c++) : (l = r, y === 0 && k(vo)), l !== r && (E = o, l = Xo()), o = l, o === r && (o = c, s.charCodeAt(c) === 62 ? (l = rt, c++) : (l = r, y === 0 && k(yo)), l !== r && (E = o, l = en()), o = l))), o;
|
|
3049
3053
|
}
|
|
3050
|
-
function
|
|
3054
|
+
function O() {
|
|
3051
3055
|
let o;
|
|
3052
3056
|
return y++, o = s.charAt(c), Gi.test(o) ? c++ : (o = r, y === 0 && k($o)), y--, o === r && y === 0 && k(mo), o;
|
|
3053
3057
|
}
|
|
3054
|
-
function
|
|
3058
|
+
function zt() {
|
|
3055
3059
|
let o, l, p;
|
|
3056
3060
|
return o = c, E = c, l = tn(), l ? l = void 0 : l = r, l !== r ? (s.substr(c, 14) === st ? (p = st, c += 14) : (p = r, y === 0 && k(_o)), p !== r ? (E = o, o = rn()) : (c = o, o = r)) : (c = o, o = r), o;
|
|
3057
3061
|
}
|
|
3058
|
-
const { errorOnLuceneSyntax: sp, parseCursor: kn, cursorSymbol: An, allowLeadingWildcards:
|
|
3062
|
+
const { errorOnLuceneSyntax: sp, parseCursor: kn, cursorSymbol: An, allowLeadingWildcards: Cn = !0, helpers: { nodeTypes: je } } = i, ie = je.function.buildNodeWithArgumentNodes, Ce = je.literal.buildNode, On = je.wildcard.buildNode, Rs = je.namedArg.buildNode, { wildcardSymbol: zr } = je.wildcard;
|
|
3059
3063
|
var at = 0;
|
|
3060
|
-
|
|
3061
|
-
const
|
|
3064
|
+
Tt = h();
|
|
3065
|
+
const Rr = Tt !== r && c === s.length;
|
|
3062
3066
|
function js() {
|
|
3063
|
-
throw
|
|
3064
|
-
|
|
3067
|
+
throw Tt !== r && c < s.length && k(an()), cn(
|
|
3068
|
+
ir,
|
|
3065
3069
|
ae < s.length ? on(ae) : null,
|
|
3066
|
-
ae < s.length ?
|
|
3070
|
+
ae < s.length ? or(ae, ae + 1) : or(ae, ae)
|
|
3067
3071
|
);
|
|
3068
3072
|
}
|
|
3069
3073
|
if (i.peg$library)
|
|
3070
3074
|
return (
|
|
3071
3075
|
/** @type {any} */
|
|
3072
3076
|
{
|
|
3073
|
-
peg$result:
|
|
3077
|
+
peg$result: Tt,
|
|
3074
3078
|
peg$currPos: c,
|
|
3075
3079
|
peg$FAILED: r,
|
|
3076
|
-
peg$maxFailExpected:
|
|
3080
|
+
peg$maxFailExpected: ir,
|
|
3077
3081
|
peg$maxFailPos: ae,
|
|
3078
|
-
peg$success:
|
|
3079
|
-
peg$throw:
|
|
3082
|
+
peg$success: Rr,
|
|
3083
|
+
peg$throw: Rr ? void 0 : js
|
|
3080
3084
|
}
|
|
3081
3085
|
);
|
|
3082
|
-
if (
|
|
3083
|
-
return
|
|
3086
|
+
if (Rr)
|
|
3087
|
+
return Tt;
|
|
3084
3088
|
js();
|
|
3085
3089
|
}
|
|
3086
3090
|
return {
|
|
@@ -3089,7 +3093,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3089
3093
|
parse: t
|
|
3090
3094
|
};
|
|
3091
3095
|
}()
|
|
3092
|
-
), ls = (e, t = {}, s =
|
|
3096
|
+
), ls = (e, t = {}, s = Sr) => {
|
|
3093
3097
|
if (typeof e > "u")
|
|
3094
3098
|
throw new Error("expression must be a string, got undefined instead");
|
|
3095
3099
|
return s(e, { ...t, helpers: { nodeTypes: _e } });
|
|
@@ -3099,23 +3103,23 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3099
3103
|
...t,
|
|
3100
3104
|
startRule: "Literal"
|
|
3101
3105
|
},
|
|
3102
|
-
|
|
3103
|
-
),
|
|
3106
|
+
Sr
|
|
3107
|
+
), vr = (e, t = {}) => {
|
|
3104
3108
|
try {
|
|
3105
|
-
return ls(e, t,
|
|
3109
|
+
return ls(e, t, Sr);
|
|
3106
3110
|
} catch (s) {
|
|
3107
|
-
throw s.name === "SyntaxError" ? new
|
|
3111
|
+
throw s.name === "SyntaxError" ? new Ci(s, e) : s;
|
|
3108
3112
|
}
|
|
3109
3113
|
}, wa = (e) => {
|
|
3110
3114
|
try {
|
|
3111
|
-
return ls(e, { errorOnLuceneSyntax: !0 },
|
|
3115
|
+
return ls(e, { errorOnLuceneSyntax: !0 }, Sr), !1;
|
|
3112
3116
|
} catch (t) {
|
|
3113
3117
|
return t.message.startsWith("Lucene");
|
|
3114
3118
|
}
|
|
3115
3119
|
}, Q = (e, t, s, i) => (t = void 0, !e || !e.type || !_e[e.type] ? Q(
|
|
3116
3120
|
_e.function.buildNode("and", []),
|
|
3117
3121
|
t
|
|
3118
|
-
) : _e[e.type].toOpenSearchQuery(e, t, s, i)),
|
|
3122
|
+
) : _e[e.type].toOpenSearchQuery(e, t, s, i)), fe = "@kuery-wildcard@";
|
|
3119
3123
|
function xa(e) {
|
|
3120
3124
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3121
3125
|
}
|
|
@@ -3123,35 +3127,35 @@ function Sa(e) {
|
|
|
3123
3127
|
return e.replace(/[+-=&|><!(){}[\]^"~*?:\\/]/g, "\\$&");
|
|
3124
3128
|
}
|
|
3125
3129
|
function ka(e) {
|
|
3126
|
-
return e.includes(
|
|
3130
|
+
return e.includes(fe) ? {
|
|
3127
3131
|
type: "wildcard",
|
|
3128
3132
|
value: e
|
|
3129
3133
|
} : wt(e);
|
|
3130
3134
|
}
|
|
3131
|
-
function
|
|
3132
|
-
const { value: s } = e, i = s.split(
|
|
3135
|
+
function Oi(e, t) {
|
|
3136
|
+
const { value: s } = e, i = s.split(fe).map(xa).join("[\\s\\S]*");
|
|
3133
3137
|
return new RegExp(`^${i}$`).test(t);
|
|
3134
3138
|
}
|
|
3135
3139
|
function Aa(e) {
|
|
3136
3140
|
const { value: t } = e;
|
|
3137
|
-
return t.split(
|
|
3141
|
+
return t.split(fe).join("*");
|
|
3138
3142
|
}
|
|
3139
|
-
function
|
|
3143
|
+
function Jr(e) {
|
|
3140
3144
|
const { value: t } = e;
|
|
3141
|
-
return t.split(
|
|
3145
|
+
return t.split(fe).map(Sa).join("*");
|
|
3142
3146
|
}
|
|
3143
|
-
function
|
|
3147
|
+
function Ca(e) {
|
|
3144
3148
|
const { value: t } = e;
|
|
3145
|
-
return t.startsWith(
|
|
3149
|
+
return t.startsWith(fe) && t.replace(fe, "").length > 0;
|
|
3146
3150
|
}
|
|
3147
|
-
const
|
|
3151
|
+
const Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3148
3152
|
__proto__: null,
|
|
3149
3153
|
buildNode: ka,
|
|
3150
|
-
hasLeadingWildcard:
|
|
3151
|
-
test:
|
|
3154
|
+
hasLeadingWildcard: Ca,
|
|
3155
|
+
test: Oi,
|
|
3152
3156
|
toOpenSearchQuery: Aa,
|
|
3153
|
-
toQueryStringQuery:
|
|
3154
|
-
wildcardSymbol:
|
|
3157
|
+
toQueryStringQuery: Jr,
|
|
3158
|
+
wildcardSymbol: fe
|
|
3155
3159
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3156
3160
|
function cs(e, t) {
|
|
3157
3161
|
if (!t) return [];
|
|
@@ -3159,7 +3163,7 @@ function cs(e, t) {
|
|
|
3159
3163
|
const s = as(e), i = t.fields.find((r) => r.name === s);
|
|
3160
3164
|
return i ? [i] : [];
|
|
3161
3165
|
} else if (e.type === "wildcard")
|
|
3162
|
-
return t.fields.filter((i) =>
|
|
3166
|
+
return t.fields.filter((i) => Oi(e, i.name));
|
|
3163
3167
|
}
|
|
3164
3168
|
function Ei(e, t, s) {
|
|
3165
3169
|
const i = {
|
|
@@ -3203,15 +3207,15 @@ function Pa(e, t, s = {}, i = {}) {
|
|
|
3203
3207
|
r,
|
|
3204
3208
|
t,
|
|
3205
3209
|
i != null && i.nested ? i.nested.path : void 0
|
|
3206
|
-
), u = Q(h), g = a !== void 0 ? Q(a) : a,
|
|
3210
|
+
), u = Q(h), g = a !== void 0 ? Q(a) : a, $ = n.value ? "phrase" : "best_fields";
|
|
3207
3211
|
if (h.value === null)
|
|
3208
3212
|
return a.type === "wildcard" ? {
|
|
3209
3213
|
query_string: {
|
|
3210
|
-
query:
|
|
3214
|
+
query: Jr(a)
|
|
3211
3215
|
}
|
|
3212
3216
|
} : {
|
|
3213
3217
|
multi_match: {
|
|
3214
|
-
type:
|
|
3218
|
+
type: $,
|
|
3215
3219
|
query: g,
|
|
3216
3220
|
lenient: !0
|
|
3217
3221
|
}
|
|
@@ -3222,26 +3226,26 @@ function Pa(e, t, s = {}, i = {}) {
|
|
|
3222
3226
|
scripted: !1,
|
|
3223
3227
|
type: ""
|
|
3224
3228
|
});
|
|
3225
|
-
const
|
|
3226
|
-
return
|
|
3229
|
+
const C = a.type === "wildcard" && g === "*", w = h.type === "wildcard" && u === "*" || v && t && v.length === t.fields.length;
|
|
3230
|
+
return C && w ? { match_all: {} } : {
|
|
3227
3231
|
bool: {
|
|
3228
3232
|
should: v.reduce((T, N) => {
|
|
3229
|
-
const
|
|
3233
|
+
const ue = (z) => {
|
|
3230
3234
|
var G;
|
|
3231
|
-
return h.type !== "wildcard" || !((G = N.subType) != null && G.nested) || i != null && i.nested ?
|
|
3235
|
+
return h.type !== "wildcard" || !((G = N.subType) != null && G.nested) || i != null && i.nested ? z : {
|
|
3232
3236
|
nested: {
|
|
3233
3237
|
path: N.subType.nested.path,
|
|
3234
|
-
query:
|
|
3238
|
+
query: z,
|
|
3235
3239
|
score_mode: "none"
|
|
3236
3240
|
}
|
|
3237
3241
|
};
|
|
3238
3242
|
};
|
|
3239
3243
|
if (N.scripted)
|
|
3240
3244
|
return [];
|
|
3241
|
-
if (
|
|
3245
|
+
if (C)
|
|
3242
3246
|
return [
|
|
3243
3247
|
...T,
|
|
3244
|
-
|
|
3248
|
+
ue({
|
|
3245
3249
|
exists: {
|
|
3246
3250
|
field: N.name
|
|
3247
3251
|
}
|
|
@@ -3250,33 +3254,33 @@ function Pa(e, t, s = {}, i = {}) {
|
|
|
3250
3254
|
if (a.type === "wildcard")
|
|
3251
3255
|
return [
|
|
3252
3256
|
...T,
|
|
3253
|
-
|
|
3257
|
+
ue({
|
|
3254
3258
|
query_string: {
|
|
3255
3259
|
fields: [N.name],
|
|
3256
|
-
query:
|
|
3260
|
+
query: Jr(a)
|
|
3257
3261
|
}
|
|
3258
3262
|
})
|
|
3259
3263
|
];
|
|
3260
3264
|
if (N.type === "date") {
|
|
3261
|
-
const
|
|
3265
|
+
const z = s.dateFormatTZ ? { time_zone: s.dateFormatTZ } : {};
|
|
3262
3266
|
return [
|
|
3263
3267
|
...T,
|
|
3264
|
-
|
|
3268
|
+
ue({
|
|
3265
3269
|
range: {
|
|
3266
3270
|
[N.name]: {
|
|
3267
3271
|
gte: g,
|
|
3268
3272
|
lte: g,
|
|
3269
|
-
...
|
|
3273
|
+
...z
|
|
3270
3274
|
}
|
|
3271
3275
|
}
|
|
3272
3276
|
})
|
|
3273
3277
|
];
|
|
3274
3278
|
} else {
|
|
3275
|
-
const
|
|
3279
|
+
const z = $ === "phrase" ? "match_phrase" : "match";
|
|
3276
3280
|
return [
|
|
3277
3281
|
...T,
|
|
3278
|
-
|
|
3279
|
-
[
|
|
3282
|
+
ue({
|
|
3283
|
+
[z]: {
|
|
3280
3284
|
[N.name]: g
|
|
3281
3285
|
}
|
|
3282
3286
|
})
|
|
@@ -3351,7 +3355,7 @@ function Ua(e, ...t) {
|
|
|
3351
3355
|
s[i] = e[i];
|
|
3352
3356
|
return s;
|
|
3353
3357
|
}
|
|
3354
|
-
function
|
|
3358
|
+
function Fa(e, t) {
|
|
3355
3359
|
const s = Ua(t, "gt", "lt", "gte", "lte", "format"), i = typeof e == "string" ? wt(e) : _e.literal.buildNode(e), r = Object.entries(s).map((a) => {
|
|
3356
3360
|
let [n, h] = a;
|
|
3357
3361
|
return _e.namedArg.buildNode(n, h);
|
|
@@ -3360,12 +3364,12 @@ function Ha(e, t) {
|
|
|
3360
3364
|
arguments: [i, ...r]
|
|
3361
3365
|
};
|
|
3362
3366
|
}
|
|
3363
|
-
function
|
|
3367
|
+
function Ha(e, t, s = {}, i = {}) {
|
|
3364
3368
|
const [r, ...a] = e.arguments, n = Ei(
|
|
3365
3369
|
r,
|
|
3366
3370
|
t,
|
|
3367
3371
|
i != null && i.nested ? i.nested.path : void 0
|
|
3368
|
-
), h = t ? cs(n, t) : [], u = qa(a), g = Object.fromEntries(Object.entries(u).map(([v,
|
|
3372
|
+
), h = t ? cs(n, t) : [], u = qa(a), g = Object.fromEntries(Object.entries(u).map(([v, C]) => [v, Q(C)]));
|
|
3369
3373
|
return h && h.length === 0 && h.push({
|
|
3370
3374
|
name: Q(n),
|
|
3371
3375
|
scripted: !1,
|
|
@@ -3373,12 +3377,12 @@ function Fa(e, t, s = {}, i = {}) {
|
|
|
3373
3377
|
}), {
|
|
3374
3378
|
bool: {
|
|
3375
3379
|
should: h.map((v) => {
|
|
3376
|
-
const
|
|
3380
|
+
const C = (w) => {
|
|
3377
3381
|
var _;
|
|
3378
|
-
return n.type !== "wildcard" || !((_ = v.subType) != null && _.nested) || i.nested ?
|
|
3382
|
+
return n.type !== "wildcard" || !((_ = v.subType) != null && _.nested) || i.nested ? w : {
|
|
3379
3383
|
nested: {
|
|
3380
3384
|
path: v.subType.nested.path,
|
|
3381
|
-
query:
|
|
3385
|
+
query: w,
|
|
3382
3386
|
score_mode: "none"
|
|
3383
3387
|
}
|
|
3384
3388
|
};
|
|
@@ -3386,17 +3390,17 @@ function Fa(e, t, s = {}, i = {}) {
|
|
|
3386
3390
|
if (v.scripted)
|
|
3387
3391
|
return {};
|
|
3388
3392
|
if (v.type === "date") {
|
|
3389
|
-
const
|
|
3390
|
-
return
|
|
3393
|
+
const w = s.dateFormatTZ ? { time_zone: s.dateFormatTZ } : {};
|
|
3394
|
+
return C({
|
|
3391
3395
|
range: {
|
|
3392
3396
|
[v.name]: {
|
|
3393
3397
|
...g,
|
|
3394
|
-
|
|
3398
|
+
...w
|
|
3395
3399
|
}
|
|
3396
3400
|
}
|
|
3397
3401
|
});
|
|
3398
3402
|
}
|
|
3399
|
-
return
|
|
3403
|
+
return C({
|
|
3400
3404
|
range: {
|
|
3401
3405
|
[v.name]: g
|
|
3402
3406
|
}
|
|
@@ -3414,8 +3418,8 @@ function qa(e) {
|
|
|
3414
3418
|
}
|
|
3415
3419
|
const Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3416
3420
|
__proto__: null,
|
|
3417
|
-
buildNodeParams:
|
|
3418
|
-
toOpenSearchQuery:
|
|
3421
|
+
buildNodeParams: Fa,
|
|
3422
|
+
toOpenSearchQuery: Ha
|
|
3419
3423
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3420
3424
|
function Wa(e) {
|
|
3421
3425
|
return {
|
|
@@ -3469,10 +3473,10 @@ const Ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3469
3473
|
* Copyright (c) 2012-2024 Environmental Systems Research Institute, Inc.
|
|
3470
3474
|
* Wed May 15 2024 14:35:51 GMT-0700 (Pacific Daylight Time)
|
|
3471
3475
|
*/
|
|
3472
|
-
var
|
|
3476
|
+
var x = function(t, s, i, r) {
|
|
3473
3477
|
for (i = i || {}, r = t.length; r--; i[t[r]] = s) ;
|
|
3474
3478
|
return i;
|
|
3475
|
-
}, ct = [1, 9], pt = [1, 10], ut = [1, 11], ht = [1, 12], dt = [1, 13], ft = [1, 14], gt = [1, 15], U = [1, 60], P = [5, 15, 19], ye = [1, 67],
|
|
3479
|
+
}, ct = [1, 9], pt = [1, 10], ut = [1, 11], ht = [1, 12], dt = [1, 13], ft = [1, 14], gt = [1, 15], U = [1, 60], P = [5, 15, 19], ye = [1, 67], he = [1, 73], jt = [1, 87], It = [1, 104], D = [15, 19], Oe = [1, 110], me = [1, 116], pr = [1, 130], ur = [1, 136], er = {
|
|
3476
3480
|
trace: function() {
|
|
3477
3481
|
},
|
|
3478
3482
|
yy: {},
|
|
@@ -3547,13 +3551,13 @@ var w = function(t, s, i, r) {
|
|
|
3547
3551
|
case 7:
|
|
3548
3552
|
return n[u - 1];
|
|
3549
3553
|
case 8:
|
|
3550
|
-
this.$ = new
|
|
3554
|
+
this.$ = new qt([Number(n[u - 1]), Number(n[u])]);
|
|
3551
3555
|
break;
|
|
3552
3556
|
case 9:
|
|
3553
|
-
this.$ = new
|
|
3557
|
+
this.$ = new qt([Number(n[u - 2]), Number(n[u - 1]), Number(n[u])]);
|
|
3554
3558
|
break;
|
|
3555
3559
|
case 10:
|
|
3556
|
-
this.$ = new
|
|
3560
|
+
this.$ = new qt([Number(n[u - 3]), Number(n[u - 2]), Number(n[u - 1]), Number(n[u])]);
|
|
3557
3561
|
break;
|
|
3558
3562
|
case 11:
|
|
3559
3563
|
case 26:
|
|
@@ -3976,7 +3980,7 @@ var w = function(t, s, i, r) {
|
|
|
3976
3980
|
18: [1, 62]
|
|
3977
3981
|
}, {
|
|
3978
3982
|
18: [1, 63]
|
|
3979
|
-
},
|
|
3983
|
+
}, x(P, [2, 20]), {
|
|
3980
3984
|
12: 66,
|
|
3981
3985
|
13: U,
|
|
3982
3986
|
18: ye,
|
|
@@ -3988,17 +3992,17 @@ var w = function(t, s, i, r) {
|
|
|
3988
3992
|
18: [1, 69]
|
|
3989
3993
|
}, {
|
|
3990
3994
|
18: [1, 70]
|
|
3991
|
-
},
|
|
3995
|
+
}, x(P, [2, 32]), {
|
|
3992
3996
|
16: 71,
|
|
3993
3997
|
17: 72,
|
|
3994
|
-
18:
|
|
3998
|
+
18: he
|
|
3995
3999
|
}, {
|
|
3996
4000
|
18: [1, 74]
|
|
3997
4001
|
}, {
|
|
3998
4002
|
18: [1, 75]
|
|
3999
4003
|
}, {
|
|
4000
4004
|
18: [1, 76]
|
|
4001
|
-
},
|
|
4005
|
+
}, x(P, [2, 37]), {
|
|
4002
4006
|
12: 66,
|
|
4003
4007
|
13: U,
|
|
4004
4008
|
18: ye,
|
|
@@ -4010,18 +4014,18 @@ var w = function(t, s, i, r) {
|
|
|
4010
4014
|
18: [1, 79]
|
|
4011
4015
|
}, {
|
|
4012
4016
|
18: [1, 80]
|
|
4013
|
-
},
|
|
4017
|
+
}, x(P, [2, 42]), {
|
|
4014
4018
|
16: 81,
|
|
4015
4019
|
17: 72,
|
|
4016
|
-
18:
|
|
4020
|
+
18: he
|
|
4017
4021
|
}, {
|
|
4018
4022
|
18: [1, 82]
|
|
4019
4023
|
}, {
|
|
4020
4024
|
18: [1, 83]
|
|
4021
4025
|
}, {
|
|
4022
4026
|
18: [1, 84]
|
|
4023
|
-
},
|
|
4024
|
-
18:
|
|
4027
|
+
}, x(P, [2, 47]), {
|
|
4028
|
+
18: jt,
|
|
4025
4029
|
26: 85,
|
|
4026
4030
|
27: 86
|
|
4027
4031
|
}, {
|
|
@@ -4030,7 +4034,7 @@ var w = function(t, s, i, r) {
|
|
|
4030
4034
|
18: [1, 89]
|
|
4031
4035
|
}, {
|
|
4032
4036
|
18: [1, 90]
|
|
4033
|
-
},
|
|
4037
|
+
}, x(P, [2, 52]), {
|
|
4034
4038
|
4: 93,
|
|
4035
4039
|
6: 94,
|
|
4036
4040
|
7: 95,
|
|
@@ -4053,10 +4057,10 @@ var w = function(t, s, i, r) {
|
|
|
4053
4057
|
18: [1, 101]
|
|
4054
4058
|
}, {
|
|
4055
4059
|
18: [1, 102]
|
|
4056
|
-
},
|
|
4057
|
-
15:
|
|
4060
|
+
}, x(P, [2, 66]), {
|
|
4061
|
+
15: It,
|
|
4058
4062
|
19: [1, 103]
|
|
4059
|
-
},
|
|
4063
|
+
}, x(D, [2, 12]), {
|
|
4060
4064
|
13: [1, 105]
|
|
4061
4065
|
}, {
|
|
4062
4066
|
12: 59,
|
|
@@ -4071,9 +4075,9 @@ var w = function(t, s, i, r) {
|
|
|
4071
4075
|
13: U,
|
|
4072
4076
|
14: 108
|
|
4073
4077
|
}, {
|
|
4074
|
-
15:
|
|
4078
|
+
15: Oe,
|
|
4075
4079
|
19: [1, 109]
|
|
4076
|
-
},
|
|
4080
|
+
}, x(D, [2, 27]), x(D, [2, 21]), {
|
|
4077
4081
|
12: 111,
|
|
4078
4082
|
13: U
|
|
4079
4083
|
}, {
|
|
@@ -4097,24 +4101,24 @@ var w = function(t, s, i, r) {
|
|
|
4097
4101
|
}, {
|
|
4098
4102
|
15: me,
|
|
4099
4103
|
19: [1, 115]
|
|
4100
|
-
},
|
|
4104
|
+
}, x(D, [2, 14]), {
|
|
4101
4105
|
12: 59,
|
|
4102
4106
|
13: U,
|
|
4103
4107
|
14: 117
|
|
4104
4108
|
}, {
|
|
4105
4109
|
16: 118,
|
|
4106
4110
|
17: 72,
|
|
4107
|
-
18:
|
|
4111
|
+
18: he
|
|
4108
4112
|
}, {
|
|
4109
4113
|
16: 119,
|
|
4110
4114
|
17: 72,
|
|
4111
|
-
18:
|
|
4115
|
+
18: he
|
|
4112
4116
|
}, {
|
|
4113
4117
|
16: 120,
|
|
4114
4118
|
17: 72,
|
|
4115
|
-
18:
|
|
4119
|
+
18: he
|
|
4116
4120
|
}, {
|
|
4117
|
-
15:
|
|
4121
|
+
15: Oe,
|
|
4118
4122
|
19: [1, 121]
|
|
4119
4123
|
}, {
|
|
4120
4124
|
12: 66,
|
|
@@ -4140,38 +4144,38 @@ var w = function(t, s, i, r) {
|
|
|
4140
4144
|
}, {
|
|
4141
4145
|
16: 126,
|
|
4142
4146
|
17: 72,
|
|
4143
|
-
18:
|
|
4147
|
+
18: he
|
|
4144
4148
|
}, {
|
|
4145
4149
|
16: 127,
|
|
4146
4150
|
17: 72,
|
|
4147
|
-
18:
|
|
4151
|
+
18: he
|
|
4148
4152
|
}, {
|
|
4149
4153
|
16: 128,
|
|
4150
4154
|
17: 72,
|
|
4151
|
-
18:
|
|
4155
|
+
18: he
|
|
4152
4156
|
}, {
|
|
4153
|
-
15:
|
|
4157
|
+
15: pr,
|
|
4154
4158
|
19: [1, 129]
|
|
4155
|
-
},
|
|
4159
|
+
}, x(D, [2, 24]), {
|
|
4156
4160
|
16: 131,
|
|
4157
4161
|
17: 72,
|
|
4158
|
-
18:
|
|
4162
|
+
18: he
|
|
4159
4163
|
}, {
|
|
4160
|
-
18:
|
|
4164
|
+
18: jt,
|
|
4161
4165
|
26: 132,
|
|
4162
4166
|
27: 86
|
|
4163
4167
|
}, {
|
|
4164
|
-
18:
|
|
4168
|
+
18: jt,
|
|
4165
4169
|
26: 133,
|
|
4166
4170
|
27: 86
|
|
4167
4171
|
}, {
|
|
4168
|
-
18:
|
|
4172
|
+
18: jt,
|
|
4169
4173
|
26: 134,
|
|
4170
4174
|
27: 86
|
|
4171
4175
|
}, {
|
|
4172
|
-
15:
|
|
4176
|
+
15: ur,
|
|
4173
4177
|
19: [1, 135]
|
|
4174
|
-
},
|
|
4178
|
+
}, x(D, [2, 61]), x(D, [2, 53]), x(D, [2, 54]), x(D, [2, 55]), x(D, [2, 56]), x(D, [2, 57]), x(D, [2, 58]), x(D, [2, 59]), {
|
|
4175
4179
|
4: 93,
|
|
4176
4180
|
6: 94,
|
|
4177
4181
|
7: 95,
|
|
@@ -4222,21 +4226,21 @@ var w = function(t, s, i, r) {
|
|
|
4222
4226
|
34: 92,
|
|
4223
4227
|
35: 139,
|
|
4224
4228
|
36: gt
|
|
4225
|
-
},
|
|
4229
|
+
}, x(P, [2, 16]), {
|
|
4226
4230
|
12: 140,
|
|
4227
4231
|
13: U
|
|
4228
|
-
},
|
|
4232
|
+
}, x(D, [2, 8], {
|
|
4229
4233
|
13: [1, 141]
|
|
4230
4234
|
}), {
|
|
4231
|
-
15:
|
|
4235
|
+
15: It,
|
|
4232
4236
|
19: [1, 142]
|
|
4233
4237
|
}, {
|
|
4234
|
-
15:
|
|
4238
|
+
15: It,
|
|
4235
4239
|
19: [1, 143]
|
|
4236
4240
|
}, {
|
|
4237
|
-
15:
|
|
4241
|
+
15: It,
|
|
4238
4242
|
19: [1, 144]
|
|
4239
|
-
},
|
|
4243
|
+
}, x(P, [2, 28]), {
|
|
4240
4244
|
12: 66,
|
|
4241
4245
|
13: U,
|
|
4242
4246
|
18: ye,
|
|
@@ -4244,19 +4248,19 @@ var w = function(t, s, i, r) {
|
|
|
4244
4248
|
}, {
|
|
4245
4249
|
19: [1, 146]
|
|
4246
4250
|
}, {
|
|
4247
|
-
15:
|
|
4251
|
+
15: Oe,
|
|
4248
4252
|
19: [1, 147]
|
|
4249
4253
|
}, {
|
|
4250
|
-
15:
|
|
4254
|
+
15: Oe,
|
|
4251
4255
|
19: [1, 148]
|
|
4252
4256
|
}, {
|
|
4253
|
-
15:
|
|
4257
|
+
15: Oe,
|
|
4254
4258
|
19: [1, 149]
|
|
4255
|
-
},
|
|
4259
|
+
}, x(P, [2, 33]), {
|
|
4256
4260
|
17: 150,
|
|
4257
|
-
18:
|
|
4261
|
+
18: he
|
|
4258
4262
|
}, {
|
|
4259
|
-
15:
|
|
4263
|
+
15: It,
|
|
4260
4264
|
19: [1, 151]
|
|
4261
4265
|
}, {
|
|
4262
4266
|
15: me,
|
|
@@ -4267,16 +4271,16 @@ var w = function(t, s, i, r) {
|
|
|
4267
4271
|
}, {
|
|
4268
4272
|
15: me,
|
|
4269
4273
|
19: [1, 154]
|
|
4270
|
-
},
|
|
4271
|
-
15:
|
|
4274
|
+
}, x(P, [2, 38]), {
|
|
4275
|
+
15: Oe,
|
|
4272
4276
|
19: [1, 155]
|
|
4273
4277
|
}, {
|
|
4274
|
-
15:
|
|
4278
|
+
15: Oe,
|
|
4275
4279
|
19: [1, 156]
|
|
4276
4280
|
}, {
|
|
4277
|
-
15:
|
|
4281
|
+
15: Oe,
|
|
4278
4282
|
19: [1, 157]
|
|
4279
|
-
},
|
|
4283
|
+
}, x(P, [2, 43]), {
|
|
4280
4284
|
15: me,
|
|
4281
4285
|
19: [1, 158]
|
|
4282
4286
|
}, {
|
|
@@ -4285,22 +4289,22 @@ var w = function(t, s, i, r) {
|
|
|
4285
4289
|
}, {
|
|
4286
4290
|
15: me,
|
|
4287
4291
|
19: [1, 160]
|
|
4288
|
-
},
|
|
4289
|
-
18:
|
|
4292
|
+
}, x(P, [2, 48]), {
|
|
4293
|
+
18: jt,
|
|
4290
4294
|
27: 161
|
|
4291
4295
|
}, {
|
|
4292
4296
|
15: me,
|
|
4293
4297
|
19: [1, 162]
|
|
4294
4298
|
}, {
|
|
4295
|
-
15:
|
|
4299
|
+
15: pr,
|
|
4296
4300
|
19: [1, 163]
|
|
4297
4301
|
}, {
|
|
4298
|
-
15:
|
|
4302
|
+
15: pr,
|
|
4299
4303
|
19: [1, 164]
|
|
4300
4304
|
}, {
|
|
4301
|
-
15:
|
|
4305
|
+
15: pr,
|
|
4302
4306
|
19: [1, 165]
|
|
4303
|
-
},
|
|
4307
|
+
}, x(P, [2, 62]), {
|
|
4304
4308
|
4: 93,
|
|
4305
4309
|
6: 94,
|
|
4306
4310
|
7: 95,
|
|
@@ -4317,17 +4321,17 @@ var w = function(t, s, i, r) {
|
|
|
4317
4321
|
34: 166,
|
|
4318
4322
|
36: gt
|
|
4319
4323
|
}, {
|
|
4320
|
-
15:
|
|
4324
|
+
15: ur,
|
|
4321
4325
|
19: [1, 167]
|
|
4322
4326
|
}, {
|
|
4323
|
-
15:
|
|
4327
|
+
15: ur,
|
|
4324
4328
|
19: [1, 168]
|
|
4325
4329
|
}, {
|
|
4326
|
-
15:
|
|
4330
|
+
15: ur,
|
|
4327
4331
|
19: [1, 169]
|
|
4328
|
-
},
|
|
4332
|
+
}, x(D, [2, 11]), x(D, [2, 9], {
|
|
4329
4333
|
13: [1, 170]
|
|
4330
|
-
}),
|
|
4334
|
+
}), x(P, [2, 17]), x(P, [2, 18]), x(P, [2, 19]), x(D, [2, 26]), x(D, [2, 22]), x(P, [2, 29]), x(P, [2, 30]), x(P, [2, 31]), x(D, [2, 13]), x(D, [2, 15]), x(P, [2, 34]), x(P, [2, 35]), x(P, [2, 36]), x(P, [2, 39]), x(P, [2, 40]), x(P, [2, 41]), x(P, [2, 44]), x(P, [2, 45]), x(P, [2, 46]), x(D, [2, 23]), x(D, [2, 25]), x(P, [2, 49]), x(P, [2, 50]), x(P, [2, 51]), x(D, [2, 60]), x(P, [2, 63]), x(P, [2, 64]), x(P, [2, 65]), x(D, [2, 10])],
|
|
4331
4335
|
defaultActions: {
|
|
4332
4336
|
16: [2, 1],
|
|
4333
4337
|
17: [2, 2],
|
|
@@ -4346,50 +4350,50 @@ var w = function(t, s, i, r) {
|
|
|
4346
4350
|
}
|
|
4347
4351
|
},
|
|
4348
4352
|
parse: function(t) {
|
|
4349
|
-
var s = this, i = [0], r = [null], a = [], n = this.table, h = "", u = 0, g = 0,
|
|
4353
|
+
var s = this, i = [0], r = [null], a = [], n = this.table, h = "", u = 0, g = 0, $ = 2, v = 1, C = a.slice.call(arguments, 1), w = Object.create(this.lexer), _ = {
|
|
4350
4354
|
yy: {}
|
|
4351
4355
|
};
|
|
4352
4356
|
for (var A in this.yy)
|
|
4353
4357
|
Object.prototype.hasOwnProperty.call(this.yy, A) && (_.yy[A] = this.yy[A]);
|
|
4354
|
-
|
|
4355
|
-
var T =
|
|
4358
|
+
w.setInput(t, _.yy), _.yy.lexer = w, _.yy.parser = this, typeof w.yylloc > "u" && (w.yylloc = {});
|
|
4359
|
+
var T = w.yylloc;
|
|
4356
4360
|
a.push(T);
|
|
4357
|
-
var N =
|
|
4361
|
+
var N = w.options && w.options.ranges;
|
|
4358
4362
|
typeof _.yy.parseError == "function" ? this.parseError = _.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
4359
|
-
for (var
|
|
4363
|
+
for (var ue = function() {
|
|
4360
4364
|
var Ae;
|
|
4361
|
-
return Ae =
|
|
4362
|
-
},
|
|
4363
|
-
if (G = i[i.length - 1], this.defaultActions[G] ?
|
|
4365
|
+
return Ae = w.lex() || v, typeof Ae != "number" && (Ae = s.symbols_[Ae] || Ae), Ae;
|
|
4366
|
+
}, z, G, F, tt, ve = {}, ze, se, tr, rt; ; ) {
|
|
4367
|
+
if (G = i[i.length - 1], this.defaultActions[G] ? F = this.defaultActions[G] : ((z === null || typeof z > "u") && (z = ue()), F = n[G] && n[G][z]), typeof F > "u" || !F.length || !F[0]) {
|
|
4364
4368
|
var st = "";
|
|
4365
4369
|
rt = [];
|
|
4366
4370
|
for (ze in n[G])
|
|
4367
|
-
this.terminals_[ze] && ze >
|
|
4368
|
-
|
|
4369
|
-
` +
|
|
4370
|
-
Expecting ` + rt.join(", ") + ", got '" + (this.terminals_[
|
|
4371
|
-
text:
|
|
4372
|
-
token: this.terminals_[
|
|
4373
|
-
line:
|
|
4371
|
+
this.terminals_[ze] && ze > $ && rt.push("'" + this.terminals_[ze] + "'");
|
|
4372
|
+
w.showPosition ? st = "Parse error on line " + (u + 1) + `:
|
|
4373
|
+
` + w.showPosition() + `
|
|
4374
|
+
Expecting ` + rt.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : st = "Parse error on line " + (u + 1) + ": Unexpected " + (z == v ? "end of input" : "'" + (this.terminals_[z] || z) + "'"), this.parseError(st, {
|
|
4375
|
+
text: w.match,
|
|
4376
|
+
token: this.terminals_[z] || z,
|
|
4377
|
+
line: w.yylineno,
|
|
4374
4378
|
loc: T,
|
|
4375
4379
|
expected: rt
|
|
4376
4380
|
});
|
|
4377
4381
|
}
|
|
4378
|
-
if (
|
|
4379
|
-
throw new Error("Parse Error: multiple actions possible at state: " + G + ", token: " +
|
|
4380
|
-
switch (
|
|
4382
|
+
if (F[0] instanceof Array && F.length > 1)
|
|
4383
|
+
throw new Error("Parse Error: multiple actions possible at state: " + G + ", token: " + z);
|
|
4384
|
+
switch (F[0]) {
|
|
4381
4385
|
case 1:
|
|
4382
|
-
i.push(
|
|
4386
|
+
i.push(z), r.push(w.yytext), a.push(w.yylloc), i.push(F[1]), z = null, g = w.yyleng, h = w.yytext, u = w.yylineno, T = w.yylloc;
|
|
4383
4387
|
break;
|
|
4384
4388
|
case 2:
|
|
4385
|
-
if (
|
|
4386
|
-
first_line: a[a.length - (
|
|
4389
|
+
if (se = this.productions_[F[1]][1], ve.$ = r[r.length - se], ve._$ = {
|
|
4390
|
+
first_line: a[a.length - (se || 1)].first_line,
|
|
4387
4391
|
last_line: a[a.length - 1].last_line,
|
|
4388
|
-
first_column: a[a.length - (
|
|
4392
|
+
first_column: a[a.length - (se || 1)].first_column,
|
|
4389
4393
|
last_column: a[a.length - 1].last_column
|
|
4390
|
-
}, N && (ve._$.range = [a[a.length - (
|
|
4394
|
+
}, N && (ve._$.range = [a[a.length - (se || 1)].range[0], a[a.length - 1].range[1]]), tt = this.performAction.apply(ve, [h, g, u, _.yy, F[1], r, a].concat(C)), typeof tt < "u")
|
|
4391
4395
|
return tt;
|
|
4392
|
-
|
|
4396
|
+
se && (i = i.slice(0, -1 * se * 2), r = r.slice(0, -1 * se), a = a.slice(0, -1 * se)), i.push(this.productions_[F[1]][0]), r.push(ve.$), a.push(ve._$), tr = n[i[i.length - 2]][i[i.length - 1]], i.push(tr);
|
|
4393
4397
|
break;
|
|
4394
4398
|
case 3:
|
|
4395
4399
|
return !0;
|
|
@@ -4617,22 +4621,22 @@ Expecting ` + rt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : st =
|
|
|
4617
4621
|
};
|
|
4618
4622
|
return e;
|
|
4619
4623
|
}();
|
|
4620
|
-
|
|
4624
|
+
er.lexer = Ka;
|
|
4621
4625
|
function Pi() {
|
|
4622
4626
|
this.yy = {};
|
|
4623
4627
|
}
|
|
4624
|
-
Pi.prototype =
|
|
4625
|
-
|
|
4626
|
-
|
|
4628
|
+
Pi.prototype = er;
|
|
4629
|
+
er.Parser = Pi;
|
|
4630
|
+
er.yy.parseError = function(e) {
|
|
4627
4631
|
throw e;
|
|
4628
4632
|
};
|
|
4629
|
-
function
|
|
4633
|
+
function qt(e) {
|
|
4630
4634
|
this.data = [e], this.type = "PointArray";
|
|
4631
4635
|
}
|
|
4632
|
-
|
|
4636
|
+
qt.prototype.addPoint = function(e) {
|
|
4633
4637
|
return e.type === "PointArray" ? this.data = this.data.concat(e.data) : this.data.push(e), this;
|
|
4634
4638
|
};
|
|
4635
|
-
|
|
4639
|
+
qt.prototype.toJSON = function() {
|
|
4636
4640
|
return this.data;
|
|
4637
4641
|
};
|
|
4638
4642
|
function Ti(e) {
|
|
@@ -4677,7 +4681,7 @@ hs.prototype.toJSON = function() {
|
|
|
4677
4681
|
var Li = function(t) {
|
|
4678
4682
|
var s;
|
|
4679
4683
|
try {
|
|
4680
|
-
s =
|
|
4684
|
+
s = er.parse(t);
|
|
4681
4685
|
} catch (i) {
|
|
4682
4686
|
throw Error("Unable to parse: " + i);
|
|
4683
4687
|
}
|
|
@@ -4769,8 +4773,8 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4769
4773
|
function: il,
|
|
4770
4774
|
literal: _a,
|
|
4771
4775
|
namedArg: al,
|
|
4772
|
-
wildcard:
|
|
4773
|
-
}, ll =
|
|
4776
|
+
wildcard: Oa
|
|
4777
|
+
}, ll = fe, cl = (e, t) => "(" + (e.arguments || []).map((i) => Ge(i, t)).join(" AND ") + ")", pl = (e, t) => {
|
|
4774
4778
|
var {
|
|
4775
4779
|
arguments: [s, i, r]
|
|
4776
4780
|
} = e;
|
|
@@ -4820,7 +4824,7 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4820
4824
|
}, Ge = (e, t) => {
|
|
4821
4825
|
const s = ml[e.type];
|
|
4822
4826
|
return s(e, t);
|
|
4823
|
-
}, $l =
|
|
4827
|
+
}, $l = fe, _l = (e) => ({ $and: (e.arguments || []).map((i) => Pe(i)) }), wl = (e) => {
|
|
4824
4828
|
const {
|
|
4825
4829
|
arguments: [t, s]
|
|
4826
4830
|
} = e;
|
|
@@ -4849,7 +4853,7 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4849
4853
|
}, Ni = (e) => {
|
|
4850
4854
|
const [t] = e.arguments;
|
|
4851
4855
|
return { [Pe(t)]: { $ne: null } };
|
|
4852
|
-
},
|
|
4856
|
+
}, Cl = (e) => (console.warn("TODO Implement nested search", e), ""), Ol = (e) => {
|
|
4853
4857
|
const [t, s, i] = e.arguments;
|
|
4854
4858
|
if (s == "within")
|
|
4855
4859
|
return { [t.value]: { $geoWithin: Li(i.value) } };
|
|
@@ -4860,8 +4864,8 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4860
4864
|
not: Sl,
|
|
4861
4865
|
range: Al,
|
|
4862
4866
|
exists: Ni,
|
|
4863
|
-
nested:
|
|
4864
|
-
geospatial:
|
|
4867
|
+
nested: Cl,
|
|
4868
|
+
geospatial: Ol
|
|
4865
4869
|
}, Pl = {
|
|
4866
4870
|
function: (e) => El[e.function](e),
|
|
4867
4871
|
literal: (e) => e.value,
|
|
@@ -4872,14 +4876,14 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4872
4876
|
}, Pe = (e, t) => {
|
|
4873
4877
|
const s = Pl[e.type];
|
|
4874
4878
|
return s(e, t);
|
|
4875
|
-
}, Tl =
|
|
4879
|
+
}, Tl = fe, Ll = (e, t) => {
|
|
4876
4880
|
const s = e.arguments || [];
|
|
4877
4881
|
let i = "<span class='and-expression'>" + s.map((r) => Ne(r, t)).join(" AND ") + "</span>";
|
|
4878
4882
|
if (e.group !== void 0) {
|
|
4879
4883
|
try {
|
|
4880
|
-
let { fieldName: r, values: a } = fs(s);
|
|
4881
|
-
return `<span class="
|
|
4882
|
-
"
|
|
4884
|
+
let { fieldName: r, values: a } = fs(s), n = ":";
|
|
4885
|
+
return r === xt({ type: "literal", value: null }) && (r = "", n = ""), `<span class="and-expression">${r}${n}(${a.join(
|
|
4886
|
+
" AND "
|
|
4883
4887
|
)})</span>`;
|
|
4884
4888
|
} catch (r) {
|
|
4885
4889
|
console.log(r);
|
|
@@ -4892,8 +4896,8 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4892
4896
|
let r = `<span class="or-expression">${s.map((a) => Ne(a, t)).join(" OR ")}</span>`;
|
|
4893
4897
|
if (e.group !== void 0) {
|
|
4894
4898
|
try {
|
|
4895
|
-
let { fieldName: a, values: n } = fs(s);
|
|
4896
|
-
return `<span class="or-expression">${a}
|
|
4899
|
+
let { fieldName: a, values: n } = fs(s), h = ":";
|
|
4900
|
+
return a === xt({ type: "literal", value: null }) && (a = "", h = ""), `<span class="or-expression">${a}${h}(${n.join(
|
|
4897
4901
|
" OR "
|
|
4898
4902
|
)})</span>`;
|
|
4899
4903
|
} catch (a) {
|
|
@@ -4906,18 +4910,20 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4906
4910
|
var a;
|
|
4907
4911
|
let r = Ne(t);
|
|
4908
4912
|
return s.value && (r = `"${r}"`), i && ((a = i.find((n) => n.name === e)) == null ? void 0 : a.type) === "boolean" && (r = `<span class="value-constant">${t.value}</span>`), `<span class="expression-value">${r}</span>`;
|
|
4909
|
-
},
|
|
4913
|
+
}, xt = (e) => `<span class="field-name">${Ne(e)}</span>`, Dl = (e, t) => {
|
|
4910
4914
|
var {
|
|
4911
4915
|
arguments: [s, i, r]
|
|
4912
4916
|
} = e;
|
|
4913
|
-
let a = ":", n =
|
|
4917
|
+
let a = ":", n = xt(s);
|
|
4918
|
+
n === xt({ type: "literal", value: null }) && (n = "", a = "");
|
|
4919
|
+
let h = Di(n, i, r, t);
|
|
4914
4920
|
return `<span class="is-expression">${n}${a}${h}</span>`;
|
|
4915
4921
|
}, Ml = (e, t) => {
|
|
4916
4922
|
const [s] = e.arguments;
|
|
4917
4923
|
return `<span class="not-expression">not ${Ne(s, t)}</span>`;
|
|
4918
4924
|
}, fs = (e, t = void 0, s) => {
|
|
4919
4925
|
let i = [];
|
|
4920
|
-
if (!t && e[0].function == "is" && (t =
|
|
4926
|
+
if (!t && e[0].function == "is" && (t = xt(e[0].arguments[0])), !t)
|
|
4921
4927
|
throw Error(
|
|
4922
4928
|
"Cannot group variables because they don't have a groupable field"
|
|
4923
4929
|
);
|
|
@@ -4926,7 +4932,7 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4926
4932
|
arguments: [r, a, n]
|
|
4927
4933
|
} = h;
|
|
4928
4934
|
if (h.function == "is") {
|
|
4929
|
-
if (
|
|
4935
|
+
if (xt(r) !== t)
|
|
4930
4936
|
throw Error(
|
|
4931
4937
|
"Cannot group variables because they aren't for the same field"
|
|
4932
4938
|
);
|
|
@@ -4951,7 +4957,7 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4951
4957
|
let i = s.value;
|
|
4952
4958
|
const r = zl[s.name];
|
|
4953
4959
|
let a = Ne(i);
|
|
4954
|
-
return i.type === "literal" && (a = `${a}`), Number.isNaN(parseFloat(a)) && (a = `<span class="expression-value">"${a}"</span>`), `<span class="range-expression"><span class="field-name">${t.value}</span> ${r} <span class="field-numeric">${a}</span></span>`;
|
|
4960
|
+
return i.type === "literal" && (a = `${a}`), (Number.isNaN(parseFloat(a)) || !a.match(/^[-+]?([0-9]*\.[0-9]+|[0-9]+(\.[0-9]*)?)$/)) && (a = `<span class="expression-value">"${a}"</span>`), `<span class="range-expression"><span class="field-name">${t.value}</span> ${r} <span class="field-numeric">${a}</span></span>`;
|
|
4955
4961
|
}, jl = (e) => {
|
|
4956
4962
|
const [t] = e.arguments;
|
|
4957
4963
|
return `<span class="exists-expression"><span class="field-name">${t.value}</span>: *</span>`;
|
|
@@ -4969,7 +4975,7 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4969
4975
|
exists: jl,
|
|
4970
4976
|
nested: Il,
|
|
4971
4977
|
geospatial: Bl
|
|
4972
|
-
},
|
|
4978
|
+
}, Fl = {
|
|
4973
4979
|
function: (e, t) => Ul[e.function](e, t),
|
|
4974
4980
|
literal: (e) => e.value,
|
|
4975
4981
|
wildcard: (e) => {
|
|
@@ -4977,16 +4983,16 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4977
4983
|
return `<span class="wild-card">${t.split(Tl).join("*")}</span>`;
|
|
4978
4984
|
}
|
|
4979
4985
|
}, Ne = (e, t) => {
|
|
4980
|
-
const s =
|
|
4986
|
+
const s = Fl[e.type];
|
|
4981
4987
|
return s(e, t);
|
|
4982
|
-
},
|
|
4988
|
+
}, Hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4983
4989
|
__proto__: null,
|
|
4984
|
-
DQLSyntaxError:
|
|
4990
|
+
DQLSyntaxError: Ci,
|
|
4985
4991
|
doesKueryExpressionHaveLuceneSyntaxError: wa,
|
|
4986
|
-
fromKueryExpression:
|
|
4992
|
+
fromKueryExpression: vr,
|
|
4987
4993
|
fromLiteralExpression: wt,
|
|
4988
4994
|
nodeTypes: _e,
|
|
4989
|
-
parse:
|
|
4995
|
+
parse: vr,
|
|
4990
4996
|
toCql: Ge,
|
|
4991
4997
|
toDSL: Q,
|
|
4992
4998
|
toHTML: Ne,
|
|
@@ -5086,7 +5092,7 @@ var Wl = Object.defineProperty, Vl = Object.getOwnPropertyDescriptor, gs = (e, t
|
|
|
5086
5092
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
5087
5093
|
return i && r && Wl(t, s, r), r;
|
|
5088
5094
|
};
|
|
5089
|
-
let
|
|
5095
|
+
let St = class extends ke {
|
|
5090
5096
|
constructor() {
|
|
5091
5097
|
super(), this.level = 0, this.addDisposableListener(this, "layer-add", () => {
|
|
5092
5098
|
this.layers = this.querySelectorAll("spectric-panel");
|
|
@@ -5119,16 +5125,16 @@ let xt = class extends ke {
|
|
|
5119
5125
|
return m` <slot></slot> `;
|
|
5120
5126
|
}
|
|
5121
5127
|
};
|
|
5122
|
-
|
|
5128
|
+
St.styles = Ql;
|
|
5123
5129
|
gs([
|
|
5124
5130
|
f({ type: Number, reflect: !0 })
|
|
5125
|
-
],
|
|
5131
|
+
], St.prototype, "level", 2);
|
|
5126
5132
|
gs([
|
|
5127
5133
|
f({ attribute: !1 })
|
|
5128
|
-
],
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
],
|
|
5134
|
+
], St.prototype, "layers", 2);
|
|
5135
|
+
St = gs([
|
|
5136
|
+
I("spectric-panel")
|
|
5137
|
+
], St);
|
|
5132
5138
|
var Yl = Object.defineProperty, Gl = Object.getOwnPropertyDescriptor, De = (e, t, s, i) => {
|
|
5133
5139
|
for (var r = i > 1 ? void 0 : i ? Gl(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
5134
5140
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
@@ -5159,7 +5165,7 @@ let X = class extends B {
|
|
|
5159
5165
|
for (let r in e)
|
|
5160
5166
|
s[r] = e[r];
|
|
5161
5167
|
let i = document.createDocumentFragment();
|
|
5162
|
-
return
|
|
5168
|
+
return $r(t, i), s.appendChild(i), s.open = !0, document.body.appendChild(s), s;
|
|
5163
5169
|
}
|
|
5164
5170
|
connectedCallback() {
|
|
5165
5171
|
super.connectedCallback(), this.dialogElement.then(
|
|
@@ -5228,10 +5234,10 @@ De([
|
|
|
5228
5234
|
f({ type: Boolean, reflect: !0 })
|
|
5229
5235
|
], X.prototype, "closeOnOutsideClick", 2);
|
|
5230
5236
|
De([
|
|
5231
|
-
|
|
5237
|
+
Xt("dialog")
|
|
5232
5238
|
], X.prototype, "dialogElement", 2);
|
|
5233
5239
|
X = De([
|
|
5234
|
-
|
|
5240
|
+
I(bs)
|
|
5235
5241
|
], X);
|
|
5236
5242
|
const ti = async (e) => {
|
|
5237
5243
|
let t, s = yt();
|
|
@@ -5241,7 +5247,7 @@ const ti = async (e) => {
|
|
|
5241
5247
|
m`
|
|
5242
5248
|
<div class="query-bar-date-quick-select">
|
|
5243
5249
|
${e.map((a) => {
|
|
5244
|
-
let n =
|
|
5250
|
+
let n = kr(a);
|
|
5245
5251
|
return m`<a
|
|
5246
5252
|
href="#"
|
|
5247
5253
|
@click=${(h) => {
|
|
@@ -5278,7 +5284,7 @@ const ti = async (e) => {
|
|
|
5278
5284
|
m`
|
|
5279
5285
|
<div class="query-bar-date-quick-select">
|
|
5280
5286
|
${e.map((a) => {
|
|
5281
|
-
let n =
|
|
5287
|
+
let n = kr(a);
|
|
5282
5288
|
return m`<a
|
|
5283
5289
|
href="#"
|
|
5284
5290
|
@click=${(h) => {
|
|
@@ -5306,9 +5312,9 @@ const ti = async (e) => {
|
|
|
5306
5312
|
* Copyright 2017 Google LLC
|
|
5307
5313
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5308
5314
|
*/
|
|
5309
|
-
class Kr extends
|
|
5315
|
+
class Kr extends Kt {
|
|
5310
5316
|
constructor(t) {
|
|
5311
|
-
if (super(t), this.it = L, t.type !==
|
|
5317
|
+
if (super(t), this.it = L, t.type !== _r.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
5312
5318
|
}
|
|
5313
5319
|
render(t) {
|
|
5314
5320
|
if (t === L || t == null) return this._t = void 0, this.it = t;
|
|
@@ -5321,13 +5327,13 @@ class Kr extends Jt {
|
|
|
5321
5327
|
}
|
|
5322
5328
|
}
|
|
5323
5329
|
Kr.directiveName = "unsafeHTML", Kr.resultType = 1;
|
|
5324
|
-
const rc =
|
|
5325
|
-
var sc = Object.defineProperty, ic = Object.getOwnPropertyDescriptor,
|
|
5330
|
+
const rc = At(Kr);
|
|
5331
|
+
var sc = Object.defineProperty, ic = Object.getOwnPropertyDescriptor, te = (e, t, s, i) => {
|
|
5326
5332
|
for (var r = i > 1 ? void 0 : i ? ic(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
5327
5333
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
5328
5334
|
return i && r && sc(t, s, r), r;
|
|
5329
5335
|
}, Mi = /* @__PURE__ */ ((e) => (e.MONGO = "toMongo", e.CQL = "toCql", e.DSL = "toDSL", e.AST = "AST", e))(Mi || {});
|
|
5330
|
-
const
|
|
5336
|
+
const kr = (e) => typeof e == "string" ? { label: e, value: e } : { label: e.label || e.value, value: e.value }, zi = {
|
|
5331
5337
|
eq: { value: " : ", label: " equals some value" },
|
|
5332
5338
|
gt: { value: " > ", label: " is greater than some value" },
|
|
5333
5339
|
lt: { value: " < ", label: " is less than some value" },
|
|
@@ -5352,15 +5358,16 @@ const Sr = (e) => typeof e == "string" ? { label: e, value: e } : { label: e.lab
|
|
|
5352
5358
|
}
|
|
5353
5359
|
])
|
|
5354
5360
|
);
|
|
5355
|
-
let
|
|
5361
|
+
let H = class extends B {
|
|
5356
5362
|
constructor() {
|
|
5357
5363
|
super(), this.placeholder = "", this._value = "", this.value = "", this.outputLanguage = "AST", this.completions = [], this.completionIndex = 0, this.fields = [], this._checkClickLocation = async (e) => {
|
|
5364
|
+
var s;
|
|
5358
5365
|
console.log(e);
|
|
5359
5366
|
let t = null;
|
|
5360
5367
|
try {
|
|
5361
5368
|
t = this._getSuggestion();
|
|
5362
|
-
} catch (
|
|
5363
|
-
console.log(s);
|
|
5369
|
+
} catch (i) {
|
|
5370
|
+
console.log(i), (s = this._autocomplete) == null || s.hidePopover();
|
|
5364
5371
|
}
|
|
5365
5372
|
t && this._showValueHelper(t);
|
|
5366
5373
|
}, this._setValue = (e, t) => {
|
|
@@ -5369,21 +5376,19 @@ let F = class extends B {
|
|
|
5369
5376
|
t.start + e.length
|
|
5370
5377
|
), this._valueHelper && this._valueHelper.hidePopover());
|
|
5371
5378
|
}, this._showValueHelper = async (e) => {
|
|
5372
|
-
var
|
|
5379
|
+
var a, n;
|
|
5373
5380
|
if (this.valueHelper = void 0, !e || e.start === e.end)
|
|
5374
5381
|
return;
|
|
5375
|
-
let
|
|
5376
|
-
|
|
5377
|
-
);
|
|
5378
|
-
if (!t)
|
|
5382
|
+
let s = (this.fields || []).find((h) => h.name === e.fieldName);
|
|
5383
|
+
if (!s)
|
|
5379
5384
|
return;
|
|
5380
|
-
let
|
|
5385
|
+
let i = await this.getValuesForField(
|
|
5381
5386
|
e.fieldName,
|
|
5382
5387
|
e.prefix
|
|
5383
5388
|
);
|
|
5384
|
-
|
|
5385
|
-
let
|
|
5386
|
-
|
|
5389
|
+
s.format === "date-time" && !i.length && (i = ["now-1m", "now-1d", "now-1M"]);
|
|
5390
|
+
let r;
|
|
5391
|
+
s.format == "date-time" ? r = ti : s.format == "geojson" && (r = ri), !this.completions.length && !((a = this._autocomplete) != null && a.isOpen()) && (this.valueHelper = m`<div>
|
|
5387
5392
|
<spectric-button
|
|
5388
5393
|
tooltip="Delete Value"
|
|
5389
5394
|
tooltipPosition="top"
|
|
@@ -5394,27 +5399,28 @@ let F = class extends B {
|
|
|
5394
5399
|
}}
|
|
5395
5400
|
>${Jl}</spectric-button
|
|
5396
5401
|
>
|
|
5397
|
-
${
|
|
5402
|
+
${r ? m`<spectric-button
|
|
5398
5403
|
icon
|
|
5399
5404
|
tooltip="Edit Value"
|
|
5400
5405
|
tooltipPosition="top"
|
|
5401
5406
|
size="xsmall"
|
|
5402
5407
|
@click=${async () => {
|
|
5403
|
-
this._setValue(await i
|
|
5408
|
+
this._setValue(await r(i), e);
|
|
5404
5409
|
}}
|
|
5405
5410
|
>${Zl}</spectric-button
|
|
5406
5411
|
>` : null}
|
|
5407
|
-
</div>`, (
|
|
5412
|
+
</div>`, (n = this._valueHelper) == null || n.showPopover());
|
|
5408
5413
|
}, this._getSuggestion = () => {
|
|
5409
5414
|
let e = this.value;
|
|
5410
5415
|
this._input.selectionStart !== null && (e = e.substring(0, this._input.selectionStart) + "©kuery-cursor©" + e.substring(this._input.selectionStart));
|
|
5411
|
-
let t =
|
|
5416
|
+
let t = vr(e, {
|
|
5412
5417
|
parseCursor: !0,
|
|
5413
5418
|
cursorSymbol: "©kuery-cursor©",
|
|
5414
5419
|
allowLeadingWildcards: !1
|
|
5415
5420
|
});
|
|
5416
5421
|
return this._showValueHelper(t), t;
|
|
5417
5422
|
}, this._parseQuery = (e = void 0) => {
|
|
5423
|
+
var r;
|
|
5418
5424
|
let t;
|
|
5419
5425
|
if (e && (e != null && e.currentTarget) && (this.value = e.currentTarget.value), this.value)
|
|
5420
5426
|
try {
|
|
@@ -5422,18 +5428,18 @@ let F = class extends B {
|
|
|
5422
5428
|
this.value.length - 2,
|
|
5423
5429
|
this.value.length - 2
|
|
5424
5430
|
));
|
|
5425
|
-
let
|
|
5426
|
-
this.autoComplete(
|
|
5431
|
+
let a = this._getSuggestion();
|
|
5432
|
+
this.autoComplete(a);
|
|
5427
5433
|
} catch {
|
|
5428
|
-
|
|
5434
|
+
this.completions = [], (r = this._autocomplete) == null || r.hidePopover();
|
|
5429
5435
|
}
|
|
5430
5436
|
try {
|
|
5431
|
-
t =
|
|
5437
|
+
t = vr(this.value, { allowLeadingWildcards: !1 });
|
|
5432
5438
|
} catch {
|
|
5433
5439
|
return;
|
|
5434
5440
|
}
|
|
5435
5441
|
let s;
|
|
5436
|
-
this.outputLanguage == "AST" ? s = t : s =
|
|
5442
|
+
this.outputLanguage == "AST" ? s = t : s = Hl[this.outputLanguage || "toDSL"](t, this.fields);
|
|
5437
5443
|
let i = new CustomEvent("change", { detail: s });
|
|
5438
5444
|
this.value.trim().length ? this.highlightedSyntax = rc(Ne(t, this.fields)) : this.highlightedSyntax = "", this.dispatchEvent(i);
|
|
5439
5445
|
}, this.getValuesForField = async (e, t) => (console.log("getValuesForField isn't set no values returned", e, t), []), this._selectCompletion = async () => {
|
|
@@ -5470,86 +5476,88 @@ let F = class extends B {
|
|
|
5470
5476
|
this.suggestion = e;
|
|
5471
5477
|
let { start: s, end: i } = e;
|
|
5472
5478
|
for (let n of e.suggestionTypes) {
|
|
5473
|
-
|
|
5474
|
-
...["and ", "or "].map((
|
|
5479
|
+
n == "conjunction" && e.text.endsWith(" ") && t.push(
|
|
5480
|
+
...["and ", "or "].map((u) => ({
|
|
5475
5481
|
type: n,
|
|
5476
|
-
value:
|
|
5482
|
+
value: u,
|
|
5477
5483
|
start: i,
|
|
5478
5484
|
end: i
|
|
5479
5485
|
}))
|
|
5480
|
-
)
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5486
|
+
);
|
|
5487
|
+
let h = this.fields || [];
|
|
5488
|
+
if (n === "field") {
|
|
5489
|
+
let u = h.filter(
|
|
5490
|
+
(g) => g.name.includes(e.fieldName) || g.name.includes(e.prefix)
|
|
5491
|
+
).map((g) => [{ type: n, value: g.name, start: s, end: i }]).flat();
|
|
5492
|
+
t.push(...u);
|
|
5485
5493
|
}
|
|
5486
5494
|
if (n === "operator") {
|
|
5487
|
-
let
|
|
5488
|
-
(
|
|
5495
|
+
let u = h.find(
|
|
5496
|
+
(g) => g.name === e.fieldName
|
|
5489
5497
|
);
|
|
5490
|
-
|
|
5491
|
-
...Object.values(zi).map((
|
|
5498
|
+
u && (["number", "integer"].includes(u.type) ? t.push(
|
|
5499
|
+
...Object.values(zi).map((g) => ({
|
|
5492
5500
|
type: n,
|
|
5493
|
-
...
|
|
5501
|
+
...g,
|
|
5494
5502
|
start: i,
|
|
5495
5503
|
end: i
|
|
5496
5504
|
}))
|
|
5497
|
-
) :
|
|
5498
|
-
...Object.values(vs).map((
|
|
5505
|
+
) : u.type === "object" ? (u.format == "geojson" && t.push(
|
|
5506
|
+
...Object.values(vs).map((g) => ({
|
|
5499
5507
|
type: n,
|
|
5500
|
-
...
|
|
5508
|
+
...g,
|
|
5501
5509
|
start: i,
|
|
5502
5510
|
end: i,
|
|
5503
5511
|
onSelect: async () => {
|
|
5504
|
-
let
|
|
5512
|
+
let $ = await this.getValuesForField(
|
|
5505
5513
|
e.fieldName,
|
|
5506
5514
|
e.prefix
|
|
5507
5515
|
);
|
|
5508
|
-
return await ri(
|
|
5516
|
+
return await ri($);
|
|
5509
5517
|
}
|
|
5510
5518
|
}))
|
|
5511
5519
|
), t.push(
|
|
5512
|
-
...Object.values(oc).map((
|
|
5520
|
+
...Object.values(oc).map((g) => ({
|
|
5513
5521
|
type: n,
|
|
5514
|
-
...
|
|
5522
|
+
...g,
|
|
5515
5523
|
start: i,
|
|
5516
5524
|
end: i
|
|
5517
5525
|
}))
|
|
5518
|
-
)) :
|
|
5519
|
-
...Object.values(lc).map((
|
|
5526
|
+
)) : u.type === "string" ? u.format === "date-time" ? t.push(
|
|
5527
|
+
...Object.values(lc).map((g) => ({
|
|
5520
5528
|
type: n,
|
|
5521
|
-
...
|
|
5529
|
+
...g,
|
|
5522
5530
|
start: i,
|
|
5523
5531
|
end: i,
|
|
5524
5532
|
onSelect: async () => {
|
|
5525
|
-
let
|
|
5533
|
+
let $ = await this.getValuesForField(
|
|
5526
5534
|
e.fieldName,
|
|
5527
5535
|
e.prefix
|
|
5528
5536
|
);
|
|
5529
|
-
return
|
|
5537
|
+
return $.length === 0 && ($ = ["now-1m", "now-1d", "now-1M"]), await ti($);
|
|
5530
5538
|
}
|
|
5531
5539
|
}))
|
|
5532
5540
|
) : t.push(
|
|
5533
|
-
...Object.values(nc).map((
|
|
5541
|
+
...Object.values(nc).map((g) => ({
|
|
5534
5542
|
type: n,
|
|
5535
|
-
...
|
|
5543
|
+
...g,
|
|
5536
5544
|
start: i,
|
|
5537
5545
|
end: i
|
|
5538
5546
|
}))
|
|
5539
|
-
) :
|
|
5540
|
-
...ac.map((
|
|
5547
|
+
) : u.type === "boolean" && t.push(
|
|
5548
|
+
...ac.map((g) => ({
|
|
5541
5549
|
type: n,
|
|
5542
|
-
...
|
|
5550
|
+
...g,
|
|
5543
5551
|
start: i,
|
|
5544
5552
|
end: i
|
|
5545
5553
|
}))
|
|
5546
5554
|
));
|
|
5547
5555
|
}
|
|
5548
5556
|
if (n === "value") {
|
|
5549
|
-
let
|
|
5550
|
-
(
|
|
5557
|
+
let u = (this.fields || []).find(
|
|
5558
|
+
(g) => g.name === e.fieldName
|
|
5551
5559
|
);
|
|
5552
|
-
if (!(
|
|
5560
|
+
if (!(u && u.type == "number" || (u == null ? void 0 : u.type) == "integer")) if (u && u.type == "boolean")
|
|
5553
5561
|
t.push(
|
|
5554
5562
|
{ type: n, value: "true", start: s, end: i },
|
|
5555
5563
|
{ type: n, value: "false", start: s, end: i }
|
|
@@ -5558,12 +5566,12 @@ let F = class extends B {
|
|
|
5558
5566
|
console.log(
|
|
5559
5567
|
`invoke callback to get values for ${e.fieldName}`
|
|
5560
5568
|
);
|
|
5561
|
-
let
|
|
5569
|
+
let g = await this.getValuesForField(
|
|
5562
5570
|
e.fieldName,
|
|
5563
5571
|
e.prefix
|
|
5564
5572
|
);
|
|
5565
|
-
(
|
|
5566
|
-
...
|
|
5573
|
+
(u == null ? void 0 : u.type) === "string" && (g = g.map(($) => `"${$}"`)), t.push(
|
|
5574
|
+
...g.map(kr).map(($) => ({ type: n, value: $.value, start: s, end: i }))
|
|
5567
5575
|
);
|
|
5568
5576
|
}
|
|
5569
5577
|
}
|
|
@@ -5577,8 +5585,8 @@ let F = class extends B {
|
|
|
5577
5585
|
} else
|
|
5578
5586
|
(a = this._autocomplete) == null || a.hidePopover();
|
|
5579
5587
|
}
|
|
5580
|
-
|
|
5581
|
-
e.has("outputLanguage") && this._parseQuery();
|
|
5588
|
+
update(e) {
|
|
5589
|
+
e.has("outputLanguage") && this._parseQuery(), e.has("value") && this._parseQuery(), super.update(e);
|
|
5582
5590
|
}
|
|
5583
5591
|
render() {
|
|
5584
5592
|
return m`
|
|
@@ -5588,10 +5596,15 @@ let F = class extends B {
|
|
|
5588
5596
|
.placeholder=${this.placeholder}
|
|
5589
5597
|
style=${`anchor-name:--${this.uuid};`}
|
|
5590
5598
|
autocomplete="off"
|
|
5599
|
+
.spellcheck=${!1}
|
|
5591
5600
|
@input=${this._parseQuery}
|
|
5592
5601
|
@keydown=${this._handleArrows}
|
|
5593
5602
|
@change=${(e) => e.stopPropagation()}
|
|
5594
5603
|
@click=${this._checkClickLocation}
|
|
5604
|
+
@blur=${() => {
|
|
5605
|
+
var e;
|
|
5606
|
+
(e = this._autocomplete) == null || e.hidePopover();
|
|
5607
|
+
}}
|
|
5595
5608
|
></spectric-input>
|
|
5596
5609
|
<spectric-popover
|
|
5597
5610
|
class="valueHelper"
|
|
@@ -5618,45 +5631,45 @@ let F = class extends B {
|
|
|
5618
5631
|
`;
|
|
5619
5632
|
}
|
|
5620
5633
|
};
|
|
5621
|
-
|
|
5634
|
+
te([
|
|
5622
5635
|
f({ type: String, reflect: !0 })
|
|
5623
|
-
],
|
|
5624
|
-
|
|
5636
|
+
], H.prototype, "placeholder", 2);
|
|
5637
|
+
te([
|
|
5625
5638
|
Y()
|
|
5626
|
-
],
|
|
5627
|
-
|
|
5639
|
+
], H.prototype, "valueHelper", 2);
|
|
5640
|
+
te([
|
|
5628
5641
|
Y()
|
|
5629
|
-
],
|
|
5630
|
-
|
|
5642
|
+
], H.prototype, "highlightedSyntax", 2);
|
|
5643
|
+
te([
|
|
5631
5644
|
f({ type: String, reflect: !0 })
|
|
5632
|
-
],
|
|
5633
|
-
|
|
5645
|
+
], H.prototype, "value", 2);
|
|
5646
|
+
te([
|
|
5634
5647
|
f({ type: String, reflect: !0 })
|
|
5635
|
-
],
|
|
5636
|
-
|
|
5648
|
+
], H.prototype, "outputLanguage", 2);
|
|
5649
|
+
te([
|
|
5637
5650
|
Y()
|
|
5638
|
-
],
|
|
5639
|
-
|
|
5651
|
+
], H.prototype, "completions", 2);
|
|
5652
|
+
te([
|
|
5640
5653
|
Y()
|
|
5641
|
-
],
|
|
5642
|
-
|
|
5654
|
+
], H.prototype, "completionIndex", 2);
|
|
5655
|
+
te([
|
|
5643
5656
|
f({ type: Array, reflect: !0 })
|
|
5644
|
-
],
|
|
5645
|
-
|
|
5657
|
+
], H.prototype, "fields", 2);
|
|
5658
|
+
te([
|
|
5646
5659
|
Se(".autocomplete")
|
|
5647
|
-
],
|
|
5648
|
-
|
|
5660
|
+
], H.prototype, "_autocomplete", 2);
|
|
5661
|
+
te([
|
|
5649
5662
|
Se(".valueHelper")
|
|
5650
|
-
],
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
],
|
|
5654
|
-
|
|
5663
|
+
], H.prototype, "_valueHelper", 2);
|
|
5664
|
+
te([
|
|
5665
|
+
Xt(".autocomplete")
|
|
5666
|
+
], H.prototype, "_asyncAutocomplete", 2);
|
|
5667
|
+
te([
|
|
5655
5668
|
Se("spectric-input")
|
|
5656
|
-
],
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
],
|
|
5669
|
+
], H.prototype, "_input", 2);
|
|
5670
|
+
H = te([
|
|
5671
|
+
I("spectric-query")
|
|
5672
|
+
], H);
|
|
5660
5673
|
var cc = Object.defineProperty, pc = Object.getOwnPropertyDescriptor, Ri = (e, t, s, i) => {
|
|
5661
5674
|
for (var r = i > 1 ? void 0 : i ? pc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
5662
5675
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
@@ -5774,7 +5787,7 @@ const uc = {
|
|
|
5774
5787
|
--spectric-button-disabled: #c6c6c6;
|
|
5775
5788
|
color: var(--spectric-text-primary);
|
|
5776
5789
|
`;
|
|
5777
|
-
let
|
|
5790
|
+
let Gt = class extends B {
|
|
5778
5791
|
constructor() {
|
|
5779
5792
|
super(...arguments), this.theme = "undefined";
|
|
5780
5793
|
}
|
|
@@ -5870,15 +5883,15 @@ let Yt = class extends B {
|
|
|
5870
5883
|
`;
|
|
5871
5884
|
}
|
|
5872
5885
|
};
|
|
5873
|
-
|
|
5886
|
+
Gt.styles = oe`:host{
|
|
5874
5887
|
display:contents;
|
|
5875
5888
|
}`;
|
|
5876
5889
|
Ri([
|
|
5877
5890
|
f({ reflect: !0 })
|
|
5878
|
-
],
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
],
|
|
5891
|
+
], Gt.prototype, "theme", 2);
|
|
5892
|
+
Gt = Ri([
|
|
5893
|
+
I("spectric-theme")
|
|
5894
|
+
], Gt);
|
|
5882
5895
|
const gc = oe`
|
|
5883
5896
|
:host {
|
|
5884
5897
|
display: block;
|
|
@@ -5954,7 +5967,7 @@ let q = class extends ke {
|
|
|
5954
5967
|
super(), this.orientation = "horizontal", this.percentage = 50, this.invisible = !1, this.min = 10, this.max = 90, this.useSavedState = !0, this.isDragging = !1, this._error = !1, this._emitChange = () => {
|
|
5955
5968
|
let { percentage: t, orientation: s, invisible: i, min: r, max: a, useSavedState: n } = this, h = this.getAttribute("id");
|
|
5956
5969
|
h && this.useSavedState && localStorage.setItem(`splitview-${h}`, String(t)), this.dispatchEvent(new CustomEvent("change", { detail: { orientation: s, percentage: t, invisible: i, min: r, max: a, useSavedState: n } }));
|
|
5957
|
-
}, this._onMouseMove =
|
|
5970
|
+
}, this._onMouseMove = wr((t) => {
|
|
5958
5971
|
if (this.isDragging) {
|
|
5959
5972
|
const s = this.getBoundingClientRect();
|
|
5960
5973
|
let i, r;
|
|
@@ -6036,7 +6049,7 @@ ne([
|
|
|
6036
6049
|
Y()
|
|
6037
6050
|
], q.prototype, "_error", 2);
|
|
6038
6051
|
ne([
|
|
6039
|
-
|
|
6052
|
+
Xt(".splitter")
|
|
6040
6053
|
], q.prototype, "_splitter", 2);
|
|
6041
6054
|
ne([
|
|
6042
6055
|
Se("slot[name='panel1']")
|
|
@@ -6045,7 +6058,7 @@ ne([
|
|
|
6045
6058
|
Se("slot[name='panel2']")
|
|
6046
6059
|
], q.prototype, "_panel2", 2);
|
|
6047
6060
|
q = ne([
|
|
6048
|
-
|
|
6061
|
+
I(Bi)
|
|
6049
6062
|
], q);
|
|
6050
6063
|
var yc = Object.defineProperty, mc = Object.getOwnPropertyDescriptor, Xe = (e, t, s, i) => {
|
|
6051
6064
|
for (var r = i > 1 ? void 0 : i ? mc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
@@ -6156,7 +6169,7 @@ Xe([
|
|
|
6156
6169
|
f({ type: String, reflect: !0 })
|
|
6157
6170
|
], xe.prototype, "size", 2);
|
|
6158
6171
|
xe = Xe([
|
|
6159
|
-
|
|
6172
|
+
I(Ui)
|
|
6160
6173
|
], xe);
|
|
6161
6174
|
const $c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6162
6175
|
__proto__: null,
|
|
@@ -6164,13 +6177,13 @@ const $c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6164
6177
|
DisposableElement: ke,
|
|
6165
6178
|
getListeners: Qn
|
|
6166
6179
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6167
|
-
var _c = Object.defineProperty, wc = Object.getOwnPropertyDescriptor,
|
|
6180
|
+
var _c = Object.defineProperty, wc = Object.getOwnPropertyDescriptor, Ar = (e, t, s, i) => {
|
|
6168
6181
|
for (var r = i > 1 ? void 0 : i ? wc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
6169
6182
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
6170
6183
|
return i && r && _c(t, s, r), r;
|
|
6171
6184
|
};
|
|
6172
6185
|
const xc = "spectric-table-header";
|
|
6173
|
-
let
|
|
6186
|
+
let Zt = class extends ke {
|
|
6174
6187
|
constructor() {
|
|
6175
6188
|
super(), this.columns = [], this._handleSortChange = (e) => {
|
|
6176
6189
|
this._resizeStart || (e = JSON.parse(JSON.stringify(e)), e.sortable && (e.sortDirection === Z.none || e.sortDirection === void 0 ? e.sortDirection = Z.ascending : e.sortDirection === Z.ascending ? e.sortDirection = Z.descending : e.sortDirection === Z.descending && (e.sortDirection = Z.none), this.dispatchEvent(
|
|
@@ -6241,24 +6254,24 @@ let Gt = class extends ke {
|
|
|
6241
6254
|
</td>`;
|
|
6242
6255
|
}
|
|
6243
6256
|
};
|
|
6244
|
-
|
|
6257
|
+
Ar([
|
|
6245
6258
|
f({ type: Array, attribute: !1 })
|
|
6246
|
-
],
|
|
6247
|
-
|
|
6259
|
+
], Zt.prototype, "columns", 2);
|
|
6260
|
+
Ar([
|
|
6248
6261
|
Y()
|
|
6249
|
-
],
|
|
6250
|
-
|
|
6262
|
+
], Zt.prototype, "_resizeStart", 2);
|
|
6263
|
+
Ar([
|
|
6251
6264
|
f({ type: Object, attribute: !1 })
|
|
6252
|
-
],
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
],
|
|
6265
|
+
], Zt.prototype, "table", 2);
|
|
6266
|
+
Zt = Ar([
|
|
6267
|
+
I(xc)
|
|
6268
|
+
], Zt);
|
|
6256
6269
|
/**
|
|
6257
6270
|
* @license
|
|
6258
6271
|
* Copyright 2017 Google LLC
|
|
6259
6272
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6260
6273
|
*/
|
|
6261
|
-
const ii = (e) => Zn(e) ? e._$litType$.h : e.strings, Sc =
|
|
6274
|
+
const ii = (e) => Zn(e) ? e._$litType$.h : e.strings, Sc = At(class extends Kt {
|
|
6262
6275
|
constructor(e) {
|
|
6263
6276
|
super(e), this.et = /* @__PURE__ */ new WeakMap();
|
|
6264
6277
|
}
|
|
@@ -6268,20 +6281,20 @@ const ii = (e) => Zn(e) ? e._$litType$.h : e.strings, Sc = kt(class extends Jt {
|
|
|
6268
6281
|
update(e, [t]) {
|
|
6269
6282
|
const s = Js(this.it) ? ii(this.it) : null, i = Js(t) ? ii(t) : null;
|
|
6270
6283
|
if (s !== null && (i === null || s !== i)) {
|
|
6271
|
-
const r =
|
|
6284
|
+
const r = Yr(e).pop();
|
|
6272
6285
|
let a = this.et.get(s);
|
|
6273
6286
|
if (a === void 0) {
|
|
6274
6287
|
const n = document.createDocumentFragment();
|
|
6275
|
-
a =
|
|
6288
|
+
a = $r(L, n), a.setConnected(!1), this.et.set(s, a);
|
|
6276
6289
|
}
|
|
6277
|
-
|
|
6290
|
+
Vr(a, [r]), Fe(a, void 0, r);
|
|
6278
6291
|
}
|
|
6279
6292
|
if (i !== null) {
|
|
6280
6293
|
if (s === null || s !== i) {
|
|
6281
6294
|
const r = this.et.get(i);
|
|
6282
6295
|
if (r !== void 0) {
|
|
6283
|
-
const a =
|
|
6284
|
-
Xn(e),
|
|
6296
|
+
const a = Yr(r).pop();
|
|
6297
|
+
Xn(e), Fe(e, void 0, a), Vr(e, [a]);
|
|
6285
6298
|
}
|
|
6286
6299
|
}
|
|
6287
6300
|
this.it = t;
|
|
@@ -6294,7 +6307,7 @@ var kc = Object.defineProperty, Ac = Object.getOwnPropertyDescriptor, et = (e, t
|
|
|
6294
6307
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
6295
6308
|
return i && r && kc(t, s, r), r;
|
|
6296
6309
|
};
|
|
6297
|
-
const
|
|
6310
|
+
const Cc = "spectric-table-cell";
|
|
6298
6311
|
let Te = class extends B {
|
|
6299
6312
|
constructor() {
|
|
6300
6313
|
super(...arguments), this.overflow = "", this.styleRules = { whiteSpace: "", width: "" }, this._handleFilterOut = () => {
|
|
@@ -6417,7 +6430,7 @@ et([
|
|
|
6417
6430
|
Se("td")
|
|
6418
6431
|
], Te.prototype, "td", 2);
|
|
6419
6432
|
Te = et([
|
|
6420
|
-
|
|
6433
|
+
I(Cc)
|
|
6421
6434
|
], Te);
|
|
6422
6435
|
const _t = (e, t) => {
|
|
6423
6436
|
let s = t.split("."), i = e[s[0]];
|
|
@@ -6432,9 +6445,9 @@ const oi = (e, t, s) => {
|
|
|
6432
6445
|
const i = /* @__PURE__ */ new Map();
|
|
6433
6446
|
for (let r = t; r <= s; r++) i.set(e[r], r);
|
|
6434
6447
|
return i;
|
|
6435
|
-
},
|
|
6448
|
+
}, yr = At(class extends Kt {
|
|
6436
6449
|
constructor(e) {
|
|
6437
|
-
if (super(e), e.type !==
|
|
6450
|
+
if (super(e), e.type !== _r.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
6438
6451
|
}
|
|
6439
6452
|
dt(e, t, s) {
|
|
6440
6453
|
let i;
|
|
@@ -6448,43 +6461,43 @@ const oi = (e, t, s) => {
|
|
|
6448
6461
|
return this.dt(e, t, s).values;
|
|
6449
6462
|
}
|
|
6450
6463
|
update(e, [t, s, i]) {
|
|
6451
|
-
const r =
|
|
6464
|
+
const r = Yr(e), { values: a, keys: n } = this.dt(t, s, i);
|
|
6452
6465
|
if (!Array.isArray(r)) return this.ut = n, a;
|
|
6453
6466
|
const h = this.ut ?? (this.ut = []), u = [];
|
|
6454
|
-
let g,
|
|
6455
|
-
for (; v <=
|
|
6456
|
-
else if (r[
|
|
6457
|
-
else if (h[v] === n[
|
|
6458
|
-
else if (h[
|
|
6459
|
-
else if (h[v] === n[_]) u[_] = Ue(r[v], a[_]),
|
|
6460
|
-
else if (h[
|
|
6461
|
-
else if (g === void 0 && (g = oi(n,
|
|
6462
|
-
const A =
|
|
6467
|
+
let g, $, v = 0, C = r.length - 1, w = 0, _ = a.length - 1;
|
|
6468
|
+
for (; v <= C && w <= _; ) if (r[v] === null) v++;
|
|
6469
|
+
else if (r[C] === null) C--;
|
|
6470
|
+
else if (h[v] === n[w]) u[w] = Ue(r[v], a[w]), v++, w++;
|
|
6471
|
+
else if (h[C] === n[_]) u[_] = Ue(r[C], a[_]), C--, _--;
|
|
6472
|
+
else if (h[v] === n[_]) u[_] = Ue(r[v], a[_]), Fe(e, u[_ + 1], r[v]), v++, _--;
|
|
6473
|
+
else if (h[C] === n[w]) u[w] = Ue(r[C], a[w]), Fe(e, r[v], r[C]), C--, w++;
|
|
6474
|
+
else if (g === void 0 && (g = oi(n, w, _), $ = oi(h, v, C)), g.has(h[v])) if (g.has(h[C])) {
|
|
6475
|
+
const A = $.get(n[w]), T = A !== void 0 ? r[A] : null;
|
|
6463
6476
|
if (T === null) {
|
|
6464
|
-
const N =
|
|
6465
|
-
Ue(N, a[
|
|
6466
|
-
} else u[
|
|
6467
|
-
|
|
6468
|
-
} else
|
|
6469
|
-
else
|
|
6470
|
-
for (;
|
|
6471
|
-
const A =
|
|
6472
|
-
Ue(A, a[
|
|
6477
|
+
const N = Fe(e, r[v]);
|
|
6478
|
+
Ue(N, a[w]), u[w] = N;
|
|
6479
|
+
} else u[w] = Ue(T, a[w]), Fe(e, r[v], T), r[A] = null;
|
|
6480
|
+
w++;
|
|
6481
|
+
} else qr(r[C]), C--;
|
|
6482
|
+
else qr(r[v]), v++;
|
|
6483
|
+
for (; w <= _; ) {
|
|
6484
|
+
const A = Fe(e, u[_ + 1]);
|
|
6485
|
+
Ue(A, a[w]), u[w++] = A;
|
|
6473
6486
|
}
|
|
6474
|
-
for (; v <=
|
|
6487
|
+
for (; v <= C; ) {
|
|
6475
6488
|
const A = r[v++];
|
|
6476
|
-
A !== null &&
|
|
6489
|
+
A !== null && qr(A);
|
|
6477
6490
|
}
|
|
6478
|
-
return this.ut = n,
|
|
6491
|
+
return this.ut = n, Vr(e, u), we;
|
|
6479
6492
|
}
|
|
6480
6493
|
});
|
|
6481
|
-
var
|
|
6494
|
+
var Oc = Object.defineProperty, Ec = Object.getOwnPropertyDescriptor, ys = (e, t, s, i) => {
|
|
6482
6495
|
for (var r = i > 1 ? void 0 : i ? Ec(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
6483
6496
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
6484
|
-
return i && r &&
|
|
6497
|
+
return i && r && Oc(t, s, r), r;
|
|
6485
6498
|
};
|
|
6486
6499
|
const Pc = "spectric-table-body";
|
|
6487
|
-
let
|
|
6500
|
+
let mr = class extends B {
|
|
6488
6501
|
constructor() {
|
|
6489
6502
|
super(...arguments), this.data = [], this.columns = [];
|
|
6490
6503
|
}
|
|
@@ -6497,9 +6510,9 @@ let yr = class extends B {
|
|
|
6497
6510
|
render() {
|
|
6498
6511
|
return m`
|
|
6499
6512
|
<body>
|
|
6500
|
-
${
|
|
6513
|
+
${yr(this.data, (e, t) => m`
|
|
6501
6514
|
<tr class="${t % 2 === 0 ? "odd" : ""}">
|
|
6502
|
-
${
|
|
6515
|
+
${yr(this.columns, (s) => m`<spectric-table-cell .column=${s} .index=${t} .row=${e} .columns=${this.columns}></spectric-table-cell>`)}
|
|
6503
6516
|
</tr>`)}
|
|
6504
6517
|
|
|
6505
6518
|
</body>
|
|
@@ -6508,13 +6521,13 @@ let yr = class extends B {
|
|
|
6508
6521
|
};
|
|
6509
6522
|
ys([
|
|
6510
6523
|
f({ type: Array, attribute: !1 })
|
|
6511
|
-
],
|
|
6524
|
+
], mr.prototype, "data", 2);
|
|
6512
6525
|
ys([
|
|
6513
6526
|
f({ type: Array, attribute: !1 })
|
|
6514
|
-
],
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
],
|
|
6527
|
+
], mr.prototype, "columns", 2);
|
|
6528
|
+
mr = ys([
|
|
6529
|
+
I(Pc)
|
|
6530
|
+
], mr);
|
|
6518
6531
|
var Tc = Object.defineProperty, Lc = Object.getOwnPropertyDescriptor, Ot = (e, t, s, i) => {
|
|
6519
6532
|
for (var r = i > 1 ? void 0 : i ? Lc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
6520
6533
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
@@ -6534,16 +6547,17 @@ let Ze = class extends ke {
|
|
|
6534
6547
|
}
|
|
6535
6548
|
);
|
|
6536
6549
|
}
|
|
6537
|
-
|
|
6550
|
+
update(e) {
|
|
6538
6551
|
if (this.columnsMeasured === !1) {
|
|
6539
|
-
let
|
|
6540
|
-
|
|
6541
|
-
if (!
|
|
6542
|
-
let
|
|
6543
|
-
|
|
6552
|
+
let t = this.querySelector("tr"), s = t == null ? void 0 : t.querySelectorAll("spectric-table-cell td");
|
|
6553
|
+
t && s && s.length && (this.columns.forEach((i, r) => {
|
|
6554
|
+
if (!i.width || i.width === 0) {
|
|
6555
|
+
let a = s[r].getBoundingClientRect();
|
|
6556
|
+
a.width > 0 && (this.columnsMeasured = !0, i.width = a.width - Qt);
|
|
6544
6557
|
}
|
|
6545
6558
|
}), this.columnsMeasured && (this.columns = [...this.columns]));
|
|
6546
6559
|
}
|
|
6560
|
+
super.update(e);
|
|
6547
6561
|
}
|
|
6548
6562
|
createRenderRoot() {
|
|
6549
6563
|
return this;
|
|
@@ -6557,12 +6571,12 @@ let Ze = class extends ke {
|
|
|
6557
6571
|
), n = Math.min(r + a + t, e), h = n - r;
|
|
6558
6572
|
let u = e * this.rowHeight, g = r * this.rowHeight + (i.scrollTop - r * this.rowHeight);
|
|
6559
6573
|
n === e && (g = r * this.rowHeight);
|
|
6560
|
-
let
|
|
6574
|
+
let $ = h * this.rowHeight, v = u - g - $, C = r != 0 ? m` <tr
|
|
6561
6575
|
style="height:${g}px"
|
|
6562
6576
|
class="virtual-scroll-spacer"
|
|
6563
6577
|
>
|
|
6564
6578
|
<td colspan="${this.columns.length}"></td>
|
|
6565
|
-
</tr>` : null,
|
|
6579
|
+
</tr>` : null, w = m` <tr
|
|
6566
6580
|
style="height:${v}px"
|
|
6567
6581
|
class="virtual-scroll-spacer"
|
|
6568
6582
|
>
|
|
@@ -6573,28 +6587,28 @@ let Ze = class extends ke {
|
|
|
6573
6587
|
style="height:${u}px;position: absolute;overflow-x: hidden;overflow-y: hidden;z-index:-1;width:1px;"
|
|
6574
6588
|
></div>
|
|
6575
6589
|
<tbody>
|
|
6576
|
-
${
|
|
6590
|
+
${C}
|
|
6577
6591
|
</tbody>
|
|
6578
6592
|
<div
|
|
6579
|
-
style="display:table-row-group;max-height:${
|
|
6593
|
+
style="display:table-row-group;max-height:${$}px; overflow:hidden;"
|
|
6580
6594
|
>
|
|
6581
|
-
${
|
|
6595
|
+
${yr(
|
|
6582
6596
|
this.data.slice(Math.max(r, 0), n),
|
|
6583
6597
|
(_, A) => m` <tr
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6598
|
+
class="${this.table.getRowClass(_, A + r)}"
|
|
6599
|
+
>
|
|
6600
|
+
${yr(this.columns, (T) => m`<spectric-table-cell
|
|
6601
|
+
.column=${T}
|
|
6602
|
+
.row=${_}
|
|
6603
|
+
.index=${A + r}
|
|
6604
|
+
.columns=${this.columns}
|
|
6605
|
+
.table=${this.table}
|
|
6606
|
+
></spectric-table-cell>`)}
|
|
6607
|
+
</tr>`
|
|
6594
6608
|
)}
|
|
6595
6609
|
</div>
|
|
6596
6610
|
<tbody>
|
|
6597
|
-
${v > 0 ?
|
|
6611
|
+
${v > 0 ? w : null}
|
|
6598
6612
|
</tbody>
|
|
6599
6613
|
`;
|
|
6600
6614
|
}
|
|
@@ -6615,7 +6629,7 @@ Ot([
|
|
|
6615
6629
|
f({ type: Object, attribute: !1 })
|
|
6616
6630
|
], Ze.prototype, "table", 2);
|
|
6617
6631
|
Ze = Ot([
|
|
6618
|
-
|
|
6632
|
+
I(Nc)
|
|
6619
6633
|
], Ze);
|
|
6620
6634
|
function Dc(e) {
|
|
6621
6635
|
let t = !1, s;
|
|
@@ -6635,19 +6649,19 @@ const Mc = (e) => e.map(({ key: t, sortDirection: s, compareFn: i }) => (r, a) =
|
|
|
6635
6649
|
} else if (typeof n == "string")
|
|
6636
6650
|
return n.localeCompare(h) * (s === Z.descending ? -1 : 1);
|
|
6637
6651
|
});
|
|
6638
|
-
var zc = Object.defineProperty, Rc = Object.getOwnPropertyDescriptor,
|
|
6652
|
+
var zc = Object.defineProperty, Rc = Object.getOwnPropertyDescriptor, ce = (e, t, s, i) => {
|
|
6639
6653
|
for (var r = i > 1 ? void 0 : i ? Rc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
6640
6654
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
6641
6655
|
return i && r && zc(t, s, r), r;
|
|
6642
6656
|
};
|
|
6643
|
-
const
|
|
6644
|
-
var
|
|
6645
|
-
const
|
|
6657
|
+
const Fi = "spectric-table";
|
|
6658
|
+
var Hi = /* @__PURE__ */ ((e) => (e.multi = "multi", e.single = "single", e.none = "none", e))(Hi || {}), qi = /* @__PURE__ */ ((e) => (e.multi = "multi", e.single = "single", e))(qi || {}), Z = /* @__PURE__ */ ((e) => (e.ascending = "ascending", e.descending = "descending", e.none = "none", e))(Z || {});
|
|
6659
|
+
const Qt = 4, Bt = Symbol(
|
|
6646
6660
|
"spectric-table-selection-column"
|
|
6647
6661
|
);
|
|
6648
|
-
let
|
|
6662
|
+
let ee = class extends B {
|
|
6649
6663
|
constructor() {
|
|
6650
|
-
super(...arguments), this.data = [], this.columns = [], this.select = "none", this.sort = "single", this.sortOrder = [], this.rowHeight = 25, this.fontSize = 16, this.cellActionButtonSize = "xxsmall", this._handlePaginationChange = (e) => {
|
|
6664
|
+
super(...arguments), this.data = [], this.columns = [], this.select = "none", this.sort = "single", this.sortOrder = [], this.rowHeight = 25, this.fontSize = 16, this.getRowClass = (e, t) => t % 2 === 0 ? "odd" : "", this.cellActionButtonSize = "xxsmall", this._handlePaginationChange = (e) => {
|
|
6651
6665
|
if (this.pagination) {
|
|
6652
6666
|
let t = { ...this.pagination, ...e.detail }, { totalItems: s, page: i, pageSize: r } = t;
|
|
6653
6667
|
s && i && r && (i - 1) * r > s && (t.page = 1), this.pagination = t;
|
|
@@ -6684,12 +6698,12 @@ let ie = class extends B {
|
|
|
6684
6698
|
}, this.__DO_NOT_USE_filter = () => {
|
|
6685
6699
|
this.dispatchEvent(new CustomEvent("filter")), this.dispatchEvent(new CustomEvent("sortChange"));
|
|
6686
6700
|
}, this.selected = [], this._getRowHeight = () => {
|
|
6687
|
-
let e = this.rowHeight -
|
|
6688
|
-
return e < this.fontSize +
|
|
6701
|
+
let e = this.rowHeight - Qt;
|
|
6702
|
+
return e < this.fontSize + Qt && (e = this.fontSize + Qt), e;
|
|
6689
6703
|
}, this._handleSelectAllChange = (e) => {
|
|
6690
6704
|
e.stopPropagation(), e.target.checked ? this.selectAll() : this.deselectAll();
|
|
6691
6705
|
}, this.selectColumnConfig = {
|
|
6692
|
-
[
|
|
6706
|
+
[Bt]: !0,
|
|
6693
6707
|
allowResize: !1,
|
|
6694
6708
|
filterable: !1,
|
|
6695
6709
|
width: 39,
|
|
@@ -6738,9 +6752,9 @@ let ie = class extends B {
|
|
|
6738
6752
|
let n = Mc(s);
|
|
6739
6753
|
i.sort((h, u) => {
|
|
6740
6754
|
for (let g of n) {
|
|
6741
|
-
let
|
|
6742
|
-
if (
|
|
6743
|
-
return
|
|
6755
|
+
let $ = g(h, u);
|
|
6756
|
+
if ($)
|
|
6757
|
+
return $;
|
|
6744
6758
|
}
|
|
6745
6759
|
return 0;
|
|
6746
6760
|
});
|
|
@@ -6756,7 +6770,7 @@ let ie = class extends B {
|
|
|
6756
6770
|
}
|
|
6757
6771
|
forceRefreshofSelectionColumn() {
|
|
6758
6772
|
let e = this.columns.findIndex(
|
|
6759
|
-
(t) => t[
|
|
6773
|
+
(t) => t[Bt]
|
|
6760
6774
|
);
|
|
6761
6775
|
e !== -1 && (this.columns[e] = { ...this.selectColumnConfig }, this.columns = [...this.columns]);
|
|
6762
6776
|
}
|
|
@@ -6781,7 +6795,7 @@ let ie = class extends B {
|
|
|
6781
6795
|
behavior: "smooth"
|
|
6782
6796
|
});
|
|
6783
6797
|
for (let a = 0; a < 100; a++)
|
|
6784
|
-
if (await new Promise((n) =>
|
|
6798
|
+
if (await new Promise((n) => requestAnimationFrame(n)), i.scrollTop == r) {
|
|
6785
6799
|
console.log("Scroll complete");
|
|
6786
6800
|
break;
|
|
6787
6801
|
}
|
|
@@ -6800,11 +6814,11 @@ let ie = class extends B {
|
|
|
6800
6814
|
}
|
|
6801
6815
|
}
|
|
6802
6816
|
update(e) {
|
|
6803
|
-
if (e.has("data") && (this.selected = this.data.reduce((t, s) => (this.selected.includes(s) && t.push(s), t), [])), e.has("columns") && this.select !== "none" && (this.columns.find((t) => t[
|
|
6817
|
+
if (e.has("data") && (this.selected = this.data.reduce((t, s) => (this.selected.includes(s) && t.push(s), t), [])), e.has("columns") && this.select !== "none" && (this.columns.find((t) => t[Bt]) || this.columns.unshift(this.selectColumnConfig)), e.has("select")) {
|
|
6804
6818
|
let t = this.columns.findIndex(
|
|
6805
|
-
(s) => s[
|
|
6819
|
+
(s) => s[Bt]
|
|
6806
6820
|
);
|
|
6807
|
-
this.select !== "none" ? (this.forceRefreshofSelectionColumn(), this.columns.find((s) => s[
|
|
6821
|
+
this.select !== "none" ? (this.forceRefreshofSelectionColumn(), this.columns.find((s) => s[Bt]) || (this.columns.unshift(this.selectColumnConfig), this.columns = [...this.columns])) : t !== -1 && (this.columns.splice(t, 1), this.columns = [...this.columns], this.setSelected([])), this.select === "single" && this.selected.length > 1 && (this.setSelected([this.selected[0]]), this.dispatchEvent(
|
|
6808
6822
|
new CustomEvent("selected", { detail: [this.selected[0]] })
|
|
6809
6823
|
));
|
|
6810
6824
|
}
|
|
@@ -6839,37 +6853,40 @@ let ie = class extends B {
|
|
|
6839
6853
|
`;
|
|
6840
6854
|
}
|
|
6841
6855
|
};
|
|
6842
|
-
|
|
6856
|
+
ce([
|
|
6843
6857
|
f({ type: Array, attribute: !1 })
|
|
6844
|
-
],
|
|
6845
|
-
|
|
6858
|
+
], ee.prototype, "data", 2);
|
|
6859
|
+
ce([
|
|
6846
6860
|
f({ type: Object, attribute: !1 })
|
|
6847
|
-
],
|
|
6848
|
-
|
|
6861
|
+
], ee.prototype, "pagination", 2);
|
|
6862
|
+
ce([
|
|
6849
6863
|
f({ attribute: !1 })
|
|
6850
|
-
],
|
|
6851
|
-
|
|
6864
|
+
], ee.prototype, "columns", 2);
|
|
6865
|
+
ce([
|
|
6852
6866
|
f({ type: String, reflect: !0 })
|
|
6853
|
-
],
|
|
6854
|
-
|
|
6867
|
+
], ee.prototype, "select", 2);
|
|
6868
|
+
ce([
|
|
6855
6869
|
f({ type: String, reflect: !0 })
|
|
6856
|
-
],
|
|
6857
|
-
|
|
6870
|
+
], ee.prototype, "sort", 2);
|
|
6871
|
+
ce([
|
|
6858
6872
|
f({ type: Array, reflect: !1 })
|
|
6859
|
-
],
|
|
6860
|
-
|
|
6873
|
+
], ee.prototype, "sortOrder", 2);
|
|
6874
|
+
ce([
|
|
6861
6875
|
f({ type: Number, reflect: !0 })
|
|
6862
|
-
],
|
|
6863
|
-
|
|
6876
|
+
], ee.prototype, "rowHeight", 2);
|
|
6877
|
+
ce([
|
|
6864
6878
|
f({ type: Number, reflect: !0 })
|
|
6865
|
-
],
|
|
6866
|
-
|
|
6879
|
+
], ee.prototype, "fontSize", 2);
|
|
6880
|
+
ce([
|
|
6881
|
+
f({ type: Object, attribute: !1 })
|
|
6882
|
+
], ee.prototype, "getRowClass", 2);
|
|
6883
|
+
ce([
|
|
6867
6884
|
Y()
|
|
6868
|
-
],
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
],
|
|
6872
|
-
var jc = Object.defineProperty, Ic = Object.getOwnPropertyDescriptor,
|
|
6885
|
+
], ee.prototype, "selected", 2);
|
|
6886
|
+
ee = ce([
|
|
6887
|
+
I(Fi)
|
|
6888
|
+
], ee);
|
|
6889
|
+
var jc = Object.defineProperty, Ic = Object.getOwnPropertyDescriptor, pe = (e, t, s, i) => {
|
|
6873
6890
|
for (var r = i > 1 ? void 0 : i ? Ic(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
6874
6891
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
6875
6892
|
return i && r && jc(t, s, r), r;
|
|
@@ -6971,41 +6988,41 @@ W.styles = oe`
|
|
|
6971
6988
|
pointer-events: none;
|
|
6972
6989
|
}
|
|
6973
6990
|
`;
|
|
6974
|
-
|
|
6991
|
+
pe([
|
|
6975
6992
|
f({ type: Number, reflect: !0 })
|
|
6976
6993
|
], W.prototype, "delay", 2);
|
|
6977
|
-
|
|
6994
|
+
pe([
|
|
6978
6995
|
f({ type: Number, reflect: !0 })
|
|
6979
6996
|
], W.prototype, "animationDuration", 2);
|
|
6980
|
-
|
|
6997
|
+
pe([
|
|
6981
6998
|
f({ type: String, reflect: !1 })
|
|
6982
6999
|
], W.prototype, "text", 2);
|
|
6983
|
-
|
|
7000
|
+
pe([
|
|
6984
7001
|
f({ type: String, reflect: !0 })
|
|
6985
7002
|
], W.prototype, "position", 2);
|
|
6986
|
-
|
|
7003
|
+
pe([
|
|
6987
7004
|
f({ type: Number, reflect: !0 })
|
|
6988
7005
|
], W.prototype, "maxWidth", 2);
|
|
6989
|
-
|
|
7006
|
+
pe([
|
|
6990
7007
|
f({ type: Number, reflect: !1 })
|
|
6991
7008
|
], W.prototype, "mouseOffsetX", 2);
|
|
6992
|
-
|
|
7009
|
+
pe([
|
|
6993
7010
|
f({ type: Number, reflect: !1 })
|
|
6994
7011
|
], W.prototype, "mouseOffsetY", 2);
|
|
6995
|
-
|
|
7012
|
+
pe([
|
|
6996
7013
|
Se(".spectric-popover-portal")
|
|
6997
7014
|
], W.prototype, "portalElement", 2);
|
|
6998
|
-
|
|
7015
|
+
pe([
|
|
6999
7016
|
f({ attribute: !1 })
|
|
7000
7017
|
], W.prototype, "portalTarget", 2);
|
|
7001
|
-
|
|
7018
|
+
pe([
|
|
7002
7019
|
f({ attribute: !1 })
|
|
7003
7020
|
], W.prototype, "triggerTarget", 2);
|
|
7004
|
-
W =
|
|
7005
|
-
|
|
7021
|
+
W = pe([
|
|
7022
|
+
I(Bc)
|
|
7006
7023
|
], W);
|
|
7007
|
-
var Uc = Object.defineProperty,
|
|
7008
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
7024
|
+
var Uc = Object.defineProperty, Fc = Object.getOwnPropertyDescriptor, Me = (e, t, s, i) => {
|
|
7025
|
+
for (var r = i > 1 ? void 0 : i ? Fc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
7009
7026
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
7010
7027
|
return i && r && Uc(t, s, r), r;
|
|
7011
7028
|
};
|
|
@@ -7048,12 +7065,12 @@ Me([
|
|
|
7048
7065
|
f({ attribute: !1 })
|
|
7049
7066
|
], le.prototype, "triggerTarget", 2);
|
|
7050
7067
|
le = Me([
|
|
7051
|
-
|
|
7068
|
+
I(Qi)
|
|
7052
7069
|
], le);
|
|
7053
|
-
var
|
|
7070
|
+
var Hc = Object.defineProperty, qc = Object.getOwnPropertyDescriptor, re = (e, t, s, i) => {
|
|
7054
7071
|
for (var r = i > 1 ? void 0 : i ? qc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
7055
7072
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
7056
|
-
return i && r &&
|
|
7073
|
+
return i && r && Hc(t, s, r), r;
|
|
7057
7074
|
};
|
|
7058
7075
|
let vt;
|
|
7059
7076
|
window.hasOwnProperty("EyeDropper") && (vt = new EyeDropper());
|
|
@@ -7150,44 +7167,44 @@ let V = class extends B {
|
|
|
7150
7167
|
`;
|
|
7151
7168
|
}
|
|
7152
7169
|
};
|
|
7153
|
-
|
|
7170
|
+
re([
|
|
7154
7171
|
f({ type: String, reflect: !0 })
|
|
7155
7172
|
], V.prototype, "value", 2);
|
|
7156
|
-
|
|
7173
|
+
re([
|
|
7157
7174
|
f({ type: Boolean, reflect: !0 })
|
|
7158
7175
|
], V.prototype, "showAlpha", 2);
|
|
7159
|
-
|
|
7176
|
+
re([
|
|
7160
7177
|
Y()
|
|
7161
7178
|
], V.prototype, "hue", 2);
|
|
7162
|
-
|
|
7179
|
+
re([
|
|
7163
7180
|
Y()
|
|
7164
7181
|
], V.prototype, "alpha", 2);
|
|
7165
|
-
|
|
7182
|
+
re([
|
|
7166
7183
|
Y()
|
|
7167
7184
|
], V.prototype, "saturation", 2);
|
|
7168
|
-
|
|
7185
|
+
re([
|
|
7169
7186
|
Y()
|
|
7170
7187
|
], V.prototype, "lightness", 2);
|
|
7171
|
-
|
|
7188
|
+
re([
|
|
7172
7189
|
Je({ capture: !0 })
|
|
7173
7190
|
], V.prototype, "_handleSaturationLightnessClick", 1);
|
|
7174
|
-
|
|
7191
|
+
re([
|
|
7175
7192
|
Je({ capture: !0 })
|
|
7176
7193
|
], V.prototype, "_handleHueChange", 1);
|
|
7177
|
-
|
|
7194
|
+
re([
|
|
7178
7195
|
Je({ capture: !0 })
|
|
7179
7196
|
], V.prototype, "_handleAlphaChange", 1);
|
|
7180
|
-
|
|
7197
|
+
re([
|
|
7181
7198
|
Je({ capture: !0 })
|
|
7182
7199
|
], V.prototype, "_handleApply", 1);
|
|
7183
|
-
|
|
7200
|
+
re([
|
|
7184
7201
|
Je({ capture: !0 })
|
|
7185
7202
|
], V.prototype, "_cancel", 1);
|
|
7186
|
-
|
|
7203
|
+
re([
|
|
7187
7204
|
Je({ capture: !0 })
|
|
7188
7205
|
], V.prototype, "_openPopover", 1);
|
|
7189
|
-
V =
|
|
7190
|
-
|
|
7206
|
+
V = re([
|
|
7207
|
+
I("spectric-colorpicker")
|
|
7191
7208
|
], V);
|
|
7192
7209
|
const Qc = m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" height="15" width="15" fill="currentColor"><path d="M222,67.34a33.81,33.81,0,0,0-10.64-24.25C198.12,30.56,176.68,31,163.54,44.18L142.82,65l-.63-.63a22,22,0,0,0-31.11,0l-9,9a14,14,0,0,0,0,19.81l3.47,3.47L53.14,149.1a37.79,37.79,0,0,0-9.84,36.73l-8.31,19a11.68,11.68,0,0,0,2.46,13A13.91,13.91,0,0,0,47.32,222,14.15,14.15,0,0,0,53,220.82L71,212.92a37.92,37.92,0,0,0,35.84-10.07l52.44-52.46,3.47,3.48a14,14,0,0,0,19.8,0l9-9a22,22,0,0,0,0-31.12l-.66-.66L212,91.85A33.76,33.76,0,0,0,222,67.34Zm-123.61,127a26,26,0,0,1-26,6.47,6,6,0,0,0-4.16.24l-20,8.75a2,2,0,0,1-2.09-.31l9.12-20.9a5.94,5.94,0,0,0,.19-4.31,25.88,25.88,0,0,1,6.26-26.72l52.44-52.45,36.76,36.78Zm105.16-111L178.17,108.9a6,6,0,0,0,0,8.47l4.88,4.89a10,10,0,0,1,0,14.15l-9,9a2,2,0,0,1-2.82,0l-60.69-60.7a2,2,0,0,1,0-2.83l9-9a10,10,0,0,1,14.14,0l4.89,4.89a6,6,0,0,0,4.24,1.75h0a6,6,0,0,0,4.25-1.77L172,52.66c8.58-8.58,22.52-9,31.08-.85a22,22,0,0,1,.44,31.57Z"/></svg>`;
|
|
7193
7210
|
function* Wc(e) {
|
|
@@ -7211,16 +7228,16 @@ function ni(e) {
|
|
|
7211
7228
|
if (a === n)
|
|
7212
7229
|
h = 0, u = 0;
|
|
7213
7230
|
else {
|
|
7214
|
-
const
|
|
7215
|
-
switch (u = g > 0.5 ?
|
|
7231
|
+
const $ = a - n;
|
|
7232
|
+
switch (u = g > 0.5 ? $ / (2 - a - n) : $ / (a + n), a) {
|
|
7216
7233
|
case t:
|
|
7217
|
-
h = (s - i) /
|
|
7234
|
+
h = (s - i) / $ + (s < i ? 6 : 0);
|
|
7218
7235
|
break;
|
|
7219
7236
|
case s:
|
|
7220
|
-
h = (i - t) /
|
|
7237
|
+
h = (i - t) / $ + 2;
|
|
7221
7238
|
break;
|
|
7222
7239
|
case i:
|
|
7223
|
-
h = (t - s) /
|
|
7240
|
+
h = (t - s) / $ + 4;
|
|
7224
7241
|
break;
|
|
7225
7242
|
}
|
|
7226
7243
|
h /= 6;
|
|
@@ -7231,18 +7248,18 @@ const Yc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7231
7248
|
__proto__: null,
|
|
7232
7249
|
SpreadPropsDirective: ki,
|
|
7233
7250
|
debounce: ia,
|
|
7234
|
-
debounceAnimation:
|
|
7251
|
+
debounceAnimation: wr,
|
|
7235
7252
|
once: Dc,
|
|
7236
7253
|
spreadProps: qe
|
|
7237
7254
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7238
|
-
var Gc = Object.defineProperty, Zc = Object.getOwnPropertyDescriptor,
|
|
7255
|
+
var Gc = Object.defineProperty, Zc = Object.getOwnPropertyDescriptor, Et = (e, t, s, i) => {
|
|
7239
7256
|
for (var r = i > 1 ? void 0 : i ? Zc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
|
|
7240
7257
|
(n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
|
|
7241
7258
|
return i && r && Gc(t, s, r), r;
|
|
7242
7259
|
};
|
|
7243
7260
|
let Le = class extends ke {
|
|
7244
7261
|
constructor() {
|
|
7245
|
-
super(), this.currentDate = /* @__PURE__ */ new Date(), this.date = /* @__PURE__ */ new Date(), this.popup = !1, this.disabled = !1, this.handleMouseMove =
|
|
7262
|
+
super(), this.currentDate = /* @__PURE__ */ new Date(), this.date = /* @__PURE__ */ new Date(), this.popup = !1, this.disabled = !1, this.handleMouseMove = wr(async (e) => {
|
|
7246
7263
|
const t = await this.calendarElement, s = t.getBoundingClientRect(), i = (e.clientX - s.left) / s.width * 100, r = (e.clientY - s.top) / s.height * 100;
|
|
7247
7264
|
t.style.setProperty("--x", `${i}%`), t.style.setProperty("--y", `${r}%`);
|
|
7248
7265
|
}), this.resetMouseMove = async () => {
|
|
@@ -7389,28 +7406,28 @@ let Le = class extends ke {
|
|
|
7389
7406
|
` : n;
|
|
7390
7407
|
}
|
|
7391
7408
|
};
|
|
7392
|
-
|
|
7393
|
-
|
|
7409
|
+
Et([
|
|
7410
|
+
Xt(".days")
|
|
7394
7411
|
], Le.prototype, "calendarElement", 2);
|
|
7395
|
-
|
|
7412
|
+
Et([
|
|
7396
7413
|
f({ attribute: !1 })
|
|
7397
7414
|
], Le.prototype, "currentDate", 2);
|
|
7398
|
-
|
|
7415
|
+
Et([
|
|
7399
7416
|
Y()
|
|
7400
7417
|
], Le.prototype, "date", 2);
|
|
7401
|
-
|
|
7418
|
+
Et([
|
|
7402
7419
|
f({ type: Boolean, reflect: !0 })
|
|
7403
7420
|
], Le.prototype, "popup", 2);
|
|
7404
|
-
|
|
7421
|
+
Et([
|
|
7405
7422
|
f({ type: Boolean, reflect: !0 })
|
|
7406
7423
|
], Le.prototype, "disabled", 2);
|
|
7407
|
-
Le =
|
|
7408
|
-
|
|
7424
|
+
Le = Et([
|
|
7425
|
+
I("spectric-calendar")
|
|
7409
7426
|
], Le);
|
|
7410
7427
|
const Jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7411
7428
|
__proto__: null,
|
|
7412
7429
|
get BitDisplayCanvas() {
|
|
7413
|
-
return
|
|
7430
|
+
return de;
|
|
7414
7431
|
},
|
|
7415
7432
|
ButtonSizes: $i,
|
|
7416
7433
|
ButtonVariants: _i,
|
|
@@ -7438,30 +7455,30 @@ const Jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7438
7455
|
return Le;
|
|
7439
7456
|
},
|
|
7440
7457
|
get SpectricInput() {
|
|
7441
|
-
return
|
|
7458
|
+
return M;
|
|
7442
7459
|
},
|
|
7443
7460
|
get SpectricPage() {
|
|
7444
7461
|
return K;
|
|
7445
7462
|
},
|
|
7446
7463
|
get SpectricPanel() {
|
|
7447
|
-
return
|
|
7464
|
+
return St;
|
|
7448
7465
|
},
|
|
7449
7466
|
get SpectricQuery() {
|
|
7450
|
-
return
|
|
7467
|
+
return H;
|
|
7451
7468
|
},
|
|
7452
7469
|
get SpectricTableElement() {
|
|
7453
|
-
return
|
|
7470
|
+
return ee;
|
|
7454
7471
|
},
|
|
7455
7472
|
get SpectricThemeProvider() {
|
|
7456
|
-
return
|
|
7473
|
+
return Gt;
|
|
7457
7474
|
},
|
|
7458
7475
|
get SplitView() {
|
|
7459
7476
|
return q;
|
|
7460
7477
|
},
|
|
7461
7478
|
SupportedLanguages: Mi,
|
|
7462
|
-
TD_BorderAndPadding:
|
|
7463
|
-
TableElementTag:
|
|
7464
|
-
TableSelectOptions:
|
|
7479
|
+
TD_BorderAndPadding: Qt,
|
|
7480
|
+
TableElementTag: Fi,
|
|
7481
|
+
TableSelectOptions: Hi,
|
|
7465
7482
|
TableSortDirection: Z,
|
|
7466
7483
|
TableSortOption: qi,
|
|
7467
7484
|
ThemeSelections: hc,
|
|
@@ -7471,11 +7488,11 @@ const Jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7471
7488
|
TooltipElementTag: Qi,
|
|
7472
7489
|
TooltipPostions: Wi,
|
|
7473
7490
|
nodeTypes: _e,
|
|
7474
|
-
toLabelValue:
|
|
7491
|
+
toLabelValue: kr
|
|
7475
7492
|
}, Symbol.toStringTag, { value: "Module" })), pp = { ...$c, ...Jc, ...Yc };
|
|
7476
7493
|
export {
|
|
7477
7494
|
Si as BitArray,
|
|
7478
|
-
|
|
7495
|
+
de as BitDisplayCanvas,
|
|
7479
7496
|
$i as ButtonSizes,
|
|
7480
7497
|
_i as ButtonVariants,
|
|
7481
7498
|
uc as CSSPropsControls,
|
|
@@ -7492,18 +7509,18 @@ export {
|
|
|
7492
7509
|
dc as SPECTRIC_CSS_VARIABLES,
|
|
7493
7510
|
J as SpectricButton,
|
|
7494
7511
|
Le as SpectricCalendar,
|
|
7495
|
-
|
|
7512
|
+
M as SpectricInput,
|
|
7496
7513
|
K as SpectricPage,
|
|
7497
|
-
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7514
|
+
St as SpectricPanel,
|
|
7515
|
+
H as SpectricQuery,
|
|
7516
|
+
ee as SpectricTableElement,
|
|
7517
|
+
Gt as SpectricThemeProvider,
|
|
7501
7518
|
q as SplitView,
|
|
7502
7519
|
ki as SpreadPropsDirective,
|
|
7503
7520
|
Mi as SupportedLanguages,
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7521
|
+
Qt as TD_BorderAndPadding,
|
|
7522
|
+
Fi as TableElementTag,
|
|
7523
|
+
Hi as TableSelectOptions,
|
|
7507
7524
|
Z as TableSortDirection,
|
|
7508
7525
|
qi as TableSortOption,
|
|
7509
7526
|
hc as ThemeSelections,
|
|
@@ -7511,12 +7528,12 @@ export {
|
|
|
7511
7528
|
Qi as TooltipElementTag,
|
|
7512
7529
|
Wi as TooltipPostions,
|
|
7513
7530
|
ia as debounce,
|
|
7514
|
-
|
|
7531
|
+
wr as debounceAnimation,
|
|
7515
7532
|
pp as default,
|
|
7516
7533
|
Qn as getListeners,
|
|
7517
7534
|
_e as nodeTypes,
|
|
7518
7535
|
Dc as once,
|
|
7519
7536
|
qe as spreadProps,
|
|
7520
|
-
|
|
7537
|
+
kr as toLabelValue
|
|
7521
7538
|
};
|
|
7522
7539
|
//# sourceMappingURL=index.es.js.map
|