@telia-ace/widget-runtime-flamingo 1.0.5 → 1.0.6
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/data-provider/data-provider.d.ts +25 -0
- package/dist/data-provider/data-provider.d.ts.map +1 -0
- package/dist/data-provider/providers/guide-provider.plugin.d.ts +3 -0
- package/dist/data-provider/providers/guide-provider.plugin.d.ts.map +1 -0
- package/dist/{index-3f142f67.js → index-e248f756.js} +560 -495
- package/dist/index-e248f756.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -11
- package/dist/{render-f8a2aadc.js → render-fd368868.js} +4 -3
- package/dist/render-fd368868.js.map +1 -0
- package/dist/ui/prepare-dom.d.ts.map +1 -1
- package/dist/ui/wrapper.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-3f142f67.js.map +0 -1
- package/dist/render-f8a2aadc.js.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var on = Object.getOwnPropertySymbols,
|
|
4
|
-
var an = (n, t, e) => t in n ?
|
|
1
|
+
var Br = Object.defineProperty, Vr = Object.defineProperties;
|
|
2
|
+
var zr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var on = Object.getOwnPropertySymbols, Wr = Object.getPrototypeOf, Fr = Object.prototype.hasOwnProperty, qr = Object.prototype.propertyIsEnumerable, Jr = Reflect.get;
|
|
4
|
+
var an = (n, t, e) => t in n ? Br(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, st = (n, t) => {
|
|
5
5
|
for (var e in t || (t = {}))
|
|
6
|
-
|
|
6
|
+
Fr.call(t, e) && an(n, e, t[e]);
|
|
7
7
|
if (on)
|
|
8
8
|
for (var e of on(t))
|
|
9
|
-
|
|
9
|
+
qr.call(t, e) && an(n, e, t[e]);
|
|
10
10
|
return n;
|
|
11
|
-
}, zt = (n, t) =>
|
|
12
|
-
var cn = (n, t, e) => Jr(
|
|
13
|
-
var
|
|
11
|
+
}, zt = (n, t) => Vr(n, zr(t));
|
|
12
|
+
var cn = (n, t, e) => Jr(Wr(n), e, t);
|
|
13
|
+
var z = (n, t, e) => new Promise((r, s) => {
|
|
14
14
|
var i = (c) => {
|
|
15
15
|
try {
|
|
16
16
|
a(e.next(c));
|
|
@@ -26,7 +26,7 @@ var Q = (n, t, e) => new Promise((r, s) => {
|
|
|
26
26
|
}, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(i, o);
|
|
27
27
|
a((e = e.apply(n, t)).next());
|
|
28
28
|
});
|
|
29
|
-
const
|
|
29
|
+
const Ee = (n, t, e, ...r) => {
|
|
30
30
|
const s = `[${n.get("$environment").name || "webprovisions"}] ${e}`;
|
|
31
31
|
switch (t) {
|
|
32
32
|
case "info":
|
|
@@ -39,16 +39,16 @@ const Oe = (n, t, e, ...r) => {
|
|
|
39
39
|
console.error(s, ...r);
|
|
40
40
|
break;
|
|
41
41
|
}
|
|
42
|
-
},
|
|
42
|
+
}, Kr = (n) => {
|
|
43
43
|
const t = n.container || n;
|
|
44
44
|
return {
|
|
45
|
-
info: (e, ...r) =>
|
|
46
|
-
warn: (e, ...r) =>
|
|
47
|
-
error: (e, ...r) =>
|
|
45
|
+
info: (e, ...r) => Ee(t, "info", e, ...r),
|
|
46
|
+
warn: (e, ...r) => Ee(t, "warning", e, ...r),
|
|
47
|
+
error: (e, ...r) => Ee(t, "error", e, ...r)
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
var se = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(se || {}), pt = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(pt || {});
|
|
51
|
-
const
|
|
51
|
+
const Gr = (n, t, e, r) => {
|
|
52
52
|
try {
|
|
53
53
|
const s = new t(e, r);
|
|
54
54
|
return {
|
|
@@ -102,11 +102,11 @@ let Yr = class {
|
|
|
102
102
|
return this.part;
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
|
-
const
|
|
105
|
+
const Je = (n) => {
|
|
106
106
|
const t = new Yr({});
|
|
107
107
|
return n(t), t.get();
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
Je((n) => {
|
|
110
110
|
n.createCommand(
|
|
111
111
|
"types.register",
|
|
112
112
|
{ scope: se.Implementation, stage: pt.Pre },
|
|
@@ -144,7 +144,7 @@ qe((n) => {
|
|
|
144
144
|
a
|
|
145
145
|
) : r;
|
|
146
146
|
try {
|
|
147
|
-
const p =
|
|
147
|
+
const p = Gr(
|
|
148
148
|
o,
|
|
149
149
|
a,
|
|
150
150
|
i,
|
|
@@ -152,7 +152,7 @@ qe((n) => {
|
|
|
152
152
|
);
|
|
153
153
|
i.get("$plugins").push(p), l && p.invoke("initialize", null);
|
|
154
154
|
} catch (p) {
|
|
155
|
-
|
|
155
|
+
Kr(t).warn("Error when initializing plugin", p);
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
158
|
t.container.get("$instance") ? h(!0) : t.events.subscribeOnce("widget:instance-created", () => h(!1));
|
|
@@ -185,8 +185,8 @@ qe((n) => {
|
|
|
185
185
|
}
|
|
186
186
|
);
|
|
187
187
|
});
|
|
188
|
-
var
|
|
189
|
-
let
|
|
188
|
+
var Qn = /* @__PURE__ */ ((n) => (n.Activating = "activating", n.Loading = "loading", n.Activated = "activated", n.Deactivating = "deactivating", n.Deactivated = "deactivated", n))(Qn || {});
|
|
189
|
+
let Zr = class {
|
|
190
190
|
/**
|
|
191
191
|
* Creates a new `Widget` instance.
|
|
192
192
|
* @param container The `Container` instance to base the widget upon.
|
|
@@ -197,16 +197,16 @@ let Gr = class {
|
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
|
-
var ln = Object.getOwnPropertySymbols,
|
|
200
|
+
var ln = Object.getOwnPropertySymbols, Qr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable, ts = (n, t) => {
|
|
201
201
|
var e = {};
|
|
202
202
|
for (var r in n)
|
|
203
|
-
|
|
203
|
+
Qr.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);
|
|
204
204
|
if (n != null && ln)
|
|
205
205
|
for (var r of ln(n))
|
|
206
|
-
t.indexOf(r) < 0 &&
|
|
206
|
+
t.indexOf(r) < 0 && Xr.call(n, r) && (e[r] = n[r]);
|
|
207
207
|
return e;
|
|
208
208
|
};
|
|
209
|
-
function
|
|
209
|
+
function es(n = {}) {
|
|
210
210
|
const t = n, {
|
|
211
211
|
phrase: e = "",
|
|
212
212
|
category: r,
|
|
@@ -221,7 +221,7 @@ function ts(n = {}) {
|
|
|
221
221
|
tag: d,
|
|
222
222
|
tagId: p,
|
|
223
223
|
tagTitle: b
|
|
224
|
-
} = t, v =
|
|
224
|
+
} = t, v = ts(t, [
|
|
225
225
|
"phrase",
|
|
226
226
|
"category",
|
|
227
227
|
"guideCategory",
|
|
@@ -236,8 +236,8 @@ function ts(n = {}) {
|
|
|
236
236
|
"tagId",
|
|
237
237
|
"tagTitle"
|
|
238
238
|
]), g = {};
|
|
239
|
-
return Object.keys(v).forEach((
|
|
240
|
-
typeof n[
|
|
239
|
+
return Object.keys(v).forEach((O) => {
|
|
240
|
+
typeof n[O] == "string" && (g[O] = n[O]);
|
|
241
241
|
}), typeof e == "string" && e.length && (g.phrase = e), e === null && (g.phrase = e), typeof s == "string" && s !== "0" && (g.guideCategory = s), typeof s == "number" && s !== 0 && (g.guideCategory = s), typeof s == "object" && s !== null && (typeof s.id == "string" && s.id !== "0" && (g.guideCategory = s.id), typeof s.id == "number" && s.id !== 0 && (g.guideCategory = s.id)), typeof i == "string" && i !== "0" && (g.contactCategory = i), typeof i == "number" && i !== 0 && (g.contactCategory = i), typeof i == "object" && i !== null && (typeof i.id == "string" && i.id !== "0" && (g.contactCategory = i.id), typeof i.id == "number" && i.id !== 0 && (g.contactCategory = i.id)), typeof r == "string" && r !== "0" && (g.category = r), typeof r == "number" && r !== 0 && (g.category = r), typeof r == "object" && r !== null && (typeof r.id == "string" && r.id !== "0" && (g.category = r.id), typeof r.id == "number" && r.id !== 0 && (g.category = r.id)), h && (g.id = h), l && (+g.category || +g.guideCategory || +g.guide || +g.contactCategory || +g.contactMethod) && (g.uriName = l), a && (g.connectionKey = a), o && (g.take = o), u && (g.sorting = u), typeof c == "string" && c.length > 0 && (g.accordion = c), typeof d == "string" && d !== "0" && (g.tag = d), typeof d == "number" && d !== 0 && (g.tag = d), Array.isArray(d) && d.length && (g.tag = d), (typeof p == "string" || typeof p == "number") && (g.tagId = p), typeof b == "string" && (g.tagTitle = b), typeof g.tag == "string" && (g.tag = g.tag.split(",")), g;
|
|
242
242
|
}
|
|
243
243
|
const pe = (n, t, ...e) => typeof t == "string" ? n(`[humany] ${t}`, ...e) : n(t, ...e), Nt = class {
|
|
@@ -253,15 +253,15 @@ I.log = (...n) => pe(console.log, ...n);
|
|
|
253
253
|
I.warn = (...n) => pe(console.warn, ...n);
|
|
254
254
|
I.error = (...n) => pe(console.error, ...n);
|
|
255
255
|
I.info = (...n) => pe(console.info, ...n);
|
|
256
|
-
const
|
|
256
|
+
const Xn = (n) => {
|
|
257
257
|
let t = {}, e, r;
|
|
258
258
|
if (typeof n != "object" || n === null)
|
|
259
259
|
return n;
|
|
260
260
|
t = Array.isArray(n) ? [] : {};
|
|
261
261
|
for (r in n)
|
|
262
|
-
e = n[r], t[r] = typeof e == "object" && e !== null ?
|
|
262
|
+
e = n[r], t[r] = typeof e == "object" && e !== null ? Xn(e) : e;
|
|
263
263
|
return t;
|
|
264
|
-
},
|
|
264
|
+
}, ns = Xn;
|
|
265
265
|
function un(n) {
|
|
266
266
|
let t = 0;
|
|
267
267
|
if (n.length === 0)
|
|
@@ -272,7 +272,7 @@ function un(n) {
|
|
|
272
272
|
}
|
|
273
273
|
return t.toString();
|
|
274
274
|
}
|
|
275
|
-
let
|
|
275
|
+
let rs = class {
|
|
276
276
|
constructor(t, e) {
|
|
277
277
|
this.lockWarningTime = t, this.lockErrorTime = e, this.tasks = [], this.current = Promise.resolve(), this.next = this.next.bind(this);
|
|
278
278
|
}
|
|
@@ -303,15 +303,15 @@ let ns = class {
|
|
|
303
303
|
}
|
|
304
304
|
};
|
|
305
305
|
const Wt = /* @__PURE__ */ new WeakMap();
|
|
306
|
-
function
|
|
307
|
-
return Wt.has(n) || Wt.set(n, new
|
|
306
|
+
function Q(n, t = 5e3, e = 1e3) {
|
|
307
|
+
return Wt.has(n) || Wt.set(n, new rs(t, e)), (r) => new Promise((s, i) => {
|
|
308
308
|
const o = Wt.get(n);
|
|
309
309
|
o.add(r, s, i, () => {
|
|
310
310
|
o.tasks.length || Wt.delete(n);
|
|
311
311
|
});
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
|
-
const
|
|
314
|
+
const ss = (n, t) => {
|
|
315
315
|
const e = () => t.querySelectorAll("[data-loading=true]").length > 0, r = (() => {
|
|
316
316
|
let s = !1;
|
|
317
317
|
return () => {
|
|
@@ -331,7 +331,7 @@ const rs = (n, t) => {
|
|
|
331
331
|
childList: !0,
|
|
332
332
|
subtree: !0
|
|
333
333
|
});
|
|
334
|
-
},
|
|
334
|
+
}, is = (n, t) => {
|
|
335
335
|
n.get("$widget").container.getAsync("components").then((e) => {
|
|
336
336
|
e.events.subscribeOnce("components:component-model-initialized", () => {
|
|
337
337
|
let r = e.nodes.visible.reduce(
|
|
@@ -347,7 +347,7 @@ const rs = (n, t) => {
|
|
|
347
347
|
const u = l.getAttribute && l.getAttribute("data-name");
|
|
348
348
|
return u && r.indexOf(u) > -1 && h.push(u), h;
|
|
349
349
|
}, []);
|
|
350
|
-
r = r.filter((h) => c.indexOf(h) === -1), !s && r.length === 0 && (s = !0,
|
|
350
|
+
r = r.filter((h) => c.indexOf(h) === -1), !s && r.length === 0 && (s = !0, ss(n, t), o.disconnect());
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
}).observe(t, {
|
|
@@ -360,9 +360,9 @@ const rs = (n, t) => {
|
|
|
360
360
|
});
|
|
361
361
|
});
|
|
362
362
|
});
|
|
363
|
-
},
|
|
363
|
+
}, os = is, as = (n = {}) => (Object.keys(n).forEach((t) => {
|
|
364
364
|
(n[t] === null || typeof n[t] == "undefined") && delete n[t];
|
|
365
|
-
}), n), yt =
|
|
365
|
+
}), n), yt = as, dn = (n, t) => {
|
|
366
366
|
let e = !0;
|
|
367
367
|
return Object.keys(n).length !== Object.keys(t).length || Object.keys(n).some((r) => !Object.keys(t).some((s) => r === s)) ? !1 : (Object.keys(n).forEach((r) => {
|
|
368
368
|
if (e) {
|
|
@@ -374,15 +374,15 @@ const rs = (n, t) => {
|
|
|
374
374
|
function Bt() {
|
|
375
375
|
return it() + it() + "-" + it() + "-" + it() + "-" + it() + "-" + it() + it() + it();
|
|
376
376
|
}
|
|
377
|
-
var
|
|
377
|
+
var cs = Object.defineProperty, hs = Object.defineProperties, ls = Object.getOwnPropertyDescriptors, pn = Object.getOwnPropertySymbols, us = Object.prototype.hasOwnProperty, ds = Object.prototype.propertyIsEnumerable, gn = (n, t, e) => t in n ? cs(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, ps = (n, t) => {
|
|
378
378
|
for (var e in t || (t = {}))
|
|
379
|
-
|
|
379
|
+
us.call(t, e) && gn(n, e, t[e]);
|
|
380
380
|
if (pn)
|
|
381
381
|
for (var e of pn(t))
|
|
382
|
-
|
|
382
|
+
ds.call(t, e) && gn(n, e, t[e]);
|
|
383
383
|
return n;
|
|
384
|
-
},
|
|
385
|
-
class
|
|
384
|
+
}, gs = (n, t) => hs(n, ls(t));
|
|
385
|
+
class fs {
|
|
386
386
|
constructor(t) {
|
|
387
387
|
const { events: e } = t.get("$widget");
|
|
388
388
|
this.events = e.createChild(this);
|
|
@@ -397,7 +397,7 @@ class gs {
|
|
|
397
397
|
);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
const
|
|
400
|
+
const tr = (n) => {
|
|
401
401
|
const t = [];
|
|
402
402
|
return [
|
|
403
403
|
(e, r) => {
|
|
@@ -424,7 +424,7 @@ let Pt = class {
|
|
|
424
424
|
return this.rules.push({ id: t }), this;
|
|
425
425
|
}
|
|
426
426
|
select() {
|
|
427
|
-
return new
|
|
427
|
+
return new ms(this.platform, this);
|
|
428
428
|
}
|
|
429
429
|
}, Ke = class {
|
|
430
430
|
constructor(t, e, r) {
|
|
@@ -433,7 +433,7 @@ let Pt = class {
|
|
|
433
433
|
new Pt(t).withId(e.id),
|
|
434
434
|
r
|
|
435
435
|
);
|
|
436
|
-
const [s, i] =
|
|
436
|
+
const [s, i] = tr(this.platform.events);
|
|
437
437
|
this.subscribe = s, this.unsubscribe = i;
|
|
438
438
|
}
|
|
439
439
|
properties(t) {
|
|
@@ -462,7 +462,7 @@ let Pt = class {
|
|
|
462
462
|
this.unsubscribe(), this.actions.dispose();
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
|
-
class
|
|
465
|
+
class ms {
|
|
466
466
|
constructor(t, e, r = !0) {
|
|
467
467
|
this.platform = t, this.target = e, this.clearOnDispose = r, this.removes = [], this.actions = new ge(this.platform, this.target);
|
|
468
468
|
}
|
|
@@ -502,12 +502,12 @@ class fs {
|
|
|
502
502
|
}), this.actions.dispose();
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const
|
|
505
|
+
const vs = (n, t, e) => {
|
|
506
506
|
const r = n.concat(), s = (i, o, a) => {
|
|
507
507
|
let c = !0;
|
|
508
508
|
if (r.length) {
|
|
509
509
|
const h = r.shift(), l = (u, d) => (c = !1, s(u, Object.assign({}, o, d), a));
|
|
510
|
-
return Promise.resolve(h(i, l, a)).then((u) => ps(
|
|
510
|
+
return Promise.resolve(h(i, l, a)).then((u) => gs(ps({}, u), {
|
|
511
511
|
cancelled: c
|
|
512
512
|
}));
|
|
513
513
|
}
|
|
@@ -552,7 +552,7 @@ let ge = class {
|
|
|
552
552
|
h,
|
|
553
553
|
this.ns
|
|
554
554
|
);
|
|
555
|
-
return
|
|
555
|
+
return vs(c, e, l).then((u) => {
|
|
556
556
|
const { data: d = {}, options: p, cancelled: b } = u;
|
|
557
557
|
return Promise.resolve(
|
|
558
558
|
b ? {} : o.fn(d, p, l)
|
|
@@ -586,7 +586,7 @@ let ge = class {
|
|
|
586
586
|
this.subscriptions.forEach((t) => t());
|
|
587
587
|
}
|
|
588
588
|
};
|
|
589
|
-
|
|
589
|
+
Je((n) => {
|
|
590
590
|
n.createCommand("components", (t) => (e) => {
|
|
591
591
|
t.events.subscribeOnce("components:platform-created", (r, { platform: s }) => {
|
|
592
592
|
e.handlers && e.handlers.forEach(([i, o]) => {
|
|
@@ -680,29 +680,29 @@ let Be = class {
|
|
|
680
680
|
}), delete t.parent;
|
|
681
681
|
}
|
|
682
682
|
};
|
|
683
|
-
const
|
|
683
|
+
const er = (n, t, e) => {
|
|
684
684
|
for (let r = 0, s = n.length; r < s && e(n[r]) !== !0; r++) {
|
|
685
685
|
const i = t[n[r].id] || "default", o = n[r].getChildren(i);
|
|
686
|
-
|
|
686
|
+
er(o, t, e);
|
|
687
687
|
}
|
|
688
688
|
}, fe = (n, t, e) => {
|
|
689
689
|
if (e(n) !== !0) {
|
|
690
690
|
const r = t[n.id] || "default", s = n.children[r];
|
|
691
|
-
|
|
691
|
+
er(s, t, e);
|
|
692
692
|
}
|
|
693
693
|
}, Zt = (n, t) => {
|
|
694
694
|
const e = [];
|
|
695
695
|
return fe(n, t, (r) => {
|
|
696
696
|
e.push(r);
|
|
697
697
|
}), e;
|
|
698
|
-
},
|
|
698
|
+
}, nr = (n, t, e) => {
|
|
699
699
|
let r;
|
|
700
700
|
return fe(n, t, (s) => {
|
|
701
701
|
if (e(s))
|
|
702
702
|
return r = s, !0;
|
|
703
703
|
}), r;
|
|
704
704
|
};
|
|
705
|
-
let
|
|
705
|
+
let ys = class {
|
|
706
706
|
constructor(t, e, r) {
|
|
707
707
|
this.root = t, this.switches = e, this.all = [], this.visible = [], this.detached = [], r.subscribe("components:node-appended", (s, i) => {
|
|
708
708
|
this.all.push(i.node), this.visible = Zt(t, e);
|
|
@@ -720,9 +720,9 @@ let vs = class {
|
|
|
720
720
|
}), e;
|
|
721
721
|
}
|
|
722
722
|
get(t) {
|
|
723
|
-
return
|
|
723
|
+
return nr(this.root, this.switches, (e) => e.id === t) || this.detached.find((e) => e.id === t);
|
|
724
724
|
}
|
|
725
|
-
},
|
|
725
|
+
}, bs = class {
|
|
726
726
|
constructor() {
|
|
727
727
|
this.handlers = /* @__PURE__ */ new Map();
|
|
728
728
|
}
|
|
@@ -733,24 +733,24 @@ let vs = class {
|
|
|
733
733
|
return this.handlers.get(t);
|
|
734
734
|
}
|
|
735
735
|
};
|
|
736
|
-
const
|
|
736
|
+
const ws = (n) => {
|
|
737
737
|
let t = n, e = 0;
|
|
738
738
|
for (; t.parent; )
|
|
739
739
|
e = e + 1, t = t.parent;
|
|
740
740
|
return e;
|
|
741
|
-
},
|
|
741
|
+
}, $s = (n) => n.map(([t, e]) => [ws(t), t, e]).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), Oe = (n) => n instanceof Date ? !1 : n && typeof n == "object" && !Array.isArray(n), X = (n, ...t) => {
|
|
742
742
|
if (!t.length)
|
|
743
743
|
return n;
|
|
744
744
|
const e = t.shift();
|
|
745
|
-
if (
|
|
745
|
+
if (Oe(n) && Oe(e))
|
|
746
746
|
for (const r in e)
|
|
747
|
-
|
|
747
|
+
Oe(e[r]) ? (n[r] || Object.assign(n, { [r]: {} }), X(n[r], e[r])) : Object.assign(n, { [r]: e[r] });
|
|
748
748
|
return X(n, ...t);
|
|
749
|
-
},
|
|
749
|
+
}, Es = (n, t) => !n || n === "all" ? !0 : n.some((e) => t.indexOf(e) > -1), Os = (n, t) => {
|
|
750
750
|
let e = [], r = [], s;
|
|
751
751
|
const i = () => {
|
|
752
752
|
process.env.NODE_ENV !== "production" && console.time("state-processor.flush");
|
|
753
|
-
const a = /* @__PURE__ */ new Map(), c =
|
|
753
|
+
const a = /* @__PURE__ */ new Map(), c = $s(e.map((l, u) => [l, r[u]])), h = (l, u) => {
|
|
754
754
|
var d;
|
|
755
755
|
const p = a.get(l) || {}, b = u.context && !p.context, v = u.properties && !p.properties, g = u.layout && !p.layout;
|
|
756
756
|
a.set(l, {
|
|
@@ -758,17 +758,17 @@ const bs = (n) => {
|
|
|
758
758
|
properties: p.properties || v,
|
|
759
759
|
layout: p.layout || g
|
|
760
760
|
}), v && (l.attributes.properties = {}), g && (l.attributes.layout = {}), b && (l.attributes.context = X({}, (d = l.parent) == null ? void 0 : d.attributes.context));
|
|
761
|
-
const
|
|
761
|
+
const O = [], j = [], W = [];
|
|
762
762
|
if (l.changesets.forEach((H) => {
|
|
763
763
|
const [k, U] = H;
|
|
764
|
-
|
|
764
|
+
Es(U.breakpoints, n.breakpoints) && (v && (typeof k.properties == "function" ? O.push(
|
|
765
765
|
k.properties
|
|
766
|
-
) : X(l.attributes.properties, k.properties)), g && (typeof k.layout == "function" ? j.push(k.layout) : X(l.attributes.layout, k.layout)), b && (typeof k.context == "function" ?
|
|
767
|
-
}),
|
|
766
|
+
) : X(l.attributes.properties, k.properties)), g && (typeof k.layout == "function" ? j.push(k.layout) : X(l.attributes.layout, k.layout)), b && (typeof k.context == "function" ? W.push(k.context) : X(l.attributes.context, k.context)));
|
|
767
|
+
}), O.forEach((H) => {
|
|
768
768
|
X(l.attributes.properties, H(l.attributes.properties));
|
|
769
769
|
}), j.forEach((H) => {
|
|
770
770
|
X(l.attributes.layout, H(l.attributes.layout));
|
|
771
|
-
}),
|
|
771
|
+
}), W.forEach((H) => {
|
|
772
772
|
X(l.attributes.context, H(l.attributes.context));
|
|
773
773
|
}), b || u.recursive) {
|
|
774
774
|
const H = n.getBranch(l), k = u.recursive ? u : {
|
|
@@ -796,9 +796,9 @@ const bs = (n) => {
|
|
|
796
796
|
};
|
|
797
797
|
let me = class {
|
|
798
798
|
constructor(t, e = {}) {
|
|
799
|
-
this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new
|
|
799
|
+
this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new bs(), this.events = t.events.createChild(this);
|
|
800
800
|
const r = new Be(this.events, "root");
|
|
801
|
-
r.name = `root-${t.name}`, this.nodes = new
|
|
801
|
+
r.name = `root-${t.name}`, this.nodes = new ys(r, this.switches, this.events);
|
|
802
802
|
const s = this.processNode = Os(this, (i) => {
|
|
803
803
|
const o = Array.from(i.keys());
|
|
804
804
|
process.env.NODE_ENV !== "production" && console.info(`STATE PROCESSOR: ${o.length} node(s) processed:
|
|
@@ -945,7 +945,7 @@ ${o.map(
|
|
|
945
945
|
this.subscriptions.forEach((t) => t());
|
|
946
946
|
}
|
|
947
947
|
};
|
|
948
|
-
const
|
|
948
|
+
const As = (n) => {
|
|
949
949
|
if (Array.isArray(n)) {
|
|
950
950
|
const [t, ...e] = n;
|
|
951
951
|
return {
|
|
@@ -959,7 +959,7 @@ const Es = (n) => {
|
|
|
959
959
|
};
|
|
960
960
|
}, ie = (n, t, e, r, s, i) => {
|
|
961
961
|
e.forEach((o) => {
|
|
962
|
-
const a =
|
|
962
|
+
const a = As(o), c = r[a.definitionId];
|
|
963
963
|
if (a.definitionId === "view") {
|
|
964
964
|
const h = n.createNode("view");
|
|
965
965
|
h.name = "view", Object.keys(s).forEach((l) => {
|
|
@@ -995,7 +995,7 @@ const Es = (n) => {
|
|
|
995
995
|
}), h.children && ie(n, l, h.children, r, s);
|
|
996
996
|
}
|
|
997
997
|
});
|
|
998
|
-
},
|
|
998
|
+
}, rr = (n, t) => {
|
|
999
999
|
const { entry: e, components: r, breakpoints: s, views: i } = t, o = [];
|
|
1000
1000
|
return Object.keys(s).forEach((a) => {
|
|
1001
1001
|
const c = s[a], h = window.matchMedia(c);
|
|
@@ -1007,12 +1007,12 @@ const Es = (n) => {
|
|
|
1007
1007
|
}), ie(n, n.nodes.root, [e], r, i), () => o.forEach((a) => {
|
|
1008
1008
|
a();
|
|
1009
1009
|
});
|
|
1010
|
-
},
|
|
1010
|
+
}, xs = (n, t) => ({
|
|
1011
1011
|
id: n.id,
|
|
1012
1012
|
type: n.type,
|
|
1013
1013
|
name: n.name,
|
|
1014
1014
|
branch: t || "default"
|
|
1015
|
-
}),
|
|
1015
|
+
}), sr = (n, t, e, r = Bt(), s = {}) => n.getAsync("components").then((i) => {
|
|
1016
1016
|
let o;
|
|
1017
1017
|
if (typeof t == "string") {
|
|
1018
1018
|
const h = new Pt(i);
|
|
@@ -1043,7 +1043,7 @@ const Es = (n) => {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
);
|
|
1045
1045
|
});
|
|
1046
|
-
class
|
|
1046
|
+
class _s {
|
|
1047
1047
|
constructor(t) {
|
|
1048
1048
|
this.aliases = /* @__PURE__ */ new Map(), this.components = /* @__PURE__ */ new Map(), this.logger = new I();
|
|
1049
1049
|
const { events: e } = t.get("$widget");
|
|
@@ -1075,32 +1075,32 @@ class xs {
|
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
1077
|
}
|
|
1078
|
-
var
|
|
1079
|
-
const
|
|
1078
|
+
var q = /* @__PURE__ */ ((n) => (n.open = "open", n.closed = "closed", n.hidden = "hidden", n))(q || {});
|
|
1079
|
+
const Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1080
1080
|
__proto__: null,
|
|
1081
|
-
ActionResolver:
|
|
1081
|
+
ActionResolver: fs,
|
|
1082
1082
|
ActionsController: ge,
|
|
1083
1083
|
ComponentNode: Be,
|
|
1084
1084
|
ComponentNodeController: Ke,
|
|
1085
1085
|
ComponentPlatform: me,
|
|
1086
1086
|
ComponentQuery: Pt,
|
|
1087
|
-
ComponentResolver:
|
|
1088
|
-
WidgetRenderState:
|
|
1089
|
-
asDescriptor:
|
|
1087
|
+
ComponentResolver: _s,
|
|
1088
|
+
WidgetRenderState: q,
|
|
1089
|
+
asDescriptor: xs,
|
|
1090
1090
|
createChildren: ie,
|
|
1091
|
-
createComponentModel:
|
|
1092
|
-
createEventSubscriber:
|
|
1093
|
-
extendComponent:
|
|
1094
|
-
findComponent:
|
|
1091
|
+
createComponentModel: rr,
|
|
1092
|
+
createEventSubscriber: tr,
|
|
1093
|
+
extendComponent: sr,
|
|
1094
|
+
findComponent: nr,
|
|
1095
1095
|
findVisibleComponents: Zt,
|
|
1096
1096
|
traverseComponents: fe
|
|
1097
1097
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1098
|
-
function
|
|
1098
|
+
function ir(n) {
|
|
1099
1099
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
1100
1100
|
}
|
|
1101
|
-
var
|
|
1101
|
+
var or = function() {
|
|
1102
1102
|
};
|
|
1103
|
-
process.env.NODE_ENV !== "production" && (
|
|
1103
|
+
process.env.NODE_ENV !== "production" && (or = function(n, t, e) {
|
|
1104
1104
|
var r = arguments.length;
|
|
1105
1105
|
e = new Array(r > 2 ? r - 2 : 0);
|
|
1106
1106
|
for (var s = 2; s < r; s++)
|
|
@@ -1124,9 +1124,9 @@ process.env.NODE_ENV !== "production" && (ir = function(n, t, e) {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
1126
|
});
|
|
1127
|
-
var
|
|
1128
|
-
const tt = /* @__PURE__ */
|
|
1129
|
-
var
|
|
1127
|
+
var Ss = or;
|
|
1128
|
+
const tt = /* @__PURE__ */ ir(Ss);
|
|
1129
|
+
var Ps = function(n, t, e, r, s, i, o, a) {
|
|
1130
1130
|
if (process.env.NODE_ENV !== "production" && t === void 0)
|
|
1131
1131
|
throw new Error("invariant requires an error message argument");
|
|
1132
1132
|
if (!n) {
|
|
@@ -1145,8 +1145,8 @@ var Ss = function(n, t, e, r, s, i, o, a) {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
throw c.framesToPop = 1, c;
|
|
1147
1147
|
}
|
|
1148
|
-
},
|
|
1149
|
-
const
|
|
1148
|
+
}, Cs = Ps;
|
|
1149
|
+
const ks = /* @__PURE__ */ ir(Cs);
|
|
1150
1150
|
function Ft(n) {
|
|
1151
1151
|
return n.charAt(0) === "/";
|
|
1152
1152
|
}
|
|
@@ -1155,7 +1155,7 @@ function Ae(n, t) {
|
|
|
1155
1155
|
n[e] = n[r];
|
|
1156
1156
|
n.pop();
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function Ns(n) {
|
|
1159
1159
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", e = n && n.split("/") || [], r = t && t.split("/") || [], s = n && Ft(n), i = t && Ft(t), o = s || i;
|
|
1160
1160
|
if (n && Ft(n) ? r = e : e.length && (r.pop(), r = r.concat(e)), !r.length)
|
|
1161
1161
|
return "/";
|
|
@@ -1176,15 +1176,15 @@ function ks(n) {
|
|
|
1176
1176
|
var d = r.join("/");
|
|
1177
1177
|
return a && d.substr(-1) !== "/" && (d += "/"), d;
|
|
1178
1178
|
}
|
|
1179
|
-
var
|
|
1179
|
+
var Ms = function(t) {
|
|
1180
1180
|
return t.charAt(0) === "/" ? t : "/" + t;
|
|
1181
|
-
},
|
|
1181
|
+
}, ar = function(t, e) {
|
|
1182
1182
|
return new RegExp("^" + e + "(\\/|\\?|#|$)", "i").test(t);
|
|
1183
|
-
},
|
|
1184
|
-
return
|
|
1185
|
-
}, Ls = function(t) {
|
|
1186
|
-
return t.charAt(t.length - 1) === "/" ? t.slice(0, -1) : t;
|
|
1183
|
+
}, Ls = function(t, e) {
|
|
1184
|
+
return ar(t, e) ? t.substr(e.length) : t;
|
|
1187
1185
|
}, Ds = function(t) {
|
|
1186
|
+
return t.charAt(t.length - 1) === "/" ? t.slice(0, -1) : t;
|
|
1187
|
+
}, Ts = function(t) {
|
|
1188
1188
|
var e = t || "/", r = "", s = "", i = e.indexOf("#");
|
|
1189
1189
|
i !== -1 && (s = e.substr(i), e = e.substr(0, i));
|
|
1190
1190
|
var o = e.indexOf("?");
|
|
@@ -1193,10 +1193,10 @@ var Ns = function(t) {
|
|
|
1193
1193
|
search: r === "?" ? "" : r,
|
|
1194
1194
|
hash: s === "#" ? "" : s
|
|
1195
1195
|
};
|
|
1196
|
-
},
|
|
1196
|
+
}, cr = function(t) {
|
|
1197
1197
|
var e = t.pathname, r = t.search, s = t.hash, i = e || "/";
|
|
1198
1198
|
return r && r !== "?" && (i += r.charAt(0) === "?" ? r : "?" + r), s && s !== "#" && (i += s.charAt(0) === "#" ? s : "#" + s), i;
|
|
1199
|
-
},
|
|
1199
|
+
}, js = Object.assign || function(n) {
|
|
1200
1200
|
for (var t = 1; t < arguments.length; t++) {
|
|
1201
1201
|
var e = arguments[t];
|
|
1202
1202
|
for (var r in e)
|
|
@@ -1205,14 +1205,14 @@ var Ns = function(t) {
|
|
|
1205
1205
|
return n;
|
|
1206
1206
|
}, gt = function(t, e, r, s) {
|
|
1207
1207
|
var i = void 0;
|
|
1208
|
-
typeof t == "string" ? (i =
|
|
1208
|
+
typeof t == "string" ? (i = Ts(t), i.state = e) : (i = js({}, t), i.pathname === void 0 && (i.pathname = ""), i.search ? i.search.charAt(0) !== "?" && (i.search = "?" + i.search) : i.search = "", i.hash ? i.hash.charAt(0) !== "#" && (i.hash = "#" + i.hash) : i.hash = "", e !== void 0 && i.state === void 0 && (i.state = e));
|
|
1209
1209
|
try {
|
|
1210
1210
|
i.pathname = decodeURI(i.pathname);
|
|
1211
1211
|
} catch (o) {
|
|
1212
1212
|
throw o instanceof URIError ? new URIError('Pathname "' + i.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.') : o;
|
|
1213
1213
|
}
|
|
1214
|
-
return r && (i.key = r), s ? i.pathname ? i.pathname.charAt(0) !== "/" && (i.pathname =
|
|
1215
|
-
},
|
|
1214
|
+
return r && (i.key = r), s ? i.pathname ? i.pathname.charAt(0) !== "/" && (i.pathname = Ns(i.pathname, s.pathname)) : i.pathname = s.pathname : i.pathname || (i.pathname = "/"), i;
|
|
1215
|
+
}, hr = function() {
|
|
1216
1216
|
var t = null, e = function(c) {
|
|
1217
1217
|
return tt(t == null, "A history supports only one prompt at a time"), t = c, function() {
|
|
1218
1218
|
t === c && (t = null);
|
|
@@ -1245,24 +1245,24 @@ var Ns = function(t) {
|
|
|
1245
1245
|
appendListener: i,
|
|
1246
1246
|
notifyListeners: o
|
|
1247
1247
|
};
|
|
1248
|
-
},
|
|
1248
|
+
}, Rs = !!(typeof window != "undefined" && window.document && window.document.createElement), fn = function(t, e, r) {
|
|
1249
1249
|
return t.addEventListener ? t.addEventListener(e, r, !1) : t.attachEvent("on" + e, r);
|
|
1250
1250
|
}, mn = function(t, e, r) {
|
|
1251
1251
|
return t.removeEventListener ? t.removeEventListener(e, r, !1) : t.detachEvent("on" + e, r);
|
|
1252
|
-
},
|
|
1252
|
+
}, Is = function(t, e) {
|
|
1253
1253
|
return e(window.confirm(t));
|
|
1254
|
-
},
|
|
1254
|
+
}, Hs = function() {
|
|
1255
1255
|
var t = window.navigator.userAgent;
|
|
1256
1256
|
return (t.indexOf("Android 2.") !== -1 || t.indexOf("Android 4.0") !== -1) && t.indexOf("Mobile Safari") !== -1 && t.indexOf("Chrome") === -1 && t.indexOf("Windows Phone") === -1 ? !1 : window.history && "pushState" in window.history;
|
|
1257
|
-
},
|
|
1257
|
+
}, Us = function() {
|
|
1258
1258
|
return window.navigator.userAgent.indexOf("Trident") === -1;
|
|
1259
|
-
},
|
|
1259
|
+
}, Bs = function(t) {
|
|
1260
1260
|
return t.state === void 0 && navigator.userAgent.indexOf("CriOS") === -1;
|
|
1261
1261
|
}, vn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
|
1262
1262
|
return typeof n;
|
|
1263
1263
|
} : function(n) {
|
|
1264
1264
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
1265
|
-
},
|
|
1265
|
+
}, Vs = Object.assign || function(n) {
|
|
1266
1266
|
for (var t = 1; t < arguments.length; t++) {
|
|
1267
1267
|
var e = arguments[t];
|
|
1268
1268
|
for (var r in e)
|
|
@@ -1275,70 +1275,70 @@ var Ns = function(t) {
|
|
|
1275
1275
|
} catch (t) {
|
|
1276
1276
|
return {};
|
|
1277
1277
|
}
|
|
1278
|
-
},
|
|
1278
|
+
}, zs = function() {
|
|
1279
1279
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1280
|
-
|
|
1281
|
-
var e = window.history, r =
|
|
1282
|
-
var
|
|
1283
|
-
return tt(!u ||
|
|
1280
|
+
ks(Rs, "Browser history needs a DOM");
|
|
1281
|
+
var e = window.history, r = Hs(), s = !Us(), i = t.forceRefresh, o = i === void 0 ? !1 : i, a = t.getUserConfirmation, c = a === void 0 ? Is : a, h = t.keyLength, l = h === void 0 ? 6 : h, u = t.basename ? Ds(Ms(t.basename)) : "", d = function(m) {
|
|
1282
|
+
var E = m || {}, M = E.key, L = E.state, J = window.location, K = J.pathname, rt = J.search, Z = J.hash, F = K + rt + Z;
|
|
1283
|
+
return tt(!u || ar(F, u), 'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "' + F + '" to begin with "' + u + '".'), u && (F = Ls(F, u)), gt(F, L, M);
|
|
1284
1284
|
}, p = function() {
|
|
1285
1285
|
return Math.random().toString(36).substr(2, l);
|
|
1286
|
-
}, b =
|
|
1287
|
-
|
|
1286
|
+
}, b = hr(), v = function(m) {
|
|
1287
|
+
Vs(_, m), _.length = e.length, b.notifyListeners(_.location, _.action);
|
|
1288
1288
|
}, g = function(m) {
|
|
1289
|
-
|
|
1290
|
-
},
|
|
1291
|
-
|
|
1292
|
-
}, j = !1,
|
|
1289
|
+
Bs(m) || W(d(m.state));
|
|
1290
|
+
}, O = function() {
|
|
1291
|
+
W(d(wn()));
|
|
1292
|
+
}, j = !1, W = function(m) {
|
|
1293
1293
|
if (j)
|
|
1294
1294
|
j = !1, v();
|
|
1295
1295
|
else {
|
|
1296
|
-
var
|
|
1297
|
-
b.confirmTransitionTo(m,
|
|
1298
|
-
M ? v({ action:
|
|
1296
|
+
var E = "POP";
|
|
1297
|
+
b.confirmTransitionTo(m, E, c, function(M) {
|
|
1298
|
+
M ? v({ action: E, location: m }) : H(m);
|
|
1299
1299
|
});
|
|
1300
1300
|
}
|
|
1301
1301
|
}, H = function(m) {
|
|
1302
|
-
var
|
|
1302
|
+
var E = _.location, M = U.indexOf(E.key);
|
|
1303
1303
|
M === -1 && (M = 0);
|
|
1304
1304
|
var L = U.indexOf(m.key);
|
|
1305
1305
|
L === -1 && (L = 0);
|
|
1306
1306
|
var J = M - L;
|
|
1307
1307
|
J && (j = !0, D(J));
|
|
1308
1308
|
}, k = d(wn()), U = [k.key], A = function(m) {
|
|
1309
|
-
return u +
|
|
1310
|
-
}, N = function(m,
|
|
1311
|
-
tt(!((typeof m == "undefined" ? "undefined" : vn(m)) === "object" && m.state !== void 0 &&
|
|
1312
|
-
var M = "PUSH", L = gt(m,
|
|
1309
|
+
return u + cr(m);
|
|
1310
|
+
}, N = function(m, E) {
|
|
1311
|
+
tt(!((typeof m == "undefined" ? "undefined" : vn(m)) === "object" && m.state !== void 0 && E !== void 0), "You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");
|
|
1312
|
+
var M = "PUSH", L = gt(m, E, p(), _.location);
|
|
1313
1313
|
b.confirmTransitionTo(L, M, c, function(J) {
|
|
1314
1314
|
if (J) {
|
|
1315
|
-
var
|
|
1315
|
+
var K = A(L), rt = L.key, Z = L.state;
|
|
1316
1316
|
if (r)
|
|
1317
|
-
if (e.pushState({ key: rt, state:
|
|
1318
|
-
window.location.href =
|
|
1317
|
+
if (e.pushState({ key: rt, state: Z }, null, K), o)
|
|
1318
|
+
window.location.href = K;
|
|
1319
1319
|
else {
|
|
1320
|
-
var
|
|
1320
|
+
var F = U.indexOf(_.location.key), sn = U.slice(0, F === -1 ? 0 : F + 1);
|
|
1321
1321
|
sn.push(L.key), U = sn, v({ action: M, location: L });
|
|
1322
1322
|
}
|
|
1323
1323
|
else
|
|
1324
|
-
tt(
|
|
1324
|
+
tt(Z === void 0, "Browser history cannot push state in browsers that do not support HTML5 history"), window.location.href = K;
|
|
1325
1325
|
}
|
|
1326
1326
|
});
|
|
1327
|
-
}, C = function(m,
|
|
1328
|
-
tt(!((typeof m == "undefined" ? "undefined" : vn(m)) === "object" && m.state !== void 0 &&
|
|
1329
|
-
var M = "REPLACE", L = gt(m,
|
|
1327
|
+
}, C = function(m, E) {
|
|
1328
|
+
tt(!((typeof m == "undefined" ? "undefined" : vn(m)) === "object" && m.state !== void 0 && E !== void 0), "You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");
|
|
1329
|
+
var M = "REPLACE", L = gt(m, E, p(), _.location);
|
|
1330
1330
|
b.confirmTransitionTo(L, M, c, function(J) {
|
|
1331
1331
|
if (J) {
|
|
1332
|
-
var
|
|
1332
|
+
var K = A(L), rt = L.key, Z = L.state;
|
|
1333
1333
|
if (r)
|
|
1334
|
-
if (e.replaceState({ key: rt, state:
|
|
1335
|
-
window.location.replace(
|
|
1334
|
+
if (e.replaceState({ key: rt, state: Z }, null, K), o)
|
|
1335
|
+
window.location.replace(K);
|
|
1336
1336
|
else {
|
|
1337
|
-
var
|
|
1338
|
-
|
|
1337
|
+
var F = U.indexOf(_.location.key);
|
|
1338
|
+
F !== -1 && (U[F] = L.key), v({ action: M, location: L });
|
|
1339
1339
|
}
|
|
1340
1340
|
else
|
|
1341
|
-
tt(
|
|
1341
|
+
tt(Z === void 0, "Browser history cannot replace state in browsers that do not support HTML5 history"), window.location.replace(K);
|
|
1342
1342
|
}
|
|
1343
1343
|
});
|
|
1344
1344
|
}, D = function(m) {
|
|
@@ -1348,16 +1348,16 @@ var Ns = function(t) {
|
|
|
1348
1348
|
}, B = function() {
|
|
1349
1349
|
return D(1);
|
|
1350
1350
|
}, R = 0, f = function(m) {
|
|
1351
|
-
R += m, R === 1 ? (fn(window, yn, g), s && fn(window, bn,
|
|
1351
|
+
R += m, R === 1 ? (fn(window, yn, g), s && fn(window, bn, O)) : R === 0 && (mn(window, yn, g), s && mn(window, bn, O));
|
|
1352
1352
|
}, w = !1, y = function() {
|
|
1353
|
-
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1,
|
|
1353
|
+
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, E = b.setPrompt(m);
|
|
1354
1354
|
return w || (f(1), w = !0), function() {
|
|
1355
|
-
return w && (w = !1, f(-1)),
|
|
1355
|
+
return w && (w = !1, f(-1)), E();
|
|
1356
1356
|
};
|
|
1357
1357
|
}, $ = function(m) {
|
|
1358
|
-
var
|
|
1358
|
+
var E = b.appendListener(m);
|
|
1359
1359
|
return f(1), function() {
|
|
1360
|
-
f(-1),
|
|
1360
|
+
f(-1), E();
|
|
1361
1361
|
};
|
|
1362
1362
|
}, _ = {
|
|
1363
1363
|
length: e.length,
|
|
@@ -1377,23 +1377,23 @@ var Ns = function(t) {
|
|
|
1377
1377
|
return typeof n;
|
|
1378
1378
|
} : function(n) {
|
|
1379
1379
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
1380
|
-
},
|
|
1380
|
+
}, Ws = Object.assign || function(n) {
|
|
1381
1381
|
for (var t = 1; t < arguments.length; t++) {
|
|
1382
1382
|
var e = arguments[t];
|
|
1383
1383
|
for (var r in e)
|
|
1384
1384
|
Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
|
|
1385
1385
|
}
|
|
1386
1386
|
return n;
|
|
1387
|
-
},
|
|
1387
|
+
}, En = function(t, e, r) {
|
|
1388
1388
|
return Math.min(Math.max(t, e), r);
|
|
1389
|
-
},
|
|
1390
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.getUserConfirmation, r = t.initialEntries, s = r === void 0 ? ["/"] : r, i = t.initialIndex, o = i === void 0 ? 0 : i, a = t.keyLength, c = a === void 0 ? 6 : a, h =
|
|
1391
|
-
|
|
1389
|
+
}, Fs = function() {
|
|
1390
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.getUserConfirmation, r = t.initialEntries, s = r === void 0 ? ["/"] : r, i = t.initialIndex, o = i === void 0 ? 0 : i, a = t.keyLength, c = a === void 0 ? 6 : a, h = hr(), l = function(C) {
|
|
1391
|
+
Ws(A, C), A.length = A.entries.length, h.notifyListeners(A.location, A.action);
|
|
1392
1392
|
}, u = function() {
|
|
1393
1393
|
return Math.random().toString(36).substr(2, c);
|
|
1394
|
-
}, d =
|
|
1394
|
+
}, d = En(o, 0, s.length - 1), p = s.map(function(N) {
|
|
1395
1395
|
return typeof N == "string" ? gt(N, void 0, u()) : gt(N, void 0, N.key || u());
|
|
1396
|
-
}), b =
|
|
1396
|
+
}), b = cr, v = function(C, D) {
|
|
1397
1397
|
tt(!((typeof C == "undefined" ? "undefined" : $n(C)) === "object" && C.state !== void 0 && D !== void 0), "You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");
|
|
1398
1398
|
var V = "PUSH", B = gt(C, D, u(), A.location);
|
|
1399
1399
|
h.confirmTransitionTo(B, V, e, function(R) {
|
|
@@ -1413,8 +1413,8 @@ var Ns = function(t) {
|
|
|
1413
1413
|
h.confirmTransitionTo(B, V, e, function(R) {
|
|
1414
1414
|
R && (A.entries[A.index] = B, l({ action: V, location: B }));
|
|
1415
1415
|
});
|
|
1416
|
-
},
|
|
1417
|
-
var D =
|
|
1416
|
+
}, O = function(C) {
|
|
1417
|
+
var D = En(A.index + C, 0, A.entries.length - 1), V = "POP", B = A.entries[D];
|
|
1418
1418
|
h.confirmTransitionTo(B, V, e, function(R) {
|
|
1419
1419
|
R ? l({
|
|
1420
1420
|
action: V,
|
|
@@ -1423,9 +1423,9 @@ var Ns = function(t) {
|
|
|
1423
1423
|
}) : l();
|
|
1424
1424
|
});
|
|
1425
1425
|
}, j = function() {
|
|
1426
|
-
return
|
|
1427
|
-
},
|
|
1428
|
-
return
|
|
1426
|
+
return O(-1);
|
|
1427
|
+
}, W = function() {
|
|
1428
|
+
return O(1);
|
|
1429
1429
|
}, H = function(C) {
|
|
1430
1430
|
var D = A.index + C;
|
|
1431
1431
|
return D >= 0 && D < A.entries.length;
|
|
@@ -1443,22 +1443,22 @@ var Ns = function(t) {
|
|
|
1443
1443
|
createHref: b,
|
|
1444
1444
|
push: v,
|
|
1445
1445
|
replace: g,
|
|
1446
|
-
go:
|
|
1446
|
+
go: O,
|
|
1447
1447
|
goBack: j,
|
|
1448
|
-
goForward:
|
|
1448
|
+
goForward: W,
|
|
1449
1449
|
canGo: H,
|
|
1450
1450
|
block: k,
|
|
1451
1451
|
listen: U
|
|
1452
1452
|
};
|
|
1453
1453
|
return A;
|
|
1454
|
-
},
|
|
1454
|
+
}, qs = Object.defineProperty, On = Object.getOwnPropertySymbols, Js = Object.prototype.hasOwnProperty, Ks = Object.prototype.propertyIsEnumerable, An = (n, t, e) => t in n ? qs(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, $t = (n, t) => {
|
|
1455
1455
|
for (var e in t || (t = {}))
|
|
1456
1456
|
Js.call(t, e) && An(n, e, t[e]);
|
|
1457
|
-
if (
|
|
1458
|
-
for (var e of
|
|
1459
|
-
|
|
1457
|
+
if (On)
|
|
1458
|
+
for (var e of On(t))
|
|
1459
|
+
Ks.call(t, e) && An(n, e, t[e]);
|
|
1460
1460
|
return n;
|
|
1461
|
-
},
|
|
1461
|
+
}, qt = (n, t, e) => new Promise((r, s) => {
|
|
1462
1462
|
var i = (c) => {
|
|
1463
1463
|
try {
|
|
1464
1464
|
a(e.next(c));
|
|
@@ -1495,17 +1495,17 @@ const et = (n, t, e, r = {}) => xn(n, e).then((s) => (process.env.NODE_ENV !== "
|
|
|
1495
1495
|
medium: c = S.Session,
|
|
1496
1496
|
duration: h
|
|
1497
1497
|
} = r, l = Ys();
|
|
1498
|
-
return l[a][t] = Ze(i, e, h), c === S.Cookie ?
|
|
1499
|
-
})))), Y = (n, t, e = S.Session) => (Qe(n), typeof t == "undefined" ? (process.env.NODE_ENV !== "production" && I.warn("readStorage: Undefined key passed when reading storage. ", t, e), Promise.resolve(void 0)) : e === S.Cookie ?
|
|
1498
|
+
return l[a][t] = Ze(i, e, h), c === S.Cookie ? ti(n, l) : ni(n, c, l);
|
|
1499
|
+
})))), Y = (n, t, e = S.Session) => (Qe(n), typeof t == "undefined" ? (process.env.NODE_ENV !== "production" && I.warn("readStorage: Undefined key passed when reading storage. ", t, e), Promise.resolve(void 0)) : e === S.Cookie ? Xs(n).then((r) => ae(r, t)) : ei(n, e).then((r) => ae(r, t))), xt = (n) => !!Object.entries(n).filter(([t, e]) => typeof e != "undefined").length, xe = (n) => Object.entries(n).filter(([t, e]) => typeof e != "undefined").forEach(([t, { value: e }]) => {
|
|
1500
1500
|
typeof e == "undefined" && delete n[t];
|
|
1501
|
-
}),
|
|
1501
|
+
}), lr = (n, t) => {
|
|
1502
1502
|
const e = {
|
|
1503
1503
|
tenant: $t($t({}, n.tenant), t.tenant),
|
|
1504
1504
|
implementation: $t($t({}, n.implementation), t.implementation),
|
|
1505
1505
|
widget: $t($t({}, n.widget), t.widget)
|
|
1506
1506
|
};
|
|
1507
1507
|
return xe(e.tenant), xe(e.implementation), xe(e.widget), e;
|
|
1508
|
-
},
|
|
1508
|
+
}, Gs = (n) => Object.entries(n).reduce((t, e) => {
|
|
1509
1509
|
const [r, s] = e;
|
|
1510
1510
|
return Object.entries(s).forEach((i) => {
|
|
1511
1511
|
const [o, { expiration: a }] = i;
|
|
@@ -1527,15 +1527,15 @@ const et = (n, t, e, r = {}) => xn(n, e).then((s) => (process.env.NODE_ENV !== "
|
|
|
1527
1527
|
}, Se = (n, t, e) => {
|
|
1528
1528
|
const r = `${n}=${JSON.stringify(t).trim()}`, s = `expires=${new Date(e).toUTCString()}`, i = "path=/", o = "SameSite=None;Secure";
|
|
1529
1529
|
return document.cookie = `${r}; ${s}; ${i}; ${o}`;
|
|
1530
|
-
},
|
|
1530
|
+
}, Ye = (n) => {
|
|
1531
1531
|
const [t, e, r] = ve(n), s = _e(t) || {}, i = _e(e) || {}, o = _e(r) || {};
|
|
1532
1532
|
return {
|
|
1533
1533
|
tenant: s,
|
|
1534
1534
|
implementation: i,
|
|
1535
1535
|
widget: o
|
|
1536
1536
|
};
|
|
1537
|
-
},
|
|
1538
|
-
const e =
|
|
1537
|
+
}, ur = (n, t) => {
|
|
1538
|
+
const e = Ye(n), r = lr(e, t), [s, i, o] = ve(n), { tenant: a, implementation: c, widget: h } = r, l = Gs(t), u = ye({ days: -1 });
|
|
1539
1539
|
Se(s, a, xt(a) ? l : u), Se(
|
|
1540
1540
|
i,
|
|
1541
1541
|
c,
|
|
@@ -1549,9 +1549,9 @@ const et = (n, t, e, r = {}) => xn(n, e).then((s) => (process.env.NODE_ENV !== "
|
|
|
1549
1549
|
widget: JSON.parse(a)
|
|
1550
1550
|
};
|
|
1551
1551
|
}, Ve = (n, t, e) => {
|
|
1552
|
-
const r = oe(n, t), s =
|
|
1552
|
+
const r = oe(n, t), s = lr(r, e), [i, o, a] = ve(n), { tenant: c, implementation: h, widget: l } = s;
|
|
1553
1553
|
xt(c) ? t.setItem(i, JSON.stringify(c)) : t.removeItem(i), xt(h) ? t.setItem(o, JSON.stringify(h)) : t.removeItem(o), xt(l) ? t.setItem(a, JSON.stringify(l)) : t.removeItem(a);
|
|
1554
|
-
}, Ys = () => ({ tenant: {}, implementation: {}, widget: {} }),
|
|
1554
|
+
}, Ys = () => ({ tenant: {}, implementation: {}, widget: {} }), Zs = (n) => n ? !!n && /* @__PURE__ */ new Date() > new Date(n) : !1, ae = (n, t) => {
|
|
1555
1555
|
const e = n.widget[t] || n.implementation[t] || n.tenant[t];
|
|
1556
1556
|
return e == null ? void 0 : e.value;
|
|
1557
1557
|
}, Ze = (n, t, e) => e ? {
|
|
@@ -1562,31 +1562,31 @@ const et = (n, t, e, r = {}) => xn(n, e).then((s) => (process.env.NODE_ENV !== "
|
|
|
1562
1562
|
value: n,
|
|
1563
1563
|
category: t
|
|
1564
1564
|
}, Qt = (n, t) => {
|
|
1565
|
-
const e =
|
|
1565
|
+
const e = ns(n);
|
|
1566
1566
|
return Object.entries(e).forEach(([r, s]) => {
|
|
1567
1567
|
Object.entries(s).forEach(([i, o]) => {
|
|
1568
1568
|
const { expiration: a, category: c } = o;
|
|
1569
|
-
(
|
|
1569
|
+
(Zs(a) || Qs(t, c)) && (s[i] = Ze(void 0, c, a));
|
|
1570
1570
|
});
|
|
1571
1571
|
}), e;
|
|
1572
1572
|
}, xn = (n, t) => Y(n, "storagePolicy", S.Cookie).then(
|
|
1573
1573
|
(e = [P.Necessary]) => !!t && e.indexOf(t) === -1
|
|
1574
|
-
),
|
|
1575
|
-
const t =
|
|
1574
|
+
), Qs = (n = [P.Necessary], t) => !!t && n.indexOf(t) === -1, Qe = (n) => {
|
|
1575
|
+
const t = Ye(n), e = oe(n, window.localStorage), r = oe(n, sessionStorage), s = ae(t, "storagePolicy"), [i, o, a] = [
|
|
1576
1576
|
t,
|
|
1577
1577
|
e,
|
|
1578
1578
|
r
|
|
1579
1579
|
].map((c) => Qt(c, s));
|
|
1580
|
-
|
|
1580
|
+
ur(n, i), Ve(n, window.localStorage, o), Ve(n, window.sessionStorage, a);
|
|
1581
1581
|
}, ye = (n = { days: 30 }) => {
|
|
1582
1582
|
const { days: t = 0, hours: e = 0, minutes: r = 0, seconds: s = 0 } = n, i = /* @__PURE__ */ new Date();
|
|
1583
1583
|
return i.setTime(i.getTime() + e * 60 * 60 * 1e3), i.setTime(i.getTime() + t * 24 * 60 * 60 * 1e3), i.setTime(i.getTime() + r * 60 * 1e3), i.setTime(i.getTime() + s * 1e3), i.toISOString();
|
|
1584
|
-
},
|
|
1584
|
+
}, Xs = (n) => Q(document)(() => Ye(n)), ti = (n, t) => Q(document)(() => ur(n, t)), ei = (n, t) => {
|
|
1585
1585
|
const e = t === S.Local ? window.localStorage : window.sessionStorage;
|
|
1586
|
-
return
|
|
1587
|
-
},
|
|
1586
|
+
return Q(e)(() => oe(n, e));
|
|
1587
|
+
}, ni = (n, t, e) => {
|
|
1588
1588
|
const r = t === S.Local ? window.localStorage : window.sessionStorage;
|
|
1589
|
-
return
|
|
1589
|
+
return Q(r)(() => Ve(n, r, e));
|
|
1590
1590
|
};
|
|
1591
1591
|
let Xt = class {
|
|
1592
1592
|
constructor() {
|
|
@@ -1597,8 +1597,8 @@ let Xt = class {
|
|
|
1597
1597
|
};
|
|
1598
1598
|
}
|
|
1599
1599
|
setItem(t, e) {
|
|
1600
|
-
return
|
|
1601
|
-
return
|
|
1600
|
+
return qt(this, arguments, function* (r, s, i = {}) {
|
|
1601
|
+
return Q(this)(() => {
|
|
1602
1602
|
const o = Qt(this.memory, [P.Necessary]), { scope: a = Ct.Tenant, expiration: c } = i;
|
|
1603
1603
|
o[a][r] = Ze(
|
|
1604
1604
|
s,
|
|
@@ -1615,8 +1615,8 @@ let Xt = class {
|
|
|
1615
1615
|
});
|
|
1616
1616
|
}
|
|
1617
1617
|
getItem(t) {
|
|
1618
|
-
return
|
|
1619
|
-
return
|
|
1618
|
+
return qt(this, null, function* () {
|
|
1619
|
+
return Q(this)(() => {
|
|
1620
1620
|
const e = Qt(this.memory, [P.Necessary]);
|
|
1621
1621
|
process.env.NODE_ENV !== "production" && I.warn(
|
|
1622
1622
|
`StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value fetched from legacy memory storage.
|
|
@@ -1629,8 +1629,8 @@ let Xt = class {
|
|
|
1629
1629
|
});
|
|
1630
1630
|
}
|
|
1631
1631
|
removeItem(t) {
|
|
1632
|
-
return
|
|
1633
|
-
return
|
|
1632
|
+
return qt(this, null, function* () {
|
|
1633
|
+
return Q(this)(() => {
|
|
1634
1634
|
const e = Qt(this.memory, [P.Necessary]);
|
|
1635
1635
|
delete e.tenant[t], delete e.implementation[t], delete e.widget[t], this.memory = e, process.env.NODE_ENV !== "production" && I.warn(
|
|
1636
1636
|
`StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value removed from memory.
|
|
@@ -1641,11 +1641,11 @@ let Xt = class {
|
|
|
1641
1641
|
});
|
|
1642
1642
|
}
|
|
1643
1643
|
clear() {
|
|
1644
|
-
return
|
|
1644
|
+
return qt(this, null, function* () {
|
|
1645
1645
|
return Promise.resolve();
|
|
1646
1646
|
});
|
|
1647
1647
|
}
|
|
1648
|
-
},
|
|
1648
|
+
}, ri = class {
|
|
1649
1649
|
constructor() {
|
|
1650
1650
|
this.cookies = new Xt(), this.session = new Xt(), this.local = new Xt();
|
|
1651
1651
|
}
|
|
@@ -1663,7 +1663,7 @@ const Pe = (n, t, e, ...r) => {
|
|
|
1663
1663
|
console.error(s, ...r);
|
|
1664
1664
|
break;
|
|
1665
1665
|
}
|
|
1666
|
-
},
|
|
1666
|
+
}, si = (n) => {
|
|
1667
1667
|
const t = n.container || n;
|
|
1668
1668
|
return {
|
|
1669
1669
|
info: (e, ...r) => Pe(t, "info", e, ...r),
|
|
@@ -1672,7 +1672,7 @@ const Pe = (n, t, e, ...r) => {
|
|
|
1672
1672
|
};
|
|
1673
1673
|
};
|
|
1674
1674
|
var ce = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(ce || {}), ft = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(ft || {});
|
|
1675
|
-
const
|
|
1675
|
+
const ii = (n, t, e, r) => {
|
|
1676
1676
|
try {
|
|
1677
1677
|
const s = new t(e, r);
|
|
1678
1678
|
return {
|
|
@@ -1699,7 +1699,7 @@ const si = (n, t, e, r) => {
|
|
|
1699
1699
|
function _n(n, t) {
|
|
1700
1700
|
return typeof n == "undefined" ? t : n;
|
|
1701
1701
|
}
|
|
1702
|
-
let
|
|
1702
|
+
let oi = class {
|
|
1703
1703
|
constructor(t = {}) {
|
|
1704
1704
|
this.part = t;
|
|
1705
1705
|
}
|
|
@@ -1726,11 +1726,11 @@ let ii = class {
|
|
|
1726
1726
|
return this.part;
|
|
1727
1727
|
}
|
|
1728
1728
|
};
|
|
1729
|
-
const
|
|
1730
|
-
const t = new
|
|
1729
|
+
const dr = (n) => {
|
|
1730
|
+
const t = new oi({});
|
|
1731
1731
|
return n(t), t.get();
|
|
1732
1732
|
};
|
|
1733
|
-
|
|
1733
|
+
dr((n) => {
|
|
1734
1734
|
n.createCommand(
|
|
1735
1735
|
"types.register",
|
|
1736
1736
|
{ scope: ce.Implementation, stage: ft.Pre },
|
|
@@ -1768,7 +1768,7 @@ ur((n) => {
|
|
|
1768
1768
|
a
|
|
1769
1769
|
) : r;
|
|
1770
1770
|
try {
|
|
1771
|
-
const p =
|
|
1771
|
+
const p = ii(
|
|
1772
1772
|
o,
|
|
1773
1773
|
a,
|
|
1774
1774
|
i,
|
|
@@ -1776,7 +1776,7 @@ ur((n) => {
|
|
|
1776
1776
|
);
|
|
1777
1777
|
i.get("$plugins").push(p), l && p.invoke("initialize", null);
|
|
1778
1778
|
} catch (p) {
|
|
1779
|
-
|
|
1779
|
+
si(t).warn("Error when initializing plugin", p);
|
|
1780
1780
|
}
|
|
1781
1781
|
};
|
|
1782
1782
|
t.container.get("$instance") ? h(!0) : t.events.subscribeOnce("widget:instance-created", () => h(!1));
|
|
@@ -1809,7 +1809,7 @@ ur((n) => {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
);
|
|
1811
1811
|
});
|
|
1812
|
-
|
|
1812
|
+
dr((n) => {
|
|
1813
1813
|
n.createCommand("storage", (t) => (e = {}) => {
|
|
1814
1814
|
const { consent: r } = e;
|
|
1815
1815
|
if (typeof r != "undefined") {
|
|
@@ -1853,33 +1853,33 @@ ur((n) => {
|
|
|
1853
1853
|
}
|
|
1854
1854
|
});
|
|
1855
1855
|
});
|
|
1856
|
-
const
|
|
1856
|
+
const ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1857
1857
|
__proto__: null,
|
|
1858
1858
|
StorageCategory: P,
|
|
1859
1859
|
StorageMedium: S,
|
|
1860
|
-
StorageProvider:
|
|
1860
|
+
StorageProvider: ri,
|
|
1861
1861
|
StorageScope: Ct,
|
|
1862
1862
|
StorageService: Xt,
|
|
1863
1863
|
createStorageWriter: et,
|
|
1864
1864
|
readStorage: Y
|
|
1865
1865
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1866
|
-
var
|
|
1866
|
+
var ci = Object.defineProperty, hi = Object.defineProperties, li = Object.getOwnPropertyDescriptors, he = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, Sn = (n, t, e) => t in n ? ci(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, Ot = (n, t) => {
|
|
1867
1867
|
for (var e in t || (t = {}))
|
|
1868
|
-
|
|
1868
|
+
pr.call(t, e) && Sn(n, e, t[e]);
|
|
1869
1869
|
if (he)
|
|
1870
1870
|
for (var e of he(t))
|
|
1871
|
-
|
|
1871
|
+
gr.call(t, e) && Sn(n, e, t[e]);
|
|
1872
1872
|
return n;
|
|
1873
|
-
},
|
|
1873
|
+
}, fr = (n, t) => hi(n, li(t)), ui = (n, t) => {
|
|
1874
1874
|
var e = {};
|
|
1875
1875
|
for (var r in n)
|
|
1876
|
-
|
|
1876
|
+
pr.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);
|
|
1877
1877
|
if (n != null && he)
|
|
1878
1878
|
for (var r of he(n))
|
|
1879
|
-
t.indexOf(r) < 0 &&
|
|
1879
|
+
t.indexOf(r) < 0 && gr.call(n, r) && (e[r] = n[r]);
|
|
1880
1880
|
return e;
|
|
1881
1881
|
};
|
|
1882
|
-
function
|
|
1882
|
+
function mr(n) {
|
|
1883
1883
|
if (n.__esModule)
|
|
1884
1884
|
return n;
|
|
1885
1885
|
var t = n.default;
|
|
@@ -1906,9 +1906,9 @@ function fr(n) {
|
|
|
1906
1906
|
});
|
|
1907
1907
|
}), e;
|
|
1908
1908
|
}
|
|
1909
|
-
var
|
|
1909
|
+
var vr = function() {
|
|
1910
1910
|
};
|
|
1911
|
-
process.env.NODE_ENV !== "production" && (
|
|
1911
|
+
process.env.NODE_ENV !== "production" && (vr = function(n, t, e) {
|
|
1912
1912
|
var r = arguments.length;
|
|
1913
1913
|
e = new Array(r > 2 ? r - 2 : 0);
|
|
1914
1914
|
for (var s = 2; s < r; s++)
|
|
@@ -1932,11 +1932,11 @@ process.env.NODE_ENV !== "production" && (mr = function(n, t, e) {
|
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
1934
|
});
|
|
1935
|
-
var
|
|
1936
|
-
function
|
|
1935
|
+
var di = vr, pi = di, Pn = gi(pi);
|
|
1936
|
+
function gi(n) {
|
|
1937
1937
|
return n && n.__esModule ? n : { default: n };
|
|
1938
1938
|
}
|
|
1939
|
-
var
|
|
1939
|
+
var fi = function() {
|
|
1940
1940
|
var n = null, t = function(o) {
|
|
1941
1941
|
return (0, Pn.default)(n == null, "A history supports only one prompt at a time"), n = o, function() {
|
|
1942
1942
|
n === o && (n = null);
|
|
@@ -1969,11 +1969,11 @@ var gi = function() {
|
|
|
1969
1969
|
appendListener: s,
|
|
1970
1970
|
notifyListeners: i
|
|
1971
1971
|
};
|
|
1972
|
-
},
|
|
1973
|
-
|
|
1972
|
+
}, yr = fi, br;
|
|
1973
|
+
br = function(n, t) {
|
|
1974
1974
|
return t(window.confirm(n));
|
|
1975
1975
|
};
|
|
1976
|
-
function
|
|
1976
|
+
function Jt(n) {
|
|
1977
1977
|
return n.charAt(0) === "/";
|
|
1978
1978
|
}
|
|
1979
1979
|
function Ce(n, t) {
|
|
@@ -1981,9 +1981,9 @@ function Ce(n, t) {
|
|
|
1981
1981
|
n[e] = n[r];
|
|
1982
1982
|
n.pop();
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1985
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", e = n && n.split("/") || [], r = t && t.split("/") || [], s = n &&
|
|
1986
|
-
if (n &&
|
|
1984
|
+
function mi(n) {
|
|
1985
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", e = n && n.split("/") || [], r = t && t.split("/") || [], s = n && Jt(n), i = t && Jt(t), o = s || i;
|
|
1986
|
+
if (n && Jt(n) ? r = e : e.length && (r.pop(), r = r.concat(e)), !r.length)
|
|
1987
1987
|
return "/";
|
|
1988
1988
|
var a = void 0;
|
|
1989
1989
|
if (r.length) {
|
|
@@ -1998,14 +1998,14 @@ function fi(n) {
|
|
|
1998
1998
|
if (!o)
|
|
1999
1999
|
for (; h--; h)
|
|
2000
2000
|
r.unshift("..");
|
|
2001
|
-
o && r[0] !== "" && (!r[0] || !
|
|
2001
|
+
o && r[0] !== "" && (!r[0] || !Jt(r[0])) && r.unshift("");
|
|
2002
2002
|
var d = r.join("/");
|
|
2003
2003
|
return a && d.substr(-1) !== "/" && (d += "/"), d;
|
|
2004
2004
|
}
|
|
2005
|
-
const
|
|
2005
|
+
const vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2006
2006
|
__proto__: null,
|
|
2007
|
-
default:
|
|
2008
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2007
|
+
default: mi
|
|
2008
|
+
}, Symbol.toStringTag, { value: "Module" })), yi = /* @__PURE__ */ mr(vi);
|
|
2009
2009
|
var Cn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
|
2010
2010
|
return typeof n;
|
|
2011
2011
|
} : function(n) {
|
|
@@ -2034,11 +2034,11 @@ function te(n, t) {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
return !1;
|
|
2036
2036
|
}
|
|
2037
|
-
const
|
|
2037
|
+
const bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2038
2038
|
__proto__: null,
|
|
2039
2039
|
default: te
|
|
2040
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2041
|
-
var nt = {}, ot,
|
|
2040
|
+
}, Symbol.toStringTag, { value: "Module" })), wi = /* @__PURE__ */ mr(bi);
|
|
2041
|
+
var nt = {}, ot, wr, ze, Tt;
|
|
2042
2042
|
nt.__esModule = !0;
|
|
2043
2043
|
Tt = nt.addLeadingSlash = function(n) {
|
|
2044
2044
|
return n.charAt(0) === "/" ? n : "/" + n;
|
|
@@ -2046,13 +2046,13 @@ Tt = nt.addLeadingSlash = function(n) {
|
|
|
2046
2046
|
ze = nt.stripLeadingSlash = function(n) {
|
|
2047
2047
|
return n.charAt(0) === "/" ? n.substr(1) : n;
|
|
2048
2048
|
};
|
|
2049
|
-
var
|
|
2049
|
+
var $i = nt.hasBasename = function(n, t) {
|
|
2050
2050
|
return new RegExp("^" + t + "(\\/|\\?|#|$)", "i").test(n);
|
|
2051
2051
|
};
|
|
2052
2052
|
nt.stripBasename = function(n, t) {
|
|
2053
|
-
return
|
|
2053
|
+
return $i(n, t) ? n.substr(t.length) : n;
|
|
2054
2054
|
};
|
|
2055
|
-
|
|
2055
|
+
wr = nt.stripTrailingSlash = function(n) {
|
|
2056
2056
|
return n.charAt(n.length - 1) === "/" ? n.slice(0, -1) : n;
|
|
2057
2057
|
};
|
|
2058
2058
|
nt.parsePath = function(n) {
|
|
@@ -2069,31 +2069,31 @@ ot = nt.createPath = function(n) {
|
|
|
2069
2069
|
var t = n.pathname, e = n.search, r = n.hash, s = t || "/";
|
|
2070
2070
|
return e && e !== "?" && (s += e.charAt(0) === "?" ? e : "?" + e), r && r !== "#" && (s += r.charAt(0) === "#" ? r : "#" + r), s;
|
|
2071
2071
|
};
|
|
2072
|
-
var be,
|
|
2072
|
+
var be, $r = be = void 0, Ei = Object.assign || function(n) {
|
|
2073
2073
|
for (var t = 1; t < arguments.length; t++) {
|
|
2074
2074
|
var e = arguments[t];
|
|
2075
2075
|
for (var r in e)
|
|
2076
2076
|
Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
|
|
2077
2077
|
}
|
|
2078
2078
|
return n;
|
|
2079
|
-
}, Oi =
|
|
2080
|
-
function
|
|
2079
|
+
}, Oi = yi, Ai = Er(Oi), xi = wi, _i = Er(xi), Si = nt;
|
|
2080
|
+
function Er(n) {
|
|
2081
2081
|
return n && n.__esModule ? n : { default: n };
|
|
2082
2082
|
}
|
|
2083
2083
|
be = function(n, t, e, r) {
|
|
2084
2084
|
var s = void 0;
|
|
2085
|
-
typeof n == "string" ? (s = (0,
|
|
2085
|
+
typeof n == "string" ? (s = (0, Si.parsePath)(n), s.state = t) : (s = Ei({}, n), s.pathname === void 0 && (s.pathname = ""), s.search ? s.search.charAt(0) !== "?" && (s.search = "?" + s.search) : s.search = "", s.hash ? s.hash.charAt(0) !== "#" && (s.hash = "#" + s.hash) : s.hash = "", t !== void 0 && s.state === void 0 && (s.state = t));
|
|
2086
2086
|
try {
|
|
2087
2087
|
s.pathname = decodeURI(s.pathname);
|
|
2088
2088
|
} catch (i) {
|
|
2089
2089
|
throw i instanceof URIError ? new URIError('Pathname "' + s.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.') : i;
|
|
2090
2090
|
}
|
|
2091
|
-
return e && (s.key = e), r ? s.pathname ? s.pathname.charAt(0) !== "/" && (s.pathname = (0,
|
|
2091
|
+
return e && (s.key = e), r ? s.pathname ? s.pathname.charAt(0) !== "/" && (s.pathname = (0, Ai.default)(s.pathname, r.pathname)) : s.pathname = r.pathname : s.pathname || (s.pathname = "/"), s;
|
|
2092
2092
|
};
|
|
2093
|
-
|
|
2094
|
-
return n.pathname === t.pathname && n.search === t.search && n.hash === t.hash && n.key === t.key && (0,
|
|
2093
|
+
$r = function(n, t) {
|
|
2094
|
+
return n.pathname === t.pathname && n.search === t.search && n.hash === t.hash && n.key === t.key && (0, _i.default)(n.state, t.state);
|
|
2095
2095
|
};
|
|
2096
|
-
const Or = "/",
|
|
2096
|
+
const Or = "/", Ar = "./", Pi = new RegExp(
|
|
2097
2097
|
[
|
|
2098
2098
|
// Match escaped characters that would otherwise appear in future matches.
|
|
2099
2099
|
// This allows the user to escape special characters that won't transform.
|
|
@@ -2106,38 +2106,38 @@ const Or = "/", Er = "./", Si = new RegExp(
|
|
|
2106
2106
|
"(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"
|
|
2107
2107
|
].join("|"),
|
|
2108
2108
|
"g"
|
|
2109
|
-
),
|
|
2109
|
+
), xr = (n, t) => {
|
|
2110
2110
|
const e = [];
|
|
2111
2111
|
let r = 0, s = 0, i = "";
|
|
2112
|
-
const o = t && t.delimiter || Or, a = t && t.delimiters ||
|
|
2112
|
+
const o = t && t.delimiter || Or, a = t && t.delimiters || Ar;
|
|
2113
2113
|
let c = !1, h;
|
|
2114
|
-
for (; (h =
|
|
2114
|
+
for (; (h = Pi.exec(n)) !== null; ) {
|
|
2115
2115
|
const l = h[0], u = h[1], d = h.index;
|
|
2116
2116
|
if (i += n.slice(s, d), s = d + l.length, u) {
|
|
2117
2117
|
i += u[1], c = !0;
|
|
2118
2118
|
continue;
|
|
2119
2119
|
}
|
|
2120
2120
|
let p = "";
|
|
2121
|
-
const b = n[s], v = h[2], g = h[3],
|
|
2121
|
+
const b = n[s], v = h[2], g = h[3], O = h[4], j = h[5];
|
|
2122
2122
|
if (!c && i.length) {
|
|
2123
2123
|
const N = i.length - 1;
|
|
2124
2124
|
a.indexOf(i[N]) > -1 && (p = i[N], i = i.slice(0, N));
|
|
2125
2125
|
}
|
|
2126
2126
|
i && (e.push(i), i = "", c = !1);
|
|
2127
|
-
const
|
|
2127
|
+
const W = p !== "" && b !== void 0 && b !== p, H = j === "+" || j === "*", k = j === "?" || j === "*", U = p || o, A = g || O;
|
|
2128
2128
|
e.push({
|
|
2129
2129
|
delimiter: U,
|
|
2130
2130
|
optional: k,
|
|
2131
2131
|
repeat: H,
|
|
2132
|
-
partial:
|
|
2132
|
+
partial: W,
|
|
2133
2133
|
name: v || r++,
|
|
2134
2134
|
// tslint:disable-line:no-increment-decrement
|
|
2135
2135
|
prefix: p,
|
|
2136
|
-
pattern: A ?
|
|
2136
|
+
pattern: A ? Ni(A) : "[^" + Mt(U) + "]+?"
|
|
2137
2137
|
});
|
|
2138
2138
|
}
|
|
2139
2139
|
return (i || s < n.length) && e.push(i + n.substr(s)), e;
|
|
2140
|
-
},
|
|
2140
|
+
}, Ci = (n, t) => ki(xr(n, t)), ki = (n) => {
|
|
2141
2141
|
const t = new Array(n.length);
|
|
2142
2142
|
for (let e = 0; e < n.length; e++)
|
|
2143
2143
|
typeof n[e] == "object" && (t[e] = new RegExp("^(?:" + n[e].pattern + ")$"));
|
|
@@ -2189,7 +2189,7 @@ const Or = "/", Er = "./", Si = new RegExp(
|
|
|
2189
2189
|
}
|
|
2190
2190
|
return s;
|
|
2191
2191
|
};
|
|
2192
|
-
}, Mt = (n) => n.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1"),
|
|
2192
|
+
}, Mt = (n) => n.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1"), Ni = (n) => n.replace(/([=!:$/()])/g, "\\$1"), _r = (n) => n && n.sensitive ? "" : "i", Mi = (n, t) => {
|
|
2193
2193
|
if (!t)
|
|
2194
2194
|
return n;
|
|
2195
2195
|
const e = n.source.match(/\((?!\?)/g);
|
|
@@ -2205,14 +2205,14 @@ const Or = "/", Er = "./", Si = new RegExp(
|
|
|
2205
2205
|
pattern: ""
|
|
2206
2206
|
});
|
|
2207
2207
|
return n;
|
|
2208
|
-
},
|
|
2208
|
+
}, Li = (n, t, e) => {
|
|
2209
2209
|
const r = [];
|
|
2210
2210
|
for (let s = 0; s < n.length; s++)
|
|
2211
|
-
r.push(
|
|
2212
|
-
return new RegExp("(?:" + r.join("|") + ")",
|
|
2213
|
-
},
|
|
2211
|
+
r.push(Sr(n[s], t, e).source);
|
|
2212
|
+
return new RegExp("(?:" + r.join("|") + ")", _r(e));
|
|
2213
|
+
}, Di = (n, t, e) => Ti(xr(n, e), t, e), Ti = (n, t, e) => {
|
|
2214
2214
|
e = e || {};
|
|
2215
|
-
const r = e.strict, s = e.end !== !1, i = Mt(e.delimiter || Or), o = e.delimiters ||
|
|
2215
|
+
const r = e.strict, s = e.end !== !1, i = Mt(e.delimiter || Or), o = e.delimiters || Ar, a = [].concat(e.endsWith || []).map(Mt).concat("$").join("|");
|
|
2216
2216
|
let c = "", h = !1;
|
|
2217
2217
|
for (let l = 0; l < n.length; l++) {
|
|
2218
2218
|
const u = n[l];
|
|
@@ -2223,16 +2223,16 @@ const Or = "/", Er = "./", Si = new RegExp(
|
|
|
2223
2223
|
t && t.push(u), u.optional ? u.partial ? c += d + "(" + p + ")?" : c += "(?:" + d + "(" + p + "))?" : c += d + "(" + p + ")";
|
|
2224
2224
|
}
|
|
2225
2225
|
}
|
|
2226
|
-
return s ? (r || (c += "(?:" + i + ")?"), c += a === "$" ? "$" : "(?=" + a + ")") : (r || (c += "(?:" + i + "(?=" + a + "))?"), h || (c += "(?=" + i + "|" + a + ")")), new RegExp("^" + c,
|
|
2227
|
-
},
|
|
2228
|
-
var
|
|
2226
|
+
return s ? (r || (c += "(?:" + i + ")?"), c += a === "$" ? "$" : "(?=" + a + ")") : (r || (c += "(?:" + i + "(?=" + a + "))?"), h || (c += "(?=" + i + "|" + a + ")")), new RegExp("^" + c, _r(e));
|
|
2227
|
+
}, Sr = (n, t, e) => n instanceof RegExp ? Mi(n, t || []) : Array.isArray(n) ? Li(n, t, e) : Di(n, t, e), le = Sr;
|
|
2228
|
+
var G = /* @__PURE__ */ ((n) => (n.scopedHash = "scopedHash", n.hash = "hash", n.browser = "browser", n.memory = "memory", n))(G || {}), dt = /* @__PURE__ */ ((n) => (n.storage = "storage", n.path = "path", n.initialPath = "initial", n))(dt || {});
|
|
2229
2229
|
const Lt = (n, t) => {
|
|
2230
2230
|
const e = [], r = le(t, e).exec(n);
|
|
2231
2231
|
if (!r)
|
|
2232
2232
|
return {};
|
|
2233
2233
|
const [s, ...i] = r;
|
|
2234
2234
|
return e.reduce((o, a, c) => (o[a.name] = i[c], o), {});
|
|
2235
|
-
},
|
|
2235
|
+
}, ji = (n) => Object.keys(n).reduce((t, e) => {
|
|
2236
2236
|
const r = typeof n[e] == "string" ? n[e].replace("&", "%20") : n[e];
|
|
2237
2237
|
let s = `${e}=${r}`;
|
|
2238
2238
|
return t.length > 1 && (s = "&".concat(s)), t.concat(s);
|
|
@@ -2243,10 +2243,10 @@ const Lt = (n, t) => {
|
|
|
2243
2243
|
return;
|
|
2244
2244
|
}
|
|
2245
2245
|
return e;
|
|
2246
|
-
},
|
|
2246
|
+
}, Pr = (n) => n.length ? n.slice(1).split("&").map((t) => t.split("=")).reduce((t, e) => {
|
|
2247
2247
|
const [r, s] = e.map(encodeURI).map(decodeURIComponent);
|
|
2248
|
-
return
|
|
2249
|
-
}, {}) : {},
|
|
2248
|
+
return fr(Ot({}, t), { [r]: decodeURIComponent(s).replace("%20", "&") });
|
|
2249
|
+
}, {}) : {}, Ri = (n, t) => {
|
|
2250
2250
|
const e = t.map((r) => ee(n, r)).reduce(
|
|
2251
2251
|
(r, s) => {
|
|
2252
2252
|
if (s === null)
|
|
@@ -2254,7 +2254,7 @@ const Lt = (n, t) => {
|
|
|
2254
2254
|
const i = s.split("?")[1];
|
|
2255
2255
|
let o = 0;
|
|
2256
2256
|
if (i) {
|
|
2257
|
-
const a =
|
|
2257
|
+
const a = Pr(`?${i}`);
|
|
2258
2258
|
o = Object.keys(a).length;
|
|
2259
2259
|
}
|
|
2260
2260
|
return !r.path || r.count && o < r.count ? {
|
|
@@ -2268,12 +2268,12 @@ const Lt = (n, t) => {
|
|
|
2268
2268
|
}, ee = (n, t) => {
|
|
2269
2269
|
const e = yt(n);
|
|
2270
2270
|
if (Array.isArray(t)) {
|
|
2271
|
-
const c =
|
|
2271
|
+
const c = Ri(e, t);
|
|
2272
2272
|
if (!c)
|
|
2273
2273
|
throw new Error("Unable to match path.");
|
|
2274
2274
|
return c;
|
|
2275
2275
|
}
|
|
2276
|
-
const r =
|
|
2276
|
+
const r = Ci(t);
|
|
2277
2277
|
let s = t;
|
|
2278
2278
|
try {
|
|
2279
2279
|
s = r(e);
|
|
@@ -2283,8 +2283,8 @@ const Lt = (n, t) => {
|
|
|
2283
2283
|
const i = [];
|
|
2284
2284
|
le(t, i);
|
|
2285
2285
|
const o = Object.keys(e).reduce((c, h) => (i.find((l) => l.name === h) || c.push(h), c), []), a = {};
|
|
2286
|
-
return o.forEach((c) => a[c] = e[c]), Object.keys(a).forEach((c) => a[c] === null && delete a[c]), Object.keys(a).length > 0 ? `${s}${
|
|
2287
|
-
},
|
|
2286
|
+
return o.forEach((c) => a[c] = e[c]), Object.keys(a).forEach((c) => a[c] === null && delete a[c]), Object.keys(a).length > 0 ? `${s}${ji(a)}` : s;
|
|
2287
|
+
}, Et = (n, t) => {
|
|
2288
2288
|
let e = n;
|
|
2289
2289
|
return e.indexOf("?") > -1 && (e = e.substring(0, e.indexOf("?"))), e.indexOf(";") > -1 && (e = e.substring(0, e.indexOf(";"))), e === "" && (e = "/"), t.reduce((r, s) => {
|
|
2290
2290
|
if (Array.isArray(s.path))
|
|
@@ -2294,14 +2294,14 @@ const Lt = (n, t) => {
|
|
|
2294
2294
|
const i = [];
|
|
2295
2295
|
return le(s.path, i).exec(e || "") && !r ? s : r;
|
|
2296
2296
|
}, void 0);
|
|
2297
|
-
},
|
|
2297
|
+
}, Ii = (n) => {
|
|
2298
2298
|
let t = n.get("historyTransitionManager");
|
|
2299
|
-
return t || (t =
|
|
2299
|
+
return t || (t = yr(), n.parent && n.parent.register("historyTransitionManager", t)), t;
|
|
2300
2300
|
}, Dt = (n, t = null) => n ? be(t ? t(n) : n) : {
|
|
2301
2301
|
pathname: "",
|
|
2302
2302
|
search: "",
|
|
2303
2303
|
hash: ""
|
|
2304
|
-
},
|
|
2304
|
+
}, Hi = (n, t) => {
|
|
2305
2305
|
if (yt(n), yt(t), Object.keys(n).length !== Object.keys(t).length)
|
|
2306
2306
|
return !1;
|
|
2307
2307
|
if (Object.keys(n).length === 0 && Object.keys(t).length === 0)
|
|
@@ -2310,13 +2310,13 @@ const Lt = (n, t) => {
|
|
|
2310
2310
|
return Object.keys(t).forEach((r) => {
|
|
2311
2311
|
t[r] !== n[r] && (e = !1);
|
|
2312
2312
|
}), e;
|
|
2313
|
-
},
|
|
2313
|
+
}, Ui = (n) => {
|
|
2314
2314
|
if (typeof n.mode == "string") {
|
|
2315
|
-
if (n.mode ===
|
|
2315
|
+
if (n.mode === G.memory)
|
|
2316
2316
|
return !0;
|
|
2317
2317
|
} else if (n.mode[1]) {
|
|
2318
2318
|
const [t, { sticky: e }] = n.mode;
|
|
2319
|
-
if (t ===
|
|
2319
|
+
if (t === G.memory)
|
|
2320
2320
|
return typeof e == "undefined" ? !0 : e;
|
|
2321
2321
|
}
|
|
2322
2322
|
return !1;
|
|
@@ -2326,7 +2326,7 @@ const Lt = (n, t) => {
|
|
|
2326
2326
|
name: e,
|
|
2327
2327
|
params: {}
|
|
2328
2328
|
} : null;
|
|
2329
|
-
}, kn = "hashchange",
|
|
2329
|
+
}, kn = "hashchange", Bi = {
|
|
2330
2330
|
hashbang: {
|
|
2331
2331
|
encodePath: (n) => n.charAt(0) === "!" ? n : "!/" + ze(n),
|
|
2332
2332
|
decodePath: (n) => n.charAt(0) === "!" ? n.substr(1) : n
|
|
@@ -2356,29 +2356,29 @@ const Lt = (n, t) => {
|
|
|
2356
2356
|
return e.forEach(({ to: s, from: i }) => {
|
|
2357
2357
|
r = r.replace(i, s);
|
|
2358
2358
|
}), r;
|
|
2359
|
-
},
|
|
2360
|
-
const t = window.history, { getUserConfirmation: e =
|
|
2359
|
+
}, Vi = (n = {}) => {
|
|
2360
|
+
const t = window.history, { getUserConfirmation: e = br, hashType: r = "slash" } = n, s = n.basename ? wr(Tt(n.basename)) : "", { encodePath: i } = Bi[r], o = () => {
|
|
2361
2361
|
const f = at(), w = l(f);
|
|
2362
2362
|
return Dt(w, ne);
|
|
2363
|
-
}, a = n.transitionManager ||
|
|
2363
|
+
}, a = n.transitionManager || yr(), c = (f) => {
|
|
2364
2364
|
Object.assign(R, f), R.length = t.length, a.notifyListeners(R.location, R.action, n.widgetName);
|
|
2365
2365
|
};
|
|
2366
2366
|
let h = !1;
|
|
2367
2367
|
const l = (f) => {
|
|
2368
2368
|
const w = ($) => {
|
|
2369
2369
|
function _(x, m) {
|
|
2370
|
-
const
|
|
2370
|
+
const E = {};
|
|
2371
2371
|
let M;
|
|
2372
2372
|
for (; M = m.exec(x); )
|
|
2373
|
-
|
|
2374
|
-
return
|
|
2373
|
+
E[M[1]] = M[2];
|
|
2374
|
+
return E;
|
|
2375
2375
|
}
|
|
2376
2376
|
return _($, /([^#?&=]+)=([^&#]*)(?!.*?\#)/gi) || null;
|
|
2377
2377
|
}, y = "humany-" + n.widgetName;
|
|
2378
2378
|
return w(f)[y];
|
|
2379
2379
|
}, u = () => {
|
|
2380
2380
|
const f = o(), w = R.location;
|
|
2381
|
-
!h &&
|
|
2381
|
+
!h && $r(w, f) || d(f);
|
|
2382
2382
|
}, d = (f) => {
|
|
2383
2383
|
if (h)
|
|
2384
2384
|
h = !1, c();
|
|
@@ -2404,8 +2404,8 @@ const Lt = (n, t) => {
|
|
|
2404
2404
|
}, b = at(), v = i(b);
|
|
2405
2405
|
b !== v && Mn(v);
|
|
2406
2406
|
let g = [];
|
|
2407
|
-
const
|
|
2408
|
-
|
|
2407
|
+
const O = o();
|
|
2408
|
+
O.pathname !== null && g.push(ot(O));
|
|
2409
2409
|
const j = (f = "") => {
|
|
2410
2410
|
const w = [
|
|
2411
2411
|
{ from: /\?+/gi, to: ";" },
|
|
@@ -2417,30 +2417,30 @@ const Lt = (n, t) => {
|
|
|
2417
2417
|
return w.forEach(({ to: $, from: _ }) => {
|
|
2418
2418
|
y = y.replace(_, $);
|
|
2419
2419
|
}), y;
|
|
2420
|
-
},
|
|
2420
|
+
}, W = (f, w, y) => {
|
|
2421
2421
|
let $ = "", _ = !1;
|
|
2422
2422
|
return f.split("&").forEach((x) => {
|
|
2423
|
-
const m = x.split("="),
|
|
2424
|
-
if (
|
|
2423
|
+
const m = x.split("="), E = m[0], M = m[1];
|
|
2424
|
+
if (E === w) {
|
|
2425
2425
|
if (_ = !0, y === null)
|
|
2426
2426
|
return;
|
|
2427
|
-
$.length > 0 && ($ += "&"), typeof y != "undefined" ? $ +=
|
|
2427
|
+
$.length > 0 && ($ += "&"), typeof y != "undefined" ? $ += E + "=" + y : $ += E;
|
|
2428
2428
|
} else
|
|
2429
|
-
|
|
2429
|
+
E && ($.length > 0 && ($ += "&"), $ += E + "=" + M);
|
|
2430
2430
|
}), !_ && y !== null && ($.length > 0 && ($ += "&"), typeof y != "undefined" ? $ += w + "=" + y : $ += w), $;
|
|
2431
2431
|
}, H = (f) => {
|
|
2432
2432
|
const w = f.pathname, y = j(f.search), $ = w + (y ? `;${y}` : ""), _ = `humany-${n.widgetName}`, x = at();
|
|
2433
|
-
return `#${
|
|
2433
|
+
return `#${W(x, _, $).replace(";;", ";")}`;
|
|
2434
2434
|
}, k = (f, w) => {
|
|
2435
|
-
const y = "PUSH", $ = Dt(f, ne), _ = $.pathname, x = j($.search), m = _ + (x ? `${x}` : ""),
|
|
2435
|
+
const y = "PUSH", $ = Dt(f, ne), _ = $.pathname, x = j($.search), m = _ + (x ? `${x}` : ""), E = `humany-${n.widgetName}`, M = at(), L = W(M, E, m);
|
|
2436
2436
|
a.confirmTransitionTo($, y, e, (J) => {
|
|
2437
2437
|
if (!J)
|
|
2438
2438
|
return;
|
|
2439
|
-
const
|
|
2439
|
+
const K = ot($), rt = i(L);
|
|
2440
2440
|
if (at() !== rt) {
|
|
2441
2441
|
Nn(rt);
|
|
2442
|
-
const
|
|
2443
|
-
|
|
2442
|
+
const Z = g.lastIndexOf(ot(R.location)), F = g.slice(0, Z === -1 ? 0 : Z + 1);
|
|
2443
|
+
F.push(K), g = F, c({ action: y, location: $ });
|
|
2444
2444
|
} else
|
|
2445
2445
|
c();
|
|
2446
2446
|
});
|
|
@@ -2451,8 +2451,8 @@ const Lt = (n, t) => {
|
|
|
2451
2451
|
return;
|
|
2452
2452
|
const x = ot($), m = i(s + x);
|
|
2453
2453
|
at() !== m && Mn(m);
|
|
2454
|
-
const
|
|
2455
|
-
|
|
2454
|
+
const E = g.indexOf(ot(R.location));
|
|
2455
|
+
E !== -1 && (g[E] = x), c({ action: y, location: $ });
|
|
2456
2456
|
});
|
|
2457
2457
|
}, A = (f) => {
|
|
2458
2458
|
t.go(f);
|
|
@@ -2481,20 +2481,20 @@ const Lt = (n, t) => {
|
|
|
2481
2481
|
};
|
|
2482
2482
|
},
|
|
2483
2483
|
stop: () => {
|
|
2484
|
-
const f = at(), w =
|
|
2484
|
+
const f = at(), w = W(f, `humany-${n.widgetName}`, null), y = i(w);
|
|
2485
2485
|
Nn(y);
|
|
2486
2486
|
},
|
|
2487
2487
|
length: t.length,
|
|
2488
2488
|
action: "POP",
|
|
2489
|
-
location:
|
|
2489
|
+
location: O
|
|
2490
2490
|
};
|
|
2491
2491
|
return R;
|
|
2492
|
-
},
|
|
2492
|
+
}, Cr = Vi, zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2493
2493
|
__proto__: null,
|
|
2494
2494
|
decodeSearch: ne,
|
|
2495
|
-
default:
|
|
2495
|
+
default: Cr,
|
|
2496
2496
|
getHashPath: at
|
|
2497
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2497
|
+
}, Symbol.toStringTag, { value: "Module" })), Wi = (n, t) => {
|
|
2498
2498
|
const e = (s) => {
|
|
2499
2499
|
function i(o, a) {
|
|
2500
2500
|
const c = {};
|
|
@@ -2506,10 +2506,10 @@ const Lt = (n, t) => {
|
|
|
2506
2506
|
return i(s, /([^#?&=]+)=([^&#]*)(?!.*?\#)/gi) || null;
|
|
2507
2507
|
}, r = `humany-${t}`;
|
|
2508
2508
|
return e(n)[r];
|
|
2509
|
-
},
|
|
2509
|
+
}, Fi = () => {
|
|
2510
2510
|
const n = window.location.href, t = n.indexOf("#");
|
|
2511
2511
|
return t === -1 ? "" : n.substring(t + 1);
|
|
2512
|
-
},
|
|
2512
|
+
}, qi = (n = "") => {
|
|
2513
2513
|
const t = n.replace(";", "?"), e = [
|
|
2514
2514
|
{ from: /\;+/gi, to: "&" },
|
|
2515
2515
|
{ from: /:+/gi, to: "=" }
|
|
@@ -2522,14 +2522,14 @@ const Lt = (n, t) => {
|
|
|
2522
2522
|
pathname: "",
|
|
2523
2523
|
search: "",
|
|
2524
2524
|
hash: ""
|
|
2525
|
-
},
|
|
2526
|
-
const t =
|
|
2527
|
-
return Ji(e,
|
|
2525
|
+
}, kr = (n) => {
|
|
2526
|
+
const t = Fi(), e = Wi(t, n);
|
|
2527
|
+
return Ji(e, qi);
|
|
2528
2528
|
}, Xe = (n) => {
|
|
2529
2529
|
const { name: t } = n.get("$widget");
|
|
2530
|
-
return !!
|
|
2530
|
+
return !!kr(t).pathname;
|
|
2531
2531
|
};
|
|
2532
|
-
|
|
2532
|
+
Je((n) => {
|
|
2533
2533
|
n.createCommand("routing", (t) => (e) => {
|
|
2534
2534
|
const r = {
|
|
2535
2535
|
mode: e.mode
|
|
@@ -2538,12 +2538,12 @@ qe((n) => {
|
|
|
2538
2538
|
});
|
|
2539
2539
|
});
|
|
2540
2540
|
const Ln = "routeData";
|
|
2541
|
-
class
|
|
2541
|
+
class Ki {
|
|
2542
2542
|
constructor(t, e) {
|
|
2543
2543
|
this.container = t, this.steps = [], this.historyListenSubscription = () => {
|
|
2544
2544
|
}, this.sticky = !1, this.storageWriter = null, this.widget = t.get("$widget");
|
|
2545
|
-
const r = e, { routes: s } = r, i =
|
|
2546
|
-
this.settings =
|
|
2545
|
+
const r = e, { routes: s } = r, i = ui(r, ["routes"]);
|
|
2546
|
+
this.settings = Ot(Ot({}, i), t.get("routingSettings")), this.sticky = Ui(this.settings), this.storageMedium = this.sticky ? S.Local : S.Session, et(t, Ln, P.Necessary, {
|
|
2547
2547
|
medium: this.storageMedium
|
|
2548
2548
|
}).then((o) => this.storageWriter = o), this.routes = s;
|
|
2549
2549
|
}
|
|
@@ -2601,7 +2601,7 @@ class qi {
|
|
|
2601
2601
|
const s = ee(e, r.path);
|
|
2602
2602
|
if (!s)
|
|
2603
2603
|
return;
|
|
2604
|
-
const i = this.getRouteData(), o = i && i.name === t &&
|
|
2604
|
+
const i = this.getRouteData(), o = i && i.name === t && Hi(i.params, e);
|
|
2605
2605
|
if (this.steps[0] && o)
|
|
2606
2606
|
return;
|
|
2607
2607
|
const { decodeSearch: a } = this.settings, c = a ? a(s) : s;
|
|
@@ -2628,7 +2628,7 @@ class qi {
|
|
|
2628
2628
|
e && e.name && (this.navigate(e.name, e.params), this.steps = []);
|
|
2629
2629
|
} else {
|
|
2630
2630
|
const e = t >= this.steps.length ? this.steps.length - 1 : t, { routeData: r } = this.steps[e];
|
|
2631
|
-
this.steps = [...this.steps.slice(e + 1)], this.navigate(r.name,
|
|
2631
|
+
this.steps = [...this.steps.slice(e + 1)], this.navigate(r.name, es(r.params));
|
|
2632
2632
|
}
|
|
2633
2633
|
}
|
|
2634
2634
|
/**
|
|
@@ -2654,7 +2654,7 @@ class qi {
|
|
|
2654
2654
|
getRouteData(t) {
|
|
2655
2655
|
const e = Ne(this.container);
|
|
2656
2656
|
if (t) {
|
|
2657
|
-
const r =
|
|
2657
|
+
const r = Et(t, this.routes);
|
|
2658
2658
|
return r ? {
|
|
2659
2659
|
params: yt(Lt(t, r.path)),
|
|
2660
2660
|
name: r.name
|
|
@@ -2665,7 +2665,7 @@ class qi {
|
|
|
2665
2665
|
}
|
|
2666
2666
|
if (this.location) {
|
|
2667
2667
|
const { pathname: r, search: s } = this.location;
|
|
2668
|
-
if (this.currentRoute = this.currentRoute ||
|
|
2668
|
+
if (this.currentRoute = this.currentRoute || Et(r, this.routes), this.currentRoute) {
|
|
2669
2669
|
const { path: i, name: o } = this.currentRoute;
|
|
2670
2670
|
this.match || (this.match = {
|
|
2671
2671
|
params: Lt(r, i),
|
|
@@ -2673,7 +2673,7 @@ class qi {
|
|
|
2673
2673
|
path: i,
|
|
2674
2674
|
url: r
|
|
2675
2675
|
});
|
|
2676
|
-
const a = yt(
|
|
2676
|
+
const a = yt(Ot(Ot({}, this.match.params), s.length > 0 && Pr(s)));
|
|
2677
2677
|
return {
|
|
2678
2678
|
name: o,
|
|
2679
2679
|
params: a
|
|
@@ -2699,7 +2699,7 @@ class qi {
|
|
|
2699
2699
|
const { initialPath: e, mode: r } = this.settings;
|
|
2700
2700
|
switch ((() => {
|
|
2701
2701
|
const s = Xe(this.container);
|
|
2702
|
-
return r ===
|
|
2702
|
+
return r === G.browser || s ? dt.path : r === G.memory && t ? dt.storage : dt.initialPath;
|
|
2703
2703
|
})()) {
|
|
2704
2704
|
case dt.initialPath: {
|
|
2705
2705
|
const s = this.getRouteData(e);
|
|
@@ -2707,7 +2707,7 @@ class qi {
|
|
|
2707
2707
|
}
|
|
2708
2708
|
case dt.path: {
|
|
2709
2709
|
const { pathname: s } = this.location;
|
|
2710
|
-
if (this.currentRoute =
|
|
2710
|
+
if (this.currentRoute = Et(s, this.routes), this.currentRoute) {
|
|
2711
2711
|
const { path: o } = this.currentRoute;
|
|
2712
2712
|
return this.setMatch({
|
|
2713
2713
|
params: Lt(s, o),
|
|
@@ -2726,12 +2726,12 @@ class qi {
|
|
|
2726
2726
|
}
|
|
2727
2727
|
case dt.storage: {
|
|
2728
2728
|
const { pathname: s } = this.location;
|
|
2729
|
-
this.currentRoute =
|
|
2729
|
+
this.currentRoute = Et(s, this.routes);
|
|
2730
2730
|
const { name: i = "", params: o = {} } = t || {}, a = ke(i, this.routes);
|
|
2731
2731
|
if (a) {
|
|
2732
2732
|
const c = ee(o, a.path);
|
|
2733
2733
|
if (c)
|
|
2734
|
-
return this.history.push(c), this.location =
|
|
2734
|
+
return this.history.push(c), this.location = fr(Ot({}, this.location), { pathname: c }), this.currentRoute = Et(c, this.routes), this.setMatch({
|
|
2735
2735
|
params: o,
|
|
2736
2736
|
isExact: !0,
|
|
2737
2737
|
path: a.path,
|
|
@@ -2748,13 +2748,13 @@ class qi {
|
|
|
2748
2748
|
return this.setupInitialRoute();
|
|
2749
2749
|
}
|
|
2750
2750
|
stop() {
|
|
2751
|
-
return this.history && (this.settings.mode ===
|
|
2751
|
+
return this.history && (this.settings.mode === G.scopedHash && this.history.stop(), this.steps = [], this.storageWriter) ? this.storageWriter() : Promise.resolve();
|
|
2752
2752
|
}
|
|
2753
2753
|
handleLocationChange(t, e) {
|
|
2754
2754
|
const { pathname: r } = t, { mode: s } = this.settings;
|
|
2755
|
-
if (r.indexOf("?") > -1 || r.indexOf(";") > -1 || s ===
|
|
2755
|
+
if (r.indexOf("?") > -1 || r.indexOf(";") > -1 || s === G.scopedHash && e !== this.widget.name)
|
|
2756
2756
|
return;
|
|
2757
|
-
this.location = t, this.currentRoute =
|
|
2757
|
+
this.location = t, this.currentRoute = Et(r, this.routes);
|
|
2758
2758
|
const i = Ne(this.container);
|
|
2759
2759
|
if (this.currentRoute) {
|
|
2760
2760
|
const { path: o } = this.currentRoute;
|
|
@@ -2775,9 +2775,9 @@ class qi {
|
|
|
2775
2775
|
createHistory() {
|
|
2776
2776
|
return new Promise((t) => {
|
|
2777
2777
|
const { mode: e, basePath: r } = this.settings;
|
|
2778
|
-
if (e ===
|
|
2779
|
-
const s = this.widget.name, i =
|
|
2780
|
-
return Promise.resolve().then(() =>
|
|
2778
|
+
if (e === G.scopedHash) {
|
|
2779
|
+
const s = this.widget.name, i = Ii(this.container);
|
|
2780
|
+
return Promise.resolve().then(() => zi).then((o) => {
|
|
2781
2781
|
const a = o.default({
|
|
2782
2782
|
widgetName: s,
|
|
2783
2783
|
transitionManager: i,
|
|
@@ -2786,20 +2786,20 @@ class qi {
|
|
|
2786
2786
|
return t(a);
|
|
2787
2787
|
});
|
|
2788
2788
|
}
|
|
2789
|
-
if (e ===
|
|
2790
|
-
return t(
|
|
2791
|
-
if (e ===
|
|
2792
|
-
return t(
|
|
2789
|
+
if (e === G.memory)
|
|
2790
|
+
return t(Fs());
|
|
2791
|
+
if (e === G.browser)
|
|
2792
|
+
return t(zs({ basename: r }));
|
|
2793
2793
|
throw "RoutingService: History could not be created.";
|
|
2794
2794
|
});
|
|
2795
2795
|
}
|
|
2796
2796
|
}
|
|
2797
|
-
const
|
|
2797
|
+
const Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2798
2798
|
__proto__: null,
|
|
2799
|
-
HistoryMode:
|
|
2800
|
-
RoutingService:
|
|
2801
|
-
createHashHistory:
|
|
2802
|
-
getScopedHashDOMLocation:
|
|
2799
|
+
HistoryMode: G,
|
|
2800
|
+
RoutingService: Ki,
|
|
2801
|
+
createHashHistory: Cr,
|
|
2802
|
+
getScopedHashDOMLocation: kr,
|
|
2803
2803
|
matchParams: Lt,
|
|
2804
2804
|
onWidgetUrl: Xe
|
|
2805
2805
|
}, Symbol.toStringTag, { value: "Module" })), Me = (n, t, e, ...r) => {
|
|
@@ -2824,7 +2824,7 @@ const Ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2824
2824
|
};
|
|
2825
2825
|
};
|
|
2826
2826
|
var Rt = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(Rt || {}), ht = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(ht || {});
|
|
2827
|
-
const
|
|
2827
|
+
const Zi = (n, t, e, r) => {
|
|
2828
2828
|
try {
|
|
2829
2829
|
const s = new t(e, r);
|
|
2830
2830
|
return {
|
|
@@ -2851,7 +2851,7 @@ const Gi = (n, t, e, r) => {
|
|
|
2851
2851
|
function Dn(n, t) {
|
|
2852
2852
|
return typeof n == "undefined" ? t : n;
|
|
2853
2853
|
}
|
|
2854
|
-
class
|
|
2854
|
+
class Qi {
|
|
2855
2855
|
constructor(t = {}) {
|
|
2856
2856
|
this.part = t;
|
|
2857
2857
|
}
|
|
@@ -2878,11 +2878,11 @@ class Zi {
|
|
|
2878
2878
|
return this.part;
|
|
2879
2879
|
}
|
|
2880
2880
|
}
|
|
2881
|
-
const
|
|
2882
|
-
const t = new
|
|
2881
|
+
const Nr = (n) => {
|
|
2882
|
+
const t = new Qi({});
|
|
2883
2883
|
return n(t), t.get();
|
|
2884
2884
|
};
|
|
2885
|
-
|
|
2885
|
+
Nr((n) => {
|
|
2886
2886
|
n.createCommand(
|
|
2887
2887
|
"types.register",
|
|
2888
2888
|
{ scope: Rt.Implementation, stage: ht.Pre },
|
|
@@ -2920,7 +2920,7 @@ kr((n) => {
|
|
|
2920
2920
|
a
|
|
2921
2921
|
) : r;
|
|
2922
2922
|
try {
|
|
2923
|
-
const p =
|
|
2923
|
+
const p = Zi(
|
|
2924
2924
|
o,
|
|
2925
2925
|
a,
|
|
2926
2926
|
i,
|
|
@@ -2961,12 +2961,12 @@ kr((n) => {
|
|
|
2961
2961
|
}
|
|
2962
2962
|
);
|
|
2963
2963
|
});
|
|
2964
|
-
function
|
|
2964
|
+
function Xi(n) {
|
|
2965
2965
|
const t = {};
|
|
2966
2966
|
return [].filter.call(n.attributes, (e) => /^data-/.test(e.name)).map((e) => e.name).forEach((e) => t[e.substr(5)] = n.getAttribute(e)), t;
|
|
2967
2967
|
}
|
|
2968
2968
|
const Tn = (n, t, e) => {
|
|
2969
|
-
const r =
|
|
2969
|
+
const r = Xi(n);
|
|
2970
2970
|
e({
|
|
2971
2971
|
sourceDOMElement: n,
|
|
2972
2972
|
eventType: t,
|
|
@@ -2980,7 +2980,7 @@ function jn(n, t, e) {
|
|
|
2980
2980
|
}), r.dataset.monitored = "true");
|
|
2981
2981
|
});
|
|
2982
2982
|
}
|
|
2983
|
-
function
|
|
2983
|
+
function to(n, t, e) {
|
|
2984
2984
|
const r = n.container.get("bootstrapping.monitor");
|
|
2985
2985
|
r && r.events.subscribe("bootstrap:trigger-elements-updated", (i, o) => {
|
|
2986
2986
|
jn(
|
|
@@ -2996,7 +2996,7 @@ function Xi(n, t, e) {
|
|
|
2996
2996
|
e
|
|
2997
2997
|
);
|
|
2998
2998
|
}
|
|
2999
|
-
|
|
2999
|
+
Nr((n) => {
|
|
3000
3000
|
n.createCommand(
|
|
3001
3001
|
"ready",
|
|
3002
3002
|
{ scope: Rt.Implementation, stage: ht.Pre },
|
|
@@ -3008,7 +3008,7 @@ kr((n) => {
|
|
|
3008
3008
|
}
|
|
3009
3009
|
);
|
|
3010
3010
|
});
|
|
3011
|
-
const
|
|
3011
|
+
const eo = (n) => {
|
|
3012
3012
|
const t = (s, i) => {
|
|
3013
3013
|
s && (i ? s.classList.add("ace-tabbing") : s.classList.remove("ace-tabbing"));
|
|
3014
3014
|
}, e = (s) => {
|
|
@@ -3020,7 +3020,7 @@ const to = (n) => {
|
|
|
3020
3020
|
document.removeEventListener("keydown", e), document.removeEventListener("click", r);
|
|
3021
3021
|
};
|
|
3022
3022
|
};
|
|
3023
|
-
function
|
|
3023
|
+
function no(n, t) {
|
|
3024
3024
|
const {
|
|
3025
3025
|
// symbol,
|
|
3026
3026
|
widgetName: e,
|
|
@@ -3028,19 +3028,19 @@ function eo(n, t) {
|
|
|
3028
3028
|
ariaLabel: s = "",
|
|
3029
3029
|
tooltip: i = ""
|
|
3030
3030
|
} = t;
|
|
3031
|
-
return n.classList.add("ace-widget-trigger"), n.classList.add(`ace-widget_${e}`), r.length && n.classList.add("trigger-has-text"), s.length && !n.getAttribute("aria-label") && n.setAttribute("aria-label", s), s.length && !n.getAttribute("tabindex") && n.setAttribute("tabindex", "0"), i.length && !n.getAttribute("title") && n.setAttribute("title", i),
|
|
3031
|
+
return n.classList.add("ace-widget-trigger"), n.classList.add(`ace-widget_${e}`), r.length && n.classList.add("trigger-has-text"), s.length && !n.getAttribute("aria-label") && n.setAttribute("aria-label", s), s.length && !n.getAttribute("tabindex") && n.setAttribute("tabindex", "0"), i.length && !n.getAttribute("title") && n.setAttribute("title", i), eo(n);
|
|
3032
3032
|
}
|
|
3033
|
-
function
|
|
3033
|
+
function ro(n, t) {
|
|
3034
3034
|
n instanceof HTMLElement ? (t && n.setAttribute("title", t), n.classList.remove("ace-trigger-active"), n.classList.remove("ace-trigger-loading")) : n instanceof Array && n.forEach((e) => {
|
|
3035
3035
|
t && e.setAttribute("title", t), e.classList.remove("ace-trigger-active"), e.classList.remove("ace-trigger-loading");
|
|
3036
3036
|
});
|
|
3037
3037
|
}
|
|
3038
|
-
function
|
|
3038
|
+
function so(n) {
|
|
3039
3039
|
n instanceof HTMLElement ? (n.classList.remove("ace-trigger-active"), n.classList.add("ace-trigger-loading")) : n instanceof Array && n.forEach((t) => {
|
|
3040
3040
|
t.classList.remove("ace-trigger-active"), t.classList.add("ace-trigger-loading");
|
|
3041
3041
|
});
|
|
3042
3042
|
}
|
|
3043
|
-
function
|
|
3043
|
+
function Mr(n, t) {
|
|
3044
3044
|
n instanceof HTMLElement ? (t && n.setAttribute("title", t), n.classList.add("ace-trigger-active"), n.classList.remove("ace-trigger-loading")) : n instanceof Array && n.forEach((e) => {
|
|
3045
3045
|
t && e.setAttribute("title", t), e.classList.add("ace-trigger-active"), e.classList.remove("ace-trigger-loading");
|
|
3046
3046
|
});
|
|
@@ -3051,7 +3051,7 @@ function Nr(n, t) {
|
|
|
3051
3051
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3052
3052
|
*/
|
|
3053
3053
|
const re = window, tn = re.ShadowRoot && (re.ShadyCSS === void 0 || re.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, en = Symbol(), Rn = /* @__PURE__ */ new WeakMap();
|
|
3054
|
-
let
|
|
3054
|
+
let Lr = class {
|
|
3055
3055
|
constructor(t, e, r) {
|
|
3056
3056
|
if (this._$cssResult$ = !0, r !== en)
|
|
3057
3057
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -3070,7 +3070,7 @@ let Mr = class {
|
|
|
3070
3070
|
return this.cssText;
|
|
3071
3071
|
}
|
|
3072
3072
|
};
|
|
3073
|
-
const
|
|
3073
|
+
const io = (n) => new Lr(typeof n == "string" ? n : n + "", void 0, en), oo = (n, ...t) => {
|
|
3074
3074
|
const e = n.length === 1 ? n[0] : t.reduce((r, s, i) => r + ((o) => {
|
|
3075
3075
|
if (o._$cssResult$ === !0)
|
|
3076
3076
|
return o.cssText;
|
|
@@ -3078,8 +3078,8 @@ const so = (n) => new Mr(typeof n == "string" ? n : n + "", void 0, en), io = (n
|
|
|
3078
3078
|
return o;
|
|
3079
3079
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
3080
3080
|
})(s) + n[i + 1], n[0]);
|
|
3081
|
-
return new
|
|
3082
|
-
},
|
|
3081
|
+
return new Lr(e, n, en);
|
|
3082
|
+
}, ao = (n, t) => {
|
|
3083
3083
|
tn ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
|
|
3084
3084
|
const r = document.createElement("style"), s = re.litNonce;
|
|
3085
3085
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, n.appendChild(r);
|
|
@@ -3088,7 +3088,7 @@ const so = (n) => new Mr(typeof n == "string" ? n : n + "", void 0, en), io = (n
|
|
|
3088
3088
|
let e = "";
|
|
3089
3089
|
for (const r of t.cssRules)
|
|
3090
3090
|
e += r.cssText;
|
|
3091
|
-
return
|
|
3091
|
+
return io(e);
|
|
3092
3092
|
})(n) : n;
|
|
3093
3093
|
/**
|
|
3094
3094
|
* @license
|
|
@@ -3096,10 +3096,10 @@ const so = (n) => new Mr(typeof n == "string" ? n : n + "", void 0, en), io = (n
|
|
|
3096
3096
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3097
3097
|
*/
|
|
3098
3098
|
var Le;
|
|
3099
|
-
const ue = window, Hn = ue.trustedTypes,
|
|
3099
|
+
const ue = window, Hn = ue.trustedTypes, co = Hn ? Hn.emptyScript : "", Un = ue.reactiveElementPolyfillSupport, We = { toAttribute(n, t) {
|
|
3100
3100
|
switch (t) {
|
|
3101
3101
|
case Boolean:
|
|
3102
|
-
n = n ?
|
|
3102
|
+
n = n ? co : null;
|
|
3103
3103
|
break;
|
|
3104
3104
|
case Object:
|
|
3105
3105
|
case Array:
|
|
@@ -3124,7 +3124,7 @@ const ue = window, Hn = ue.trustedTypes, ao = Hn ? Hn.emptyScript : "", Un = ue.
|
|
|
3124
3124
|
}
|
|
3125
3125
|
}
|
|
3126
3126
|
return e;
|
|
3127
|
-
} },
|
|
3127
|
+
} }, Dr = (n, t) => t !== n && (t == t || n == n), De = { attribute: !0, type: String, converter: We, reflect: !1, hasChanged: Dr }, Fe = "finalized";
|
|
3128
3128
|
let At = class extends HTMLElement {
|
|
3129
3129
|
constructor() {
|
|
3130
3130
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
|
|
@@ -3204,7 +3204,7 @@ let At = class extends HTMLElement {
|
|
|
3204
3204
|
createRenderRoot() {
|
|
3205
3205
|
var t;
|
|
3206
3206
|
const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
|
3207
|
-
return
|
|
3207
|
+
return ao(e, this.constructor.elementStyles), e;
|
|
3208
3208
|
}
|
|
3209
3209
|
connectedCallback() {
|
|
3210
3210
|
var t;
|
|
@@ -3243,10 +3243,10 @@ let At = class extends HTMLElement {
|
|
|
3243
3243
|
}
|
|
3244
3244
|
requestUpdate(t, e, r) {
|
|
3245
3245
|
let s = !0;
|
|
3246
|
-
t !== void 0 && (((r = r || this.constructor.getPropertyOptions(t)).hasChanged ||
|
|
3246
|
+
t !== void 0 && (((r = r || this.constructor.getPropertyOptions(t)).hasChanged || Dr)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), r.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, r))) : s = !1), !this.isUpdatePending && s && (this._$E_ = this._$Ej());
|
|
3247
3247
|
}
|
|
3248
3248
|
_$Ej() {
|
|
3249
|
-
return
|
|
3249
|
+
return z(this, null, function* () {
|
|
3250
3250
|
this.isUpdatePending = !0;
|
|
3251
3251
|
try {
|
|
3252
3252
|
yield this._$E_;
|
|
@@ -3313,33 +3313,33 @@ At[Fe] = !0, At.elementProperties = /* @__PURE__ */ new Map(), At.elementStyles
|
|
|
3313
3313
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3314
3314
|
*/
|
|
3315
3315
|
var Te;
|
|
3316
|
-
const de = window, _t = de.trustedTypes, Bn = _t ? _t.createPolicy("lit-html", { createHTML: (n) => n }) : void 0,
|
|
3316
|
+
const de = window, _t = de.trustedTypes, Bn = _t ? _t.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, qe = "$lit$", ct = `lit$${(Math.random() + "").slice(9)}$`, Tr = "?" + ct, ho = `<${Tr}>`, bt = document, It = () => bt.createComment(""), Ht = (n) => n === null || typeof n != "object" && typeof n != "function", jr = Array.isArray, lo = (n) => jr(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", je = `[
|
|
3317
3317
|
\f\r]`, kt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Vn = /-->/g, zn = />/g, ut = RegExp(`>|${je}(?:([^\\s"'>=/]+)(${je}*=${je}*(?:[^
|
|
3318
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Wn = /'/g, Fn = /"/g,
|
|
3319
|
-
function
|
|
3318
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Wn = /'/g, Fn = /"/g, Rr = /^(?:script|style|textarea|title)$/i, uo = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Kt = uo(1), wt = Symbol.for("lit-noChange"), T = Symbol.for("lit-nothing"), qn = /* @__PURE__ */ new WeakMap(), mt = bt.createTreeWalker(bt, 129, null, !1);
|
|
3319
|
+
function Ir(n, t) {
|
|
3320
3320
|
if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
|
|
3321
3321
|
throw Error("invalid template strings array");
|
|
3322
3322
|
return Bn !== void 0 ? Bn.createHTML(t) : t;
|
|
3323
3323
|
}
|
|
3324
|
-
const
|
|
3324
|
+
const po = (n, t) => {
|
|
3325
3325
|
const e = n.length - 1, r = [];
|
|
3326
3326
|
let s, i = t === 2 ? "<svg>" : "", o = kt;
|
|
3327
3327
|
for (let a = 0; a < e; a++) {
|
|
3328
3328
|
const c = n[a];
|
|
3329
3329
|
let h, l, u = -1, d = 0;
|
|
3330
3330
|
for (; d < c.length && (o.lastIndex = d, l = o.exec(c), l !== null); )
|
|
3331
|
-
d = o.lastIndex, o === kt ? l[1] === "!--" ? o = Vn : l[1] !== void 0 ? o = zn : l[2] !== void 0 ? (
|
|
3331
|
+
d = o.lastIndex, o === kt ? l[1] === "!--" ? o = Vn : l[1] !== void 0 ? o = zn : l[2] !== void 0 ? (Rr.test(l[2]) && (s = RegExp("</" + l[2], "g")), o = ut) : l[3] !== void 0 && (o = ut) : o === ut ? l[0] === ">" ? (o = s != null ? s : kt, u = -1) : l[1] === void 0 ? u = -2 : (u = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? ut : l[3] === '"' ? Fn : Wn) : o === Fn || o === Wn ? o = ut : o === Vn || o === zn ? o = kt : (o = ut, s = void 0);
|
|
3332
3332
|
const p = o === ut && n[a + 1].startsWith("/>") ? " " : "";
|
|
3333
|
-
i += o === kt ? c +
|
|
3333
|
+
i += o === kt ? c + ho : u >= 0 ? (r.push(h), c.slice(0, u) + qe + c.slice(u) + ct + p) : c + ct + (u === -2 ? (r.push(void 0), a) : p);
|
|
3334
3334
|
}
|
|
3335
|
-
return [
|
|
3335
|
+
return [Ir(n, i + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), r];
|
|
3336
3336
|
};
|
|
3337
3337
|
class Ut {
|
|
3338
3338
|
constructor({ strings: t, _$litType$: e }, r) {
|
|
3339
3339
|
let s;
|
|
3340
3340
|
this.parts = [];
|
|
3341
3341
|
let i = 0, o = 0;
|
|
3342
|
-
const a = t.length - 1, c = this.parts, [h, l] =
|
|
3342
|
+
const a = t.length - 1, c = this.parts, [h, l] = po(t, e);
|
|
3343
3343
|
if (this.el = Ut.createElement(h, r), mt.currentNode = this.el.content, e === 2) {
|
|
3344
3344
|
const u = this.el.content, d = u.firstChild;
|
|
3345
3345
|
d.remove(), u.append(...d.childNodes);
|
|
@@ -3349,18 +3349,18 @@ class Ut {
|
|
|
3349
3349
|
if (s.hasAttributes()) {
|
|
3350
3350
|
const u = [];
|
|
3351
3351
|
for (const d of s.getAttributeNames())
|
|
3352
|
-
if (d.endsWith(
|
|
3352
|
+
if (d.endsWith(qe) || d.startsWith(ct)) {
|
|
3353
3353
|
const p = l[o++];
|
|
3354
3354
|
if (u.push(d), p !== void 0) {
|
|
3355
|
-
const b = s.getAttribute(p.toLowerCase() +
|
|
3356
|
-
c.push({ type: 1, index: i, name: v[2], strings: b, ctor: v[1] === "." ?
|
|
3355
|
+
const b = s.getAttribute(p.toLowerCase() + qe).split(ct), v = /([.?@])?(.*)/.exec(p);
|
|
3356
|
+
c.push({ type: 1, index: i, name: v[2], strings: b, ctor: v[1] === "." ? fo : v[1] === "?" ? vo : v[1] === "@" ? yo : we });
|
|
3357
3357
|
} else
|
|
3358
3358
|
c.push({ type: 6, index: i });
|
|
3359
3359
|
}
|
|
3360
3360
|
for (const d of u)
|
|
3361
3361
|
s.removeAttribute(d);
|
|
3362
3362
|
}
|
|
3363
|
-
if (
|
|
3363
|
+
if (Rr.test(s.tagName)) {
|
|
3364
3364
|
const u = s.textContent.split(ct), d = u.length - 1;
|
|
3365
3365
|
if (d > 0) {
|
|
3366
3366
|
s.textContent = _t ? _t.emptyScript : "";
|
|
@@ -3370,7 +3370,7 @@ class Ut {
|
|
|
3370
3370
|
}
|
|
3371
3371
|
}
|
|
3372
3372
|
} else if (s.nodeType === 8)
|
|
3373
|
-
if (s.data ===
|
|
3373
|
+
if (s.data === Tr)
|
|
3374
3374
|
c.push({ type: 2, index: i });
|
|
3375
3375
|
else {
|
|
3376
3376
|
let u = -1;
|
|
@@ -3393,7 +3393,7 @@ function St(n, t, e = n, r) {
|
|
|
3393
3393
|
const h = Ht(t) ? void 0 : t._$litDirective$;
|
|
3394
3394
|
return (c == null ? void 0 : c.constructor) !== h && ((i = c == null ? void 0 : c._$AO) === null || i === void 0 || i.call(c, !1), h === void 0 ? c = void 0 : (c = new h(n), c._$AT(n, e, r)), r !== void 0 ? ((o = (a = e)._$Co) !== null && o !== void 0 ? o : a._$Co = [])[r] = c : e._$Cl = c), c !== void 0 && (t = St(n, c._$AS(n, t.values), c, r)), t;
|
|
3395
3395
|
}
|
|
3396
|
-
class
|
|
3396
|
+
class go {
|
|
3397
3397
|
constructor(t, e) {
|
|
3398
3398
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
3399
3399
|
}
|
|
@@ -3411,7 +3411,7 @@ class po {
|
|
|
3411
3411
|
for (; h !== void 0; ) {
|
|
3412
3412
|
if (a === h.index) {
|
|
3413
3413
|
let l;
|
|
3414
|
-
h.type === 2 ? l = new Vt(o, o.nextSibling, this, t) : h.type === 1 ? l = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (l = new
|
|
3414
|
+
h.type === 2 ? l = new Vt(o, o.nextSibling, this, t) : h.type === 1 ? l = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (l = new bo(o, this, t)), this._$AV.push(l), h = s[++c];
|
|
3415
3415
|
}
|
|
3416
3416
|
a !== (h == null ? void 0 : h.index) && (o = mt.nextNode(), a++);
|
|
3417
3417
|
}
|
|
@@ -3444,7 +3444,7 @@ class Vt {
|
|
|
3444
3444
|
return this._$AB;
|
|
3445
3445
|
}
|
|
3446
3446
|
_$AI(t, e = this) {
|
|
3447
|
-
t = St(this, t, e), Ht(t) ? t === T || t == null || t === "" ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== wt && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) :
|
|
3447
|
+
t = St(this, t, e), Ht(t) ? t === T || t == null || t === "" ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== wt && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : lo(t) ? this.T(t) : this._(t);
|
|
3448
3448
|
}
|
|
3449
3449
|
k(t) {
|
|
3450
3450
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -3457,20 +3457,20 @@ class Vt {
|
|
|
3457
3457
|
}
|
|
3458
3458
|
g(t) {
|
|
3459
3459
|
var e;
|
|
3460
|
-
const { values: r, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = Ut.createElement(
|
|
3460
|
+
const { values: r, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = Ut.createElement(Ir(s.h, s.h[0]), this.options)), s);
|
|
3461
3461
|
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === i)
|
|
3462
3462
|
this._$AH.v(r);
|
|
3463
3463
|
else {
|
|
3464
|
-
const o = new
|
|
3464
|
+
const o = new go(i, this), a = o.u(this.options);
|
|
3465
3465
|
o.v(r), this.$(a), this._$AH = o;
|
|
3466
3466
|
}
|
|
3467
3467
|
}
|
|
3468
3468
|
_$AC(t) {
|
|
3469
|
-
let e =
|
|
3470
|
-
return e === void 0 &&
|
|
3469
|
+
let e = qn.get(t.strings);
|
|
3470
|
+
return e === void 0 && qn.set(t.strings, e = new Ut(t)), e;
|
|
3471
3471
|
}
|
|
3472
3472
|
T(t) {
|
|
3473
|
-
|
|
3473
|
+
jr(this._$AH) || (this._$AH = [], this._$AR());
|
|
3474
3474
|
const e = this._$AH;
|
|
3475
3475
|
let r, s = 0;
|
|
3476
3476
|
for (const i of t)
|
|
@@ -3516,7 +3516,7 @@ class we {
|
|
|
3516
3516
|
t === T ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t != null ? t : "");
|
|
3517
3517
|
}
|
|
3518
3518
|
}
|
|
3519
|
-
class
|
|
3519
|
+
class fo extends we {
|
|
3520
3520
|
constructor() {
|
|
3521
3521
|
super(...arguments), this.type = 3;
|
|
3522
3522
|
}
|
|
@@ -3524,16 +3524,16 @@ class go extends we {
|
|
|
3524
3524
|
this.element[this.name] = t === T ? void 0 : t;
|
|
3525
3525
|
}
|
|
3526
3526
|
}
|
|
3527
|
-
const
|
|
3528
|
-
class
|
|
3527
|
+
const mo = _t ? _t.emptyScript : "";
|
|
3528
|
+
class vo extends we {
|
|
3529
3529
|
constructor() {
|
|
3530
3530
|
super(...arguments), this.type = 4;
|
|
3531
3531
|
}
|
|
3532
3532
|
j(t) {
|
|
3533
|
-
t && t !== T ? this.element.setAttribute(this.name,
|
|
3533
|
+
t && t !== T ? this.element.setAttribute(this.name, mo) : this.element.removeAttribute(this.name);
|
|
3534
3534
|
}
|
|
3535
3535
|
}
|
|
3536
|
-
class
|
|
3536
|
+
class yo extends we {
|
|
3537
3537
|
constructor(t, e, r, s, i) {
|
|
3538
3538
|
super(t, e, r, s, i), this.type = 5;
|
|
3539
3539
|
}
|
|
@@ -3549,7 +3549,7 @@ class vo extends we {
|
|
|
3549
3549
|
typeof this._$AH == "function" ? this._$AH.call((r = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && r !== void 0 ? r : this.element, t) : this._$AH.handleEvent(t);
|
|
3550
3550
|
}
|
|
3551
3551
|
}
|
|
3552
|
-
class
|
|
3552
|
+
class bo {
|
|
3553
3553
|
constructor(t, e, r) {
|
|
3554
3554
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
|
|
3555
3555
|
}
|
|
@@ -3560,9 +3560,9 @@ class yo {
|
|
|
3560
3560
|
St(this, t);
|
|
3561
3561
|
}
|
|
3562
3562
|
}
|
|
3563
|
-
const
|
|
3564
|
-
|
|
3565
|
-
const
|
|
3563
|
+
const Jn = de.litHtmlPolyfillSupport;
|
|
3564
|
+
Jn == null || Jn(Ut, Vt), ((Te = de.litHtmlVersions) !== null && Te !== void 0 ? Te : de.litHtmlVersions = []).push("2.8.0");
|
|
3565
|
+
const wo = (n, t, e) => {
|
|
3566
3566
|
var r, s;
|
|
3567
3567
|
const i = (r = e == null ? void 0 : e.renderBefore) !== null && r !== void 0 ? r : t;
|
|
3568
3568
|
let o = i._$litPart$;
|
|
@@ -3589,7 +3589,7 @@ let jt = class extends At {
|
|
|
3589
3589
|
}
|
|
3590
3590
|
update(t) {
|
|
3591
3591
|
const e = this.render();
|
|
3592
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
3592
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = wo(e, this.renderRoot, this.renderOptions);
|
|
3593
3593
|
}
|
|
3594
3594
|
connectedCallback() {
|
|
3595
3595
|
var t;
|
|
@@ -3612,17 +3612,17 @@ Kn == null || Kn({ LitElement: jt });
|
|
|
3612
3612
|
* Copyright 2017 Google LLC
|
|
3613
3613
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3614
3614
|
*/
|
|
3615
|
-
const
|
|
3615
|
+
const $o = (n, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? zt(st({}, t), { finisher(e) {
|
|
3616
3616
|
e.createProperty(t.key, n);
|
|
3617
3617
|
} }) : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
|
|
3618
3618
|
typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
|
|
3619
3619
|
}, finisher(e) {
|
|
3620
3620
|
e.createProperty(t.key, n);
|
|
3621
|
-
} },
|
|
3621
|
+
} }, Eo = (n, t, e) => {
|
|
3622
3622
|
t.constructor.createProperty(e, n);
|
|
3623
3623
|
};
|
|
3624
|
-
function
|
|
3625
|
-
return (t, e) => e !== void 0 ?
|
|
3624
|
+
function Hr(n) {
|
|
3625
|
+
return (t, e) => e !== void 0 ? Eo(n, t, e) : $o(n, t);
|
|
3626
3626
|
}
|
|
3627
3627
|
/**
|
|
3628
3628
|
* @license
|
|
@@ -3630,7 +3630,7 @@ function Ir(n) {
|
|
|
3630
3630
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3631
3631
|
*/
|
|
3632
3632
|
function nn(n) {
|
|
3633
|
-
return
|
|
3633
|
+
return Hr(zt(st({}, n), { state: !0 }));
|
|
3634
3634
|
}
|
|
3635
3635
|
/**
|
|
3636
3636
|
* @license
|
|
@@ -3644,8 +3644,8 @@ var He;
|
|
|
3644
3644
|
* Copyright 2017 Google LLC
|
|
3645
3645
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3646
3646
|
*/
|
|
3647
|
-
const Oo = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 },
|
|
3648
|
-
class
|
|
3647
|
+
const Oo = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ao = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
|
3648
|
+
class xo {
|
|
3649
3649
|
constructor(t) {
|
|
3650
3650
|
}
|
|
3651
3651
|
get _$AU() {
|
|
@@ -3666,7 +3666,7 @@ class Ao {
|
|
|
3666
3666
|
* Copyright 2018 Google LLC
|
|
3667
3667
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3668
3668
|
*/
|
|
3669
|
-
const
|
|
3669
|
+
const _o = Ao(class extends xo {
|
|
3670
3670
|
constructor(n) {
|
|
3671
3671
|
var t;
|
|
3672
3672
|
if (super(n), n.type !== Oo.ATTRIBUTE || n.name !== "class" || ((t = n.strings) === null || t === void 0 ? void 0 : t.length) > 2)
|
|
@@ -3694,17 +3694,17 @@ const xo = Eo(class extends Ao {
|
|
|
3694
3694
|
return wt;
|
|
3695
3695
|
}
|
|
3696
3696
|
});
|
|
3697
|
-
var
|
|
3698
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
3697
|
+
var So = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, $e = (n, t, e, r) => {
|
|
3698
|
+
for (var s = r > 1 ? void 0 : r ? Po(t, e) : t, i = n.length - 1, o; i >= 0; i--)
|
|
3699
3699
|
(o = n[i]) && (s = (r ? o(t, e, s) : o(s)) || s);
|
|
3700
|
-
return r && s &&
|
|
3700
|
+
return r && s && So(t, e, s), s;
|
|
3701
3701
|
};
|
|
3702
3702
|
class lt extends jt {
|
|
3703
3703
|
constructor() {
|
|
3704
3704
|
super(...arguments), this.active = !1, this.loaded = !1;
|
|
3705
3705
|
}
|
|
3706
3706
|
connectedCallback() {
|
|
3707
|
-
return
|
|
3707
|
+
return z(this, null, function* () {
|
|
3708
3708
|
cn(lt.prototype, this, "connectedCallback").call(this), this.icon = yield this._renderSymbol(this.symbol), this.loaded = !0;
|
|
3709
3709
|
});
|
|
3710
3710
|
}
|
|
@@ -3712,8 +3712,8 @@ class lt extends jt {
|
|
|
3712
3712
|
this.active = !this.active;
|
|
3713
3713
|
}
|
|
3714
3714
|
_renderSymbol(t) {
|
|
3715
|
-
return
|
|
3716
|
-
const e = (r) =>
|
|
3715
|
+
return z(this, null, function* () {
|
|
3716
|
+
const e = (r) => z(this, null, function* () {
|
|
3717
3717
|
return yield import("./index-9688347a.js").then((i) => i[r]);
|
|
3718
3718
|
});
|
|
3719
3719
|
if (t) {
|
|
@@ -3742,7 +3742,7 @@ class lt extends jt {
|
|
|
3742
3742
|
}
|
|
3743
3743
|
render() {
|
|
3744
3744
|
return Kt`<button
|
|
3745
|
-
class=${
|
|
3745
|
+
class=${_o({
|
|
3746
3746
|
trigger: !0,
|
|
3747
3747
|
active: this.active,
|
|
3748
3748
|
rendered: this.loaded
|
|
@@ -3781,7 +3781,7 @@ class lt extends jt {
|
|
|
3781
3781
|
}
|
|
3782
3782
|
}
|
|
3783
3783
|
lt.styles = [
|
|
3784
|
-
|
|
3784
|
+
oo`
|
|
3785
3785
|
:host {
|
|
3786
3786
|
--voca-rem-multiplier: 0.625;
|
|
3787
3787
|
display: block;
|
|
@@ -3854,7 +3854,7 @@ lt.styles = [
|
|
|
3854
3854
|
`
|
|
3855
3855
|
];
|
|
3856
3856
|
$e([
|
|
3857
|
-
|
|
3857
|
+
Hr({ attribute: !1 })
|
|
3858
3858
|
], lt.prototype, "symbol", 2);
|
|
3859
3859
|
$e([
|
|
3860
3860
|
nn()
|
|
@@ -3866,12 +3866,12 @@ $e([
|
|
|
3866
3866
|
nn()
|
|
3867
3867
|
], lt.prototype, "icon", 2);
|
|
3868
3868
|
var vt = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Link = "link", n.Badge = "badge", n.Unsupported = "unsupported", n))(vt || {});
|
|
3869
|
-
const
|
|
3869
|
+
const Co = (n, t) => n && t ? "both" : n ? "widgetDOM" : t ? "triggerDOM" : "none", Ur = (n) => n ? typeof n == "boolean" && n ? "link" : typeof n == "object" && !Array.isArray(n) ? "badge" : "unsupported" : "inline", ko = (n, t, e, r, s = !1) => z(void 0, null, function* () {
|
|
3870
3870
|
var h, l;
|
|
3871
|
-
const i =
|
|
3871
|
+
const i = Co(
|
|
3872
3872
|
t,
|
|
3873
3873
|
e
|
|
3874
|
-
), o =
|
|
3874
|
+
), o = Ur(r), a = {
|
|
3875
3875
|
widgetDOMElement: t ? t.cloneNode(!0) : void 0,
|
|
3876
3876
|
triggerDOMElement: e ? e.cloneNode(!0) : void 0
|
|
3877
3877
|
}, c = {
|
|
@@ -3920,8 +3920,8 @@ const Po = (n, t) => n && t ? "both" : n ? "widgetDOM" : t ? "triggerDOM" : "non
|
|
|
3920
3920
|
}
|
|
3921
3921
|
}
|
|
3922
3922
|
return c;
|
|
3923
|
-
}),
|
|
3924
|
-
class
|
|
3923
|
+
}), No = "modals";
|
|
3924
|
+
class Mo {
|
|
3925
3925
|
constructor(t, e) {
|
|
3926
3926
|
this.options = e, this.unsubscribe = [], this.container = t.createChild(this), this.container.register("widgetDOMElement", this.options.widgetDOMElement), this.container.register(
|
|
3927
3927
|
"triggerDOMElement",
|
|
@@ -3940,16 +3940,16 @@ class No {
|
|
|
3940
3940
|
*/
|
|
3941
3941
|
render() {
|
|
3942
3942
|
const { widgetDOMElement: t, triggerDOMElement: e } = this.options, r = this.container.get("$widget");
|
|
3943
|
-
return t.getAttribute("data-rendered") === "true" ? Promise.resolve() : (e && this.options.triggerType === vt.Badge &&
|
|
3943
|
+
return t.getAttribute("data-rendered") === "true" ? Promise.resolve() : (e && this.options.triggerType === vt.Badge && so(e), import("./render-fd368868.js").then((s) => s.default(this.container, t)).then(() => {
|
|
3944
3944
|
if (t.setAttribute("data-rendered", "true"), e && this.options.triggerType === vt.Badge) {
|
|
3945
3945
|
const i = this.options.triggerOptions.openTooltip;
|
|
3946
|
-
|
|
3946
|
+
Mr(e, i);
|
|
3947
3947
|
}
|
|
3948
|
-
|
|
3948
|
+
os(this.container, t);
|
|
3949
3949
|
const s = this.container.get("$environment").widgets.all();
|
|
3950
3950
|
Y(
|
|
3951
3951
|
this.container,
|
|
3952
|
-
|
|
3952
|
+
No,
|
|
3953
3953
|
S.Session
|
|
3954
3954
|
).then((i) => {
|
|
3955
3955
|
i && i.forEach((o) => {
|
|
@@ -3967,7 +3967,7 @@ class No {
|
|
|
3967
3967
|
e.getAttribute("role") || e.setAttribute("role", "button");
|
|
3968
3968
|
const { name: r } = this.container.get("$widget"), { label: s, symbol: i, ariaLabel: o, closedTooltip: a, openTooltip: c } = t, h = { closedTooltip: a, openTooltip: c };
|
|
3969
3969
|
this.options.triggerOptions = h;
|
|
3970
|
-
const l =
|
|
3970
|
+
const l = no(e, {
|
|
3971
3971
|
label: s,
|
|
3972
3972
|
symbol: i,
|
|
3973
3973
|
ariaLabel: o,
|
|
@@ -3977,7 +3977,7 @@ class No {
|
|
|
3977
3977
|
this.unsubscribe.push(l);
|
|
3978
3978
|
}
|
|
3979
3979
|
dispose() {
|
|
3980
|
-
return
|
|
3980
|
+
return z(this, null, function* () {
|
|
3981
3981
|
var r, s, i, o;
|
|
3982
3982
|
const { triggerDOMElement: t, widgetDOMElement: e } = this.options;
|
|
3983
3983
|
this.options.cachedOriginals.widgetDOMElement && e && ((r = e.parentNode) == null || r.replaceChild(
|
|
@@ -3992,7 +3992,7 @@ class No {
|
|
|
3992
3992
|
});
|
|
3993
3993
|
}
|
|
3994
3994
|
}
|
|
3995
|
-
const
|
|
3995
|
+
const Gt = "changesets", Lo = (n) => {
|
|
3996
3996
|
const t = { tags: n.tags };
|
|
3997
3997
|
return n.context && typeof n.context != "function" && (t.context = n.context), n.properties && typeof n.properties != "function" && (t.properties = n.properties), n.layout && typeof n.layout != "function" && (t.layout = n.layout), t;
|
|
3998
3998
|
};
|
|
@@ -4003,7 +4003,7 @@ class rn {
|
|
|
4003
4003
|
static create(t) {
|
|
4004
4004
|
return et(
|
|
4005
4005
|
t,
|
|
4006
|
-
|
|
4006
|
+
Gt,
|
|
4007
4007
|
P.Necessary,
|
|
4008
4008
|
{
|
|
4009
4009
|
medium: S.Local
|
|
@@ -4013,23 +4013,23 @@ class rn {
|
|
|
4013
4013
|
);
|
|
4014
4014
|
}
|
|
4015
4015
|
write(t, e, r, s) {
|
|
4016
|
-
return
|
|
4016
|
+
return Q(this)(() => Y(
|
|
4017
4017
|
this.container,
|
|
4018
|
-
|
|
4018
|
+
Gt,
|
|
4019
4019
|
S.Local
|
|
4020
4020
|
).then((i = {}) => {
|
|
4021
4021
|
const { keys: o = [], items: a = {} } = i, c = o.indexOf(t);
|
|
4022
4022
|
return c > -1 && o.splice(c, 1), o.push(t), a[t] = {
|
|
4023
4023
|
options: s,
|
|
4024
|
-
attributes:
|
|
4024
|
+
attributes: Lo(r),
|
|
4025
4025
|
rules: e.rules
|
|
4026
4026
|
}, this.storageWriter({ keys: o, items: a });
|
|
4027
4027
|
}));
|
|
4028
4028
|
}
|
|
4029
4029
|
remove(t) {
|
|
4030
|
-
return
|
|
4030
|
+
return Q(this)(() => Y(
|
|
4031
4031
|
this.container,
|
|
4032
|
-
|
|
4032
|
+
Gt,
|
|
4033
4033
|
S.Local
|
|
4034
4034
|
).then((e = {}) => {
|
|
4035
4035
|
const { keys: r = [], items: s = {} } = e, i = r.indexOf(t);
|
|
@@ -4038,9 +4038,9 @@ class rn {
|
|
|
4038
4038
|
}));
|
|
4039
4039
|
}
|
|
4040
4040
|
load(t) {
|
|
4041
|
-
return
|
|
4041
|
+
return Q(this)(() => Y(
|
|
4042
4042
|
this.container,
|
|
4043
|
-
|
|
4043
|
+
Gt,
|
|
4044
4044
|
S.Local
|
|
4045
4045
|
).then((e = {}) => {
|
|
4046
4046
|
const { keys: r = [], items: s = {} } = e;
|
|
@@ -4058,20 +4058,20 @@ class rn {
|
|
|
4058
4058
|
}));
|
|
4059
4059
|
}
|
|
4060
4060
|
}
|
|
4061
|
-
const
|
|
4061
|
+
const Do = (n) => {
|
|
4062
4062
|
const { container: t } = n;
|
|
4063
4063
|
return rn.create(t).then(
|
|
4064
4064
|
(e) => {
|
|
4065
|
-
const r = t.get("$settings"), s = { localStorage: e }, i = new me(n, s), o =
|
|
4065
|
+
const r = t.get("$settings"), s = { localStorage: e }, i = new me(n, s), o = rr(i, r);
|
|
4066
4066
|
return n.events.subscribe(
|
|
4067
4067
|
"widget:state-change",
|
|
4068
4068
|
(a, c) => {
|
|
4069
|
-
c.state ===
|
|
4069
|
+
c.state === Qn.Deactivating && o();
|
|
4070
4070
|
}
|
|
4071
4071
|
), i;
|
|
4072
4072
|
}
|
|
4073
4073
|
);
|
|
4074
|
-
},
|
|
4074
|
+
}, To = (n) => Promise.resolve().then(() => Gi).then(
|
|
4075
4075
|
({ RoutingService: t, HistoryMode: e }) => n.get("settings").then((r) => {
|
|
4076
4076
|
const {
|
|
4077
4077
|
routing: {
|
|
@@ -4091,8 +4091,8 @@ const Lo = (n) => {
|
|
|
4091
4091
|
basePath: o
|
|
4092
4092
|
});
|
|
4093
4093
|
})
|
|
4094
|
-
),
|
|
4095
|
-
class
|
|
4094
|
+
), jo = (n) => Promise.resolve().then(() => ai).then(({ StorageProvider: t }) => new t()), Ro = (n) => Promise.resolve().then(() => Ge).then(({ ActionResolver: t }) => new t(n)), Io = (n) => Promise.resolve().then(() => Ge).then(({ ComponentResolver: t }) => new t(n)), Ho = (n) => Promise.resolve().then(() => Ge).then(() => Do(n.get("$widget"))), Ue = "$settings", Yt = "open", Gn = "activeStickyWidget";
|
|
4095
|
+
class la extends Zr {
|
|
4096
4096
|
constructor(t) {
|
|
4097
4097
|
super(t), this.outlets = /* @__PURE__ */ new Map(), this.activated = void 0, this.subs = [], this.handleBootstrapping = (e) => {
|
|
4098
4098
|
const r = {
|
|
@@ -4108,23 +4108,23 @@ class oa extends Gr {
|
|
|
4108
4108
|
});
|
|
4109
4109
|
}, this.container.registerAsync(
|
|
4110
4110
|
"storage",
|
|
4111
|
-
() =>
|
|
4111
|
+
() => jo(this.container)
|
|
4112
4112
|
), this.container.registerFactory("settings", () => Y(
|
|
4113
4113
|
this.container,
|
|
4114
4114
|
Ue,
|
|
4115
4115
|
S.Local
|
|
4116
|
-
).then((e = {}) => st(st({}, this.container.get("$settings")), e))),
|
|
4116
|
+
).then((e = {}) => st(st({}, this.container.get("$settings")), e))), to(this, "load", this.handleBootstrapping), this.container.registerAsync(
|
|
4117
4117
|
"componentResolver",
|
|
4118
|
-
() =>
|
|
4118
|
+
() => Io(this.container)
|
|
4119
4119
|
), this.container.registerAsync(
|
|
4120
4120
|
"router",
|
|
4121
|
-
() =>
|
|
4121
|
+
() => To(this.container)
|
|
4122
4122
|
), this.container.registerAsync(
|
|
4123
4123
|
"actionResolver",
|
|
4124
|
-
() =>
|
|
4124
|
+
() => Ro(this.container)
|
|
4125
4125
|
), this.container.register("matchMedia", window.matchMedia), this.container.registerAsync(
|
|
4126
4126
|
"components",
|
|
4127
|
-
() =>
|
|
4127
|
+
() => Ho(this.container)
|
|
4128
4128
|
);
|
|
4129
4129
|
}
|
|
4130
4130
|
initialize() {
|
|
@@ -4153,7 +4153,7 @@ class oa extends Gr {
|
|
|
4153
4153
|
"router:change",
|
|
4154
4154
|
(l, { previous: u = { routeData: {} }, next: d = { routeData: {} } }) => {
|
|
4155
4155
|
const { routeData: p } = u, { routeData: b } = d, v = Object.keys(o.views).reduce(
|
|
4156
|
-
(g,
|
|
4156
|
+
(g, O) => typeof o.views[O].path == "undefined" ? O : g,
|
|
4157
4157
|
""
|
|
4158
4158
|
);
|
|
4159
4159
|
!b.name && v ? a(v) : a(b.name), yt(p && p.params), yt(b && b.params), this.container.getAsync("actionResolver").then((g) => {
|
|
@@ -4168,14 +4168,14 @@ class oa extends Gr {
|
|
|
4168
4168
|
);
|
|
4169
4169
|
}
|
|
4170
4170
|
attach(t = {}) {
|
|
4171
|
-
return this.container.get("settings").then((r) =>
|
|
4171
|
+
return this.container.get("settings").then((r) => z(this, [r], function* ({ trigger: e }) {
|
|
4172
4172
|
var p, b;
|
|
4173
4173
|
const {
|
|
4174
4174
|
widgetDOMElement: s,
|
|
4175
4175
|
key: i = Bt(),
|
|
4176
4176
|
triggerDOMElement: o,
|
|
4177
4177
|
withRenderState: a
|
|
4178
|
-
} = t, h =
|
|
4178
|
+
} = t, h = Ur(e) === vt.Inline && ((o == null ? void 0 : o.childElementCount) || 0) > 0, l = yield ko(
|
|
4179
4179
|
this.widget.name,
|
|
4180
4180
|
s,
|
|
4181
4181
|
o,
|
|
@@ -4184,20 +4184,20 @@ class oa extends Gr {
|
|
|
4184
4184
|
);
|
|
4185
4185
|
this.outlets.size < 1 && !a && this.setRenderState("unset");
|
|
4186
4186
|
const u = () => {
|
|
4187
|
-
const v = () => g.querySelectorAll("[data-loading=true]").length === 0, [g] = this.widget.container.get("widgetDOMElements"),
|
|
4187
|
+
const v = () => g.querySelectorAll("[data-loading=true]").length === 0, [g] = this.widget.container.get("widgetDOMElements"), O = (H, k) => {
|
|
4188
4188
|
v() && (l.callback && l.callback(), k.disconnect());
|
|
4189
4189
|
}, j = {
|
|
4190
4190
|
attributes: !0,
|
|
4191
4191
|
subtree: !0,
|
|
4192
4192
|
childList: !0
|
|
4193
4193
|
};
|
|
4194
|
-
v() && l.callback && l.callback(), new MutationObserver(
|
|
4194
|
+
v() && l.callback && l.callback(), new MutationObserver(O).observe(g, j);
|
|
4195
4195
|
};
|
|
4196
4196
|
h && this.widget.container.getAsync("dataClient").then(({ events: v }) => {
|
|
4197
4197
|
v.subscribe(
|
|
4198
4198
|
"data-client:fetched",
|
|
4199
|
-
(g,
|
|
4200
|
-
|
|
4199
|
+
(g, O) => {
|
|
4200
|
+
O.unresolvedQueries === 0 && u();
|
|
4201
4201
|
}
|
|
4202
4202
|
);
|
|
4203
4203
|
});
|
|
@@ -4209,7 +4209,7 @@ class oa extends Gr {
|
|
|
4209
4209
|
"click",
|
|
4210
4210
|
(v) => {
|
|
4211
4211
|
v.preventDefault(), this.container.get("settings").then(({ trigger: g }) => {
|
|
4212
|
-
d.render().then(() => this.renderState()).then((
|
|
4212
|
+
d.render().then(() => this.renderState()).then((O) => g && g.action && g.action === "hide" ? O === q.open ? this.hide() : this.open() : O === q.open ? this.close() : this.open());
|
|
4213
4213
|
});
|
|
4214
4214
|
}
|
|
4215
4215
|
)), this.outlets.size > 1)
|
|
@@ -4258,7 +4258,7 @@ class oa extends Gr {
|
|
|
4258
4258
|
});
|
|
4259
4259
|
}
|
|
4260
4260
|
getOrCreateViewOutlet(t, e) {
|
|
4261
|
-
return this.outlets.has(t) ? this.outlets.get(t) : new
|
|
4261
|
+
return this.outlets.has(t) ? this.outlets.get(t) : new Mo(this.container, e);
|
|
4262
4262
|
}
|
|
4263
4263
|
render(t = {}) {
|
|
4264
4264
|
if (process.env.NODE_ENV !== "production" && console.warn(
|
|
@@ -4311,17 +4311,17 @@ class oa extends Gr {
|
|
|
4311
4311
|
}
|
|
4312
4312
|
renderState() {
|
|
4313
4313
|
if (Xe(this.container))
|
|
4314
|
-
return Promise.resolve(
|
|
4314
|
+
return Promise.resolve(q.open);
|
|
4315
4315
|
const t = () => Y(
|
|
4316
4316
|
this.container,
|
|
4317
|
-
|
|
4317
|
+
Yt,
|
|
4318
4318
|
S.Session
|
|
4319
|
-
).then((r =
|
|
4319
|
+
).then((r = q.closed) => r), e = () => Y(
|
|
4320
4320
|
this.container,
|
|
4321
|
-
|
|
4321
|
+
Yt,
|
|
4322
4322
|
S.Session
|
|
4323
|
-
).then((r =
|
|
4324
|
-
return this.container.getAsync("router").then((r) => r.isSticky() ? e().then((s) => s ===
|
|
4323
|
+
).then((r = q.closed) => r);
|
|
4324
|
+
return this.container.getAsync("router").then((r) => r.isSticky() ? e().then((s) => s === q.open ? s : t()) : t());
|
|
4325
4325
|
}
|
|
4326
4326
|
hide() {
|
|
4327
4327
|
return this.outlets.size < 1 ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
@@ -4350,9 +4350,9 @@ class oa extends Gr {
|
|
|
4350
4350
|
case "close":
|
|
4351
4351
|
case "open":
|
|
4352
4352
|
case "hide":
|
|
4353
|
-
const r = t === "open" ?
|
|
4353
|
+
const r = t === "open" ? q.open : t === "close" ? q.closed : q.hidden;
|
|
4354
4354
|
return this.setRenderState(r).then(() => {
|
|
4355
|
-
this.setTriggerState(r ===
|
|
4355
|
+
this.setTriggerState(r === q.open), r !== q.hidden ? r === q.open ? this.onOpen() : this.onClose() : this.outlets.forEach(
|
|
4356
4356
|
(s) => {
|
|
4357
4357
|
var i;
|
|
4358
4358
|
return (i = s.options.triggerDOMElement) == null ? void 0 : i.setAttribute(
|
|
@@ -4369,7 +4369,7 @@ class oa extends Gr {
|
|
|
4369
4369
|
return Promise.all([
|
|
4370
4370
|
et(
|
|
4371
4371
|
this.container,
|
|
4372
|
-
|
|
4372
|
+
Yt,
|
|
4373
4373
|
P.Necessary,
|
|
4374
4374
|
{
|
|
4375
4375
|
medium: S.Session
|
|
@@ -4377,7 +4377,7 @@ class oa extends Gr {
|
|
|
4377
4377
|
),
|
|
4378
4378
|
et(
|
|
4379
4379
|
this.container,
|
|
4380
|
-
|
|
4380
|
+
Yt,
|
|
4381
4381
|
P.Necessary,
|
|
4382
4382
|
{
|
|
4383
4383
|
medium: S.Local,
|
|
@@ -4443,7 +4443,7 @@ class oa extends Gr {
|
|
|
4443
4443
|
const {
|
|
4444
4444
|
options: { triggerDOMElement: r, triggerOptions: s }
|
|
4445
4445
|
} = e, { openTooltip: i, closedTooltip: o } = s || {};
|
|
4446
|
-
r && (t ?
|
|
4446
|
+
r && (t ? Mr(r, i) : ro(r, o));
|
|
4447
4447
|
});
|
|
4448
4448
|
}
|
|
4449
4449
|
deactivate() {
|
|
@@ -4451,11 +4451,11 @@ class oa extends Gr {
|
|
|
4451
4451
|
const t = [];
|
|
4452
4452
|
return this.outlets.forEach((e) => t.push(e.dispose())), Y(
|
|
4453
4453
|
this.container,
|
|
4454
|
-
|
|
4454
|
+
Gn,
|
|
4455
4455
|
S.Local
|
|
4456
4456
|
).then((e) => e === this.widget.name ? et(
|
|
4457
4457
|
this.container,
|
|
4458
|
-
|
|
4458
|
+
Gn,
|
|
4459
4459
|
P.Necessary,
|
|
4460
4460
|
{
|
|
4461
4461
|
medium: S.Local,
|
|
@@ -4469,7 +4469,7 @@ class oa extends Gr {
|
|
|
4469
4469
|
* Copyright 2021 Google LLC
|
|
4470
4470
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4471
4471
|
*/
|
|
4472
|
-
let
|
|
4472
|
+
let Uo = class extends Event {
|
|
4473
4473
|
constructor(t, e, r) {
|
|
4474
4474
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = r != null && r;
|
|
4475
4475
|
}
|
|
@@ -4484,7 +4484,7 @@ let Ho = class extends Event {
|
|
|
4484
4484
|
* Copyright 2021 Google LLC
|
|
4485
4485
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4486
4486
|
*/
|
|
4487
|
-
class
|
|
4487
|
+
class Yn {
|
|
4488
4488
|
constructor(t, e, r, s) {
|
|
4489
4489
|
var i;
|
|
4490
4490
|
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (o, a) => {
|
|
@@ -4503,22 +4503,22 @@ class Gn {
|
|
|
4503
4503
|
this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
|
|
4504
4504
|
}
|
|
4505
4505
|
dispatchRequest() {
|
|
4506
|
-
this.host.dispatchEvent(new
|
|
4506
|
+
this.host.dispatchEvent(new Uo(this.context, this.t, this.subscribe));
|
|
4507
4507
|
}
|
|
4508
4508
|
}
|
|
4509
|
-
const
|
|
4510
|
-
class
|
|
4509
|
+
const da = "children", Bo = "descriptor", Vo = "container", pa = "context", ga = "layout", fa = "properties";
|
|
4510
|
+
class ma {
|
|
4511
4511
|
constructor(t) {
|
|
4512
|
-
(this.host = t).addController(this), new
|
|
4512
|
+
(this.host = t).addController(this), new Yn(
|
|
4513
4513
|
t,
|
|
4514
|
-
|
|
4514
|
+
Vo,
|
|
4515
4515
|
(e) => {
|
|
4516
4516
|
this._container = e, this.host.requestUpdate();
|
|
4517
4517
|
},
|
|
4518
4518
|
!0
|
|
4519
|
-
), new
|
|
4519
|
+
), new Yn(
|
|
4520
4520
|
t,
|
|
4521
|
-
|
|
4521
|
+
Bo,
|
|
4522
4522
|
(e) => {
|
|
4523
4523
|
this._descriptor = e, this.host.requestUpdate();
|
|
4524
4524
|
},
|
|
@@ -4530,7 +4530,7 @@ class da {
|
|
|
4530
4530
|
hostDisconnected() {
|
|
4531
4531
|
}
|
|
4532
4532
|
dispatch(t, e) {
|
|
4533
|
-
return
|
|
4533
|
+
return z(this, null, function* () {
|
|
4534
4534
|
if (!this._container || !this._descriptor)
|
|
4535
4535
|
return;
|
|
4536
4536
|
const r = yield me.getInstance(
|
|
@@ -4545,31 +4545,96 @@ class da {
|
|
|
4545
4545
|
});
|
|
4546
4546
|
}
|
|
4547
4547
|
}
|
|
4548
|
-
const
|
|
4548
|
+
const zo = (n, t) => z(void 0, null, function* () {
|
|
4549
|
+
const e = n.properties().provider;
|
|
4550
|
+
let r = {}, s = "";
|
|
4551
|
+
Array.isArray(e) ? (s = e[0], r = e[1]) : s = e || "";
|
|
4552
|
+
const i = yield t.getAsync(s);
|
|
4553
|
+
if (!i)
|
|
4554
|
+
throw new Error("No provider defined in ListComponent");
|
|
4555
|
+
return i.applyComponentNodeSettings(n.node.id, r), { provider: i, settings: r };
|
|
4556
|
+
}), va = (n, t) => z(void 0, null, function* () {
|
|
4557
|
+
const { provider: e, settings: r = {} } = yield zo(n, t);
|
|
4558
|
+
return {
|
|
4559
|
+
addResource: (s, i) => e.addResource(s, i),
|
|
4560
|
+
getData: (s, i) => e.getData(s, i, r)
|
|
4561
|
+
};
|
|
4562
|
+
});
|
|
4563
|
+
class Wo {
|
|
4564
|
+
constructor(t) {
|
|
4565
|
+
this.container = t, this.resources = /* @__PURE__ */ new Map(), this.nodeConfiguration = /* @__PURE__ */ new Map();
|
|
4566
|
+
}
|
|
4567
|
+
getData(t, e, r) {
|
|
4568
|
+
return z(this, null, function* () {
|
|
4569
|
+
const s = this.resources.get(t);
|
|
4570
|
+
if (!s)
|
|
4571
|
+
throw new Error(`Unable to get EntityProvider for "${t}"`);
|
|
4572
|
+
return yield s.query(e, r);
|
|
4573
|
+
});
|
|
4574
|
+
}
|
|
4575
|
+
addResource(t, e) {
|
|
4576
|
+
this.resources.set(t, e);
|
|
4577
|
+
}
|
|
4578
|
+
applyComponentNodeSettings(t, e) {
|
|
4579
|
+
this.nodeConfiguration.set(t, e);
|
|
4580
|
+
}
|
|
4581
|
+
}
|
|
4582
|
+
const Zn = (n) => ({
|
|
4583
|
+
title: n.Title,
|
|
4584
|
+
id: n.Id.toString()
|
|
4585
|
+
});
|
|
4586
|
+
class Fo extends Wo {
|
|
4587
|
+
constructor(t) {
|
|
4588
|
+
super(t), this.addResource("item", {
|
|
4589
|
+
query: (e, r) => z(this, null, function* () {
|
|
4590
|
+
const s = e.itemId, i = "78aacc09-ae6f-5485-5ca3-9dacebb95825", o = t.get("$widget").name, a = r.projection || "", h = yield (yield fetch(
|
|
4591
|
+
`${a}/guides/${s}?client=${i}&funnel=${o}&site=%2F%2Fdemo.humany.cc%2Fadmin%2Finterfaces&phrase=&connectionId=&p.LastGuideId=2857`
|
|
4592
|
+
)).json();
|
|
4593
|
+
return h ? Zn(h) : null;
|
|
4594
|
+
})
|
|
4595
|
+
}), this.addResource("items", {
|
|
4596
|
+
query: (e, r) => z(this, null, function* () {
|
|
4597
|
+
const s = "", i = t.get("$widget").name, o = r.projection || "", u = yield (yield fetch(
|
|
4598
|
+
`${o}/guides?client=${s}&funnel=${i}&site=&phrase=&skip=0&take=10&sorting.type=popularity&sorting.direction=descending`
|
|
4599
|
+
)).json();
|
|
4600
|
+
return {
|
|
4601
|
+
items: (u.Matches || []).map((d) => Zn(d)),
|
|
4602
|
+
totalItems: (u == null ? void 0 : u.TotalMatches) || 0
|
|
4603
|
+
};
|
|
4604
|
+
})
|
|
4605
|
+
});
|
|
4606
|
+
}
|
|
4607
|
+
}
|
|
4608
|
+
const ya = (n) => z(void 0, null, function* () {
|
|
4609
|
+
n.registerAsync("guideProvider", () => new Fo(n));
|
|
4610
|
+
}), ba = (n, t, e, r, s) => n.getAsync("componentResolver").then((i) => (i.registerComponent(t, e), sr(n, t, r || (() => {
|
|
4549
4611
|
}), t, s)));
|
|
4550
4612
|
export {
|
|
4551
4613
|
T as A,
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4614
|
+
Wo as D,
|
|
4615
|
+
xs as E,
|
|
4616
|
+
ya as G,
|
|
4617
|
+
la as W,
|
|
4618
|
+
Yn as a,
|
|
4555
4619
|
jt as b,
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4620
|
+
Vo as c,
|
|
4621
|
+
oo as d,
|
|
4622
|
+
Ao as e,
|
|
4559
4623
|
nn as f,
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4624
|
+
Bo as g,
|
|
4625
|
+
da as h,
|
|
4626
|
+
xo as i,
|
|
4627
|
+
fa as j,
|
|
4628
|
+
pa as k,
|
|
4629
|
+
ga as l,
|
|
4630
|
+
q as m,
|
|
4631
|
+
Hr as n,
|
|
4632
|
+
ma as o,
|
|
4569
4633
|
me as p,
|
|
4570
|
-
|
|
4571
|
-
|
|
4634
|
+
va as q,
|
|
4635
|
+
ba as r,
|
|
4636
|
+
Uo as s,
|
|
4572
4637
|
Oo as t,
|
|
4573
4638
|
Kt as x
|
|
4574
4639
|
};
|
|
4575
|
-
//# sourceMappingURL=index-
|
|
4640
|
+
//# sourceMappingURL=index-e248f756.js.map
|