@yuneta/gobj-js 7.6.7 → 7.7.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 +38 -4
- package/dist/gobj-js.cjs.js.map +1 -1
- package/dist/gobj-js.cjs.min.js +961 -939
- package/dist/gobj-js.cjs.min.js.map +1 -1
- package/dist/gobj-js.es.js +36 -5
- package/dist/gobj-js.es.js.map +1 -1
- package/dist/gobj-js.es.min.js +1020 -995
- package/dist/gobj-js.es.min.js.map +1 -1
- package/dist/gobj-js.iife.js +38 -4
- package/dist/gobj-js.iife.js.map +1 -1
- package/dist/gobj-js.iife.min.js +1113 -1091
- package/dist/gobj-js.iife.min.js.map +1 -1
- package/dist/gobj-js.umd.js +38 -4
- package/dist/gobj-js.umd.js.map +1 -1
- package/dist/gobj-js.umd.min.js +978 -956
- package/dist/gobj-js.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/gobj-js.es.min.js
CHANGED
|
@@ -179,7 +179,7 @@ var O = class {
|
|
|
179
179
|
}
|
|
180
180
|
}, k = class {
|
|
181
181
|
constructor(e, t, n, r, l) {
|
|
182
|
-
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 =
|
|
182
|
+
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 = En(t.priv), this.running = !1, this.playing = !1, this.disabled = !1, this.bottom_gobj = null, this.trace_level = 0, this.no_trace_level = 0;
|
|
183
183
|
}
|
|
184
184
|
}, L = Object.freeze({
|
|
185
185
|
gcflag_manual_start: 1,
|
|
@@ -223,181 +223,188 @@ var O = class {
|
|
|
223
223
|
this.event_name = e, this.event_flag = Number(t) || 0;
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
var M = 0;
|
|
227
|
+
function K(e) {
|
|
228
|
+
M = 1 === Number(e) ? 1 : 0;
|
|
228
229
|
}
|
|
229
|
-
function
|
|
230
|
+
function Y() {
|
|
231
|
+
return M;
|
|
232
|
+
}
|
|
233
|
+
function x(e) {
|
|
234
|
+
Pn(e) && (e = JSON.stringify(e)), bn(" ".repeat(Math.max(0, 2 * T - 1)) + String(e));
|
|
235
|
+
}
|
|
236
|
+
function B(e, t, n, r, l, i, o) {
|
|
230
237
|
u = t, _ = n, c = r, f = l, g = i, d = o;
|
|
231
238
|
const s = [["EV_STATE_CHANGED", C.EVF_SYSTEM_EVENT | C.EVF_OUTPUT_EVENT | C.EVF_NO_WARN_SUBS], [0, 0]];
|
|
232
239
|
for (let e = 0; e < s.length; e++) {
|
|
233
240
|
let t = s[e][0], n = s[e][1];
|
|
234
|
-
|
|
241
|
+
ie(b, t, n);
|
|
235
242
|
}
|
|
236
243
|
return 0;
|
|
237
244
|
}
|
|
238
|
-
function
|
|
245
|
+
function J(e, t) {
|
|
239
246
|
let n = {};
|
|
240
|
-
if (!
|
|
247
|
+
if (!Un(t)) return fn("sdata_desc MUST be an array"), mn(t), n;
|
|
241
248
|
for (let r = 0; r < t.length; r++) {
|
|
242
249
|
const l = t[r];
|
|
243
|
-
l.name &&
|
|
250
|
+
l.name && Q(e, n, l);
|
|
244
251
|
}
|
|
245
252
|
return n;
|
|
246
253
|
}
|
|
247
|
-
function
|
|
254
|
+
function Q(e, t, n) {
|
|
248
255
|
let r, l = n.default_value;
|
|
249
256
|
switch (n.type) {
|
|
250
257
|
case y.DTP_STRING:
|
|
251
258
|
r = String(l);
|
|
252
259
|
break;
|
|
253
260
|
case y.DTP_BOOLEAN:
|
|
254
|
-
r =
|
|
261
|
+
r = Bn(l);
|
|
255
262
|
break;
|
|
256
263
|
case y.DTP_INTEGER:
|
|
257
|
-
r = parseInt(l), isNaN(r) &&
|
|
264
|
+
r = parseInt(l), isNaN(r) && fn(`${Xe(e)}: attr NaN: ${n.name}`);
|
|
258
265
|
break;
|
|
259
266
|
case y.DTP_REAL:
|
|
260
|
-
r = Number(l), isNaN(r) &&
|
|
267
|
+
r = Number(l), isNaN(r) && fn(`${Xe(e)}: attr NaN: ${n.name}`);
|
|
261
268
|
break;
|
|
262
269
|
case y.DTP_LIST:
|
|
263
|
-
if (
|
|
270
|
+
if (Cn(l)) try {
|
|
264
271
|
r = JSON.parse(l);
|
|
265
272
|
} catch (e) {
|
|
266
|
-
|
|
273
|
+
fn(`JSON parse error: ${e.message}`);
|
|
267
274
|
}
|
|
268
275
|
else r = l;
|
|
269
|
-
|
|
276
|
+
Un(r) || (r = []);
|
|
270
277
|
break;
|
|
271
278
|
case y.DTP_DICT:
|
|
272
|
-
if (
|
|
279
|
+
if (Cn(l)) try {
|
|
273
280
|
r = JSON.parse(l);
|
|
274
281
|
} catch (e) {
|
|
275
|
-
|
|
282
|
+
fn(`JSON parse error: ${e.message}`);
|
|
276
283
|
}
|
|
277
284
|
else r = l;
|
|
278
|
-
|
|
285
|
+
Pn(r) || (r = {});
|
|
279
286
|
break;
|
|
280
287
|
case y.DTP_JSON:
|
|
281
|
-
if (
|
|
288
|
+
if (Cn(l)) try {
|
|
282
289
|
r = JSON.parse(l);
|
|
283
290
|
} catch (e) {
|
|
284
|
-
|
|
291
|
+
fn(`JSON parse error: ${e.message}`);
|
|
285
292
|
}
|
|
286
293
|
else r = l;
|
|
287
294
|
break;
|
|
288
295
|
case y.DTP_POINTER: r = l;
|
|
289
296
|
}
|
|
290
|
-
return void 0 === r && (
|
|
297
|
+
return void 0 === r && (fn(`default_value WRONG, it: ${n.name}, value: ${n.default_value}`), r = null), t[n.name] = r, 0;
|
|
291
298
|
}
|
|
292
|
-
function
|
|
299
|
+
function q(e, t, n, r) {
|
|
293
300
|
let l;
|
|
294
301
|
switch (n.type) {
|
|
295
302
|
case y.DTP_STRING:
|
|
296
303
|
if (null == r) l = "";
|
|
297
|
-
else if (
|
|
304
|
+
else if (Cn(r)) l = String(r);
|
|
298
305
|
else {
|
|
299
306
|
let e = JSON.stringify(r);
|
|
300
307
|
e && (l = String(e));
|
|
301
308
|
}
|
|
302
309
|
break;
|
|
303
310
|
case y.DTP_BOOLEAN:
|
|
304
|
-
l =
|
|
311
|
+
l = Bn(r);
|
|
305
312
|
break;
|
|
306
313
|
case y.DTP_INTEGER:
|
|
307
|
-
l = parseInt(r), isNaN(l) &&
|
|
314
|
+
l = parseInt(r), isNaN(l) && fn(`${Xe(e)}: attr NaN: ${n.name}`);
|
|
308
315
|
break;
|
|
309
316
|
case y.DTP_REAL:
|
|
310
|
-
l = Number(r), isNaN(l) &&
|
|
317
|
+
l = Number(r), isNaN(l) && fn(`${Xe(e)}: attr NaN: ${n.name}`);
|
|
311
318
|
break;
|
|
312
319
|
case y.DTP_LIST:
|
|
313
|
-
if (
|
|
320
|
+
if (Cn(r)) try {
|
|
314
321
|
l = JSON.parse(r);
|
|
315
322
|
} catch (e) {
|
|
316
|
-
|
|
323
|
+
fn(`JSON parse error: ${e.message}`);
|
|
317
324
|
}
|
|
318
325
|
else l = r;
|
|
319
|
-
if (!
|
|
326
|
+
if (!Un(l)) return fn(`attr must be an array: ${n.name}`), -1;
|
|
320
327
|
break;
|
|
321
328
|
case y.DTP_DICT:
|
|
322
|
-
if (
|
|
329
|
+
if (Cn(r)) try {
|
|
323
330
|
l = JSON.parse(r);
|
|
324
331
|
} catch (e) {
|
|
325
|
-
|
|
332
|
+
fn(`JSON parse error: ${e.message}`);
|
|
326
333
|
}
|
|
327
334
|
else l = r;
|
|
328
|
-
if (!
|
|
335
|
+
if (!Pn(l)) return fn(`attr must be an object: ${n.name}`), -1;
|
|
329
336
|
break;
|
|
330
337
|
case y.DTP_JSON:
|
|
331
|
-
if (
|
|
338
|
+
if (Cn(r)) try {
|
|
332
339
|
l = JSON.parse(r);
|
|
333
340
|
} catch (e) {
|
|
334
|
-
|
|
341
|
+
fn(`JSON parse error: ${e.message}`);
|
|
335
342
|
}
|
|
336
343
|
else l = r;
|
|
337
|
-
if (!
|
|
344
|
+
if (!Un(l) && !Pn(l)) return fn(`attr must be a json dict/list: ${n.name}`), -1;
|
|
338
345
|
break;
|
|
339
346
|
case y.DTP_POINTER: l = r;
|
|
340
347
|
}
|
|
341
|
-
return void 0 === l &&
|
|
348
|
+
return void 0 === l && fn(`${Xe(e)}: attr undefined: ${n.name}`), t[n.name] = l, Pn(e.priv) && e.priv.hasOwnProperty(n.name) && (e.priv[n.name] = l), e.obflag & U.obflag_created && !(e.obflag & U.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, n.name), 0;
|
|
342
349
|
}
|
|
343
|
-
function
|
|
350
|
+
function z(e) {
|
|
344
351
|
return e.jn_attrs;
|
|
345
352
|
}
|
|
346
|
-
function
|
|
347
|
-
return
|
|
353
|
+
function X(e, t, n) {
|
|
354
|
+
return mt(e, t) ? z(e) : e && e.bottom_gobj ? X(e.bottom_gobj, t, n) : (n && fn(`GClass Attribute NOT FOUND: ${Xe(e)}, attr ${t}`), null);
|
|
348
355
|
}
|
|
349
|
-
function
|
|
350
|
-
if (!(e && e instanceof A)) return n &&
|
|
356
|
+
function H(e, t, n) {
|
|
357
|
+
if (!(e && e instanceof A)) return n && fn("gclass NULL"), null;
|
|
351
358
|
if (!t) return e.attrs_table;
|
|
352
359
|
for (let n = 0; n < e.attrs_table.length; n++) {
|
|
353
360
|
const r = e.attrs_table[n];
|
|
354
361
|
if (r.name && r.name === t) return r;
|
|
355
362
|
}
|
|
356
|
-
return n &&
|
|
363
|
+
return n && fn(`${e.gclass_name}: GClass Attribute NOT FOUND: ${t}`), null;
|
|
357
364
|
}
|
|
358
|
-
function
|
|
359
|
-
if (
|
|
360
|
-
if (e.includes("`") || e.includes("^") || e.includes(".")) return
|
|
361
|
-
if (
|
|
365
|
+
function Z(e, t, n, r, l, i, o, s, a, u, _) {
|
|
366
|
+
if (xn(e)) return fn("gclass_name EMPTY"), null;
|
|
367
|
+
if (e.includes("`") || e.includes("^") || e.includes(".")) return fn(`GClass name CANNOT have '.' or '^' or '\`' char: ${e}`), null;
|
|
368
|
+
if (ue(e)) return fn(`GClass ALREADY exists: ${e}`), null;
|
|
362
369
|
let c = new A(e, r, l, i, o, s, a, u, _);
|
|
363
370
|
(function(e, t) {
|
|
364
|
-
e && e instanceof A ? t ? p[t] ?
|
|
371
|
+
e && e instanceof A ? t ? p[t] ? fn(`gclass ALREADY REGISTERED: ${t}`) : p[t] = e : fn("gclass_name undefined") : fn("gclass undefined");
|
|
365
372
|
})(c, e);
|
|
366
373
|
const f = n.length;
|
|
367
374
|
for (let e = 0; e < f; e++) {
|
|
368
375
|
let t = n[e][0], r = n[e][1];
|
|
369
|
-
if (
|
|
370
|
-
if (
|
|
376
|
+
if (xn(t)) continue;
|
|
377
|
+
if (re(c, t) < 0) return ee(c), null;
|
|
371
378
|
const l = r.length;
|
|
372
379
|
for (let e = 0; e < l; e++) {
|
|
373
380
|
let n = r[e][0], l = r[e][1], i = r[e][2];
|
|
374
|
-
|
|
381
|
+
xn(n) || le(c, t, n, l, i);
|
|
375
382
|
}
|
|
376
383
|
}
|
|
377
384
|
for (let e = 0; e < t.length; e++) {
|
|
378
385
|
let n = t[e][0], r = t[e][1];
|
|
379
|
-
if (!
|
|
380
|
-
if (
|
|
381
|
-
|
|
386
|
+
if (!xn(n)) {
|
|
387
|
+
if (se(c, n)) return fn(`SMachine: event repeated in input_events: ${n}`), ee(c), null;
|
|
388
|
+
oe(c, n, r);
|
|
382
389
|
}
|
|
383
390
|
}
|
|
384
391
|
if (!c.fsm_checked) {
|
|
385
|
-
if (
|
|
392
|
+
if (ae(c) < 0) return ee(c), null;
|
|
386
393
|
c.fsm_checked = !0;
|
|
387
394
|
}
|
|
388
395
|
return c;
|
|
389
396
|
}
|
|
390
|
-
function
|
|
397
|
+
function ee(e) {
|
|
391
398
|
let t;
|
|
392
|
-
if (
|
|
399
|
+
if (Cn(e)) t = e;
|
|
393
400
|
else {
|
|
394
|
-
if (!(e instanceof A)) return
|
|
401
|
+
if (!(e instanceof A)) return fn("Cannot unregister gclass, type unknown"), -1;
|
|
395
402
|
t = e.gclass_name;
|
|
396
403
|
}
|
|
397
404
|
let n = p[t];
|
|
398
|
-
return n ? n.instances > 0 ? (
|
|
405
|
+
return n ? n.instances > 0 ? (fn(`Cannot unregister gclass, instances in use: ${t}`), -1) : (delete p[t], 0) : (fn(`Cannot unregister gclass, not found: ${t}`), -1);
|
|
399
406
|
}
|
|
400
|
-
function
|
|
407
|
+
function te(e, t) {
|
|
401
408
|
const n = e.dl_states.length, r = e.dl_states;
|
|
402
409
|
for (let e = 0; e < n; e++) {
|
|
403
410
|
let n = r[e];
|
|
@@ -405,7 +412,7 @@ function H(e, t) {
|
|
|
405
412
|
}
|
|
406
413
|
return null;
|
|
407
414
|
}
|
|
408
|
-
function
|
|
415
|
+
function ne(e, t) {
|
|
409
416
|
const n = e.dl_actions.length, r = e.dl_actions;
|
|
410
417
|
for (let e = 0; e < n; e++) {
|
|
411
418
|
let n = r[e];
|
|
@@ -413,23 +420,23 @@ function Z(e, t) {
|
|
|
413
420
|
}
|
|
414
421
|
return null;
|
|
415
422
|
}
|
|
416
|
-
function
|
|
417
|
-
return e instanceof A ?
|
|
423
|
+
function re(e, t) {
|
|
424
|
+
return e instanceof A ? te(e, t) ? (fn(`state already exists: ${t}`), -1) : (e.dl_states.push(new V(t)), 0) : (fn("Cannot add state, typeof not GClass"), -1);
|
|
418
425
|
}
|
|
419
|
-
function
|
|
420
|
-
if (!(e instanceof A)) return
|
|
421
|
-
if (
|
|
422
|
-
let i =
|
|
423
|
-
return i ?
|
|
426
|
+
function le(e, t, n, r, l) {
|
|
427
|
+
if (!(e instanceof A)) return fn("Cannot add state, typeof not GClass"), -1;
|
|
428
|
+
if (xn(t)) return fn("state_name EMPTY"), -1;
|
|
429
|
+
let i = te(e, t);
|
|
430
|
+
return i ? ne(i, n) ? (fn(`event already exists: gclass ${e.gclass_name}, state ${t}, event ${n}`), -1) : (i.dl_actions.push(new G(n, r, l)), 0) : (fn(`state not found: ${t}`), -1);
|
|
424
431
|
}
|
|
425
|
-
function
|
|
426
|
-
|
|
432
|
+
function ie(e, t, n) {
|
|
433
|
+
xn(t) || e.push(new W(t, n));
|
|
427
434
|
}
|
|
428
|
-
function
|
|
429
|
-
return e instanceof A ?
|
|
435
|
+
function oe(e, t, n) {
|
|
436
|
+
return e instanceof A ? ie(e.dl_events, t, n) : (fn("Cannot add state, typeof not GClass"), -1);
|
|
430
437
|
}
|
|
431
|
-
function
|
|
432
|
-
if (!(e instanceof A)) return
|
|
438
|
+
function se(e, t) {
|
|
439
|
+
if (!(e instanceof A)) return fn("Cannot add state, typeof not GClass"), 0;
|
|
433
440
|
const n = e.dl_events.length, r = e.dl_events;
|
|
434
441
|
for (let e = 0; e < n; e++) {
|
|
435
442
|
let n = r[e];
|
|
@@ -437,273 +444,273 @@ function le(e, t) {
|
|
|
437
444
|
}
|
|
438
445
|
return null;
|
|
439
446
|
}
|
|
440
|
-
function
|
|
441
|
-
if (!(e instanceof A)) return
|
|
447
|
+
function ae(e) {
|
|
448
|
+
if (!(e instanceof A)) return fn("Cannot add state, typeof not GClass"), -1;
|
|
442
449
|
let t = 0;
|
|
443
|
-
|
|
450
|
+
kn(e.dl_states) || (fn(`GClass without states: ${e.gclass_name}`), t += -1);
|
|
444
451
|
for (let n = 0; n < e.dl_states.length; n++) {
|
|
445
452
|
let r = e.dl_states[n];
|
|
446
|
-
if (!
|
|
453
|
+
if (!xn(r.state_name)) for (let n = 0; n < r.dl_actions.length; n++) {
|
|
447
454
|
let l = r.dl_actions[n];
|
|
448
|
-
|
|
455
|
+
xn(l.event_name) || (se(e, l.event_name) || (fn(`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 && (te(e, l.next_state) || (fn(`SMachine: next state NOT in state names: gclass ${e.gclass_name}, state ${r.state_name}, next_state ${l.next_state}`), t += -1)));
|
|
449
456
|
}
|
|
450
457
|
}
|
|
451
458
|
for (let n = 0; n < e.dl_events.length; n++) {
|
|
452
459
|
let r = e.dl_events[n];
|
|
453
|
-
if (!
|
|
460
|
+
if (!xn(r.event_name) && (Fn(r.event_flag) || (fn(`SMachine: event flag is NOT number: gclass ${e.gclass_name}, event ${r.event_name}`), t += -1), !(r.event_flag & C.EVF_OUTPUT_EVENT))) {
|
|
454
461
|
let n = !1;
|
|
455
462
|
for (let t = 0; t < e.dl_states.length; t++) {
|
|
456
463
|
let l = e.dl_states[t];
|
|
457
|
-
|
|
464
|
+
xn(l.state_name) || ne(l, r.event_name) && (n = !0);
|
|
458
465
|
}
|
|
459
|
-
n || (
|
|
466
|
+
n || (fn(`SMachine: input_list's event NOT in state: gclass ${e.gclass_name}, event ${r.event_name}`), t += -1);
|
|
460
467
|
}
|
|
461
468
|
}
|
|
462
469
|
return t;
|
|
463
470
|
}
|
|
464
|
-
function
|
|
471
|
+
function ue(e, t) {
|
|
465
472
|
let n = null;
|
|
466
473
|
try {
|
|
467
474
|
n = p[e];
|
|
468
475
|
} catch (e) {}
|
|
469
|
-
return n || t &&
|
|
476
|
+
return n || t && fn(`gclass not found: ${e}`), n;
|
|
470
477
|
}
|
|
471
|
-
function
|
|
478
|
+
function _e() {
|
|
472
479
|
let e = [];
|
|
473
|
-
for (const t of Object.keys(m))
|
|
480
|
+
for (const t of Object.keys(m)) jn(e, t);
|
|
474
481
|
return e;
|
|
475
482
|
}
|
|
476
|
-
function
|
|
483
|
+
function ce() {
|
|
477
484
|
return !h || h.obflag & U.obflag_destroyed ? null : h;
|
|
478
485
|
}
|
|
479
|
-
function
|
|
486
|
+
function fe(e, t) {
|
|
480
487
|
e = e.toLowerCase();
|
|
481
488
|
let n = m[e];
|
|
482
|
-
return !n && t ? (
|
|
483
|
-
}
|
|
484
|
-
function _e(e) {
|
|
485
|
-
let t = Be(e);
|
|
486
|
-
return t = t.toLowerCase(), m[t] && ln(`service ALREADY REGISTERED: ${t}. Will be UPDATED`), m[t] = e, 0;
|
|
489
|
+
return !n && t ? (fn(`gobj service not found: ${e}`), null) : n;
|
|
487
490
|
}
|
|
488
|
-
function
|
|
489
|
-
t
|
|
490
|
-
}
|
|
491
|
-
function fe(e, t) {
|
|
492
|
-
let n = nl(e.dl_children, t);
|
|
493
|
-
n >= 0 && (On(e.dl_children, n), t.parent = null);
|
|
494
|
-
}
|
|
495
|
-
function ge(e, t) {
|
|
496
|
-
return Ve(e) ? u ? u(e, t) : -1 : (ln(`${Qe(e)}: Only gobj services can load/save writable-persistent`), -1);
|
|
491
|
+
function ge(e) {
|
|
492
|
+
let t = qe(e);
|
|
493
|
+
return t = t.toLowerCase(), m[t] && fn(`service ALREADY REGISTERED: ${t}. Will be UPDATED`), m[t] = e, 0;
|
|
497
494
|
}
|
|
498
495
|
function de(e, t) {
|
|
499
|
-
|
|
496
|
+
t.parent && fn(`_add_child() ALREADY HAS PARENT: ${t.gobj_name}`), e.dl_children.push(t), t.parent = e;
|
|
500
497
|
}
|
|
501
498
|
function be(e, t) {
|
|
502
|
-
|
|
499
|
+
let n = ul(e.dl_children, t);
|
|
500
|
+
n >= 0 && ($n(e.dl_children, n), t.parent = null);
|
|
503
501
|
}
|
|
504
502
|
function pe(e, t) {
|
|
505
|
-
return
|
|
503
|
+
return Ke(e) ? u ? u(e, t) : -1 : (fn(`${Xe(e)}: Only gobj services can load/save writable-persistent`), -1);
|
|
506
504
|
}
|
|
507
505
|
function me(e, t) {
|
|
508
|
-
|
|
506
|
+
return Ke(e) ? _ ? _(e, t) : -1 : (fn(`${Xe(e)}: Only gobj services can load/save writable-persistent`), -1);
|
|
507
|
+
}
|
|
508
|
+
function Ee(e, t) {
|
|
509
|
+
return Ke(e) ? c ? c(e, t) : -1 : (fn(`${Xe(e)}: Only gobj services can load/save writable-persistent`), -1);
|
|
510
|
+
}
|
|
511
|
+
function he(e, t) {
|
|
512
|
+
return f ? f(e, t) : null;
|
|
509
513
|
}
|
|
510
|
-
function
|
|
514
|
+
function Te(e, t) {
|
|
515
|
+
"__json_config_variables__" !== t && fn(`GClass Attribute NOT FOUND: ${Xe(e)}, attr ${t}`);
|
|
516
|
+
}
|
|
517
|
+
function ye(e, t, n) {
|
|
511
518
|
let r = t;
|
|
512
519
|
(function(e, t, n, r, l) {
|
|
513
|
-
if (!e || !t) return
|
|
520
|
+
if (!e || !t) return fn("hsdata or kw NULL"), -1;
|
|
514
521
|
let i = 0;
|
|
515
522
|
for (const [o, s] of Object.entries(t)) {
|
|
516
|
-
const t =
|
|
517
|
-
t ? (-1 === n || t.flag & n) && (t.flag & S.SDF_DEPRECATED &&
|
|
523
|
+
const t = H(l.gclass, o, !1);
|
|
524
|
+
t ? (-1 === n || t.flag & n) && (t.flag & S.SDF_DEPRECATED && gn(`${Xe(l)}: Deprecated attribute used in gobj creation: ${o}`), i += q(l, e, t, s)) : r && (r(l, o), i--);
|
|
518
525
|
}
|
|
519
526
|
return i;
|
|
520
|
-
})(
|
|
527
|
+
})(z(e), r, -1, e.gclass.gclass_flag & L.gcflag_ignore_unknown_attrs ? 0 : Te, e) < 0 && (fn(`${Xe(e)} json2data() FAILED`), mn(r));
|
|
521
528
|
}
|
|
522
|
-
function
|
|
529
|
+
function Se(e, n, r, l, i) {
|
|
523
530
|
if (i & P.gobj_flag_yuno) {
|
|
524
|
-
if (E) return
|
|
531
|
+
if (E) return fn("__yuno__ already created"), null;
|
|
525
532
|
i |= P.gobj_flag_service;
|
|
526
533
|
} else {
|
|
527
|
-
if (!l) return
|
|
528
|
-
if (!("string" == typeof l || l instanceof k)) return
|
|
529
|
-
if (
|
|
534
|
+
if (!l) return fn("gobj NEEDS a parent!"), null;
|
|
535
|
+
if (!("string" == typeof l || l instanceof k)) return fn(`BAD TYPE of parent: ${l}`), null;
|
|
536
|
+
if (Cn(l) && !(l = fe(l))) return gn(`parent service not found: ${l}`), null;
|
|
530
537
|
}
|
|
531
|
-
if (i & P.gobj_flag_service &&
|
|
538
|
+
if (i & P.gobj_flag_service && fe(e, !1)) return fn(`service ALREADY registered: ${n}^${e}`), null;
|
|
532
539
|
if (i & P.gobj_flag_default_service) {
|
|
533
|
-
if (h) return
|
|
540
|
+
if (h) return fn(`default service ALREADY registered: ${n}^${e}`), null;
|
|
534
541
|
i |= P.gobj_flag_service;
|
|
535
542
|
}
|
|
536
|
-
if (
|
|
537
|
-
let o =
|
|
538
|
-
if (!o) return
|
|
539
|
-
if (
|
|
540
|
-
if (!
|
|
541
|
-
if (e.includes("`")) return
|
|
542
|
-
if (e.includes("^")) return
|
|
543
|
+
if (xn(n)) return fn("gclass_name must be a string"), null;
|
|
544
|
+
let o = ue(n, !1);
|
|
545
|
+
if (!o) return fn(`GClass not registered: ${n}^${e}`), null;
|
|
546
|
+
if (!Cn(e)) return fn(`gobj_name must be a string: ${n}`), null;
|
|
547
|
+
if (!xn(e)) {
|
|
548
|
+
if (e.includes("`")) return fn(`gobj_name cannot contain char ': ${n}^${e}`), null;
|
|
549
|
+
if (e.includes("^")) return fn(`gobj_name cannot contain char ^: ${n}^${e}`), null;
|
|
543
550
|
}
|
|
544
551
|
let s = new k(e, o, r, l, i);
|
|
545
|
-
s.jn_attrs =
|
|
552
|
+
s.jn_attrs = J(s, o.attrs_table);
|
|
546
553
|
for (const [e, t] of Object.entries(s.jn_attrs)) e in s.priv && (s.priv[e] = t);
|
|
547
|
-
let a = E &&
|
|
548
|
-
return a &&
|
|
554
|
+
let a = E && Tt(E, "trace_creation");
|
|
555
|
+
return a && x(t("💙💙⏩ creating: %s^%s", o.gclass_name, e)), s.gobj_flag & P.gobj_flag_service && ge(s), s.gobj_flag & P.gobj_flag_yuno && (E = s), s.gobj_flag & P.gobj_flag_default_service && (h = s), s.gobj_flag & P.gobj_flag_yuno || de(l, s), s.obflag |= U.obflag_created, s.gclass.instances++, ye(s, r), s.gobj_flag & P.gobj_flag_service && u && u(s, null), s.gclass.gmt.mt_create2 ? s.gclass.gmt.mt_create2(s, r) : s.gclass.gmt.mt_create && s.gclass.gmt.mt_create(s), l && l.gclass.gmt.mt_child_added && (a && x(t("👦👦🔵 child_added(%s): %s", He(l), Xe(s))), l.gclass.gmt.mt_child_added(l, s)), a && x(t("💙💙⏪ created: %s", He(s))), s;
|
|
549
556
|
}
|
|
550
|
-
function
|
|
551
|
-
return
|
|
557
|
+
function Oe(e, t, n) {
|
|
558
|
+
return Se(e, t, n, null, P.gobj_flag_yuno);
|
|
552
559
|
}
|
|
553
|
-
function
|
|
554
|
-
return
|
|
560
|
+
function ve(e, t, n, r) {
|
|
561
|
+
return Se(e, t, n, r, P.gobj_flag_service);
|
|
555
562
|
}
|
|
556
|
-
function
|
|
557
|
-
return
|
|
563
|
+
function Ne(e, t, n, r) {
|
|
564
|
+
return Se(e, t, n, r, P.gobj_flag_default_service | P.gobj_flag_autostart);
|
|
558
565
|
}
|
|
559
|
-
function
|
|
560
|
-
return
|
|
566
|
+
function we(e, t, n, r) {
|
|
567
|
+
return Se(e, t, n, r, P.gobj_flag_volatil);
|
|
561
568
|
}
|
|
562
|
-
function
|
|
563
|
-
return
|
|
569
|
+
function De(e, t, n, r) {
|
|
570
|
+
return Se(e, t, n, r, P.gobj_flag_pure_child);
|
|
564
571
|
}
|
|
565
|
-
function
|
|
566
|
-
return
|
|
567
|
-
}
|
|
568
|
-
function
|
|
569
|
-
if (
|
|
570
|
-
e.__refs__ > 0 &&
|
|
571
|
-
let n = E &&
|
|
572
|
-
n &&
|
|
573
|
-
let r =
|
|
574
|
-
r && r.gclass.gmt.mt_child_removed && (n &&
|
|
575
|
-
let t =
|
|
576
|
-
t = t.toLowerCase(), m[t] ? delete m[t] :
|
|
577
|
-
}(e), e.playing && (
|
|
572
|
+
function Re(e, t, n, r) {
|
|
573
|
+
return Se(e, t, n, r, 0);
|
|
574
|
+
}
|
|
575
|
+
function je(e) {
|
|
576
|
+
if (nt(e)) return void fn("gobj NULL or DESTROYED");
|
|
577
|
+
e.__refs__ > 0 && fn(`${Xe(e)}: gobj DESTROYING with references: ${e.__refs__}`), e.obflag |= U.obflag_destroying;
|
|
578
|
+
let n = E && Tt(E, "trace_creation");
|
|
579
|
+
n && x(t("💔💔⏩ destroying: %s", He(e)));
|
|
580
|
+
let r = Ze(e);
|
|
581
|
+
r && r.gclass.gmt.mt_child_removed && (n && x(t("👦👦🔴 child_removed(%s): %s", He(r), Xe(e))), r.gclass.gmt.mt_child_removed(r, e)), e.gobj_flag & P.gobj_flag_service && function(e) {
|
|
582
|
+
let t = qe(e);
|
|
583
|
+
t = t.toLowerCase(), m[t] ? delete m[t] : fn(`"service NOT found in register": ${t}`);
|
|
584
|
+
}(e), e.playing && (fn(`Destroying a PLAYING gobj: ${He(e)}`), Ve(e)), e.running && (fn(`Destroying a RUNNING gobj: ${He(e)}`), Pe(e)), Bt(e, e.dl_subscriptions, !0), Bt(e, e.dl_subscribings, !0), r && (be(r, e), et(e) && (rt(r) !== e || nt(r) || lt(r, null))), function(e) {
|
|
578
585
|
let t = e.dl_children.slice();
|
|
579
586
|
for (let e = 0; e < t.length; e++) {
|
|
580
587
|
let n = t[e];
|
|
581
|
-
|
|
588
|
+
nt(n) || je(n);
|
|
582
589
|
}
|
|
583
|
-
}(e), e.obflag & U.obflag_created && e.gclass.gmt.mt_destroy && e.gclass.gmt.mt_destroy(e), n &&
|
|
590
|
+
}(e), e.obflag & U.obflag_created && e.gclass.gmt.mt_destroy && e.gclass.gmt.mt_destroy(e), n && x(t("💔💔⏪ destroyed: %s", He(e))), e.obflag |= U.obflag_destroyed, e.obflag & U.obflag_created && e.gclass.instances--;
|
|
584
591
|
}
|
|
585
|
-
function
|
|
586
|
-
if (
|
|
587
|
-
if (e.running) return
|
|
588
|
-
if (e.disabled) return
|
|
589
|
-
E &&
|
|
592
|
+
function $e(e) {
|
|
593
|
+
if (nt(e)) return fn("gobj NULL or DESTROYED"), -1;
|
|
594
|
+
if (e.running) return fn(`${Xe(e)}: GObj ALREADY RUNNING`), -1;
|
|
595
|
+
if (e.disabled) return fn(`${Xe(e)}: GObj DISABLED`), -1;
|
|
596
|
+
E && Tt(E, "trace_start_stop") && x(t("⏺ ⏺ start: %s", He(e))), e.running = !0;
|
|
590
597
|
let n = 0;
|
|
591
598
|
return e.gclass.gmt.mt_start && (n = e.gclass.gmt.mt_start(e)), n;
|
|
592
599
|
}
|
|
593
|
-
function
|
|
594
|
-
return e.gclass.gclass_flag & L.gcflag_manual_start ||
|
|
595
|
-
}
|
|
596
|
-
function je(e) {
|
|
597
|
-
return Ze(e) ? (ln("gobj NULL or DESTROYED"), -1) : rt(e, F.WALK_FIRST2LAST, Re, 0, 0);
|
|
598
|
-
}
|
|
599
|
-
function $e(e, t, n) {
|
|
600
|
-
return e.gclass.gclass_flag & L.gcflag_manual_start || Ge(e) ? 1 : (Fe(e) || De(e), 0);
|
|
601
|
-
}
|
|
602
|
-
function Ie(e) {
|
|
603
|
-
return Ze(e) ? (ln("gobj NULL or DESTROYED"), -1) : (E && mt(E, "trace_start_stop") && M(t("⏺ ⏺ ⏺ ⏺ start_tree: %s", qe(e))), e.gclass.gclass_flag & L.gcflag_manual_start || e.disabled ? 0 : (e.running || De(e), lt(e, F.WALK_TOP2BOTTOM, $e, 0, 0)));
|
|
600
|
+
function Ie(e, t, n) {
|
|
601
|
+
return e.gclass.gclass_flag & L.gcflag_manual_start || nt(e) || We(e) || Me(e) || $e(e), 0;
|
|
604
602
|
}
|
|
605
603
|
function Ae(e) {
|
|
606
|
-
|
|
607
|
-
if (!e.running) return ln(`${Qe(e)}: GObj NOT RUNNING`), -1;
|
|
608
|
-
e.playing && (on(`${Qe(e)}: GObj stopping without previous pause`), Ce(e)), E && mt(E, "trace_start_stop") && M(t("⏹ ⏹ stop: %s", qe(e))), e.running = !1;
|
|
609
|
-
let n = 0;
|
|
610
|
-
return e.gclass.gmt.mt_stop && (n = e.gclass.gmt.mt_stop(e)), n;
|
|
604
|
+
return nt(e) ? (fn("gobj NULL or DESTROYED"), -1) : ot(e, F.WALK_FIRST2LAST, Ie, 0, 0);
|
|
611
605
|
}
|
|
612
606
|
function ke(e, t, n) {
|
|
613
|
-
return
|
|
607
|
+
return e.gclass.gclass_flag & L.gcflag_manual_start || Me(e) ? 1 : (We(e) || $e(e), 0);
|
|
614
608
|
}
|
|
615
609
|
function Le(e) {
|
|
616
|
-
return
|
|
610
|
+
return nt(e) ? (fn("gobj NULL or DESTROYED"), -1) : (E && Tt(E, "trace_start_stop") && x(t("⏺ ⏺ ⏺ ⏺ start_tree: %s", He(e))), e.gclass.gclass_flag & L.gcflag_manual_start || e.disabled ? 0 : (e.running || $e(e), st(e, F.WALK_TOP2BOTTOM, ke, 0, 0)));
|
|
617
611
|
}
|
|
618
612
|
function Pe(e) {
|
|
619
|
-
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
if (Ze(e)) return ln(`gobj NULL or DESTROYED: ${Qe(e)}`), -1;
|
|
623
|
-
if (e.playing) return ln(`${Qe(e)}: GObj ALREADY PLAYING`), -1;
|
|
624
|
-
if (e.disabled) return ln(`${Qe(e)}: GObj DISABLED`), -1;
|
|
625
|
-
if (!Fe(e)) {
|
|
626
|
-
if (e.gclass.gclass_flag & L.gcflag_required_start_to_play) return ln(`${Qe(e)}: Cannot play, start not done`), -1;
|
|
627
|
-
on(`${Qe(e)}: GObj playing without previous start`), De(e);
|
|
628
|
-
}
|
|
629
|
-
E && mt(E, "trace_start_stop") && M(t("⏯ ⏯ play: %s", qe(e))), e.playing = !0;
|
|
613
|
+
if (nt(e)) return fn("gobj NULL or DESTROYED"), -1;
|
|
614
|
+
if (!e.running) return fn(`${Xe(e)}: GObj NOT RUNNING`), -1;
|
|
615
|
+
e.playing && (gn(`${Xe(e)}: GObj stopping without previous pause`), Ve(e)), E && Tt(E, "trace_start_stop") && x(t("⏹ ⏹ stop: %s", He(e))), e.running = !1;
|
|
630
616
|
let n = 0;
|
|
631
|
-
return e.gclass.gmt.
|
|
617
|
+
return e.gclass.gmt.mt_stop && (n = e.gclass.gmt.mt_stop(e)), n;
|
|
618
|
+
}
|
|
619
|
+
function Ue(e, t, n) {
|
|
620
|
+
return We(e) && Pe(e), 0;
|
|
632
621
|
}
|
|
633
622
|
function Ce(e) {
|
|
634
|
-
return
|
|
623
|
+
return nt(e) ? (fn("gobj NULL or DESTROYED"), -1) : ot(e, F.WALK_FIRST2LAST, Ue, 0, 0);
|
|
635
624
|
}
|
|
636
625
|
function Fe(e) {
|
|
637
|
-
return
|
|
626
|
+
return nt(e) ? (fn("gobj NULL or DESTROYED"), -1) : (E && Tt(E, "trace_start_stop") && x(t("⏹ ⏹ ⏹ ⏹ stop_tree: %s", He(e))), We(e) && Pe(e), st(e, F.WALK_TOP2BOTTOM, Ue, 0, 0));
|
|
638
627
|
}
|
|
639
628
|
function Ge(e) {
|
|
640
|
-
|
|
629
|
+
if (nt(e)) return fn(`gobj NULL or DESTROYED: ${Xe(e)}`), -1;
|
|
630
|
+
if (e.playing) return fn(`${Xe(e)}: GObj ALREADY PLAYING`), -1;
|
|
631
|
+
if (e.disabled) return fn(`${Xe(e)}: GObj DISABLED`), -1;
|
|
632
|
+
if (!We(e)) {
|
|
633
|
+
if (e.gclass.gclass_flag & L.gcflag_required_start_to_play) return fn(`${Xe(e)}: Cannot play, start not done`), -1;
|
|
634
|
+
gn(`${Xe(e)}: GObj playing without previous start`), $e(e);
|
|
635
|
+
}
|
|
636
|
+
E && Tt(E, "trace_start_stop") && x(t("⏯ ⏯ play: %s", He(e))), e.playing = !0;
|
|
637
|
+
let n = 0;
|
|
638
|
+
return e.gclass.gmt.mt_play && (n = e.gclass.gmt.mt_play(e), n < 0 && (e.playing = !1)), n;
|
|
641
639
|
}
|
|
642
640
|
function Ve(e) {
|
|
643
|
-
return
|
|
641
|
+
return nt(e) ? (fn("gobj NULL or DESTROYED"), -1) : e.playing ? (E && Tt(E, "trace_start_stop") && x(t("⏸ ⏸ pause: %s", He(e))), e.playing = !1, e.gclass.gmt.mt_pause ? e.gclass.gmt.mt_pause(e) : 0) : (fn(`${Xe(e)}: GObj NOT PLAYING`), -1);
|
|
644
642
|
}
|
|
645
643
|
function We(e) {
|
|
646
|
-
return !
|
|
644
|
+
return !nt(e) && e.running;
|
|
647
645
|
}
|
|
648
|
-
function Me() {
|
|
649
|
-
return
|
|
646
|
+
function Me(e) {
|
|
647
|
+
return !!nt(e) || e.disabled;
|
|
650
648
|
}
|
|
651
|
-
function Ke() {
|
|
652
|
-
|
|
653
|
-
return e ? Be(e) : "";
|
|
649
|
+
function Ke(e) {
|
|
650
|
+
return !!(e && e.gobj_flag & P.gobj_flag_service);
|
|
654
651
|
}
|
|
655
|
-
function Ye() {
|
|
656
|
-
|
|
657
|
-
return e ? ht(e, "yuno_role") : "";
|
|
652
|
+
function Ye(e) {
|
|
653
|
+
return !nt(e) && e.playing;
|
|
658
654
|
}
|
|
659
655
|
function xe() {
|
|
660
|
-
|
|
661
|
-
return e ? ht(e, "yuno_id") : "";
|
|
656
|
+
return !E || E.obflag & U.obflag_destroyed ? null : E;
|
|
662
657
|
}
|
|
663
|
-
function Be(
|
|
664
|
-
|
|
658
|
+
function Be() {
|
|
659
|
+
let e = xe();
|
|
660
|
+
return e ? qe(e) : "";
|
|
665
661
|
}
|
|
666
|
-
function Je(
|
|
667
|
-
|
|
662
|
+
function Je() {
|
|
663
|
+
let e = xe();
|
|
664
|
+
return e ? St(e, "yuno_role") : "";
|
|
668
665
|
}
|
|
669
|
-
function Qe(
|
|
670
|
-
|
|
666
|
+
function Qe() {
|
|
667
|
+
let e = xe();
|
|
668
|
+
return e ? St(e, "yuno_id") : "";
|
|
671
669
|
}
|
|
672
670
|
function qe(e) {
|
|
673
|
-
|
|
674
|
-
let t = Qe(e), n = ze(e);
|
|
675
|
-
for (; n;) t = Qe(n) + "`" + t, n = ze(n);
|
|
676
|
-
return t;
|
|
671
|
+
return Yn(e) ? e.gobj_name : (fn("gobj bad type"), null);
|
|
677
672
|
}
|
|
678
673
|
function ze(e) {
|
|
679
|
-
return
|
|
674
|
+
return Yn(e) ? e.gclass.gclass_name : (fn("gobj NULL of bad type"), null);
|
|
680
675
|
}
|
|
681
676
|
function Xe(e) {
|
|
682
|
-
return
|
|
677
|
+
return Yn(e) ? e.gclass.gclass_name + "^" + qe(e) : (fn("gobj bad type"), null);
|
|
683
678
|
}
|
|
684
679
|
function He(e) {
|
|
685
|
-
|
|
680
|
+
if (!Yn(e)) return fn("gobj NULL of bad type"), null;
|
|
681
|
+
let t = Xe(e), n = Ze(e);
|
|
682
|
+
for (; n;) t = Xe(n) + "`" + t, n = Ze(n);
|
|
683
|
+
return t;
|
|
686
684
|
}
|
|
687
685
|
function Ze(e) {
|
|
688
|
-
return
|
|
686
|
+
return Yn(e) ? e.parent : (fn("gobj NULL of bad type"), null);
|
|
689
687
|
}
|
|
690
688
|
function et(e) {
|
|
691
|
-
return
|
|
689
|
+
return Yn(e) ? !!(e.gobj_flag & P.gobj_flag_volatil) : (fn("gobj NULL of bad type"), null);
|
|
690
|
+
}
|
|
691
|
+
function tt(e) {
|
|
692
|
+
return Yn(e) ? !!(e.gobj_flag & P.gobj_flag_pure_child) : (fn("gobj NULL of bad type"), null);
|
|
693
|
+
}
|
|
694
|
+
function nt(e) {
|
|
695
|
+
return !Yn(e) || !!(e.obflag & (U.obflag_destroyed | U.obflag_destroying));
|
|
692
696
|
}
|
|
693
|
-
function
|
|
694
|
-
|
|
695
|
-
e.bottom_gobj && on(`${Qe(e)}: bottom_gobj already set`), e.bottom_gobj = t;
|
|
697
|
+
function rt(e) {
|
|
698
|
+
return Yn(e) ? e.bottom_gobj : (fn("gobj NULL of bad type"), null);
|
|
696
699
|
}
|
|
697
|
-
function
|
|
698
|
-
|
|
700
|
+
function lt(e, t) {
|
|
701
|
+
if (!Yn(e)) return fn("gobj NULL of bad type"), null;
|
|
702
|
+
e.bottom_gobj && gn(`${Xe(e)}: bottom_gobj already set`), e.bottom_gobj = t;
|
|
699
703
|
}
|
|
700
|
-
function
|
|
701
|
-
return
|
|
704
|
+
function it(e, t, n) {
|
|
705
|
+
return Yn(e) ? t ? H(e.gclass, t, n) : e.gclass.attrs_table : (fn("gobj NULL of bad type"), null);
|
|
702
706
|
}
|
|
703
|
-
function
|
|
704
|
-
return
|
|
707
|
+
function ot(e, t, n, r, l) {
|
|
708
|
+
return nt(e) ? (fn("gobj NULL, destroying, or bad type"), 0) : at(e.dl_children, t, n, r, l);
|
|
709
|
+
}
|
|
710
|
+
function st(e, t, n, r, l) {
|
|
711
|
+
return nt(e) ? (fn("gobj NULL, destroying, or bad type"), 0) : _t(e.dl_children, t, n, r, l);
|
|
705
712
|
}
|
|
706
|
-
function
|
|
713
|
+
function at(e, t, n, r, l) {
|
|
707
714
|
let i, o = [...e];
|
|
708
715
|
if (t & F.WALK_LAST2FIRST) for (let e = o.length; e > 0; e--) {
|
|
709
716
|
i = o[e - 1];
|
|
@@ -717,214 +724,214 @@ function it(e, t, n, r, l) {
|
|
|
717
724
|
}
|
|
718
725
|
return 0;
|
|
719
726
|
}
|
|
720
|
-
function
|
|
721
|
-
let i, o =
|
|
727
|
+
function ut(e, t, n, r, l) {
|
|
728
|
+
let i, o = at(e, t, n, r, l);
|
|
722
729
|
if (o < 0) return o;
|
|
723
730
|
if (t & F.WALK_LAST2FIRST) {
|
|
724
|
-
for (let s = e.length; s > 0; s--) if (i = e[s - 1], o =
|
|
725
|
-
} else for (let s = 0; s < e.length; s++) if (i = e[s], o =
|
|
731
|
+
for (let s = e.length; s > 0; s--) if (i = e[s - 1], o = ut([...i.dl_children], t, n, r, l), o < 0) return o;
|
|
732
|
+
} else for (let s = 0; s < e.length; s++) if (i = e[s], o = ut([...i.dl_children], t, n, r, l), o < 0) return o;
|
|
726
733
|
return o;
|
|
727
734
|
}
|
|
728
|
-
function
|
|
729
|
-
if (t & F.WALK_BYLEVEL) return
|
|
735
|
+
function _t(e, t, n, r, l) {
|
|
736
|
+
if (t & F.WALK_BYLEVEL) return ut(e, t, n, r, l);
|
|
730
737
|
let i, o;
|
|
731
738
|
if (t & F.WALK_BOTTOM2TOP) for (let s = e.length; s > 0; s--) {
|
|
732
|
-
if (o = e[s - 1], i =
|
|
739
|
+
if (o = e[s - 1], i = _t([...o.dl_children], t, n, r, l), i < 0) return i;
|
|
733
740
|
if (i = n(o, r, l), i < 0) return i;
|
|
734
741
|
}
|
|
735
742
|
else for (let s = 0; s < e.length; s++) {
|
|
736
743
|
if (o = e[s], i = n(o, r, l), i < 0) return i;
|
|
737
|
-
if (0 === i && (i =
|
|
744
|
+
if (0 === i && (i = _t([...o.dl_children], t, n, r, l), i < 0)) return i;
|
|
738
745
|
}
|
|
739
746
|
return 0;
|
|
740
747
|
}
|
|
741
|
-
function
|
|
742
|
-
if (
|
|
748
|
+
function ct(e, t) {
|
|
749
|
+
if (xn(t)) return null;
|
|
743
750
|
const n = t.toLowerCase();
|
|
744
|
-
return "__default_service__" === n ? h : "__yuno__" === n || "__root__" === n ? E :
|
|
751
|
+
return "__default_service__" === n ? h : "__yuno__" === n || "__root__" === n ? E : pt(E, t);
|
|
745
752
|
}
|
|
746
|
-
function
|
|
747
|
-
if (!
|
|
753
|
+
function ft(e, t) {
|
|
754
|
+
if (!Yn(e)) return fn("gobj NULL of bad type"), !1;
|
|
748
755
|
let n = t.__gclass_name__, r = t.__gobj_name__, l = t.__prefix_gobj_name__;
|
|
749
756
|
t.__disabled__;
|
|
750
757
|
let i = t.__state__;
|
|
751
|
-
if (n && n !==
|
|
752
|
-
if (r && r !==
|
|
758
|
+
if (n && n !== ze(e)) return !1;
|
|
759
|
+
if (r && r !== qe(e)) return !1;
|
|
753
760
|
if (l) {
|
|
754
761
|
let t = l.length;
|
|
755
|
-
if (l !==
|
|
762
|
+
if (l !== qe(e).substring(0, t)) return !1;
|
|
756
763
|
}
|
|
757
|
-
if (i && i !==
|
|
764
|
+
if (i && i !== It(e)) return !1;
|
|
758
765
|
let o = e.jn_attrs;
|
|
759
|
-
for (const n of Object.keys(t)) if ("__gclass_name__" !== n && "__gobj_name__" !== n && "__prefix_gobj_name__" !== n && "__disabled__" !== n && "__state__" !== n &&
|
|
766
|
+
for (const n of Object.keys(t)) if ("__gclass_name__" !== n && "__gobj_name__" !== n && "__prefix_gobj_name__" !== n && "__disabled__" !== n && "__state__" !== n && mt(e, n) && o[n] !== t[n]) return !1;
|
|
760
767
|
return !0;
|
|
761
768
|
}
|
|
762
|
-
function
|
|
763
|
-
if (
|
|
769
|
+
function gt(e, t) {
|
|
770
|
+
if (nt(e)) return fn("gobj NULL or DESTROYED"), null;
|
|
764
771
|
const n = e.dl_children;
|
|
765
772
|
for (let e = 0; e < n.length; e++) {
|
|
766
773
|
const r = n[e];
|
|
767
|
-
if (
|
|
774
|
+
if (ft(r, t)) return r;
|
|
768
775
|
}
|
|
769
776
|
return null;
|
|
770
777
|
}
|
|
771
|
-
function
|
|
772
|
-
if (
|
|
778
|
+
function dt(e, t) {
|
|
779
|
+
if (nt(e)) return fn("gobj NULL or DESTROYED"), null;
|
|
773
780
|
t = t || {};
|
|
774
781
|
let n = [];
|
|
775
782
|
const r = e.dl_children;
|
|
776
783
|
for (let e = 0; e < r.length; e++) {
|
|
777
784
|
const l = r[e];
|
|
778
|
-
|
|
785
|
+
ft(l, t) && n.push(l);
|
|
779
786
|
}
|
|
780
787
|
return n;
|
|
781
788
|
}
|
|
782
|
-
function
|
|
789
|
+
function bt(e, t) {
|
|
783
790
|
t = t || {};
|
|
784
791
|
let n = [];
|
|
785
792
|
return function e(n, r) {
|
|
786
793
|
let l = r.dl_children;
|
|
787
794
|
for (let r = 0; r < l.length; r++) {
|
|
788
795
|
let i = l[r];
|
|
789
|
-
|
|
796
|
+
ft(i, t) && n.push(i), e(n, i);
|
|
790
797
|
}
|
|
791
798
|
}(n, e), n;
|
|
792
799
|
}
|
|
793
|
-
function
|
|
800
|
+
function pt(e, t) {
|
|
794
801
|
if (!t) return null;
|
|
795
802
|
let n = t.split("`");
|
|
796
803
|
if (!function(e, t) {
|
|
797
804
|
let n = t.split("^"), r = null, l = null;
|
|
798
805
|
if (2 === n.length) {
|
|
799
|
-
if (l = n[0], r = n[1], l !==
|
|
806
|
+
if (l = n[0], r = n[1], l !== ze(e)) return !1;
|
|
800
807
|
} else {
|
|
801
808
|
if (1 !== n.length) return !1;
|
|
802
809
|
r = n[0];
|
|
803
810
|
}
|
|
804
|
-
return r ===
|
|
811
|
+
return r === qe(e);
|
|
805
812
|
}(e, n[0])) return null;
|
|
806
813
|
if (1 === n.length) return e;
|
|
807
814
|
let r = n[1].split("^"), l = {};
|
|
808
815
|
1 === r.length ? l.__gobj_name__ = r : (l.__gclass_name__ = r[0], l.__gobj_name__ = r[1]);
|
|
809
|
-
let i =
|
|
810
|
-
return i ? (n.splice(0, 1), n = n.join("`"),
|
|
816
|
+
let i = gt(e, l);
|
|
817
|
+
return i ? (n.splice(0, 1), n = n.join("`"), pt(i, n)) : null;
|
|
811
818
|
}
|
|
812
|
-
function
|
|
813
|
-
return !
|
|
819
|
+
function mt(e, t) {
|
|
820
|
+
return !xn(t) && !!H(e.gclass, t, !1);
|
|
814
821
|
}
|
|
815
|
-
function
|
|
822
|
+
function Et(e, t, n) {
|
|
816
823
|
let r = e.jn_attrs;
|
|
817
824
|
if (t in r && r.hasOwnProperty(t)) {
|
|
818
825
|
let n = r[t];
|
|
819
826
|
return e.gclass.gmt.mt_reading ? e.gclass.gmt.mt_reading(e, t, n) : n;
|
|
820
827
|
}
|
|
821
|
-
return
|
|
828
|
+
return fn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), null;
|
|
822
829
|
}
|
|
823
|
-
function
|
|
830
|
+
function ht(e, t, n) {
|
|
824
831
|
let r = {}, l = e.gclass.attrs_table;
|
|
825
832
|
for (let n = 0; n < l.length; n++) {
|
|
826
833
|
const i = l[n];
|
|
827
834
|
if (i.name && (-1 === t || i.flag & t)) {
|
|
828
835
|
let t;
|
|
829
|
-
!e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? t =
|
|
836
|
+
!e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? t = vn(e.jn_attrs, i.name) : (t = e.gclass.gmt.mt_reading(e, i.name), void 0 === t && (t = vn(e.jn_attrs, i.name))), wn(r, i.name, t);
|
|
830
837
|
}
|
|
831
838
|
}
|
|
832
839
|
return r;
|
|
833
840
|
}
|
|
834
|
-
function mt(e, t) {
|
|
835
|
-
if (t) {
|
|
836
|
-
if (0 === Mn(t, "__disabled__")) return Ge(e);
|
|
837
|
-
if (0 === Mn(t, "__running__")) return Fe(e);
|
|
838
|
-
if (0 === Mn(t, "__playing__")) return We(e);
|
|
839
|
-
if (0 === Mn(t, "__service__")) return Ve(e);
|
|
840
|
-
}
|
|
841
|
-
let n = Q(e, t, !1);
|
|
842
|
-
return n ? !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? mn(n, t) : e.gclass.gmt.mt_reading(e, t) : (ln(`${Qe(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
|
|
843
|
-
}
|
|
844
|
-
function Et(e, t) {
|
|
845
|
-
t && Mn(t, "__trace_level__");
|
|
846
|
-
let n = Q(e, t, !1);
|
|
847
|
-
return n ? !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? mn(n, t) : e.gclass.gmt.mt_reading(e, t) : (ln(`${Qe(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
|
|
848
|
-
}
|
|
849
|
-
function ht(e, t) {
|
|
850
|
-
if (t && 0 === Mn(t, "__state__")) return Rt(e);
|
|
851
|
-
let n = Q(e, t, !1);
|
|
852
|
-
return n ? !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? mn(n, t) : e.gclass.gmt.mt_reading(e, t) : (ln(`${Qe(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
|
|
853
|
-
}
|
|
854
841
|
function Tt(e, t) {
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
842
|
+
if (t) {
|
|
843
|
+
if (0 === qn(t, "__disabled__")) return Me(e);
|
|
844
|
+
if (0 === qn(t, "__running__")) return We(e);
|
|
845
|
+
if (0 === qn(t, "__playing__")) return Ye(e);
|
|
846
|
+
if (0 === qn(t, "__service__")) return Ke(e);
|
|
847
|
+
}
|
|
848
|
+
let n = X(e, t, !1);
|
|
849
|
+
return n ? !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? vn(n, t) : e.gclass.gmt.mt_reading(e, t) : (fn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
|
|
850
|
+
}
|
|
851
|
+
function yt(e, t) {
|
|
852
|
+
t && qn(t, "__trace_level__");
|
|
853
|
+
let n = X(e, t, !1);
|
|
854
|
+
return n ? !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? vn(n, t) : e.gclass.gmt.mt_reading(e, t) : (fn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
|
|
855
|
+
}
|
|
856
|
+
function St(e, t) {
|
|
857
|
+
if (t && 0 === qn(t, "__state__")) return It(e);
|
|
858
|
+
let n = X(e, t, !1);
|
|
859
|
+
return n ? !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? vn(n, t) : e.gclass.gmt.mt_reading(e, t) : (fn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
|
|
860
|
+
}
|
|
861
|
+
function Ot(e, t) {
|
|
862
|
+
let n = X(e, t, !1);
|
|
863
|
+
return n ? !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? vn(n, t) : e.gclass.gmt.mt_reading(e, t) : (fn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
|
|
864
|
+
}
|
|
865
|
+
function vt(e, n, r, l) {
|
|
866
|
+
if (!Cn(n)) return fn(t("gobj_write_attr(%s): path must be a string", Xe(e))), -1;
|
|
860
867
|
let i, o = e.jn_attrs, s = n.split("`");
|
|
861
868
|
if (s.length <= 1) {
|
|
862
869
|
let l = n;
|
|
863
|
-
return l in o && o.hasOwnProperty(l) ? (o[l] = r,
|
|
870
|
+
return l in o && o.hasOwnProperty(l) ? (o[l] = r, Pn(e.priv) && e.priv.hasOwnProperty(l) && (e.priv[l] = r), e.obflag & U.obflag_created && !(e.obflag & U.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, l), 0) : (fn(t("gobj_write_attr(%s): attr not found '%s'", Xe(e), l)), -1);
|
|
864
871
|
}
|
|
865
872
|
let a = s.length;
|
|
866
873
|
for (let t = 0; t < a; t++) {
|
|
867
874
|
i = s[t];
|
|
868
|
-
let n =
|
|
875
|
+
let n = gt(e, { __gobj_name__: i });
|
|
869
876
|
if (n && t < a - 1) {
|
|
870
877
|
e = n;
|
|
871
878
|
continue;
|
|
872
879
|
}
|
|
873
880
|
let l = e.jn_attrs;
|
|
874
|
-
if (i in l && l.hasOwnProperty(i)) return l[i] = r,
|
|
881
|
+
if (i in l && l.hasOwnProperty(i)) return l[i] = r, Pn(e.priv) && e.priv.hasOwnProperty(i) && (e.priv[i] = r), e.obflag & U.obflag_created && !(e.obflag & U.obflag_destroyed) && e.mt_writing && e.mt_writing(e, i), 0;
|
|
875
882
|
break;
|
|
876
883
|
}
|
|
877
|
-
return
|
|
884
|
+
return fn(t("gobj_write_attr(%s): attr not found '%s'", Xe(e), i)), -1;
|
|
878
885
|
}
|
|
879
|
-
function
|
|
886
|
+
function Nt(e) {
|
|
880
887
|
return function(e, t, n) {
|
|
881
|
-
if (
|
|
888
|
+
if (nt(e)) return fn("gobj NULL or DESTROYED"), -1;
|
|
882
889
|
let r = e.gclass.attrs_table;
|
|
883
890
|
for (let l = 0; l < r.length; l++) {
|
|
884
891
|
const i = r[l];
|
|
885
892
|
if (i.name && !(n && i.flag & n) && (-1 === t || i.flag & t)) {
|
|
886
|
-
const t =
|
|
887
|
-
|
|
893
|
+
const t = Q(e, e.jn_attrs, i);
|
|
894
|
+
Pn(e.priv) && e.priv.hasOwnProperty(i.name) && (e.priv[i.name] = t), e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, i.name);
|
|
888
895
|
}
|
|
889
896
|
}
|
|
890
897
|
return 0;
|
|
891
898
|
}(e, S.SDF_VOLATIL, 0);
|
|
892
899
|
}
|
|
893
|
-
function
|
|
894
|
-
let l =
|
|
900
|
+
function wt(e, t, n, r) {
|
|
901
|
+
let l = z(e), i = 0;
|
|
895
902
|
for (const [r, o] of Object.entries(t)) {
|
|
896
|
-
let t =
|
|
897
|
-
t && (-1 === n || t.flag & n) && (i +=
|
|
903
|
+
let t = it(e, r, !0);
|
|
904
|
+
t && (-1 === n || t.flag & n) && (i += q(e, l, t, o));
|
|
898
905
|
}
|
|
899
906
|
return i;
|
|
900
907
|
}
|
|
901
|
-
function
|
|
902
|
-
let r =
|
|
903
|
-
return r ? (r[t] =
|
|
908
|
+
function Dt(e, t, n) {
|
|
909
|
+
let r = X(e, t, !1);
|
|
910
|
+
return r ? (r[t] = Bn(n), Pn(e.priv) && e.priv.hasOwnProperty(t) && (e.priv[t] = n), e.obflag & U.obflag_created && !(e.obflag & U.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, t), 0) : (fn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), -1);
|
|
904
911
|
}
|
|
905
|
-
function
|
|
906
|
-
let r =
|
|
907
|
-
return r ? (r[t] = parseInt(n),
|
|
912
|
+
function Rt(e, t, n) {
|
|
913
|
+
let r = X(e, t, !1);
|
|
914
|
+
return r ? (r[t] = parseInt(n), Pn(e.priv) && e.priv.hasOwnProperty(t) && (e.priv[t] = n), e.obflag & U.obflag_created && !(e.obflag & U.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, t), 0) : (fn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), -1);
|
|
908
915
|
}
|
|
909
|
-
function
|
|
910
|
-
let r =
|
|
911
|
-
return r ? (r[t] = String(n),
|
|
916
|
+
function jt(e, t, n) {
|
|
917
|
+
let r = X(e, t, !1);
|
|
918
|
+
return r ? (r[t] = String(n), Pn(e.priv) && e.priv.hasOwnProperty(t) && (e.priv[t] = n), e.obflag & U.obflag_created && !(e.obflag & U.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, t), 0) : (fn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), -1);
|
|
912
919
|
}
|
|
913
|
-
function
|
|
914
|
-
if (
|
|
920
|
+
function $t(e, t) {
|
|
921
|
+
if (nt(e)) return fn("gobj NULL or DESTROYED"), null;
|
|
915
922
|
if (e.current_state.state_name === t) return !1;
|
|
916
|
-
let n =
|
|
917
|
-
return n ? (e.last_state = e.current_state, e.current_state = n, !0) : (
|
|
923
|
+
let n = te(e.gclass, t);
|
|
924
|
+
return n ? (e.last_state = e.current_state, e.current_state = n, !0) : (fn(`${Xe(e)}: state unknown, state ${t}`), !1);
|
|
918
925
|
}
|
|
919
|
-
function
|
|
920
|
-
return
|
|
926
|
+
function It(e) {
|
|
927
|
+
return Yn(e) ? e.current_state.state_name : (fn("hgobj NULL"), "");
|
|
921
928
|
}
|
|
922
|
-
function
|
|
923
|
-
return
|
|
929
|
+
function At(e, n) {
|
|
930
|
+
return nt(e) ? (fn("gobj NULL or DESTROYED"), null) : n instanceof k ? (e.parent && e.parent.mt_child_removed && e.parent.mt_child_removed(e.parent, e), e.parent && (be(e.parent, e), e.parent = null), de(n, e), n.mt_child_added && (E && Tt(E, "trace_creation") && bn(t("👦👦🔵 child_added(%s): %s", He(n), Xe(e))), n.mt_child_added(n, e)), 0) : (fn(`${Xe(e)}: gobj_change_parent() BAD TYPE of parent`), -1);
|
|
924
931
|
}
|
|
925
|
-
function
|
|
926
|
-
if (!
|
|
927
|
-
let r =
|
|
932
|
+
function kt(e, t, n) {
|
|
933
|
+
if (!Yn(e)) return fn("gobj NULL of bad type"), null;
|
|
934
|
+
let r = se(e.gclass, t);
|
|
928
935
|
if (r) return r;
|
|
929
936
|
if (n) {
|
|
930
937
|
const e = b.length, n = b;
|
|
@@ -935,43 +942,47 @@ function $t(e, t, n) {
|
|
|
935
942
|
}
|
|
936
943
|
return null;
|
|
937
944
|
}
|
|
938
|
-
function
|
|
939
|
-
let r =
|
|
945
|
+
function Lt(e, t, n) {
|
|
946
|
+
let r = kt(e, t, !1);
|
|
940
947
|
return !!r && !(n && !(r.event_flag & n));
|
|
941
948
|
}
|
|
942
|
-
function
|
|
943
|
-
let r =
|
|
949
|
+
function Pt(e, t, n) {
|
|
950
|
+
let r = kt(e, t, !1);
|
|
944
951
|
return !!r && !(n && !(r.event_flag & n)) && !!(r.event_flag & C.EVF_OUTPUT_EVENT);
|
|
945
952
|
}
|
|
946
|
-
function
|
|
953
|
+
function Ut(e, t, n, r) {
|
|
947
954
|
setTimeout(() => {
|
|
948
|
-
|
|
955
|
+
nt(e) || Ct(e, t, n, r);
|
|
949
956
|
}, 10);
|
|
950
957
|
}
|
|
951
|
-
function
|
|
952
|
-
if (!(e && e instanceof k)) return
|
|
953
|
-
if (e.obflag & (U.obflag_destroyed | U.obflag_destroying)) return
|
|
958
|
+
function Ct(e, n, r, l) {
|
|
959
|
+
if (!(e && e instanceof k)) return fn("gobj dst NULL"), -1;
|
|
960
|
+
if (e.obflag & (U.obflag_destroyed | U.obflag_destroying)) return fn("gobj dst DESTROYED"), -1;
|
|
954
961
|
let i = e.current_state;
|
|
955
|
-
if (!i) return
|
|
962
|
+
if (!i) return fn(`${Xe(e)}: current_state NULL`), -1;
|
|
956
963
|
let o = 0;
|
|
957
|
-
o = E &&
|
|
958
|
-
let s =
|
|
959
|
-
if (!s) return e.gclass.gmt.mt_inject_event ? (T--, o && (
|
|
964
|
+
o = E && yt(E, "tracing"), "C_TIMER" === ze(l) && (o = E && yt(E, "trace_timer")), T++;
|
|
965
|
+
let s = ne(i, n);
|
|
966
|
+
if (!s) return e.gclass.gmt.mt_inject_event ? (T--, o && (x(t("🔃 mach(%s%s), st: %s, ev: %s, from(%s%s)", e.running ? "" : "!!", Xe(e), i.state_name, n || "", l && !l.running ? "!!" : "", Xe(l))), r && o > 1 && An(r) && mn(r)), e.gclass.gmt.mt_inject_event(e, n, r, l)) : (o && x(t("📛 mach(%s%s^%s), st: %s, ev: %s, 📛📛ERROR Event NOT DEFINED in state📛📛, from(%s%s^%s)", e.running ? "" : "!!", ze(e), qe(e), i.state_name, n || "", l && !l.running ? "!!" : "", ze(l), qe(l))), fn(`📛📛 Event NOT DEFINED in state 📛📛: ${Xe(e)}, ${i.state_name}, ${n}`), T--, -1);
|
|
960
967
|
if (o) {
|
|
961
|
-
|
|
962
|
-
|
|
968
|
+
if (1 === M) x(t("🔄 %s %s%s %s from %s%s", n || "", e.running ? "" : "!!", Xe(e), i.state_name, l && !l.running ? "!!" : "", Xe(l)));
|
|
969
|
+
else {
|
|
970
|
+
let r = "";
|
|
971
|
+
s.action && (r = fl(s.action)), x(t("🔄 mach(%s%s^%s), st: %s, ev: %s%s%s, ac: %s, from(%s%s^%s)", e.running ? "" : "!!", ze(e), qe(e), i.state_name, "", n || "", "", r, l && !l.running ? "!!" : "", ze(l), qe(l)));
|
|
972
|
+
}
|
|
973
|
+
r && o > 1 && An(r) && mn(r);
|
|
963
974
|
}
|
|
964
|
-
s.next_state &&
|
|
975
|
+
s.next_state && $t(e, s.next_state);
|
|
965
976
|
let a = -1;
|
|
966
977
|
try {
|
|
967
978
|
s.action && (a = s.action(e, n, r, l));
|
|
968
979
|
} finally {}
|
|
969
|
-
return !o || e.obflag & U.obflag_destroyed ||
|
|
980
|
+
return !o || 1 === M || e.obflag & U.obflag_destroyed || x(t("<- mach(%s%s^%s), st: %s, ev: %s, ret: %d", e.running ? "" : "!!", ze(e), qe(e), e.current_state.state_name, n || "", Fn(a) ? a : 0)), T--, a;
|
|
970
981
|
}
|
|
971
|
-
var
|
|
982
|
+
var Ft = Object.freeze({
|
|
972
983
|
__hard_subscription__: 1,
|
|
973
984
|
__own_event__: 2
|
|
974
|
-
}),
|
|
985
|
+
}), Gt = [
|
|
975
986
|
N(y.DTP_POINTER, "publisher", 0, null, "publisher gobj"),
|
|
976
987
|
N(y.DTP_POINTER, "subscriber", 0, null, "subscriber gobj"),
|
|
977
988
|
N(y.DTP_STRING, "event", 0, "", "event name subscribed"),
|
|
@@ -984,48 +995,48 @@ var Pt = Object.freeze({
|
|
|
984
995
|
N(y.DTP_STRING, "__service__", 0, "", "subscription service"),
|
|
985
996
|
v()
|
|
986
997
|
];
|
|
987
|
-
function
|
|
988
|
-
let i =
|
|
989
|
-
if (t && t !==
|
|
990
|
-
let t =
|
|
991
|
-
|
|
998
|
+
function Vt(e, t, n, r, l) {
|
|
999
|
+
let i = ur(t, r, "__config__", null), o = ur(t, r, "__global__", null), s = ur(t, r, "__local__", null), a = _r(t, r, "__filter__", null), u = !0;
|
|
1000
|
+
if (t && t !== ar(null, e, "publisher", null) && (u = !1), l && l !== ar(null, e, "subscriber", null) && (u = !1), n && n !== sr(null, e, "event", "") && (u = !1), Ln(i) > 0) {
|
|
1001
|
+
let t = ur(null, e, "__config__", null);
|
|
1002
|
+
Ln(t) > 0 && Tn(t, i) || (u = !1);
|
|
992
1003
|
}
|
|
993
|
-
if (
|
|
994
|
-
let t =
|
|
995
|
-
|
|
1004
|
+
if (Ln(o) > 0) {
|
|
1005
|
+
let t = ur(null, e, "__global__", null);
|
|
1006
|
+
Ln(t) > 0 && Tn(t, o) || (u = !1);
|
|
996
1007
|
}
|
|
997
|
-
if (
|
|
998
|
-
let t =
|
|
999
|
-
|
|
1008
|
+
if (Ln(s) > 0) {
|
|
1009
|
+
let t = ur(null, e, "__local__", null);
|
|
1010
|
+
Ln(t) > 0 && Tn(t, s) || (u = !1);
|
|
1000
1011
|
}
|
|
1001
|
-
if (
|
|
1002
|
-
let t =
|
|
1003
|
-
|
|
1012
|
+
if (Ln(a) > 0) {
|
|
1013
|
+
let t = _r(null, e, "__filter__", null);
|
|
1014
|
+
Ln(t) > 0 && Tn(t, a) || (u = !1);
|
|
1004
1015
|
}
|
|
1005
1016
|
return u;
|
|
1006
1017
|
}
|
|
1007
|
-
function
|
|
1018
|
+
function Wt(e, t, n, r, l) {
|
|
1008
1019
|
let i = [];
|
|
1009
1020
|
for (let o = 0; o < e.length; o++) {
|
|
1010
1021
|
let s = e[o];
|
|
1011
|
-
|
|
1022
|
+
Vt(s, t, n, r, l) && Rn(i, s);
|
|
1012
1023
|
}
|
|
1013
1024
|
return i;
|
|
1014
1025
|
}
|
|
1015
|
-
function
|
|
1016
|
-
for (let i = 0; i < e.length; i++) if (
|
|
1026
|
+
function Mt(e, t, n, r, l) {
|
|
1027
|
+
for (let i = 0; i < e.length; i++) if (Vt(e[i], t, n, r, l)) return i;
|
|
1017
1028
|
return -1;
|
|
1018
1029
|
}
|
|
1019
|
-
function
|
|
1020
|
-
let i =
|
|
1021
|
-
if (!!(
|
|
1022
|
-
E &&
|
|
1023
|
-
let a =
|
|
1024
|
-
return a >= 0 ?
|
|
1030
|
+
function Kt(e, n, r, l) {
|
|
1031
|
+
let i = ar(e, n, "publisher", null, Zt.KW_REQUIRED), o = ar(e, n, "subscriber", null, Zt.KW_REQUIRED), s = sr(e, n, "event", "", Zt.KW_REQUIRED);
|
|
1032
|
+
if (!!(ir(e, n, "subs_flag", null, Zt.KW_REQUIRED) & Ft.__hard_subscription__) && !r) return -1;
|
|
1033
|
+
E && Tt(E, "trace_subscriptions") && (x(t("💜💜👎 unsubscribing event '%s': publisher %s, subscriber'%s'", s || "", Xe(i), Xe(o))), mn(n)), i.obflag & U.obflag_destroyed || l || i.gclass.gmt.mt_subscription_deleted && i.gclass.gmt.mt_subscription_deleted(i, n);
|
|
1034
|
+
let a = Mt(i.dl_subscriptions, i, s, n, o);
|
|
1035
|
+
return a >= 0 ? $n(i.dl_subscriptions, a) : (fn(`${Xe(e)}: subscription in publisher not found`), mn(n)), a = Mt(o.dl_subscribings, i, s, n, o), a >= 0 ? $n(o.dl_subscribings, a) : (fn(`${Xe(e)}: subscription in subscriber not found`), mn(n)), 0;
|
|
1025
1036
|
}
|
|
1026
|
-
function
|
|
1027
|
-
if (null == r && (r = {}), !e) return
|
|
1028
|
-
if (!l) return
|
|
1037
|
+
function Yt(e, n, r, l) {
|
|
1038
|
+
if (null == r && (r = {}), !e) return fn(`publisher NULL: ev ${n}`), 0;
|
|
1039
|
+
if (!l) return fn(`subscriber NULL: ev ${n}`), 0;
|
|
1029
1040
|
const i = new Set([
|
|
1030
1041
|
"__config__",
|
|
1031
1042
|
"__global__",
|
|
@@ -1034,37 +1045,37 @@ function Wt(e, n, r, l) {
|
|
|
1034
1045
|
"__service__"
|
|
1035
1046
|
]);
|
|
1036
1047
|
if (Object.keys(r).forEach((t) => {
|
|
1037
|
-
i.has(t) ||
|
|
1038
|
-
}),
|
|
1039
|
-
else if (!(
|
|
1040
|
-
let o =
|
|
1041
|
-
|
|
1048
|
+
i.has(t) || fn(`${Xe(e)}: key ignored in subscription (key: ${t}, event: ${n})`);
|
|
1049
|
+
}), xn(n)) n = "";
|
|
1050
|
+
else if (!(Pt(e, n, C.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & L.gcflag_no_check_output_events)) return fn(`event NOT in output event list: ${Xe(e)}, ${n}`), 0;
|
|
1051
|
+
let o = Wt(e.dl_subscriptions, e, n, r, l);
|
|
1052
|
+
kn(o) > 0 && (fn(`${Xe(e)}: ${kn(o)} subscription(s) REPEATED, will be deleted and override`), mn(o, "subscription REPEATED"), Bt(e, o, !1));
|
|
1042
1053
|
let s = function(e, t, n, r) {
|
|
1043
|
-
let l =
|
|
1044
|
-
|
|
1054
|
+
let l = J(e, Gt);
|
|
1055
|
+
Dn(l, "event", t), Dn(l, "subscriber", r), Dn(l, "publisher", e);
|
|
1045
1056
|
let i = 0;
|
|
1046
1057
|
if (n) {
|
|
1047
|
-
let t =
|
|
1048
|
-
if (
|
|
1049
|
-
let n =
|
|
1050
|
-
if (
|
|
1051
|
-
let t =
|
|
1052
|
-
|
|
1058
|
+
let t = ur(e, n, "__config__", null), r = ur(e, n, "__global__", null), o = ur(e, n, "__local__", null), s = _r(e, n, "__filter__", null), a = sr(e, n, "__service__", "");
|
|
1059
|
+
if (Ln(r) > 0 && Dn(l, "__global__", En(r)), Ln(t) > 0) {
|
|
1060
|
+
let n = En(t);
|
|
1061
|
+
if (Dn(l, "__config__", n), tr(n, "__hard_subscription__")) {
|
|
1062
|
+
let t = lr(e, n, "__hard_subscription__", !1);
|
|
1063
|
+
Nn(n, "__hard_subscription__"), t && (i |= Ft.__hard_subscription__);
|
|
1053
1064
|
}
|
|
1054
|
-
if (
|
|
1055
|
-
let t =
|
|
1056
|
-
|
|
1065
|
+
if (tr(n, "__own_event__")) {
|
|
1066
|
+
let t = lr(e, n, "__own_event__", !1);
|
|
1067
|
+
Nn(n, "__own_event__"), t && (i |= Ft.__own_event__);
|
|
1057
1068
|
}
|
|
1058
1069
|
}
|
|
1059
|
-
|
|
1070
|
+
Ln(o) > 0 && Dn(l, "__local__", En(o)), Ln(s) > 0 && Dn(l, "__filter__", En(s)), xn(a) || Dn(l, "__service__", a);
|
|
1060
1071
|
}
|
|
1061
|
-
return
|
|
1072
|
+
return Dn(l, "subs_flag", i), l;
|
|
1062
1073
|
}(e, n, r, l);
|
|
1063
|
-
return s ? (
|
|
1074
|
+
return s ? (Rn(e.dl_subscriptions, s), Rn(l.dl_subscribings, s), E && Tt(E, "trace_subscriptions") && (x(t("💜💜👍 subscribing event '%s', publisher '%s', subscriber %s", n || "", Xe(e), Xe(l))), r && mn(r)), e.gclass.gmt.mt_subscription_added && e.gclass.gmt.mt_subscription_added(e, s) < 0 && (Kt(e, s, !0, !0), s = 0), s) : (fn(`${Xe(e)}: _create_subscription() FAILED`), 0);
|
|
1064
1075
|
}
|
|
1065
|
-
function
|
|
1066
|
-
if (null == n && (n = {}), !e) return
|
|
1067
|
-
if (!r) return
|
|
1076
|
+
function xt(e, t, n, r) {
|
|
1077
|
+
if (null == n && (n = {}), !e) return fn(`publisher NULL: ev ${t}`), 0;
|
|
1078
|
+
if (!r) return fn(`subscriber NULL: ev ${t}`), 0;
|
|
1068
1079
|
const l = new Set([
|
|
1069
1080
|
"__config__",
|
|
1070
1081
|
"__global__",
|
|
@@ -1073,52 +1084,52 @@ function Mt(e, t, n, r) {
|
|
|
1073
1084
|
"__service__"
|
|
1074
1085
|
]);
|
|
1075
1086
|
if (Object.keys(n).forEach((n) => {
|
|
1076
|
-
l.has(n) ||
|
|
1077
|
-
}),
|
|
1078
|
-
else if (!(
|
|
1079
|
-
let i =
|
|
1087
|
+
l.has(n) || fn(`${Xe(e)}: key ignored in subscription (key: ${n}, event: ${t})`);
|
|
1088
|
+
}), xn(t)) t = "";
|
|
1089
|
+
else if (!(Pt(e, t, C.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & L.gcflag_no_check_output_events)) return fn(`event NOT in output event list: ${Xe(e)}, ev ${t}`), 0;
|
|
1090
|
+
let i = Wt(e.dl_subscriptions, e, t, n, r), o = 0;
|
|
1080
1091
|
for (let t = 0; t < i.length; t++) {
|
|
1081
1092
|
let n = i[t];
|
|
1082
|
-
|
|
1093
|
+
Kt(e, n, !1, !1), o++;
|
|
1083
1094
|
}
|
|
1084
|
-
return o || (
|
|
1095
|
+
return o || (gn(`${Xe(e)}: No subscription found`), mn(n, "No subscription found")), 0;
|
|
1085
1096
|
}
|
|
1086
|
-
function
|
|
1097
|
+
function Bt(e, t, n) {
|
|
1087
1098
|
let r = [...t];
|
|
1088
|
-
for (let t = 0; t < r.length; t++)
|
|
1099
|
+
for (let t = 0; t < r.length; t++) Kt(e, r[t], n, !1);
|
|
1089
1100
|
return 0;
|
|
1090
1101
|
}
|
|
1091
|
-
function
|
|
1092
|
-
return null == n && (n = {}),
|
|
1102
|
+
function Jt(e, t, n, r) {
|
|
1103
|
+
return null == n && (n = {}), Wt(e.dl_subscriptions, e, t, n, r);
|
|
1093
1104
|
}
|
|
1094
|
-
function
|
|
1095
|
-
let t =
|
|
1105
|
+
function Qt(e) {
|
|
1106
|
+
let t = Jt(e, null, null, null);
|
|
1096
1107
|
for (let n = 0; n < t.length; n++) {
|
|
1097
|
-
let r = t[n], l =
|
|
1098
|
-
|
|
1108
|
+
let r = t[n], l = ar(e, r, "publisher", null, Zt.KW_REQUIRED), i = ar(e, r, "subscriber", null, Zt.KW_REQUIRED);
|
|
1109
|
+
Dn(r, "s_event", sr(e, r, "event", "", Zt.KW_REQUIRED)), Dn(r, "s_publisher", Xe(l)), Dn(r, "s_subscriber", Xe(i));
|
|
1099
1110
|
}
|
|
1100
|
-
let n =
|
|
1111
|
+
let n = qt(e, 0, null, 0);
|
|
1101
1112
|
for (let t = 0; t < n.length; t++) {
|
|
1102
|
-
let r = n[t], l =
|
|
1103
|
-
|
|
1113
|
+
let r = n[t], l = ar(e, r, "publisher", null, Zt.KW_REQUIRED), i = ar(e, r, "subscriber", null, Zt.KW_REQUIRED);
|
|
1114
|
+
Dn(r, "s_event", sr(e, r, "event", "", Zt.KW_REQUIRED)), Dn(r, "s_publisher", Xe(l)), Dn(r, "s_subscriber", Xe(i));
|
|
1104
1115
|
}
|
|
1105
1116
|
return {
|
|
1106
1117
|
subscriptions: t,
|
|
1107
1118
|
subscribings: n,
|
|
1108
|
-
"total subscriptions":
|
|
1109
|
-
total_subscribings:
|
|
1119
|
+
"total subscriptions": kn(t),
|
|
1120
|
+
total_subscribings: kn(n)
|
|
1110
1121
|
};
|
|
1111
1122
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return
|
|
1123
|
+
function qt(e, t, n, r) {
|
|
1124
|
+
return Wt(e.dl_subscribings, r, t, n, e);
|
|
1114
1125
|
}
|
|
1115
|
-
function
|
|
1116
|
-
if (
|
|
1117
|
-
if (
|
|
1118
|
-
let l =
|
|
1119
|
-
if (!(l && l.event_flag & (C.EVF_SYSTEM_EVENT | C.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & L.gcflag_no_check_output_events)) return
|
|
1120
|
-
let i = E &&
|
|
1121
|
-
if (i && (
|
|
1126
|
+
function zt(e, n, r) {
|
|
1127
|
+
if (Pn(r) || (r = {}), !e || e.obflag & (U.obflag_destroyed | U.obflag_destroying)) return fn("gobj NULL or DESTROYED"), -1;
|
|
1128
|
+
if (xn(n)) return fn(`${Xe(e)}: event EMPTY`), -1;
|
|
1129
|
+
let l = kt(e, n, !0);
|
|
1130
|
+
if (!(l && l.event_flag & (C.EVF_SYSTEM_EVENT | C.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & L.gcflag_no_check_output_events)) return fn(`event NOT in output event list: ${Xe(e)}, ev ${n}`), -1;
|
|
1131
|
+
let i = E && Tt(E, "trace_subscriptions");
|
|
1132
|
+
if (i && (x(t("🔝🔝 mach(%s%s^%s), st: %s, ev: %s%s%s", e.running ? "" : "!!", ze(e), qe(e), e.current_state.state_name, "", n || "", "")), mn(r)), e.gclass.gmt.mt_publish_event) {
|
|
1122
1133
|
let t = e.gclass.gmt.mt_publish_event(e, n, r);
|
|
1123
1134
|
if (t <= 0) return t;
|
|
1124
1135
|
}
|
|
@@ -1130,36 +1141,36 @@ function Jt(e, n, r) {
|
|
|
1130
1141
|
if (t < 0) break;
|
|
1131
1142
|
if (0 === t) continue;
|
|
1132
1143
|
}
|
|
1133
|
-
let _ =
|
|
1134
|
-
if (!_ ||
|
|
1135
|
-
let c =
|
|
1136
|
-
if (
|
|
1137
|
-
|
|
1138
|
-
let l =
|
|
1139
|
-
if (e.gclass.gmt.mt_publication_filter ? d = e.gclass.gmt.mt_publication_filter(e, n, g, _) :
|
|
1144
|
+
let _ = ar(e, u, "subscriber", null, Zt.KW_REQUIRED);
|
|
1145
|
+
if (!_ || nt(_)) continue;
|
|
1146
|
+
let c = ir(e, u, "subs_flag", 0, Zt.KW_REQUIRED), f = sr(e, u, "event", "", Zt.KW_REQUIRED);
|
|
1147
|
+
if (xn(f) || 0 === qn(f, n)) {
|
|
1148
|
+
ur(e, u, "__config__", null, 0);
|
|
1149
|
+
let l = ur(e, u, "__global__", null, 0), o = ur(e, u, "__local__", null, 0), f = _r(e, u, "__filter__", null, 0), g = r, d = 1;
|
|
1150
|
+
if (e.gclass.gmt.mt_publication_filter ? d = e.gclass.gmt.mt_publication_filter(e, n, g, _) : Ln(f) > 0 && (d = br(g, f), i && (x(t("💜💜🔄%s publishing with filter, event '%s', subscriber'%s', publisher %s", d ? "👍" : "👎", n || "", Xe(_), Xe(e))), mn(f))), d < 0) break;
|
|
1140
1151
|
if (0 === d) continue;
|
|
1141
|
-
let b =
|
|
1142
|
-
if (b && b.event_flag & C.EVF_SYSTEM_EVENT && !
|
|
1143
|
-
o &&
|
|
1144
|
-
let p =
|
|
1145
|
-
if (p < 0 && c &
|
|
1152
|
+
let b = kt(_, n, !0);
|
|
1153
|
+
if (b && b.event_flag & C.EVF_SYSTEM_EVENT && !Lt(_, b.event_name, 0)) continue;
|
|
1154
|
+
o && er(g, o), l && yn(g, l), i && (x(t("🔝🔄 mach(%s%s), st: %s, ev: %s, from(%s%s)", _.running ? "" : "!!", Xe(_), It(_), n || "", e && !e.running ? "!!" : "", Xe(e))), mn(g));
|
|
1155
|
+
let p = Ct(_, n, g, e);
|
|
1156
|
+
if (p < 0 && c & Ft.__own_event__) {
|
|
1146
1157
|
s = -1;
|
|
1147
1158
|
break;
|
|
1148
1159
|
}
|
|
1149
|
-
if (a += p, s++,
|
|
1160
|
+
if (a += p, s++, nt(e)) break;
|
|
1150
1161
|
}
|
|
1151
1162
|
}
|
|
1152
|
-
return s || l && l.event_flag & C.EVF_NO_WARN_SUBS ||
|
|
1163
|
+
return s || l && l.event_flag & C.EVF_NO_WARN_SUBS || gn(`${Xe(e)}: Publish event WITHOUT subscribers, ev ${n}`), a;
|
|
1153
1164
|
}
|
|
1154
|
-
function
|
|
1155
|
-
if (
|
|
1156
|
-
let o = E &&
|
|
1157
|
-
return o && (
|
|
1165
|
+
function Xt(e, n, r, l) {
|
|
1166
|
+
if (nt(e)) return fn("gobj NULL or DESTROYED"), -1;
|
|
1167
|
+
let o = E && yt(E, "tracing");
|
|
1168
|
+
return o && (x(t("🌀🌀 mach(%s%s), cmd: %s, src: %s", We(e) ? "" : "!!", Xe(e), n, Xe(l))), o > 1 && mn(r)), 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) : i(0, -1, t("%s: global command parser not available", Xe(e)), 0, 0) : i(0, -1, t("%s: command table not available", Xe(e)), 0, 0);
|
|
1158
1169
|
}
|
|
1159
|
-
function
|
|
1160
|
-
return
|
|
1170
|
+
function Ht(e, n, r, l) {
|
|
1171
|
+
return nt(e) ? (fn("gobj NULL or DESTROYED"), -1) : e.gclass.gmt.mt_stats ? e.gclass.gmt.mt_stats(e, n, r, l) : d ? d(e, n, r, l) : s(0, -1, t("%s, stats parser not available", Xe(e)), 0, 0);
|
|
1161
1172
|
}
|
|
1162
|
-
var
|
|
1173
|
+
var Zt = Object.freeze({
|
|
1163
1174
|
KW_REQUIRED: 1,
|
|
1164
1175
|
KW_CREATE: 2,
|
|
1165
1176
|
KW_WILD_NUMBER: 4,
|
|
@@ -1168,7 +1179,7 @@ var zt = Object.freeze({
|
|
|
1168
1179
|
KW_VERBOSE: 32,
|
|
1169
1180
|
KW_LOWER: 64,
|
|
1170
1181
|
KW_RECURSIVE: 128
|
|
1171
|
-
}),
|
|
1182
|
+
}), en = (Object.freeze({
|
|
1172
1183
|
JSON_OBJECT: 1,
|
|
1173
1184
|
JSON_ARRAY: 2,
|
|
1174
1185
|
JSON_STRING: 3,
|
|
@@ -1177,11 +1188,25 @@ var zt = Object.freeze({
|
|
|
1177
1188
|
JSON_TRUE: 6,
|
|
1178
1189
|
JSON_FALSE: 7,
|
|
1179
1190
|
JSON_NULL: 8
|
|
1180
|
-
}), "undefined" != typeof window ? window.console : console),
|
|
1181
|
-
function
|
|
1182
|
-
|
|
1191
|
+
}), "undefined" != typeof window ? window.console : console), tn = en.error, nn = en.warn, rn = en.info, ln = en.debug, on = null;
|
|
1192
|
+
function sn(e) {
|
|
1193
|
+
on = "function" == typeof e ? e : null;
|
|
1194
|
+
}
|
|
1195
|
+
var an = !1;
|
|
1196
|
+
function un(e, t, n) {
|
|
1197
|
+
if (on && !an) {
|
|
1198
|
+
an = !0;
|
|
1199
|
+
try {
|
|
1200
|
+
on(e, t, n);
|
|
1201
|
+
} catch (e) {} finally {
|
|
1202
|
+
an = !1;
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1183
1205
|
}
|
|
1184
|
-
function
|
|
1206
|
+
function _n(e) {
|
|
1207
|
+
e ? (tn = e, nn = e) : (tn = en.error, nn = en.warn);
|
|
1208
|
+
}
|
|
1209
|
+
function cn(e) {
|
|
1185
1210
|
const t = Array.prototype.slice.call(arguments);
|
|
1186
1211
|
let n = "";
|
|
1187
1212
|
if ("string" == typeof e) {
|
|
@@ -1203,33 +1228,33 @@ function rn(e) {
|
|
|
1203
1228
|
} else n = t.map((e) => "object" == typeof e ? JSON.stringify(e) : String(e)).join(" ");
|
|
1204
1229
|
return n;
|
|
1205
1230
|
}
|
|
1206
|
-
function
|
|
1207
|
-
let t =
|
|
1208
|
-
|
|
1231
|
+
function fn(e) {
|
|
1232
|
+
let t = cn(e), n = sl();
|
|
1233
|
+
tn && (tn === window.console.error ? tn("%c" + n + " ERROR: " + String(t), "color:red") : (window.console.error("%c" + n + " ERROR: " + String(t), "color:red"), tn(`${n} ERROR: ${String(t)}`))), un("error", t, n);
|
|
1209
1234
|
}
|
|
1210
|
-
function
|
|
1211
|
-
let t =
|
|
1212
|
-
|
|
1235
|
+
function gn(e) {
|
|
1236
|
+
let t = cn(e), n = sl();
|
|
1237
|
+
nn && (nn === window.console.warn ? nn("%c" + n + " WARNING: " + String(t), "color:yellow") : (window.console.warn("%c" + n + " WARNING: " + String(t), "color:yellow"), nn(`${n} WARNING: ${String(t)}`))), un("warning", t, n);
|
|
1213
1238
|
}
|
|
1214
|
-
function
|
|
1215
|
-
let t =
|
|
1216
|
-
|
|
1239
|
+
function dn(e) {
|
|
1240
|
+
let t = cn(e), n = sl();
|
|
1241
|
+
rn && rn("%c" + n + " INFO: " + String(t), "color:cyan"), un("info", t, n);
|
|
1217
1242
|
}
|
|
1218
|
-
function
|
|
1219
|
-
let t =
|
|
1220
|
-
|
|
1243
|
+
function bn(e) {
|
|
1244
|
+
let t = cn(e), n = sl();
|
|
1245
|
+
ln && ln("%c" + n + " DEBUG: " + String(t), "color:silver"), un("debug", t, n);
|
|
1221
1246
|
}
|
|
1222
|
-
function
|
|
1223
|
-
let t =
|
|
1224
|
-
|
|
1247
|
+
function pn(e) {
|
|
1248
|
+
let t = cn(e), n = sl();
|
|
1249
|
+
ln && ln("%c" + n + " MSG: " + String(t), "color:cyan"), un("msg", t, n);
|
|
1225
1250
|
}
|
|
1226
|
-
function
|
|
1227
|
-
t && window.console.warn("=====> " + t), window.console.dir(e);
|
|
1251
|
+
function mn(e, t) {
|
|
1252
|
+
t && window.console.warn("=====> " + t), window.console.dir(e), un("json", e, sl());
|
|
1228
1253
|
}
|
|
1229
|
-
function
|
|
1254
|
+
function En(e) {
|
|
1230
1255
|
return structuredClone(e);
|
|
1231
1256
|
}
|
|
1232
|
-
function
|
|
1257
|
+
function hn(...e) {
|
|
1233
1258
|
const t = {};
|
|
1234
1259
|
for (const n of e) {
|
|
1235
1260
|
const e = structuredClone(n);
|
|
@@ -1237,14 +1262,14 @@ function fn(...e) {
|
|
|
1237
1262
|
}
|
|
1238
1263
|
return t;
|
|
1239
1264
|
}
|
|
1240
|
-
function
|
|
1265
|
+
function Tn(e, t) {
|
|
1241
1266
|
if (e === t) return !0;
|
|
1242
1267
|
if (null === e || null === t) return e === t;
|
|
1243
1268
|
if (typeof e != typeof t) return !1;
|
|
1244
1269
|
if (Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
1245
1270
|
if (Array.isArray(e)) {
|
|
1246
1271
|
if (e.length !== t.length) return !1;
|
|
1247
|
-
for (let n = 0; n < e.length; n++) if (!
|
|
1272
|
+
for (let n = 0; n < e.length; n++) if (!Tn(e[n], t[n])) return !1;
|
|
1248
1273
|
return !0;
|
|
1249
1274
|
}
|
|
1250
1275
|
if ("object" == typeof e) {
|
|
@@ -1252,269 +1277,269 @@ function gn(e, t) {
|
|
|
1252
1277
|
if (n.length !== r.length) return !1;
|
|
1253
1278
|
for (let l = 0; l < n.length; l++) {
|
|
1254
1279
|
if (n[l] !== r[l]) return !1;
|
|
1255
|
-
if (!
|
|
1280
|
+
if (!Tn(e[n[l]], t[r[l]])) return !1;
|
|
1256
1281
|
}
|
|
1257
1282
|
return !0;
|
|
1258
1283
|
}
|
|
1259
1284
|
return e === t;
|
|
1260
1285
|
}
|
|
1261
|
-
function
|
|
1286
|
+
function yn(e, t) {
|
|
1262
1287
|
if (!t) return e;
|
|
1263
1288
|
for (let n of Object.keys(t)) e[n] = t[n];
|
|
1264
1289
|
return e;
|
|
1265
1290
|
}
|
|
1266
|
-
function
|
|
1291
|
+
function Sn(e, t) {
|
|
1267
1292
|
if (!t) return e;
|
|
1268
1293
|
for (let n in t) t.hasOwnProperty(n) && e.hasOwnProperty(n) && (e[n] = t[n]);
|
|
1269
1294
|
return e;
|
|
1270
1295
|
}
|
|
1271
|
-
function
|
|
1296
|
+
function On(e, t) {
|
|
1272
1297
|
if (!t) return e;
|
|
1273
1298
|
for (let n in t) t.hasOwnProperty(n) && !e.hasOwnProperty(n) && (e[n] = t[n]);
|
|
1274
1299
|
return e;
|
|
1275
1300
|
}
|
|
1276
|
-
function
|
|
1301
|
+
function vn(e, t) {
|
|
1277
1302
|
if (e && e.hasOwnProperty(t)) return e[t];
|
|
1278
1303
|
}
|
|
1279
|
-
function
|
|
1304
|
+
function Nn(e, t) {
|
|
1280
1305
|
e && e.hasOwnProperty(t) && delete e[t];
|
|
1281
1306
|
}
|
|
1282
|
-
function
|
|
1307
|
+
function wn(e, t, n) {
|
|
1283
1308
|
e[t] = n;
|
|
1284
1309
|
}
|
|
1285
|
-
function
|
|
1310
|
+
function Dn(e, t, n) {
|
|
1286
1311
|
e[t] = n;
|
|
1287
1312
|
}
|
|
1288
|
-
function
|
|
1313
|
+
function Rn(e, t) {
|
|
1289
1314
|
e.push(t);
|
|
1290
1315
|
}
|
|
1291
|
-
function
|
|
1316
|
+
function jn(e, t) {
|
|
1292
1317
|
e.push(t);
|
|
1293
1318
|
}
|
|
1294
|
-
function
|
|
1319
|
+
function $n(e, t) {
|
|
1295
1320
|
e.splice(t, 1);
|
|
1296
1321
|
}
|
|
1297
|
-
function
|
|
1322
|
+
function In(e, t) {
|
|
1298
1323
|
return t ? (Array.prototype.push.apply(e, t), e) : e;
|
|
1299
1324
|
}
|
|
1300
|
-
function
|
|
1301
|
-
return
|
|
1325
|
+
function An(e) {
|
|
1326
|
+
return Pn(e) ? Object.keys(e).length : 0;
|
|
1302
1327
|
}
|
|
1303
|
-
function
|
|
1304
|
-
return
|
|
1328
|
+
function kn(e) {
|
|
1329
|
+
return Un(e) ? e.length : 0;
|
|
1305
1330
|
}
|
|
1306
|
-
function
|
|
1307
|
-
return
|
|
1331
|
+
function Ln(e) {
|
|
1332
|
+
return Pn(e) ? Object.keys(e).length : Un(e) ? e.length : Cn(e) && e.length > 0 ? 1 : 0;
|
|
1308
1333
|
}
|
|
1309
|
-
function
|
|
1334
|
+
function Pn(e) {
|
|
1310
1335
|
return null !== e && "object" == typeof e && !Array.isArray(e);
|
|
1311
1336
|
}
|
|
1312
|
-
function
|
|
1337
|
+
function Un(e) {
|
|
1313
1338
|
return Array.isArray(e);
|
|
1314
1339
|
}
|
|
1315
|
-
function
|
|
1340
|
+
function Cn(e) {
|
|
1316
1341
|
return "string" == typeof e;
|
|
1317
1342
|
}
|
|
1318
|
-
function
|
|
1343
|
+
function Fn(e) {
|
|
1319
1344
|
return "number" == typeof e && Number.isFinite(e);
|
|
1320
1345
|
}
|
|
1321
|
-
function
|
|
1346
|
+
function Gn(e) {
|
|
1322
1347
|
return "boolean" == typeof e;
|
|
1323
1348
|
}
|
|
1324
|
-
function
|
|
1349
|
+
function Vn(e) {
|
|
1325
1350
|
return null == e;
|
|
1326
1351
|
}
|
|
1327
|
-
function
|
|
1328
|
-
if (
|
|
1329
|
-
if (
|
|
1352
|
+
function Wn(e) {
|
|
1353
|
+
if (Fn(e)) return !0;
|
|
1354
|
+
if (!Cn(e)) return !1;
|
|
1330
1355
|
const t = Number(e);
|
|
1331
1356
|
return !isNaN(t) && "" !== e.trim() && !isNaN(t);
|
|
1332
1357
|
}
|
|
1333
|
-
function
|
|
1358
|
+
function Mn(e) {
|
|
1334
1359
|
return e instanceof Date && !isNaN(e);
|
|
1335
1360
|
}
|
|
1336
|
-
function
|
|
1361
|
+
function Kn(e) {
|
|
1337
1362
|
return "function" == typeof e;
|
|
1338
1363
|
}
|
|
1339
|
-
function
|
|
1364
|
+
function Yn(e) {
|
|
1340
1365
|
return e instanceof k;
|
|
1341
1366
|
}
|
|
1342
|
-
function
|
|
1343
|
-
return
|
|
1367
|
+
function xn(e) {
|
|
1368
|
+
return !Cn(e) || 0 === e.length;
|
|
1344
1369
|
}
|
|
1345
|
-
function
|
|
1346
|
-
return
|
|
1370
|
+
function Bn(e) {
|
|
1371
|
+
return Fn(e) ? Boolean(e) : /^\s*(true|1|on)\s*$/i.test(e);
|
|
1347
1372
|
}
|
|
1348
|
-
function
|
|
1373
|
+
function Jn(e, t, n) {
|
|
1349
1374
|
var r = (e + "").substring(0, n), l = (t + "").substring(0, n);
|
|
1350
1375
|
return r === l ? 0 : r > l ? 1 : -1;
|
|
1351
1376
|
}
|
|
1352
|
-
function
|
|
1377
|
+
function Qn(e, t) {
|
|
1353
1378
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
1354
1379
|
}
|
|
1355
|
-
function
|
|
1380
|
+
function qn(e, t) {
|
|
1356
1381
|
let n = e.toLowerCase(), r = t.toLowerCase();
|
|
1357
1382
|
return n === r ? 0 : n > r ? 1 : -1;
|
|
1358
1383
|
}
|
|
1359
|
-
function
|
|
1360
|
-
if (
|
|
1361
|
-
if (
|
|
1384
|
+
function zn(e, t) {
|
|
1385
|
+
if (Pn(e) || Pn(t) || Un(e) || Un(t)) return 0;
|
|
1386
|
+
if (Fn(e) || Fn(t)) {
|
|
1362
1387
|
let n = Number(e), r = Number(t);
|
|
1363
1388
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
1364
1389
|
}
|
|
1365
|
-
if (
|
|
1390
|
+
if (Gn(e) || Gn(t)) {
|
|
1366
1391
|
let n = Number(e), r = Number(t);
|
|
1367
1392
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
1368
1393
|
}
|
|
1369
|
-
return
|
|
1394
|
+
return Qn(String(e), String(t));
|
|
1370
1395
|
}
|
|
1371
|
-
function
|
|
1396
|
+
function Xn(e, t, n) {
|
|
1372
1397
|
var r;
|
|
1373
1398
|
return -1 !== (r = (e += "").indexOf(t)) && (n ? e.substring(0, r) : e.slice(r));
|
|
1374
1399
|
}
|
|
1375
|
-
function
|
|
1376
|
-
if (
|
|
1400
|
+
function Hn(e) {
|
|
1401
|
+
if (!Cn(e)) return !1;
|
|
1377
1402
|
let t;
|
|
1378
1403
|
for (t = 0; t < e.length && "_" === e[t] && !(t > 2); t++);
|
|
1379
1404
|
return 2 === t;
|
|
1380
1405
|
}
|
|
1381
|
-
function
|
|
1382
|
-
if (
|
|
1406
|
+
function Zn(e) {
|
|
1407
|
+
if (!Cn(e)) return !1;
|
|
1383
1408
|
let t;
|
|
1384
1409
|
for (t = 0; t < e.length && "_" === e[t] && !(t > 2); t++);
|
|
1385
1410
|
return 1 === t;
|
|
1386
1411
|
}
|
|
1387
|
-
function
|
|
1388
|
-
if ("object" != typeof t || Array.isArray(t)) if (Array.isArray(t)) for (const n of t)
|
|
1412
|
+
function er(e, t) {
|
|
1413
|
+
if ("object" != typeof t || Array.isArray(t)) if (Array.isArray(t)) for (const n of t) er(e, n);
|
|
1389
1414
|
else "string" == typeof t && delete e[t];
|
|
1390
1415
|
else for (const n of Object.keys(t)) delete e[n];
|
|
1391
1416
|
}
|
|
1392
|
-
function
|
|
1417
|
+
function tr(e, t) {
|
|
1393
1418
|
return !(!(t in e) || !e.hasOwnProperty(t));
|
|
1394
1419
|
}
|
|
1395
|
-
function
|
|
1396
|
-
if (e && !
|
|
1397
|
-
if (
|
|
1420
|
+
function nr(e, t, n, r) {
|
|
1421
|
+
if (e && !Yn(e) && fn("GObj bad instanceof"), !Pn(t) && !Un(t)) return fn(`${Xe(e)}: kw must be list or dict`), 0;
|
|
1422
|
+
if (!Cn(n)) return fn(`${Xe(e)}: path must be a string: ${String(n)}`), 0;
|
|
1398
1423
|
let l = n.split("`");
|
|
1399
1424
|
if (l.length <= 1) return t[n];
|
|
1400
1425
|
let i = l.length;
|
|
1401
|
-
for (let o = 0; o < i; o++) if (void 0 === (t = t[l[o]])) return void (r &&
|
|
1426
|
+
for (let o = 0; o < i; o++) if (void 0 === (t = t[l[o]])) return void (r && fn(`${Xe(e)}: path not found: ${String(n)}`));
|
|
1402
1427
|
return t;
|
|
1403
1428
|
}
|
|
1404
|
-
function
|
|
1405
|
-
e && !
|
|
1429
|
+
function rr(e, t, n) {
|
|
1430
|
+
e && !Yn(e) && fn("GObj bad instanceof");
|
|
1406
1431
|
let [r, l] = function(e, t) {
|
|
1407
1432
|
let n = e.lastIndexOf(t);
|
|
1408
1433
|
return -1 === n ? [e, ""] : [e.substring(0, n), e.substring(n + 1)];
|
|
1409
1434
|
}(n, "`");
|
|
1410
|
-
return
|
|
1435
|
+
return xn(l) ? Nn(t, n) : Nn(nr(e, t, r, !0), l), 0;
|
|
1411
1436
|
}
|
|
1412
|
-
function
|
|
1413
|
-
e && !
|
|
1414
|
-
let i =
|
|
1415
|
-
const o = l && l &
|
|
1437
|
+
function lr(e, t, n, r, l) {
|
|
1438
|
+
e && !Yn(e) && fn("GObj bad instanceof");
|
|
1439
|
+
let i = nr(e, t, n, !1);
|
|
1440
|
+
const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
|
|
1416
1441
|
if (void 0 === i) {
|
|
1417
1442
|
if (s) {
|
|
1418
1443
|
let l = Boolean(r);
|
|
1419
|
-
return
|
|
1444
|
+
return fr(e, t, n, l), l;
|
|
1420
1445
|
}
|
|
1421
|
-
return o && (
|
|
1446
|
+
return o && (fn(`path not found: '${n}'`), mn(t)), Boolean(r);
|
|
1422
1447
|
}
|
|
1423
|
-
return a &&
|
|
1448
|
+
return a && rr(e, t, n), Boolean(i);
|
|
1424
1449
|
}
|
|
1425
|
-
function
|
|
1426
|
-
e && !
|
|
1427
|
-
let i =
|
|
1428
|
-
const o = l && l &
|
|
1450
|
+
function ir(e, t, n, r, l) {
|
|
1451
|
+
e && !Yn(e) && fn("GObj bad instanceof");
|
|
1452
|
+
let i = nr(e, t, n, !1);
|
|
1453
|
+
const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
|
|
1429
1454
|
if (void 0 === i) {
|
|
1430
1455
|
if (s) {
|
|
1431
1456
|
let l = parseInt(r);
|
|
1432
|
-
return
|
|
1457
|
+
return fr(e, t, n, l), l;
|
|
1433
1458
|
}
|
|
1434
|
-
return o && (
|
|
1459
|
+
return o && (fn(`path not found: '${n}'`), mn(t)), parseInt(r);
|
|
1435
1460
|
}
|
|
1436
|
-
return a &&
|
|
1461
|
+
return a && rr(e, t, n), Fn(i) ? parseInt(i) : (o && (fn(`path value MUST BE a number: ${n}`), pn(t)), parseInt(r));
|
|
1437
1462
|
}
|
|
1438
|
-
function
|
|
1439
|
-
e && !
|
|
1440
|
-
let i =
|
|
1441
|
-
const o = l && l &
|
|
1463
|
+
function or(e, t, n, r, l) {
|
|
1464
|
+
e && !Yn(e) && fn("GObj bad instanceof");
|
|
1465
|
+
let i = nr(e, t, n, !1);
|
|
1466
|
+
const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
|
|
1442
1467
|
if (void 0 === i) {
|
|
1443
1468
|
if (s) {
|
|
1444
1469
|
let l = Number(r);
|
|
1445
|
-
return
|
|
1470
|
+
return fr(e, t, n, l), l;
|
|
1446
1471
|
}
|
|
1447
|
-
return o && (
|
|
1472
|
+
return o && (fn(`path not found: '${n}'`), mn(t)), Number(r);
|
|
1448
1473
|
}
|
|
1449
|
-
return a &&
|
|
1474
|
+
return a && rr(e, t, n), Fn(i) ? Number(i) : (o && (fn(`path value MUST BE a number: ${n}`), pn(t)), Number(r));
|
|
1450
1475
|
}
|
|
1451
|
-
function
|
|
1452
|
-
e && !
|
|
1453
|
-
let i =
|
|
1454
|
-
const o = l && l &
|
|
1476
|
+
function sr(e, t, n, r, l) {
|
|
1477
|
+
e && !Yn(e) && fn("GObj bad instanceof");
|
|
1478
|
+
let i = nr(e, t, n, !1);
|
|
1479
|
+
const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
|
|
1455
1480
|
if (void 0 === i) {
|
|
1456
1481
|
if (s) {
|
|
1457
1482
|
let l = String(r);
|
|
1458
|
-
return
|
|
1483
|
+
return fr(e, t, n, l), l;
|
|
1459
1484
|
}
|
|
1460
|
-
return o && (
|
|
1485
|
+
return o && (fn(`path not found: '${n}'`), mn(t)), String(r);
|
|
1461
1486
|
}
|
|
1462
|
-
return a &&
|
|
1487
|
+
return a && rr(e, t, n), Cn(i) ? String(i) : (o && (fn(`${Xe(e)}: path value MUST BE a string: ${n}`), pn(t)), String(r));
|
|
1463
1488
|
}
|
|
1464
|
-
function
|
|
1465
|
-
e && !
|
|
1466
|
-
let i =
|
|
1467
|
-
const o = l && l &
|
|
1489
|
+
function ar(e, t, n, r, l) {
|
|
1490
|
+
e && !Yn(e) && fn("GObj bad instanceof");
|
|
1491
|
+
let i = nr(e, t, n, !1);
|
|
1492
|
+
const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
|
|
1468
1493
|
if (void 0 === i) {
|
|
1469
1494
|
if (s) {
|
|
1470
1495
|
let l = r;
|
|
1471
|
-
return
|
|
1496
|
+
return fr(e, t, n, l), l;
|
|
1472
1497
|
}
|
|
1473
|
-
return o && (
|
|
1498
|
+
return o && (fn(`path not found: '${n}'`), mn(t)), r;
|
|
1474
1499
|
}
|
|
1475
|
-
return a &&
|
|
1500
|
+
return a && rr(e, t, n), i;
|
|
1476
1501
|
}
|
|
1477
|
-
function
|
|
1478
|
-
e && !
|
|
1479
|
-
let i =
|
|
1480
|
-
const o = l && l &
|
|
1502
|
+
function ur(e, t, n, r, l) {
|
|
1503
|
+
e && !Yn(e) && fn("GObj bad instanceof");
|
|
1504
|
+
let i = nr(e, t, n, !1);
|
|
1505
|
+
const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
|
|
1481
1506
|
if (void 0 === i) {
|
|
1482
1507
|
if (s) {
|
|
1483
1508
|
let l = Object(r);
|
|
1484
|
-
return
|
|
1509
|
+
return fr(e, t, n, l), l;
|
|
1485
1510
|
}
|
|
1486
|
-
return o && (
|
|
1511
|
+
return o && (fn(`path not found: '${n}'`), mn(t)), Object(r);
|
|
1487
1512
|
}
|
|
1488
|
-
return a &&
|
|
1513
|
+
return a && rr(e, t, n), Pn(i) ? Object(i) : (o && (fn(`path value MUST BE a dict: ${n}`), pn(t)), Object(r));
|
|
1489
1514
|
}
|
|
1490
|
-
function
|
|
1491
|
-
e && !
|
|
1492
|
-
let i =
|
|
1493
|
-
const o = l && l &
|
|
1515
|
+
function _r(e, t, n, r, l) {
|
|
1516
|
+
e && !Yn(e) && fn("GObj bad instanceof");
|
|
1517
|
+
let i = nr(e, t, n, !1);
|
|
1518
|
+
const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
|
|
1494
1519
|
if (void 0 === i) {
|
|
1495
1520
|
if (s) {
|
|
1496
1521
|
let l = r;
|
|
1497
|
-
return
|
|
1522
|
+
return fr(e, t, n, l), l;
|
|
1498
1523
|
}
|
|
1499
|
-
return o && (
|
|
1524
|
+
return o && (fn(`path not found: '${n}'`), mn(t)), r;
|
|
1500
1525
|
}
|
|
1501
|
-
return a &&
|
|
1526
|
+
return a && rr(e, t, n), i;
|
|
1502
1527
|
}
|
|
1503
|
-
function
|
|
1504
|
-
e && !
|
|
1505
|
-
let i =
|
|
1506
|
-
const o = l && l &
|
|
1528
|
+
function cr(e, t, n, r, l) {
|
|
1529
|
+
e && !Yn(e) && fn("GObj bad instanceof");
|
|
1530
|
+
let i = nr(e, t, n, !1);
|
|
1531
|
+
const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
|
|
1507
1532
|
if (void 0 === i) {
|
|
1508
1533
|
if (s) {
|
|
1509
1534
|
let l = Array(r);
|
|
1510
|
-
return
|
|
1535
|
+
return fr(e, t, n, l), l;
|
|
1511
1536
|
}
|
|
1512
|
-
return o && (
|
|
1537
|
+
return o && (fn(`path not found: '${n}'`), mn(t)), Array(r);
|
|
1513
1538
|
}
|
|
1514
|
-
return a &&
|
|
1539
|
+
return a && rr(e, t, n), Un(i) ? Array(i) : (o && (fn(`path value MUST BE an array: ${n}`), pn(t)), Array(r));
|
|
1515
1540
|
}
|
|
1516
|
-
function
|
|
1517
|
-
if (e && !
|
|
1541
|
+
function fr(e, t, n, r) {
|
|
1542
|
+
if (e && !Yn(e) && fn("GObj bad instanceof"), !Pn(t)) return fn("kw is not an object"), -1;
|
|
1518
1543
|
let l = n.split("`");
|
|
1519
1544
|
if (l.length <= 1) return t[n] = r, 0;
|
|
1520
1545
|
let i = l.length;
|
|
@@ -1524,34 +1549,34 @@ function ir(e, t, n, r) {
|
|
|
1524
1549
|
}
|
|
1525
1550
|
return 0;
|
|
1526
1551
|
}
|
|
1527
|
-
function
|
|
1528
|
-
if (e && !
|
|
1529
|
-
let i =
|
|
1530
|
-
return
|
|
1552
|
+
function gr(e, t, n, r, l) {
|
|
1553
|
+
if (e && !Yn(e) && fn("GObj bad instanceof"), !Pn(t)) return fn("kw is not an object"), -1;
|
|
1554
|
+
let i = ur(e, t, n, {}, !0);
|
|
1555
|
+
return Pn(i) ? (i[r] = l, 0) : (fn("subdict is not an object"), -1);
|
|
1531
1556
|
}
|
|
1532
|
-
function
|
|
1557
|
+
function dr(e, n, r) {
|
|
1533
1558
|
let l = "", i = !1;
|
|
1534
|
-
if (
|
|
1559
|
+
if (Un(n)) {
|
|
1535
1560
|
i = !1;
|
|
1536
1561
|
for (let o = 0; o < n.length; o++) {
|
|
1537
1562
|
let s = n[o];
|
|
1538
|
-
if (l =
|
|
1563
|
+
if (l = xn(r) ? t("%s", r) : t("%s`%d", r, o), i = dr(e, s, l), i) break;
|
|
1539
1564
|
}
|
|
1540
|
-
} else if (
|
|
1565
|
+
} else if (Pn(n)) {
|
|
1541
1566
|
i = !0;
|
|
1542
1567
|
let o = Object.keys(n);
|
|
1543
1568
|
for (let s = 0; s < o.length; s++) {
|
|
1544
1569
|
let a = o[s], u = n[a];
|
|
1545
|
-
if (l =
|
|
1546
|
-
if (i =
|
|
1570
|
+
if (l = xn(r) ? t("%s", a) : t("%s`%s", r, a), Un(u) || Pn(u)) {
|
|
1571
|
+
if (i = dr(e, u, l), !i) break;
|
|
1547
1572
|
continue;
|
|
1548
1573
|
}
|
|
1549
|
-
let _ =
|
|
1550
|
-
if (_ || (_ =
|
|
1574
|
+
let _ = _r(0, e, l, 0, 0);
|
|
1575
|
+
if (_ || (_ = vn(e, l)), !_) {
|
|
1551
1576
|
i = !1;
|
|
1552
1577
|
break;
|
|
1553
1578
|
}
|
|
1554
|
-
if (0 !==
|
|
1579
|
+
if (0 !== zn(_, u)) {
|
|
1555
1580
|
i = !1;
|
|
1556
1581
|
break;
|
|
1557
1582
|
}
|
|
@@ -1559,82 +1584,82 @@ function sr(e, n, r) {
|
|
|
1559
1584
|
}
|
|
1560
1585
|
return i;
|
|
1561
1586
|
}
|
|
1562
|
-
function
|
|
1563
|
-
return 0 ===
|
|
1587
|
+
function br(e, t) {
|
|
1588
|
+
return 0 === Ln(t) || dr(e, t, "");
|
|
1564
1589
|
}
|
|
1565
|
-
function
|
|
1566
|
-
if (!n || !
|
|
1567
|
-
for (let e = 0; e < t.length; e++) if (
|
|
1568
|
-
return r &&
|
|
1590
|
+
function pr(e, t, n, r) {
|
|
1591
|
+
if (!n || !Un(t)) return r && fn("item NULL or kw_list is not a list"), -1;
|
|
1592
|
+
for (let e = 0; e < t.length; e++) if (Tn(n, t[e])) return e;
|
|
1593
|
+
return r && fn("item not found in this list"), -1;
|
|
1569
1594
|
}
|
|
1570
|
-
function
|
|
1571
|
-
if (e && !
|
|
1572
|
-
r || (r =
|
|
1595
|
+
function mr(e, t, n, r) {
|
|
1596
|
+
if (e && !Yn(e) && fn("GObj bad instanceof"), !t) return null;
|
|
1597
|
+
r || (r = br);
|
|
1573
1598
|
let l = [];
|
|
1574
|
-
if (
|
|
1599
|
+
if (Un(t)) for (let e = 0; e < t.length; e++) {
|
|
1575
1600
|
let i = t[e];
|
|
1576
|
-
r(i, n) && l.push(
|
|
1601
|
+
r(i, n) && l.push(En(i));
|
|
1577
1602
|
}
|
|
1578
1603
|
else {
|
|
1579
|
-
if (!
|
|
1580
|
-
r(t, n) && l.push(
|
|
1604
|
+
if (!Pn(t)) return fn("kw_select() BAD kw parameter"), null;
|
|
1605
|
+
r(t, n) && l.push(En(t));
|
|
1581
1606
|
}
|
|
1582
1607
|
return l;
|
|
1583
1608
|
}
|
|
1584
|
-
function
|
|
1585
|
-
if (e && !
|
|
1586
|
-
r || (r =
|
|
1609
|
+
function Er(e, t, n, r) {
|
|
1610
|
+
if (e && !Yn(e) && fn("GObj bad instanceof"), !t) return null;
|
|
1611
|
+
r || (r = br);
|
|
1587
1612
|
let l = [];
|
|
1588
|
-
if (
|
|
1613
|
+
if (Un(t)) for (let e = 0; e < t.length; e++) {
|
|
1589
1614
|
let i = t[e];
|
|
1590
1615
|
r(i, n) && l.push(i);
|
|
1591
1616
|
}
|
|
1592
1617
|
else {
|
|
1593
|
-
if (!
|
|
1618
|
+
if (!Pn(t)) return fn("kw_select() BAD kw parameter"), null;
|
|
1594
1619
|
r(t, n) && l.push(t);
|
|
1595
1620
|
}
|
|
1596
1621
|
return l;
|
|
1597
1622
|
}
|
|
1598
|
-
function
|
|
1599
|
-
e && !
|
|
1623
|
+
function hr(e, t, n, r) {
|
|
1624
|
+
e && !Yn(e) && fn("GObj bad instanceof");
|
|
1600
1625
|
let l = {};
|
|
1601
|
-
if (
|
|
1626
|
+
if (Cn(n) && !xn(n)) {
|
|
1602
1627
|
let i = n;
|
|
1603
|
-
t.hasOwnProperty(i) ? l[i] = t[i] : r &&
|
|
1604
|
-
} else if (
|
|
1628
|
+
t.hasOwnProperty(i) ? l[i] = t[i] : r && fn(`${Xe(e)}: key not found: ${i}`);
|
|
1629
|
+
} else if (Pn(n) && An(n) > 0) for (let i of Object.keys(n)) t.hasOwnProperty(i) ? l[i] = t[i] : r && fn(`${Xe(e)}: key not found: ${i}`);
|
|
1605
1630
|
else {
|
|
1606
|
-
if (!(
|
|
1631
|
+
if (!(Un(n) && kn(n) > 0)) return t;
|
|
1607
1632
|
for (let i = 0; i < n.length; i++) {
|
|
1608
1633
|
let o = n[i];
|
|
1609
|
-
t.hasOwnProperty(o) ? l[o] = t[o] : r &&
|
|
1634
|
+
t.hasOwnProperty(o) ? l[o] = t[o] : r && fn(`${Xe(e)}: key not found: ${o}`);
|
|
1610
1635
|
}
|
|
1611
1636
|
}
|
|
1612
1637
|
return l;
|
|
1613
1638
|
}
|
|
1614
|
-
function
|
|
1639
|
+
function Tr(e, t, n, r) {
|
|
1615
1640
|
let l = {};
|
|
1616
|
-
if (
|
|
1641
|
+
if (yn(l, t), Cn(n) && !xn(n)) {
|
|
1617
1642
|
let i = n;
|
|
1618
|
-
|
|
1619
|
-
} else if (
|
|
1643
|
+
_r(e, t, i, 0, 0) ? Nn(l, i) : r && fn(`${Xe(e)}: key not found: ${i}`);
|
|
1644
|
+
} else if (Pn(n) && An(n) > 0) for (let i of Object.keys(n)) t.hasOwnProperty(i) ? Nn(l, i) : r && fn(`${Xe(e)}: key not found: ${i}`);
|
|
1620
1645
|
else {
|
|
1621
|
-
if (!(
|
|
1646
|
+
if (!(Un(n) && kn(n) > 0)) return {};
|
|
1622
1647
|
for (let i = 0; i < n.length; i++) {
|
|
1623
1648
|
let o = n[i];
|
|
1624
|
-
t.hasOwnProperty(o) ?
|
|
1649
|
+
t.hasOwnProperty(o) ? Nn(l, o) : r && fn(`${Xe(e)}: key not found: ${o}`);
|
|
1625
1650
|
}
|
|
1626
1651
|
}
|
|
1627
1652
|
return l;
|
|
1628
1653
|
}
|
|
1629
|
-
function
|
|
1654
|
+
function yr(e, t, n = !1) {
|
|
1630
1655
|
if ("undefined" != typeof window && window.localStorage) try {
|
|
1631
1656
|
let r = window.localStorage.getItem(e);
|
|
1632
|
-
return null === r ? (n &&
|
|
1657
|
+
return null === r ? (n && Sr(e, t), t) : JSON.parse(r);
|
|
1633
1658
|
} catch (n) {
|
|
1634
1659
|
return window.console.warn(`Error reading localStorage key "${e}":`, n), t;
|
|
1635
1660
|
}
|
|
1636
1661
|
}
|
|
1637
|
-
function
|
|
1662
|
+
function Sr(e, t) {
|
|
1638
1663
|
if ("undefined" != typeof window && window.localStorage) if (e && void 0 !== t) try {
|
|
1639
1664
|
window.localStorage.setItem(e, JSON.stringify(t));
|
|
1640
1665
|
} catch (t) {
|
|
@@ -1642,7 +1667,7 @@ function br(e, t) {
|
|
|
1642
1667
|
}
|
|
1643
1668
|
else window.console.warn(`Invalid key or value for localStorage: key=${e}, value=${t}`);
|
|
1644
1669
|
}
|
|
1645
|
-
function
|
|
1670
|
+
function Or(e) {
|
|
1646
1671
|
if ("undefined" != typeof window && window.localStorage) if (e) try {
|
|
1647
1672
|
window.localStorage.removeItem(e);
|
|
1648
1673
|
} catch (t) {
|
|
@@ -1650,113 +1675,113 @@ function pr(e) {
|
|
|
1650
1675
|
}
|
|
1651
1676
|
else window.console.warn(`Invalid key for localStorage removal: ${e}`);
|
|
1652
1677
|
}
|
|
1653
|
-
function
|
|
1654
|
-
if (
|
|
1655
|
-
if (
|
|
1678
|
+
function vr(e, t) {
|
|
1679
|
+
if (Vn(e) || Vn(t)) return !0;
|
|
1680
|
+
if (Un(e)) {
|
|
1656
1681
|
if (0 === e.length) return !0;
|
|
1657
1682
|
for (let n = 0; n < e.length; n++) if (e[n] === t) return !0;
|
|
1658
|
-
} else if (
|
|
1683
|
+
} else if (Pn(e)) {
|
|
1659
1684
|
if (0 === Object.keys(e).length) return !0;
|
|
1660
1685
|
for (let n in e) if (n === t) return !0;
|
|
1661
|
-
} else if (
|
|
1686
|
+
} else if (Cn(e) && e === t) return !0;
|
|
1662
1687
|
return !1;
|
|
1663
1688
|
}
|
|
1664
|
-
function
|
|
1665
|
-
if (e && !
|
|
1666
|
-
l || (l =
|
|
1689
|
+
function Nr(e, t, n, r, l) {
|
|
1690
|
+
if (e && !Yn(e) && fn("GObj bad instanceof"), !t) return null;
|
|
1691
|
+
l || (l = br);
|
|
1667
1692
|
let i = [];
|
|
1668
|
-
if (
|
|
1693
|
+
if (Un(t)) for (let o = 0; o < t.length; o++) {
|
|
1669
1694
|
let s, a = t[o];
|
|
1670
|
-
if (
|
|
1695
|
+
if (Pn(a)) s = sr(e, a, "id", "", 0);
|
|
1671
1696
|
else {
|
|
1672
|
-
if (
|
|
1697
|
+
if (!Cn(a)) continue;
|
|
1673
1698
|
s = a;
|
|
1674
1699
|
}
|
|
1675
|
-
|
|
1700
|
+
vr(n, s) && l(a, r) && i.push(a);
|
|
1676
1701
|
}
|
|
1677
1702
|
else {
|
|
1678
|
-
if (!
|
|
1703
|
+
if (!Pn(t)) return fn("kw_collect() BAD kw parameter"), null;
|
|
1679
1704
|
for (let e of Object.keys(t)) {
|
|
1680
1705
|
let o = t[e];
|
|
1681
|
-
|
|
1706
|
+
vr(n, e) && l(o, r) && i.push(o);
|
|
1682
1707
|
}
|
|
1683
1708
|
}
|
|
1684
1709
|
return i;
|
|
1685
1710
|
}
|
|
1686
|
-
function
|
|
1687
|
-
e && !
|
|
1711
|
+
function wr(e, t, n) {
|
|
1712
|
+
e && !Yn(e) && fn("GObj bad instanceof");
|
|
1688
1713
|
let r = {};
|
|
1689
|
-
if (
|
|
1690
|
-
else if (
|
|
1691
|
-
let n = t[e], l =
|
|
1692
|
-
|
|
1714
|
+
if (xn(n) || (t = nr(e, t, n)), Pn(t)) r = t;
|
|
1715
|
+
else if (Un(t)) for (let e = 0; e < t.length; e++) {
|
|
1716
|
+
let n = t[e], l = sr(n, "id", null, !1);
|
|
1717
|
+
xn(l) || (r[l] = n);
|
|
1693
1718
|
}
|
|
1694
|
-
else
|
|
1719
|
+
else fn(`${Xe(e)} kwid_new_dict: data type unknown`);
|
|
1695
1720
|
return r;
|
|
1696
1721
|
}
|
|
1697
|
-
function
|
|
1698
|
-
e && !
|
|
1699
|
-
let i =
|
|
1722
|
+
function Dr(e, t, n, r, l) {
|
|
1723
|
+
e && !Yn(e) && fn("GObj bad instanceof");
|
|
1724
|
+
let i = Nr(e, t, n, r, l);
|
|
1700
1725
|
return i.length > 0 ? i[0] : null;
|
|
1701
1726
|
}
|
|
1702
|
-
function
|
|
1703
|
-
if (e && !
|
|
1727
|
+
function Rr(e, t) {
|
|
1728
|
+
if (e && !Yn(e) && fn("GObj bad instanceof"), !t) return [];
|
|
1704
1729
|
let n = [];
|
|
1705
|
-
if (
|
|
1706
|
-
else if (
|
|
1707
|
-
else
|
|
1708
|
-
if (
|
|
1709
|
-
else if (
|
|
1710
|
-
let r =
|
|
1730
|
+
if (Cn(t)) n.push(t);
|
|
1731
|
+
else if (Pn(t)) for (let e in t) t.hasOwnProperty(e) && n.push(e);
|
|
1732
|
+
else Un(t) && t.forEach(function(t) {
|
|
1733
|
+
if (Cn(t)) xn(t) || n.push(t);
|
|
1734
|
+
else if (Pn(t)) {
|
|
1735
|
+
let r = sr(e, t, "id", 0, 0);
|
|
1711
1736
|
r && n.push(r);
|
|
1712
1737
|
}
|
|
1713
1738
|
});
|
|
1714
1739
|
return n;
|
|
1715
1740
|
}
|
|
1716
|
-
function
|
|
1741
|
+
function jr(e, t, n) {
|
|
1717
1742
|
t = t || "id", n = n || "value";
|
|
1718
1743
|
let r = [];
|
|
1719
|
-
if (
|
|
1744
|
+
if (Un(e)) for (let l = 0; l < e.length; l++) {
|
|
1720
1745
|
let i = e[l];
|
|
1721
|
-
if (
|
|
1746
|
+
if (Cn(i)) r.push({
|
|
1722
1747
|
id: e[l],
|
|
1723
1748
|
value: e[l]
|
|
1724
1749
|
});
|
|
1725
|
-
else if (
|
|
1750
|
+
else if (Pn(i)) {
|
|
1726
1751
|
let e = {};
|
|
1727
|
-
if (
|
|
1728
|
-
if (!
|
|
1729
|
-
if (!(
|
|
1730
|
-
|
|
1752
|
+
if (tr(i, t)) {
|
|
1753
|
+
if (!tr(i, n)) {
|
|
1754
|
+
if (!(Ln(i) > 0)) {
|
|
1755
|
+
fn("list2options(): object without field value: " + n);
|
|
1731
1756
|
continue;
|
|
1732
1757
|
}
|
|
1733
1758
|
n = Object.keys(i)[0];
|
|
1734
1759
|
}
|
|
1735
1760
|
e.id = i[t], e.value = i[n];
|
|
1736
1761
|
} else {
|
|
1737
|
-
if (!(
|
|
1738
|
-
|
|
1762
|
+
if (!(Ln(i) > 0)) {
|
|
1763
|
+
fn("list2options(): object without field id: " + t);
|
|
1739
1764
|
continue;
|
|
1740
1765
|
}
|
|
1741
1766
|
t = Object.keys(i)[0], e.id = t, e.value = i[t];
|
|
1742
1767
|
}
|
|
1743
1768
|
r.push(e);
|
|
1744
|
-
} else
|
|
1769
|
+
} else fn("list2options(): case1 not implemented");
|
|
1745
1770
|
}
|
|
1746
|
-
else if (
|
|
1771
|
+
else if (Pn(e)) for (let t of Object.keys(e)) r.push({
|
|
1747
1772
|
id: t,
|
|
1748
1773
|
value: t
|
|
1749
1774
|
});
|
|
1750
|
-
else
|
|
1775
|
+
else fn("list2options(): case2 not implemented");
|
|
1751
1776
|
return r;
|
|
1752
1777
|
}
|
|
1753
|
-
function
|
|
1778
|
+
function $r(e, t) {
|
|
1754
1779
|
if (!e) return -1;
|
|
1755
1780
|
for (let n = 0; n < e.length; n++) if (e[n] && e[n].id === t) return n;
|
|
1756
1781
|
return -1;
|
|
1757
1782
|
}
|
|
1758
|
-
function
|
|
1759
|
-
if (!e || !t) return
|
|
1783
|
+
function Ir(e, t, n) {
|
|
1784
|
+
if (!e || !t) return fn("ERROR: str_in_list() list or str empty"), !1;
|
|
1760
1785
|
let r = e.length;
|
|
1761
1786
|
if (n) {
|
|
1762
1787
|
t = t.toLowerCase();
|
|
@@ -1767,17 +1792,17 @@ function vr(e, t, n) {
|
|
|
1767
1792
|
} else for (let n = 0; n < r; n++) if (e[n] === t) return !0;
|
|
1768
1793
|
return !1;
|
|
1769
1794
|
}
|
|
1770
|
-
function
|
|
1771
|
-
if (!e) return
|
|
1772
|
-
if (!t) return
|
|
1773
|
-
for (let r = 0; r < t.length; r++) if (
|
|
1795
|
+
function Ar(e, t, n) {
|
|
1796
|
+
if (!e) return fn("ERROR: strs_in_list() list empty"), !1;
|
|
1797
|
+
if (!t) return fn("ERROR: strs_in_list() str empty"), !1;
|
|
1798
|
+
for (let r = 0; r < t.length; r++) if (Ir(e, t[r], n)) return !0;
|
|
1774
1799
|
return !1;
|
|
1775
1800
|
}
|
|
1776
|
-
function
|
|
1801
|
+
function kr(e, t) {
|
|
1777
1802
|
for (let n = 0; n < e.length; n++) if (t === e[n]) return e.splice(n, 1), !0;
|
|
1778
1803
|
return !1;
|
|
1779
1804
|
}
|
|
1780
|
-
function
|
|
1805
|
+
function Lr(e, t) {
|
|
1781
1806
|
try {
|
|
1782
1807
|
let n = e.__md_iev__;
|
|
1783
1808
|
if (n) return n[t];
|
|
@@ -1785,53 +1810,53 @@ function Dr(e, t) {
|
|
|
1785
1810
|
return;
|
|
1786
1811
|
}
|
|
1787
1812
|
}
|
|
1788
|
-
function
|
|
1813
|
+
function Pr(e, t, n) {
|
|
1789
1814
|
let r = e.__md_iev__;
|
|
1790
1815
|
r || (r = {}, e.__md_iev__ = r), r[t] = n;
|
|
1791
1816
|
}
|
|
1792
|
-
function
|
|
1793
|
-
if (!
|
|
1817
|
+
function Ur(e, t, n, r) {
|
|
1818
|
+
if (!Yn(e)) return fn("gobj is not a GObj"), null;
|
|
1794
1819
|
if (!t) return;
|
|
1795
|
-
let l =
|
|
1796
|
-
l || (l = [],
|
|
1820
|
+
let l = Lr(t, n);
|
|
1821
|
+
l || (l = [], Pr(t, n, l));
|
|
1797
1822
|
try {
|
|
1798
|
-
|
|
1823
|
+
Un(l) && l.unshift(r);
|
|
1799
1824
|
} catch (e) {
|
|
1800
|
-
|
|
1825
|
+
fn(e);
|
|
1801
1826
|
}
|
|
1802
1827
|
}
|
|
1803
|
-
function
|
|
1804
|
-
if (!
|
|
1805
|
-
if (!
|
|
1806
|
-
let l =
|
|
1807
|
-
return l ? 0 === l.length ? (r &&
|
|
1828
|
+
function Cr(e, t, n, r) {
|
|
1829
|
+
if (!Yn(e)) return fn("gobj is not a GObj"), null;
|
|
1830
|
+
if (!Pn(t)) return fn("kw is not a dict"), null;
|
|
1831
|
+
let l = Lr(t, n);
|
|
1832
|
+
return l ? 0 === l.length ? (r && fn(`stack empty: ${n}`), null) : l[0] : (r && fn(`stack NOT FOUND: ${n}`), null);
|
|
1808
1833
|
}
|
|
1809
|
-
function
|
|
1810
|
-
return
|
|
1834
|
+
function Fr(e, t, n) {
|
|
1835
|
+
return xn(n) ? rr(e, t, "__md_iev__`__msg_type__") : gr(e, t, "__md_iev__", "__msg_type__", n), 0;
|
|
1811
1836
|
}
|
|
1812
|
-
function
|
|
1813
|
-
return
|
|
1837
|
+
function Gr(e, t) {
|
|
1838
|
+
return sr(e, t, "__md_iev__`__msg_type__", "", 0);
|
|
1814
1839
|
}
|
|
1815
|
-
function
|
|
1840
|
+
function Vr(e, t, n) {
|
|
1816
1841
|
let r = new XMLHttpRequest();
|
|
1817
1842
|
r.open("GET", e, !0), r.setRequestHeader("Accept", "application/json"), r.onreadystatechange = function() {
|
|
1818
1843
|
if (4 === r.readyState) if (200 === r.status || 0 === (e = r).status && e.responseText && e.responseURL.startsWith("file:")) try {
|
|
1819
1844
|
t(JSON.parse(r.responseText));
|
|
1820
1845
|
} catch (e) {
|
|
1821
|
-
n && (
|
|
1846
|
+
n && (fn(`JSON parse status ${r.status}, error: ${e.message}`), n(r.status));
|
|
1822
1847
|
}
|
|
1823
1848
|
else n && n(r.status);
|
|
1824
1849
|
var e;
|
|
1825
1850
|
}, r.send();
|
|
1826
1851
|
}
|
|
1827
|
-
function
|
|
1852
|
+
function Wr(e, t, n) {
|
|
1828
1853
|
let r = new XMLHttpRequest();
|
|
1829
1854
|
r.open("POST", e), r.setRequestHeader("Accept", "application/json"), r.setRequestHeader("Content-Type", "application/json"), r.onreadystatechange = function() {
|
|
1830
1855
|
4 === r.readyState && n(r.status, r.responseText);
|
|
1831
1856
|
}, r.send(t);
|
|
1832
1857
|
}
|
|
1833
|
-
function
|
|
1834
|
-
void 0 !== n &&
|
|
1858
|
+
function Mr(e, t, n) {
|
|
1859
|
+
void 0 !== n && Cn(n) || (n = "");
|
|
1835
1860
|
for (let r of Object.keys(e)) {
|
|
1836
1861
|
if (!e.hasOwnProperty(r)) continue;
|
|
1837
1862
|
let l = (n.length ? "`" : "") + r;
|
|
@@ -1840,61 +1865,61 @@ function Pr(e, t, n) {
|
|
|
1840
1865
|
r,
|
|
1841
1866
|
e[r],
|
|
1842
1867
|
n
|
|
1843
|
-
]),
|
|
1868
|
+
]), Pn(e[r]) && Mr(e[r], t, n), n = n.slice(0, -l.length);
|
|
1844
1869
|
}
|
|
1845
1870
|
}
|
|
1846
|
-
function
|
|
1847
|
-
n && (e =
|
|
1848
|
-
let r =
|
|
1849
|
-
|
|
1850
|
-
let l =
|
|
1851
|
-
return
|
|
1852
|
-
"__" !== t.substring(0, 2) &&
|
|
1871
|
+
function Kr(e, t, n) {
|
|
1872
|
+
n && (e = En(e));
|
|
1873
|
+
let r = _r(null, e, "type", [], 1);
|
|
1874
|
+
sr(null, e, "hook", "data", 1);
|
|
1875
|
+
let l = _r(null, e, "schema", {}, 1), i = _r(null, e, "topics", {}, 1);
|
|
1876
|
+
return Mr(l, function(e, t, n, l) {
|
|
1877
|
+
"__" !== t.substring(0, 2) && _r(null, i, l, En(r), 1);
|
|
1853
1878
|
}, t), e;
|
|
1854
1879
|
}
|
|
1855
|
-
function
|
|
1856
|
-
let l =
|
|
1857
|
-
if (!l) return
|
|
1858
|
-
if (
|
|
1880
|
+
function Yr(e, t, n, r) {
|
|
1881
|
+
let l = _r(null, _r(null, e, "topics", null, 0), t, null, 0);
|
|
1882
|
+
if (!l) return fn("jdb_update: topic not found: " + t), null;
|
|
1883
|
+
if (xn(r.id)) return fn("jdb_update: record without id: " + r), pn(r), null;
|
|
1859
1884
|
let i, o = n.split("`"), s = l;
|
|
1860
|
-
for (; (i = o.shift()) && !
|
|
1861
|
-
if (0 === o.length && s) if (
|
|
1885
|
+
for (; (i = o.shift()) && !xn(i) && s;) Pn(s) && (s = _r(null, s, e.hook, [], 1)), s = qr(s, null, i, !1);
|
|
1886
|
+
if (0 === o.length && s) if (Un(s)) s.push(r);
|
|
1862
1887
|
else if (s.id === r.id) Object.assign(s, r);
|
|
1863
1888
|
else {
|
|
1864
|
-
let t =
|
|
1889
|
+
let t = _r(null, s, e.hook, [], 1), n = qr(t, e.hook, r.id, !1);
|
|
1865
1890
|
n ? Object.assign(n, r) : t.push(r);
|
|
1866
1891
|
}
|
|
1867
1892
|
return l;
|
|
1868
1893
|
}
|
|
1869
|
-
function
|
|
1870
|
-
let l =
|
|
1871
|
-
if (!l) return
|
|
1872
|
-
if (
|
|
1894
|
+
function xr(e, t, n, r) {
|
|
1895
|
+
let l = _r(null, _r(null, e, "topics", null, 0), t, null, 0);
|
|
1896
|
+
if (!l) return fn("jdb_delete: topic not found: " + t), null;
|
|
1897
|
+
if (xn(r.id)) return fn("jdb_delete: record without id: " + r), pn(r), null;
|
|
1873
1898
|
let i, o = n.split("`"), s = l;
|
|
1874
|
-
for (; (i = o.shift()) && !
|
|
1875
|
-
if (0 === o.length && s) if (
|
|
1876
|
-
let e =
|
|
1899
|
+
for (; (i = o.shift()) && !xn(i) && s;) Pn(s) && (s = _r(null, s, e.hook, null, 0)), s = qr(s, null, i, !1);
|
|
1900
|
+
if (0 === o.length && s) if (Un(s)) {
|
|
1901
|
+
let e = $r(s, r.id);
|
|
1877
1902
|
e >= 0 && s.splice(e, 1);
|
|
1878
1903
|
} else {
|
|
1879
|
-
let t =
|
|
1904
|
+
let t = _r(null, s, e.hook, null, 0), n = $r(t, r.id);
|
|
1880
1905
|
n >= 0 && t.splice(n, 1);
|
|
1881
1906
|
}
|
|
1882
1907
|
return l;
|
|
1883
1908
|
}
|
|
1884
|
-
function
|
|
1885
|
-
let n =
|
|
1886
|
-
if (!n) return
|
|
1887
|
-
return
|
|
1909
|
+
function Br(e, t) {
|
|
1910
|
+
let n = _r(null, e, "topics", null, 0);
|
|
1911
|
+
if (!n) return fn("jdb topics section not found"), pn(e), null;
|
|
1912
|
+
return _r(null, n, t, null, 0) || (fn("jdb topic not found: " + t), pn(n), null);
|
|
1888
1913
|
}
|
|
1889
|
-
function
|
|
1890
|
-
let l =
|
|
1891
|
-
return l ? (void 0 === r && (r = !0),
|
|
1914
|
+
function Jr(e, t, n, r) {
|
|
1915
|
+
let l = _r(null, _r(null, e, "topics", null, 0), t, null, 0);
|
|
1916
|
+
return l ? (void 0 === r && (r = !0), qr(l, e.hook, n, r)) : (fn("jdb_get: topic not found: " + t), null);
|
|
1892
1917
|
}
|
|
1893
|
-
function
|
|
1894
|
-
let r =
|
|
1895
|
-
return r ? n < r.length ? r[n] : {} : (
|
|
1918
|
+
function Qr(e, t, n) {
|
|
1919
|
+
let r = _r(null, _r(null, e, "topics", null, 0), t, null, 0);
|
|
1920
|
+
return r ? n < r.length ? r[n] : {} : (fn("jdb_get_by_idx: topic not found: " + t), null);
|
|
1896
1921
|
}
|
|
1897
|
-
function
|
|
1922
|
+
function qr(e, t, n, r) {
|
|
1898
1923
|
if (!e) return null;
|
|
1899
1924
|
let l, i = e.length;
|
|
1900
1925
|
for (l = 0; l < i; l++) {
|
|
@@ -1902,19 +1927,19 @@ function Mr(e, t, n, r) {
|
|
|
1902
1927
|
if (i) {
|
|
1903
1928
|
let e = i.id;
|
|
1904
1929
|
if (e && e === n) return i;
|
|
1905
|
-
if (r &&
|
|
1906
|
-
let e =
|
|
1930
|
+
if (r && tr(i, t)) {
|
|
1931
|
+
let e = qr(i[t], t, n, r);
|
|
1907
1932
|
if (e) return e;
|
|
1908
1933
|
}
|
|
1909
1934
|
}
|
|
1910
1935
|
}
|
|
1911
1936
|
return null;
|
|
1912
1937
|
}
|
|
1913
|
-
function
|
|
1914
|
-
let n =
|
|
1915
|
-
return
|
|
1938
|
+
function zr(e, t) {
|
|
1939
|
+
let n = En(e);
|
|
1940
|
+
return Sn(n, t), n;
|
|
1916
1941
|
}
|
|
1917
|
-
function
|
|
1942
|
+
function Xr(e) {
|
|
1918
1943
|
function t(e) {
|
|
1919
1944
|
let t = e.replace(/-/g, "+").replace(/_/g, "/");
|
|
1920
1945
|
switch (t.length % 4) {
|
|
@@ -1945,9 +1970,9 @@ function Yr(e) {
|
|
|
1945
1970
|
signature: t(n[2])
|
|
1946
1971
|
};
|
|
1947
1972
|
}
|
|
1948
|
-
function
|
|
1973
|
+
function Hr(e, t) {
|
|
1949
1974
|
try {
|
|
1950
|
-
let n =
|
|
1975
|
+
let n = Xr(e);
|
|
1951
1976
|
switch (t) {
|
|
1952
1977
|
case "header": return JSON.parse(n.header);
|
|
1953
1978
|
case "signature": return JSON.parse(n.signature);
|
|
@@ -1957,38 +1982,38 @@ function xr(e, t) {
|
|
|
1957
1982
|
return null;
|
|
1958
1983
|
}
|
|
1959
1984
|
}
|
|
1960
|
-
function
|
|
1985
|
+
function Zr(e) {
|
|
1961
1986
|
return null == e ? "" : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1962
1987
|
}
|
|
1963
|
-
function
|
|
1988
|
+
function el(e) {
|
|
1964
1989
|
if (!e) return "";
|
|
1965
1990
|
const t = String(e).trim();
|
|
1966
|
-
return /^javascript:/i.test(t) || /^data:/i.test(t) ? "" :
|
|
1991
|
+
return /^javascript:/i.test(t) || /^data:/i.test(t) ? "" : Zr(t);
|
|
1967
1992
|
}
|
|
1968
|
-
function
|
|
1993
|
+
function tl(e) {
|
|
1969
1994
|
const t = document.createElement("template");
|
|
1970
1995
|
return t.innerHTML = e.trim(), t.content.firstChild;
|
|
1971
1996
|
}
|
|
1972
|
-
function
|
|
1997
|
+
function nl(e, t) {
|
|
1973
1998
|
let [n, r, l, i] = e;
|
|
1974
|
-
if (!n) return void
|
|
1999
|
+
if (!n) return void fn("Tag must be a valid HTML element.");
|
|
1975
2000
|
let o = document.createElement(n), s = "";
|
|
1976
2001
|
if (r && "object" == typeof r) for (let e of Object.keys(r)) if ("style" === e && "object" == typeof r[e]) {
|
|
1977
2002
|
let t = "";
|
|
1978
2003
|
for (const n of Object.keys(r[e])) t += `${n}: ${r[e][n]};`;
|
|
1979
2004
|
o.style.cssText = t;
|
|
1980
2005
|
} else "style" === e ? o.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], o.setAttribute("data-i18n", s)) : o.setAttribute(e, r[e]);
|
|
1981
|
-
if (
|
|
2006
|
+
if (Cn(l)) if (l = l.trim(), l.length > 0 && "<" === l[0]) o.appendChild(tl(l));
|
|
1982
2007
|
else if (t && s) o.textContent = t(s) || l;
|
|
1983
2008
|
else o.textContent = l;
|
|
1984
|
-
else if (
|
|
1985
|
-
if (l.length > 0) if (
|
|
1986
|
-
else for (let e of l) Array.isArray(e) && e.length > 0 ? o.appendChild(
|
|
1987
|
-
} else l instanceof HTMLElement || l instanceof Text || l instanceof SVGElement ? o.appendChild(l) : null != l && (
|
|
2009
|
+
else if (Un(l)) {
|
|
2010
|
+
if (l.length > 0) if (Cn(l[0])) o.appendChild(nl(l, t));
|
|
2011
|
+
else for (let e of l) Array.isArray(e) && e.length > 0 ? o.appendChild(nl(e, t)) : e instanceof HTMLElement && o.appendChild(e);
|
|
2012
|
+
} else l instanceof HTMLElement || l instanceof Text || l instanceof SVGElement ? o.appendChild(l) : null != l && (fn("content ignored"), mn(l));
|
|
1988
2013
|
if (i && "object" == typeof i) for (const e of Object.keys(i)) o.addEventListener(e, i[e]);
|
|
1989
2014
|
return o;
|
|
1990
2015
|
}
|
|
1991
|
-
function
|
|
2016
|
+
function rl(e) {
|
|
1992
2017
|
if (!e) return {
|
|
1993
2018
|
top: 0,
|
|
1994
2019
|
left: 0,
|
|
@@ -2008,11 +2033,11 @@ function zr(e) {
|
|
|
2008
2033
|
bottom: t + o + l
|
|
2009
2034
|
};
|
|
2010
2035
|
}
|
|
2011
|
-
function
|
|
2036
|
+
function ll(e) {
|
|
2012
2037
|
return new DOMParser().parseFromString(e, "image/svg+xml").firstChild;
|
|
2013
2038
|
}
|
|
2014
|
-
function
|
|
2015
|
-
|
|
2039
|
+
function il(e, t) {
|
|
2040
|
+
Kn(t) ? (e || (e = document), e.querySelectorAll("[data-i18n]").forEach(function(e) {
|
|
2016
2041
|
let n = e.getAttribute("data-i18n");
|
|
2017
2042
|
for (let r of e.childNodes) if (r.nodeType === Node.TEXT_NODE) {
|
|
2018
2043
|
n || (n = r.nodeValue), r.nodeValue = t(n);
|
|
@@ -2024,43 +2049,43 @@ function Hr(e, t) {
|
|
|
2024
2049
|
}), e.querySelectorAll("[data-i18n-aria-label]").forEach(function(e) {
|
|
2025
2050
|
let n = e.getAttribute("data-i18n-aria-label");
|
|
2026
2051
|
n && e.setAttribute("aria-label", t(n));
|
|
2027
|
-
})) :
|
|
2052
|
+
})) : fn("You must supply a translation function");
|
|
2028
2053
|
}
|
|
2029
|
-
function
|
|
2054
|
+
function ol(e = "Time Tracker", t = !1) {
|
|
2030
2055
|
const n = e, r = performance.now();
|
|
2031
2056
|
let l = r;
|
|
2032
|
-
return t &&
|
|
2057
|
+
return t && gn(`--\x3e ${n} - starting`), { mark: (e = "Intermediate", i = "") => {
|
|
2033
2058
|
const o = performance.now(), s = (o - l) / 1e3, a = (o - r) / 1e3;
|
|
2034
|
-
return t &&
|
|
2059
|
+
return t && gn(`--\x3e ${n} ${e} - partial: ${s} sec, total: ${a} sec, ${i}`), l = o, {
|
|
2035
2060
|
partial: s,
|
|
2036
2061
|
total: a
|
|
2037
2062
|
};
|
|
2038
2063
|
} };
|
|
2039
2064
|
}
|
|
2040
|
-
function
|
|
2065
|
+
function sl() {
|
|
2041
2066
|
const e = /* @__PURE__ */ new Date(), t = e.toISOString().slice(0, 19), n = String(e.getMilliseconds()).padStart(3, "0"), r = e.getTimezoneOffset();
|
|
2042
2067
|
return `${t}.${n}${r > 0 ? "-" : "+"}${String(Math.abs(r) / 60).padStart(2, "0")}${String(Math.abs(r) % 60).padStart(2, "0")}`;
|
|
2043
2068
|
}
|
|
2044
|
-
function
|
|
2069
|
+
function al() {
|
|
2045
2070
|
return Math.floor(Date.now() / 1e3);
|
|
2046
2071
|
}
|
|
2047
|
-
function
|
|
2072
|
+
function ul(e, t) {
|
|
2048
2073
|
if (!e) throw "ERROR: index_in_list() list empty";
|
|
2049
2074
|
for (let n = 0; n < e.length; n++) if (t === e[n]) return n;
|
|
2050
2075
|
return -1;
|
|
2051
2076
|
}
|
|
2052
|
-
function
|
|
2077
|
+
function _l() {
|
|
2053
2078
|
let e = "";
|
|
2054
2079
|
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;
|
|
2055
2080
|
}
|
|
2056
|
-
function
|
|
2081
|
+
function cl(e) {
|
|
2057
2082
|
return e.replace(/[?# ^:]/g, "_");
|
|
2058
2083
|
}
|
|
2059
|
-
function
|
|
2084
|
+
function fl(e) {
|
|
2060
2085
|
let t = null;
|
|
2061
2086
|
return "function" != typeof e && "object" != typeof e || (t = ("" + e).match(/function\s*([\w\$]*)\s*\(/)), null !== t ? t[1] + "()" : "";
|
|
2062
2087
|
}
|
|
2063
|
-
function
|
|
2088
|
+
function gl(e, t = 0, n = !1) {
|
|
2064
2089
|
let r = null, l = null, i = null;
|
|
2065
2090
|
const o = (...o) => {
|
|
2066
2091
|
i = this, l = o;
|
|
@@ -2075,45 +2100,45 @@ function ol(e, t = 0, n = !1) {
|
|
|
2075
2100
|
clearTimeout(r), r = null, l = null, i = null;
|
|
2076
2101
|
}, o;
|
|
2077
2102
|
}
|
|
2078
|
-
function
|
|
2103
|
+
function dl(...e) {
|
|
2079
2104
|
let t = "", n = 0;
|
|
2080
2105
|
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++));
|
|
2081
2106
|
return t;
|
|
2082
2107
|
}
|
|
2083
|
-
function
|
|
2084
|
-
return "persistent-attrs-" +
|
|
2108
|
+
function bl(e) {
|
|
2109
|
+
return "persistent-attrs-" + Xe(e);
|
|
2085
2110
|
}
|
|
2086
|
-
function
|
|
2087
|
-
let n =
|
|
2088
|
-
if (r &&
|
|
2089
|
-
let l =
|
|
2090
|
-
l =
|
|
2111
|
+
function pl(e, t) {
|
|
2112
|
+
let n = ht(e, S.SDF_PERSIST), r = yr(bl(e), null, !1);
|
|
2113
|
+
if (r && Pn(r)) {
|
|
2114
|
+
let l = hr(e, r, t, !1);
|
|
2115
|
+
l = hr(e, l, n, !1), wt(e, l, S.SDF_PERSIST);
|
|
2091
2116
|
}
|
|
2092
2117
|
}
|
|
2093
|
-
function
|
|
2094
|
-
let n =
|
|
2095
|
-
r &&
|
|
2118
|
+
function ml(e, t) {
|
|
2119
|
+
let n = hr(e, ht(e, S.SDF_PERSIST), t, !1), r = yr(bl(e), null, !1);
|
|
2120
|
+
r && Pn(r) && On(n, r), Sr(bl(e), n);
|
|
2096
2121
|
}
|
|
2097
|
-
function
|
|
2098
|
-
let n =
|
|
2099
|
-
0 ===
|
|
2122
|
+
function El(e, t) {
|
|
2123
|
+
let n = Tr(e, yr(bl(e), null, !1), t, !1);
|
|
2124
|
+
0 === An(n) ? Or(bl(e)) : Sr(bl(e), n);
|
|
2100
2125
|
}
|
|
2101
|
-
function
|
|
2102
|
-
let n =
|
|
2103
|
-
return n &&
|
|
2126
|
+
function hl(e, t) {
|
|
2127
|
+
let n = yr(bl(e), null, !1), r = {};
|
|
2128
|
+
return n && Pn(n) && (r = hr(e, n, t, !1)), r;
|
|
2104
2129
|
}
|
|
2105
|
-
function
|
|
2106
|
-
if (
|
|
2130
|
+
function Tl(e) {
|
|
2131
|
+
if (Un(e) && 1 === Ln(e)) {
|
|
2107
2132
|
let t = e[0];
|
|
2108
|
-
return
|
|
2133
|
+
return tr(t, "size") ? t.size : 1;
|
|
2109
2134
|
}
|
|
2110
|
-
return
|
|
2135
|
+
return Ln(e);
|
|
2111
2136
|
}
|
|
2112
|
-
function
|
|
2113
|
-
if (
|
|
2137
|
+
function yl(e, t) {
|
|
2138
|
+
if (Cn(t)) {
|
|
2114
2139
|
if (-1 === t.indexOf("^")) {
|
|
2115
2140
|
let n, r, l = e.fkey;
|
|
2116
|
-
if (1 !==
|
|
2141
|
+
if (1 !== An(l)) return fn("bad fkey 1"), fn(e), fn(t), null;
|
|
2117
2142
|
for (const e of Object.keys(l)) {
|
|
2118
2143
|
n = e, r = l[e];
|
|
2119
2144
|
break;
|
|
@@ -2126,28 +2151,28 @@ function dl(e, t) {
|
|
|
2126
2151
|
}
|
|
2127
2152
|
{
|
|
2128
2153
|
let n = t.split("^");
|
|
2129
|
-
return 3 !== n.length ? (
|
|
2154
|
+
return 3 !== n.length ? (fn("bad fkey 2"), fn(e), fn(t), null) : {
|
|
2130
2155
|
topic_name: n[0],
|
|
2131
2156
|
id: n[1],
|
|
2132
2157
|
hook_name: n[2]
|
|
2133
2158
|
};
|
|
2134
2159
|
}
|
|
2135
2160
|
}
|
|
2136
|
-
return
|
|
2161
|
+
return Pn(t) ? {
|
|
2137
2162
|
topic_name: t.topic_name,
|
|
2138
2163
|
id: t.id,
|
|
2139
2164
|
hook_name: t.hook_name
|
|
2140
|
-
} : (
|
|
2165
|
+
} : (fn("bad fkey 3"), fn(e), fn(t), null);
|
|
2141
2166
|
}
|
|
2142
|
-
function
|
|
2143
|
-
let n =
|
|
2167
|
+
function Sl(e, t) {
|
|
2168
|
+
let n = yl(e, t);
|
|
2144
2169
|
return n ? n.topic_name + "^" + n.id + "^" + n.hook_name : null;
|
|
2145
2170
|
}
|
|
2146
|
-
function
|
|
2147
|
-
if (
|
|
2171
|
+
function Ol(e, t) {
|
|
2172
|
+
if (Cn(t)) {
|
|
2148
2173
|
if (-1 === t.indexOf("^")) {
|
|
2149
2174
|
let n, r = e.hook;
|
|
2150
|
-
if (1 !==
|
|
2175
|
+
if (1 !== An(r)) return fn("bad hook 1"), fn(e), fn(t), null;
|
|
2151
2176
|
for (let e of Object.keys(r)) {
|
|
2152
2177
|
n = e, r[e];
|
|
2153
2178
|
break;
|
|
@@ -2159,18 +2184,18 @@ function pl(e, t) {
|
|
|
2159
2184
|
}
|
|
2160
2185
|
{
|
|
2161
2186
|
let n = t.split("^");
|
|
2162
|
-
return 2 !== n.length ? (
|
|
2187
|
+
return 2 !== n.length ? (fn("bad hook 2"), fn(e), fn(t), null) : {
|
|
2163
2188
|
topic_name: n[0],
|
|
2164
2189
|
id: n[1]
|
|
2165
2190
|
};
|
|
2166
2191
|
}
|
|
2167
2192
|
}
|
|
2168
|
-
return
|
|
2193
|
+
return Pn(t) ? {
|
|
2169
2194
|
topic_name: t.topic_name,
|
|
2170
2195
|
id: t.id
|
|
2171
|
-
} : (
|
|
2196
|
+
} : (fn("bad hook 3"), fn(e), fn(t), null);
|
|
2172
2197
|
}
|
|
2173
|
-
var
|
|
2198
|
+
var vl = [
|
|
2174
2199
|
"string",
|
|
2175
2200
|
"integer",
|
|
2176
2201
|
"object",
|
|
@@ -2180,7 +2205,7 @@ var ml = [
|
|
|
2180
2205
|
"real",
|
|
2181
2206
|
"boolean",
|
|
2182
2207
|
"blob"
|
|
2183
|
-
],
|
|
2208
|
+
], Nl = [
|
|
2184
2209
|
"persistent",
|
|
2185
2210
|
"required",
|
|
2186
2211
|
"notnull",
|
|
@@ -2192,7 +2217,7 @@ var ml = [
|
|
|
2192
2217
|
"stats",
|
|
2193
2218
|
"rstats",
|
|
2194
2219
|
"pstats"
|
|
2195
|
-
],
|
|
2220
|
+
], wl = [
|
|
2196
2221
|
"hook",
|
|
2197
2222
|
"fkey",
|
|
2198
2223
|
"enum",
|
|
@@ -2218,7 +2243,7 @@ var ml = [
|
|
|
2218
2243
|
"coordinates",
|
|
2219
2244
|
"gbuffer"
|
|
2220
2245
|
];
|
|
2221
|
-
function
|
|
2246
|
+
function Dl(e) {
|
|
2222
2247
|
let t = {
|
|
2223
2248
|
name: e.id,
|
|
2224
2249
|
header: e.header,
|
|
@@ -2235,7 +2260,7 @@ function Tl(e) {
|
|
|
2235
2260
|
if (!e.flag) return t;
|
|
2236
2261
|
for (let n = 0; n < e.flag.length; n++) {
|
|
2237
2262
|
let r = e.flag[n];
|
|
2238
|
-
if (
|
|
2263
|
+
if (Ir(wl, r)) {
|
|
2239
2264
|
switch (r) {
|
|
2240
2265
|
case "enum":
|
|
2241
2266
|
t.enum_list = e.enum;
|
|
@@ -2246,7 +2271,7 @@ function Tl(e) {
|
|
|
2246
2271
|
case "table": t.enum_list = e.table;
|
|
2247
2272
|
}
|
|
2248
2273
|
t.type = r;
|
|
2249
|
-
} else if (
|
|
2274
|
+
} else if (Ir(Nl, r)) switch (r) {
|
|
2250
2275
|
case "writable":
|
|
2251
2276
|
t.is_writable = !0;
|
|
2252
2277
|
break;
|
|
@@ -2259,7 +2284,7 @@ function Tl(e) {
|
|
|
2259
2284
|
}
|
|
2260
2285
|
return t;
|
|
2261
2286
|
}
|
|
2262
|
-
function
|
|
2287
|
+
function Rl(e, t) {
|
|
2263
2288
|
let n = {
|
|
2264
2289
|
name: e,
|
|
2265
2290
|
header: e,
|
|
@@ -2272,13 +2297,13 @@ function yl(e, t) {
|
|
|
2272
2297
|
default_value: void 0,
|
|
2273
2298
|
placeholder: void 0
|
|
2274
2299
|
};
|
|
2275
|
-
if (
|
|
2300
|
+
if (Cn(t)) {
|
|
2276
2301
|
let e = t.split(".");
|
|
2277
2302
|
for (let t = 0; t < e.length; t++) {
|
|
2278
2303
|
let r = e[t];
|
|
2279
|
-
if (
|
|
2280
|
-
else if (
|
|
2281
|
-
else if (
|
|
2304
|
+
if (Ir(vl, r)) n.real_type || (n.real_type = r);
|
|
2305
|
+
else if (Ir(wl, r)) n.type || (n.type = r);
|
|
2306
|
+
else if (Ir(Nl, r)) switch (r) {
|
|
2282
2307
|
case "writable":
|
|
2283
2308
|
n.is_writable = !0;
|
|
2284
2309
|
break;
|
|
@@ -2290,45 +2315,45 @@ function yl(e, t) {
|
|
|
2290
2315
|
}
|
|
2291
2316
|
}
|
|
2292
2317
|
n.real_type || (n.real_type = "string");
|
|
2293
|
-
} else
|
|
2318
|
+
} else Pn(t) ? (n = Dl(t), n.name || (n.name = e), n.header || (n.header = e)) : Un(t) && (n.real_type = "array", n.enum_list = t);
|
|
2294
2319
|
return n.type || (n.type = n.real_type), n;
|
|
2295
2320
|
}
|
|
2296
|
-
function
|
|
2321
|
+
function jl(e, t) {
|
|
2297
2322
|
let n = {};
|
|
2298
2323
|
return t || (t = {}), Object.entries(e).forEach(([e, r]) => {
|
|
2299
|
-
n[e] =
|
|
2324
|
+
n[e] = _r(null, t, e, _r(r, "default"));
|
|
2300
2325
|
}), n;
|
|
2301
2326
|
}
|
|
2302
|
-
var
|
|
2327
|
+
var $l = [
|
|
2303
2328
|
N(y.DTP_POINTER, "subscriber", 0, null, "Subscriber of output events"),
|
|
2304
2329
|
N(y.DTP_BOOLEAN, "periodic", 0, 0, "True for periodic timeouts"),
|
|
2305
2330
|
N(y.DTP_INTEGER, "msec", 0, 0, "Timeout in milliseconds"),
|
|
2306
2331
|
v()
|
|
2307
|
-
],
|
|
2332
|
+
], Il = {
|
|
2308
2333
|
periodic: !1,
|
|
2309
2334
|
msec: 0,
|
|
2310
2335
|
timer_id: -1
|
|
2311
|
-
},
|
|
2312
|
-
function
|
|
2336
|
+
}, Al = null;
|
|
2337
|
+
function kl(e, t, n, r) {
|
|
2313
2338
|
let l = e.priv, i = l.periodic ? "EV_TIMEOUT_PERIODIC" : "EV_TIMEOUT";
|
|
2314
|
-
return
|
|
2315
|
-
|
|
2339
|
+
return tt(e) ? Ct(Ze(e), i, {}, e) : zt(e, i, {}), l.periodic && (l.timer_id = setTimeout(function() {
|
|
2340
|
+
Ct(e, "EV_TIMEOUT", {}, e);
|
|
2316
2341
|
}, l.msec)), 0;
|
|
2317
2342
|
}
|
|
2318
|
-
var
|
|
2343
|
+
var Ll = {
|
|
2319
2344
|
mt_create: function(e) {
|
|
2320
2345
|
let t = e.priv;
|
|
2321
|
-
const n =
|
|
2322
|
-
n &&
|
|
2346
|
+
const n = Ot(e, "subscriber");
|
|
2347
|
+
n && Yt(e, null, {}, n), t.periodic = Tt(e, "periodic"), t.msec = yt(e, "msec");
|
|
2323
2348
|
},
|
|
2324
2349
|
mt_writing: function(e, t) {
|
|
2325
2350
|
let n = e.priv;
|
|
2326
2351
|
switch (t) {
|
|
2327
2352
|
case "periodic":
|
|
2328
|
-
n.periodic =
|
|
2353
|
+
n.periodic = Tt(e, "periodic");
|
|
2329
2354
|
break;
|
|
2330
|
-
case "msec": n.msec =
|
|
2331
|
-
|
|
2355
|
+
case "msec": n.msec = yt(e, "msec"), -1 !== n.timer_id && (clearTimeout(n.timer_id), n.timer_id = -1), n.msec > 0 && (n.timer_id = setTimeout(function() {
|
|
2356
|
+
Ct(e, "EV_TIMEOUT", {}, e);
|
|
2332
2357
|
}, n.msec));
|
|
2333
2358
|
}
|
|
2334
2359
|
},
|
|
@@ -2336,35 +2361,35 @@ var Dl = {
|
|
|
2336
2361
|
return 0;
|
|
2337
2362
|
},
|
|
2338
2363
|
mt_stop: function(e) {
|
|
2339
|
-
return
|
|
2364
|
+
return Rt(e, "msec", -1), 0;
|
|
2340
2365
|
},
|
|
2341
2366
|
mt_destroy: function(e) {}
|
|
2342
2367
|
};
|
|
2343
|
-
function
|
|
2368
|
+
function Pl() {
|
|
2344
2369
|
return function(e) {
|
|
2345
|
-
if (
|
|
2370
|
+
if (Al) return fn(`GClass ALREADY created: ${e}`), -1;
|
|
2346
2371
|
const t = [["ST_IDLE", [[
|
|
2347
2372
|
"EV_TIMEOUT",
|
|
2348
|
-
|
|
2373
|
+
kl,
|
|
2349
2374
|
null
|
|
2350
2375
|
]]]];
|
|
2351
|
-
return (
|
|
2376
|
+
return (Al = Z(e, [
|
|
2352
2377
|
["EV_TIMEOUT", C.EVF_OUTPUT_EVENT],
|
|
2353
2378
|
["EV_TIMEOUT_PERIODIC", C.EVF_OUTPUT_EVENT],
|
|
2354
2379
|
[0, 0]
|
|
2355
|
-
], t,
|
|
2380
|
+
], t, Ll, 0, $l, Il, 0, 0, 0, L.gcflag_manual_start)) ? 0 : -1;
|
|
2356
2381
|
}("C_TIMER");
|
|
2357
2382
|
}
|
|
2358
|
-
function
|
|
2359
|
-
return e instanceof k ? "C_TIMER" !==
|
|
2383
|
+
function Ul(e, t) {
|
|
2384
|
+
return e instanceof k ? "C_TIMER" !== ze(e) ? (fn("not C_TIMER GObj"), -1) : (Dt(e, "periodic", !1), void Rt(e, "msec", t)) : (fn("not GObj TYPE"), -1);
|
|
2360
2385
|
}
|
|
2361
|
-
function
|
|
2362
|
-
return e instanceof k ? "C_TIMER" !==
|
|
2386
|
+
function Cl(e, t) {
|
|
2387
|
+
return e instanceof k ? "C_TIMER" !== ze(e) ? (fn("not C_TIMER GObj"), -1) : (Dt(e, "periodic", !0), void Rt(e, "msec", t)) : (fn("not GObj TYPE"), -1);
|
|
2363
2388
|
}
|
|
2364
|
-
function
|
|
2365
|
-
return e instanceof k ? "C_TIMER" !==
|
|
2389
|
+
function Fl(e) {
|
|
2390
|
+
return e instanceof k ? "C_TIMER" !== ze(e) ? (fn("not C_TIMER GObj"), -1) : void Rt(e, "msec", -1) : (fn("not GObj TYPE"), -1);
|
|
2366
2391
|
}
|
|
2367
|
-
var
|
|
2392
|
+
var Gl = [
|
|
2368
2393
|
N(y.DTP_BOOLEAN, "changesLost", 0, !1, "Set true to warn about leaving page"),
|
|
2369
2394
|
N(y.DTP_BOOLEAN, "browser_beforeunload", 0, !1, "Set true to refreshing browser"),
|
|
2370
2395
|
N(y.DTP_STRING, "__username__", 0, "", "Username"),
|
|
@@ -2390,43 +2415,43 @@ var Al = [
|
|
|
2390
2415
|
N(y.DTP_BOOLEAN, "developer", 0, !1, "Developer mode enabled"),
|
|
2391
2416
|
N(y.DTP_INTEGER, "periodic_timeout", 0, "1000", "Timeout periodic, in miliseconds."),
|
|
2392
2417
|
v()
|
|
2393
|
-
],
|
|
2394
|
-
function
|
|
2395
|
-
return
|
|
2418
|
+
], Vl = { gobj_timer: null }, Wl = null;
|
|
2419
|
+
function Ml(e, t, n, r) {
|
|
2420
|
+
return zt(e, t, n), 0;
|
|
2396
2421
|
}
|
|
2397
|
-
var
|
|
2422
|
+
var Kl = {
|
|
2398
2423
|
mt_create: function(e) {
|
|
2399
2424
|
let t = e.priv;
|
|
2400
|
-
|
|
2425
|
+
jt(e, "start_date", sl()), jt(e, "node_uuid", _l()), e.priv.gobj_timer = De(qe(e), "C_TIMER", {}, e), t.periodic_timeout = Et(e, "periodic_timeout");
|
|
2401
2426
|
},
|
|
2402
2427
|
mt_writing: function(e, t) {},
|
|
2403
2428
|
mt_start: function(e) {
|
|
2404
|
-
return
|
|
2429
|
+
return $e(e.priv.gobj_timer), Cl(e.priv.gobj_timer, e.priv.periodic_timeout), 0;
|
|
2405
2430
|
},
|
|
2406
2431
|
mt_stop: function(e) {
|
|
2407
|
-
return
|
|
2432
|
+
return Pe(e.priv.gobj_timer), Ce(e), 0;
|
|
2408
2433
|
},
|
|
2409
2434
|
mt_destroy: function(e) {},
|
|
2410
2435
|
mt_play: function(e) {
|
|
2411
|
-
let t =
|
|
2412
|
-
return
|
|
2436
|
+
let t = ce();
|
|
2437
|
+
return We(t) || $e(t), Ye(t) || Ge(t), 0;
|
|
2413
2438
|
},
|
|
2414
2439
|
mt_pause: function(e) {
|
|
2415
|
-
return
|
|
2440
|
+
return Ve(ce()), 0;
|
|
2416
2441
|
}
|
|
2417
2442
|
};
|
|
2418
|
-
function
|
|
2443
|
+
function Yl() {
|
|
2419
2444
|
return function(e) {
|
|
2420
|
-
if (
|
|
2445
|
+
if (Wl) return fn(`GClass ALREADY created: ${e}`), -1;
|
|
2421
2446
|
const t = [["ST_IDLE", [[
|
|
2422
2447
|
"EV_TIMEOUT_PERIODIC",
|
|
2423
|
-
|
|
2448
|
+
Ml,
|
|
2424
2449
|
null
|
|
2425
2450
|
]]]];
|
|
2426
|
-
return (
|
|
2451
|
+
return (Wl = Z(e, [["EV_TIMEOUT_PERIODIC", C.EVF_OUTPUT_EVENT | C.EVF_NO_WARN_SUBS], [0, 0]], t, Kl, 0, Gl, Vl, 0, 0, 0, 0)) ? 0 : -1;
|
|
2427
2452
|
}("C_YUNO");
|
|
2428
2453
|
}
|
|
2429
|
-
var
|
|
2454
|
+
var xl = "ievent_gate_stack", Bl = [
|
|
2430
2455
|
N(y.DTP_STRING, "wanted_yuno_role", S.SDF_RD, "", "wanted yuno role"),
|
|
2431
2456
|
N(y.DTP_STRING, "wanted_yuno_name", S.SDF_RD, "", "wanted yuno name"),
|
|
2432
2457
|
N(y.DTP_STRING, "wanted_yuno_service", S.SDF_RD, "", "wanted yuno service"),
|
|
@@ -2441,7 +2466,7 @@ var Fl = "ievent_gate_stack", Gl = [
|
|
|
2441
2466
|
N(y.DTP_INTEGER, "timeout_idack", S.SDF_RD, "5000", "timeout waiting idAck"),
|
|
2442
2467
|
N(y.DTP_POINTER, "subscriber", 0, 0, "subscriber of output-events. If null then subscriber is the parent"),
|
|
2443
2468
|
v()
|
|
2444
|
-
],
|
|
2469
|
+
], Jl = {
|
|
2445
2470
|
url: null,
|
|
2446
2471
|
remote_yuno_name: null,
|
|
2447
2472
|
remote_yuno_role: null,
|
|
@@ -2450,88 +2475,88 @@ var Fl = "ievent_gate_stack", Gl = [
|
|
|
2450
2475
|
inform_on_close: !1,
|
|
2451
2476
|
websocket: null,
|
|
2452
2477
|
inside_on_open: !1
|
|
2453
|
-
},
|
|
2454
|
-
function
|
|
2455
|
-
e.priv.websocket &&
|
|
2456
|
-
const t =
|
|
2478
|
+
}, Ql = null;
|
|
2479
|
+
function ql(e) {
|
|
2480
|
+
e.priv.websocket && fn("Websocket ALREADY setup");
|
|
2481
|
+
const t = St(e, "url");
|
|
2457
2482
|
let n;
|
|
2458
|
-
|
|
2483
|
+
bn(`====> Starting WebSocket to '${t}' (${Xe(e)})`);
|
|
2459
2484
|
try {
|
|
2460
2485
|
n = new WebSocket(t);
|
|
2461
2486
|
} catch (n) {
|
|
2462
|
-
return
|
|
2487
|
+
return fn(`${Xe(e)}: Cannot open WebSocket to '${t}', Error: ${n.message}`), null;
|
|
2463
2488
|
}
|
|
2464
2489
|
return n ? (n.onopen = () => {
|
|
2465
|
-
|
|
2490
|
+
Ct(e, "EV_ON_OPEN", { url: t }, e);
|
|
2466
2491
|
}, n.onmessage = (n) => {
|
|
2467
|
-
|
|
2492
|
+
Ct(e, "EV_ON_MESSAGE", {
|
|
2468
2493
|
url: t,
|
|
2469
2494
|
data: n.data
|
|
2470
2495
|
}, e);
|
|
2471
2496
|
}, n.onclose = (n) => {
|
|
2472
|
-
|
|
2497
|
+
nt(e) || (Tt(xe(), "browser_beforeunload") ? gn("Close websocket by unload page") : Ct(e, "EV_ON_CLOSE", {
|
|
2473
2498
|
url: t,
|
|
2474
2499
|
e: n
|
|
2475
2500
|
}, e));
|
|
2476
|
-
}, n) : (
|
|
2501
|
+
}, n) : (fn(`${Xe(e)}: Failed to initialize WebSocket.`), null);
|
|
2477
2502
|
}
|
|
2478
|
-
function
|
|
2503
|
+
function zl(e, t = 1e3, n = "") {
|
|
2479
2504
|
let r = e.priv, l = r.websocket;
|
|
2480
2505
|
if (r.websocket = null, l && l.readyState !== WebSocket.CLOSED && l.readyState !== WebSocket.CLOSING) {
|
|
2481
|
-
|
|
2506
|
+
bn(`Closing WebSocket (Code: ${t}, Reason: "${n}")`);
|
|
2482
2507
|
try {
|
|
2483
2508
|
l.close(t, n);
|
|
2484
2509
|
} catch (e) {
|
|
2485
|
-
|
|
2510
|
+
fn("Error closing WebSocket:", e.message);
|
|
2486
2511
|
}
|
|
2487
|
-
} else
|
|
2512
|
+
} else gn("WebSocket is already closed or in the process of closing.");
|
|
2488
2513
|
}
|
|
2489
|
-
function
|
|
2490
|
-
let r =
|
|
2514
|
+
function Xl(e, t, n) {
|
|
2515
|
+
let r = sl();
|
|
2491
2516
|
try {
|
|
2492
|
-
|
|
2517
|
+
bn("\n" + r + " " + t + "\n"), mn(n);
|
|
2493
2518
|
} catch (e) {
|
|
2494
|
-
|
|
2519
|
+
bn("ERROR in trace_inter_event: " + e);
|
|
2495
2520
|
}
|
|
2496
2521
|
}
|
|
2497
|
-
var
|
|
2522
|
+
var Hl = class {
|
|
2498
2523
|
constructor(e, t) {
|
|
2499
2524
|
this.event = e, this.kw = t || {};
|
|
2500
2525
|
}
|
|
2501
2526
|
};
|
|
2502
|
-
function
|
|
2527
|
+
function Zl(e, t, n, r) {
|
|
2503
2528
|
return function(e, t) {
|
|
2504
2529
|
let n = e.priv, r = JSON.stringify(t);
|
|
2505
|
-
if (
|
|
2506
|
-
let n =
|
|
2507
|
-
i ? i(l, t, 1, r.length) :
|
|
2530
|
+
if (Tt(xe(), "trace_inter_event")) {
|
|
2531
|
+
let n = St(e, "url"), l = qe(xe()) + " ==> " + n, i = Et(xe(), "trace_ievent_callback");
|
|
2532
|
+
i ? i(l, t, 1, r.length) : Xl(0, l, t);
|
|
2508
2533
|
}
|
|
2509
2534
|
try {
|
|
2510
2535
|
n.websocket.send(r);
|
|
2511
2536
|
} catch (t) {
|
|
2512
|
-
|
|
2537
|
+
fn(`${Xe(e)}: send_iev(): ${t}`);
|
|
2513
2538
|
}
|
|
2514
2539
|
return 0;
|
|
2515
2540
|
}(e, function(e, t) {
|
|
2516
|
-
return
|
|
2541
|
+
return xn(e) ? (fn("iev_create() event NULL"), null) : new Hl(e, t);
|
|
2517
2542
|
}(t, n));
|
|
2518
2543
|
}
|
|
2519
|
-
function
|
|
2520
|
-
return
|
|
2521
|
-
dst_yuno:
|
|
2522
|
-
dst_role:
|
|
2544
|
+
function ei(e, t, n) {
|
|
2545
|
+
return xn(n) && (n = St(e, "wanted_yuno_service")), {
|
|
2546
|
+
dst_yuno: St(e, "wanted_yuno_name"),
|
|
2547
|
+
dst_role: St(e, "wanted_yuno_role"),
|
|
2523
2548
|
dst_service: n,
|
|
2524
|
-
src_yuno:
|
|
2525
|
-
src_role:
|
|
2549
|
+
src_yuno: Be(),
|
|
2550
|
+
src_role: Je(),
|
|
2526
2551
|
src_service: t,
|
|
2527
|
-
host:
|
|
2552
|
+
host: _l()
|
|
2528
2553
|
};
|
|
2529
2554
|
}
|
|
2530
|
-
function
|
|
2531
|
-
let t = e.priv, n =
|
|
2532
|
-
yuno_role:
|
|
2533
|
-
yuno_id:
|
|
2534
|
-
yuno_name:
|
|
2555
|
+
function ti(e) {
|
|
2556
|
+
let t = e.priv, n = Ye(xe()), r = St(xe(), "yuno_version"), l = St(xe(), "yuno_release"), i = St(xe(), "yuno_tag"), o = {
|
|
2557
|
+
yuno_role: Je(),
|
|
2558
|
+
yuno_id: Qe(),
|
|
2559
|
+
yuno_name: Be(),
|
|
2535
2560
|
yuno_tag: i,
|
|
2536
2561
|
yuno_version: r,
|
|
2537
2562
|
yuno_release: l,
|
|
@@ -2539,37 +2564,37 @@ function Ql(e) {
|
|
|
2539
2564
|
playing: n,
|
|
2540
2565
|
pid: 0,
|
|
2541
2566
|
watcher_pid: 0,
|
|
2542
|
-
jwt:
|
|
2543
|
-
username:
|
|
2567
|
+
jwt: St(e, "jwt"),
|
|
2568
|
+
username: St(xe(), "__username__"),
|
|
2544
2569
|
launch_id: 0,
|
|
2545
|
-
yuno_startdate:
|
|
2546
|
-
id:
|
|
2570
|
+
yuno_startdate: St(xe(), "start_date"),
|
|
2571
|
+
id: _l(),
|
|
2547
2572
|
user_agent: "undefined" != typeof window ? window.navigator.userAgent : "",
|
|
2548
2573
|
language: "undefined" != typeof window ? window.navigator.language : "",
|
|
2549
|
-
required_services:
|
|
2574
|
+
required_services: Et(xe(), "required_services")
|
|
2550
2575
|
};
|
|
2551
|
-
return
|
|
2576
|
+
return Ur(e, o, xl, ei(e, qe(Ze(e)), null)), Fr(e, o, "__identity__"), Ul(t.gobj_timer, yt(e, "timeout_idack")), Zl(e, "EV_IDENTITY_CARD", o);
|
|
2552
2577
|
}
|
|
2553
|
-
function
|
|
2554
|
-
if (
|
|
2578
|
+
function ni(e, t) {
|
|
2579
|
+
if (xn(t.event)) return -1;
|
|
2555
2580
|
let n = {}, r = t.__global__, l = t.__config__, i = t.__filter__, o = t.__service__, s = t.subscriber;
|
|
2556
|
-
return l && (n.__config__ = l), r && (n.__global__ = r), i && (n.__filter__ = i),
|
|
2581
|
+
return l && (n.__config__ = l), r && (n.__global__ = r), i && (n.__filter__ = i), Ur(e, n, xl, ei(e, qe(s), o)), Fr(e, n, "__subscribing__"), Zl(e, t.event, n);
|
|
2557
2582
|
}
|
|
2558
|
-
function
|
|
2583
|
+
function ri(e, t, n, r) {
|
|
2559
2584
|
let l = e.priv;
|
|
2560
|
-
return
|
|
2585
|
+
return We(e) && (l.websocket = ql(e)), 0;
|
|
2561
2586
|
}
|
|
2562
|
-
function
|
|
2563
|
-
return
|
|
2587
|
+
function li(e, t, n, r) {
|
|
2588
|
+
return bn("Websocket opened: " + e.priv.url), ti(e), 0;
|
|
2564
2589
|
}
|
|
2565
|
-
function
|
|
2590
|
+
function ii(e, t, n, r) {
|
|
2566
2591
|
let l = e.priv, i = n.e, o = n.url;
|
|
2567
|
-
return
|
|
2592
|
+
return _n(), gn(`${Xe(e)}: WebSocket closed ${o} (Code: ${i.code}, Reason: "${i.reason}", Clean: ${i.wasClean})`), 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, zt(e, "EV_ON_CLOSE", {
|
|
2568
2593
|
url: o,
|
|
2569
2594
|
remote_yuno_name: l.remote_yuno_name,
|
|
2570
2595
|
remote_yuno_role: l.remote_yuno_role,
|
|
2571
2596
|
remote_yuno_service: l.remote_yuno_service
|
|
2572
|
-
})) : (
|
|
2597
|
+
})) : (gn(`${Xe(e)}: EV_ON_OPEN_ERROR cannot open ${o} (Code: ${i.code}, Reason: "${i.reason}", Clean: ${i.wasClean})`), zt(e, "EV_ON_OPEN_ERROR", {
|
|
2573
2598
|
url: o,
|
|
2574
2599
|
remote_yuno_name: l.remote_yuno_name,
|
|
2575
2600
|
remote_yuno_role: l.remote_yuno_role,
|
|
@@ -2577,21 +2602,21 @@ function Hl(e, t, n, r) {
|
|
|
2577
2602
|
code: i.code,
|
|
2578
2603
|
reason: i.reason,
|
|
2579
2604
|
was_clean: i.wasClean
|
|
2580
|
-
})),
|
|
2605
|
+
})), We(e) && Ul(l.gobj_timer, yt(e, "timeout_retry")), 0;
|
|
2581
2606
|
}
|
|
2582
|
-
function
|
|
2583
|
-
return
|
|
2607
|
+
function oi(e, t, n, r) {
|
|
2608
|
+
return ti(e), 0;
|
|
2584
2609
|
}
|
|
2585
|
-
function
|
|
2610
|
+
function si(e, t, n, r) {
|
|
2586
2611
|
let l = e.priv;
|
|
2587
|
-
|
|
2588
|
-
let i =
|
|
2589
|
-
|
|
2590
|
-
let u =
|
|
2612
|
+
Fl(l.gobj_timer);
|
|
2613
|
+
let i = Cr(e, n, xl, !0), o = sr(e, i, "src_yuno", ""), s = sr(e, i, "src_role", ""), a = sr(e, i, "src_service", "");
|
|
2614
|
+
jt(e, "remote_yuno_name", o), jt(e, "remote_yuno_role", s), jt(e, "remote_yuno_service", a);
|
|
2615
|
+
let u = ir(e, n, "result", -1, 0), _ = sr(e, n, "comment", "", 0), c = sr(e, n, "username", "", 0), f = _r(e, n, "services_roles", {});
|
|
2591
2616
|
if (u < 0) {
|
|
2592
|
-
|
|
2617
|
+
zl(e);
|
|
2593
2618
|
let t = {
|
|
2594
|
-
url:
|
|
2619
|
+
url: St(e, "url"),
|
|
2595
2620
|
result: u,
|
|
2596
2621
|
comment: _,
|
|
2597
2622
|
username: c,
|
|
@@ -2599,9 +2624,9 @@ function ei(e, t, n, r) {
|
|
|
2599
2624
|
remote_yuno_role: s,
|
|
2600
2625
|
remote_yuno_service: a
|
|
2601
2626
|
};
|
|
2602
|
-
|
|
2627
|
+
tt(e) ? Ct(Ze(e), "EV_ON_ID_NAK", t, e) : zt(e, "EV_ON_ID_NAK", t);
|
|
2603
2628
|
} else {
|
|
2604
|
-
if (
|
|
2629
|
+
if ($t(e, "ST_SESSION"), l.inside_on_open = !0, !l.inform_on_close) {
|
|
2605
2630
|
l.inform_on_close = !0;
|
|
2606
2631
|
let t = {
|
|
2607
2632
|
username: c,
|
|
@@ -2610,153 +2635,153 @@ function ei(e, t, n, r) {
|
|
|
2610
2635
|
remote_yuno_service: a,
|
|
2611
2636
|
services_roles: f
|
|
2612
2637
|
};
|
|
2613
|
-
|
|
2638
|
+
tt(e) ? Ct(Ze(e), "EV_ON_OPEN", t, e) : zt(e, "EV_ON_OPEN", t);
|
|
2614
2639
|
}
|
|
2615
2640
|
l.inside_on_open = !1, function(e) {
|
|
2616
|
-
let t =
|
|
2617
|
-
for (let n = 0; n < t.length; n++)
|
|
2641
|
+
let t = Jt(e, null, null, null);
|
|
2642
|
+
for (let n = 0; n < t.length; n++) ni(e, t[n]);
|
|
2618
2643
|
}(e);
|
|
2619
2644
|
}
|
|
2620
2645
|
return 0;
|
|
2621
2646
|
}
|
|
2622
|
-
function
|
|
2647
|
+
function ai(e, t, n, r) {
|
|
2623
2648
|
let l = e.priv.url, i = function(e, t) {
|
|
2624
2649
|
let n;
|
|
2625
2650
|
try {
|
|
2626
2651
|
n = JSON.parse(t);
|
|
2627
2652
|
} catch (e) {
|
|
2628
|
-
return
|
|
2653
|
+
return fn("parsing inter_event json: " + e), null;
|
|
2629
2654
|
}
|
|
2630
|
-
if (!(n instanceof Object)) return
|
|
2655
|
+
if (!(n instanceof Object)) return fn("parsing inter_event: websocket data not a json object"), null;
|
|
2631
2656
|
let r = n.event;
|
|
2632
|
-
if (!r) return
|
|
2633
|
-
if ("string" != typeof r) return
|
|
2657
|
+
if (!r) return fn("parsing inter_event: no event"), null;
|
|
2658
|
+
if ("string" != typeof r) return fn("parsing inter_event: event not a string"), null;
|
|
2634
2659
|
let l = n.kw;
|
|
2635
2660
|
return l ? l instanceof Object ? {
|
|
2636
2661
|
event: r,
|
|
2637
2662
|
kw: l || {}
|
|
2638
|
-
} : (
|
|
2663
|
+
} : (fn("parsing inter_event: kw not a json object"), null) : (fn("parsing inter_kw: no kw"), null);
|
|
2639
2664
|
}(0, n.data);
|
|
2640
|
-
if (
|
|
2641
|
-
let e =
|
|
2642
|
-
r ? r(e, i, 2, t) :
|
|
2665
|
+
if (Tt(xe(), "trace_inter_event")) {
|
|
2666
|
+
let e = qe(xe()) + " <== " + l, t = n.data.length, r = Et(xe(), "trace_ievent_callback");
|
|
2667
|
+
r ? r(e, i, 2, t) : Xl(0, e, i);
|
|
2643
2668
|
}
|
|
2644
2669
|
let o = i.event, s = i.kw;
|
|
2645
|
-
if ("ST_SESSION" !==
|
|
2646
|
-
if (
|
|
2647
|
-
if (0 ===
|
|
2648
|
-
} else
|
|
2649
|
-
return
|
|
2670
|
+
if ("ST_SESSION" !== It(e)) {
|
|
2671
|
+
if (Lt(e, o, C.EVF_PUBLIC_EVENT)) {
|
|
2672
|
+
if (0 === Ct(e, o, s, e)) return 0;
|
|
2673
|
+
} else fn(`${Xe(e)}: event UNKNOWN in not-session state ${o}`);
|
|
2674
|
+
return zl(e), -1;
|
|
2650
2675
|
}
|
|
2651
2676
|
i = null;
|
|
2652
|
-
let a =
|
|
2653
|
-
if (_ !==
|
|
2654
|
-
let c =
|
|
2677
|
+
let a = Gr(e, s), u = Cr(e, s, xl), _ = sr(e, u, "dst_role", "");
|
|
2678
|
+
if (_ !== Je()) return fn(`"It's not my role, dst_role: ${_}, my_role: ${Je()}`), 0;
|
|
2679
|
+
let c = sr(e, u, "dst_service", "");
|
|
2655
2680
|
if ("__subscribing__" === a) return -1;
|
|
2656
2681
|
if ("__unsubscribing__" === a) return -1;
|
|
2657
|
-
if (
|
|
2658
|
-
let f =
|
|
2682
|
+
if (Lt(e, o, C.EVF_PUBLIC_EVENT)) return Ct(e, o, s, e), 0;
|
|
2683
|
+
let f = fe(c, !0);
|
|
2659
2684
|
if (f) {
|
|
2660
|
-
if (!
|
|
2661
|
-
|
|
2662
|
-
} else
|
|
2685
|
+
if (!Lt(f, o, C.EVF_PUBLIC_EVENT)) return fn(`${Xe(e)}: Service found but no event or not public, service '${Xe(f)}', ev '${o}'`), -1;
|
|
2686
|
+
Ct(f, o, s, e);
|
|
2687
|
+
} else tt(e) ? Ct(Ze(e), o, s, e) : zt(e, o, s);
|
|
2663
2688
|
return 0;
|
|
2664
2689
|
}
|
|
2665
|
-
function
|
|
2690
|
+
function ui(e, t, n, r) {
|
|
2666
2691
|
return 0;
|
|
2667
2692
|
}
|
|
2668
|
-
function
|
|
2693
|
+
function _i(e, t, n, r) {
|
|
2669
2694
|
return 0;
|
|
2670
2695
|
}
|
|
2671
|
-
var
|
|
2696
|
+
var ci = {
|
|
2672
2697
|
mt_create: function(e) {
|
|
2673
2698
|
let t = e.priv;
|
|
2674
|
-
t.gobj_timer =
|
|
2675
|
-
const n =
|
|
2676
|
-
n &&
|
|
2699
|
+
t.gobj_timer = De(qe(e), "C_TIMER", {}, e), t.url = St(e, "url"), t.remote_yuno_name = St(e, "remote_yuno_name"), t.remote_yuno_role = St(e, "remote_yuno_role"), t.remote_yuno_service = St(e, "remote_yuno_service"), jt(e, "wanted_yuno_name", t.remote_yuno_name), jt(e, "wanted_yuno_role", t.remote_yuno_role), jt(e, "wanted_yuno_service", t.remote_yuno_service);
|
|
2700
|
+
const n = Ot(e, "subscriber");
|
|
2701
|
+
n && Yt(e, null, {}, n);
|
|
2677
2702
|
},
|
|
2678
2703
|
mt_writing: function(e, t) {
|
|
2679
2704
|
let n = e.priv;
|
|
2680
2705
|
switch (t) {
|
|
2681
2706
|
case "url":
|
|
2682
|
-
n.url =
|
|
2707
|
+
n.url = St(e, "url");
|
|
2683
2708
|
break;
|
|
2684
2709
|
case "remote_yuno_name":
|
|
2685
|
-
n.remote_yuno_name =
|
|
2710
|
+
n.remote_yuno_name = St(e, "remote_yuno_name");
|
|
2686
2711
|
break;
|
|
2687
2712
|
case "remote_yuno_role":
|
|
2688
|
-
n.remote_yuno_role =
|
|
2713
|
+
n.remote_yuno_role = St(e, "remote_yuno_role");
|
|
2689
2714
|
break;
|
|
2690
|
-
case "remote_yuno_service": n.remote_yuno_service =
|
|
2715
|
+
case "remote_yuno_service": n.remote_yuno_service = St(e, "remote_yuno_service");
|
|
2691
2716
|
}
|
|
2692
2717
|
},
|
|
2693
2718
|
mt_start: function(e) {
|
|
2694
2719
|
let t = e.priv;
|
|
2695
|
-
return
|
|
2720
|
+
return $e(t.gobj_timer), t.websocket = ql(e), 0;
|
|
2696
2721
|
},
|
|
2697
2722
|
mt_stop: function(e) {
|
|
2698
2723
|
let t = e.priv;
|
|
2699
|
-
return
|
|
2724
|
+
return Fl(t.gobj_timer), Pe(t.gobj_timer), t.websocket && zl(e), 0;
|
|
2700
2725
|
},
|
|
2701
2726
|
mt_destroy: function(e) {},
|
|
2702
2727
|
mt_stats: function(e, t, n, r) {
|
|
2703
|
-
if ("ST_SESSION" !==
|
|
2728
|
+
if ("ST_SESSION" !== It(e)) return fn("Not in session"), null;
|
|
2704
2729
|
n || (n = {});
|
|
2705
|
-
let l =
|
|
2706
|
-
return i || (i = {}),
|
|
2730
|
+
let l = ei(e, qe(r), sr(e, n, "service", null, 0)), i = _r(e, n, "__md_stats__", null, Zt.KW_EXTRACT);
|
|
2731
|
+
return i || (i = {}), Ur(e, n, "stats_stack", {
|
|
2707
2732
|
stats: t,
|
|
2708
2733
|
kw: i
|
|
2709
|
-
}),
|
|
2734
|
+
}), Ur(e, n, xl, l), n.__stats__ = t, Fr(e, n, "__stats__"), Zl(e, "EV_MT_STATS", n, r), null;
|
|
2710
2735
|
},
|
|
2711
2736
|
mt_command_parser: function(e, t, n, r) {
|
|
2712
|
-
if ("ST_SESSION" !==
|
|
2737
|
+
if ("ST_SESSION" !== It(e)) return fn("Not in session"), null;
|
|
2713
2738
|
n || (n = {});
|
|
2714
|
-
let l =
|
|
2715
|
-
return i || (i = {}),
|
|
2739
|
+
let l = ei(e, qe(r), sr(e, n, "service", "", 0)), i = _r(e, n, "__md_command__", null, Zt.KW_EXTRACT);
|
|
2740
|
+
return i || (i = {}), Ur(e, n, "command_stack", {
|
|
2716
2741
|
command: t,
|
|
2717
2742
|
kw: i
|
|
2718
|
-
}),
|
|
2743
|
+
}), Ur(e, n, xl, l), n.__command__ = t, Fr(e, n, "__command__"), Zl(e, "EV_MT_COMMAND", n, r), null;
|
|
2719
2744
|
},
|
|
2720
2745
|
mt_inject_event: function(e, t, n, r) {
|
|
2721
|
-
if ("ST_SESSION" !==
|
|
2722
|
-
if (n || (n = {}),
|
|
2746
|
+
if ("ST_SESSION" !== It(e)) return window.console.error("Not in session"), -1;
|
|
2747
|
+
if (n || (n = {}), Cr(e, n, xl));
|
|
2723
2748
|
else {
|
|
2724
|
-
let l =
|
|
2725
|
-
|
|
2749
|
+
let l = ei(e, qe(r), sr(e, n, "__service__", 0, 0));
|
|
2750
|
+
Nn(n, "__service__"), Ur(e, n, "__message__", t), Ur(e, n, xl, l);
|
|
2726
2751
|
}
|
|
2727
|
-
return
|
|
2752
|
+
return Fr(e, n, "__message__"), Zl(e, t, n, r);
|
|
2728
2753
|
},
|
|
2729
2754
|
mt_subscription_added: function(e, t) {
|
|
2730
2755
|
let n = e.priv;
|
|
2731
|
-
return "ST_SESSION" !==
|
|
2756
|
+
return "ST_SESSION" !== It(e) || n.inside_on_open ? 0 : ni(e, t);
|
|
2732
2757
|
},
|
|
2733
2758
|
mt_subscription_deleted: function(e, t) {
|
|
2734
2759
|
let n = e.priv;
|
|
2735
|
-
if ("ST_SESSION" !==
|
|
2760
|
+
if ("ST_SESSION" !== It(e)) return 0;
|
|
2736
2761
|
if (n.inside_on_open) return 0;
|
|
2737
|
-
if (
|
|
2762
|
+
if (xn(t.event)) return 0;
|
|
2738
2763
|
let r = {}, l = t.__global__, i = t.__config__, o = t.__filter__, s = t.__service__, a = t.subscriber;
|
|
2739
|
-
return i && (r.__config__ = i), l && (r.__global__ = l), o && (r.__filter__ = o),
|
|
2764
|
+
return i && (r.__config__ = i), l && (r.__global__ = l), o && (r.__filter__ = o), Ur(e, r, xl, ei(e, qe(a), s)), Fr(e, r, "__unsubscribing__"), Zl(e, t.event, r, e);
|
|
2740
2765
|
}
|
|
2741
2766
|
};
|
|
2742
|
-
function
|
|
2767
|
+
function fi() {
|
|
2743
2768
|
return function(e) {
|
|
2744
|
-
if (
|
|
2769
|
+
if (Ql) return fn(`GClass ALREADY created: ${e}`), -1;
|
|
2745
2770
|
const t = [
|
|
2746
2771
|
["ST_DISCONNECTED", [
|
|
2747
2772
|
[
|
|
2748
2773
|
"EV_ON_OPEN",
|
|
2749
|
-
|
|
2774
|
+
li,
|
|
2750
2775
|
"ST_WAIT_IDENTITY_CARD_ACK"
|
|
2751
2776
|
],
|
|
2752
2777
|
[
|
|
2753
2778
|
"EV_ON_CLOSE",
|
|
2754
|
-
|
|
2779
|
+
ii,
|
|
2755
2780
|
null
|
|
2756
2781
|
],
|
|
2757
2782
|
[
|
|
2758
2783
|
"EV_TIMEOUT",
|
|
2759
|
-
|
|
2784
|
+
ri,
|
|
2760
2785
|
null
|
|
2761
2786
|
],
|
|
2762
2787
|
[
|
|
@@ -2768,22 +2793,22 @@ function ii() {
|
|
|
2768
2793
|
["ST_WAIT_IDENTITY_CARD_ACK", [
|
|
2769
2794
|
[
|
|
2770
2795
|
"EV_ON_MESSAGE",
|
|
2771
|
-
|
|
2796
|
+
ai,
|
|
2772
2797
|
null
|
|
2773
2798
|
],
|
|
2774
2799
|
[
|
|
2775
2800
|
"EV_IDENTITY_CARD_ACK",
|
|
2776
|
-
|
|
2801
|
+
si,
|
|
2777
2802
|
null
|
|
2778
2803
|
],
|
|
2779
2804
|
[
|
|
2780
2805
|
"EV_ON_CLOSE",
|
|
2781
|
-
|
|
2806
|
+
ii,
|
|
2782
2807
|
"ST_DISCONNECTED"
|
|
2783
2808
|
],
|
|
2784
2809
|
[
|
|
2785
2810
|
"EV_TIMEOUT",
|
|
2786
|
-
|
|
2811
|
+
oi,
|
|
2787
2812
|
null
|
|
2788
2813
|
],
|
|
2789
2814
|
[
|
|
@@ -2795,22 +2820,22 @@ function ii() {
|
|
|
2795
2820
|
["ST_SESSION", [
|
|
2796
2821
|
[
|
|
2797
2822
|
"EV_ON_MESSAGE",
|
|
2798
|
-
|
|
2823
|
+
ai,
|
|
2799
2824
|
null
|
|
2800
2825
|
],
|
|
2801
2826
|
[
|
|
2802
2827
|
"EV_MT_STATS",
|
|
2803
|
-
|
|
2828
|
+
ui,
|
|
2804
2829
|
null
|
|
2805
2830
|
],
|
|
2806
2831
|
[
|
|
2807
2832
|
"EV_MT_COMMAND",
|
|
2808
|
-
|
|
2833
|
+
_i,
|
|
2809
2834
|
null
|
|
2810
2835
|
],
|
|
2811
2836
|
[
|
|
2812
2837
|
"EV_ON_CLOSE",
|
|
2813
|
-
|
|
2838
|
+
ii,
|
|
2814
2839
|
"ST_DISCONNECTED"
|
|
2815
2840
|
],
|
|
2816
2841
|
[
|
|
@@ -2821,7 +2846,7 @@ function ii() {
|
|
|
2821
2846
|
]],
|
|
2822
2847
|
[null, null]
|
|
2823
2848
|
];
|
|
2824
|
-
return (
|
|
2849
|
+
return (Ql = Z(e, [
|
|
2825
2850
|
["EV_ON_MESSAGE", C.EVF_OUTPUT_EVENT],
|
|
2826
2851
|
["EV_IDENTITY_CARD_ACK", C.EVF_PUBLIC_EVENT],
|
|
2827
2852
|
["EV_ON_ID_NAK", C.EVF_PUBLIC_EVENT | C.EVF_OUTPUT_EVENT],
|
|
@@ -2832,9 +2857,9 @@ function ii() {
|
|
|
2832
2857
|
["EV_ON_OPEN_ERROR", C.EVF_OUTPUT_EVENT | C.EVF_NO_WARN_SUBS],
|
|
2833
2858
|
["EV_TIMEOUT", 0],
|
|
2834
2859
|
[null, 0]
|
|
2835
|
-
], t,
|
|
2860
|
+
], t, ci, 0, Bl, Jl, 0, 0, 0, L.gcflag_no_check_output_events)) ? 0 : -1;
|
|
2836
2861
|
}("C_IEVENT_CLI");
|
|
2837
2862
|
}
|
|
2838
|
-
export { k as GObj, N as SDATA, j as SDATAAUTHZ, w as SDATACM, D as SDATACM2, I as SDATADF, R as SDATAPM, $ as SDATAPM0, v as SDATA_END, O as SDataDesc, a as YUNETA_VERSION, E as __yuno__, i as build_command_response,
|
|
2863
|
+
export { k as GObj, N as SDATA, j as SDATAAUTHZ, w as SDATACM, D as SDATACM2, I as SDATADF, R as SDATAPM, $ as SDATAPM0, v as SDATA_END, O as SDataDesc, a as YUNETA_VERSION, E as __yuno__, i as build_command_response, dl as build_path, s as build_stats_response, cl as clean_name, Fl as clear_timeout, zn as cmp_two_simple_json, l as command_parser, nl as createElement2, tl as createOneHtml, zr as create_json_record, jl as create_template_record, sl as current_timestamp, y as data_type_t, hl as db_list_persistent_attrs, pl as db_load_persistent_attrs, El as db_remove_persistent_attrs, ml as db_save_persistent_attrs, gl as debounce, kr as delete_from_list, hn as duplicate_objects, xn as empty_string, Zr as escapeHtml, C as event_flag_t, le as gclass_add_ev_action, oe as gclass_add_event_type, re as gclass_add_state, ae as gclass_check_fsm, Z as gclass_create, se as gclass_event_type, ue as gclass_find_by_name, L as gclass_flag_t, ee as gclass_unregister, rl as getPositionRelativeToBody, fl as get_function_name, al as get_now, rt as gobj_bottom_gobj, At as gobj_change_parent, $t as gobj_change_state, Xt as gobj_command, Re as gobj_create, Se as gobj_create2, Ne as gobj_create_default_service, De as gobj_create_pure_child, ve as gobj_create_service, we as gobj_create_volatil, Oe as gobj_create_yuno, It as gobj_current_state, ce as gobj_default_service, je as gobj_destroy, gt as gobj_find_child, ct as gobj_find_gobj, fe as gobj_find_service, qt as gobj_find_subscribings, Jt as gobj_find_subscriptions, P as gobj_flag_t, He as gobj_full_name, ze as gobj_gclass_name, mt as gobj_has_attr, Lt as gobj_has_event, Pt as gobj_has_output_event, z as gobj_hsdata, nt as gobj_is_destroying, Ye as gobj_is_playing, tt as gobj_is_pure_child, We as gobj_is_running, Ke as gobj_is_service, et as gobj_is_volatil, he as gobj_list_persistent_attrs, Qt as gobj_list_subscriptions, pe as gobj_load_persistent_attrs, dt as gobj_match_children, bt as gobj_match_children_tree, ft as gobj_match_gobj, qe as gobj_name, Ze as gobj_parent, Ve as gobj_pause, Ge as gobj_play, Ut as gobj_post_event, zt as gobj_publish_event, Et as gobj_read_attr, ht as gobj_read_attrs, Tt as gobj_read_bool_attr, yt as gobj_read_integer_attr, Ot as gobj_read_pointer_attr, St as gobj_read_str_attr, Ee as gobj_remove_persistent_attrs, Nt as gobj_reset_volatil_attrs, me as gobj_save_persistent_attrs, pt as gobj_search_path, Ct as gobj_send_event, _e as gobj_services, lt as gobj_set_bottom_gobj, K as gobj_set_trace_machine_format, Xe as gobj_short_name, $e as gobj_start, Ae as gobj_start_children, Le as gobj_start_tree, B as gobj_start_up, Ht as gobj_stats, Pe as gobj_stop, Ce as gobj_stop_children, Fe as gobj_stop_tree, Yt as gobj_subscribe_event, Y as gobj_trace_machine_format, xt as gobj_unsubscribe_event, Bt as gobj_unsubscribe_list, ot as gobj_walk_gobj_children, st as gobj_walk_gobj_children_tree, vt as gobj_write_attr, wt as gobj_write_attrs, Dt as gobj_write_bool_attr, Rt as gobj_write_integer_attr, jt as gobj_write_str_attr, xe as gobj_yuno, Qe as gobj_yuno_id, Be as gobj_yuno_name, Je as gobj_yuno_role, $r as id_index_in_obj_list, ul as index_in_list, Un as is_array, Gn as is_boolean, Mn as is_date, Kn as is_function, Yn as is_gobj, Hn as is_metadata_key, Vn as is_null, Fn as is_number, Pn as is_object, Zn as is_private_key, Wn as is_pure_number, Cn as is_string, xr as jdb_delete, Jr as jdb_get, Qr as jdb_get_by_idx, Br as jdb_get_topic, Kr as jdb_init, Yr as jdb_update, Rn as json_array_append, jn as json_array_append_new, In as json_array_extend, $n as json_array_remove, kn as json_array_size, En as json_deep_copy, Tn as json_is_identical, Nn as json_object_del, vn as json_object_get, wn as json_object_set, Dn as json_object_set_new, An as json_object_size, yn as json_object_update, Sn as json_object_update_existing, On as json_object_update_missing, Ln as json_size, Hr as jwt2json, Xr as jwtDecode, hr as kw_clone_by_keys, Tr as kw_clone_by_not_keys, Er as kw_collect, rr as kw_delete, pr as kw_find_json_in_list, nr as kw_find_path, Zt as kw_flag_t, lr as kw_get_bool, ur as kw_get_dict, _r as kw_get_dict_value, ir as kw_get_int, cr as kw_get_list, yr as kw_get_local_storage_value, ar as kw_get_pointer, or as kw_get_real, sr as kw_get_str, tr as kw_has_key, br as kw_match_simple, er as kw_pop, Or as kw_remove_local_storage_value, mr as kw_select, fr as kw_set_dict_value, Sr as kw_set_local_storage_value, gr as kw_set_subdict_value, Nr as kwid_collect, Dr as kwid_find_one_record, Rr as kwid_get_ids, vr as kwid_match_id, wr as kwid_new_dict, jr as list2options, Vr as load_json_file, bn as log_debug, fn as log_error, dn as log_info, gn as log_warning, Gr as msg_iev_get_msg_type, Cr as msg_iev_get_stack, Ur as msg_iev_push_stack, Lr as msg_iev_read_key, Fr as msg_iev_set_msg_type, Pr as msg_iev_write_key, _l as node_uuid, Bn as parseBoolean, ll as parseSVG, il as refresh_language, fi as register_c_ievent_cli, Pl as register_c_timer, Yl as register_c_yuno, el as safeSrc, S as sdata_flag_t, Wr as send_http_json_post, sn as set_log_callback, _n as set_remote_log_functions, Ul as set_timeout, Cl as set_timeout_periodic, t as sprintf, o as stats_parser, Ir as str_in_list, qn as strcasecmp, Qn as strcmp, Jn as strncmp, Ar as strs_in_list, Xn as strstr, Rl as template_get_field_desc, ol as timeTracker, mn as trace_json, pn as trace_msg, yl as treedb_decoder_fkey, Ol as treedb_decoder_hook, Sl as treedb_encoder_fkey, Dl as treedb_get_field_desc, Tl as treedb_hook_data_size, n as vsprintf };
|
|
2839
2864
|
|
|
2840
2865
|
//# sourceMappingURL=gobj-js.es.min.js.map
|