@yuneta/gobj-js 7.25.0 β 7.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gobj-js.cjs.js +11 -7
- package/dist/gobj-js.cjs.js.map +1 -1
- package/dist/gobj-js.cjs.min.js +1 -8
- package/dist/gobj-js.cjs.min.js.map +1 -1
- package/dist/gobj-js.es.js +11 -7
- package/dist/gobj-js.es.js.map +1 -1
- package/dist/gobj-js.es.min.js +59 -66
- package/dist/gobj-js.es.min.js.map +1 -1
- package/dist/gobj-js.iife.js +11 -7
- package/dist/gobj-js.iife.js.map +1 -1
- package/dist/gobj-js.iife.min.js +1 -8
- package/dist/gobj-js.iife.min.js.map +1 -1
- package/dist/gobj-js.umd.js +11 -7
- package/dist/gobj-js.umd.js.map +1 -1
- package/dist/gobj-js.umd.min.js +1 -8
- package/dist/gobj-js.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/gobj-js.es.min.js
CHANGED
|
@@ -169,11 +169,11 @@ var v = Object.freeze({
|
|
|
169
169
|
SDF_AUTHZ_RS: 1048576
|
|
170
170
|
});
|
|
171
171
|
v.SDF_RD, v.SDF_WR, v.SDF_STATS, v.SDF_PERSIST, v.SDF_VOLATIL, v.SDF_RSTATS, v.SDF_PSTATS, v.SDF_WR, v.SDF_PERSIST;
|
|
172
|
-
var
|
|
172
|
+
var O = class {
|
|
173
173
|
constructor(e, t, n = 0, r = null, l = "", o = null, i = null, s = 0, a = null, u = null, _ = null) {
|
|
174
174
|
this.type = e, this.name = t, this.alias = o, this.flag = n, this.default_value = r, this.header = i, this.fillspace = s, this.description = l, this.json_fn = a, this.schema = u, this.authpth = _;
|
|
175
175
|
}
|
|
176
|
-
},
|
|
176
|
+
}, S = () => new O(0, null), N = (e, t, n, r, l) => new O(e, t, n, r, l), R = (e, t, n, r, l, o) => new O(e, t, 0, null, o, n, null, 0, l, r, null), w = (e, t, n, r, l, o, i) => new O(e, t, n, null, i, r, null, 0, o, l, null), j = (e, t, n, r, l) => new O(e, t, n, r, l), D = (e, t, n, r, l, o) => new O(e, t, n, null, o, r, null, 0, null, l, null), A = (e, t, n, r, l) => new O(e, t, n, null, l, null, null, 0, null, null, r), $ = (e, t, n, r, l, o) => new O(e, t, n, null, o, null, r, l), I = class {
|
|
177
177
|
constructor(e, t, n, r, l, o, i, s, a) {
|
|
178
178
|
this.gclass_name = e, this.dl_states = [], this.dl_events = [], this.gmt = t, this.lmt = n, this.attrs_table = r, this.priv = l, this.authz_table = o, this.command_table = i, this.s_user_trace_level = s, this.gclass_flag = Number(a) || 0, this.instances = 0, this.trace_level = 0, this.no_trace_level = 0, this.jn_trace_filter = null, this.fsm_checked = !1;
|
|
179
179
|
}
|
|
@@ -442,7 +442,7 @@ function ve(e, t, n) {
|
|
|
442
442
|
const r = X(t, "gobj_set_gobj_no_trace", e.gclass && e.gclass.s_user_trace_level || null);
|
|
443
443
|
return r ? (n ? e.no_trace_level |= r : e.no_trace_level &= ~r, 0) : -1;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function Oe() {
|
|
446
446
|
return J.map(([e, t, n]) => ({
|
|
447
447
|
name: e,
|
|
448
448
|
bit: t,
|
|
@@ -450,7 +450,7 @@ function Se() {
|
|
|
450
450
|
set: !!(q & t)
|
|
451
451
|
}));
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Se(e, t, n, r, l, o, i) {
|
|
454
454
|
u = t, _ = n, c = r, f = l, g = o, d = i;
|
|
455
455
|
const s = [["EV_STATE_CHANGED", U.EVF_SYSTEM_EVENT | U.EVF_OUTPUT_EVENT | U.EVF_NO_WARN_SUBS], [0, 0]];
|
|
456
456
|
for (let e = 0; e < s.length; e++) {
|
|
@@ -664,7 +664,7 @@ function Ge(e, t) {
|
|
|
664
664
|
function Ve(e) {
|
|
665
665
|
if (!(e instanceof I)) return rr("Cannot add state, typeof not GClass"), -1;
|
|
666
666
|
let t = 0;
|
|
667
|
-
|
|
667
|
+
Sr(e.dl_states) || (rr(`GClass without states: ${e.gclass_name}`), t += -1);
|
|
668
668
|
for (let n = 0; n < e.dl_states.length; n++) {
|
|
669
669
|
let r = e.dl_states[n];
|
|
670
670
|
if (!Ur(r.state_name)) for (let n = 0; n < r.dl_actions.length; n++) {
|
|
@@ -872,19 +872,19 @@ function yt(e) {
|
|
|
872
872
|
function vt(e) {
|
|
873
873
|
return !Ct(e) && e.playing;
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function Ot() {
|
|
876
876
|
return !E || E.obflag & P.obflag_destroyed ? null : E;
|
|
877
877
|
}
|
|
878
|
-
function
|
|
879
|
-
let e =
|
|
878
|
+
function St() {
|
|
879
|
+
let e = Ot();
|
|
880
880
|
return e ? wt(e) : "";
|
|
881
881
|
}
|
|
882
882
|
function Nt() {
|
|
883
|
-
let e =
|
|
883
|
+
let e = Ot();
|
|
884
884
|
return e ? tn(e, "yuno_role") : "";
|
|
885
885
|
}
|
|
886
886
|
function Rt() {
|
|
887
|
-
let e =
|
|
887
|
+
let e = Ot();
|
|
888
888
|
return e ? tn(e, "yuno_id") : "";
|
|
889
889
|
}
|
|
890
890
|
function wt(e) {
|
|
@@ -1206,14 +1206,14 @@ function yn(e, n, r, l) {
|
|
|
1206
1206
|
let i = oe(e, n) && !ie(l, n);
|
|
1207
1207
|
T++;
|
|
1208
1208
|
let s = Ce(o, n);
|
|
1209
|
-
if (!s) return e.gclass.gmt.mt_inject_event ? (T--, i && (Y(1 === W ? t("π %s %s%s %s", n || "", e.running ? "" : "!!", Dt(e), o.state_name) : t("π mach(%s%s), st: %s, ev: %s, from(%s%s)", e.running ? "" : "!!", Dt(e), o.state_name, n || "", l && !l.running ? "!!" : "", Dt(l))), r && le(e) &&
|
|
1209
|
+
if (!s) return e.gclass.gmt.mt_inject_event ? (T--, i && (Y(1 === W ? t("π %s %s%s %s", n || "", e.running ? "" : "!!", Dt(e), o.state_name) : t("π mach(%s%s), st: %s, ev: %s, from(%s%s)", e.running ? "" : "!!", Dt(e), o.state_name, n || "", l && !l.running ? "!!" : "", Dt(l))), r && le(e) && Or(r) && ar(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 ? "" : "!!", jt(e), wt(e), o.state_name, n || "", l && !l.running ? "!!" : "", jt(l), wt(l))), rr(`ππ Event NOT DEFINED in state ππ: ${Dt(e)}, ${o.state_name}, ${n}`), T--, -1);
|
|
1210
1210
|
if (i) {
|
|
1211
1211
|
if (1 === W) Y(t("π %s %s%s %s from %s%s", n || "", e.running ? "" : "!!", Dt(e), o.state_name, l && !l.running ? "!!" : "", Dt(l)));
|
|
1212
1212
|
else {
|
|
1213
1213
|
let r = "";
|
|
1214
1214
|
s.action && (r = oo(s.action)), Y(t("π mach(%s%s^%s), st: %s, ev: %s%s%s, ac: %s, from(%s%s^%s)", e.running ? "" : "!!", jt(e), wt(e), o.state_name, "", n || "", "", r, l && !l.running ? "!!" : "", jt(l), wt(l)));
|
|
1215
1215
|
}
|
|
1216
|
-
r && le(e) &&
|
|
1216
|
+
r && le(e) && Or(r) && ar(r);
|
|
1217
1217
|
}
|
|
1218
1218
|
s.next_state && _n(e, s.next_state);
|
|
1219
1219
|
let a = -1;
|
|
@@ -1225,7 +1225,7 @@ function yn(e, n, r, l) {
|
|
|
1225
1225
|
var vn = Object.freeze({
|
|
1226
1226
|
__hard_subscription__: 1,
|
|
1227
1227
|
__own_event__: 2
|
|
1228
|
-
}),
|
|
1228
|
+
}), On = [
|
|
1229
1229
|
N(y.DTP_POINTER, "publisher", 0, null, "publisher gobj"),
|
|
1230
1230
|
N(y.DTP_POINTER, "subscriber", 0, null, "subscriber gobj"),
|
|
1231
1231
|
N(y.DTP_STRING, "event", 0, "", "event name subscribed"),
|
|
@@ -1236,9 +1236,9 @@ var vn = Object.freeze({
|
|
|
1236
1236
|
N(y.DTP_JSON, "__local__", 0, null, "local kw, remove in publishing"),
|
|
1237
1237
|
N(y.DTP_JSON, "__filter__", 0, null, "filter kw, filter in publishing"),
|
|
1238
1238
|
N(y.DTP_STRING, "__service__", 0, "", "subscription service"),
|
|
1239
|
-
|
|
1239
|
+
S()
|
|
1240
1240
|
];
|
|
1241
|
-
function
|
|
1241
|
+
function Sn(e, t, n, r, l) {
|
|
1242
1242
|
let o = tl(t, r, "__config__", null), i = tl(t, r, "__global__", null), s = tl(t, r, "__local__", null), a = nl(t, r, "__filter__", null), u = !0;
|
|
1243
1243
|
if (t && t !== el(null, e, "publisher", null) && (u = !1), l && l !== el(null, e, "subscriber", null) && (u = !1), n && n !== Zr(null, e, "event", "") && (u = !1), Nr(o) > 0) {
|
|
1244
1244
|
let t = tl(null, e, "__config__", null);
|
|
@@ -1262,12 +1262,12 @@ function Nn(e, t, n, r, l) {
|
|
|
1262
1262
|
let o = [];
|
|
1263
1263
|
for (let i = 0; i < e.length; i++) {
|
|
1264
1264
|
let s = e[i];
|
|
1265
|
-
|
|
1265
|
+
Sn(s, t, n, r, l) && hr(o, s);
|
|
1266
1266
|
}
|
|
1267
1267
|
return o;
|
|
1268
1268
|
}
|
|
1269
1269
|
function Rn(e, t, n, r, l) {
|
|
1270
|
-
for (let o = 0; o < e.length; o++) if (
|
|
1270
|
+
for (let o = 0; o < e.length; o++) if (Sn(e[o], t, n, r, l)) return o;
|
|
1271
1271
|
return -1;
|
|
1272
1272
|
}
|
|
1273
1273
|
function wn(e, n, r, l) {
|
|
@@ -1292,9 +1292,9 @@ function jn(e, n, r, l) {
|
|
|
1292
1292
|
}), Ur(n)) n = "";
|
|
1293
1293
|
else if (!(bn(e, n, U.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & C.gcflag_no_check_output_events)) return rr(`event NOT in output event list: ${Dt(e)}, ${n}`), 0;
|
|
1294
1294
|
let i = Nn(e.dl_subscriptions, e, n, r, l);
|
|
1295
|
-
|
|
1295
|
+
Sr(i) > 0 && (rr(`${Dt(e)}: ${Sr(i)} subscription(s) REPEATED, will be deleted and override`), ar(i, "subscription REPEATED"), An(e, i, !1));
|
|
1296
1296
|
let s = function(e, t, n, r) {
|
|
1297
|
-
let l = Ne(e,
|
|
1297
|
+
let l = Ne(e, On);
|
|
1298
1298
|
Er(l, "event", t), Er(l, "subscriber", r), Er(l, "publisher", e);
|
|
1299
1299
|
let o = 0;
|
|
1300
1300
|
if (n) {
|
|
@@ -1364,8 +1364,8 @@ function In(e) {
|
|
|
1364
1364
|
return {
|
|
1365
1365
|
subscriptions: t,
|
|
1366
1366
|
subscribings: n,
|
|
1367
|
-
"total subscriptions":
|
|
1368
|
-
total_subscribings:
|
|
1367
|
+
"total subscriptions": Sr(t),
|
|
1368
|
+
total_subscribings: Sr(n)
|
|
1369
1369
|
};
|
|
1370
1370
|
}
|
|
1371
1371
|
function kn(e, t, n, r) {
|
|
@@ -1377,7 +1377,7 @@ function Cn(e, n, r) {
|
|
|
1377
1377
|
let l = gn(e, n, !0);
|
|
1378
1378
|
if (!(l && l.event_flag & (U.EVF_SYSTEM_EVENT | U.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & C.gcflag_no_check_output_events)) return rr(`event NOT in output event list: ${Dt(e)}, ev ${n}`), -1;
|
|
1379
1379
|
let o = (ne(e) || oe(e, n)) && !ie(e, n);
|
|
1380
|
-
if (o && (Y(1 === W ? t("ππ %s %s%s %s", n || "", e.running ? "" : "!!", Dt(e), e.current_state.state_name) : t("ππ mach(%s%s^%s), st: %s, ev: %s%s%s", e.running ? "" : "!!", jt(e), wt(e), e.current_state.state_name, "", n || "", "")), le(e) &&
|
|
1380
|
+
if (o && (Y(1 === W ? t("ππ %s %s%s %s", n || "", e.running ? "" : "!!", Dt(e), e.current_state.state_name) : t("ππ mach(%s%s^%s), st: %s, ev: %s%s%s", e.running ? "" : "!!", jt(e), wt(e), e.current_state.state_name, "", n || "", "")), le(e) && Or(r) && ar(r)), e.gclass.gmt.mt_publish_event) {
|
|
1381
1381
|
let t = e.gclass.gmt.mt_publish_event(e, n, r);
|
|
1382
1382
|
if (t <= 0) return t;
|
|
1383
1383
|
}
|
|
@@ -1399,7 +1399,7 @@ function Cn(e, n, r) {
|
|
|
1399
1399
|
if (!d) continue;
|
|
1400
1400
|
let b = gn(_, n, !0);
|
|
1401
1401
|
if (b && b.event_flag & U.EVF_SYSTEM_EVENT && !dn(_, b.event_name, 0)) continue;
|
|
1402
|
-
i && Br(g, i), l && fr(g, l), o && (Y(1 === W ? t("ππ %s (%s) %s%s", n || "", n || "", _.running ? "" : "!!", Dt(_)) : t("ππ mach(%s%s), st: %s, ev: %s, from(%s%s)", _.running ? "" : "!!", Dt(_), cn(_), n || "", e && !e.running ? "!!" : "", Dt(e))), le(e) &&
|
|
1402
|
+
i && Br(g, i), l && fr(g, l), o && (Y(1 === W ? t("ππ %s (%s) %s%s", n || "", n || "", _.running ? "" : "!!", Dt(_)) : t("ππ mach(%s%s), st: %s, ev: %s, from(%s%s)", _.running ? "" : "!!", Dt(_), cn(_), n || "", e && !e.running ? "!!" : "", Dt(e))), le(e) && Or(g) && ar(g));
|
|
1403
1403
|
let p = yn(_, n, g, e);
|
|
1404
1404
|
if (p < 0 && c & vn.__own_event__) {
|
|
1405
1405
|
s = -1;
|
|
@@ -1615,10 +1615,10 @@ function yr(e, t) {
|
|
|
1615
1615
|
function vr(e, t) {
|
|
1616
1616
|
return t ? (Array.prototype.push.apply(e, t), e) : e;
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1618
|
+
function Or(e) {
|
|
1619
1619
|
return wr(e) ? Object.keys(e).length : 0;
|
|
1620
1620
|
}
|
|
1621
|
-
function
|
|
1621
|
+
function Sr(e) {
|
|
1622
1622
|
return jr(e) ? e.length : 0;
|
|
1623
1623
|
}
|
|
1624
1624
|
function Nr(e) {
|
|
@@ -1773,14 +1773,7 @@ function Zr(e, t, n, r, l) {
|
|
|
1773
1773
|
e && !Pr(e) && rr("GObj bad instanceof");
|
|
1774
1774
|
let o = qr(e, t, n, !1);
|
|
1775
1775
|
const i = l && l & Un.KW_REQUIRED, s = l && l & Un.KW_CREATE, a = l && l & Un.KW_EXTRACT;
|
|
1776
|
-
|
|
1777
|
-
if (s) {
|
|
1778
|
-
let l = String(r);
|
|
1779
|
-
return ll(e, t, n, l), l;
|
|
1780
|
-
}
|
|
1781
|
-
return i && (rr(`path not found: '${n}'`), ar(t)), String(r);
|
|
1782
|
-
}
|
|
1783
|
-
return a && Hr(e, t, n), Dr(o) ? String(o) : (i && (rr(`${Dt(e)}: path value MUST BE a string: ${n}`), sr(t)), String(r));
|
|
1776
|
+
return void 0 === o ? s ? (ll(e, t, n, Dr(r) ? r : null), r) : (i && (rr(`path not found: '${n}'`), ar(t)), r) : (a && Hr(e, t, n), Dr(o) ? o : (i && (rr(`${Dt(e)}: path value MUST BE a string: ${n}`), sr(t)), r));
|
|
1784
1777
|
}
|
|
1785
1778
|
function el(e, t, n, r, l) {
|
|
1786
1779
|
e && !Pr(e) && rr("GObj bad instanceof");
|
|
@@ -1922,9 +1915,9 @@ function cl(e, t, n, r) {
|
|
|
1922
1915
|
if (Dr(n) && !Ur(n)) {
|
|
1923
1916
|
let o = n;
|
|
1924
1917
|
t.hasOwnProperty(o) ? l[o] = t[o] : r && rr(`${Dt(e)}: key not found: ${o}`);
|
|
1925
|
-
} else if (wr(n) &&
|
|
1918
|
+
} else if (wr(n) && Or(n) > 0) for (let o of Object.keys(n)) t.hasOwnProperty(o) ? l[o] = t[o] : r && rr(`${Dt(e)}: key not found: ${o}`);
|
|
1926
1919
|
else {
|
|
1927
|
-
if (!(jr(n) &&
|
|
1920
|
+
if (!(jr(n) && Sr(n) > 0)) return t;
|
|
1928
1921
|
for (let o = 0; o < n.length; o++) {
|
|
1929
1922
|
let i = n[o];
|
|
1930
1923
|
t.hasOwnProperty(i) ? l[i] = t[i] : r && rr(`${Dt(e)}: key not found: ${i}`);
|
|
@@ -1937,9 +1930,9 @@ function fl(e, t, n, r) {
|
|
|
1937
1930
|
if (fr(l, t), Dr(n) && !Ur(n)) {
|
|
1938
1931
|
let o = n;
|
|
1939
1932
|
nl(e, t, o, 0, 0) ? pr(l, o) : r && rr(`${Dt(e)}: key not found: ${o}`);
|
|
1940
|
-
} else if (wr(n) &&
|
|
1933
|
+
} else if (wr(n) && Or(n) > 0) for (let o of Object.keys(n)) t.hasOwnProperty(o) ? pr(l, o) : r && rr(`${Dt(e)}: key not found: ${o}`);
|
|
1941
1934
|
else {
|
|
1942
|
-
if (!(jr(n) &&
|
|
1935
|
+
if (!(jr(n) && Sr(n) > 0)) return {};
|
|
1943
1936
|
for (let o = 0; o < n.length; o++) {
|
|
1944
1937
|
let i = n[o];
|
|
1945
1938
|
t.hasOwnProperty(i) ? pr(l, i) : r && rr(`${Dt(e)}: key not found: ${i}`);
|
|
@@ -2084,12 +2077,12 @@ function vl(e, t, n) {
|
|
|
2084
2077
|
else rr("list2options(): case2 not implemented");
|
|
2085
2078
|
return r;
|
|
2086
2079
|
}
|
|
2087
|
-
function
|
|
2080
|
+
function Ol(e, t) {
|
|
2088
2081
|
if (!e) return -1;
|
|
2089
2082
|
for (let n = 0; n < e.length; n++) if (e[n] && e[n].id === t) return n;
|
|
2090
2083
|
return -1;
|
|
2091
2084
|
}
|
|
2092
|
-
function
|
|
2085
|
+
function Sl(e, t, n) {
|
|
2093
2086
|
if (!e || !t) return rr("ERROR: str_in_list() list or str empty"), !1;
|
|
2094
2087
|
let r = e.length;
|
|
2095
2088
|
if (n) {
|
|
@@ -2104,7 +2097,7 @@ function Ol(e, t, n) {
|
|
|
2104
2097
|
function Nl(e, t, n) {
|
|
2105
2098
|
if (!e) return rr("ERROR: strs_in_list() list empty"), !1;
|
|
2106
2099
|
if (!t) return rr("ERROR: strs_in_list() str empty"), !1;
|
|
2107
|
-
for (let r = 0; r < t.length; r++) if (
|
|
2100
|
+
for (let r = 0; r < t.length; r++) if (Sl(e, t[r], n)) return !0;
|
|
2108
2101
|
return !1;
|
|
2109
2102
|
}
|
|
2110
2103
|
function Rl(e, t) {
|
|
@@ -2207,10 +2200,10 @@ function Fl(e, t, n, r) {
|
|
|
2207
2200
|
let o, i = n.split("`"), s = l;
|
|
2208
2201
|
for (; (o = i.shift()) && !Ur(o) && s;) wr(s) && (s = nl(null, s, e.hook, null, 0)), s = Wl(s, null, o, !1);
|
|
2209
2202
|
if (0 === i.length && s) if (jr(s)) {
|
|
2210
|
-
let e =
|
|
2203
|
+
let e = Ol(s, r.id);
|
|
2211
2204
|
e >= 0 && s.splice(e, 1);
|
|
2212
2205
|
} else {
|
|
2213
|
-
let t = nl(null, s, e.hook, null, 0), n =
|
|
2206
|
+
let t = nl(null, s, e.hook, null, 0), n = Ol(t, r.id);
|
|
2214
2207
|
n >= 0 && t.splice(n, 1);
|
|
2215
2208
|
}
|
|
2216
2209
|
return l;
|
|
@@ -2555,13 +2548,13 @@ function yo(e, t) {
|
|
|
2555
2548
|
}
|
|
2556
2549
|
function vo(e, t) {
|
|
2557
2550
|
let n = fl(e, gl(ho(e), null, !1), t, !1);
|
|
2558
|
-
0 ===
|
|
2551
|
+
0 === Or(n) ? bl(ho(e)) : dl(ho(e), n);
|
|
2559
2552
|
}
|
|
2560
|
-
function
|
|
2553
|
+
function Oo(e, t) {
|
|
2561
2554
|
let n = gl(ho(e), null, !1), r = {};
|
|
2562
2555
|
return n && wr(n) && (r = cl(e, n, t, !1)), r;
|
|
2563
2556
|
}
|
|
2564
|
-
function
|
|
2557
|
+
function So(e) {
|
|
2565
2558
|
if (jr(e) && 1 === Nr(e)) {
|
|
2566
2559
|
let t = e[0];
|
|
2567
2560
|
return Jr(t, "size") ? t.size : 1;
|
|
@@ -2572,7 +2565,7 @@ function No(e, t) {
|
|
|
2572
2565
|
if (Dr(t)) {
|
|
2573
2566
|
if (-1 === t.indexOf("^")) {
|
|
2574
2567
|
let n, r, l = e.fkey;
|
|
2575
|
-
if (1 !==
|
|
2568
|
+
if (1 !== Or(l)) return rr("bad fkey 1"), rr(e), rr(t), null;
|
|
2576
2569
|
for (const e of Object.keys(l)) {
|
|
2577
2570
|
n = e, r = l[e];
|
|
2578
2571
|
break;
|
|
@@ -2606,7 +2599,7 @@ function wo(e, t) {
|
|
|
2606
2599
|
if (Dr(t)) {
|
|
2607
2600
|
if (-1 === t.indexOf("^")) {
|
|
2608
2601
|
let n, r = e.hook;
|
|
2609
|
-
if (1 !==
|
|
2602
|
+
if (1 !== Or(r)) return rr("bad hook 1"), rr(e), rr(t), null;
|
|
2610
2603
|
for (let e of Object.keys(r)) {
|
|
2611
2604
|
n = e, r[e];
|
|
2612
2605
|
break;
|
|
@@ -2699,7 +2692,7 @@ function $o(e) {
|
|
|
2699
2692
|
if (!e.flag) return t;
|
|
2700
2693
|
for (let n = 0; n < e.flag.length; n++) {
|
|
2701
2694
|
let r = e.flag[n];
|
|
2702
|
-
if (
|
|
2695
|
+
if (Sl(Ao, r)) {
|
|
2703
2696
|
switch (r) {
|
|
2704
2697
|
case "enum":
|
|
2705
2698
|
t.enum_list = e.enum;
|
|
@@ -2713,7 +2706,7 @@ function $o(e) {
|
|
|
2713
2706
|
case "file": t.is_file = !0;
|
|
2714
2707
|
}
|
|
2715
2708
|
t.type = r;
|
|
2716
|
-
} else if (
|
|
2709
|
+
} else if (Sl(Do, r)) switch (r) {
|
|
2717
2710
|
case "writable":
|
|
2718
2711
|
t.is_writable = !0;
|
|
2719
2712
|
break;
|
|
@@ -2744,9 +2737,9 @@ function Io(e, t) {
|
|
|
2744
2737
|
let e = t.split(".");
|
|
2745
2738
|
for (let t = 0; t < e.length; t++) {
|
|
2746
2739
|
let r = e[t];
|
|
2747
|
-
if (
|
|
2748
|
-
else if (
|
|
2749
|
-
else if (
|
|
2740
|
+
if (Sl(jo, r)) n.real_type || (n.real_type = r);
|
|
2741
|
+
else if (Sl(Ao, r)) n.type || (n.type = r);
|
|
2742
|
+
else if (Sl(Do, r)) switch (r) {
|
|
2750
2743
|
case "writable":
|
|
2751
2744
|
n.is_writable = !0;
|
|
2752
2745
|
break;
|
|
@@ -2774,7 +2767,7 @@ var Co = [
|
|
|
2774
2767
|
N(y.DTP_POINTER, "subscriber", 0, null, "Subscriber of output events"),
|
|
2775
2768
|
N(y.DTP_BOOLEAN, "periodic", 0, 0, "True for periodic timeouts"),
|
|
2776
2769
|
N(y.DTP_INTEGER, "msec", 0, 0, "Timeout in milliseconds"),
|
|
2777
|
-
|
|
2770
|
+
S()
|
|
2778
2771
|
], Lo = {
|
|
2779
2772
|
periodic: !1,
|
|
2780
2773
|
msec: 0,
|
|
@@ -2854,7 +2847,7 @@ var Ko = [
|
|
|
2854
2847
|
N(y.DTP_POINTER, "trace_ievent_callback", 0, null, "Where the traffic trace goes (C_IEVENT_CLI levels ievents/ievents2); console when null"),
|
|
2855
2848
|
N(y.DTP_BOOLEAN, "developer", 0, !1, "Developer mode enabled"),
|
|
2856
2849
|
N(y.DTP_INTEGER, "periodic_timeout", 0, "1000", "Timeout periodic, in miliseconds."),
|
|
2857
|
-
|
|
2850
|
+
S()
|
|
2858
2851
|
], xo = { gobj_timer: null }, Yo = null;
|
|
2859
2852
|
function Bo(e, t, n, r) {
|
|
2860
2853
|
let l = zt(e, t);
|
|
@@ -2866,7 +2859,7 @@ function Jo(e) {
|
|
|
2866
2859
|
return "true" === t || "set" === t || "false" !== t && "reset" !== t && ("" === t || isNaN(Number(t)) ? null : !!Number(t));
|
|
2867
2860
|
}
|
|
2868
2861
|
function qo() {
|
|
2869
|
-
return `${Nt()}^${
|
|
2862
|
+
return `${Nt()}^${St()}`;
|
|
2870
2863
|
}
|
|
2871
2864
|
function Ho(e, t, n, r) {
|
|
2872
2865
|
return Cn(e, t, n), 0;
|
|
@@ -2971,7 +2964,7 @@ var Xo = "ievent_gate_stack", Zo = [
|
|
|
2971
2964
|
N(y.DTP_INTEGER, "timeout_retry_max", v.SDF_RD, "60000", "Cap of the reconnect backoff (ms). Set it equal to timeout_retry for the old fixed-interval behaviour"),
|
|
2972
2965
|
N(y.DTP_INTEGER, "timeout_idack", v.SDF_RD, "5000", "timeout waiting idAck"),
|
|
2973
2966
|
N(y.DTP_POINTER, "subscriber", 0, 0, "subscriber of output-events. If null then subscriber is the parent"),
|
|
2974
|
-
|
|
2967
|
+
S()
|
|
2975
2968
|
], ei = [
|
|
2976
2969
|
["ievents", "Trace inter-events with metadata of kw"],
|
|
2977
2970
|
["ievents2", "Trace inter-events with full kw"],
|
|
@@ -3009,7 +3002,7 @@ function li(e) {
|
|
|
3009
3002
|
data: n.data
|
|
3010
3003
|
}, e);
|
|
3011
3004
|
}, n.onclose = (n) => {
|
|
3012
|
-
Ct(e) || (Zt(
|
|
3005
|
+
Ct(e) || (Zt(Ot(), "browser_beforeunload") ? lr("Close websocket by unload page") : yn(e, "EV_ON_CLOSE", {
|
|
3013
3006
|
url: t,
|
|
3014
3007
|
e: n
|
|
3015
3008
|
}, e));
|
|
@@ -3043,7 +3036,7 @@ function ai(e, t, n, r) {
|
|
|
3043
3036
|
return function(e, t) {
|
|
3044
3037
|
let n = e.priv, r = JSON.stringify(t);
|
|
3045
3038
|
if (ti(e)) {
|
|
3046
|
-
let n = tn(e, "url"), l = wt(
|
|
3039
|
+
let n = tn(e, "url"), l = wt(Ot()) + " ==> " + n, o = zt(Ot(), "trace_ievent_callback");
|
|
3047
3040
|
o ? o(l, t, 1, r.length) : ii(0, l, t);
|
|
3048
3041
|
}
|
|
3049
3042
|
if (!n.websocket || n.websocket.readyState !== WebSocket.OPEN) return lr(`${Dt(e)}: send_iev(): websocket not open, message lost`), -1;
|
|
@@ -3062,19 +3055,19 @@ function ui(e, t, n) {
|
|
|
3062
3055
|
dst_yuno: tn(e, "wanted_yuno_name"),
|
|
3063
3056
|
dst_role: tn(e, "wanted_yuno_role"),
|
|
3064
3057
|
dst_service: n,
|
|
3065
|
-
src_yuno:
|
|
3058
|
+
src_yuno: St(),
|
|
3066
3059
|
src_role: Nt(),
|
|
3067
3060
|
src_service: t,
|
|
3068
3061
|
host: ro()
|
|
3069
3062
|
};
|
|
3070
3063
|
}
|
|
3071
3064
|
function _i(e) {
|
|
3072
|
-
let t = e.priv, n = vt(
|
|
3073
|
-
i && i.length || (i = zt(
|
|
3065
|
+
let t = e.priv, n = vt(Ot()), r = tn(Ot(), "yuno_version"), l = tn(Ot(), "yuno_release"), o = tn(Ot(), "yuno_tag"), i = zt(e, "required_services");
|
|
3066
|
+
i && i.length || (i = zt(Ot(), "required_services"));
|
|
3074
3067
|
let s = {
|
|
3075
3068
|
yuno_role: Nt(),
|
|
3076
3069
|
yuno_id: Rt(),
|
|
3077
|
-
yuno_name:
|
|
3070
|
+
yuno_name: St(),
|
|
3078
3071
|
yuno_tag: o,
|
|
3079
3072
|
yuno_version: r,
|
|
3080
3073
|
yuno_release: l,
|
|
@@ -3083,9 +3076,9 @@ function _i(e) {
|
|
|
3083
3076
|
pid: 0,
|
|
3084
3077
|
watcher_pid: 0,
|
|
3085
3078
|
jwt: tn(e, "jwt"),
|
|
3086
|
-
username: tn(
|
|
3079
|
+
username: tn(Ot(), "__username__"),
|
|
3087
3080
|
launch_id: 0,
|
|
3088
|
-
yuno_startdate: tn(
|
|
3081
|
+
yuno_startdate: tn(Ot(), "start_date"),
|
|
3089
3082
|
id: ro(),
|
|
3090
3083
|
user_agent: "undefined" != typeof window ? window.navigator.userAgent : "",
|
|
3091
3084
|
language: "undefined" != typeof window ? window.navigator.language : "",
|
|
@@ -3188,7 +3181,7 @@ function mi(e, t, n, r) {
|
|
|
3188
3181
|
} : (rr("parsing inter_event: kw not a json object"), null) : (rr("parsing inter_kw: no kw"), null);
|
|
3189
3182
|
}(0, n.data);
|
|
3190
3183
|
if (ti(e)) {
|
|
3191
|
-
let e = wt(
|
|
3184
|
+
let e = wt(Ot()) + " <== " + l, t = n.data.length, r = zt(Ot(), "trace_ievent_callback");
|
|
3192
3185
|
r ? r(e, o, 2, t) : ii(0, e, o);
|
|
3193
3186
|
}
|
|
3194
3187
|
let i = o.event, s = o.kw;
|
|
@@ -3385,6 +3378,6 @@ function yi() {
|
|
|
3385
3378
|
], t, Ti, 0, Zo, ni, 0, 0, ei, C.gcflag_no_check_output_events)) ? 0 : -1;
|
|
3386
3379
|
}("C_IEVENT_CLI");
|
|
3387
3380
|
}
|
|
3388
|
-
export { k as GObj, N as SDATA, D as SDATAAUTHZ, R as SDATACM, w as SDATACM2, $ as SDATADF, j as SDATAPM, A as SDATAPM0,
|
|
3381
|
+
export { k as GObj, N as SDATA, D as SDATAAUTHZ, R as SDATACM, w as SDATACM2, $ as SDATADF, j as SDATAPM, A as SDATAPM0, S as SDATA_END, O as SDataDesc, a as YUNETA_VERSION, E as __yuno__, o as build_command_response, so as build_path, s as build_stats_response, lo as clean_name, Wo as clear_timeout, Wr as cmp_two_simple_json, l as command_parser, Hl as createElement2, ql as createOneHtml, Kl as create_json_record, ko as create_template_record, eo as current_timestamp, y as data_type_t, Oo as db_list_persistent_attrs, To as db_load_persistent_attrs, vo as db_remove_persistent_attrs, yo as db_save_persistent_attrs, io as debounce, Rl as delete_from_list, _r as duplicate_objects, Rr as empty_json, Ur as empty_string, Bl as escapeHtml, U as event_flag_t, bo as flat2json, Eo as flat_apply, mo as flat_diff, co as flat_key_join, fo as flat_key_split, Pe as gclass_add_ev_action, Fe as gclass_add_event_type, Le as gclass_add_state, Ve as gclass_check_fsm, $e as gclass_create, Ge as gclass_event_type, Me as gclass_find_by_name, C as gclass_flag_t, Ie as gclass_unregister, Ql as getPositionRelativeToBody, oo as get_function_name, to as get_now, Lt as gobj_bottom_gobj, fn as gobj_change_parent, _n as gobj_change_state, Ln 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, Ke as gobj_default_service, Tn as gobj_deliver_posted_events, st as gobj_destroy, Bt as gobj_find_child, xt as gobj_find_gobj, xe as gobj_find_service, kn as gobj_find_subscribings, $n as gobj_find_subscriptions, L as gobj_flag_t, At as gobj_full_name, jt 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, Qt as gobj_has_attr, dn as gobj_has_event, bn as gobj_has_output_event, je as gobj_hsdata, Ct as gobj_is_destroying, vt as gobj_is_playing, kt as gobj_is_pure_child, ht as gobj_is_running, yt as gobj_is_service, It as gobj_is_volatil, ze as gobj_list_persistent_attrs, In 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, wt as gobj_name, $t as gobj_parent, Et as gobj_pause, mt as gobj_play, En as gobj_post_event, hn as gobj_posted_events_size, Cn as gobj_publish_event, zt 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, Qe 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, yn as gobj_send_event, We as gobj_services, Pt as gobj_set_bottom_gobj, Ee as gobj_set_deep_trace, ye as gobj_set_gclass_no_trace, he 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, Te as gobj_set_gobj_trace, K as gobj_set_trace_machine_format, Dt as gobj_short_name, at as gobj_start, _t as gobj_start_children, ft as gobj_start_tree, Se as gobj_start_up, Pn as gobj_stats, gt as gobj_stop, bt as gobj_stop_children, pt as gobj_stop_tree, jn as gobj_subscribe_event, Z as gobj_trace_level, x as gobj_trace_machine_format, ee as gobj_trace_no_level, Dn as gobj_unsubscribe_event, An as gobj_unsubscribe_list, Ft as gobj_walk_gobj_children, Gt 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, Rt as gobj_yuno_id, St as gobj_yuno_name, Nt as gobj_yuno_role, Ol as id_index_in_obj_list, no as index_in_list, jr as is_array, $r as is_boolean, Cr as is_date, Lr as is_function, Pr as is_gobj, xr as is_metadata_key, Ir as is_null, Ar as is_number, wr as is_object, Yr as is_private_key, kr as is_pure_number, Dr as is_string, Fl as jdb_delete, Vl as jdb_get, Ml as jdb_get_by_idx, Gl as jdb_get_topic, Pl as jdb_init, Ul as jdb_update, go as json2flat, hr as json_array_append, Tr as json_array_append_new, vr as json_array_extend, yr as json_array_remove, Sr as json_array_size, ur as json_deep_copy, cr as json_is_identical, pr as json_object_del, br as json_object_get, mr as json_object_set, Er as json_object_set_new, Or as json_object_size, fr as json_object_update, gr as json_object_update_existing, dr as json_object_update_missing, Nr as json_size, Yl as jwt2json, xl as jwtDecode, cl as kw_clone_by_keys, fl as kw_clone_by_not_keys, _l as kw_collect, Hr as kw_delete, al as kw_find_json_in_list, qr as kw_find_path, Un as kw_flag_t, Qr as kw_get_bool, tl as kw_get_dict, nl as kw_get_dict_value, zr as kw_get_int, rl as kw_get_list, gl as kw_get_local_storage_value, el as kw_get_pointer, Xr as kw_get_real, Zr as kw_get_str, Jr as kw_has_key, sl as kw_match_simple, Br as kw_pop, bl as kw_remove_local_storage_value, ul as kw_select, ll as kw_set_dict_value, dl as kw_set_local_storage_value, ol as kw_set_subdict_value, ml as kwid_collect, Tl as kwid_find_one_record, yl as kwid_get_ids, pl as kwid_match_id, El as kwid_new_dict, hl as kwid_new_list, vl as list2options, kl as load_json_file, ir as log_debug, rr as log_error, or as log_info, lr as log_warning, Il as msg_iev_get_msg_type, Al as msg_iev_get_stack, Dl as msg_iev_push_stack, wl as msg_iev_read_key, $l as msg_iev_set_msg_type, jl as msg_iev_write_key, ro as node_uuid, Fr as parseBoolean, zl as parseSVG, Xl as refresh_language, yi as register_c_ievent_cli, Go as register_c_timer, zo as register_c_yuno, Jl as safeSrc, v as sdata_flag_t, Cl as send_http_json_post, qn as set_console_log_enabled, Qn as set_console_log_filter, Bn as set_log_callback, tr as set_remote_log_functions, Vo as set_timeout, Mo as set_timeout_periodic, t as sprintf, i as stats_parser, Sl as str_in_list, Mr as strcasecmp, Vr as strcmp, Gr as strncmp, Nl as strs_in_list, Kr as strstr, Io as template_get_field_desc, Zl as timeTracker, ar as trace_json, B as trace_level_t, sr as trace_msg, No as treedb_decoder_fkey, wo as treedb_decoder_hook, Ro as treedb_encoder_fkey, $o as treedb_get_field_desc, So as treedb_hook_data_size, n as vsprintf, F as walk_type_t };
|
|
3389
3382
|
|
|
3390
3383
|
//# sourceMappingURL=gobj-js.es.min.js.map
|