@yuneta/gobj-js 7.26.19 → 7.26.20
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/README.md +14 -1
- package/dist/gobj-js.cjs.js +101 -12
- package/dist/gobj-js.cjs.js.map +1 -1
- package/dist/gobj-js.cjs.min.js +762 -711
- package/dist/gobj-js.cjs.min.js.map +1 -1
- package/dist/gobj-js.es.js +101 -12
- package/dist/gobj-js.es.js.map +1 -1
- package/dist/gobj-js.es.min.js +780 -729
- package/dist/gobj-js.es.min.js.map +1 -1
- package/dist/gobj-js.iife.js +101 -12
- package/dist/gobj-js.iife.js.map +1 -1
- package/dist/gobj-js.iife.min.js +762 -711
- package/dist/gobj-js.iife.min.js.map +1 -1
- package/dist/gobj-js.umd.js +101 -12
- package/dist/gobj-js.umd.js.map +1 -1
- package/dist/gobj-js.umd.min.js +762 -711
- package/dist/gobj-js.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/gobj-js.es.min.js
CHANGED
|
@@ -178,7 +178,7 @@ var O = class {
|
|
|
178
178
|
}
|
|
179
179
|
}, I = class {
|
|
180
180
|
constructor(e, t, n, r, l) {
|
|
181
|
-
this.__refs__ = 0, this.gclass = t, this.parent = null, this.dl_children = [], this.dl_subscriptions = [], this.dl_subscribings = [], this.current_state = t.dl_states[0], this.last_state = null, this.obflag = 0, this.gobj_flag = Number(l) || 0, this.gobj_name = e, this.jn_attrs = null, this.jn_stats = {}, this.jn_user_data = {}, this.full_name = null, this.short_name = null, this.priv =
|
|
181
|
+
this.__refs__ = 0, this.gclass = t, this.parent = null, this.dl_children = [], this.dl_subscriptions = [], this.dl_subscribings = [], this.current_state = t.dl_states[0], this.last_state = null, this.obflag = 0, this.gobj_flag = Number(l) || 0, this.gobj_name = e, this.jn_attrs = null, this.jn_stats = {}, this.jn_user_data = {}, this.full_name = null, this.short_name = null, this.priv = Fr(t.priv), this.running = !1, this.playing = !1, this.disabled = !1, this.bottom_gobj = null, this.trace_level = 0, this.no_trace_level = 0;
|
|
182
182
|
}
|
|
183
183
|
}, C = Object.freeze({
|
|
184
184
|
gcflag_manual_start: 1,
|
|
@@ -230,7 +230,7 @@ function K() {
|
|
|
230
230
|
return W;
|
|
231
231
|
}
|
|
232
232
|
function Y(e) {
|
|
233
|
-
|
|
233
|
+
nl(e) && (e = JSON.stringify(e)), dr(" ".repeat(Math.max(1, 2 * y)) + String(e));
|
|
234
234
|
}
|
|
235
235
|
var B = Object.freeze({
|
|
236
236
|
TRACE_MACHINE: 65536,
|
|
@@ -332,7 +332,7 @@ function Q(e, t) {
|
|
|
332
332
|
return n;
|
|
333
333
|
}
|
|
334
334
|
function X(e, t, n) {
|
|
335
|
-
if (
|
|
335
|
+
if (fl(e)) return void 0 === n ? 268369920 : 65535;
|
|
336
336
|
if (/^[0-9]+$/.test(String(e))) {
|
|
337
337
|
const t = Number(e);
|
|
338
338
|
if (t) return t;
|
|
@@ -405,22 +405,22 @@ function de() {
|
|
|
405
405
|
return Q(H, null);
|
|
406
406
|
}
|
|
407
407
|
function be(e) {
|
|
408
|
-
const t =
|
|
408
|
+
const t = ll(e) ? Me(e) : e;
|
|
409
409
|
return t ? Q(t.trace_level | q, t.s_user_trace_level) : (cr(`gobj_get_gclass_trace_level: gclass NOT FOUND: ${e}`), []);
|
|
410
410
|
}
|
|
411
411
|
function pe(e) {
|
|
412
|
-
const t =
|
|
412
|
+
const t = ll(e) ? Me(e) : e;
|
|
413
413
|
return t ? Q(t.trace_level, t.s_user_trace_level) : (cr(`gobj_get_gclass_trace_level2: gclass NOT FOUND: ${e}`), []);
|
|
414
414
|
}
|
|
415
415
|
function me(e) {
|
|
416
|
-
const t =
|
|
416
|
+
const t = ll(e) ? Me(e) : e;
|
|
417
417
|
return t ? Q(t.no_trace_level, t.s_user_trace_level) : (cr(`gobj_get_gclass_trace_no_level: gclass NOT FOUND: ${e}`), []);
|
|
418
418
|
}
|
|
419
419
|
function he(e) {
|
|
420
420
|
return z = Number(e) || 0, 0;
|
|
421
421
|
}
|
|
422
422
|
function Ee(e, t, n) {
|
|
423
|
-
const r =
|
|
423
|
+
const r = ll(e) ? Me(e) : e;
|
|
424
424
|
if (!r) return cr(`gobj_set_gclass_trace: gclass NOT FOUND: ${e}`), -1;
|
|
425
425
|
const l = null === t ? 4294967295 : X(t, "gobj_set_gclass_trace", r.s_user_trace_level || null);
|
|
426
426
|
return l ? (n ? r.trace_level |= l : r.trace_level &= ~l, 0) : -1;
|
|
@@ -431,7 +431,7 @@ function ye(e, t, n) {
|
|
|
431
431
|
return r ? (n ? e.trace_level |= r : e.trace_level &= ~r, 0) : -1;
|
|
432
432
|
}
|
|
433
433
|
function Te(e, t, n) {
|
|
434
|
-
const r =
|
|
434
|
+
const r = ll(e) ? Me(e) : e;
|
|
435
435
|
if (!r) return cr(`gobj_set_gclass_no_trace: gclass NOT FOUND: ${e}`), -1;
|
|
436
436
|
const l = null === t ? 4294967295 : X(t, "gobj_set_gclass_no_trace", r.s_user_trace_level || null);
|
|
437
437
|
return l ? (n ? r.no_trace_level |= l : r.no_trace_level &= ~l, 0) : -1;
|
|
@@ -460,7 +460,7 @@ function Se(e, t, n, r, l, o, i) {
|
|
|
460
460
|
}
|
|
461
461
|
function Ne(e, t) {
|
|
462
462
|
let n = {};
|
|
463
|
-
if (!
|
|
463
|
+
if (!rl(t)) return cr("sdata_desc MUST be an array"), pr(t), n;
|
|
464
464
|
for (let r = 0; r < t.length; r++) {
|
|
465
465
|
const l = t[r];
|
|
466
466
|
l.name && we(e, n, l);
|
|
@@ -474,7 +474,7 @@ function we(e, t, n) {
|
|
|
474
474
|
r = String(l);
|
|
475
475
|
break;
|
|
476
476
|
case T.DTP_BOOLEAN:
|
|
477
|
-
r =
|
|
477
|
+
r = gl(l);
|
|
478
478
|
break;
|
|
479
479
|
case T.DTP_INTEGER:
|
|
480
480
|
r = parseInt(l), isNaN(r) && cr(`${Rt(e)}: attr NaN: ${n.name}`);
|
|
@@ -483,26 +483,26 @@ function we(e, t, n) {
|
|
|
483
483
|
r = Number(l), isNaN(r) && cr(`${Rt(e)}: attr NaN: ${n.name}`);
|
|
484
484
|
break;
|
|
485
485
|
case T.DTP_LIST:
|
|
486
|
-
if (
|
|
486
|
+
if (ll(l)) try {
|
|
487
487
|
r = JSON.parse(l);
|
|
488
488
|
} catch (e) {
|
|
489
489
|
cr(`JSON parse error: ${e.message}`);
|
|
490
490
|
}
|
|
491
491
|
else r = l;
|
|
492
|
-
|
|
492
|
+
rl(r) || (r = []);
|
|
493
493
|
break;
|
|
494
494
|
case T.DTP_DICT:
|
|
495
|
-
if (
|
|
495
|
+
if (ll(l)) try {
|
|
496
496
|
r = JSON.parse(l);
|
|
497
497
|
} catch (e) {
|
|
498
498
|
cr(`JSON parse error: ${e.message}`);
|
|
499
499
|
}
|
|
500
500
|
else r = l;
|
|
501
|
-
|
|
501
|
+
nl(r) || (r = {});
|
|
502
502
|
break;
|
|
503
503
|
case T.DTP_JSON:
|
|
504
504
|
if ("" === l || void 0 === l) r = null;
|
|
505
|
-
else if (
|
|
505
|
+
else if (ll(l)) try {
|
|
506
506
|
r = JSON.parse(l);
|
|
507
507
|
} catch (e) {
|
|
508
508
|
cr(`JSON parse error: ${e.message}`);
|
|
@@ -518,14 +518,14 @@ function je(e, t, n, r) {
|
|
|
518
518
|
switch (n.type) {
|
|
519
519
|
case T.DTP_STRING:
|
|
520
520
|
if (null == r) l = "";
|
|
521
|
-
else if (
|
|
521
|
+
else if (ll(r)) l = String(r);
|
|
522
522
|
else {
|
|
523
523
|
let e = JSON.stringify(r);
|
|
524
524
|
e && (l = String(e));
|
|
525
525
|
}
|
|
526
526
|
break;
|
|
527
527
|
case T.DTP_BOOLEAN:
|
|
528
|
-
l =
|
|
528
|
+
l = gl(r);
|
|
529
529
|
break;
|
|
530
530
|
case T.DTP_INTEGER:
|
|
531
531
|
if (l = parseInt(r), isNaN(l)) return cr(`${Rt(e)}: attr NaN: ${n.name}`), -1;
|
|
@@ -534,25 +534,25 @@ function je(e, t, n, r) {
|
|
|
534
534
|
if (l = Number(r), isNaN(l)) return cr(`${Rt(e)}: attr NaN: ${n.name}`), -1;
|
|
535
535
|
break;
|
|
536
536
|
case T.DTP_LIST:
|
|
537
|
-
if (
|
|
537
|
+
if (ll(r)) try {
|
|
538
538
|
l = JSON.parse(r);
|
|
539
539
|
} catch (e) {
|
|
540
540
|
cr(`JSON parse error: ${e.message}`);
|
|
541
541
|
}
|
|
542
542
|
else l = r;
|
|
543
|
-
if (!
|
|
543
|
+
if (!rl(l)) return cr(`attr must be an array: ${n.name}`), -1;
|
|
544
544
|
break;
|
|
545
545
|
case T.DTP_DICT:
|
|
546
|
-
if (
|
|
546
|
+
if (ll(r)) try {
|
|
547
547
|
l = JSON.parse(r);
|
|
548
548
|
} catch (e) {
|
|
549
549
|
cr(`JSON parse error: ${e.message}`);
|
|
550
550
|
}
|
|
551
551
|
else l = r;
|
|
552
|
-
if (!
|
|
552
|
+
if (!nl(l)) return cr(`attr must be an object: ${n.name}`), -1;
|
|
553
553
|
break;
|
|
554
554
|
case T.DTP_JSON:
|
|
555
|
-
if (l = r,
|
|
555
|
+
if (l = r, ll(r)) {
|
|
556
556
|
const e = r.trim();
|
|
557
557
|
if (e.startsWith("{") || e.startsWith("[")) try {
|
|
558
558
|
l = JSON.parse(e);
|
|
@@ -563,7 +563,7 @@ function je(e, t, n, r) {
|
|
|
563
563
|
break;
|
|
564
564
|
case T.DTP_POINTER: l = r;
|
|
565
565
|
}
|
|
566
|
-
return void 0 === l && cr(`${Rt(e)}: attr undefined: ${n.name}`), t[n.name] = l,
|
|
566
|
+
return void 0 === l && cr(`${Rt(e)}: attr undefined: ${n.name}`), t[n.name] = l, nl(e.priv) && Object.prototype.hasOwnProperty.call(e.priv, n.name) && (e.priv[n.name] = l), e.obflag & P.obflag_created && !(e.obflag & P.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, n.name), 0;
|
|
567
567
|
}
|
|
568
568
|
function $e(e) {
|
|
569
569
|
return e.jn_attrs;
|
|
@@ -581,7 +581,7 @@ function De(e, t, n) {
|
|
|
581
581
|
return n && cr(`${e.gclass_name}: GClass Attribute NOT FOUND: ${t}`), null;
|
|
582
582
|
}
|
|
583
583
|
function Ae(e, t, n, r, l, o, i, s, a, u, _) {
|
|
584
|
-
if (
|
|
584
|
+
if (fl(e)) return cr("gclass_name EMPTY"), null;
|
|
585
585
|
if (e.includes("`") || e.includes("^") || e.includes(".")) return cr(`GClass name CANNOT have '.' or '^' or '\`' char: ${e}`), null;
|
|
586
586
|
if (Me(e)) return cr(`GClass ALREADY exists: ${e}`), null;
|
|
587
587
|
let c = new k(e, r, l, o, i, s, a, u, _);
|
|
@@ -591,17 +591,17 @@ function Ae(e, t, n, r, l, o, i, s, a, u, _) {
|
|
|
591
591
|
const f = n.length;
|
|
592
592
|
for (let e = 0; e < f; e++) {
|
|
593
593
|
let t = n[e][0], r = n[e][1];
|
|
594
|
-
if (
|
|
594
|
+
if (fl(t)) continue;
|
|
595
595
|
if (Le(c, t) < 0) return ke(c), null;
|
|
596
596
|
const l = r.length;
|
|
597
597
|
for (let e = 0; e < l; e++) {
|
|
598
598
|
let n = r[e][0], l = r[e][1], o = r[e][2];
|
|
599
|
-
|
|
599
|
+
fl(n) || Pe(c, t, n, l, o);
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
for (let e = 0; e < t.length; e++) {
|
|
603
603
|
let n = t[e][0], r = t[e][1];
|
|
604
|
-
if (!
|
|
604
|
+
if (!fl(n)) {
|
|
605
605
|
if (Ve(c, n)) return cr(`SMachine: event repeated in input_events: ${n}`), ke(c), null;
|
|
606
606
|
Fe(c, n, r);
|
|
607
607
|
}
|
|
@@ -614,7 +614,7 @@ function Ae(e, t, n, r, l, o, i, s, a, u, _) {
|
|
|
614
614
|
}
|
|
615
615
|
function ke(e) {
|
|
616
616
|
let t;
|
|
617
|
-
if (
|
|
617
|
+
if (ll(e)) t = e;
|
|
618
618
|
else {
|
|
619
619
|
if (!(e instanceof k)) return cr("Cannot unregister gclass, type unknown"), -1;
|
|
620
620
|
t = e.gclass_name;
|
|
@@ -643,12 +643,12 @@ function Le(e, t) {
|
|
|
643
643
|
}
|
|
644
644
|
function Pe(e, t, n, r, l) {
|
|
645
645
|
if (!(e instanceof k)) return cr("Cannot add state, typeof not GClass"), -1;
|
|
646
|
-
if (
|
|
646
|
+
if (fl(t)) return cr("state_name EMPTY"), -1;
|
|
647
647
|
let o = Ie(e, t);
|
|
648
648
|
return o ? Ce(o, n) ? (cr(`event already exists: gclass ${e.gclass_name}, state ${t}, event ${n}`), -1) : (o.dl_actions.push(new V(n, r, l)), 0) : (cr(`state not found: ${t}`), -1);
|
|
649
649
|
}
|
|
650
650
|
function Ue(e, t, n) {
|
|
651
|
-
|
|
651
|
+
fl(t) || e.push(new M(t, n));
|
|
652
652
|
}
|
|
653
653
|
function Fe(e, t, n) {
|
|
654
654
|
return e instanceof k ? Ue(e.dl_events, t, n) : (cr("Cannot add state, typeof not GClass"), -1);
|
|
@@ -665,21 +665,21 @@ function Ve(e, t) {
|
|
|
665
665
|
function Ge(e) {
|
|
666
666
|
if (!(e instanceof k)) return cr("Cannot add state, typeof not GClass"), -1;
|
|
667
667
|
let t = 0;
|
|
668
|
-
|
|
668
|
+
Zr(e.dl_states) || (cr(`GClass without states: ${e.gclass_name}`), t += -1);
|
|
669
669
|
for (let n = 0; n < e.dl_states.length; n++) {
|
|
670
670
|
let r = e.dl_states[n];
|
|
671
|
-
if (!
|
|
671
|
+
if (!fl(r.state_name)) for (let n = 0; n < r.dl_actions.length; n++) {
|
|
672
672
|
let l = r.dl_actions[n];
|
|
673
|
-
|
|
673
|
+
fl(l.event_name) || (Ve(e, l.event_name) || (cr(`SMachine: state's event NOT in input_events: gclass ${e.gclass_name}, state ${r.state_name}, event ${l.event_name}`), t += -1), l.next_state && (Ie(e, l.next_state) || (cr(`SMachine: next state NOT in state names: gclass ${e.gclass_name}, state ${r.state_name}, next_state ${l.next_state}`), t += -1)));
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
for (let n = 0; n < e.dl_events.length; n++) {
|
|
677
677
|
let r = e.dl_events[n];
|
|
678
|
-
if (!
|
|
678
|
+
if (!fl(r.event_name) && (ol(r.event_flag) || (cr(`SMachine: event flag is NOT number: gclass ${e.gclass_name}, event ${r.event_name}`), t += -1), !(r.event_flag & U.EVF_OUTPUT_EVENT))) {
|
|
679
679
|
let n = !1;
|
|
680
680
|
for (let t = 0; t < e.dl_states.length; t++) {
|
|
681
681
|
let l = e.dl_states[t];
|
|
682
|
-
|
|
682
|
+
fl(l.state_name) || Ce(l, r.event_name) && (n = !0);
|
|
683
683
|
}
|
|
684
684
|
n || (cr(`SMachine: input_list's event NOT in state: gclass ${e.gclass_name}, event ${r.event_name}`), t += -1);
|
|
685
685
|
}
|
|
@@ -695,14 +695,14 @@ function Me(e, t) {
|
|
|
695
695
|
}
|
|
696
696
|
function We() {
|
|
697
697
|
let e = [];
|
|
698
|
-
for (const t of Object.keys(m))
|
|
698
|
+
for (const t of Object.keys(m)) Hr(e, t);
|
|
699
699
|
return e;
|
|
700
700
|
}
|
|
701
701
|
function xe() {
|
|
702
702
|
return !E || E.obflag & P.obflag_destroyed ? null : E;
|
|
703
703
|
}
|
|
704
704
|
function Ke(e, t) {
|
|
705
|
-
if (!
|
|
705
|
+
if (!ll(e)) return cr(`gobj_find_service(): service name must be a string: ${e}`), null;
|
|
706
706
|
e = e.toLowerCase();
|
|
707
707
|
return m[e] || (t && cr(`gobj service not found: ${e}`), null);
|
|
708
708
|
}
|
|
@@ -714,8 +714,8 @@ function Be(e, t) {
|
|
|
714
714
|
t.parent && cr(`_add_child() ALREADY HAS PARENT: ${t.gobj_name}`), e.dl_children.push(t), t.parent = e;
|
|
715
715
|
}
|
|
716
716
|
function Je(e, t) {
|
|
717
|
-
let n =
|
|
718
|
-
n >= 0 && (
|
|
717
|
+
let n = xo(e.dl_children, t);
|
|
718
|
+
n >= 0 && (zr(e.dl_children, n), t.parent = null);
|
|
719
719
|
}
|
|
720
720
|
function qe(e, t) {
|
|
721
721
|
return Tt(e) ? u ? u(e, t) : -1 : (cr(`${Rt(e)}: Only gobj services can load/save writable-persistent`), -1);
|
|
@@ -742,7 +742,7 @@ function Ze(e, t, n) {
|
|
|
742
742
|
t ? (-1 === n || t.flag & n) && (t.flag & v.SDF_DEPRECATED && fr(`${Rt(l)}: Deprecated attribute used in gobj creation: ${i}`), o += je(l, e, t, s)) : r && (r(l, i), o--);
|
|
743
743
|
}
|
|
744
744
|
return o;
|
|
745
|
-
})($e(e), r, -1, e.gclass.gclass_flag & C.gcflag_ignore_unknown_attrs ? 0 : Xe, e) < 0 && (cr(`${Rt(e)} json2data() FAILED`),
|
|
745
|
+
})($e(e), r, -1, e.gclass.gclass_flag & C.gcflag_ignore_unknown_attrs ? 0 : Xe, e) < 0 && (cr(`${Rt(e)} json2data() FAILED`), Ur(r));
|
|
746
746
|
}
|
|
747
747
|
function et(e, n, r, l, o) {
|
|
748
748
|
if (o & L.gobj_flag_yuno) {
|
|
@@ -751,7 +751,7 @@ function et(e, n, r, l, o) {
|
|
|
751
751
|
} else {
|
|
752
752
|
if (!l) return cr("gobj NEEDS a parent!"), null;
|
|
753
753
|
if (!("string" == typeof l || l instanceof I)) return cr(`BAD TYPE of parent: ${l}`), null;
|
|
754
|
-
if (
|
|
754
|
+
if (ll(l)) {
|
|
755
755
|
const e = l;
|
|
756
756
|
if (!(l = Ke(e))) return fr(`parent service not found: ${e}`), null;
|
|
757
757
|
}
|
|
@@ -761,11 +761,11 @@ function et(e, n, r, l, o) {
|
|
|
761
761
|
if (E) return cr(`default service ALREADY registered: ${n}^${e}`), null;
|
|
762
762
|
o |= L.gobj_flag_service;
|
|
763
763
|
}
|
|
764
|
-
if (
|
|
764
|
+
if (fl(n)) return cr("gclass_name must be a string"), null;
|
|
765
765
|
let i = Me(n, !1);
|
|
766
766
|
if (!i) return cr(`GClass not registered: ${n}^${e}`), null;
|
|
767
|
-
if (!
|
|
768
|
-
if (!
|
|
767
|
+
if (!ll(e)) return cr(`gobj_name must be a string: ${n}`), null;
|
|
768
|
+
if (!fl(e)) {
|
|
769
769
|
if (e.includes("`")) return cr(`gobj_name cannot contain char ': ${n}^${e}`), null;
|
|
770
770
|
if (e.includes("^")) return cr(`gobj_name cannot contain char ^: ${n}^${e}`), null;
|
|
771
771
|
}
|
|
@@ -893,41 +893,41 @@ function wt() {
|
|
|
893
893
|
return e ? tn(e, "yuno_id") : "";
|
|
894
894
|
}
|
|
895
895
|
function jt(e) {
|
|
896
|
-
return
|
|
896
|
+
return cl(e) ? e.gobj_name : (cr("gobj bad type"), null);
|
|
897
897
|
}
|
|
898
898
|
function $t(e) {
|
|
899
|
-
return
|
|
899
|
+
return cl(e) ? e.gclass.gclass_name : (cr("gobj NULL of bad type"), null);
|
|
900
900
|
}
|
|
901
901
|
function Rt(e) {
|
|
902
|
-
return
|
|
902
|
+
return cl(e) ? e.gclass.gclass_name + "^" + jt(e) : (cr("gobj bad type"), null);
|
|
903
903
|
}
|
|
904
904
|
function Dt(e) {
|
|
905
|
-
if (!
|
|
905
|
+
if (!cl(e)) return cr("gobj NULL of bad type"), null;
|
|
906
906
|
let t = Rt(e), n = At(e);
|
|
907
907
|
for (; n;) t = Rt(n) + "`" + t, n = At(n);
|
|
908
908
|
return t;
|
|
909
909
|
}
|
|
910
910
|
function At(e) {
|
|
911
|
-
return
|
|
911
|
+
return cl(e) ? e.parent : (cr("gobj NULL of bad type"), null);
|
|
912
912
|
}
|
|
913
913
|
function kt(e) {
|
|
914
|
-
return
|
|
914
|
+
return cl(e) ? !!(e.gobj_flag & L.gobj_flag_volatil) : (cr("gobj NULL of bad type"), null);
|
|
915
915
|
}
|
|
916
916
|
function It(e) {
|
|
917
|
-
return
|
|
917
|
+
return cl(e) ? !!(e.gobj_flag & L.gobj_flag_pure_child) : (cr("gobj NULL of bad type"), null);
|
|
918
918
|
}
|
|
919
919
|
function Ct(e) {
|
|
920
|
-
return !
|
|
920
|
+
return !cl(e) || !!(e.obflag & (P.obflag_destroyed | P.obflag_destroying));
|
|
921
921
|
}
|
|
922
922
|
function Lt(e) {
|
|
923
|
-
return
|
|
923
|
+
return cl(e) ? e.bottom_gobj : (cr("gobj NULL of bad type"), null);
|
|
924
924
|
}
|
|
925
925
|
function Pt(e, t) {
|
|
926
|
-
if (!
|
|
926
|
+
if (!cl(e)) return cr("gobj NULL of bad type"), null;
|
|
927
927
|
e.bottom_gobj && t && fr(`${Rt(e)}: bottom_gobj already set`), e.bottom_gobj = t;
|
|
928
928
|
}
|
|
929
929
|
function Ut(e, t, n) {
|
|
930
|
-
return
|
|
930
|
+
return cl(e) ? t ? De(e.gclass, t, n) : e.gclass.attrs_table : (cr("gobj NULL of bad type"), null);
|
|
931
931
|
}
|
|
932
932
|
function Ft(e, t, n, r, l) {
|
|
933
933
|
return Ct(e) ? (cr("gobj NULL, destroying, or bad type"), 0) : Mt(e.dl_children, t, n, r, l);
|
|
@@ -974,12 +974,12 @@ function xt(e, t, n, r, l) {
|
|
|
974
974
|
return 0;
|
|
975
975
|
}
|
|
976
976
|
function Kt(e, t) {
|
|
977
|
-
if (
|
|
977
|
+
if (fl(t)) return null;
|
|
978
978
|
const n = t.toLowerCase();
|
|
979
979
|
return "__default_service__" === n ? E : "__yuno__" === n || "__root__" === n ? h : Ht(h, t);
|
|
980
980
|
}
|
|
981
981
|
function Yt(e, t) {
|
|
982
|
-
if (!
|
|
982
|
+
if (!cl(e)) return cr("gobj NULL of bad type"), !1;
|
|
983
983
|
let n = t.__gclass_name__, r = t.__gobj_name__, l = t.__prefix_gobj_name__;
|
|
984
984
|
t.__disabled__;
|
|
985
985
|
let o = t.__state__;
|
|
@@ -1045,7 +1045,7 @@ function Ht(e, t) {
|
|
|
1045
1045
|
return o ? (n.splice(0, 1), n = n.join("`"), Ht(o, n)) : null;
|
|
1046
1046
|
}
|
|
1047
1047
|
function zt(e, t) {
|
|
1048
|
-
return !
|
|
1048
|
+
return !fl(t) && !!De(e.gclass, t, !1);
|
|
1049
1049
|
}
|
|
1050
1050
|
function Qt(e, t, n) {
|
|
1051
1051
|
let r = e.jn_attrs;
|
|
@@ -1061,41 +1061,41 @@ function Xt(e, t, n) {
|
|
|
1061
1061
|
const o = l[n];
|
|
1062
1062
|
if (o.name && (-1 === t || o.flag & t)) {
|
|
1063
1063
|
let t;
|
|
1064
|
-
!e.gclass.gmt.mt_reading || e.obflag & P.obflag_destroyed ? t =
|
|
1064
|
+
!e.gclass.gmt.mt_reading || e.obflag & P.obflag_destroyed ? t = Kr(e.jn_attrs, o.name) : (t = e.gclass.gmt.mt_reading(e, o.name), void 0 === t && (t = Kr(e.jn_attrs, o.name))), Br(r, o.name, t);
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
return r;
|
|
1068
1068
|
}
|
|
1069
1069
|
function Zt(e, t) {
|
|
1070
1070
|
if (t) {
|
|
1071
|
-
if (0 ===
|
|
1072
|
-
if (0 ===
|
|
1073
|
-
if (0 ===
|
|
1074
|
-
if (0 ===
|
|
1071
|
+
if (0 === pl(t, "__disabled__")) return yt(e);
|
|
1072
|
+
if (0 === pl(t, "__running__")) return Et(e);
|
|
1073
|
+
if (0 === pl(t, "__playing__")) return vt(e);
|
|
1074
|
+
if (0 === pl(t, "__service__")) return Tt(e);
|
|
1075
1075
|
}
|
|
1076
1076
|
let n = Re(e, t, !1);
|
|
1077
|
-
return n ? !e.gclass.gmt.mt_reading || e.obflag & P.obflag_destroyed ?
|
|
1077
|
+
return n ? !e.gclass.gmt.mt_reading || e.obflag & P.obflag_destroyed ? Kr(n, t) : e.gclass.gmt.mt_reading(e, t) : (cr(`${Rt(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
|
|
1078
1078
|
}
|
|
1079
1079
|
function en(e, t) {
|
|
1080
|
-
t &&
|
|
1080
|
+
t && pl(t, "__trace_level__");
|
|
1081
1081
|
let n = Re(e, t, !1);
|
|
1082
|
-
return n ? !e.gclass.gmt.mt_reading || e.obflag & P.obflag_destroyed ?
|
|
1082
|
+
return n ? !e.gclass.gmt.mt_reading || e.obflag & P.obflag_destroyed ? Kr(n, t) : e.gclass.gmt.mt_reading(e, t) : (cr(`${Rt(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
|
|
1083
1083
|
}
|
|
1084
1084
|
function tn(e, t) {
|
|
1085
|
-
if (t && 0 ===
|
|
1085
|
+
if (t && 0 === pl(t, "__state__")) return cn(e);
|
|
1086
1086
|
let n = Re(e, t, !1);
|
|
1087
|
-
return n ? !e.gclass.gmt.mt_reading || e.obflag & P.obflag_destroyed ?
|
|
1087
|
+
return n ? !e.gclass.gmt.mt_reading || e.obflag & P.obflag_destroyed ? Kr(n, t) : e.gclass.gmt.mt_reading(e, t) : (cr(`${Rt(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
|
|
1088
1088
|
}
|
|
1089
1089
|
function nn(e, t) {
|
|
1090
1090
|
let n = Re(e, t, !1);
|
|
1091
|
-
return n ? !e.gclass.gmt.mt_reading || e.obflag & P.obflag_destroyed ?
|
|
1091
|
+
return n ? !e.gclass.gmt.mt_reading || e.obflag & P.obflag_destroyed ? Kr(n, t) : e.gclass.gmt.mt_reading(e, t) : (cr(`${Rt(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
|
|
1092
1092
|
}
|
|
1093
1093
|
function rn(e, n, r, l) {
|
|
1094
|
-
if (!
|
|
1094
|
+
if (!ll(n)) return cr(t("gobj_write_attr(%s): path must be a string", Rt(e))), -1;
|
|
1095
1095
|
let o, i = e.jn_attrs, s = n.split("`");
|
|
1096
1096
|
if (s.length <= 1) {
|
|
1097
1097
|
let l = n;
|
|
1098
|
-
return l in i && Object.prototype.hasOwnProperty.call(i, l) ? (i[l] = r,
|
|
1098
|
+
return l in i && Object.prototype.hasOwnProperty.call(i, l) ? (i[l] = r, nl(e.priv) && Object.prototype.hasOwnProperty.call(e.priv, l) && (e.priv[l] = r), e.obflag & P.obflag_created && !(e.obflag & P.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, l), 0) : (cr(t("gobj_write_attr(%s): attr not found '%s'", Rt(e), l)), -1);
|
|
1099
1099
|
}
|
|
1100
1100
|
let a = s.length;
|
|
1101
1101
|
for (let t = 0; t < a; t++) {
|
|
@@ -1106,7 +1106,7 @@ function rn(e, n, r, l) {
|
|
|
1106
1106
|
continue;
|
|
1107
1107
|
}
|
|
1108
1108
|
let l = e.jn_attrs;
|
|
1109
|
-
if (o in l && Object.prototype.hasOwnProperty.call(l, o)) return l[o] = r,
|
|
1109
|
+
if (o in l && Object.prototype.hasOwnProperty.call(l, o)) return l[o] = r, nl(e.priv) && Object.prototype.hasOwnProperty.call(e.priv, o) && (e.priv[o] = r), e.obflag & P.obflag_created && !(e.obflag & P.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, o), 0;
|
|
1110
1110
|
break;
|
|
1111
1111
|
}
|
|
1112
1112
|
return cr(t("gobj_write_attr(%s): attr not found '%s'", Rt(e), o)), -1;
|
|
@@ -1117,7 +1117,7 @@ function ln(e) {
|
|
|
1117
1117
|
let r = e.gclass.attrs_table;
|
|
1118
1118
|
for (let l = 0; l < r.length; l++) {
|
|
1119
1119
|
const o = r[l];
|
|
1120
|
-
o.name && (n && o.flag & n || (-1 === t || o.flag & t) && (we(e, e.jn_attrs, o),
|
|
1120
|
+
o.name && (n && o.flag & n || (-1 === t || o.flag & t) && (we(e, e.jn_attrs, o), nl(e.priv) && Object.prototype.hasOwnProperty.call(e.priv, o.name) && (e.priv[o.name] = e.jn_attrs[o.name]), e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, o.name)));
|
|
1121
1121
|
}
|
|
1122
1122
|
return 0;
|
|
1123
1123
|
}(e, v.SDF_VOLATIL, 0);
|
|
@@ -1132,15 +1132,15 @@ function on(e, t, n, r) {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
function sn(e, t, n) {
|
|
1134
1134
|
let r = Re(e, t, !1);
|
|
1135
|
-
return r ? (r[t] =
|
|
1135
|
+
return r ? (r[t] = gl(n), nl(e.priv) && Object.prototype.hasOwnProperty.call(e.priv, t) && (e.priv[t] = r[t]), e.obflag & P.obflag_created && !(e.obflag & P.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, t), 0) : (cr(`${Rt(e)}: GClass Attribute NOT FOUND, attr ${t}`), -1);
|
|
1136
1136
|
}
|
|
1137
1137
|
function an(e, t, n) {
|
|
1138
1138
|
let r = Re(e, t, !1);
|
|
1139
|
-
return r ? (r[t] = parseInt(n),
|
|
1139
|
+
return r ? (r[t] = parseInt(n), nl(e.priv) && Object.prototype.hasOwnProperty.call(e.priv, t) && (e.priv[t] = r[t]), e.obflag & P.obflag_created && !(e.obflag & P.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, t), 0) : (cr(`${Rt(e)}: GClass Attribute NOT FOUND, attr ${t}`), -1);
|
|
1140
1140
|
}
|
|
1141
1141
|
function un(e, t, n) {
|
|
1142
1142
|
let r = Re(e, t, !1);
|
|
1143
|
-
return r ? (r[t] = String(n),
|
|
1143
|
+
return r ? (r[t] = String(n), nl(e.priv) && Object.prototype.hasOwnProperty.call(e.priv, t) && (e.priv[t] = r[t]), e.obflag & P.obflag_created && !(e.obflag & P.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, t), 0) : (cr(`${Rt(e)}: GClass Attribute NOT FOUND, attr ${t}`), -1);
|
|
1144
1144
|
}
|
|
1145
1145
|
function _n(e, n) {
|
|
1146
1146
|
if (Ct(e)) return cr("gobj NULL or DESTROYED"), null;
|
|
@@ -1154,13 +1154,13 @@ function _n(e, n) {
|
|
|
1154
1154
|
return (l || o) && (1 === W || Y(t("🔀🔀 mach(%s%s^%s), new st(%s), prev st(%s)", e.running ? "" : "!!", $t(e), jt(e), cn(e), e.last_state.state_name))), !0;
|
|
1155
1155
|
}
|
|
1156
1156
|
function cn(e) {
|
|
1157
|
-
return
|
|
1157
|
+
return cl(e) ? e.current_state.state_name : (cr("hgobj NULL"), "");
|
|
1158
1158
|
}
|
|
1159
1159
|
function fn(e, n) {
|
|
1160
1160
|
return Ct(e) ? (cr("gobj NULL or DESTROYED"), null) : n instanceof I ? (e.parent && e.parent.gclass.gmt.mt_child_removed && e.parent.gclass.gmt.mt_child_removed(e.parent, e), e.parent && (Je(e.parent, e), e.parent = null), Be(n, e), n.gclass.gmt.mt_child_added && (te(e) && dr(t("👦👦🔵 child_added(%s): %s", Dt(n), Rt(e))), n.gclass.gmt.mt_child_added(n, e)), 0) : (cr(`${Rt(e)}: gobj_change_parent() BAD TYPE of parent`), -1);
|
|
1161
1161
|
}
|
|
1162
1162
|
function gn(e, t, n) {
|
|
1163
|
-
if (!
|
|
1163
|
+
if (!cl(e)) return cr("gobj NULL of bad type"), null;
|
|
1164
1164
|
let r = Ve(e.gclass, t);
|
|
1165
1165
|
if (r) return r;
|
|
1166
1166
|
if (n) {
|
|
@@ -1182,7 +1182,7 @@ function bn(e, t, n) {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
var pn = [], mn = !1;
|
|
1184
1184
|
function hn(e, n, r, l) {
|
|
1185
|
-
return e && e instanceof I ? e.obflag & (P.obflag_destroyed | P.obflag_destroying) ? (cr(`gobj_post_event(): gobj dst DESTROYING, event ${n}`), -1) :
|
|
1185
|
+
return e && e instanceof I ? e.obflag & (P.obflag_destroyed | P.obflag_destroying) ? (cr(`gobj_post_event(): gobj dst DESTROYING, event ${n}`), -1) : fl(n) ? (cr("gobj_post_event(): event EMPTY"), -1) : dn(e, n, 0) ? pn.length >= 1e4 ? (cr(`gobj_post_event(): too many posted events, this is NOT a work queue, event ${n}, pending ${pn.length}`), -1) : (pn.push({
|
|
1186
1186
|
dst: e,
|
|
1187
1187
|
event: n,
|
|
1188
1188
|
kw: r,
|
|
@@ -1218,14 +1218,14 @@ function Tn(e, n, r, l) {
|
|
|
1218
1218
|
let i = oe(e, n) && !ie(l, n);
|
|
1219
1219
|
y++;
|
|
1220
1220
|
let s = Ce(o, n);
|
|
1221
|
-
if (!s) return e.gclass.gmt.mt_inject_event ? (y--, i && (Y(1 === W ? t("🔜 %s %s%s %s", n || "", e.running ? "" : "!!", Rt(e), o.state_name) : t("🔃 mach(%s%s), st: %s, ev: %s, from(%s%s)", e.running ? "" : "!!", Rt(e), o.state_name, n || "", l && !l.running ? "!!" : "", Rt(l))), r && le(e) &&
|
|
1221
|
+
if (!s) return e.gclass.gmt.mt_inject_event ? (y--, i && (Y(1 === W ? t("🔜 %s %s%s %s", n || "", e.running ? "" : "!!", Rt(e), o.state_name) : t("🔃 mach(%s%s), st: %s, ev: %s, from(%s%s)", e.running ? "" : "!!", Rt(e), o.state_name, n || "", l && !l.running ? "!!" : "", Rt(l))), r && le(e) && Xr(r) && Ur(r)), e.gclass.gmt.mt_inject_event(e, n, r, l)) : (i && Y(t("📛 mach(%s%s^%s), st: %s, ev: %s, 📛📛ERROR Event NOT DEFINED in state📛📛, from(%s%s^%s)", e.running ? "" : "!!", $t(e), jt(e), o.state_name, n || "", l && !l.running ? "!!" : "", $t(l), jt(l))), cr(`📛📛 Event NOT DEFINED in state 📛📛: ${Rt(e)}, ${o.state_name}, ${n}`), y--, -1);
|
|
1222
1222
|
if (i) {
|
|
1223
1223
|
if (1 === W) Y(t("🔄 %s %s%s %s from %s%s", n || "", e.running ? "" : "!!", Rt(e), o.state_name, l && !l.running ? "!!" : "", Rt(l)));
|
|
1224
1224
|
else {
|
|
1225
1225
|
let r = "";
|
|
1226
|
-
s.action && (r =
|
|
1226
|
+
s.action && (r = Bo(s.action)), Y(t("🔄 mach(%s%s^%s), st: %s, ev: %s%s%s, ac: %s, from(%s%s^%s)", e.running ? "" : "!!", $t(e), jt(e), o.state_name, "", n || "", "", r, l && !l.running ? "!!" : "", $t(l), jt(l)));
|
|
1227
1227
|
}
|
|
1228
|
-
r && le(e) &&
|
|
1228
|
+
r && le(e) && Xr(r) && Ur(r);
|
|
1229
1229
|
}
|
|
1230
1230
|
s.next_state && _n(e, s.next_state);
|
|
1231
1231
|
let a = -1;
|
|
@@ -1240,7 +1240,7 @@ function Tn(e, n, r, l) {
|
|
|
1240
1240
|
}
|
|
1241
1241
|
throw t;
|
|
1242
1242
|
}
|
|
1243
|
-
return !i || 1 === W || e.obflag & P.obflag_destroyed || Y(t("<- mach(%s%s^%s), st: %s, ev: %s, ret: %d", e.running ? "" : "!!", $t(e), jt(e), e.current_state.state_name, n || "",
|
|
1243
|
+
return !i || 1 === W || e.obflag & P.obflag_destroyed || Y(t("<- mach(%s%s^%s), st: %s, ev: %s, ret: %d", e.running ? "" : "!!", $t(e), jt(e), e.current_state.state_name, n || "", ol(a) ? a : 0)), y--, a;
|
|
1244
1244
|
}
|
|
1245
1245
|
var vn = Object.freeze({
|
|
1246
1246
|
__rename_event_name__: 1,
|
|
@@ -1273,35 +1273,35 @@ var Sn = [
|
|
|
1273
1273
|
];
|
|
1274
1274
|
function Nn(e, t) {
|
|
1275
1275
|
let n = e ? e.__config__ : null;
|
|
1276
|
-
if (!
|
|
1276
|
+
if (!nl(n) || !vl(n, "__hard_subscription__") && !vl(n, "__own_event__") && !vl(n, "__rename_event_name__")) return {
|
|
1277
1277
|
kw: e,
|
|
1278
1278
|
renamed_event: ""
|
|
1279
1279
|
};
|
|
1280
|
-
let r =
|
|
1280
|
+
let r = Mr({}, e), l = Mr({}, n);
|
|
1281
1281
|
r.__config__ = l;
|
|
1282
|
-
let o = "", i = l.__rename_event_name__, s = "string" != typeof i ||
|
|
1283
|
-
return s && (o = s.event_name, delete l.__rename_event_name__, t &&
|
|
1282
|
+
let o = "", i = l.__rename_event_name__, s = "string" != typeof i || fl(i) ? null : On(i);
|
|
1283
|
+
return s && (o = s.event_name, delete l.__rename_event_name__, t && el(r.__global__) > 0 && (r.__global__ = Mr(Mr({}, r.__global__), { __original_event_name__: t }))), delete l.__hard_subscription__, delete l.__own_event__, {
|
|
1284
1284
|
kw: r,
|
|
1285
1285
|
renamed_event: o
|
|
1286
1286
|
};
|
|
1287
1287
|
}
|
|
1288
1288
|
function wn(e, t, n, r, l, o) {
|
|
1289
|
-
let i =
|
|
1290
|
-
if (t && t !==
|
|
1291
|
-
let t =
|
|
1292
|
-
|
|
1289
|
+
let i = Il(t, l, "__config__", null), s = Il(t, l, "__global__", null), a = Il(t, l, "__local__", null), u = Cl(t, l, "__filter__", null), _ = !0;
|
|
1290
|
+
if (t && t !== kl(null, e, "publisher", null) && (_ = !1), o && o !== kl(null, e, "subscriber", null) && (_ = !1), n && n !== Al(null, e, "event", "") && (_ = !1), r && r !== Al(null, e, "renamed_event", "") && (_ = !1), el(i) > 0) {
|
|
1291
|
+
let t = Il(null, e, "__config__", null);
|
|
1292
|
+
el(t) > 0 && Gr(t, i) || (_ = !1);
|
|
1293
1293
|
}
|
|
1294
|
-
if (
|
|
1295
|
-
let t =
|
|
1296
|
-
|
|
1294
|
+
if (el(s) > 0) {
|
|
1295
|
+
let t = Il(null, e, "__global__", null);
|
|
1296
|
+
el(t) > 0 && Gr(t, s) || (_ = !1);
|
|
1297
1297
|
}
|
|
1298
|
-
if (
|
|
1299
|
-
let t =
|
|
1300
|
-
|
|
1298
|
+
if (el(a) > 0) {
|
|
1299
|
+
let t = Il(null, e, "__local__", null);
|
|
1300
|
+
el(t) > 0 && Gr(t, a) || (_ = !1);
|
|
1301
1301
|
}
|
|
1302
|
-
if (
|
|
1303
|
-
let t =
|
|
1304
|
-
|
|
1302
|
+
if (el(u) > 0) {
|
|
1303
|
+
let t = Cl(null, e, "__filter__", null);
|
|
1304
|
+
el(t) > 0 && Gr(t, u) || (_ = !1);
|
|
1305
1305
|
}
|
|
1306
1306
|
return _;
|
|
1307
1307
|
}
|
|
@@ -1309,7 +1309,7 @@ function jn(e, t, n, r, l, o) {
|
|
|
1309
1309
|
let i = [];
|
|
1310
1310
|
for (let s = 0; s < e.length; s++) {
|
|
1311
1311
|
let a = e[s];
|
|
1312
|
-
wn(a, t, n, r, l, o) &&
|
|
1312
|
+
wn(a, t, n, r, l, o) && qr(i, a);
|
|
1313
1313
|
}
|
|
1314
1314
|
return i;
|
|
1315
1315
|
}
|
|
@@ -1317,13 +1317,13 @@ function $n(e, t) {
|
|
|
1317
1317
|
return e.indexOf(t);
|
|
1318
1318
|
}
|
|
1319
1319
|
function Rn(e, n, r, l) {
|
|
1320
|
-
let o =
|
|
1321
|
-
if (!!(
|
|
1320
|
+
let o = kl(e, n, "publisher", null, Vn.KW_REQUIRED), i = kl(e, n, "subscriber", null, Vn.KW_REQUIRED), s = Al(e, n, "event", "", Vn.KW_REQUIRED);
|
|
1321
|
+
if (!!(Rl(e, n, "subs_flag", null, Vn.KW_REQUIRED) & vn.__hard_subscription__) && !r) return -1;
|
|
1322
1322
|
let a = ne(i) || ne(o);
|
|
1323
1323
|
if ($n(o.dl_subscriptions, n) < 0) return a && Y(t("💜💜👎 unsubscribing event '%s': publisher %s, subscriber'%s', ALREADY REMOVED", s || "", Rt(o), Rt(i))), 1;
|
|
1324
1324
|
a && (Y(t("💜💜👎 unsubscribing event '%s': publisher %s, subscriber'%s'", s || "", Rt(o), Rt(i))), pr(n)), o.obflag & P.obflag_destroyed || l || o.gclass.gmt.mt_subscription_deleted && o.gclass.gmt.mt_subscription_deleted(o, n);
|
|
1325
1325
|
let u = $n(o.dl_subscriptions, n);
|
|
1326
|
-
return u >= 0 ?
|
|
1326
|
+
return u >= 0 ? zr(o.dl_subscriptions, u) : (cr(`${Rt(e)}: subscription in publisher not found`), pr(n)), u = $n(i.dl_subscribings, n), u >= 0 ? zr(i.dl_subscribings, u) : (cr(`${Rt(e)}: subscription in subscriber not found`), pr(n)), 0;
|
|
1327
1327
|
}
|
|
1328
1328
|
function Dn(e, n, r, l) {
|
|
1329
1329
|
if (null == r && (r = {}), !e) return cr(`publisher NULL: ev ${n}`), 0;
|
|
@@ -1337,48 +1337,48 @@ function Dn(e, n, r, l) {
|
|
|
1337
1337
|
]);
|
|
1338
1338
|
if (Object.keys(r).forEach((t) => {
|
|
1339
1339
|
o.has(t) || cr(`${Rt(e)}: key ignored in subscription (key: ${t}, event: ${n})`);
|
|
1340
|
-
}),
|
|
1340
|
+
}), fl(n)) n = "";
|
|
1341
1341
|
else if (!(bn(e, n, U.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & C.gcflag_no_check_output_events)) return cr(`event NOT in output event list: ${Rt(e)}, ${n}`), 0;
|
|
1342
1342
|
let i = Nn(r, n), s = jn(e.dl_subscriptions, e, n, i.renamed_event, i.kw, l), a = null;
|
|
1343
|
-
for (let t = 0; t < s.length; t++) if (
|
|
1343
|
+
for (let t = 0; t < s.length; t++) if (Rl(e, s[t], "subs_flag", 0, Vn.KW_REQUIRED) & vn.__hard_subscription__) {
|
|
1344
1344
|
a = s[t];
|
|
1345
1345
|
break;
|
|
1346
1346
|
}
|
|
1347
1347
|
if (a) return fr(`${Rt(e)}: Hard subscription REPEATED, the one there is kept and returned (event: ${n}, subscriber: ${Rt(l)})`), a;
|
|
1348
|
-
|
|
1348
|
+
Zr(s) > 0 && (cr(`${Rt(e)}: ${Zr(s)} subscription(s) REPEATED, will be deleted and override`), pr(s, "subscription REPEATED"), kn(e, s, !1));
|
|
1349
1349
|
let u = function(e, t, n, r) {
|
|
1350
1350
|
let l = Ne(e, Sn);
|
|
1351
|
-
|
|
1351
|
+
Jr(l, "event", t), Jr(l, "subscriber", r), Jr(l, "publisher", e);
|
|
1352
1352
|
let o = 0;
|
|
1353
1353
|
if (n) {
|
|
1354
|
-
let r =
|
|
1355
|
-
if (
|
|
1356
|
-
let n =
|
|
1357
|
-
|
|
1358
|
-
let i =
|
|
1359
|
-
if (!
|
|
1354
|
+
let r = Il(e, n, "__config__", null), i = Il(e, n, "__global__", null), s = Il(e, n, "__local__", null), a = Cl(e, n, "__filter__", null), u = Al(e, n, "__service__", "");
|
|
1355
|
+
if (el(i) > 0 && Jr(l, "__global__", Fr(i)), el(r) > 0) {
|
|
1356
|
+
let n = Fr(r);
|
|
1357
|
+
Jr(l, "__config__", n);
|
|
1358
|
+
let i = Al(e, n, "__rename_event_name__", "");
|
|
1359
|
+
if (!fl(i)) {
|
|
1360
1360
|
let r = On(i);
|
|
1361
1361
|
if (r) {
|
|
1362
|
-
|
|
1363
|
-
let i =
|
|
1364
|
-
|
|
1362
|
+
Jr(l, "renamed_event", r.event_name), delete n.__rename_event_name__, o |= vn.__rename_event_name__;
|
|
1363
|
+
let i = Il(e, l, "__global__", null);
|
|
1364
|
+
nl(i) || (i = {}, Jr(l, "__global__", i)), i.__original_event_name__ = t;
|
|
1365
1365
|
} else cr(`${Rt(e)}: EVENT NOT FOUND (__rename_event_name__: ${i})`);
|
|
1366
1366
|
}
|
|
1367
|
-
if (
|
|
1368
|
-
let t =
|
|
1369
|
-
|
|
1367
|
+
if (vl(n, "__hard_subscription__")) {
|
|
1368
|
+
let t = $l(e, n, "__hard_subscription__", !1);
|
|
1369
|
+
Yr(n, "__hard_subscription__"), t && (o |= vn.__hard_subscription__);
|
|
1370
1370
|
}
|
|
1371
|
-
if (
|
|
1372
|
-
let t =
|
|
1373
|
-
|
|
1371
|
+
if (vl(n, "__own_event__")) {
|
|
1372
|
+
let t = $l(e, n, "__own_event__", !1);
|
|
1373
|
+
Yr(n, "__own_event__"), t && (o |= vn.__own_event__);
|
|
1374
1374
|
}
|
|
1375
1375
|
}
|
|
1376
|
-
|
|
1376
|
+
el(s) > 0 && Jr(l, "__local__", Fr(s)), el(a) > 0 && Jr(l, "__filter__", Fr(a)), fl(u) || Jr(l, "__service__", u);
|
|
1377
1377
|
}
|
|
1378
|
-
return
|
|
1378
|
+
return Jr(l, "subs_flag", o), l;
|
|
1379
1379
|
}(e, n, r, l);
|
|
1380
1380
|
if (!u) return cr(`${Rt(e)}: _create_subscription() FAILED`), 0;
|
|
1381
|
-
if (
|
|
1381
|
+
if (qr(e.dl_subscriptions, u), qr(l.dl_subscribings, u), (ne(l) || ne(e)) && (Y(t("💜💜👍 subscribing event '%s', publisher '%s', subscriber %s", n || "", Rt(e), Rt(l))), r && (le(l) || le(e)) && Ur(r)), e.gclass.gmt.mt_subscription_added) {
|
|
1382
1382
|
let t = e.gclass.gmt.mt_subscription_added(e, u);
|
|
1383
1383
|
(t < 0 || !1 === t) && (Rn(e, u, !0, !0), u = 0);
|
|
1384
1384
|
}
|
|
@@ -1396,14 +1396,14 @@ function An(e, t, n, r) {
|
|
|
1396
1396
|
]);
|
|
1397
1397
|
if (Object.keys(n).forEach((n) => {
|
|
1398
1398
|
l.has(n) || cr(`${Rt(e)}: key ignored in subscription (key: ${n}, event: ${t})`);
|
|
1399
|
-
}),
|
|
1399
|
+
}), fl(t)) t = "";
|
|
1400
1400
|
else if (!(bn(e, t, U.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & C.gcflag_no_check_output_events)) return cr(`event NOT in output event list: ${Rt(e)}, ev ${t}`), 0;
|
|
1401
1401
|
let o = Nn(n, t), i = jn(e.dl_subscriptions, e, t, o.renamed_event, o.kw, r), s = 0, a = 0, u = 0;
|
|
1402
1402
|
for (let t = 0; t < i.length; t++) {
|
|
1403
1403
|
let n = i[t], r = Rn(e, n, !1, !1);
|
|
1404
1404
|
0 === r ? s++ : r < 0 ? a++ : u++;
|
|
1405
1405
|
}
|
|
1406
|
-
return a ? fr(`${Rt(e)}: Hard subscription not removed, only gobj_unsubscribe_list() with force removes it (event: ${t}, hard: ${a})`) : s || u || (fr(`${Rt(e)}: No subscription found`),
|
|
1406
|
+
return a ? fr(`${Rt(e)}: Hard subscription not removed, only gobj_unsubscribe_list() with force removes it (event: ${t}, hard: ${a})`) : s || u || (fr(`${Rt(e)}: No subscription found`), Ur(n, "No subscription found")), 0;
|
|
1407
1407
|
}
|
|
1408
1408
|
function kn(e, t, n) {
|
|
1409
1409
|
let r = [...t], l = 0;
|
|
@@ -1416,31 +1416,31 @@ function In(e, t, n, r) {
|
|
|
1416
1416
|
function Cn(e) {
|
|
1417
1417
|
let t = In(e, null, null, null);
|
|
1418
1418
|
for (let n = 0; n < t.length; n++) {
|
|
1419
|
-
let r = t[n], l =
|
|
1420
|
-
|
|
1419
|
+
let r = t[n], l = kl(e, r, "publisher", null, Vn.KW_REQUIRED), o = kl(e, r, "subscriber", null, Vn.KW_REQUIRED);
|
|
1420
|
+
Jr(r, "s_event", Al(e, r, "event", "", Vn.KW_REQUIRED)), Jr(r, "s_publisher", Rt(l)), Jr(r, "s_subscriber", Rt(o));
|
|
1421
1421
|
}
|
|
1422
1422
|
let n = Ln(e, 0, null, 0);
|
|
1423
1423
|
for (let t = 0; t < n.length; t++) {
|
|
1424
|
-
let r = n[t], l =
|
|
1425
|
-
|
|
1424
|
+
let r = n[t], l = kl(e, r, "publisher", null, Vn.KW_REQUIRED), o = kl(e, r, "subscriber", null, Vn.KW_REQUIRED);
|
|
1425
|
+
Jr(r, "s_event", Al(e, r, "event", "", Vn.KW_REQUIRED)), Jr(r, "s_publisher", Rt(l)), Jr(r, "s_subscriber", Rt(o));
|
|
1426
1426
|
}
|
|
1427
1427
|
return {
|
|
1428
1428
|
subscriptions: t,
|
|
1429
1429
|
subscribings: n,
|
|
1430
|
-
"total subscriptions":
|
|
1431
|
-
total_subscribings:
|
|
1430
|
+
"total subscriptions": Zr(t),
|
|
1431
|
+
total_subscribings: Zr(n)
|
|
1432
1432
|
};
|
|
1433
1433
|
}
|
|
1434
1434
|
function Ln(e, t, n, r) {
|
|
1435
1435
|
return jn(e.dl_subscribings, r, t, null, n, e);
|
|
1436
1436
|
}
|
|
1437
1437
|
function Pn(e, n, r) {
|
|
1438
|
-
if (
|
|
1439
|
-
if (
|
|
1438
|
+
if (nl(r) || (r = {}), !e || e.obflag & (P.obflag_destroyed | P.obflag_destroying)) return cr("gobj NULL or DESTROYED"), -1;
|
|
1439
|
+
if (fl(n)) return cr(`${Rt(e)}: event EMPTY`), -1;
|
|
1440
1440
|
let l = gn(e, n, !0);
|
|
1441
1441
|
if (!(l && l.event_flag & (U.EVF_SYSTEM_EVENT | U.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & C.gcflag_no_check_output_events)) return cr(`event NOT in output event list: ${Rt(e)}, ev ${n}`), -1;
|
|
1442
1442
|
let o = (ne(e) || oe(e, n)) && !ie(e, n);
|
|
1443
|
-
if (o && (Y(1 === W ? t("🔝🔝 %s %s%s %s", n || "", e.running ? "" : "!!", Rt(e), e.current_state.state_name) : t("🔝🔝 mach(%s%s^%s), st: %s, ev: %s%s%s", e.running ? "" : "!!", $t(e), jt(e), e.current_state.state_name, "", n || "", "")), le(e) &&
|
|
1443
|
+
if (o && (Y(1 === W ? t("🔝🔝 %s %s%s %s", n || "", e.running ? "" : "!!", Rt(e), e.current_state.state_name) : t("🔝🔝 mach(%s%s^%s), st: %s, ev: %s%s%s", e.running ? "" : "!!", $t(e), jt(e), e.current_state.state_name, "", n || "", "")), le(e) && Xr(r) && Ur(r)), e.gclass.gmt.mt_publish_event) {
|
|
1444
1444
|
let t = e.gclass.gmt.mt_publish_event(e, n, r);
|
|
1445
1445
|
if (t <= 0) return t;
|
|
1446
1446
|
}
|
|
@@ -1452,20 +1452,20 @@ function Pn(e, n, r) {
|
|
|
1452
1452
|
if (t < 0) break;
|
|
1453
1453
|
if (!t) continue;
|
|
1454
1454
|
}
|
|
1455
|
-
let _ =
|
|
1455
|
+
let _ = kl(e, u, "subscriber", null, Vn.KW_REQUIRED);
|
|
1456
1456
|
if (!_ || Ct(_)) continue;
|
|
1457
|
-
let c =
|
|
1458
|
-
if (
|
|
1459
|
-
|
|
1460
|
-
let l =
|
|
1461
|
-
|
|
1457
|
+
let c = Rl(e, u, "subs_flag", 0, Vn.KW_REQUIRED), f = Al(e, u, "event", "", Vn.KW_REQUIRED);
|
|
1458
|
+
if (fl(f) || 0 === pl(f, n)) {
|
|
1459
|
+
Il(e, u, "__config__", null, 0);
|
|
1460
|
+
let l = Il(e, u, "__global__", null, 0), i = Il(e, u, "__local__", null, 0), f = Cl(e, u, "__filter__", null, 0), g = u.renamed_event;
|
|
1461
|
+
fl(g) && (g = n);
|
|
1462
1462
|
let d = 1;
|
|
1463
|
-
if (e.gclass.gmt.mt_publication_filter ? d = e.gclass.gmt.mt_publication_filter(e, n, r, _) :
|
|
1463
|
+
if (e.gclass.gmt.mt_publication_filter ? d = e.gclass.gmt.mt_publication_filter(e, n, r, _) : el(f) > 0 && (d = Vl(r, f) ? 1 : 0, o && (Y(t("💜💜🔄%s publishing with filter, event '%s', subscriber'%s', publisher %s", d ? "👍" : "👎", n || "", Rt(_), Rt(e))), pr(f))), d < 0) break;
|
|
1464
1464
|
if (!d) continue;
|
|
1465
1465
|
let b = gn(_, n, !0);
|
|
1466
1466
|
if (b && b.event_flag & U.EVF_SYSTEM_EVENT && !dn(_, b.event_name, 0)) continue;
|
|
1467
1467
|
let p = r;
|
|
1468
|
-
(
|
|
1468
|
+
(el(i) > 0 || el(l) > 0) && (p = Mr({}, r)), el(i) > 0 && Tl(p, i), el(l) > 0 && Mr(p, Fr(l)), o && (Y(1 === W ? t("🔝🔄 %s (%s) %s%s", n || "", g || "", _.running ? "" : "!!", Rt(_)) : t("🔝🔄 mach(%s%s), st: %s, ev: %s (%s), from(%s%s)", _.running ? "" : "!!", Rt(_), cn(_), n || "", g || "", e && !e.running ? "!!" : "", Rt(e))), le(e) && Xr(p) && Ur(p));
|
|
1469
1469
|
let m = Tn(_, g, p, e);
|
|
1470
1470
|
if (m < 0 && c & vn.__own_event__) {
|
|
1471
1471
|
s = -1;
|
|
@@ -1481,8 +1481,8 @@ function Un(e, n, r, l) {
|
|
|
1481
1481
|
if (function(e) {
|
|
1482
1482
|
return z > 1 || !!e && !!(Z(e) & B.TRACE_COMMANDS);
|
|
1483
1483
|
}(e) || oe(e, null) && !ie(l, null)) {
|
|
1484
|
-
let o =
|
|
1485
|
-
Y(t("🌀🌀 mach(%s%s), cmd: %s, src: %s", Et(e) ? "" : "!!", Rt(e), null !== o ? o : n, Rt(l))), le(e) &&
|
|
1484
|
+
let o = Ar(n);
|
|
1485
|
+
Y(t("🌀🌀 mach(%s%s), cmd: %s, src: %s", Et(e) ? "" : "!!", Rt(e), null !== o ? o : n, Rt(l))), le(e) && Ur(r);
|
|
1486
1486
|
}
|
|
1487
1487
|
return e.gclass.gmt.mt_command_parser ? e.gclass.gmt.mt_command_parser(e, n, r, l) : e.gclass.command_table ? g ? g(e, n, r, l) : o(0, -1, t("%s: global command parser not available", Rt(e)), 0, 0) : o(0, -1, t("%s: command table not available", Rt(e)), 0, 0);
|
|
1488
1488
|
}
|
|
@@ -1636,27 +1636,27 @@ function _r(e, ...t) {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
1638
|
function cr(e, ...t) {
|
|
1639
|
-
let n = sr(e, ...t), r =
|
|
1639
|
+
let n = sr(e, ...t), r = Mo();
|
|
1640
1640
|
Mn && (Mn === Gn.error ? Zn("error", n) && ar(Mn, "%c" + r + " ERROR: " + String(n), "color:red") : (Zn("error", n) && Gn.error("%c" + r + " ERROR: " + String(n), "color:red"), _r(Mn, `${r} ERROR: ${String(n)}`))), tr("error", n, r);
|
|
1641
1641
|
}
|
|
1642
1642
|
function fr(e, ...t) {
|
|
1643
|
-
let n = sr(e, ...t), r =
|
|
1643
|
+
let n = sr(e, ...t), r = Mo();
|
|
1644
1644
|
Wn && (Wn === Gn.warn ? Zn("warning", n) && ar(Wn, "%c" + r + " WARNING: " + String(n), "color:yellow") : (Zn("warning", n) && Gn.warn("%c" + r + " WARNING: " + String(n), "color:yellow"), _r(Wn, `${r} WARNING: ${String(n)}`))), tr("warning", n, r);
|
|
1645
1645
|
}
|
|
1646
1646
|
function gr(e, ...t) {
|
|
1647
|
-
let n = sr(e, ...t), r =
|
|
1647
|
+
let n = sr(e, ...t), r = Mo();
|
|
1648
1648
|
xn && Zn("info", n) && ar(xn, "%c" + r + " INFO: " + String(n), "color:cyan"), tr("info", n, r);
|
|
1649
1649
|
}
|
|
1650
1650
|
function dr(e, ...t) {
|
|
1651
|
-
let n = sr(e, ...t), r =
|
|
1651
|
+
let n = sr(e, ...t), r = Mo();
|
|
1652
1652
|
Kn && Zn("debug", n) && ar(Kn, "%c" + r + " DEBUG: " + String(n), "color:silver"), tr("debug", n, r);
|
|
1653
1653
|
}
|
|
1654
1654
|
function br(e, ...t) {
|
|
1655
|
-
let n = sr(e, ...t), r =
|
|
1655
|
+
let n = sr(e, ...t), r = Mo();
|
|
1656
1656
|
Kn && Zn("msg", n) && ar(Kn, "%c" + r + " MSG: " + String(n), "color:cyan"), tr("msg", n, r);
|
|
1657
1657
|
}
|
|
1658
1658
|
function pr(e, t) {
|
|
1659
|
-
Zn("json", t) && (t && ar(Gn.warn, "=====> " + or(t)), ar(Gn.dir, e)), tr("json", e,
|
|
1659
|
+
Zn("json", t) && (t && ar(Gn.warn, "=====> " + or(t)), ar(Gn.dir, e)), tr("json", e, Mo());
|
|
1660
1660
|
}
|
|
1661
1661
|
var mr = [
|
|
1662
1662
|
"passw",
|
|
@@ -1676,6 +1676,10 @@ var mr = [
|
|
|
1676
1676
|
"sessionkey",
|
|
1677
1677
|
"authdata"
|
|
1678
1678
|
], Er = /* @__PURE__ */ new Set([
|
|
1679
|
+
"pass",
|
|
1680
|
+
"pin",
|
|
1681
|
+
"otp"
|
|
1682
|
+
]), yr = /* @__PURE__ */ new Set([
|
|
1679
1683
|
"endpoint",
|
|
1680
1684
|
"url",
|
|
1681
1685
|
"uri",
|
|
@@ -1699,13 +1703,19 @@ var mr = [
|
|
|
1699
1703
|
"expires",
|
|
1700
1704
|
"mode"
|
|
1701
1705
|
]);
|
|
1702
|
-
function
|
|
1706
|
+
function Tr(e) {
|
|
1703
1707
|
if ("string" != typeof e || e.length < 3) return !1;
|
|
1704
1708
|
let t = e.toLowerCase(), n = !1;
|
|
1705
|
-
for (const e of
|
|
1709
|
+
for (const e of t.split(/[^a-z0-9]+/)) if (Er.has(e)) {
|
|
1706
1710
|
n = !0;
|
|
1707
1711
|
break;
|
|
1708
1712
|
}
|
|
1713
|
+
if (!n) {
|
|
1714
|
+
for (const e of mr) if (t.indexOf(e) >= 0) {
|
|
1715
|
+
n = !0;
|
|
1716
|
+
break;
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1709
1719
|
if (!n) {
|
|
1710
1720
|
let e = t.replace(/[_\-. \t]/g, "");
|
|
1711
1721
|
for (const t of hr) if (e.indexOf(t) >= 0) {
|
|
@@ -1714,10 +1724,10 @@ function yr(e) {
|
|
|
1714
1724
|
}
|
|
1715
1725
|
}
|
|
1716
1726
|
if (n || (n = t.indexOf("priv") >= 0 && t.indexOf("key") >= 0), !n) return !1;
|
|
1717
|
-
for (const e of t.split(/[_\-. \t]/)) if (
|
|
1727
|
+
for (const e of t.split(/[_\-. \t]/)) if (yr.has(e)) return !1;
|
|
1718
1728
|
return !0;
|
|
1719
1729
|
}
|
|
1720
|
-
function
|
|
1730
|
+
function vr(e, t, n) {
|
|
1721
1731
|
const r = (e) => " " === e || " " === e, l = (t) => n && e[t] === n && (t + 1 >= e.length || r(e[t + 1]));
|
|
1722
1732
|
let o = t;
|
|
1723
1733
|
for (;;) {
|
|
@@ -1733,12 +1743,38 @@ function Tr(e, t, n) {
|
|
|
1733
1743
|
o = t;
|
|
1734
1744
|
}
|
|
1735
1745
|
}
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1746
|
+
function Or(e) {
|
|
1747
|
+
return e >= 48 && e <= 57 || e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
1748
|
+
}
|
|
1749
|
+
function Sr(e) {
|
|
1750
|
+
return Or(e) || 45 === e || 95 === e;
|
|
1751
|
+
}
|
|
1752
|
+
function Nr(e, t) {
|
|
1753
|
+
if (e.length - t < 3 || "e" !== e[t] || "y" !== e[t + 1] || "J" !== e[t + 2]) return 0;
|
|
1754
|
+
if (t > 0 && (Sr(e.charCodeAt(t - 1)) || "." === e[t - 1])) return 0;
|
|
1755
|
+
let n = t, r = 0;
|
|
1756
|
+
for (; n < e.length && (Sr(e.charCodeAt(n)) || "." === e[n]);) "." === e[n] && r++, n++;
|
|
1757
|
+
for (; "." === e[n - 1];) n--, r--;
|
|
1758
|
+
return 2 === r ? n - t : 0;
|
|
1759
|
+
}
|
|
1760
|
+
var wr = " \r\n'\",;}]\0";
|
|
1761
|
+
function jr(e, t) {
|
|
1762
|
+
if (e.length - t <= 6 || "bearer" !== e.slice(t, t + 6).toLowerCase()) return [0, 0];
|
|
1763
|
+
if (t > 0 && Or(e.charCodeAt(t - 1))) return [0, 0];
|
|
1764
|
+
let n = t + 6;
|
|
1765
|
+
if (" " !== e[n] && " " !== e[n]) return [0, 0];
|
|
1766
|
+
for (; n < e.length && (" " === e[n] || " " === e[n]);) n++;
|
|
1767
|
+
let r = n;
|
|
1768
|
+
for (; r < e.length && wr.indexOf(e[r]) < 0;) r++;
|
|
1769
|
+
return [n - t, r - n];
|
|
1770
|
+
}
|
|
1771
|
+
var $r = 128, Rr = 4194304, Dr = "<not shown: too large to mask>";
|
|
1772
|
+
function Ar(e) {
|
|
1773
|
+
if ("string" != typeof e) return null;
|
|
1774
|
+
if (e.indexOf("=") < 0 && e.indexOf("eyJ") < 0 && !/bearer/i.test(e)) return null;
|
|
1775
|
+
if (e.length > Rr) return Dr;
|
|
1740
1776
|
let t, n = !1, r = /(^|[ \t])attribute=["']?([^ \t"']*)/g;
|
|
1741
|
-
for (; null !== (t = r.exec(e));)
|
|
1777
|
+
for (; null !== (t = r.exec(e));) Tr(t[2].slice(-128)) && (n = !0);
|
|
1742
1778
|
let l = [], o = 0, i = !1, s = "", a = 0, u = 0;
|
|
1743
1779
|
const _ = (t) => t >= e.length || " " === e[t] || " " === e[t];
|
|
1744
1780
|
for (; u < e.length;) {
|
|
@@ -1747,32 +1783,38 @@ function Nr(e) {
|
|
|
1747
1783
|
u++, a = u;
|
|
1748
1784
|
continue;
|
|
1749
1785
|
}
|
|
1750
|
-
|
|
1786
|
+
"\"" !== t && "'" !== t || (s || 0 !== u && " " !== e[u - 1] && " " !== e[u - 1] && "=" !== e[u - 1] ? t === s && _(u + 1) && (s = "") : s = t);
|
|
1787
|
+
let r = "e" === t ? Nr(e, u) : 0, c = 0;
|
|
1788
|
+
if ("b" !== t && "B" !== t || ([c, r] = jr(e, u)), r) {
|
|
1789
|
+
l.push(e.substring(o, u + c)), l.push("********"), u += c + r, o = u, i = !0, a = u;
|
|
1790
|
+
continue;
|
|
1791
|
+
}
|
|
1792
|
+
if ("=" !== t) {
|
|
1751
1793
|
u++;
|
|
1752
1794
|
continue;
|
|
1753
1795
|
}
|
|
1754
|
-
let
|
|
1755
|
-
if (a = u + 1, !(
|
|
1796
|
+
let f = e.substring(Math.max(a, u - $r), u);
|
|
1797
|
+
if (a = u + 1, !(Tr(f) || n && "value" === f.toLowerCase())) {
|
|
1756
1798
|
u++;
|
|
1757
1799
|
continue;
|
|
1758
1800
|
}
|
|
1759
1801
|
u++;
|
|
1760
|
-
let
|
|
1761
|
-
if (
|
|
1762
|
-
for (
|
|
1763
|
-
e[
|
|
1764
|
-
} else
|
|
1765
|
-
|
|
1802
|
+
let g, d = "\"" === e[u] || "'" === e[u] ? e[u] : "";
|
|
1803
|
+
if (d) {
|
|
1804
|
+
for (g = u + 1; g < e.length && e[g] !== d;) g++;
|
|
1805
|
+
e[g] === d && g++;
|
|
1806
|
+
} else g = vr(e, u, s);
|
|
1807
|
+
g > u && (l.push(e.substring(o, u)), l.push("********"), o = g, i = !0), u = g, a = u;
|
|
1766
1808
|
}
|
|
1767
1809
|
return i ? (l.push(e.substring(o)), l.join("")) : null;
|
|
1768
1810
|
}
|
|
1769
|
-
var
|
|
1770
|
-
var
|
|
1771
|
-
function
|
|
1811
|
+
var kr = 64, Ir = "<not shown: the masking failed>";
|
|
1812
|
+
var Cr = Symbol("mask-in-progress");
|
|
1813
|
+
function Lr(e, t, n, r) {
|
|
1772
1814
|
if ("string" == typeof e) {
|
|
1773
|
-
if (e.length > r.left) return r.left = 0,
|
|
1815
|
+
if (e.length > r.left) return r.left = 0, Dr;
|
|
1774
1816
|
r.left -= e.length;
|
|
1775
|
-
let t =
|
|
1817
|
+
let t = Ar(e.indexOf("\0") >= 0 ? e.replace(/\u0000/g, " ") : e);
|
|
1776
1818
|
return null !== t ? t : e;
|
|
1777
1819
|
}
|
|
1778
1820
|
let l = Array.isArray(e);
|
|
@@ -1781,13 +1823,13 @@ function Rr(e, t, n, r) {
|
|
|
1781
1823
|
let t = Object.getPrototypeOf(e);
|
|
1782
1824
|
return t === Object.prototype || null === t;
|
|
1783
1825
|
}(e)) return e;
|
|
1784
|
-
if (r.left <= 0) return
|
|
1826
|
+
if (r.left <= 0) return Dr;
|
|
1785
1827
|
if (t.has(e)) {
|
|
1786
1828
|
let n = t.get(e);
|
|
1787
|
-
return n ===
|
|
1829
|
+
return n === Cr ? "<cycle>" : n;
|
|
1788
1830
|
}
|
|
1789
|
-
if (n >=
|
|
1790
|
-
r.left -= 1, t.set(e,
|
|
1831
|
+
if (n >= kr) return "<deeper not shown>";
|
|
1832
|
+
r.left -= 1, t.set(e, Cr);
|
|
1791
1833
|
let o, i = !1, s = !1;
|
|
1792
1834
|
if (l) {
|
|
1793
1835
|
o = [];
|
|
@@ -1797,13 +1839,13 @@ function Rr(e, t, n, r) {
|
|
|
1797
1839
|
break;
|
|
1798
1840
|
}
|
|
1799
1841
|
r.left -= 1;
|
|
1800
|
-
let a =
|
|
1842
|
+
let a = Lr(e[l], t, n + 1, r);
|
|
1801
1843
|
a !== e[l] && (i = !0), o.push(a);
|
|
1802
1844
|
}
|
|
1803
|
-
s && o.push(
|
|
1845
|
+
s && o.push(Dr);
|
|
1804
1846
|
} else {
|
|
1805
1847
|
o = Object.create(Object.getPrototypeOf(e));
|
|
1806
|
-
let l = "string" == typeof e.attribute &&
|
|
1848
|
+
let l = "string" == typeof e.attribute && Tr(e.attribute.slice(-128));
|
|
1807
1849
|
for (const a in e) {
|
|
1808
1850
|
if (!Object.prototype.hasOwnProperty.call(e, a)) continue;
|
|
1809
1851
|
if (r.left <= 0) {
|
|
@@ -1812,38 +1854,38 @@ function Rr(e, t, n, r) {
|
|
|
1812
1854
|
}
|
|
1813
1855
|
r.left -= 1 + a.length;
|
|
1814
1856
|
let u, _ = e[a];
|
|
1815
|
-
u = (
|
|
1857
|
+
u = (Tr(a.slice(-128)) || l && "value" === a) && null != _ && "" !== _ ? "********" : Lr(_, t, n + 1, r), u !== _ && (i = !0), Sl(o, a, u);
|
|
1816
1858
|
}
|
|
1817
|
-
s && (o["<more>"] =
|
|
1859
|
+
s && (o["<more>"] = Dr);
|
|
1818
1860
|
}
|
|
1819
1861
|
return i || s || (o = e), t.set(e, o), o;
|
|
1820
1862
|
}
|
|
1821
|
-
function
|
|
1863
|
+
function Pr(e) {
|
|
1822
1864
|
try {
|
|
1823
|
-
return
|
|
1865
|
+
return Lr(e, /* @__PURE__ */ new WeakMap(), 0, { left: Rr });
|
|
1824
1866
|
} catch (e) {
|
|
1825
|
-
return
|
|
1867
|
+
return Ir;
|
|
1826
1868
|
}
|
|
1827
1869
|
}
|
|
1828
|
-
function
|
|
1829
|
-
pr(
|
|
1870
|
+
function Ur(e, t) {
|
|
1871
|
+
pr(Pr(e), t);
|
|
1830
1872
|
}
|
|
1831
|
-
function
|
|
1873
|
+
function Fr(e) {
|
|
1832
1874
|
return structuredClone(e);
|
|
1833
1875
|
}
|
|
1834
|
-
function
|
|
1876
|
+
function Vr(...e) {
|
|
1835
1877
|
const t = {};
|
|
1836
|
-
for (const n of e)
|
|
1878
|
+
for (const n of e) Mr(t, structuredClone(n));
|
|
1837
1879
|
return t;
|
|
1838
1880
|
}
|
|
1839
|
-
function
|
|
1881
|
+
function Gr(e, t) {
|
|
1840
1882
|
if (e === t) return !0;
|
|
1841
1883
|
if (null === e || null === t) return e === t;
|
|
1842
1884
|
if (typeof e != typeof t) return !1;
|
|
1843
1885
|
if (Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
1844
1886
|
if (Array.isArray(e)) {
|
|
1845
1887
|
if (e.length !== t.length) return !1;
|
|
1846
|
-
for (let n = 0; n < e.length; n++) if (!
|
|
1888
|
+
for (let n = 0; n < e.length; n++) if (!Gr(e[n], t[n])) return !1;
|
|
1847
1889
|
return !0;
|
|
1848
1890
|
}
|
|
1849
1891
|
if ("object" == typeof e) {
|
|
@@ -1851,153 +1893,153 @@ function Cr(e, t) {
|
|
|
1851
1893
|
if (n.length !== r.length) return !1;
|
|
1852
1894
|
for (let l = 0; l < n.length; l++) {
|
|
1853
1895
|
if (n[l] !== r[l]) return !1;
|
|
1854
|
-
if (!
|
|
1896
|
+
if (!Gr(e[n[l]], t[r[l]])) return !1;
|
|
1855
1897
|
}
|
|
1856
1898
|
return !0;
|
|
1857
1899
|
}
|
|
1858
1900
|
return e === t;
|
|
1859
1901
|
}
|
|
1860
|
-
function
|
|
1902
|
+
function Mr(e, t) {
|
|
1861
1903
|
if (!t) return e;
|
|
1862
|
-
for (let n of Object.keys(t))
|
|
1904
|
+
for (let n of Object.keys(t)) Sl(e, n, t[n]);
|
|
1863
1905
|
return e;
|
|
1864
1906
|
}
|
|
1865
|
-
function
|
|
1907
|
+
function Wr(e, t) {
|
|
1866
1908
|
if (!t) return e;
|
|
1867
|
-
for (let n in t) Object.prototype.hasOwnProperty.call(t, n) && Object.prototype.hasOwnProperty.call(e, n) &&
|
|
1909
|
+
for (let n in t) Object.prototype.hasOwnProperty.call(t, n) && Object.prototype.hasOwnProperty.call(e, n) && Sl(e, n, t[n]);
|
|
1868
1910
|
return e;
|
|
1869
1911
|
}
|
|
1870
|
-
function
|
|
1912
|
+
function xr(e, t) {
|
|
1871
1913
|
if (!t) return e;
|
|
1872
|
-
for (let n in t) Object.prototype.hasOwnProperty.call(t, n) && !Object.prototype.hasOwnProperty.call(e, n) &&
|
|
1914
|
+
for (let n in t) Object.prototype.hasOwnProperty.call(t, n) && !Object.prototype.hasOwnProperty.call(e, n) && Sl(e, n, t[n]);
|
|
1873
1915
|
return e;
|
|
1874
1916
|
}
|
|
1875
|
-
function
|
|
1917
|
+
function Kr(e, t) {
|
|
1876
1918
|
if (e && Object.prototype.hasOwnProperty.call(e, t)) return e[t];
|
|
1877
1919
|
}
|
|
1878
|
-
function
|
|
1920
|
+
function Yr(e, t) {
|
|
1879
1921
|
e && Object.prototype.hasOwnProperty.call(e, t) && delete e[t];
|
|
1880
1922
|
}
|
|
1881
|
-
function
|
|
1882
|
-
|
|
1923
|
+
function Br(e, t, n) {
|
|
1924
|
+
Sl(e, t, n);
|
|
1883
1925
|
}
|
|
1884
|
-
function
|
|
1885
|
-
|
|
1926
|
+
function Jr(e, t, n) {
|
|
1927
|
+
Sl(e, t, n);
|
|
1886
1928
|
}
|
|
1887
|
-
function
|
|
1929
|
+
function qr(e, t) {
|
|
1888
1930
|
e.push(t);
|
|
1889
1931
|
}
|
|
1890
|
-
function
|
|
1932
|
+
function Hr(e, t) {
|
|
1891
1933
|
e.push(t);
|
|
1892
1934
|
}
|
|
1893
|
-
function
|
|
1935
|
+
function zr(e, t) {
|
|
1894
1936
|
e.splice(t, 1);
|
|
1895
1937
|
}
|
|
1896
|
-
function
|
|
1938
|
+
function Qr(e, t) {
|
|
1897
1939
|
return t ? (Array.prototype.push.apply(e, t), e) : e;
|
|
1898
1940
|
}
|
|
1899
|
-
function
|
|
1900
|
-
return
|
|
1941
|
+
function Xr(e) {
|
|
1942
|
+
return nl(e) ? Object.keys(e).length : 0;
|
|
1901
1943
|
}
|
|
1902
|
-
function
|
|
1903
|
-
return
|
|
1944
|
+
function Zr(e) {
|
|
1945
|
+
return rl(e) ? e.length : 0;
|
|
1904
1946
|
}
|
|
1905
|
-
function
|
|
1906
|
-
return
|
|
1947
|
+
function el(e) {
|
|
1948
|
+
return nl(e) ? Object.keys(e).length : rl(e) ? e.length : ll(e) && e.length > 0 ? 1 : 0;
|
|
1907
1949
|
}
|
|
1908
|
-
function
|
|
1909
|
-
return 0 ===
|
|
1950
|
+
function tl(e) {
|
|
1951
|
+
return 0 === el(e);
|
|
1910
1952
|
}
|
|
1911
|
-
function
|
|
1953
|
+
function nl(e) {
|
|
1912
1954
|
return null !== e && "object" == typeof e && !Array.isArray(e);
|
|
1913
1955
|
}
|
|
1914
|
-
function
|
|
1956
|
+
function rl(e) {
|
|
1915
1957
|
return Array.isArray(e);
|
|
1916
1958
|
}
|
|
1917
|
-
function
|
|
1959
|
+
function ll(e) {
|
|
1918
1960
|
return "string" == typeof e;
|
|
1919
1961
|
}
|
|
1920
|
-
function
|
|
1962
|
+
function ol(e) {
|
|
1921
1963
|
return "number" == typeof e && Number.isFinite(e);
|
|
1922
1964
|
}
|
|
1923
|
-
function
|
|
1965
|
+
function il(e) {
|
|
1924
1966
|
return "boolean" == typeof e;
|
|
1925
1967
|
}
|
|
1926
|
-
function
|
|
1968
|
+
function sl(e) {
|
|
1927
1969
|
return null == e;
|
|
1928
1970
|
}
|
|
1929
|
-
function
|
|
1930
|
-
if (
|
|
1931
|
-
if (!
|
|
1971
|
+
function al(e) {
|
|
1972
|
+
if (ol(e)) return !0;
|
|
1973
|
+
if (!ll(e)) return !1;
|
|
1932
1974
|
const t = Number(e);
|
|
1933
1975
|
return !isNaN(t) && "" !== e.trim() && !isNaN(t);
|
|
1934
1976
|
}
|
|
1935
|
-
function
|
|
1977
|
+
function ul(e) {
|
|
1936
1978
|
return e instanceof Date && !isNaN(e);
|
|
1937
1979
|
}
|
|
1938
|
-
function
|
|
1980
|
+
function _l(e) {
|
|
1939
1981
|
return "function" == typeof e;
|
|
1940
1982
|
}
|
|
1941
|
-
function
|
|
1983
|
+
function cl(e) {
|
|
1942
1984
|
return e instanceof I;
|
|
1943
1985
|
}
|
|
1944
|
-
function
|
|
1945
|
-
return !
|
|
1986
|
+
function fl(e) {
|
|
1987
|
+
return !ll(e) || 0 === e.length;
|
|
1946
1988
|
}
|
|
1947
|
-
function
|
|
1948
|
-
return
|
|
1989
|
+
function gl(e) {
|
|
1990
|
+
return ol(e) ? Boolean(e) : /^\s*(true|1|on)\s*$/i.test(e);
|
|
1949
1991
|
}
|
|
1950
|
-
function
|
|
1992
|
+
function dl(e, t, n) {
|
|
1951
1993
|
var r = (e + "").substring(0, n), l = (t + "").substring(0, n);
|
|
1952
1994
|
return r === l ? 0 : r > l ? 1 : -1;
|
|
1953
1995
|
}
|
|
1954
|
-
function
|
|
1996
|
+
function bl(e, t) {
|
|
1955
1997
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
1956
1998
|
}
|
|
1957
|
-
function
|
|
1999
|
+
function pl(e, t) {
|
|
1958
2000
|
let n = e.toLowerCase(), r = t.toLowerCase();
|
|
1959
2001
|
return n === r ? 0 : n > r ? 1 : -1;
|
|
1960
2002
|
}
|
|
1961
|
-
function
|
|
1962
|
-
if (
|
|
1963
|
-
if (
|
|
2003
|
+
function ml(e, t) {
|
|
2004
|
+
if (nl(e) || nl(t) || rl(e) || rl(t)) return 0;
|
|
2005
|
+
if (ol(e) || ol(t)) {
|
|
1964
2006
|
let n = Number(e), r = Number(t);
|
|
1965
2007
|
return Number.isNaN(n) && (n = 0), Number.isNaN(r) && (r = 0), n > r ? 1 : n < r ? -1 : 0;
|
|
1966
2008
|
}
|
|
1967
|
-
if (
|
|
2009
|
+
if (il(e) || il(t)) {
|
|
1968
2010
|
let n = Number(e), r = Number(t);
|
|
1969
2011
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
1970
2012
|
}
|
|
1971
|
-
return
|
|
2013
|
+
return bl(String(e), String(t));
|
|
1972
2014
|
}
|
|
1973
|
-
function
|
|
2015
|
+
function hl(e, t, n) {
|
|
1974
2016
|
var r;
|
|
1975
2017
|
return -1 !== (r = (e += "").indexOf(t)) && (n ? e.substring(0, r) : e.slice(r));
|
|
1976
2018
|
}
|
|
1977
|
-
function
|
|
1978
|
-
if (!
|
|
2019
|
+
function El(e) {
|
|
2020
|
+
if (!ll(e)) return !1;
|
|
1979
2021
|
let t = 0;
|
|
1980
2022
|
for (; t < e.length && "_" === e[t] && !(t > 2); t++);
|
|
1981
2023
|
return 2 === t;
|
|
1982
2024
|
}
|
|
1983
|
-
function
|
|
1984
|
-
if (!
|
|
2025
|
+
function yl(e) {
|
|
2026
|
+
if (!ll(e)) return !1;
|
|
1985
2027
|
let t = 0;
|
|
1986
2028
|
for (; t < e.length && "_" === e[t] && !(t > 2); t++);
|
|
1987
2029
|
return 1 === t;
|
|
1988
2030
|
}
|
|
1989
|
-
function
|
|
1990
|
-
if ("object" != typeof t || Array.isArray(t)) if (Array.isArray(t)) for (const n of t)
|
|
2031
|
+
function Tl(e, t) {
|
|
2032
|
+
if ("object" != typeof t || Array.isArray(t)) if (Array.isArray(t)) for (const n of t) Tl(e, n);
|
|
1991
2033
|
else "string" == typeof t && delete e[t];
|
|
1992
2034
|
else for (const n of Object.keys(t)) delete e[n];
|
|
1993
2035
|
}
|
|
1994
|
-
function
|
|
2036
|
+
function vl(e, t) {
|
|
1995
2037
|
return !(!(t in e) || !Object.prototype.hasOwnProperty.call(e, t));
|
|
1996
2038
|
}
|
|
1997
|
-
function
|
|
2039
|
+
function Ol(e, t) {
|
|
1998
2040
|
return !Object.prototype.hasOwnProperty.call(e, t);
|
|
1999
2041
|
}
|
|
2000
|
-
function
|
|
2042
|
+
function Sl(e, t, n) {
|
|
2001
2043
|
"__proto__" === t ? Object.defineProperty(e, t, {
|
|
2002
2044
|
value: n,
|
|
2003
2045
|
writable: !0,
|
|
@@ -2005,235 +2047,235 @@ function hl(e, t, n) {
|
|
|
2005
2047
|
configurable: !0
|
|
2006
2048
|
}) : e[t] = n;
|
|
2007
2049
|
}
|
|
2008
|
-
function
|
|
2050
|
+
function Nl(e, t) {
|
|
2009
2051
|
if (!/^[0-9]+$/.test(t)) return -1;
|
|
2010
2052
|
const n = Number(t);
|
|
2011
2053
|
return n >= e.length ? -1 : n;
|
|
2012
2054
|
}
|
|
2013
|
-
function
|
|
2014
|
-
e && !
|
|
2055
|
+
function wl(e, t, n, r) {
|
|
2056
|
+
e && !cl(e) && cr("GObj bad instanceof");
|
|
2015
2057
|
const l = e ? `${Rt(e)}: ` : "";
|
|
2016
|
-
if (!
|
|
2017
|
-
if (!
|
|
2058
|
+
if (!nl(t) && !rl(t)) return void cr(`${l}kw must be list or dict: '${String(n)}'`);
|
|
2059
|
+
if (!ll(n)) return void cr(`${l}path must be a string: ${String(n)}`);
|
|
2018
2060
|
let o = n.split("`"), i = o.length;
|
|
2019
2061
|
for (let e = 0; e < i; e++) {
|
|
2020
|
-
if (
|
|
2021
|
-
const i =
|
|
2062
|
+
if (rl(t)) {
|
|
2063
|
+
const i = Nl(t, o[e]);
|
|
2022
2064
|
if (i < 0) return void (r && cr(`${l}path not found: '${n}'`));
|
|
2023
2065
|
o[e] = String(i);
|
|
2024
2066
|
}
|
|
2025
|
-
if (
|
|
2067
|
+
if (Ol(t, o[e])) return void (r && cr(`${l}path not found: '${n}'`));
|
|
2026
2068
|
if (e === i - 1) break;
|
|
2027
2069
|
if (null == (t = t[o[e]])) return void (r && cr(`${l}path not found: '${n}'`));
|
|
2028
|
-
if (!
|
|
2070
|
+
if (!nl(t) && !rl(t)) return void cr(`${l}kw must be list or dict: '${n}'`);
|
|
2029
2071
|
}
|
|
2030
2072
|
let s = t[o[i - 1]];
|
|
2031
2073
|
return void 0 === s && r && cr(`${l}path not found: '${n}'`), s;
|
|
2032
2074
|
}
|
|
2033
|
-
function
|
|
2034
|
-
e && !
|
|
2075
|
+
function jl(e, t, n) {
|
|
2076
|
+
e && !cl(e) && cr("GObj bad instanceof");
|
|
2035
2077
|
const r = e ? Rt(e) + ": " : "";
|
|
2036
|
-
if (!
|
|
2078
|
+
if (!ll(n)) return cr(`${r}kw_delete(): path must be a string: ${String(n)}`), -1;
|
|
2037
2079
|
let [l, o] = function(e, t) {
|
|
2038
2080
|
let n = e.lastIndexOf(t);
|
|
2039
2081
|
return -1 === n ? [e, ""] : [e.substring(0, n), e.substring(n + 1)];
|
|
2040
2082
|
}(n, "`"), i = t;
|
|
2041
|
-
if (
|
|
2042
|
-
else if (i =
|
|
2043
|
-
return
|
|
2083
|
+
if (fl(o)) o = n;
|
|
2084
|
+
else if (i = wl(e, t, l, !0), void 0 === i) return -1;
|
|
2085
|
+
return rl(i) ? (cr(`${r}kw_delete(): cannot delete an item of a list: '${n}'`), -1) : nl(i) && Object.prototype.hasOwnProperty.call(i, o) ? (delete i[o], 0) : (cr(`${r}kw_delete(): path not found: '${n}'`), -1);
|
|
2044
2086
|
}
|
|
2045
|
-
function
|
|
2046
|
-
e && !
|
|
2047
|
-
let o =
|
|
2087
|
+
function $l(e, t, n, r, l) {
|
|
2088
|
+
e && !cl(e) && cr("GObj bad instanceof");
|
|
2089
|
+
let o = wl(e, t, n, !1);
|
|
2048
2090
|
const i = l && l & Vn.KW_REQUIRED, s = l && l & Vn.KW_CREATE, a = l && l & Vn.KW_EXTRACT, u = l && l & Vn.KW_WILD_NUMBER;
|
|
2049
2091
|
if (void 0 === o) {
|
|
2050
2092
|
if (s && t) {
|
|
2051
2093
|
let l = Boolean(r);
|
|
2052
|
-
return
|
|
2094
|
+
return Pl(e, t, n, l), l;
|
|
2053
2095
|
}
|
|
2054
|
-
return i && (cr(`path not found: '${n}'`),
|
|
2096
|
+
return i && (cr(`path not found: '${n}'`), Ur(t)), Boolean(r);
|
|
2055
2097
|
}
|
|
2056
2098
|
let _;
|
|
2057
|
-
if (
|
|
2058
|
-
else if (u &&
|
|
2059
|
-
else if (u &&
|
|
2099
|
+
if (il(o)) _ = o;
|
|
2100
|
+
else if (u && ol(o)) _ = 0 !== o;
|
|
2101
|
+
else if (u && ll(o)) _ = "true" === o.toLowerCase() || "false" !== o.toLowerCase() && 0 !== (parseInt(o, 10) || 0);
|
|
2060
2102
|
else {
|
|
2061
|
-
if (!u || null !== o) return u ? (cr(`${e ? Rt(e) + ": " : ""}path MUST BE a simple json element: '${n}'`),
|
|
2103
|
+
if (!u || null !== o) return u ? (cr(`${e ? Rt(e) + ": " : ""}path MUST BE a simple json element: '${n}'`), Ur(t), !1) : (cr(`${e ? Rt(e) + ": " : ""}path MUST BE a json boolean: '${n}'`), Ur(t), Boolean(r));
|
|
2062
2104
|
_ = !1;
|
|
2063
2105
|
}
|
|
2064
|
-
return a &&
|
|
2106
|
+
return a && jl(e, t, n), _;
|
|
2065
2107
|
}
|
|
2066
|
-
function
|
|
2067
|
-
e && !
|
|
2068
|
-
let o =
|
|
2108
|
+
function Rl(e, t, n, r, l) {
|
|
2109
|
+
e && !cl(e) && cr("GObj bad instanceof");
|
|
2110
|
+
let o = wl(e, t, n, !1);
|
|
2069
2111
|
const i = l && l & Vn.KW_REQUIRED, s = l && l & Vn.KW_CREATE, a = l && l & Vn.KW_EXTRACT, u = l && l & Vn.KW_WILD_NUMBER;
|
|
2070
2112
|
if (void 0 === o) {
|
|
2071
2113
|
if (s && t) {
|
|
2072
2114
|
let l = parseInt(r);
|
|
2073
|
-
return
|
|
2115
|
+
return Pl(e, t, n, l), l;
|
|
2074
2116
|
}
|
|
2075
|
-
return i && (cr(`path not found: '${n}'`),
|
|
2117
|
+
return i && (cr(`path not found: '${n}'`), Ur(t)), parseInt(r);
|
|
2076
2118
|
}
|
|
2077
2119
|
let _;
|
|
2078
|
-
if (
|
|
2120
|
+
if (ol(o)) _ = Math.trunc(o);
|
|
2079
2121
|
else {
|
|
2080
|
-
if (!u) return cr(`${e ? Rt(e) + ": " : ""}path MUST BE a json integer: '${n}'`),
|
|
2081
|
-
if (
|
|
2082
|
-
else if (
|
|
2122
|
+
if (!u) return cr(`${e ? Rt(e) + ": " : ""}path MUST BE a json integer: '${n}'`), Ur(t), parseInt(r);
|
|
2123
|
+
if (il(o)) _ = o ? 1 : 0;
|
|
2124
|
+
else if (ll(o)) _ = function(e) {
|
|
2083
2125
|
const t = /^\s*([+-]?)(0[xX][0-9a-fA-F]+|0[0-7]*|[1-9][0-9]*)/.exec(e);
|
|
2084
2126
|
if (!t) return 0;
|
|
2085
2127
|
let n, r = t[2];
|
|
2086
2128
|
return n = r.length > 1 && ("x" === r[1] || "X" === r[1]) ? parseInt(r.substring(2), 16) : "0" === r[0] ? parseInt(r, 8) : parseInt(r, 10), "-" === t[1] ? -n : n;
|
|
2087
2129
|
}(o);
|
|
2088
2130
|
else {
|
|
2089
|
-
if (null !== o) return cr(`${e ? Rt(e) + ": " : ""}path MUST BE a simple json element: '${n}'`),
|
|
2131
|
+
if (null !== o) return cr(`${e ? Rt(e) + ": " : ""}path MUST BE a simple json element: '${n}'`), Ur(t), 0;
|
|
2090
2132
|
_ = 0;
|
|
2091
2133
|
}
|
|
2092
2134
|
}
|
|
2093
|
-
return a &&
|
|
2135
|
+
return a && jl(e, t, n), _;
|
|
2094
2136
|
}
|
|
2095
|
-
function
|
|
2096
|
-
e && !
|
|
2097
|
-
let o =
|
|
2137
|
+
function Dl(e, t, n, r, l) {
|
|
2138
|
+
e && !cl(e) && cr("GObj bad instanceof");
|
|
2139
|
+
let o = wl(e, t, n, !1);
|
|
2098
2140
|
const i = l && l & Vn.KW_REQUIRED, s = l && l & Vn.KW_CREATE, a = l && l & Vn.KW_EXTRACT, u = l && l & Vn.KW_WILD_NUMBER;
|
|
2099
2141
|
if (void 0 === o) {
|
|
2100
2142
|
if (s && t) {
|
|
2101
2143
|
let l = Number(r);
|
|
2102
|
-
return
|
|
2144
|
+
return Pl(e, t, n, l), l;
|
|
2103
2145
|
}
|
|
2104
|
-
return i && (cr(`path not found: '${n}'`),
|
|
2146
|
+
return i && (cr(`path not found: '${n}'`), Ur(t)), Number(r);
|
|
2105
2147
|
}
|
|
2106
2148
|
let _;
|
|
2107
|
-
if (
|
|
2149
|
+
if (ol(o)) _ = o;
|
|
2108
2150
|
else {
|
|
2109
|
-
if (!u) return cr(`${e ? Rt(e) + ": " : ""}path MUST BE a json real: '${n}'`),
|
|
2110
|
-
if (
|
|
2111
|
-
else if (
|
|
2151
|
+
if (!u) return cr(`${e ? Rt(e) + ": " : ""}path MUST BE a json real: '${n}'`), Ur(t), Number(r);
|
|
2152
|
+
if (il(o)) _ = o ? 1 : 0;
|
|
2153
|
+
else if (ll(o)) _ = parseFloat(o), Number.isNaN(_) && (_ = 0);
|
|
2112
2154
|
else {
|
|
2113
|
-
if (null !== o) return cr(`${e ? Rt(e) + ": " : ""}path MUST BE a simple json element: '${n}'`),
|
|
2155
|
+
if (null !== o) return cr(`${e ? Rt(e) + ": " : ""}path MUST BE a simple json element: '${n}'`), Ur(t), 0;
|
|
2114
2156
|
_ = 0;
|
|
2115
2157
|
}
|
|
2116
2158
|
}
|
|
2117
|
-
return a &&
|
|
2159
|
+
return a && jl(e, t, n), _;
|
|
2118
2160
|
}
|
|
2119
|
-
function
|
|
2120
|
-
e && !
|
|
2121
|
-
let o =
|
|
2161
|
+
function Al(e, t, n, r, l) {
|
|
2162
|
+
e && !cl(e) && cr("GObj bad instanceof");
|
|
2163
|
+
let o = wl(e, t, n, !1);
|
|
2122
2164
|
const i = l && l & Vn.KW_REQUIRED, s = l && l & Vn.KW_CREATE, a = l && l & Vn.KW_EXTRACT;
|
|
2123
|
-
return void 0 === o ? s && t ? (
|
|
2124
|
-
let n =
|
|
2165
|
+
return void 0 === o ? s && t ? (Pl(e, t, n, ll(r) ? r : null), r) : (i && !function(e, t) {
|
|
2166
|
+
let n = ll(t) ? t.split("`") : [], r = e;
|
|
2125
2167
|
for (let e = 0; e < n.length - 1; e++) {
|
|
2126
|
-
if (!
|
|
2168
|
+
if (!nl(r) && !rl(r)) return !1;
|
|
2127
2169
|
r = r[n[e]];
|
|
2128
2170
|
}
|
|
2129
|
-
return !(!
|
|
2130
|
-
}(t, n) && (cr(`path not found: '${n}'`),
|
|
2171
|
+
return !(!nl(r) && !rl(r) || 0 === n.length) && Object.prototype.hasOwnProperty.call(r, n[n.length - 1]);
|
|
2172
|
+
}(t, n) && (cr(`path not found: '${n}'`), Ur(t)), r) : ll(o) ? (a && jl(e, t, n), o) : (null !== o && (cr(`${e ? Rt(e) + ": " : ""}path MUST BE a json str: '${n}'`), Ur(t)), r);
|
|
2131
2173
|
}
|
|
2132
|
-
function
|
|
2133
|
-
e && !
|
|
2134
|
-
let o =
|
|
2174
|
+
function kl(e, t, n, r, l) {
|
|
2175
|
+
e && !cl(e) && cr("GObj bad instanceof");
|
|
2176
|
+
let o = wl(e, t, n, !1);
|
|
2135
2177
|
const i = l && l & Vn.KW_REQUIRED, s = l && l & Vn.KW_CREATE, a = l && l & Vn.KW_EXTRACT;
|
|
2136
2178
|
if (void 0 === o) {
|
|
2137
2179
|
if (s) {
|
|
2138
2180
|
let l = r;
|
|
2139
|
-
return
|
|
2181
|
+
return Pl(e, t, n, l), l;
|
|
2140
2182
|
}
|
|
2141
|
-
return i && (cr(`path not found: '${n}'`),
|
|
2183
|
+
return i && (cr(`path not found: '${n}'`), Ur(t)), r;
|
|
2142
2184
|
}
|
|
2143
|
-
return a &&
|
|
2185
|
+
return a && jl(e, t, n), o;
|
|
2144
2186
|
}
|
|
2145
|
-
function
|
|
2146
|
-
e && !
|
|
2147
|
-
let o =
|
|
2187
|
+
function Il(e, t, n, r, l) {
|
|
2188
|
+
e && !cl(e) && cr("GObj bad instanceof");
|
|
2189
|
+
let o = wl(e, t, n, !1);
|
|
2148
2190
|
const i = l && l & Vn.KW_REQUIRED, s = l && l & Vn.KW_CREATE, a = l && l & Vn.KW_EXTRACT;
|
|
2149
|
-
return void 0 === o ? s &&
|
|
2191
|
+
return void 0 === o ? s && nl(r) && t ? (Pl(e, t, n, r), r) : (i && (cr(`path not found: '${n}'`), Ur(t)), r) : nl(o) ? (a && jl(e, t, n), o) : s && null === o && nl(r) ? (Pl(e, t, n, r), r) : s && null === o ? (i && (cr(`path not found: '${n}'`), Ur(t)), r) : ((i || s) && (cr(`${e ? Rt(e) + ": " : ""}path MUST BE a json dict: '${n}'` + (s ? ", cannot create" : "")), Ur(t)), r);
|
|
2150
2192
|
}
|
|
2151
|
-
function
|
|
2152
|
-
e && !
|
|
2153
|
-
let o =
|
|
2193
|
+
function Cl(e, t, n, r, l) {
|
|
2194
|
+
e && !cl(e) && cr("GObj bad instanceof");
|
|
2195
|
+
let o = wl(e, t, n, !1);
|
|
2154
2196
|
const i = l && l & Vn.KW_REQUIRED, s = l && l & Vn.KW_CREATE, a = l && l & Vn.KW_EXTRACT;
|
|
2155
2197
|
if (void 0 === o) {
|
|
2156
2198
|
if (s) {
|
|
2157
2199
|
let l = r;
|
|
2158
|
-
return
|
|
2200
|
+
return Pl(e, t, n, l), l;
|
|
2159
2201
|
}
|
|
2160
|
-
return i && (cr(`path not found: '${n}'`),
|
|
2202
|
+
return i && (cr(`path not found: '${n}'`), Ur(t)), r;
|
|
2161
2203
|
}
|
|
2162
|
-
return a &&
|
|
2204
|
+
return a && jl(e, t, n), o;
|
|
2163
2205
|
}
|
|
2164
|
-
function
|
|
2165
|
-
e && !
|
|
2166
|
-
let o =
|
|
2206
|
+
function Ll(e, t, n, r, l) {
|
|
2207
|
+
e && !cl(e) && cr("GObj bad instanceof");
|
|
2208
|
+
let o = wl(e, t, n, !1);
|
|
2167
2209
|
const i = l && l & Vn.KW_REQUIRED, s = l && l & Vn.KW_CREATE, a = l && l & Vn.KW_EXTRACT;
|
|
2168
|
-
return void 0 === o ? s &&
|
|
2210
|
+
return void 0 === o ? s && rl(r) && t ? (Pl(e, t, n, r), r) : (i && (cr(`path not found: '${n}'`), Ur(t)), r) : rl(o) ? (a && jl(e, t, n), o) : s && null === o && rl(r) ? (Pl(e, t, n, r), r) : s && null === o ? (i && (cr(`path not found: '${n}'`), Ur(t)), r) : ((i || s) && (cr(`${e ? Rt(e) + ": " : ""}path MUST BE a json list: '${n}'` + (s ? ", cannot create" : "")), Ur(t)), r);
|
|
2169
2211
|
}
|
|
2170
|
-
function
|
|
2171
|
-
if (e && !
|
|
2172
|
-
if (!
|
|
2212
|
+
function Pl(e, t, n, r) {
|
|
2213
|
+
if (e && !cl(e) && cr("GObj bad instanceof"), !nl(t)) return cr("kw is not an object"), -1;
|
|
2214
|
+
if (!ll(n)) return cr(`${e ? Rt(e) + ": " : ""}kw_set_dict_value(): path must be a string: ${String(n)}`), -1;
|
|
2173
2215
|
if ("" === n) return cr((e ? Rt(e) + ": " : "") + "kw_set_dict_value(): path empty"), -1;
|
|
2174
2216
|
if (n.split("`").includes("")) return cr(`${e ? Rt(e) + ": " : ""}kw_set_dict_value(): empty segment in path: '${n}'`), -1;
|
|
2175
2217
|
let l = n.split("`"), o = l.length;
|
|
2176
2218
|
for (let i = 0; i < o; i++) {
|
|
2177
2219
|
let s = l[i];
|
|
2178
|
-
if (
|
|
2179
|
-
const r =
|
|
2220
|
+
if (rl(t)) {
|
|
2221
|
+
const r = Nl(t, s);
|
|
2180
2222
|
if (r < 0) return cr(`${e ? Rt(e) + ": " : ""}kw_set_dict_value(): segment '${s}' is not an index of its list: '${n}'`), -1;
|
|
2181
2223
|
s = String(r);
|
|
2182
2224
|
}
|
|
2183
|
-
if (i === o - 1)
|
|
2225
|
+
if (i === o - 1) Sl(t, s, r);
|
|
2184
2226
|
else {
|
|
2185
|
-
let r =
|
|
2186
|
-
if (void 0 === r)
|
|
2187
|
-
else if (!
|
|
2227
|
+
let r = Ol(t, s) ? void 0 : t[s];
|
|
2228
|
+
if (void 0 === r) Sl(t, s, {});
|
|
2229
|
+
else if (!nl(r) && !rl(r)) return cr(`${e ? Rt(e) + ": " : ""}kw_set_dict_value(): segment '${s}' is not a dict or a list: '${n}'`), -1;
|
|
2188
2230
|
t = t[s];
|
|
2189
2231
|
}
|
|
2190
2232
|
}
|
|
2191
2233
|
return 0;
|
|
2192
2234
|
}
|
|
2193
|
-
function
|
|
2194
|
-
if (e && !
|
|
2195
|
-
let o =
|
|
2235
|
+
function Ul(e, t, n, r, l) {
|
|
2236
|
+
if (e && !cl(e) && cr("GObj bad instanceof"), !nl(t)) return cr("kw is not an object"), -1;
|
|
2237
|
+
let o = wl(e, t, n, !1);
|
|
2196
2238
|
if (void 0 === o) {
|
|
2197
|
-
if (!
|
|
2239
|
+
if (!ll(n) || function(e, t) {
|
|
2198
2240
|
let n = t.split("`"), r = e;
|
|
2199
2241
|
for (let e = 0; e < n.length - 1; e++) {
|
|
2200
|
-
if (
|
|
2201
|
-
const t =
|
|
2242
|
+
if (rl(r)) {
|
|
2243
|
+
const t = Nl(r, n[e]);
|
|
2202
2244
|
if (t < 0) return !1;
|
|
2203
2245
|
r = r[t];
|
|
2204
2246
|
} else r = Object.prototype.hasOwnProperty.call(r, n[e]) ? r[n[e]] : void 0;
|
|
2205
2247
|
if (null == r) return !1;
|
|
2206
|
-
if (!
|
|
2248
|
+
if (!nl(r) && !rl(r)) return !0;
|
|
2207
2249
|
}
|
|
2208
2250
|
return !1;
|
|
2209
2251
|
}(t, n)) return -1;
|
|
2210
|
-
if (o = {},
|
|
2252
|
+
if (o = {}, Pl(e, t, n, o) < 0) return -1;
|
|
2211
2253
|
}
|
|
2212
|
-
return
|
|
2254
|
+
return nl(o) ? (Sl(o, r, l), 0) : (cr(`subdict is not an object: '${n}'`), -1);
|
|
2213
2255
|
}
|
|
2214
|
-
function
|
|
2256
|
+
function Fl(e, n, r) {
|
|
2215
2257
|
let l = "", o = !1;
|
|
2216
|
-
if (
|
|
2258
|
+
if (rl(n)) {
|
|
2217
2259
|
o = !1;
|
|
2218
2260
|
for (let i = 0; i < n.length; i++) {
|
|
2219
2261
|
let s = n[i];
|
|
2220
|
-
if (l =
|
|
2262
|
+
if (l = fl(r) ? t("%s", r) : t("%s`%d", r, i), o = Fl(e, s, l), o) break;
|
|
2221
2263
|
}
|
|
2222
|
-
} else if (
|
|
2264
|
+
} else if (nl(n)) {
|
|
2223
2265
|
o = !0;
|
|
2224
2266
|
let i = Object.keys(n);
|
|
2225
2267
|
for (let s = 0; s < i.length; s++) {
|
|
2226
2268
|
let a = i[s], u = n[a];
|
|
2227
|
-
if (l =
|
|
2228
|
-
if (o =
|
|
2269
|
+
if (l = fl(r) ? t("%s", a) : t("%s`%s", r, a), rl(u) || nl(u)) {
|
|
2270
|
+
if (o = Fl(e, u, l), !o) break;
|
|
2229
2271
|
continue;
|
|
2230
2272
|
}
|
|
2231
|
-
let _ =
|
|
2232
|
-
if (void 0 === _ && (_ =
|
|
2273
|
+
let _ = Cl(0, e, l, void 0, 0);
|
|
2274
|
+
if (void 0 === _ && (_ = Kr(e, l)), void 0 === _) {
|
|
2233
2275
|
o = !1;
|
|
2234
2276
|
break;
|
|
2235
2277
|
}
|
|
2236
|
-
if (0 !==
|
|
2278
|
+
if (0 !== ml(_, u)) {
|
|
2237
2279
|
o = !1;
|
|
2238
2280
|
break;
|
|
2239
2281
|
}
|
|
@@ -2241,83 +2283,83 @@ function kl(e, n, r) {
|
|
|
2241
2283
|
}
|
|
2242
2284
|
return o;
|
|
2243
2285
|
}
|
|
2244
|
-
function
|
|
2245
|
-
return 0 ===
|
|
2286
|
+
function Vl(e, t) {
|
|
2287
|
+
return 0 === el(t) || Fl(e, t, "");
|
|
2246
2288
|
}
|
|
2247
|
-
function
|
|
2248
|
-
if (!n || !
|
|
2249
|
-
for (let e = 0; e < t.length; e++) if (
|
|
2289
|
+
function Gl(e, t, n, r) {
|
|
2290
|
+
if (!n || !rl(t)) return r && cr("item NULL or kw_list is not a list"), -1;
|
|
2291
|
+
for (let e = 0; e < t.length; e++) if (Gr(n, t[e])) return e;
|
|
2250
2292
|
return r && cr("item not found in this list"), -1;
|
|
2251
2293
|
}
|
|
2252
|
-
function
|
|
2253
|
-
if (e && !
|
|
2254
|
-
r || (r =
|
|
2294
|
+
function Ml(e, t, n, r) {
|
|
2295
|
+
if (e && !cl(e) && cr("GObj bad instanceof"), !t) return null;
|
|
2296
|
+
r || (r = Vl);
|
|
2255
2297
|
let l = [];
|
|
2256
|
-
if (
|
|
2298
|
+
if (rl(t)) for (let e = 0; e < t.length; e++) {
|
|
2257
2299
|
let o = t[e];
|
|
2258
|
-
r(o, n) && l.push(
|
|
2300
|
+
r(o, n) && l.push(Fr(o));
|
|
2259
2301
|
}
|
|
2260
2302
|
else {
|
|
2261
|
-
if (!
|
|
2262
|
-
r(t, n) && l.push(
|
|
2303
|
+
if (!nl(t)) return cr("kw_select() BAD kw parameter"), null;
|
|
2304
|
+
r(t, n) && l.push(Fr(t));
|
|
2263
2305
|
}
|
|
2264
2306
|
return l;
|
|
2265
2307
|
}
|
|
2266
|
-
function
|
|
2267
|
-
if (e && !
|
|
2268
|
-
r || (r =
|
|
2308
|
+
function Wl(e, t, n, r) {
|
|
2309
|
+
if (e && !cl(e) && cr("GObj bad instanceof"), !t) return null;
|
|
2310
|
+
r || (r = Vl);
|
|
2269
2311
|
let l = [];
|
|
2270
|
-
if (
|
|
2312
|
+
if (rl(t)) for (let e = 0; e < t.length; e++) {
|
|
2271
2313
|
let o = t[e];
|
|
2272
2314
|
r(o, n) && l.push(o);
|
|
2273
2315
|
}
|
|
2274
2316
|
else {
|
|
2275
|
-
if (!
|
|
2317
|
+
if (!nl(t)) return cr("kw_select() BAD kw parameter"), null;
|
|
2276
2318
|
r(t, n) && l.push(t);
|
|
2277
2319
|
}
|
|
2278
2320
|
return l;
|
|
2279
2321
|
}
|
|
2280
|
-
function
|
|
2281
|
-
e && !
|
|
2322
|
+
function xl(e, t, n, r) {
|
|
2323
|
+
e && !cl(e) && cr("GObj bad instanceof");
|
|
2282
2324
|
let l = {};
|
|
2283
|
-
if (
|
|
2325
|
+
if (ll(n) && !fl(n)) {
|
|
2284
2326
|
let o = n;
|
|
2285
|
-
Object.prototype.hasOwnProperty.call(t, o) ?
|
|
2286
|
-
} else if (
|
|
2327
|
+
Object.prototype.hasOwnProperty.call(t, o) ? Sl(l, o, t[o]) : r && cr(`${Rt(e)}: key not found: ${o}`);
|
|
2328
|
+
} else if (nl(n) && Xr(n) > 0) for (let o of Object.keys(n)) Object.prototype.hasOwnProperty.call(t, o) ? Sl(l, o, t[o]) : r && cr(`${Rt(e)}: key not found: ${o}`);
|
|
2287
2329
|
else {
|
|
2288
|
-
if (!(
|
|
2330
|
+
if (!(rl(n) && Zr(n) > 0)) return t;
|
|
2289
2331
|
for (let o = 0; o < n.length; o++) {
|
|
2290
2332
|
let i = n[o];
|
|
2291
|
-
Object.prototype.hasOwnProperty.call(t, i) ?
|
|
2333
|
+
Object.prototype.hasOwnProperty.call(t, i) ? Sl(l, i, t[i]) : r && cr(`${Rt(e)}: key not found: ${i}`);
|
|
2292
2334
|
}
|
|
2293
2335
|
}
|
|
2294
2336
|
return l;
|
|
2295
2337
|
}
|
|
2296
|
-
function
|
|
2338
|
+
function Kl(e, t, n, r) {
|
|
2297
2339
|
let l = {};
|
|
2298
|
-
if (!
|
|
2299
|
-
if (
|
|
2340
|
+
if (!nl(t)) return l;
|
|
2341
|
+
if (Mr(l, t), ll(n) && !fl(n)) {
|
|
2300
2342
|
let o = n;
|
|
2301
|
-
Object.prototype.hasOwnProperty.call(t, o) ?
|
|
2302
|
-
} else if (
|
|
2343
|
+
Object.prototype.hasOwnProperty.call(t, o) ? Yr(l, o) : r && cr(`${Rt(e)}: key not found: ${o}`);
|
|
2344
|
+
} else if (nl(n) && Xr(n) > 0) for (let o of Object.keys(n)) Object.prototype.hasOwnProperty.call(t, o) ? Yr(l, o) : r && cr(`${Rt(e)}: key not found: ${o}`);
|
|
2303
2345
|
else {
|
|
2304
|
-
if (!(
|
|
2346
|
+
if (!(rl(n) && Zr(n) > 0)) return {};
|
|
2305
2347
|
for (let o = 0; o < n.length; o++) {
|
|
2306
2348
|
let i = n[o];
|
|
2307
|
-
Object.prototype.hasOwnProperty.call(t, i) ?
|
|
2349
|
+
Object.prototype.hasOwnProperty.call(t, i) ? Yr(l, i) : r && cr(`${Rt(e)}: key not found: ${i}`);
|
|
2308
2350
|
}
|
|
2309
2351
|
}
|
|
2310
2352
|
return l;
|
|
2311
2353
|
}
|
|
2312
|
-
function
|
|
2354
|
+
function Yl(e, t, n = !1) {
|
|
2313
2355
|
if ("undefined" != typeof window && window.localStorage) try {
|
|
2314
2356
|
let r = window.localStorage.getItem(e);
|
|
2315
|
-
return null === r ? (n &&
|
|
2357
|
+
return null === r ? (n && Bl(e, t), t) : JSON.parse(r);
|
|
2316
2358
|
} catch (n) {
|
|
2317
2359
|
return window.console.warn(`Error reading localStorage key "${e}":`, n), t;
|
|
2318
2360
|
}
|
|
2319
2361
|
}
|
|
2320
|
-
function
|
|
2362
|
+
function Bl(e, t) {
|
|
2321
2363
|
if ("undefined" == typeof window || !window.localStorage) return 0;
|
|
2322
2364
|
if (!e || void 0 === t) return cr(`kw_set_local_storage_value(): invalid key or value: key=${e}`), -1;
|
|
2323
2365
|
try {
|
|
@@ -2326,7 +2368,7 @@ function Gl(e, t) {
|
|
|
2326
2368
|
return cr(`kw_set_local_storage_value(): cannot save "${e}" (storage full or blocked?): ${t && t.message ? t.message : t}`), -1;
|
|
2327
2369
|
}
|
|
2328
2370
|
}
|
|
2329
|
-
function
|
|
2371
|
+
function Jl(e) {
|
|
2330
2372
|
if ("undefined" != typeof window && window.localStorage) if (e) try {
|
|
2331
2373
|
window.localStorage.removeItem(e);
|
|
2332
2374
|
} catch (t) {
|
|
@@ -2334,95 +2376,95 @@ function Ml(e) {
|
|
|
2334
2376
|
}
|
|
2335
2377
|
else window.console.warn(`Invalid key for localStorage removal: ${e}`);
|
|
2336
2378
|
}
|
|
2337
|
-
function
|
|
2338
|
-
if (
|
|
2339
|
-
if (
|
|
2379
|
+
function ql(e, t) {
|
|
2380
|
+
if (sl(e) || sl(t)) return !0;
|
|
2381
|
+
if (rl(e)) {
|
|
2340
2382
|
if (0 === e.length) return !0;
|
|
2341
2383
|
for (let n = 0; n < e.length; n++) if (e[n] === t) return !0;
|
|
2342
|
-
} else if (
|
|
2384
|
+
} else if (nl(e)) {
|
|
2343
2385
|
if (0 === Object.keys(e).length) return !0;
|
|
2344
2386
|
for (let n in e) if (n === t) return !0;
|
|
2345
|
-
} else if (
|
|
2387
|
+
} else if (ll(e) && e === t) return !0;
|
|
2346
2388
|
return !1;
|
|
2347
2389
|
}
|
|
2348
|
-
function
|
|
2349
|
-
if (e && !
|
|
2350
|
-
l || (l =
|
|
2390
|
+
function Hl(e, t, n, r, l) {
|
|
2391
|
+
if (e && !cl(e) && cr("GObj bad instanceof"), !t) return null;
|
|
2392
|
+
l || (l = Vl);
|
|
2351
2393
|
let o = [];
|
|
2352
|
-
if (
|
|
2394
|
+
if (rl(t)) for (let i = 0; i < t.length; i++) {
|
|
2353
2395
|
let s, a = t[i];
|
|
2354
|
-
if (
|
|
2396
|
+
if (nl(a)) s = Al(e, a, "id", "", 0);
|
|
2355
2397
|
else {
|
|
2356
|
-
if (!
|
|
2398
|
+
if (!ll(a)) continue;
|
|
2357
2399
|
s = a;
|
|
2358
2400
|
}
|
|
2359
|
-
|
|
2401
|
+
ql(n, s) && l(a, r) && o.push(a);
|
|
2360
2402
|
}
|
|
2361
2403
|
else {
|
|
2362
|
-
if (!
|
|
2404
|
+
if (!nl(t)) return cr("kw_collect() BAD kw parameter"), null;
|
|
2363
2405
|
for (let e of Object.keys(t)) {
|
|
2364
2406
|
let i = t[e];
|
|
2365
|
-
|
|
2407
|
+
ql(n, e) && l(i, r) && o.push(i);
|
|
2366
2408
|
}
|
|
2367
2409
|
}
|
|
2368
2410
|
return o;
|
|
2369
2411
|
}
|
|
2370
|
-
function
|
|
2371
|
-
e && !
|
|
2412
|
+
function zl(e, t, n) {
|
|
2413
|
+
e && !cl(e) && cr("GObj bad instanceof");
|
|
2372
2414
|
let r = {};
|
|
2373
|
-
if (
|
|
2374
|
-
else if (
|
|
2375
|
-
let l = t[n], o =
|
|
2376
|
-
|
|
2415
|
+
if (fl(n) || (t = wl(e, t, n)), nl(t)) r = t;
|
|
2416
|
+
else if (rl(t)) for (let n = 0; n < t.length; n++) {
|
|
2417
|
+
let l = t[n], o = Al(e, l, "id", "", Vn.KW_REQUIRED);
|
|
2418
|
+
fl(o) || Sl(r, o, l);
|
|
2377
2419
|
}
|
|
2378
2420
|
else cr(`${Rt(e)} kwid_new_dict: data type unknown`);
|
|
2379
2421
|
return r;
|
|
2380
2422
|
}
|
|
2381
|
-
function
|
|
2382
|
-
if (e && !
|
|
2383
|
-
if (
|
|
2423
|
+
function Ql(e, t, n) {
|
|
2424
|
+
if (e && !cl(e) && cr("GObj bad instanceof"), fl(n) || (t = wl(e, t, n)), rl(t)) return t;
|
|
2425
|
+
if (nl(t)) {
|
|
2384
2426
|
let n = [];
|
|
2385
2427
|
for (let r of Object.keys(t)) {
|
|
2386
2428
|
let l = t[r];
|
|
2387
|
-
|
|
2429
|
+
nl(l) ? (l.id = r, n.push(l)) : cr(`${Rt(e)} kwid_new_list: not a record: '${r}'`);
|
|
2388
2430
|
}
|
|
2389
2431
|
return n;
|
|
2390
2432
|
}
|
|
2391
2433
|
return cr(`${Rt(e)} kwid_new_list: wrong type for list`), [];
|
|
2392
2434
|
}
|
|
2393
|
-
function
|
|
2394
|
-
e && !
|
|
2395
|
-
let o =
|
|
2435
|
+
function Xl(e, t, n, r, l) {
|
|
2436
|
+
e && !cl(e) && cr("GObj bad instanceof");
|
|
2437
|
+
let o = Hl(e, t, n, r, l);
|
|
2396
2438
|
return o && 0 !== o.length ? o[0] : null;
|
|
2397
2439
|
}
|
|
2398
|
-
function
|
|
2399
|
-
if (e && !
|
|
2440
|
+
function Zl(e, t) {
|
|
2441
|
+
if (e && !cl(e) && cr("GObj bad instanceof"), !t) return [];
|
|
2400
2442
|
let n = [];
|
|
2401
|
-
if (
|
|
2402
|
-
else if (
|
|
2403
|
-
else
|
|
2404
|
-
if (
|
|
2405
|
-
else if (
|
|
2406
|
-
let r =
|
|
2443
|
+
if (ll(t)) n.push(t);
|
|
2444
|
+
else if (nl(t)) for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && n.push(e);
|
|
2445
|
+
else rl(t) && t.forEach(function(t) {
|
|
2446
|
+
if (ll(t)) fl(t) || n.push(t);
|
|
2447
|
+
else if (nl(t)) {
|
|
2448
|
+
let r = Al(e, t, "id", 0, 0);
|
|
2407
2449
|
r && n.push(r);
|
|
2408
2450
|
}
|
|
2409
2451
|
});
|
|
2410
2452
|
return n;
|
|
2411
2453
|
}
|
|
2412
|
-
function
|
|
2454
|
+
function eo(e, t, n) {
|
|
2413
2455
|
t = t || "id", n = n || "value";
|
|
2414
2456
|
let r = [];
|
|
2415
|
-
if (
|
|
2457
|
+
if (rl(e)) for (let l = 0; l < e.length; l++) {
|
|
2416
2458
|
let o = e[l];
|
|
2417
|
-
if (
|
|
2459
|
+
if (ll(o)) r.push({
|
|
2418
2460
|
id: e[l],
|
|
2419
2461
|
value: e[l]
|
|
2420
2462
|
});
|
|
2421
|
-
else if (
|
|
2463
|
+
else if (nl(o)) {
|
|
2422
2464
|
let e = {};
|
|
2423
|
-
if (
|
|
2424
|
-
if (!
|
|
2425
|
-
if (!(
|
|
2465
|
+
if (vl(o, t)) {
|
|
2466
|
+
if (!vl(o, n)) {
|
|
2467
|
+
if (!(el(o) > 0)) {
|
|
2426
2468
|
cr("list2options(): object without field value: " + n);
|
|
2427
2469
|
continue;
|
|
2428
2470
|
}
|
|
@@ -2430,7 +2472,7 @@ function ql(e, t, n) {
|
|
|
2430
2472
|
}
|
|
2431
2473
|
e.id = o[t], e.value = o[n];
|
|
2432
2474
|
} else {
|
|
2433
|
-
if (!(
|
|
2475
|
+
if (!(el(o) > 0)) {
|
|
2434
2476
|
cr("list2options(): object without field id: " + t);
|
|
2435
2477
|
continue;
|
|
2436
2478
|
}
|
|
@@ -2439,19 +2481,19 @@ function ql(e, t, n) {
|
|
|
2439
2481
|
r.push(e);
|
|
2440
2482
|
} else cr("list2options(): case1 not implemented");
|
|
2441
2483
|
}
|
|
2442
|
-
else if (
|
|
2484
|
+
else if (nl(e)) for (let t of Object.keys(e)) r.push({
|
|
2443
2485
|
id: t,
|
|
2444
2486
|
value: t
|
|
2445
2487
|
});
|
|
2446
2488
|
else cr("list2options(): case2 not implemented");
|
|
2447
2489
|
return r;
|
|
2448
2490
|
}
|
|
2449
|
-
function
|
|
2491
|
+
function to(e, t) {
|
|
2450
2492
|
if (!e) return -1;
|
|
2451
2493
|
for (let n = 0; n < e.length; n++) if (e[n] && e[n].id === t) return n;
|
|
2452
2494
|
return -1;
|
|
2453
2495
|
}
|
|
2454
|
-
function
|
|
2496
|
+
function no(e, t, n) {
|
|
2455
2497
|
if (!e || !t) return cr("ERROR: str_in_list() list or str empty"), !1;
|
|
2456
2498
|
let r = e.length;
|
|
2457
2499
|
if (n) {
|
|
@@ -2463,17 +2505,17 @@ function zl(e, t, n) {
|
|
|
2463
2505
|
} else for (let n = 0; n < r; n++) if (e[n] === t) return !0;
|
|
2464
2506
|
return !1;
|
|
2465
2507
|
}
|
|
2466
|
-
function
|
|
2508
|
+
function ro(e, t, n) {
|
|
2467
2509
|
if (!e) return cr("ERROR: strs_in_list() list empty"), !1;
|
|
2468
2510
|
if (!t) return cr("ERROR: strs_in_list() str empty"), !1;
|
|
2469
|
-
for (let r = 0; r < t.length; r++) if (
|
|
2511
|
+
for (let r = 0; r < t.length; r++) if (no(e, t[r], n)) return !0;
|
|
2470
2512
|
return !1;
|
|
2471
2513
|
}
|
|
2472
|
-
function
|
|
2514
|
+
function lo(e, t) {
|
|
2473
2515
|
for (let n = 0; n < e.length; n++) if (t === e[n]) return e.splice(n, 1), !0;
|
|
2474
2516
|
return !1;
|
|
2475
2517
|
}
|
|
2476
|
-
function
|
|
2518
|
+
function oo(e, t) {
|
|
2477
2519
|
try {
|
|
2478
2520
|
let n = e.__md_iev__;
|
|
2479
2521
|
if (n) return n[t];
|
|
@@ -2481,34 +2523,34 @@ function Zl(e, t) {
|
|
|
2481
2523
|
return;
|
|
2482
2524
|
}
|
|
2483
2525
|
}
|
|
2484
|
-
function
|
|
2526
|
+
function io(e, t, n) {
|
|
2485
2527
|
let r = e.__md_iev__;
|
|
2486
2528
|
r || (r = {}, e.__md_iev__ = r), r[t] = n;
|
|
2487
2529
|
}
|
|
2488
|
-
function
|
|
2489
|
-
if (!
|
|
2530
|
+
function so(e, t, n, r) {
|
|
2531
|
+
if (!cl(e)) return cr("gobj is not a GObj"), null;
|
|
2490
2532
|
if (!t) return;
|
|
2491
|
-
let l =
|
|
2492
|
-
l || (l = [],
|
|
2533
|
+
let l = oo(t, n);
|
|
2534
|
+
l || (l = [], io(t, n, l));
|
|
2493
2535
|
try {
|
|
2494
|
-
|
|
2536
|
+
rl(l) && l.unshift(r);
|
|
2495
2537
|
} catch (e) {
|
|
2496
2538
|
cr(e);
|
|
2497
2539
|
}
|
|
2498
2540
|
}
|
|
2499
|
-
function
|
|
2500
|
-
if (!
|
|
2501
|
-
if (!
|
|
2502
|
-
let l =
|
|
2541
|
+
function ao(e, t, n, r) {
|
|
2542
|
+
if (!cl(e)) return cr("gobj is not a GObj"), null;
|
|
2543
|
+
if (!nl(t)) return cr("kw is not a dict"), null;
|
|
2544
|
+
let l = oo(t, n);
|
|
2503
2545
|
return l ? 0 === l.length ? (r && cr(`stack empty: ${n}`), null) : l[0] : (r && cr(`stack NOT FOUND: ${n}`), null);
|
|
2504
2546
|
}
|
|
2505
|
-
function
|
|
2506
|
-
return
|
|
2547
|
+
function uo(e, t, n) {
|
|
2548
|
+
return fl(n) ? jl(e, t, "__md_iev__`__msg_type__") : Ul(e, t, "__md_iev__", "__msg_type__", n), 0;
|
|
2507
2549
|
}
|
|
2508
|
-
function
|
|
2509
|
-
return
|
|
2550
|
+
function _o(e, t) {
|
|
2551
|
+
return Al(e, t, "__md_iev__`__msg_type__", "", 0);
|
|
2510
2552
|
}
|
|
2511
|
-
function
|
|
2553
|
+
function co(e, t, n) {
|
|
2512
2554
|
let r = new XMLHttpRequest();
|
|
2513
2555
|
r.open("GET", e, !0), r.setRequestHeader("Accept", "application/json"), r.onreadystatechange = function() {
|
|
2514
2556
|
if (4 === r.readyState) if (200 === r.status || 0 === (e = r).status && e.responseText && e.responseURL.startsWith("file:")) try {
|
|
@@ -2520,14 +2562,14 @@ function oo(e, t, n) {
|
|
|
2520
2562
|
var e;
|
|
2521
2563
|
}, r.send();
|
|
2522
2564
|
}
|
|
2523
|
-
function
|
|
2565
|
+
function fo(e, t, n) {
|
|
2524
2566
|
let r = new XMLHttpRequest();
|
|
2525
2567
|
r.open("POST", e), r.setRequestHeader("Accept", "application/json"), r.setRequestHeader("Content-Type", "application/json"), r.onreadystatechange = function() {
|
|
2526
2568
|
4 === r.readyState && n(r.status, r.responseText);
|
|
2527
2569
|
}, r.send(t);
|
|
2528
2570
|
}
|
|
2529
|
-
function
|
|
2530
|
-
void 0 !== n &&
|
|
2571
|
+
function go(e, t, n) {
|
|
2572
|
+
void 0 !== n && ll(n) || (n = "");
|
|
2531
2573
|
for (let r of Object.keys(e)) {
|
|
2532
2574
|
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
2533
2575
|
let l = (n.length ? "`" : "") + r;
|
|
@@ -2536,62 +2578,62 @@ function so(e, t, n) {
|
|
|
2536
2578
|
r,
|
|
2537
2579
|
e[r],
|
|
2538
2580
|
n
|
|
2539
|
-
]),
|
|
2581
|
+
]), nl(e[r]) && go(e[r], t, n), n = n.slice(0, -l.length);
|
|
2540
2582
|
}
|
|
2541
2583
|
}
|
|
2542
|
-
function
|
|
2543
|
-
n && (e =
|
|
2544
|
-
let r =
|
|
2545
|
-
|
|
2546
|
-
let l =
|
|
2547
|
-
return
|
|
2548
|
-
"__" === t.substring(0, 2) ||
|
|
2584
|
+
function bo(e, t, n) {
|
|
2585
|
+
n && (e = Fr(e));
|
|
2586
|
+
let r = Cl(null, e, "type", [], Vn.KW_CREATE);
|
|
2587
|
+
Al(null, e, "hook", "data", Vn.KW_CREATE);
|
|
2588
|
+
let l = Cl(null, e, "schema", {}, Vn.KW_CREATE), o = Cl(null, e, "topics", {}, Vn.KW_CREATE);
|
|
2589
|
+
return go(l, function(e, t, n, l) {
|
|
2590
|
+
"__" === t.substring(0, 2) || nl(n) || Cl(null, o, l, Fr(r), Vn.KW_CREATE);
|
|
2549
2591
|
}, t), e;
|
|
2550
2592
|
}
|
|
2551
|
-
function
|
|
2552
|
-
let l =
|
|
2593
|
+
function po(e, t, n, r) {
|
|
2594
|
+
let l = Cl(null, Cl(null, e, "topics", null, 0), t, null, 0);
|
|
2553
2595
|
if (!l) return cr("jdb_update: topic not found: " + t), null;
|
|
2554
|
-
if (!
|
|
2555
|
-
if (!
|
|
2596
|
+
if (!nl(r) || fl(r.id)) return cr(`jdb_update: record without id: ${lr(r)}`), null;
|
|
2597
|
+
if (!ll(n)) return cr(`jdb_update: path must be a string: ${String(n)}`), null;
|
|
2556
2598
|
if ("" !== n && n.split("`").includes("")) return cr(`jdb_update: empty segment in path: '${n}'`), null;
|
|
2557
2599
|
let o, i, s = n.split("`"), a = l;
|
|
2558
|
-
for (; (o = s.shift()) && !
|
|
2600
|
+
for (; (o = s.shift()) && !fl(o) && a;) nl(a) && (a = Cl(null, a, e.hook, null, 0)), a = To(a, null, o, !1);
|
|
2559
2601
|
if (!a || 0 !== s.length) return cr(`jdb_update: path not found in topic '${t}': '${n}'`), null;
|
|
2560
|
-
if (
|
|
2602
|
+
if (rl(a)) i = a;
|
|
2561
2603
|
else {
|
|
2562
|
-
if (a.id === r.id) return
|
|
2563
|
-
if (i =
|
|
2564
|
-
else if (!
|
|
2604
|
+
if (a.id === r.id) return Mr(a, r), l;
|
|
2605
|
+
if (i = Cl(null, a, e.hook, null, 0), null == i) i = [], Br(a, e.hook, i);
|
|
2606
|
+
else if (!rl(i)) return cr(`jdb_update: the hook '${e.hook}' of '${n}' is not a list in topic '${t}'`), null;
|
|
2565
2607
|
}
|
|
2566
|
-
let u =
|
|
2567
|
-
return u ?
|
|
2608
|
+
let u = To(i, e.hook, r.id, !1);
|
|
2609
|
+
return u ? Mr(u, r) : i.push(r), l;
|
|
2568
2610
|
}
|
|
2569
|
-
function
|
|
2570
|
-
let l =
|
|
2611
|
+
function mo(e, t, n, r) {
|
|
2612
|
+
let l = Cl(null, Cl(null, e, "topics", null, 0), t, null, 0);
|
|
2571
2613
|
if (!l) return cr("jdb_delete: topic not found: " + t), null;
|
|
2572
|
-
if (!
|
|
2573
|
-
if (!
|
|
2614
|
+
if (!nl(r) || fl(r.id)) return cr(`jdb_delete: record without id: ${lr(r)}`), null;
|
|
2615
|
+
if (!ll(n)) return cr(`jdb_delete: path must be a string: ${String(n)}`), null;
|
|
2574
2616
|
if ("" !== n && n.split("`").includes("")) return cr(`jdb_delete: empty segment in path: '${n}'`), null;
|
|
2575
2617
|
let o, i = n.split("`"), s = l;
|
|
2576
|
-
for (; (o = i.shift()) && !
|
|
2618
|
+
for (; (o = i.shift()) && !fl(o) && s;) nl(s) && (s = Cl(null, s, e.hook, null, 0)), s = To(s, null, o, !1);
|
|
2577
2619
|
if (!s || 0 !== i.length) return cr(`jdb_delete: path not found in topic '${t}': '${n}'`), null;
|
|
2578
|
-
let a =
|
|
2620
|
+
let a = rl(s) ? s : Cl(null, s, e.hook, null, 0), u = to(a, r.id);
|
|
2579
2621
|
return u < 0 ? (cr(`jdb_delete: record not found in topic '${t}': '${n}' '${r.id}'`), null) : (a.splice(u, 1), l);
|
|
2580
2622
|
}
|
|
2581
|
-
function
|
|
2582
|
-
let n =
|
|
2623
|
+
function ho(e, t) {
|
|
2624
|
+
let n = Cl(null, e, "topics", null, 0);
|
|
2583
2625
|
if (!n) return cr("jdb topics section not found"), br(e), null;
|
|
2584
|
-
return
|
|
2626
|
+
return Cl(null, n, t, null, 0) || (cr("jdb topic not found: " + t), br(n), null);
|
|
2585
2627
|
}
|
|
2586
|
-
function
|
|
2587
|
-
let l =
|
|
2588
|
-
return l ? (void 0 === r && (r = !0),
|
|
2628
|
+
function Eo(e, t, n, r) {
|
|
2629
|
+
let l = Cl(null, Cl(null, e, "topics", null, 0), t, null, 0);
|
|
2630
|
+
return l ? (void 0 === r && (r = !0), To(l, e.hook, n, r)) : (cr("jdb_get: topic not found: " + t), null);
|
|
2589
2631
|
}
|
|
2590
|
-
function
|
|
2591
|
-
let r =
|
|
2632
|
+
function yo(e, t, n) {
|
|
2633
|
+
let r = Cl(null, Cl(null, e, "topics", null, 0), t, null, 0);
|
|
2592
2634
|
return r ? n < r.length ? r[n] : {} : (cr("jdb_get_by_idx: topic not found: " + t), null);
|
|
2593
2635
|
}
|
|
2594
|
-
function
|
|
2636
|
+
function To(e, t, n, r) {
|
|
2595
2637
|
if (!e) return null;
|
|
2596
2638
|
let l, o = e.length;
|
|
2597
2639
|
for (l = 0; l < o; l++) {
|
|
@@ -2599,19 +2641,19 @@ function bo(e, t, n, r) {
|
|
|
2599
2641
|
if (o) {
|
|
2600
2642
|
let e = o.id;
|
|
2601
2643
|
if (e && e === n) return o;
|
|
2602
|
-
if (r &&
|
|
2603
|
-
let e =
|
|
2644
|
+
if (r && vl(o, t)) {
|
|
2645
|
+
let e = To(o[t], t, n, r);
|
|
2604
2646
|
if (e) return e;
|
|
2605
2647
|
}
|
|
2606
2648
|
}
|
|
2607
2649
|
}
|
|
2608
2650
|
return null;
|
|
2609
2651
|
}
|
|
2610
|
-
function
|
|
2611
|
-
let n =
|
|
2612
|
-
return
|
|
2652
|
+
function vo(e, t) {
|
|
2653
|
+
let n = Fr(e);
|
|
2654
|
+
return Wr(n, t), n;
|
|
2613
2655
|
}
|
|
2614
|
-
function
|
|
2656
|
+
function Oo(e) {
|
|
2615
2657
|
function t(e) {
|
|
2616
2658
|
let t = e.replace(/-/g, "+").replace(/_/g, "/");
|
|
2617
2659
|
switch (t.length % 4) {
|
|
@@ -2642,9 +2684,9 @@ function mo(e) {
|
|
|
2642
2684
|
signature: t(n[2])
|
|
2643
2685
|
};
|
|
2644
2686
|
}
|
|
2645
|
-
function
|
|
2687
|
+
function So(e, t) {
|
|
2646
2688
|
try {
|
|
2647
|
-
let n =
|
|
2689
|
+
let n = Oo(e);
|
|
2648
2690
|
switch (t) {
|
|
2649
2691
|
case "header": return JSON.parse(n.header);
|
|
2650
2692
|
case "signature": return JSON.parse(n.signature);
|
|
@@ -2654,15 +2696,15 @@ function ho(e, t) {
|
|
|
2654
2696
|
return null;
|
|
2655
2697
|
}
|
|
2656
2698
|
}
|
|
2657
|
-
function
|
|
2699
|
+
function No(e) {
|
|
2658
2700
|
return null == e ? "" : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
2659
2701
|
}
|
|
2660
|
-
function
|
|
2702
|
+
function wo(e) {
|
|
2661
2703
|
if (!e) return "";
|
|
2662
2704
|
const t = String(e).trim();
|
|
2663
|
-
return /^javascript:/i.test(t) || /^data:/i.test(t) ? "" :
|
|
2705
|
+
return /^javascript:/i.test(t) || /^data:/i.test(t) ? "" : No(t);
|
|
2664
2706
|
}
|
|
2665
|
-
var
|
|
2707
|
+
var jo = class {
|
|
2666
2708
|
constructor(e) {
|
|
2667
2709
|
this.html = e, Object.freeze(this);
|
|
2668
2710
|
}
|
|
@@ -2670,28 +2712,28 @@ var To = class {
|
|
|
2670
2712
|
return this.html;
|
|
2671
2713
|
}
|
|
2672
2714
|
};
|
|
2673
|
-
function
|
|
2674
|
-
return "string" != typeof e ? (cr("html_markup: not a string, type " + typeof e), new
|
|
2715
|
+
function $o(e) {
|
|
2716
|
+
return "string" != typeof e ? (cr("html_markup: not a string, type " + typeof e), new jo("")) : new jo(e);
|
|
2675
2717
|
}
|
|
2676
|
-
function
|
|
2677
|
-
return e instanceof
|
|
2718
|
+
function Ro(e) {
|
|
2719
|
+
return e instanceof jo;
|
|
2678
2720
|
}
|
|
2679
|
-
function
|
|
2721
|
+
function Do(e) {
|
|
2680
2722
|
const t = document.createElement("template");
|
|
2681
2723
|
return t.innerHTML = e.html.trim(), t.content;
|
|
2682
2724
|
}
|
|
2683
|
-
var
|
|
2684
|
-
function
|
|
2685
|
-
|
|
2725
|
+
var Ao = !1, ko = /* @__PURE__ */ new Set();
|
|
2726
|
+
function Io(e) {
|
|
2727
|
+
Ao = !!e;
|
|
2686
2728
|
}
|
|
2687
|
-
function
|
|
2688
|
-
return
|
|
2729
|
+
function Co() {
|
|
2730
|
+
return Ao;
|
|
2689
2731
|
}
|
|
2690
|
-
function
|
|
2732
|
+
function Lo(e) {
|
|
2691
2733
|
const t = document.createElement("template");
|
|
2692
2734
|
return t.innerHTML = e.trim(), t.content.firstChild;
|
|
2693
2735
|
}
|
|
2694
|
-
function
|
|
2736
|
+
function Po(e, t) {
|
|
2695
2737
|
let [n, r, l, o] = e;
|
|
2696
2738
|
if (!n) return void cr("Tag must be a valid HTML element.");
|
|
2697
2739
|
let i = document.createElement(n), s = "";
|
|
@@ -2700,22 +2742,22 @@ function Do(e, t) {
|
|
|
2700
2742
|
for (const n of Object.keys(r[e])) t += `${n}: ${r[e][n]};`;
|
|
2701
2743
|
i.style.cssText = t;
|
|
2702
2744
|
} else "style" === e ? i.style.cssText = r[e] : "i18n" === e || "data-i18n" === e || "data_i18next" === e || "data-i18next" === e ? null !== r[e] && void 0 !== r[e] && (s = r[e], i.setAttribute("data-i18n", s)) : i.setAttribute(e, r[e]);
|
|
2703
|
-
if (
|
|
2704
|
-
else if (
|
|
2745
|
+
if (Ro(l)) i.appendChild(Do(l));
|
|
2746
|
+
else if (ll(l)) if (l = l.trim(), l.length > 0 && "<" === l[0] && !Ao) i.appendChild(Lo(l));
|
|
2705
2747
|
else if (l.length > 0 && "<" === l[0] && function(e) {
|
|
2706
|
-
if (
|
|
2748
|
+
if (ko.size >= 100) return;
|
|
2707
2749
|
const t = e.slice(0, 80);
|
|
2708
|
-
|
|
2750
|
+
ko.has(t) || (ko.add(t), fr(`createElement2: a string that starts with '<' is TEXT (set_strings_are_text): use html_markup() if it is markup: ${JSON.stringify(t)}`));
|
|
2709
2751
|
}(l), t && s) i.textContent = t(s) || l;
|
|
2710
2752
|
else i.textContent = l;
|
|
2711
|
-
else if (
|
|
2712
|
-
if (l.length > 0) if (
|
|
2713
|
-
else for (let e of l) Array.isArray(e) ? e.length > 0 && i.appendChild(
|
|
2753
|
+
else if (rl(l)) {
|
|
2754
|
+
if (l.length > 0) if (ll(l[0])) i.appendChild(Po(l, t));
|
|
2755
|
+
else for (let e of l) Array.isArray(e) ? e.length > 0 && i.appendChild(Po(e, t)) : e instanceof Node ? i.appendChild(e) : Ro(e) ? i.appendChild(Do(e)) : ll(e) ? i.appendChild(document.createTextNode(e)) : null != e && !1 !== e && cr("createElement2: child ignored, type " + typeof e);
|
|
2714
2756
|
} else l instanceof HTMLElement || l instanceof Text || l instanceof SVGElement ? i.appendChild(l) : null != l && (cr("content ignored"), pr(l));
|
|
2715
2757
|
if (o && "object" == typeof o) for (const e of Object.keys(o)) i.addEventListener(e, o[e]);
|
|
2716
2758
|
return i;
|
|
2717
2759
|
}
|
|
2718
|
-
function
|
|
2760
|
+
function Uo(e) {
|
|
2719
2761
|
if (!e) return {
|
|
2720
2762
|
top: 0,
|
|
2721
2763
|
left: 0,
|
|
@@ -2735,11 +2777,11 @@ function Ao(e) {
|
|
|
2735
2777
|
bottom: t + i + l
|
|
2736
2778
|
};
|
|
2737
2779
|
}
|
|
2738
|
-
function
|
|
2780
|
+
function Fo(e) {
|
|
2739
2781
|
return new DOMParser().parseFromString(e, "image/svg+xml").firstChild;
|
|
2740
2782
|
}
|
|
2741
|
-
function
|
|
2742
|
-
if (!
|
|
2783
|
+
function Vo(e, t) {
|
|
2784
|
+
if (!_l(t)) return void cr("You must supply a translation function");
|
|
2743
2785
|
e || (e = document);
|
|
2744
2786
|
const n = (t) => {
|
|
2745
2787
|
let n = [];
|
|
@@ -2762,7 +2804,7 @@ function Io(e, t) {
|
|
|
2762
2804
|
n && e.setAttribute("placeholder", t(n));
|
|
2763
2805
|
});
|
|
2764
2806
|
}
|
|
2765
|
-
function
|
|
2807
|
+
function Go(e = "Time Tracker", t = !1) {
|
|
2766
2808
|
const n = e, r = performance.now();
|
|
2767
2809
|
let l = r;
|
|
2768
2810
|
return t && fr(`--\x3e ${n} - starting`), { mark: (e = "Intermediate", o = "") => {
|
|
@@ -2773,30 +2815,30 @@ function Co(e = "Time Tracker", t = !1) {
|
|
|
2773
2815
|
};
|
|
2774
2816
|
} };
|
|
2775
2817
|
}
|
|
2776
|
-
function
|
|
2818
|
+
function Mo(e) {
|
|
2777
2819
|
const t = (e, t) => String(e).padStart(t, "0"), n = `${(e = e || /* @__PURE__ */ new Date()).getFullYear()}-${t(e.getMonth() + 1, 2)}-${t(e.getDate(), 2)}T${t(e.getHours(), 2)}:${t(e.getMinutes(), 2)}:${t(e.getSeconds(), 2)}`, r = t(e.getMilliseconds(), 3), l = e.getTimezoneOffset();
|
|
2778
2820
|
return `${n}.${r}${l > 0 ? "-" : "+"}${t(Math.floor(Math.abs(l) / 60), 2)}${t(Math.abs(l) % 60, 2)}`;
|
|
2779
2821
|
}
|
|
2780
|
-
function
|
|
2822
|
+
function Wo() {
|
|
2781
2823
|
return Math.floor(Date.now() / 1e3);
|
|
2782
2824
|
}
|
|
2783
|
-
function
|
|
2825
|
+
function xo(e, t) {
|
|
2784
2826
|
if (!e) throw "ERROR: index_in_list() list empty";
|
|
2785
2827
|
for (let n = 0; n < e.length; n++) if (t === e[n]) return n;
|
|
2786
2828
|
return -1;
|
|
2787
2829
|
}
|
|
2788
|
-
function
|
|
2830
|
+
function Ko() {
|
|
2789
2831
|
let e = "";
|
|
2790
2832
|
return "undefined" != typeof window && window.localStorage ? (e = window.localStorage.getItem("host_uuid"), !e && window.crypto?.randomUUID && (e = window.crypto.randomUUID(), window.localStorage.setItem("host_uuid", e))) : e = "undefined" != typeof globalThis && globalThis.crypto?.randomUUID ? globalThis.crypto.randomUUID() : "00000000-0000-0000-0000-000000000000", e;
|
|
2791
2833
|
}
|
|
2792
|
-
function
|
|
2834
|
+
function Yo(e) {
|
|
2793
2835
|
return e.replace(/[?# ^:]/g, "_");
|
|
2794
2836
|
}
|
|
2795
|
-
function
|
|
2837
|
+
function Bo(e) {
|
|
2796
2838
|
let t = null;
|
|
2797
2839
|
return "function" != typeof e && "object" != typeof e || (t = ("" + e).match(/function\s*([\w\$]*)\s*\(/)), null !== t ? t[1] + "()" : "";
|
|
2798
2840
|
}
|
|
2799
|
-
function
|
|
2841
|
+
function Jo(e, t = 0, n = !1) {
|
|
2800
2842
|
let r = null, l = null, o = null;
|
|
2801
2843
|
const i = (...i) => {
|
|
2802
2844
|
o = this, l = i;
|
|
@@ -2811,20 +2853,20 @@ function Mo(e, t = 0, n = !1) {
|
|
|
2811
2853
|
clearTimeout(r), r = null, l = null, o = null;
|
|
2812
2854
|
}, i;
|
|
2813
2855
|
}
|
|
2814
|
-
function
|
|
2856
|
+
function qo(...e) {
|
|
2815
2857
|
let t = "", n = 0;
|
|
2816
2858
|
for (let r of e) null != r && "" !== r && (r = String(r), r = 0 === n ? r.replace(/\/+$/, "") : r.replace(/^\/+/, "").replace(/\/+$/, ""), "" !== r && (n > 0 && (t += "/"), t += r, n++));
|
|
2817
2859
|
return t;
|
|
2818
2860
|
}
|
|
2819
|
-
var
|
|
2820
|
-
function
|
|
2861
|
+
var Ho = 256, zo = 1e5;
|
|
2862
|
+
function Qo(e) {
|
|
2821
2863
|
const t = String(e).replace(/`/g, "``");
|
|
2822
2864
|
return "[" === t[0] ? "[" + t : t;
|
|
2823
2865
|
}
|
|
2824
|
-
function
|
|
2825
|
-
return Array.isArray(e) && 0 !== e.length ? e.map((e) => "number" == typeof e ? `[${e}]` :
|
|
2866
|
+
function Xo(e) {
|
|
2867
|
+
return Array.isArray(e) && 0 !== e.length ? e.map((e) => "number" == typeof e ? `[${e}]` : Qo(e)).join("`") : "";
|
|
2826
2868
|
}
|
|
2827
|
-
function
|
|
2869
|
+
function Zo(e) {
|
|
2828
2870
|
if ("string" != typeof e) return null;
|
|
2829
2871
|
let t = [], n = "";
|
|
2830
2872
|
for (let r = 0; r < e.length; r++) if ("`" !== e[r]) n += e[r];
|
|
@@ -2845,9 +2887,9 @@ function Jo(e) {
|
|
|
2845
2887
|
return null !== t ? t : "[" === e[0] && "[" === e[1] ? e.slice(1) : e;
|
|
2846
2888
|
});
|
|
2847
2889
|
}
|
|
2848
|
-
function
|
|
2890
|
+
function ei(e) {
|
|
2849
2891
|
const t = {}, n = (e, r, l) => {
|
|
2850
|
-
if (l >
|
|
2892
|
+
if (l > Ho) throw new Error("json2flat: deeper than 256");
|
|
2851
2893
|
if (null === e || "object" != typeof e || Array.isArray(e)) {
|
|
2852
2894
|
if (Array.isArray(e) && e.length > 0) return void e.forEach((e, t) => {
|
|
2853
2895
|
const o = `[${t}]`;
|
|
@@ -2857,30 +2899,30 @@ function qo(e) {
|
|
|
2857
2899
|
const t = Object.keys(e);
|
|
2858
2900
|
if (t.length > 0) {
|
|
2859
2901
|
for (const o of t) {
|
|
2860
|
-
const t =
|
|
2902
|
+
const t = Qo(o);
|
|
2861
2903
|
n(e[o], 0 === l ? t : r + "`" + t, l + 1);
|
|
2862
2904
|
}
|
|
2863
2905
|
return;
|
|
2864
2906
|
}
|
|
2865
2907
|
}
|
|
2866
|
-
0 !== l &&
|
|
2908
|
+
0 !== l && Sl(t, r, e);
|
|
2867
2909
|
};
|
|
2868
2910
|
return null == e || n(e, "", 0), t;
|
|
2869
2911
|
}
|
|
2870
|
-
function
|
|
2912
|
+
function ti(e) {
|
|
2871
2913
|
if (null === e || "object" != typeof e || Array.isArray(e)) throw new Error("flat2json: a flat json is an object of id -> value");
|
|
2872
2914
|
let t = null;
|
|
2873
2915
|
for (const n of Object.keys(e)) {
|
|
2874
|
-
const r =
|
|
2916
|
+
const r = Zo(n);
|
|
2875
2917
|
if (!r || 0 === r.length) throw new Error(`flat2json: malformed flat id: '${n}'`);
|
|
2876
|
-
if (r.length >
|
|
2918
|
+
if (r.length > Ho) throw new Error(`flat2json: '${n}' deeper than 256`);
|
|
2877
2919
|
const l = "number" == typeof r[0];
|
|
2878
2920
|
if (null === t) t = l ? [] : {};
|
|
2879
2921
|
else if (l !== Array.isArray(t)) throw new Error(`flat2json: '${n}' does not fit a ${Array.isArray(t) ? "array" : "object"} root`);
|
|
2880
2922
|
let o = t;
|
|
2881
2923
|
for (let t = 0; t < r.length; t++) {
|
|
2882
2924
|
const l = r[t], i = "number" == typeof l, s = t === r.length - 1, a = !s && "number" == typeof r[t + 1];
|
|
2883
|
-
if (i && l >
|
|
2925
|
+
if (i && l > zo) throw new Error(`flat2json: array index ${l} over the limit (100000) in '${n}'`);
|
|
2884
2926
|
if (i !== Array.isArray(o)) throw new Error(`flat2json: '${n}' uses a ${i ? "array index" : "key"} where the tree already has a ${Array.isArray(o) ? "array" : "object"}`);
|
|
2885
2927
|
if (s) {
|
|
2886
2928
|
if (Array.isArray(o)) {
|
|
@@ -2888,7 +2930,7 @@ function Ho(e) {
|
|
|
2888
2930
|
o[l] = e[n];
|
|
2889
2931
|
} else {
|
|
2890
2932
|
if (Object.prototype.hasOwnProperty.call(o, l)) throw new Error(`flat2json: '${n}' is written twice, or once as a value and once as a container`);
|
|
2891
|
-
|
|
2933
|
+
Sl(o, l, e[n]);
|
|
2892
2934
|
}
|
|
2893
2935
|
break;
|
|
2894
2936
|
}
|
|
@@ -2896,7 +2938,7 @@ function Ho(e) {
|
|
|
2896
2938
|
if (Array.isArray(o)) {
|
|
2897
2939
|
for (; o.length <= l;) o.push(null);
|
|
2898
2940
|
u = o[l], null == u && (u = a ? [] : {}, o[l] = u);
|
|
2899
|
-
} else u =
|
|
2941
|
+
} else u = Ol(o, l) ? void 0 : o[l], void 0 === u && (u = a ? [] : {}, Sl(o, l, u));
|
|
2900
2942
|
if (null === u || "object" != typeof u) throw new Error(`flat2json: '${n}' walks through a value: the same id is a leaf and a container at once`);
|
|
2901
2943
|
if (a !== Array.isArray(u)) throw new Error(`flat2json: '${n}' needs a ${a ? "array" : "object"} where the tree already has a ${Array.isArray(u) ? "array" : "object"}`);
|
|
2902
2944
|
o = u;
|
|
@@ -2904,68 +2946,68 @@ function Ho(e) {
|
|
|
2904
2946
|
}
|
|
2905
2947
|
return null === t ? {} : t;
|
|
2906
2948
|
}
|
|
2907
|
-
function
|
|
2949
|
+
function ni(e, t) {
|
|
2908
2950
|
return e === t || null !== e && null !== t && "object" == typeof e && "object" == typeof t && JSON.stringify(e) === JSON.stringify(t);
|
|
2909
2951
|
}
|
|
2910
|
-
function
|
|
2952
|
+
function ri(e, t) {
|
|
2911
2953
|
const n = e && "object" == typeof e ? e : {}, r = t && "object" == typeof t ? t : {}, l = {
|
|
2912
2954
|
added: {},
|
|
2913
2955
|
removed: {},
|
|
2914
2956
|
changed: {}
|
|
2915
2957
|
};
|
|
2916
|
-
for (const e of Object.keys(n)) Object.prototype.hasOwnProperty.call(r, e) ?
|
|
2958
|
+
for (const e of Object.keys(n)) Object.prototype.hasOwnProperty.call(r, e) ? ni(n[e], r[e]) || Sl(l.changed, e, {
|
|
2917
2959
|
from: n[e],
|
|
2918
2960
|
to: r[e]
|
|
2919
|
-
}) :
|
|
2920
|
-
for (const e of Object.keys(r)) Object.prototype.hasOwnProperty.call(n, e) ||
|
|
2961
|
+
}) : Sl(l.removed, e, n[e]);
|
|
2962
|
+
for (const e of Object.keys(r)) Object.prototype.hasOwnProperty.call(n, e) || Sl(l.added, e, r[e]);
|
|
2921
2963
|
return l;
|
|
2922
2964
|
}
|
|
2923
|
-
function
|
|
2965
|
+
function li(e, t) {
|
|
2924
2966
|
if (null === e || "object" != typeof e || Array.isArray(e)) throw new Error("flat_apply: a flat json is an object of id -> value");
|
|
2925
2967
|
if (null === t || "object" != typeof t) throw new Error("flat_apply: a diff is the object flat_diff() answers");
|
|
2926
2968
|
for (const n of Object.keys(t.removed || {})) delete e[n];
|
|
2927
|
-
for (const n of Object.keys(t.added || {}))
|
|
2969
|
+
for (const n of Object.keys(t.added || {})) Sl(e, n, t.added[n]);
|
|
2928
2970
|
for (const n of Object.keys(t.changed || {})) {
|
|
2929
2971
|
const r = t.changed[n];
|
|
2930
2972
|
if (!r || !Object.prototype.hasOwnProperty.call(r, "to")) throw new Error(`flat_apply: changed '${n}' without a 'to'`);
|
|
2931
|
-
|
|
2973
|
+
Sl(e, n, r.to);
|
|
2932
2974
|
}
|
|
2933
2975
|
return e;
|
|
2934
2976
|
}
|
|
2935
|
-
function
|
|
2977
|
+
function oi(e) {
|
|
2936
2978
|
return "persistent-attrs-" + Rt(e);
|
|
2937
2979
|
}
|
|
2938
|
-
function
|
|
2939
|
-
let n = Xt(e, v.SDF_PERSIST), r =
|
|
2940
|
-
if (r &&
|
|
2941
|
-
let l =
|
|
2942
|
-
l =
|
|
2980
|
+
function ii(e, t) {
|
|
2981
|
+
let n = Xt(e, v.SDF_PERSIST), r = Yl(oi(e), null, !1);
|
|
2982
|
+
if (r && nl(r)) {
|
|
2983
|
+
let l = xl(e, r, t, !1);
|
|
2984
|
+
l = xl(e, l, n, !1), on(e, l, v.SDF_PERSIST);
|
|
2943
2985
|
}
|
|
2944
2986
|
}
|
|
2945
|
-
function
|
|
2946
|
-
let n =
|
|
2947
|
-
return r &&
|
|
2987
|
+
function si(e, t) {
|
|
2988
|
+
let n = xl(e, Xt(e, v.SDF_PERSIST), t, !1), r = Yl(oi(e), null, !1);
|
|
2989
|
+
return r && nl(r) && xr(n, r), Bl(oi(e), n);
|
|
2948
2990
|
}
|
|
2949
|
-
function
|
|
2950
|
-
let n =
|
|
2951
|
-
0 ===
|
|
2991
|
+
function ai(e, t) {
|
|
2992
|
+
let n = Kl(e, Yl(oi(e), null, !1), t, !1);
|
|
2993
|
+
0 === Xr(n) ? Jl(oi(e)) : Bl(oi(e), n);
|
|
2952
2994
|
}
|
|
2953
|
-
function
|
|
2954
|
-
let n =
|
|
2955
|
-
return n &&
|
|
2995
|
+
function ui(e, t) {
|
|
2996
|
+
let n = Yl(oi(e), null, !1), r = {};
|
|
2997
|
+
return n && nl(n) && (r = xl(e, n, t, !1)), r;
|
|
2956
2998
|
}
|
|
2957
|
-
function
|
|
2958
|
-
if (
|
|
2999
|
+
function _i(e) {
|
|
3000
|
+
if (rl(e) && 1 === el(e)) {
|
|
2959
3001
|
let t = e[0];
|
|
2960
|
-
return
|
|
3002
|
+
return vl(t, "size") ? t.size : 1;
|
|
2961
3003
|
}
|
|
2962
|
-
return
|
|
3004
|
+
return el(e);
|
|
2963
3005
|
}
|
|
2964
|
-
function
|
|
2965
|
-
if (
|
|
3006
|
+
function ci(e, t) {
|
|
3007
|
+
if (ll(t)) {
|
|
2966
3008
|
if (-1 === t.indexOf("^")) {
|
|
2967
3009
|
let n, r, l = e.fkey;
|
|
2968
|
-
if (1 !==
|
|
3010
|
+
if (1 !== Xr(l)) return cr("bad fkey 1"), cr(e), cr(t), null;
|
|
2969
3011
|
for (const e of Object.keys(l)) {
|
|
2970
3012
|
n = e, r = l[e];
|
|
2971
3013
|
break;
|
|
@@ -2985,21 +3027,21 @@ function oi(e, t) {
|
|
|
2985
3027
|
};
|
|
2986
3028
|
}
|
|
2987
3029
|
}
|
|
2988
|
-
return
|
|
3030
|
+
return nl(t) ? {
|
|
2989
3031
|
topic_name: t.topic_name,
|
|
2990
3032
|
id: t.id,
|
|
2991
3033
|
hook_name: t.hook_name
|
|
2992
3034
|
} : (cr("bad fkey 3"), cr(e), cr(t), null);
|
|
2993
3035
|
}
|
|
2994
|
-
function
|
|
2995
|
-
let n =
|
|
3036
|
+
function fi(e, t) {
|
|
3037
|
+
let n = ci(e, t);
|
|
2996
3038
|
return n ? n.topic_name + "^" + n.id + "^" + n.hook_name : null;
|
|
2997
3039
|
}
|
|
2998
|
-
function
|
|
2999
|
-
if (
|
|
3040
|
+
function gi(e, t) {
|
|
3041
|
+
if (ll(t)) {
|
|
3000
3042
|
if (-1 === t.indexOf("^")) {
|
|
3001
3043
|
let n, r = e.hook;
|
|
3002
|
-
if (1 !==
|
|
3044
|
+
if (1 !== Xr(r)) return cr("bad hook 1"), cr(e), cr(t), null;
|
|
3003
3045
|
for (let e of Object.keys(r)) {
|
|
3004
3046
|
n = e, r[e];
|
|
3005
3047
|
break;
|
|
@@ -3017,12 +3059,12 @@ function si(e, t) {
|
|
|
3017
3059
|
};
|
|
3018
3060
|
}
|
|
3019
3061
|
}
|
|
3020
|
-
return
|
|
3062
|
+
return nl(t) ? {
|
|
3021
3063
|
topic_name: t.topic_name,
|
|
3022
3064
|
id: t.id
|
|
3023
3065
|
} : (cr("bad hook 3"), cr(e), cr(t), null);
|
|
3024
3066
|
}
|
|
3025
|
-
var
|
|
3067
|
+
var di = [
|
|
3026
3068
|
"string",
|
|
3027
3069
|
"integer",
|
|
3028
3070
|
"object",
|
|
@@ -3032,7 +3074,7 @@ var ai = [
|
|
|
3032
3074
|
"real",
|
|
3033
3075
|
"boolean",
|
|
3034
3076
|
"blob"
|
|
3035
|
-
],
|
|
3077
|
+
], bi = [
|
|
3036
3078
|
"persistent",
|
|
3037
3079
|
"required",
|
|
3038
3080
|
"notnull",
|
|
@@ -3044,7 +3086,7 @@ var ai = [
|
|
|
3044
3086
|
"stats",
|
|
3045
3087
|
"rstats",
|
|
3046
3088
|
"pstats"
|
|
3047
|
-
],
|
|
3089
|
+
], pi = [
|
|
3048
3090
|
"hook",
|
|
3049
3091
|
"fkey",
|
|
3050
3092
|
"enum",
|
|
@@ -3073,7 +3115,7 @@ var ai = [
|
|
|
3073
3115
|
"coordinates",
|
|
3074
3116
|
"gbuffer"
|
|
3075
3117
|
];
|
|
3076
|
-
function
|
|
3118
|
+
function mi(e) {
|
|
3077
3119
|
let t = {
|
|
3078
3120
|
name: e.id,
|
|
3079
3121
|
header: e.header,
|
|
@@ -3092,7 +3134,7 @@ function ci(e) {
|
|
|
3092
3134
|
if (!e.flag) return t;
|
|
3093
3135
|
for (let n = 0; n < e.flag.length; n++) {
|
|
3094
3136
|
let r = e.flag[n];
|
|
3095
|
-
if (
|
|
3137
|
+
if (no(pi, r)) {
|
|
3096
3138
|
switch (r) {
|
|
3097
3139
|
case "enum":
|
|
3098
3140
|
t.enum_list = e.enum;
|
|
@@ -3106,7 +3148,7 @@ function ci(e) {
|
|
|
3106
3148
|
case "file": t.is_file = !0;
|
|
3107
3149
|
}
|
|
3108
3150
|
t.type = r;
|
|
3109
|
-
} else if (
|
|
3151
|
+
} else if (no(bi, r)) switch (r) {
|
|
3110
3152
|
case "writable":
|
|
3111
3153
|
t.is_writable = !0;
|
|
3112
3154
|
break;
|
|
@@ -3119,7 +3161,7 @@ function ci(e) {
|
|
|
3119
3161
|
}
|
|
3120
3162
|
return t.is_file && (t.type = "file"), t;
|
|
3121
3163
|
}
|
|
3122
|
-
function
|
|
3164
|
+
function hi(e, t) {
|
|
3123
3165
|
let n = {
|
|
3124
3166
|
name: e,
|
|
3125
3167
|
header: e,
|
|
@@ -3133,13 +3175,13 @@ function fi(e, t) {
|
|
|
3133
3175
|
placeholder: void 0,
|
|
3134
3176
|
fkey: null
|
|
3135
3177
|
};
|
|
3136
|
-
if (
|
|
3178
|
+
if (ll(t)) {
|
|
3137
3179
|
let e = t.split(".");
|
|
3138
3180
|
for (let t = 0; t < e.length; t++) {
|
|
3139
3181
|
let r = e[t];
|
|
3140
|
-
if (
|
|
3141
|
-
else if (
|
|
3142
|
-
else if (
|
|
3182
|
+
if (no(di, r)) n.real_type || (n.real_type = r);
|
|
3183
|
+
else if (no(pi, r)) n.type || (n.type = r);
|
|
3184
|
+
else if (no(bi, r)) switch (r) {
|
|
3143
3185
|
case "writable":
|
|
3144
3186
|
n.is_writable = !0;
|
|
3145
3187
|
break;
|
|
@@ -3151,35 +3193,35 @@ function fi(e, t) {
|
|
|
3151
3193
|
}
|
|
3152
3194
|
}
|
|
3153
3195
|
n.real_type || (n.real_type = "string");
|
|
3154
|
-
} else
|
|
3196
|
+
} else nl(t) ? (n = mi(t), n.name || (n.name = e), n.header || (n.header = e)) : rl(t) && (n.real_type = "array", n.enum_list = t);
|
|
3155
3197
|
return n.type || (n.type = n.real_type), n;
|
|
3156
3198
|
}
|
|
3157
|
-
function
|
|
3199
|
+
function Ei(e, t) {
|
|
3158
3200
|
let n = {};
|
|
3159
3201
|
return t || (t = {}), Object.entries(e).forEach(([e, r]) => {
|
|
3160
3202
|
let l;
|
|
3161
|
-
|
|
3162
|
-
let o =
|
|
3163
|
-
|
|
3203
|
+
nl(r) && (l = r.default);
|
|
3204
|
+
let o = Cl(null, t, e, l);
|
|
3205
|
+
Br(n, e, o);
|
|
3164
3206
|
}), n;
|
|
3165
3207
|
}
|
|
3166
|
-
var
|
|
3208
|
+
var yi = [
|
|
3167
3209
|
N(T.DTP_POINTER, "subscriber", 0, null, "Subscriber of output events"),
|
|
3168
3210
|
N(T.DTP_BOOLEAN, "periodic", 0, 0, "True for periodic timeouts"),
|
|
3169
3211
|
N(T.DTP_INTEGER, "msec", 0, 0, "Timeout in milliseconds"),
|
|
3170
3212
|
S()
|
|
3171
|
-
],
|
|
3213
|
+
], Ti = {
|
|
3172
3214
|
periodic: !1,
|
|
3173
3215
|
msec: 0,
|
|
3174
3216
|
timer_id: -1
|
|
3175
|
-
},
|
|
3176
|
-
function
|
|
3217
|
+
}, vi = null;
|
|
3218
|
+
function Oi(e, t, n, r) {
|
|
3177
3219
|
let l = e.priv, o = l.periodic ? "EV_TIMEOUT_PERIODIC" : "EV_TIMEOUT";
|
|
3178
3220
|
return l.periodic && l.msec > 0 ? l.timer_id = setTimeout(function() {
|
|
3179
3221
|
Tn(e, "EV_TIMEOUT", {}, e);
|
|
3180
3222
|
}, l.msec) : l.timer_id = -1, It(e) ? Tn(At(e), o, {}, e) : Pn(e, o, {}), l.periodic || -1 !== l.timer_id || Et(e) && gt(e), 0;
|
|
3181
3223
|
}
|
|
3182
|
-
var
|
|
3224
|
+
var Si = {
|
|
3183
3225
|
mt_create: function(e) {
|
|
3184
3226
|
let t = e.priv;
|
|
3185
3227
|
const n = nn(e, "subscriber");
|
|
@@ -3204,31 +3246,31 @@ var hi = {
|
|
|
3204
3246
|
},
|
|
3205
3247
|
mt_destroy: function(e) {}
|
|
3206
3248
|
};
|
|
3207
|
-
function
|
|
3249
|
+
function Ni() {
|
|
3208
3250
|
return function(e) {
|
|
3209
|
-
if (
|
|
3251
|
+
if (vi) return cr(`GClass ALREADY created: ${e}`), -1;
|
|
3210
3252
|
const t = [["ST_IDLE", [[
|
|
3211
3253
|
"EV_TIMEOUT",
|
|
3212
|
-
|
|
3254
|
+
Oi,
|
|
3213
3255
|
null
|
|
3214
3256
|
]]]];
|
|
3215
|
-
return (
|
|
3257
|
+
return (vi = Ae(e, [
|
|
3216
3258
|
["EV_TIMEOUT", U.EVF_OUTPUT_EVENT],
|
|
3217
3259
|
["EV_TIMEOUT_PERIODIC", U.EVF_OUTPUT_EVENT],
|
|
3218
3260
|
[0, 0]
|
|
3219
|
-
], t,
|
|
3261
|
+
], t, Si, 0, yi, Ti, 0, 0, 0, C.gcflag_manual_start)) ? 0 : -1;
|
|
3220
3262
|
}("C_TIMER");
|
|
3221
3263
|
}
|
|
3222
|
-
function
|
|
3264
|
+
function wi(e, t) {
|
|
3223
3265
|
return e instanceof I ? "C_TIMER" !== $t(e) ? (cr("not C_TIMER GObj"), -1) : (sn(e, "periodic", !1), void an(e, "msec", t)) : (cr("not GObj TYPE"), -1);
|
|
3224
3266
|
}
|
|
3225
|
-
function
|
|
3267
|
+
function ji(e, t) {
|
|
3226
3268
|
return e instanceof I ? "C_TIMER" !== $t(e) ? (cr("not C_TIMER GObj"), -1) : (sn(e, "periodic", !0), void an(e, "msec", t)) : (cr("not GObj TYPE"), -1);
|
|
3227
3269
|
}
|
|
3228
|
-
function
|
|
3270
|
+
function $i(e) {
|
|
3229
3271
|
return e instanceof I ? "C_TIMER" !== $t(e) ? (cr("not C_TIMER GObj"), -1) : void an(e, "msec", -1) : (cr("not GObj TYPE"), -1);
|
|
3230
3272
|
}
|
|
3231
|
-
var
|
|
3273
|
+
var Ri = [
|
|
3232
3274
|
N(T.DTP_BOOLEAN, "changesLost", 0, !1, "Set true to warn about leaving page"),
|
|
3233
3275
|
N(T.DTP_BOOLEAN, "browser_beforeunload", 0, !1, "Set true to refreshing browser"),
|
|
3234
3276
|
N(T.DTP_STRING, "__username__", 0, "", "Username"),
|
|
@@ -3248,51 +3290,60 @@ var Oi = [
|
|
|
3248
3290
|
N(T.DTP_BOOLEAN, "developer", 0, !1, "Developer mode enabled"),
|
|
3249
3291
|
N(T.DTP_INTEGER, "periodic_timeout", 0, "1000", "Timeout periodic, in miliseconds."),
|
|
3250
3292
|
S()
|
|
3251
|
-
],
|
|
3252
|
-
function
|
|
3293
|
+
], Di = { gobj_timer: null }, Ai = null;
|
|
3294
|
+
function ki(e, t, n, r) {
|
|
3253
3295
|
let l = Qt(e, t);
|
|
3254
|
-
return
|
|
3296
|
+
return nl(l) || (l = {}), l[n] = r, rn(e, t, l), He(e, t);
|
|
3255
3297
|
}
|
|
3256
|
-
|
|
3298
|
+
var Ii = -2147483648, Ci = 2147483647;
|
|
3299
|
+
function Li(e) {
|
|
3257
3300
|
if (!0 === e || !1 === e) return e;
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3301
|
+
if ("number" == typeof e) return !Number.isInteger(e) || e < Ii || e > Ci ? null : 0 !== e;
|
|
3302
|
+
if ("string" != typeof e || "" === e) return null;
|
|
3303
|
+
let t = e.toLowerCase();
|
|
3304
|
+
if ("set" === t) return !0;
|
|
3305
|
+
if ("reset" === t) return !1;
|
|
3306
|
+
if (/^-?(0|[1-9][0-9]*)$/.test(e)) {
|
|
3307
|
+
let t = Number(e);
|
|
3308
|
+
return t < Ii || t > Ci ? null : 0 !== t;
|
|
3309
|
+
}
|
|
3310
|
+
return "true" === t || "yes" === t || "on" === t || "false" !== t && "no" !== t && "off" !== t && null;
|
|
3311
|
+
}
|
|
3312
|
+
function Pi() {
|
|
3262
3313
|
return `${Nt()}^${St()}`;
|
|
3263
3314
|
}
|
|
3264
|
-
function
|
|
3315
|
+
function Ui(e, t, n, r) {
|
|
3265
3316
|
return Pn(e, t, n), 0;
|
|
3266
3317
|
}
|
|
3267
|
-
var
|
|
3318
|
+
var Fi = {
|
|
3268
3319
|
mt_create: function(e) {
|
|
3269
3320
|
let t = e.priv;
|
|
3270
|
-
un(e, "start_date",
|
|
3321
|
+
un(e, "start_date", Mo()), un(e, "node_uuid", Ko()), e.priv.gobj_timer = ot(jt(e), "C_TIMER", {}, e), t.periodic_timeout = Qt(e, "periodic_timeout"), function(e) {
|
|
3271
3322
|
let t = Qt(e, "trace_levels");
|
|
3272
|
-
if (!
|
|
3323
|
+
if (!nl(t)) return 0;
|
|
3273
3324
|
let n = t.__global_trace__;
|
|
3274
|
-
if (
|
|
3325
|
+
if (rl(n)) {
|
|
3275
3326
|
ce(4294967295, !1);
|
|
3276
3327
|
for (let e of n) se(e, !0);
|
|
3277
3328
|
}
|
|
3278
3329
|
for (const [n, r] of Object.entries(t)) {
|
|
3279
3330
|
let t = Me(n);
|
|
3280
|
-
if (t) if (
|
|
3331
|
+
if (t) if (rl(r)) {
|
|
3281
3332
|
Ee(t, null, !1);
|
|
3282
3333
|
for (let e of r) Ee(t, e, !0);
|
|
3283
3334
|
} else cr(`${jt(e)}: trace_levels of ${n} MUST be a list`);
|
|
3284
3335
|
}
|
|
3285
3336
|
}(e), function(e) {
|
|
3286
3337
|
let t = Qt(e, "no_trace_levels");
|
|
3287
|
-
if (!
|
|
3338
|
+
if (!nl(t)) return 0;
|
|
3288
3339
|
let n = t.__global_no_trace__;
|
|
3289
|
-
if (
|
|
3340
|
+
if (rl(n)) {
|
|
3290
3341
|
fe(4294967295, !1);
|
|
3291
3342
|
for (let e of n) ae(e, !0);
|
|
3292
3343
|
}
|
|
3293
3344
|
for (const [n, r] of Object.entries(t)) {
|
|
3294
3345
|
let t = Me(n);
|
|
3295
|
-
if (t) if (
|
|
3346
|
+
if (t) if (rl(r)) {
|
|
3296
3347
|
Te(t, null, !1);
|
|
3297
3348
|
for (let e of r) Te(t, e, !0);
|
|
3298
3349
|
} else cr(`${jt(e)}: no_trace_levels of ${n} MUST be a list`);
|
|
@@ -3301,10 +3352,10 @@ var Di = {
|
|
|
3301
3352
|
},
|
|
3302
3353
|
mt_writing: function(e, t) {},
|
|
3303
3354
|
mt_start: function(e) {
|
|
3304
|
-
return
|
|
3355
|
+
return ji(e.priv.gobj_timer, e.priv.periodic_timeout), 0;
|
|
3305
3356
|
},
|
|
3306
3357
|
mt_stop: function(e) {
|
|
3307
|
-
return
|
|
3358
|
+
return $i(e.priv.gobj_timer), bt(e), 0;
|
|
3308
3359
|
},
|
|
3309
3360
|
mt_destroy: function(e) {},
|
|
3310
3361
|
mt_play: function(e) {
|
|
@@ -3321,35 +3372,35 @@ var Di = {
|
|
|
3321
3372
|
case "get-global-no-trace": return o(0, 0, null, null, de());
|
|
3322
3373
|
case "set-global-trace":
|
|
3323
3374
|
case "set-global-no-trace": {
|
|
3324
|
-
let r = "set-global-no-trace" === t, l = n.level, i =
|
|
3325
|
-
return l ? null === i ? o(0, -1, `${
|
|
3375
|
+
let r = "set-global-no-trace" === t, l = n.level, i = Li(n.set);
|
|
3376
|
+
return l ? null === i ? o(0, -1, `${Pi()}: bitmask set or re-set?`, null, null) : (r ? ae(l, i) : se(l, i)) < 0 ? o(0, -1, `${Pi()}: global trace level not found: ${l}`, null, null) : r ? (ki(e, "no_trace_levels", "__global_no_trace__", de()), o(0, 0, null, null, de())) : (ki(e, "trace_levels", "__global_trace__", ge()), o(0, 0, null, null, ge())) : o(0, -1, `${Pi()}: what level?`, null, null);
|
|
3326
3377
|
}
|
|
3327
3378
|
case "get-gclass-trace":
|
|
3328
3379
|
case "get-gclass-no-trace":
|
|
3329
3380
|
case "set-gclass-trace":
|
|
3330
3381
|
case "set-gclass-no-trace": {
|
|
3331
3382
|
let r = t.indexOf("no-trace") >= 0, l = n.gclass_name || n.gclass || "", i = Me(l);
|
|
3332
|
-
if (!i) return o(0, -1, `${
|
|
3383
|
+
if (!i) return o(0, -1, `${Pi()}: what gclass is '${l}'?`, null, null);
|
|
3333
3384
|
if (0 === t.indexOf("get-")) return o(0, 0, null, null, r ? me(i) : be(i));
|
|
3334
|
-
let s = n.level, a =
|
|
3335
|
-
return s ? null === a ? o(0, -1, `${
|
|
3385
|
+
let s = n.level, a = Li(n.set);
|
|
3386
|
+
return s ? null === a ? o(0, -1, `${Pi()}: bitmask set or re-set?`, null, null) : (r ? Te(i, s, a) : Ee(i, s, a)) < 0 ? o(0, -1, `${Pi()}: trace level of ${l} not found: ${s}`, null, null) : r ? (ki(e, "no_trace_levels", l, me(i)), o(0, 0, null, null, me(i))) : (ki(e, "trace_levels", l, pe(i)), o(0, 0, null, null, be(i))) : o(0, -1, `${Pi()}: what level?`, null, null);
|
|
3336
3387
|
}
|
|
3337
|
-
default: return o(0, -1, `${
|
|
3388
|
+
default: return o(0, -1, `${Pi()}: command not available: ${t}`, null, null);
|
|
3338
3389
|
}
|
|
3339
3390
|
}
|
|
3340
3391
|
};
|
|
3341
|
-
function
|
|
3392
|
+
function Vi() {
|
|
3342
3393
|
return function(e) {
|
|
3343
|
-
if (
|
|
3394
|
+
if (Ai) return cr(`GClass ALREADY created: ${e}`), -1;
|
|
3344
3395
|
const t = [["ST_IDLE", [[
|
|
3345
3396
|
"EV_TIMEOUT_PERIODIC",
|
|
3346
|
-
|
|
3397
|
+
Ui,
|
|
3347
3398
|
null
|
|
3348
3399
|
]]]];
|
|
3349
|
-
return (
|
|
3400
|
+
return (Ai = Ae(e, [["EV_TIMEOUT_PERIODIC", U.EVF_OUTPUT_EVENT | U.EVF_NO_WARN_SUBS], [0, 0]], t, Fi, 0, Ri, Di, 0, 0, 0, 0)) ? 0 : -1;
|
|
3350
3401
|
}("C_YUNO");
|
|
3351
3402
|
}
|
|
3352
|
-
var
|
|
3403
|
+
var Gi = "ievent_gate_stack", Mi = [
|
|
3353
3404
|
N(T.DTP_STRING, "wanted_yuno_role", v.SDF_RD, "", "wanted yuno role"),
|
|
3354
3405
|
N(T.DTP_STRING, "wanted_yuno_name", v.SDF_RD, "", "wanted yuno name"),
|
|
3355
3406
|
N(T.DTP_STRING, "wanted_yuno_service", v.SDF_RD, "", "wanted yuno service"),
|
|
@@ -3366,15 +3417,15 @@ var ki = "ievent_gate_stack", Ii = [
|
|
|
3366
3417
|
N(T.DTP_INTEGER, "timeout_idack", v.SDF_RD, "5000", "timeout waiting idAck"),
|
|
3367
3418
|
N(T.DTP_POINTER, "subscriber", 0, 0, "subscriber of output-events. If null then subscriber is the parent"),
|
|
3368
3419
|
S()
|
|
3369
|
-
],
|
|
3420
|
+
], Wi = [
|
|
3370
3421
|
["ievents", "Trace inter-events with metadata of kw"],
|
|
3371
3422
|
["ievents2", "Trace inter-events with full kw"],
|
|
3372
3423
|
["identity-card", "Trace identity_card messages"]
|
|
3373
3424
|
];
|
|
3374
|
-
function
|
|
3425
|
+
function xi(e) {
|
|
3375
3426
|
return !!(3 & Z(e));
|
|
3376
3427
|
}
|
|
3377
|
-
var
|
|
3428
|
+
var Ki = {
|
|
3378
3429
|
url: null,
|
|
3379
3430
|
remote_yuno_name: null,
|
|
3380
3431
|
remote_yuno_role: null,
|
|
@@ -3384,8 +3435,8 @@ var Pi = {
|
|
|
3384
3435
|
websocket: null,
|
|
3385
3436
|
inside_on_open: !1,
|
|
3386
3437
|
retry_ms: 0
|
|
3387
|
-
},
|
|
3388
|
-
function
|
|
3438
|
+
}, Yi = null;
|
|
3439
|
+
function Bi(e) {
|
|
3389
3440
|
e.priv.websocket && cr("Websocket ALREADY setup");
|
|
3390
3441
|
const t = tn(e, "url");
|
|
3391
3442
|
dr(`====> Starting WebSocket to '${t}' (${Rt(e)})`);
|
|
@@ -3400,7 +3451,7 @@ function Fi(e) {
|
|
|
3400
3451
|
code: 1006,
|
|
3401
3452
|
reason: r.message,
|
|
3402
3453
|
was_clean: !1
|
|
3403
|
-
}, e) < 0 &&
|
|
3454
|
+
}, e) < 0 && wi(e.priv.gobj_timer, rs(e)), null;
|
|
3404
3455
|
}
|
|
3405
3456
|
return r ? (r.onopen = () => {
|
|
3406
3457
|
n !== e.priv.ws_seq || Ct(e) || Tn(e, "EV_ON_OPEN", {
|
|
@@ -3422,7 +3473,7 @@ function Fi(e) {
|
|
|
3422
3473
|
}, e));
|
|
3423
3474
|
}, r) : (cr(`${Rt(e)}: Failed to initialize WebSocket.`), null);
|
|
3424
3475
|
}
|
|
3425
|
-
function
|
|
3476
|
+
function Ji(e, t = 1e3, n = "") {
|
|
3426
3477
|
let r = e.priv, l = r.websocket;
|
|
3427
3478
|
if (r.websocket = null, l && l.readyState !== WebSocket.CLOSED && l.readyState !== WebSocket.CLOSING) {
|
|
3428
3479
|
dr(`Closing WebSocket (Code: ${t}, Reason: "${n}")`);
|
|
@@ -3433,25 +3484,25 @@ function Vi(e, t = 1e3, n = "") {
|
|
|
3433
3484
|
}
|
|
3434
3485
|
} else fr("WebSocket is already closed or in the process of closing.");
|
|
3435
3486
|
}
|
|
3436
|
-
function
|
|
3437
|
-
let r =
|
|
3487
|
+
function qi(e, t, n) {
|
|
3488
|
+
let r = Mo();
|
|
3438
3489
|
try {
|
|
3439
|
-
dr("\n" + r + " " + t + "\n"),
|
|
3490
|
+
dr("\n" + r + " " + t + "\n"), Ur(n);
|
|
3440
3491
|
} catch (e) {
|
|
3441
3492
|
dr("ERROR in trace_inter_event: " + e);
|
|
3442
3493
|
}
|
|
3443
3494
|
}
|
|
3444
|
-
var
|
|
3495
|
+
var Hi = class {
|
|
3445
3496
|
constructor(e, t) {
|
|
3446
3497
|
this.event = e, this.kw = t || {};
|
|
3447
3498
|
}
|
|
3448
3499
|
};
|
|
3449
|
-
function
|
|
3500
|
+
function zi(e, t, n, r) {
|
|
3450
3501
|
return function(e, t) {
|
|
3451
3502
|
let n = e.priv, r = JSON.stringify(t);
|
|
3452
|
-
if (
|
|
3503
|
+
if (xi(e)) {
|
|
3453
3504
|
let n = tn(e, "url"), l = jt(Ot()) + " ==> " + n, o = Qt(Ot(), "trace_ievent_callback");
|
|
3454
|
-
o ? o(l, t, 1, r.length) :
|
|
3505
|
+
o ? o(l, t, 1, r.length) : qi(0, l, t);
|
|
3455
3506
|
}
|
|
3456
3507
|
if (!n.websocket || n.websocket.readyState !== WebSocket.OPEN) return fr(`${Rt(e)}: send_iev(): websocket not open, message lost`), -1;
|
|
3457
3508
|
try {
|
|
@@ -3461,21 +3512,21 @@ function Wi(e, t, n, r) {
|
|
|
3461
3512
|
}
|
|
3462
3513
|
return 0;
|
|
3463
3514
|
}(e, function(e, t) {
|
|
3464
|
-
return
|
|
3515
|
+
return fl(e) ? (cr("iev_create() event NULL"), null) : new Hi(e, t);
|
|
3465
3516
|
}(t, n));
|
|
3466
3517
|
}
|
|
3467
|
-
function
|
|
3468
|
-
return
|
|
3518
|
+
function Qi(e, t, n) {
|
|
3519
|
+
return fl(n) && (n = tn(e, "wanted_yuno_service")), {
|
|
3469
3520
|
dst_yuno: tn(e, "wanted_yuno_name"),
|
|
3470
3521
|
dst_role: tn(e, "wanted_yuno_role"),
|
|
3471
3522
|
dst_service: n,
|
|
3472
3523
|
src_yuno: St(),
|
|
3473
3524
|
src_role: Nt(),
|
|
3474
3525
|
src_service: t,
|
|
3475
|
-
host:
|
|
3526
|
+
host: Ko()
|
|
3476
3527
|
};
|
|
3477
3528
|
}
|
|
3478
|
-
function
|
|
3529
|
+
function Xi(e) {
|
|
3479
3530
|
let t = e.priv, n = vt(Ot()), r = tn(Ot(), "yuno_version"), l = tn(Ot(), "yuno_release"), o = tn(Ot(), "yuno_tag"), i = Qt(e, "required_services");
|
|
3480
3531
|
i && i.length || (i = Qt(Ot(), "required_services"));
|
|
3481
3532
|
let s = {
|
|
@@ -3493,27 +3544,27 @@ function Ki(e) {
|
|
|
3493
3544
|
username: tn(Ot(), "__username__"),
|
|
3494
3545
|
launch_id: 0,
|
|
3495
3546
|
yuno_startdate: tn(Ot(), "start_date"),
|
|
3496
|
-
id:
|
|
3547
|
+
id: Ko(),
|
|
3497
3548
|
user_agent: "undefined" != typeof window ? window.navigator.userAgent : "",
|
|
3498
3549
|
language: "undefined" != typeof window ? window.navigator.language : "",
|
|
3499
3550
|
required_services: i
|
|
3500
3551
|
};
|
|
3501
|
-
return
|
|
3552
|
+
return so(e, s, Gi, Qi(e, jt(At(e)), null)), uo(e, s, "__identity__"), wi(t.gobj_timer, en(e, "timeout_idack")), zi(e, "EV_IDENTITY_CARD", s);
|
|
3502
3553
|
}
|
|
3503
|
-
function
|
|
3504
|
-
if (
|
|
3554
|
+
function Zi(e, t) {
|
|
3555
|
+
if (fl(t.event)) return -1;
|
|
3505
3556
|
let n = {}, r = t.__global__, l = t.__config__, o = t.__filter__, i = t.__service__, s = t.subscriber;
|
|
3506
3557
|
l && (n.__config__ = l), r && (n.__global__ = r), o && (n.__filter__ = o);
|
|
3507
|
-
return
|
|
3558
|
+
return so(e, n, Gi, Qi(e, jt(s), i)), uo(e, n, "__subscribing__"), zi(e, t.event, n);
|
|
3508
3559
|
}
|
|
3509
|
-
function
|
|
3560
|
+
function es(e, t, n, r) {
|
|
3510
3561
|
let l = e.priv;
|
|
3511
|
-
return Et(e) && (l.websocket =
|
|
3562
|
+
return Et(e) && (l.websocket = Bi(e)), 0;
|
|
3512
3563
|
}
|
|
3513
|
-
function
|
|
3514
|
-
return dr("Websocket opened: " + e.priv.url),
|
|
3564
|
+
function ts(e, t, n, r) {
|
|
3565
|
+
return dr("Websocket opened: " + e.priv.url), Xi(e), 0;
|
|
3515
3566
|
}
|
|
3516
|
-
function
|
|
3567
|
+
function ns(e, t, n, r) {
|
|
3517
3568
|
let l = e.priv, o = n.url;
|
|
3518
3569
|
return void 0 !== n.ws_seq && n.ws_seq !== l.ws_seq || (rr(), fr(`${Rt(e)}: WebSocket closed ${o} (Code: ${n.code}, Reason: "${n.reason}", Clean: ${n.was_clean})`), l.websocket && (l.websocket.onopen = null, l.websocket.onmessage = null, l.websocket.onerror = null, l.websocket.onclose = null, l.websocket = null), l.inform_on_close ? (l.inform_on_close = !1, Pn(e, "EV_ON_CLOSE", {
|
|
3519
3570
|
url: o,
|
|
@@ -3528,25 +3579,25 @@ function qi(e, t, n, r) {
|
|
|
3528
3579
|
code: n.code,
|
|
3529
3580
|
reason: n.reason,
|
|
3530
3581
|
was_clean: n.was_clean
|
|
3531
|
-
})), Et(e) &&
|
|
3582
|
+
})), Et(e) && wi(l.gobj_timer, rs(e))), 0;
|
|
3532
3583
|
}
|
|
3533
|
-
function
|
|
3584
|
+
function rs(e) {
|
|
3534
3585
|
let t = e.priv, n = en(e, "timeout_retry"), r = en(e, "timeout_retry_max");
|
|
3535
3586
|
r < n && (r = n), t.retry_ms = t.retry_ms ? Math.min(2 * t.retry_ms, r) : n;
|
|
3536
3587
|
let l = .2 * t.retry_ms, o = t.retry_ms - l + 2 * Math.random() * l;
|
|
3537
3588
|
return Math.max(1, Math.round(o));
|
|
3538
3589
|
}
|
|
3539
|
-
function
|
|
3540
|
-
return
|
|
3590
|
+
function ls(e, t, n, r) {
|
|
3591
|
+
return Xi(e), 0;
|
|
3541
3592
|
}
|
|
3542
|
-
function
|
|
3593
|
+
function os(e, t, n, r) {
|
|
3543
3594
|
let l = e.priv;
|
|
3544
|
-
|
|
3545
|
-
let o =
|
|
3595
|
+
$i(l.gobj_timer);
|
|
3596
|
+
let o = ao(e, n, Gi, !0), i = Al(e, o, "src_yuno", ""), s = Al(e, o, "src_role", ""), a = Al(e, o, "src_service", "");
|
|
3546
3597
|
un(e, "remote_yuno_name", i), un(e, "remote_yuno_role", s), un(e, "remote_yuno_service", a);
|
|
3547
|
-
let u =
|
|
3598
|
+
let u = Rl(e, n, "result", -1, 0), _ = Al(e, n, "comment", "", 0), c = Al(e, n, "username", "", 0), f = Cl(e, n, "services_roles", {});
|
|
3548
3599
|
if (u < 0) {
|
|
3549
|
-
|
|
3600
|
+
Ji(e);
|
|
3550
3601
|
let t = {
|
|
3551
3602
|
url: tn(e, "url"),
|
|
3552
3603
|
result: u,
|
|
@@ -3571,12 +3622,12 @@ function Qi(e, t, n, r) {
|
|
|
3571
3622
|
}
|
|
3572
3623
|
l.inside_on_open = !1, function(e) {
|
|
3573
3624
|
let t = In(e, null, null, null);
|
|
3574
|
-
for (let n = 0; n < t.length; n++)
|
|
3625
|
+
for (let n = 0; n < t.length; n++) Zi(e, t[n]);
|
|
3575
3626
|
}(e);
|
|
3576
3627
|
}
|
|
3577
3628
|
return 0;
|
|
3578
3629
|
}
|
|
3579
|
-
function
|
|
3630
|
+
function is(e, t, n, r) {
|
|
3580
3631
|
let l = e.priv.url, o = function(e, t) {
|
|
3581
3632
|
let n;
|
|
3582
3633
|
try {
|
|
@@ -3595,37 +3646,37 @@ function Xi(e, t, n, r) {
|
|
|
3595
3646
|
} : (fr(`${Rt(e)}: parsing inter_event: kw not a json object`), null) : (fr(`${Rt(e)}: parsing inter_kw: no kw`), null);
|
|
3596
3647
|
}(e, n.data);
|
|
3597
3648
|
if (!o) return fr(`${Rt(e)}: frame dropped from ${l}: ${String(n.data).substring(0, 256)}`), -1;
|
|
3598
|
-
if (
|
|
3649
|
+
if (xi(e)) {
|
|
3599
3650
|
let e = jt(Ot()) + " <== " + l, t = n.data.length, r = Qt(Ot(), "trace_ievent_callback");
|
|
3600
|
-
r ? r(e, o, 2, t) :
|
|
3651
|
+
r ? r(e, o, 2, t) : qi(0, e, o);
|
|
3601
3652
|
}
|
|
3602
3653
|
let i = o.event, s = o.kw;
|
|
3603
3654
|
if ("ST_SESSION" !== cn(e)) {
|
|
3604
3655
|
if (dn(e, i, U.EVF_PUBLIC_EVENT)) {
|
|
3605
3656
|
if (!(Tn(e, i, s, e) < 0)) return 0;
|
|
3606
3657
|
} else cr(`${Rt(e)}: event UNKNOWN in not-session state ${i}`);
|
|
3607
|
-
return
|
|
3658
|
+
return Ji(e), -1;
|
|
3608
3659
|
}
|
|
3609
3660
|
o = null;
|
|
3610
|
-
let a =
|
|
3661
|
+
let a = _o(e, s), u = ao(e, s, Gi), _ = Al(e, u, "dst_role", "");
|
|
3611
3662
|
if (_.toLowerCase() !== Nt().toLowerCase()) return cr(`"It's not my role, dst_role: ${_}, my_role: ${Nt()}`), 0;
|
|
3612
|
-
let c =
|
|
3663
|
+
let c = Al(e, u, "dst_service", "");
|
|
3613
3664
|
if ("__subscribing__" === a) return fr(`${Rt(e)}: subscription event ignored, I'm client (service: ${c}, event: ${i})`), -1;
|
|
3614
3665
|
if ("__unsubscribing__" === a) return fr(`${Rt(e)}: unsubscription event ignored, I'm client (service: ${c}, event: ${i})`), -1;
|
|
3615
3666
|
if (dn(e, i, U.EVF_PUBLIC_EVENT)) return Tn(e, i, s, e), 0;
|
|
3616
|
-
if (!
|
|
3667
|
+
if (!fl(c)) {
|
|
3617
3668
|
let t = Ke(c, !1);
|
|
3618
3669
|
return t ? dn(t, i, U.EVF_PUBLIC_EVENT) ? (Tn(t, i, s, e), 0) : (cr(`${Rt(e)}: Service found but no event or not public, service '${Rt(t)}', ev '${i}'`), -1) : (fr(`${Rt(e)}: event for a service that is gone, DROPPED: service '${c}', ev '${i}'`), 0);
|
|
3619
3670
|
}
|
|
3620
3671
|
return It(e) ? Tn(At(e), i, s, e) : Pn(e, i, s), 0;
|
|
3621
3672
|
}
|
|
3622
|
-
function
|
|
3673
|
+
function ss(e, t, n, r) {
|
|
3623
3674
|
return 0;
|
|
3624
3675
|
}
|
|
3625
|
-
function
|
|
3676
|
+
function as(e, t, n, r) {
|
|
3626
3677
|
return 0;
|
|
3627
3678
|
}
|
|
3628
|
-
var
|
|
3679
|
+
var us = {
|
|
3629
3680
|
mt_create: function(e) {
|
|
3630
3681
|
let t = e.priv;
|
|
3631
3682
|
t.gobj_timer = ot(jt(e), "C_TIMER", {}, e), t.ws_seq = 0, t.url = tn(e, "url"), t.remote_yuno_name = tn(e, "remote_yuno_name"), t.remote_yuno_role = tn(e, "remote_yuno_role"), t.remote_yuno_service = tn(e, "remote_yuno_service"), un(e, "wanted_yuno_name", t.remote_yuno_name), un(e, "wanted_yuno_role", t.remote_yuno_role), un(e, "wanted_yuno_service", t.remote_yuno_service);
|
|
@@ -3655,72 +3706,72 @@ var ts = {
|
|
|
3655
3706
|
code: 1e3,
|
|
3656
3707
|
reason: "restarted",
|
|
3657
3708
|
was_clean: !0
|
|
3658
|
-
}, e),
|
|
3709
|
+
}, e), $i(t.gobj_timer)), t.websocket = Bi(e), 0;
|
|
3659
3710
|
},
|
|
3660
3711
|
mt_stop: function(e) {
|
|
3661
3712
|
let t = e.priv;
|
|
3662
|
-
return
|
|
3713
|
+
return $i(t.gobj_timer), t.websocket && Ji(e), 0;
|
|
3663
3714
|
},
|
|
3664
3715
|
mt_destroy: function(e) {},
|
|
3665
3716
|
mt_stats: function(e, t, n, r) {
|
|
3666
3717
|
if ("ST_SESSION" !== cn(e)) return cr("Not in session"), null;
|
|
3667
3718
|
n || (n = {});
|
|
3668
|
-
let l =
|
|
3669
|
-
return o || (o = {}),
|
|
3719
|
+
let l = Qi(e, jt(r), Al(e, n, "service", null, 0)), o = Cl(e, n, "__md_stats__", null, Vn.KW_EXTRACT);
|
|
3720
|
+
return o || (o = {}), so(e, n, "stats_stack", {
|
|
3670
3721
|
stats: t,
|
|
3671
3722
|
kw: o
|
|
3672
|
-
}),
|
|
3723
|
+
}), so(e, n, Gi, l), n.__stats__ = t, uo(e, n, "__stats__"), zi(e, "EV_MT_STATS", n, r), null;
|
|
3673
3724
|
},
|
|
3674
3725
|
mt_command_parser: function(e, t, n, r) {
|
|
3675
3726
|
if ("ST_SESSION" !== cn(e)) return cr("Not in session"), null;
|
|
3676
3727
|
n || (n = {});
|
|
3677
|
-
let l =
|
|
3678
|
-
return o || (o = {}),
|
|
3728
|
+
let l = Qi(e, jt(r), Al(e, n, "service", "", 0)), o = Cl(e, n, "__md_command__", null, Vn.KW_EXTRACT);
|
|
3729
|
+
return o || (o = {}), so(e, n, "command_stack", {
|
|
3679
3730
|
command: t,
|
|
3680
3731
|
kw: o
|
|
3681
|
-
}),
|
|
3732
|
+
}), so(e, n, Gi, l), n.__command__ = t, uo(e, n, "__command__"), zi(e, "EV_MT_COMMAND", n, r), null;
|
|
3682
3733
|
},
|
|
3683
3734
|
mt_inject_event: function(e, t, n, r) {
|
|
3684
3735
|
if ("ST_SESSION" !== cn(e)) return window.console.error("Not in session"), -1;
|
|
3685
|
-
if (n =
|
|
3736
|
+
if (n = Mr({}, nl(n) ? n : {}), nl(n.__md_iev__) && (n.__md_iev__ = Fr(n.__md_iev__)), ao(e, n, Gi));
|
|
3686
3737
|
else {
|
|
3687
|
-
let l =
|
|
3688
|
-
|
|
3738
|
+
let l = Qi(e, jt(r), Al(e, n, "__service__", 0, 0));
|
|
3739
|
+
Yr(n, "__service__"), so(e, n, "__message__", t), so(e, n, Gi, l);
|
|
3689
3740
|
}
|
|
3690
|
-
return
|
|
3741
|
+
return uo(e, n, "__message__"), zi(e, t, n, r);
|
|
3691
3742
|
},
|
|
3692
3743
|
mt_subscription_added: function(e, t) {
|
|
3693
3744
|
let n = e.priv;
|
|
3694
|
-
return "ST_SESSION" === cn(e) && n.websocket ? n.inside_on_open ? 0 :
|
|
3745
|
+
return "ST_SESSION" === cn(e) && n.websocket ? n.inside_on_open ? 0 : Zi(e, t) : 0;
|
|
3695
3746
|
},
|
|
3696
3747
|
mt_subscription_deleted: function(e, t) {
|
|
3697
3748
|
let n = e.priv;
|
|
3698
3749
|
if ("ST_SESSION" !== cn(e) || !n.websocket) return 0;
|
|
3699
3750
|
if (n.inside_on_open) return 0;
|
|
3700
|
-
if (
|
|
3751
|
+
if (fl(t.event)) return 0;
|
|
3701
3752
|
let r = {}, l = t.__global__, o = t.__config__, i = t.__filter__, s = t.__service__, a = t.subscriber;
|
|
3702
3753
|
o && (r.__config__ = o), l && (r.__global__ = l), i && (r.__filter__ = i);
|
|
3703
|
-
return
|
|
3754
|
+
return so(e, r, Gi, Qi(e, jt(a), s)), uo(e, r, "__unsubscribing__"), zi(e, t.event, r, e);
|
|
3704
3755
|
}
|
|
3705
3756
|
};
|
|
3706
|
-
function
|
|
3757
|
+
function _s() {
|
|
3707
3758
|
return function(e) {
|
|
3708
|
-
if (
|
|
3759
|
+
if (Yi) return cr(`GClass ALREADY created: ${e}`), -1;
|
|
3709
3760
|
const t = [
|
|
3710
3761
|
["ST_DISCONNECTED", [
|
|
3711
3762
|
[
|
|
3712
3763
|
"EV_ON_OPEN",
|
|
3713
|
-
|
|
3764
|
+
ts,
|
|
3714
3765
|
"ST_WAIT_IDENTITY_CARD_ACK"
|
|
3715
3766
|
],
|
|
3716
3767
|
[
|
|
3717
3768
|
"EV_ON_CLOSE",
|
|
3718
|
-
|
|
3769
|
+
ns,
|
|
3719
3770
|
null
|
|
3720
3771
|
],
|
|
3721
3772
|
[
|
|
3722
3773
|
"EV_TIMEOUT",
|
|
3723
|
-
|
|
3774
|
+
es,
|
|
3724
3775
|
null
|
|
3725
3776
|
],
|
|
3726
3777
|
[
|
|
@@ -3732,22 +3783,22 @@ function ns() {
|
|
|
3732
3783
|
["ST_WAIT_IDENTITY_CARD_ACK", [
|
|
3733
3784
|
[
|
|
3734
3785
|
"EV_ON_MESSAGE",
|
|
3735
|
-
|
|
3786
|
+
is,
|
|
3736
3787
|
null
|
|
3737
3788
|
],
|
|
3738
3789
|
[
|
|
3739
3790
|
"EV_IDENTITY_CARD_ACK",
|
|
3740
|
-
|
|
3791
|
+
os,
|
|
3741
3792
|
null
|
|
3742
3793
|
],
|
|
3743
3794
|
[
|
|
3744
3795
|
"EV_ON_CLOSE",
|
|
3745
|
-
|
|
3796
|
+
ns,
|
|
3746
3797
|
"ST_DISCONNECTED"
|
|
3747
3798
|
],
|
|
3748
3799
|
[
|
|
3749
3800
|
"EV_TIMEOUT",
|
|
3750
|
-
|
|
3801
|
+
ls,
|
|
3751
3802
|
null
|
|
3752
3803
|
],
|
|
3753
3804
|
[
|
|
@@ -3759,22 +3810,22 @@ function ns() {
|
|
|
3759
3810
|
["ST_SESSION", [
|
|
3760
3811
|
[
|
|
3761
3812
|
"EV_ON_MESSAGE",
|
|
3762
|
-
|
|
3813
|
+
is,
|
|
3763
3814
|
null
|
|
3764
3815
|
],
|
|
3765
3816
|
[
|
|
3766
3817
|
"EV_MT_STATS",
|
|
3767
|
-
|
|
3818
|
+
ss,
|
|
3768
3819
|
null
|
|
3769
3820
|
],
|
|
3770
3821
|
[
|
|
3771
3822
|
"EV_MT_COMMAND",
|
|
3772
|
-
|
|
3823
|
+
as,
|
|
3773
3824
|
null
|
|
3774
3825
|
],
|
|
3775
3826
|
[
|
|
3776
3827
|
"EV_ON_CLOSE",
|
|
3777
|
-
|
|
3828
|
+
ns,
|
|
3778
3829
|
"ST_DISCONNECTED"
|
|
3779
3830
|
],
|
|
3780
3831
|
[
|
|
@@ -3785,7 +3836,7 @@ function ns() {
|
|
|
3785
3836
|
]],
|
|
3786
3837
|
[null, null]
|
|
3787
3838
|
];
|
|
3788
|
-
return (
|
|
3839
|
+
return (Yi = Ae(e, [
|
|
3789
3840
|
["EV_ON_MESSAGE", U.EVF_OUTPUT_EVENT],
|
|
3790
3841
|
["EV_IDENTITY_CARD_ACK", U.EVF_PUBLIC_EVENT],
|
|
3791
3842
|
["EV_ON_ID_NAK", U.EVF_PUBLIC_EVENT | U.EVF_OUTPUT_EVENT],
|
|
@@ -3796,9 +3847,9 @@ function ns() {
|
|
|
3796
3847
|
["EV_ON_OPEN_ERROR", U.EVF_OUTPUT_EVENT | U.EVF_NO_WARN_SUBS],
|
|
3797
3848
|
["EV_TIMEOUT", 0],
|
|
3798
3849
|
[null, 0]
|
|
3799
|
-
], t,
|
|
3850
|
+
], t, us, 0, Mi, Ki, 0, 0, Wi, C.gcflag_no_check_output_events)) ? 0 : -1;
|
|
3800
3851
|
}("C_IEVENT_CLI");
|
|
3801
3852
|
}
|
|
3802
|
-
export { I as GObj, N as SDATA, R as SDATAAUTHZ, w as SDATACM, j as SDATACM2, A as SDATADF, $ as SDATAPM, D as SDATAPM0, S as SDATA_END, O as SDataDesc, a as YUNETA_VERSION, h as __yuno__, o as build_command_response,
|
|
3853
|
+
export { I as GObj, N as SDATA, R as SDATAAUTHZ, w as SDATACM, j as SDATACM2, A as SDATADF, $ as SDATAPM, D as SDATAPM0, S as SDATA_END, O as SDataDesc, a as YUNETA_VERSION, h as __yuno__, o as build_command_response, qo as build_path, s as build_stats_response, Yo as clean_name, $i as clear_timeout, ml as cmp_two_simple_json, l as command_parser, Po as createElement2, Lo as createOneHtml, vo as create_json_record, Ei as create_template_record, Mo as current_timestamp, T as data_type_t, ui as db_list_persistent_attrs, ii as db_load_persistent_attrs, ai as db_remove_persistent_attrs, si as db_save_persistent_attrs, Jo as debounce, lo as delete_from_list, Vr as duplicate_objects, tl as empty_json, fl as empty_string, No as escapeHtml, U as event_flag_t, ti as flat2json, li as flat_apply, ri as flat_diff, Xo as flat_key_join, Zo as flat_key_split, Pe as gclass_add_ev_action, Fe as gclass_add_event_type, Le as gclass_add_state, Ge as gclass_check_fsm, Ae as gclass_create, Ve as gclass_event_type, Me as gclass_find_by_name, C as gclass_flag_t, ke as gclass_unregister, Uo as getPositionRelativeToBody, Bo as get_function_name, Wo as get_now, Lt as gobj_bottom_gobj, fn as gobj_change_parent, _n as gobj_change_state, Un as gobj_command, it as gobj_create, et as gobj_create2, rt as gobj_create_default_service, ot as gobj_create_pure_child, nt as gobj_create_service, lt as gobj_create_volatil, tt as gobj_create_yuno, cn as gobj_current_state, xe as gobj_default_service, yn as gobj_deliver_posted_events, st as gobj_destroy, Bt as gobj_find_child, Kt as gobj_find_gobj, Ke as gobj_find_service, Ln as gobj_find_subscribings, In as gobj_find_subscriptions, L as gobj_flag_t, Dt as gobj_full_name, $t as gobj_gclass_name, be as gobj_get_gclass_trace_level, pe as gobj_get_gclass_trace_level2, me as gobj_get_gclass_trace_no_level, ge as gobj_get_global_trace_level, de as gobj_get_global_trace_no_level, ue as gobj_global_trace_level, _e as gobj_global_trace_no_level, zt as gobj_has_attr, dn as gobj_has_event, bn as gobj_has_output_event, $e as gobj_hsdata, Ct as gobj_is_destroying, vt as gobj_is_playing, It as gobj_is_pure_child, Et as gobj_is_running, Tt as gobj_is_service, kt as gobj_is_volatil, Qe as gobj_list_persistent_attrs, Cn as gobj_list_subscriptions, qe as gobj_load_persistent_attrs, Jt as gobj_match_children, qt as gobj_match_children_tree, Yt as gobj_match_gobj, jt as gobj_name, At as gobj_parent, ht as gobj_pause, mt as gobj_play, hn as gobj_post_event, En as gobj_posted_events_size, Pn as gobj_publish_event, Qt as gobj_read_attr, Xt as gobj_read_attrs, Zt as gobj_read_bool_attr, en as gobj_read_integer_attr, nn as gobj_read_pointer_attr, tn as gobj_read_str_attr, ze as gobj_remove_persistent_attrs, Oe as gobj_repr_global_trace_levels, ln as gobj_reset_volatil_attrs, He as gobj_save_persistent_attrs, Ht as gobj_search_path, Tn as gobj_send_event, We as gobj_services, Pt as gobj_set_bottom_gobj, he as gobj_set_deep_trace, Te as gobj_set_gclass_no_trace, Ee as gobj_set_gclass_trace, ae as gobj_set_global_no_trace, fe as gobj_set_global_no_trace2, se as gobj_set_global_trace, ce as gobj_set_global_trace2, ve as gobj_set_gobj_no_trace, ye as gobj_set_gobj_trace, x as gobj_set_trace_machine_format, Rt as gobj_short_name, at as gobj_start, _t as gobj_start_children, ft as gobj_start_tree, Se as gobj_start_up, Fn as gobj_stats, gt as gobj_stop, bt as gobj_stop_children, pt as gobj_stop_tree, Dn as gobj_subscribe_event, Z as gobj_trace_level, K as gobj_trace_machine_format, ee as gobj_trace_no_level, An as gobj_unsubscribe_event, kn as gobj_unsubscribe_list, Ft as gobj_walk_gobj_children, Vt as gobj_walk_gobj_children_tree, rn as gobj_write_attr, on as gobj_write_attrs, sn as gobj_write_bool_attr, an as gobj_write_integer_attr, un as gobj_write_str_attr, Ot as gobj_yuno, wt as gobj_yuno_id, St as gobj_yuno_name, Nt as gobj_yuno_role, $o as html_markup, to as id_index_in_obj_list, xo as index_in_list, rl as is_array, il as is_boolean, ul as is_date, _l as is_function, cl as is_gobj, Ro as is_html_markup, El as is_metadata_key, sl as is_null, ol as is_number, nl as is_object, yl as is_private_key, al as is_pure_number, Tr as is_secret_name, ll as is_string, mo as jdb_delete, Eo as jdb_get, yo as jdb_get_by_idx, ho as jdb_get_topic, bo as jdb_init, po as jdb_update, ei as json2flat, qr as json_array_append, Hr as json_array_append_new, Qr as json_array_extend, zr as json_array_remove, Zr as json_array_size, Fr as json_deep_copy, Gr as json_is_identical, Pr as json_mask_secrets, Yr as json_object_del, Kr as json_object_get, Br as json_object_set, Jr as json_object_set_new, Xr as json_object_size, Mr as json_object_update, Wr as json_object_update_existing, xr as json_object_update_missing, el as json_size, So as jwt2json, Oo as jwtDecode, xl as kw_clone_by_keys, Kl as kw_clone_by_not_keys, Wl as kw_collect, jl as kw_delete, Gl as kw_find_json_in_list, wl as kw_find_path, Vn as kw_flag_t, $l as kw_get_bool, Il as kw_get_dict, Cl as kw_get_dict_value, Rl as kw_get_int, Ll as kw_get_list, Yl as kw_get_local_storage_value, kl as kw_get_pointer, Dl as kw_get_real, Al as kw_get_str, vl as kw_has_key, Vl as kw_match_simple, Tl as kw_pop, Jl as kw_remove_local_storage_value, Ml as kw_select, Pl as kw_set_dict_value, Bl as kw_set_local_storage_value, Ul as kw_set_subdict_value, Hl as kwid_collect, Xl as kwid_find_one_record, Zl as kwid_get_ids, ql as kwid_match_id, zl as kwid_new_dict, Ql as kwid_new_list, eo as list2options, co as load_json_file, dr as log_debug, cr as log_error, gr as log_info, fr as log_warning, Ar as mask_secrets_inline, _o as msg_iev_get_msg_type, ao as msg_iev_get_stack, so as msg_iev_push_stack, oo as msg_iev_read_key, uo as msg_iev_set_msg_type, io as msg_iev_write_key, Ko as node_uuid, gl as parseBoolean, Fo as parseSVG, Vo as refresh_language, _s as register_c_ievent_cli, Ni as register_c_timer, Vi as register_c_yuno, wo as safeSrc, v as sdata_flag_t, fo as send_http_json_post, zn as set_console_log_enabled, Xn as set_console_log_filter, qn as set_log_callback, rr as set_remote_log_functions, Io as set_strings_are_text, wi as set_timeout, ji as set_timeout_periodic, t as sprintf, i as stats_parser, no as str_in_list, pl as strcasecmp, bl as strcmp, Co as strings_are_text, dl as strncmp, ro as strs_in_list, hl as strstr, hi as template_get_field_desc, Go as timeTracker, pr as trace_json, Ur as trace_json_masked, B as trace_level_t, br as trace_msg, ci as treedb_decoder_fkey, gi as treedb_decoder_hook, fi as treedb_encoder_fkey, mi as treedb_get_field_desc, _i as treedb_hook_data_size, n as vsprintf, F as walk_type_t };
|
|
3803
3854
|
|
|
3804
3855
|
//# sourceMappingURL=gobj-js.es.min.js.map
|