@microsoft/applicationinsights-debugplugin-js 3.0.0-beta.2208-14 → 3.0.0-beta.2208-16
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/browser/{ai.dbg.3.0.0-beta.2208-14.cjs.js → ai.dbg.3.0.0-beta.2208-16.cjs.js} +401 -1243
- package/browser/ai.dbg.3.0.0-beta.2208-16.cjs.js.map +1 -0
- package/browser/ai.dbg.3.0.0-beta.2208-16.cjs.min.js +6 -0
- package/browser/ai.dbg.3.0.0-beta.2208-16.cjs.min.js.map +1 -0
- package/browser/{ai.dbg.3.0.0-beta.2208-14.gbl.js → ai.dbg.3.0.0-beta.2208-16.gbl.js} +401 -1243
- package/browser/ai.dbg.3.0.0-beta.2208-16.gbl.js.map +1 -0
- package/browser/ai.dbg.3.0.0-beta.2208-16.gbl.min.js +6 -0
- package/browser/ai.dbg.3.0.0-beta.2208-16.gbl.min.js.map +1 -0
- package/browser/ai.dbg.3.0.0-beta.2208-16.integrity.json +66 -0
- package/browser/{ai.dbg.3.0.0-beta.2208-14.js → ai.dbg.3.0.0-beta.2208-16.js} +401 -1243
- package/browser/ai.dbg.3.0.0-beta.2208-16.js.map +1 -0
- package/browser/ai.dbg.3.0.0-beta.2208-16.min.js +6 -0
- package/browser/ai.dbg.3.0.0-beta.2208-16.min.js.map +1 -0
- package/browser/ai.dbg.3.cjs.js +400 -1242
- package/browser/ai.dbg.3.cjs.js.map +1 -1
- package/browser/ai.dbg.3.cjs.min.js +2 -2
- package/browser/ai.dbg.3.cjs.min.js.map +1 -1
- package/browser/ai.dbg.3.gbl.js +400 -1242
- package/browser/ai.dbg.3.gbl.js.map +1 -1
- package/browser/ai.dbg.3.gbl.min.js +2 -2
- package/browser/ai.dbg.3.gbl.min.js.map +1 -1
- package/browser/ai.dbg.3.js +400 -1242
- package/browser/ai.dbg.3.js.map +1 -1
- package/browser/ai.dbg.3.min.js +2 -2
- package/browser/ai.dbg.3.min.js.map +1 -1
- package/dist/applicationinsights-debugplugin-js.api.json +1 -1
- package/dist/applicationinsights-debugplugin-js.d.ts +1 -1
- package/dist/applicationinsights-debugplugin-js.js +400 -1242
- package/dist/applicationinsights-debugplugin-js.js.map +1 -1
- package/dist/applicationinsights-debugplugin-js.min.js +2 -2
- package/dist/applicationinsights-debugplugin-js.min.js.map +1 -1
- package/dist/applicationinsights-debugplugin-js.rollup.d.ts +1 -1
- package/dist-esm/DebugPlugin.js +2 -2
- package/dist-esm/DebugPlugin.js.map +1 -1
- package/dist-esm/__DynamicConstants.js +4 -5
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/applicationinsights-debugplugin-js.js +1 -1
- package/dist-esm/components/Dashboard.js +1 -1
- package/dist-esm/components/LogEntry.js +5 -6
- package/dist-esm/components/LogEntry.js.map +1 -1
- package/dist-esm/components/debugBins.js +1 -1
- package/dist-esm/components/filterList.js +1 -1
- package/dist-esm/components/helpers.js +9 -10
- package/dist-esm/components/helpers.js.map +1 -1
- package/dist-esm/components/styleNodeSrc.js +11 -11
- package/dist-esm/components/styleNodeSrc.js.map +1 -1
- package/dist-esm/interfaces/IDebugPluginConfig.js +1 -1
- package/package.json +6 -5
- package/src/__DynamicConstants.ts +3 -4
- package/src/components/LogEntry.ts +3 -4
- package/src/components/helpers.ts +7 -8
- package/src/components/styleNodeSrc.ts +14 -14
- package/tsconfig.json +1 -1
- package/types/__DynamicConstants.d.ts +0 -1
- package/types/tsdoc-metadata.json +1 -1
- package/browser/ai.dbg.3.0.0-beta.2208-14.cjs.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2208-14.cjs.min.js +0 -6
- package/browser/ai.dbg.3.0.0-beta.2208-14.cjs.min.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2208-14.gbl.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2208-14.gbl.min.js +0 -6
- package/browser/ai.dbg.3.0.0-beta.2208-14.gbl.min.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2208-14.integrity.json +0 -66
- package/browser/ai.dbg.3.0.0-beta.2208-14.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2208-14.min.js +0 -6
- package/browser/ai.dbg.3.0.0-beta.2208-14.min.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Debug Plugin, 3.0.0-beta.2208-
|
|
2
|
+
* Application Insights JavaScript SDK - Debug Plugin, 3.0.0-beta.2208-16
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -13,32 +13,32 @@
|
|
|
13
13
|
var strShimUndefined = "undefined";
|
|
14
14
|
var strShimPrototype = "prototype";
|
|
15
15
|
var strShimHasOwnProperty = "hasOwnProperty";
|
|
16
|
-
var ObjClass = Object;
|
|
17
|
-
var ObjProto = ObjClass[strShimPrototype];
|
|
18
|
-
var ObjCreate = ObjClass["create"];
|
|
19
|
-
var ObjDefineProperty = ObjClass["defineProperty"];
|
|
20
|
-
var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];
|
|
16
|
+
var ObjClass$1 = Object;
|
|
17
|
+
var ObjProto$1 = ObjClass$1[strShimPrototype];
|
|
18
|
+
var ObjCreate = ObjClass$1["create"];
|
|
19
|
+
var ObjDefineProperty = ObjClass$1["defineProperty"];
|
|
20
|
+
var ObjHasOwnProperty = ObjProto$1[strShimHasOwnProperty];
|
|
21
21
|
|
|
22
|
-
var _cachedGlobal = null;
|
|
23
|
-
function getGlobal(useCached) {
|
|
22
|
+
var _cachedGlobal$1 = null;
|
|
23
|
+
function getGlobal$1(useCached) {
|
|
24
24
|
if (useCached === void 0) { useCached = true; }
|
|
25
|
-
if (!_cachedGlobal || !useCached) {
|
|
25
|
+
if (!_cachedGlobal$1 || !useCached) {
|
|
26
26
|
if (typeof globalThis !== strShimUndefined && globalThis) {
|
|
27
|
-
_cachedGlobal = globalThis;
|
|
27
|
+
_cachedGlobal$1 = globalThis;
|
|
28
28
|
}
|
|
29
29
|
if (typeof self !== strShimUndefined && self) {
|
|
30
|
-
_cachedGlobal = self;
|
|
30
|
+
_cachedGlobal$1 = self;
|
|
31
31
|
}
|
|
32
32
|
if (typeof window !== strShimUndefined && window) {
|
|
33
|
-
_cachedGlobal = window;
|
|
33
|
+
_cachedGlobal$1 = window;
|
|
34
34
|
}
|
|
35
35
|
if (typeof global !== strShimUndefined && global) {
|
|
36
|
-
_cachedGlobal = global;
|
|
36
|
+
_cachedGlobal$1 = global;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
return _cachedGlobal;
|
|
39
|
+
return _cachedGlobal$1;
|
|
40
40
|
}
|
|
41
|
-
function throwTypeError(message) {
|
|
41
|
+
function throwTypeError$1(message) {
|
|
42
42
|
throw new TypeError(message);
|
|
43
43
|
}
|
|
44
44
|
function objCreateFn(obj) {
|
|
@@ -51,17 +51,17 @@
|
|
|
51
51
|
}
|
|
52
52
|
var type = typeof obj;
|
|
53
53
|
if (type !== strShimObject && type !== strShimFunction) {
|
|
54
|
-
throwTypeError("Object prototype may only be an Object:" + obj);
|
|
54
|
+
throwTypeError$1("Object prototype may only be an Object:" + obj);
|
|
55
55
|
}
|
|
56
56
|
function tmpFunc() { }
|
|
57
57
|
tmpFunc[strShimPrototype] = obj;
|
|
58
58
|
return new tmpFunc();
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
(getGlobal() || {})["Symbol"];
|
|
62
|
-
(getGlobal() || {})["Reflect"];
|
|
61
|
+
(getGlobal$1() || {})["Symbol"];
|
|
62
|
+
(getGlobal$1() || {})["Reflect"];
|
|
63
63
|
var extendStaticsFn = function (d, b) {
|
|
64
|
-
extendStaticsFn = ObjClass["setPrototypeOf"] ||
|
|
64
|
+
extendStaticsFn = ObjClass$1["setPrototypeOf"] ||
|
|
65
65
|
({ __proto__: [] } instanceof Array && function (d, b) {
|
|
66
66
|
d.__proto__ = b;
|
|
67
67
|
}) ||
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
};
|
|
77
77
|
function __extendsFn(d, b) {
|
|
78
78
|
if (typeof b !== strShimFunction && b !== null) {
|
|
79
|
-
throwTypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
79
|
+
throwTypeError$1("Class extends value " + String(b) + " is not a constructor or null");
|
|
80
80
|
}
|
|
81
81
|
extendStaticsFn(d, b);
|
|
82
82
|
function __() {
|
|
@@ -100,13 +100,13 @@
|
|
|
100
100
|
var DynAllowInstChkTag = DynInstChkTag;
|
|
101
101
|
var DynProtoDefaultOptions = '_dfOpts';
|
|
102
102
|
var UnknownValue = '_unknown_';
|
|
103
|
-
var str__Proto
|
|
104
|
-
var DynProtoBaseProto = "_dyn" + str__Proto
|
|
103
|
+
var str__Proto = "__proto__";
|
|
104
|
+
var DynProtoBaseProto = "_dyn" + str__Proto;
|
|
105
105
|
var DynProtoCurrent = "_dynInstProto";
|
|
106
106
|
var strUseBaseInst = 'useBaseInst';
|
|
107
107
|
var strSetInstFuncs = 'setInstFuncs';
|
|
108
108
|
var Obj = Object;
|
|
109
|
-
var _objGetPrototypeOf
|
|
109
|
+
var _objGetPrototypeOf = Obj["getPrototypeOf"];
|
|
110
110
|
var _objGetOwnProps = Obj["getOwnPropertyNames"];
|
|
111
111
|
var _dynamicNames = 0;
|
|
112
112
|
function _hasOwnProperty(obj, prop) {
|
|
@@ -121,10 +121,10 @@
|
|
|
121
121
|
function _getObjProto$1(target) {
|
|
122
122
|
var newProto;
|
|
123
123
|
if (target) {
|
|
124
|
-
if (_objGetPrototypeOf
|
|
125
|
-
return _objGetPrototypeOf
|
|
124
|
+
if (_objGetPrototypeOf) {
|
|
125
|
+
return _objGetPrototypeOf(target);
|
|
126
126
|
}
|
|
127
|
-
var curProto = target[str__Proto
|
|
127
|
+
var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
|
|
128
128
|
newProto = target[DynProtoBaseProto] || curProto;
|
|
129
129
|
if (!_hasOwnProperty(target, DynProtoBaseProto)) {
|
|
130
130
|
delete target[DynProtoCurrent];
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
var visited = [];
|
|
197
197
|
while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
|
|
198
198
|
_forEachProp(baseProto, function (name) {
|
|
199
|
-
if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf
|
|
199
|
+
if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
|
|
200
200
|
baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
|
|
201
201
|
}
|
|
202
202
|
});
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
function _checkPrototype(classProto, thisTarget) {
|
|
279
|
-
if (_objGetPrototypeOf
|
|
279
|
+
if (_objGetPrototypeOf) {
|
|
280
280
|
var visited = [];
|
|
281
281
|
var thisProto = _getObjProto$1(thisTarget);
|
|
282
282
|
while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
var instFuncs = _getInstanceFuncs(target);
|
|
322
322
|
var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);
|
|
323
323
|
delegateFunc(target, baseFuncs);
|
|
324
|
-
var setInstanceFunc = !!_objGetPrototypeOf
|
|
324
|
+
var setInstanceFunc = !!_objGetPrototypeOf && !!perfOptions[strSetInstFuncs];
|
|
325
325
|
if (setInstanceFunc && options) {
|
|
326
326
|
setInstanceFunc = !!options[strSetInstFuncs];
|
|
327
327
|
}
|
|
@@ -333,6 +333,274 @@
|
|
|
333
333
|
};
|
|
334
334
|
dynamicProto[DynProtoDefaultOptions] = perfDefaults;
|
|
335
335
|
|
|
336
|
+
var UNDEF_VALUE = undefined;
|
|
337
|
+
var EMPTY = "";
|
|
338
|
+
var BOOLEAN = "boolean";
|
|
339
|
+
var FUNCTION = "function";
|
|
340
|
+
var NUMBER = "number";
|
|
341
|
+
var OBJECT = "object";
|
|
342
|
+
var PROTOTYPE = "prototype";
|
|
343
|
+
var STRING = "string";
|
|
344
|
+
var UNDEFINED = "undefined";
|
|
345
|
+
var HAS_OWN_PROPERTY = "hasOwnProperty";
|
|
346
|
+
var SYMBOL = "Symbol";
|
|
347
|
+
var INDEX_OF = "indexOf";
|
|
348
|
+
var LENGTH = "length";
|
|
349
|
+
var ObjClass = Object;
|
|
350
|
+
var ObjProto = ObjClass[PROTOTYPE];
|
|
351
|
+
var ArrCls = Array;
|
|
352
|
+
|
|
353
|
+
function _safeCheck(cb, defValue) {
|
|
354
|
+
var result = defValue;
|
|
355
|
+
try {
|
|
356
|
+
result = cb();
|
|
357
|
+
}
|
|
358
|
+
catch (e) {
|
|
359
|
+
}
|
|
360
|
+
return result;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
function _createIs(theType) {
|
|
364
|
+
return function (value) {
|
|
365
|
+
return typeof value === theType;
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
function _createObjIs(theType) {
|
|
369
|
+
return function (value) {
|
|
370
|
+
return !!(value && objToString(value) === theType);
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
function objToString(value) {
|
|
374
|
+
return ObjProto.toString.call(value);
|
|
375
|
+
}
|
|
376
|
+
function isUndefined(value) {
|
|
377
|
+
return typeof value === UNDEFINED || value === UNDEFINED;
|
|
378
|
+
}
|
|
379
|
+
function isNullOrUndefined(value) {
|
|
380
|
+
return value === null || isUndefined(value);
|
|
381
|
+
}
|
|
382
|
+
function isDefined(arg) {
|
|
383
|
+
return !!arg || arg !== UNDEF_VALUE;
|
|
384
|
+
}
|
|
385
|
+
var isString = _createIs(STRING);
|
|
386
|
+
var isFunction = _createIs(FUNCTION);
|
|
387
|
+
function isObject(value) {
|
|
388
|
+
if (isNullOrUndefined(value)) {
|
|
389
|
+
return false;
|
|
390
|
+
}
|
|
391
|
+
return !!value && typeof value === OBJECT;
|
|
392
|
+
}
|
|
393
|
+
var isArray = ArrCls.isArray;
|
|
394
|
+
var isNumber = _createIs(NUMBER);
|
|
395
|
+
var isBoolean = _createIs(BOOLEAN);
|
|
396
|
+
var isError = _createObjIs("[object Error]");
|
|
397
|
+
|
|
398
|
+
var DOCUMENT = "document";
|
|
399
|
+
var NAVIGATOR = "navigator";
|
|
400
|
+
var WINDOW = "window";
|
|
401
|
+
var _cachedGlobal = null;
|
|
402
|
+
var _hasWindow = _safeCheck(function () { return isDefined(window); }, false);
|
|
403
|
+
var _hasDocument = _safeCheck(function () { return isDefined(document); }, false);
|
|
404
|
+
var _hasNavigator = _safeCheck(function () { return isDefined(navigator); }, false);
|
|
405
|
+
_safeCheck(function () { return isDefined(history); }, false);
|
|
406
|
+
_safeCheck(function () { return !!(self && self instanceof WorkerGlobalScope); }, false);
|
|
407
|
+
_safeCheck(function () { return !!(process && (process.versions || {}).node); }, false);
|
|
408
|
+
function getGlobal(useCached) {
|
|
409
|
+
var result = useCached === false ? null : _cachedGlobal;
|
|
410
|
+
if (!result) {
|
|
411
|
+
if (!result && typeof globalThis !== UNDEFINED) {
|
|
412
|
+
result = globalThis;
|
|
413
|
+
}
|
|
414
|
+
if (!result && typeof self !== UNDEFINED) {
|
|
415
|
+
result = self;
|
|
416
|
+
}
|
|
417
|
+
if (!result && typeof window !== UNDEFINED) {
|
|
418
|
+
result = window;
|
|
419
|
+
}
|
|
420
|
+
if (!result && typeof global !== UNDEFINED) {
|
|
421
|
+
result = global;
|
|
422
|
+
}
|
|
423
|
+
_cachedGlobal = result;
|
|
424
|
+
}
|
|
425
|
+
return result;
|
|
426
|
+
}
|
|
427
|
+
function getInst(name, useCached) {
|
|
428
|
+
var gbl = getGlobal(useCached);
|
|
429
|
+
if (gbl && gbl[name]) {
|
|
430
|
+
return gbl[name];
|
|
431
|
+
}
|
|
432
|
+
if (name === WINDOW && _hasWindow) {
|
|
433
|
+
return window;
|
|
434
|
+
}
|
|
435
|
+
return null;
|
|
436
|
+
}
|
|
437
|
+
function getDocument() {
|
|
438
|
+
return _hasDocument ? document : getInst(DOCUMENT);
|
|
439
|
+
}
|
|
440
|
+
function getNavigator() {
|
|
441
|
+
return _hasNavigator ? navigator : getInst(NAVIGATOR);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
function objHasOwnProperty(obj, prop) {
|
|
445
|
+
return obj && ObjProto[HAS_OWN_PROPERTY].call(obj, prop);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
function objForEachKey(theObject, callbackfn, thisArg) {
|
|
449
|
+
if (theObject && isObject(theObject)) {
|
|
450
|
+
for (var prop in theObject) {
|
|
451
|
+
if (objHasOwnProperty(theObject, prop)) {
|
|
452
|
+
if (callbackfn.call(thisArg || theObject, prop, theObject[prop]) === -1) {
|
|
453
|
+
break;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
function arrForEach(arr, callbackfn, thisArg) {
|
|
461
|
+
if (arr) {
|
|
462
|
+
var len = arr[LENGTH];
|
|
463
|
+
for (var idx = 0; idx < len; idx++) {
|
|
464
|
+
if (idx in arr) {
|
|
465
|
+
if (callbackfn.call(thisArg || arr, arr[idx], idx, arr) === -1) {
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
function throwTypeError(message) {
|
|
474
|
+
throw new TypeError(message);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
var _objFreeze = ObjClass["freeze"];
|
|
478
|
+
function _doNothing(value) {
|
|
479
|
+
return value;
|
|
480
|
+
}
|
|
481
|
+
function objKeys(value) {
|
|
482
|
+
if (!isObject(value) || value === null) {
|
|
483
|
+
throwTypeError("objKeys called on non-object");
|
|
484
|
+
}
|
|
485
|
+
return ObjClass.keys(value);
|
|
486
|
+
}
|
|
487
|
+
var objFreeze = _objFreeze || _doNothing;
|
|
488
|
+
|
|
489
|
+
_safeCheck(function () { return isDefined(Symbol); }, false);
|
|
490
|
+
var _symbol = getInst(SYMBOL);
|
|
491
|
+
_symbol && _safeCheck(function () { return _symbol["for"]; }, null);
|
|
492
|
+
_symbol && _safeCheck(function () { return _symbol["keyFor"]; }, null);
|
|
493
|
+
var isSymbol = _createIs("symbol");
|
|
494
|
+
|
|
495
|
+
function dumpObj(object, format) {
|
|
496
|
+
var objectTypeDump = objToString(object);
|
|
497
|
+
var propertyValueDump = "";
|
|
498
|
+
if (objectTypeDump === "[object Error]") {
|
|
499
|
+
propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object.name + "'";
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
if (format) {
|
|
503
|
+
if (isNumber(format)) {
|
|
504
|
+
propertyValueDump = JSON.stringify(object, null, format);
|
|
505
|
+
}
|
|
506
|
+
else {
|
|
507
|
+
propertyValueDump = JSON.stringify(object, null, format ? 4 : 0);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
else {
|
|
511
|
+
propertyValueDump = JSON.stringify(object);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
return objectTypeDump + ": " + propertyValueDump;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
function _unwrapFunction(funcName) {
|
|
518
|
+
return function (thisArg) {
|
|
519
|
+
var args = [];
|
|
520
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
521
|
+
args[_i - 1] = arguments[_i];
|
|
522
|
+
}
|
|
523
|
+
if ((thisArg || thisArg === EMPTY) && thisArg[funcName]) {
|
|
524
|
+
return thisArg[funcName].apply(thisArg, args);
|
|
525
|
+
}
|
|
526
|
+
throwTypeError("'" + funcName + "' not defined for " + dumpObj(thisArg));
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
var arrIndexOf = _unwrapFunction(INDEX_OF);
|
|
531
|
+
|
|
532
|
+
function objSetPrototypeOf(obj, proto) {
|
|
533
|
+
var fn = ObjClass["setPrototypeOf"] ||
|
|
534
|
+
({ __proto__: [] } instanceof Array && function (d, b) {
|
|
535
|
+
d.__proto__ = b;
|
|
536
|
+
}) ||
|
|
537
|
+
function (d, b) {
|
|
538
|
+
objForEachKey(b, function (key, value) {
|
|
539
|
+
d[key] = value;
|
|
540
|
+
});
|
|
541
|
+
};
|
|
542
|
+
return fn(obj, proto);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
function _createCustomError(name, d, b) {
|
|
546
|
+
objSetPrototypeOf(d, b);
|
|
547
|
+
function __() {
|
|
548
|
+
this.constructor = d;
|
|
549
|
+
}
|
|
550
|
+
__[PROTOTYPE] = b[PROTOTYPE];
|
|
551
|
+
__[PROTOTYPE].name = name;
|
|
552
|
+
d[PROTOTYPE] = new __();
|
|
553
|
+
return d;
|
|
554
|
+
}
|
|
555
|
+
function createCustomError(name, constructCb) {
|
|
556
|
+
var baseClass = Error;
|
|
557
|
+
var customError = _createCustomError(name, function () {
|
|
558
|
+
var _this = this;
|
|
559
|
+
_this = baseClass.apply(_this, arguments) || _this;
|
|
560
|
+
constructCb && constructCb(_this, arguments);
|
|
561
|
+
return _this;
|
|
562
|
+
}, baseClass);
|
|
563
|
+
return customError;
|
|
564
|
+
}
|
|
565
|
+
var _unsupportedError;
|
|
566
|
+
function throwUnsupported(message) {
|
|
567
|
+
if (!_unsupportedError) {
|
|
568
|
+
_unsupportedError = createCustomError("UnsupportedError");
|
|
569
|
+
}
|
|
570
|
+
throw new _unsupportedError(message);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
var _objDefineProperty$1 = ObjClass["defineProperty"];
|
|
574
|
+
function objDefineProp(target, key, descriptor) {
|
|
575
|
+
if (_objDefineProperty$1) {
|
|
576
|
+
_objDefineProperty$1(target, key, descriptor);
|
|
577
|
+
return target;
|
|
578
|
+
}
|
|
579
|
+
throwUnsupported("Unable to define property [" + objToString(key) + "] on " + dumpObj(target));
|
|
580
|
+
}
|
|
581
|
+
function objDefineAccessors(target, prop, getProp, setProp, configurable) {
|
|
582
|
+
if (_objDefineProperty$1) {
|
|
583
|
+
try {
|
|
584
|
+
var descriptor = {
|
|
585
|
+
enumerable: true,
|
|
586
|
+
configurable: isUndefined(configurable) ? true : configurable
|
|
587
|
+
};
|
|
588
|
+
if (getProp) {
|
|
589
|
+
descriptor.get = getProp;
|
|
590
|
+
}
|
|
591
|
+
if (setProp) {
|
|
592
|
+
descriptor.set = setProp;
|
|
593
|
+
}
|
|
594
|
+
return objDefineProp(target, prop, descriptor);
|
|
595
|
+
}
|
|
596
|
+
catch (e) {
|
|
597
|
+
throwUnsupported("Unable to define accessors for [" + objToString(prop) + "] on " + dumpObj(target));
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
var strIndexOf = _unwrapFunction(INDEX_OF);
|
|
603
|
+
|
|
336
604
|
var _DYN_INITIALIZE = "initialize";
|
|
337
605
|
var _DYN_NAME$1 = "name";
|
|
338
606
|
var _DYN_IDENTIFIER$1 = "identifier";
|
|
@@ -340,7 +608,7 @@
|
|
|
340
608
|
var _DYN_IS_INITIALIZED = "isInitialized";
|
|
341
609
|
var _DYN_CONFIG = "config";
|
|
342
610
|
var _DYN_LOGGER = "logger";
|
|
343
|
-
var _DYN_LENGTH$
|
|
611
|
+
var _DYN_LENGTH$1 = "length";
|
|
344
612
|
var _DYN_TIME = "time";
|
|
345
613
|
var _DYN_PROCESS_NEXT = "processNext";
|
|
346
614
|
var _DYN_GET_PROCESS_TEL_CONT0 = "getProcessTelContext";
|
|
@@ -356,22 +624,15 @@
|
|
|
356
624
|
var _DYN_DIAG_LOG = "diagLog";
|
|
357
625
|
var _DYN_SET_NEXT_PLUGIN = "setNextPlugin";
|
|
358
626
|
var _DYN_CREATE_NEW = "createNew";
|
|
359
|
-
var _DYN_COOKIE_CFG = "cookieCfg";
|
|
360
|
-
var _DYN_INDEX_OF = "indexOf";
|
|
361
|
-
var _DYN_SUBSTRING$1 = "substring";
|
|
362
627
|
var _DYN_USER_AGENT = "userAgent";
|
|
363
628
|
var _DYN_SPLIT = "split";
|
|
364
|
-
var _DYN_SET_ENABLED = "setEnabled";
|
|
365
|
-
var _DYN_SUBSTR = "substr";
|
|
366
629
|
var _DYN_NODE_TYPE = "nodeType";
|
|
367
630
|
var _DYN_APPLY = "apply";
|
|
368
631
|
var _DYN_REPLACE$1 = "replace";
|
|
369
632
|
var _DYN_ENABLE_DEBUG_EXCEPTI4 = "enableDebugExceptions";
|
|
370
633
|
var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
|
|
371
|
-
var _DYN_TO_LOWER_CASE
|
|
634
|
+
var _DYN_TO_LOWER_CASE = "toLowerCase";
|
|
372
635
|
var _DYN_CALL = "call";
|
|
373
|
-
var _DYN_TYPE = "type";
|
|
374
|
-
var _DYN_HANDLER = "handler";
|
|
375
636
|
var _DYN_IS_CHILD_EVT = "isChildEvt";
|
|
376
637
|
var _DYN_GET_CTX = "getCtx";
|
|
377
638
|
var _DYN_SET_CTX = "setCtx";
|
|
@@ -387,67 +648,38 @@
|
|
|
387
648
|
var STR_WARN_TO_CONSOLE = "warnToConsole";
|
|
388
649
|
var STR_GET_PERF_MGR = "getPerfMgr";
|
|
389
650
|
|
|
390
|
-
var
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
651
|
+
var _aiNamespace = null;
|
|
652
|
+
function _getExtensionNamespace() {
|
|
653
|
+
var target = getInst("Microsoft");
|
|
654
|
+
if (target) {
|
|
655
|
+
_aiNamespace = target["ApplicationInsights"];
|
|
656
|
+
}
|
|
657
|
+
return _aiNamespace;
|
|
658
|
+
}
|
|
659
|
+
function getDebugExt(config) {
|
|
660
|
+
var ns = _aiNamespace;
|
|
661
|
+
if (!ns && config.disableDbgExt !== true) {
|
|
662
|
+
ns = _aiNamespace || _getExtensionNamespace();
|
|
663
|
+
}
|
|
664
|
+
return ns ? ns["ChromeDbgExt"] : null;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
var cString = "String";
|
|
668
|
+
var cObject = "Object";
|
|
396
669
|
var strToString = "toString";
|
|
397
|
-
var
|
|
670
|
+
var strGetPrototypeOf = "getPrototypeOf";
|
|
398
671
|
var strConstructor$1 = "constructor";
|
|
399
|
-
var
|
|
400
|
-
var
|
|
401
|
-
var _objKeys = ObjClass.keys;
|
|
402
|
-
var StringProto = String[strShimPrototype];
|
|
403
|
-
var _strTrim = StringProto[cStrTrim];
|
|
404
|
-
var _strEndsWith = StringProto[cStrEndsWith];
|
|
405
|
-
var DateProto = Date[strShimPrototype];
|
|
406
|
-
var _dataToISOString = DateProto[strToISOString];
|
|
407
|
-
var _isArray = Array.isArray;
|
|
408
|
-
var _objToString = ObjProto[strToString];
|
|
409
|
-
var _fnToString = ObjHasOwnProperty[strToString];
|
|
410
|
-
var _objFunctionString = _fnToString[_DYN_CALL ](ObjClass);
|
|
672
|
+
var _fnToString = ObjHasOwnProperty[strToString] || _polyfillRequired(cString, strToString);
|
|
673
|
+
var _objFunctionString = _fnToString[_DYN_CALL ](ObjClass$1);
|
|
411
674
|
var rCamelCase = /-([a-z])/g;
|
|
412
675
|
var rNormalizeInvalid = /([^\w\d_$])/g;
|
|
413
676
|
var rLeadingNumeric = /^(\d+[\w\d_$])/;
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
return _objGetPrototypeOf(target);
|
|
419
|
-
}
|
|
420
|
-
var newProto = target[str__Proto] || target[strShimPrototype] || target[strConstructor$1];
|
|
421
|
-
if (newProto) {
|
|
422
|
-
return newProto;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
return null;
|
|
426
|
-
}
|
|
427
|
-
function objToString(obj) {
|
|
428
|
-
return _objToString[_DYN_CALL ](obj);
|
|
429
|
-
}
|
|
430
|
-
function isTypeof(value, theType) {
|
|
431
|
-
return typeof value === theType;
|
|
432
|
-
}
|
|
433
|
-
function isUndefined(value) {
|
|
434
|
-
return value === undefined || typeof value === strShimUndefined;
|
|
435
|
-
}
|
|
436
|
-
function isNullOrUndefined(value) {
|
|
437
|
-
return (value === null || isUndefined(value));
|
|
438
|
-
}
|
|
439
|
-
function isNotNullOrUndefined(value) {
|
|
440
|
-
return !isNullOrUndefined(value);
|
|
441
|
-
}
|
|
442
|
-
function hasOwnProperty(obj, prop) {
|
|
443
|
-
return !!(obj && ObjHasOwnProperty[_DYN_CALL ](obj, prop));
|
|
444
|
-
}
|
|
445
|
-
function isObject(value) {
|
|
446
|
-
return !!(value && typeof value === strShimObject);
|
|
447
|
-
}
|
|
448
|
-
function isFunction(value) {
|
|
449
|
-
return !!(value && typeof value === strShimFunction);
|
|
677
|
+
function _polyfillRequired(object, name) {
|
|
678
|
+
return function () {
|
|
679
|
+
throwUnsupported("Polyfill required for [" + name + "]");
|
|
680
|
+
};
|
|
450
681
|
}
|
|
682
|
+
var _getObjProto = Object[strGetPrototypeOf] || _polyfillRequired(cObject, strGetPrototypeOf);
|
|
451
683
|
function normalizeJsName(name) {
|
|
452
684
|
var value = name;
|
|
453
685
|
if (value && isString(value)) {
|
|
@@ -461,70 +693,16 @@
|
|
|
461
693
|
}
|
|
462
694
|
return value;
|
|
463
695
|
}
|
|
464
|
-
function objForEachKey(target, callbackfn) {
|
|
465
|
-
if (target) {
|
|
466
|
-
for (var prop in target) {
|
|
467
|
-
if (ObjHasOwnProperty[_DYN_CALL ](target, prop)) {
|
|
468
|
-
callbackfn[_DYN_CALL ](target, prop, target[prop]);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
function strEndsWith(value, search) {
|
|
474
|
-
var result = false;
|
|
475
|
-
if (value && search && !(result = value === search)) {
|
|
476
|
-
result = _strEndsWith ? value[cStrEndsWith](search) : _strEndsWithPoly(value, search);
|
|
477
|
-
}
|
|
478
|
-
return result;
|
|
479
|
-
}
|
|
480
|
-
function _strEndsWithPoly(value, search) {
|
|
481
|
-
var result = false;
|
|
482
|
-
var searchLen = search ? search[_DYN_LENGTH$2 ] : 0;
|
|
483
|
-
var valLen = value ? value[_DYN_LENGTH$2 ] : 0;
|
|
484
|
-
if (searchLen && valLen && valLen >= searchLen && !(result = value === search)) {
|
|
485
|
-
var pos = valLen - 1;
|
|
486
|
-
for (var lp = searchLen - 1; lp >= 0; lp--) {
|
|
487
|
-
if (value[pos] != search[lp]) {
|
|
488
|
-
return false;
|
|
489
|
-
}
|
|
490
|
-
pos--;
|
|
491
|
-
}
|
|
492
|
-
result = true;
|
|
493
|
-
}
|
|
494
|
-
return result;
|
|
495
|
-
}
|
|
496
696
|
function strContains(value, search) {
|
|
497
697
|
if (value && search) {
|
|
498
|
-
return value
|
|
698
|
+
return strIndexOf(value, search) !== -1;
|
|
499
699
|
}
|
|
500
700
|
return false;
|
|
501
701
|
}
|
|
502
|
-
function isDate(obj) {
|
|
503
|
-
return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Date]");
|
|
504
|
-
}
|
|
505
|
-
var isArray = _isArray || _isArrayPoly;
|
|
506
|
-
function _isArrayPoly(obj) {
|
|
507
|
-
return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Array]");
|
|
508
|
-
}
|
|
509
|
-
function isError(obj) {
|
|
510
|
-
return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Error]");
|
|
511
|
-
}
|
|
512
|
-
function isString(value) {
|
|
513
|
-
return typeof value === "string";
|
|
514
|
-
}
|
|
515
|
-
function isNumber(value) {
|
|
516
|
-
return typeof value === "number";
|
|
517
|
-
}
|
|
518
|
-
function isBoolean(value) {
|
|
519
|
-
return typeof value === "boolean";
|
|
520
|
-
}
|
|
521
|
-
function isSymbol(value) {
|
|
522
|
-
return typeof value === "symbol";
|
|
523
|
-
}
|
|
524
702
|
function isPlainObject(value) {
|
|
525
703
|
var result = false;
|
|
526
704
|
if (value && typeof value === "object") {
|
|
527
|
-
var proto =
|
|
705
|
+
var proto = _getObjProto(value);
|
|
528
706
|
if (!proto) {
|
|
529
707
|
result = true;
|
|
530
708
|
}
|
|
@@ -537,195 +715,10 @@
|
|
|
537
715
|
}
|
|
538
716
|
return result;
|
|
539
717
|
}
|
|
540
|
-
function toISOString(date) {
|
|
541
|
-
if (date) {
|
|
542
|
-
return _dataToISOString ? date[strToISOString]() : _toISOStringPoly(date);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
function _toISOStringPoly(date) {
|
|
546
|
-
if (date && date.getUTCFullYear) {
|
|
547
|
-
var pad = function (num) {
|
|
548
|
-
var r = String(num);
|
|
549
|
-
if (r[_DYN_LENGTH$2 ] === 1) {
|
|
550
|
-
r = "0" + r;
|
|
551
|
-
}
|
|
552
|
-
return r;
|
|
553
|
-
};
|
|
554
|
-
return date.getUTCFullYear()
|
|
555
|
-
+ "-" + pad(date.getUTCMonth() + 1)
|
|
556
|
-
+ "-" + pad(date.getUTCDate())
|
|
557
|
-
+ "T" + pad(date.getUTCHours())
|
|
558
|
-
+ ":" + pad(date.getUTCMinutes())
|
|
559
|
-
+ ":" + pad(date.getUTCSeconds())
|
|
560
|
-
+ "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
|
|
561
|
-
+ "Z";
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
function arrForEach(arr, callbackfn, thisArg) {
|
|
565
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
566
|
-
try {
|
|
567
|
-
for (var idx = 0; idx < len; idx++) {
|
|
568
|
-
if (idx in arr) {
|
|
569
|
-
if (callbackfn[_DYN_CALL ](thisArg || arr, arr[idx], idx, arr) === -1) {
|
|
570
|
-
break;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
catch (e) {
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
function arrIndexOf(arr, searchElement, fromIndex) {
|
|
579
|
-
if (arr) {
|
|
580
|
-
if (arr[strIndexOf]) {
|
|
581
|
-
return arr[strIndexOf](searchElement, fromIndex);
|
|
582
|
-
}
|
|
583
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
584
|
-
var from = fromIndex || 0;
|
|
585
|
-
try {
|
|
586
|
-
for (var lp = Math.max(from >= 0 ? from : len - Math.abs(from), 0); lp < len; lp++) {
|
|
587
|
-
if (lp in arr && arr[lp] === searchElement) {
|
|
588
|
-
return lp;
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
catch (e) {
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
return -1;
|
|
596
|
-
}
|
|
597
|
-
function arrMap(arr, callbackfn, thisArg) {
|
|
598
|
-
var results;
|
|
599
|
-
if (arr) {
|
|
600
|
-
if (arr[strMap]) {
|
|
601
|
-
return arr[strMap](callbackfn, thisArg);
|
|
602
|
-
}
|
|
603
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
604
|
-
var _this = thisArg || arr;
|
|
605
|
-
results = new Array(len);
|
|
606
|
-
try {
|
|
607
|
-
for (var lp = 0; lp < len; lp++) {
|
|
608
|
-
if (lp in arr) {
|
|
609
|
-
results[lp] = callbackfn[_DYN_CALL ](_this, arr[lp], arr);
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
catch (e) {
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
return results;
|
|
617
|
-
}
|
|
618
|
-
function arrReduce(arr, callbackfn, initialValue) {
|
|
619
|
-
var value;
|
|
620
|
-
if (arr) {
|
|
621
|
-
if (arr[strReduce]) {
|
|
622
|
-
return arr[strReduce](callbackfn, initialValue);
|
|
623
|
-
}
|
|
624
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
625
|
-
var lp = 0;
|
|
626
|
-
if (arguments[_DYN_LENGTH$2 ] >= 3) {
|
|
627
|
-
value = arguments[2];
|
|
628
|
-
}
|
|
629
|
-
else {
|
|
630
|
-
while (lp < len && !(lp in arr)) {
|
|
631
|
-
lp++;
|
|
632
|
-
}
|
|
633
|
-
value = arr[lp++];
|
|
634
|
-
}
|
|
635
|
-
while (lp < len) {
|
|
636
|
-
if (lp in arr) {
|
|
637
|
-
value = callbackfn(value, arr[lp], lp, arr);
|
|
638
|
-
}
|
|
639
|
-
lp++;
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
return value;
|
|
643
|
-
}
|
|
644
|
-
function strTrim(str) {
|
|
645
|
-
if (str) {
|
|
646
|
-
str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str[_DYN_REPLACE$1 ] ? str[_DYN_REPLACE$1 ](/^\s+|\s+$/g, STR_EMPTY) : str);
|
|
647
|
-
}
|
|
648
|
-
return str;
|
|
649
|
-
}
|
|
650
|
-
var _objKeysHasDontEnumBug = !({ toString: null }).propertyIsEnumerable("toString");
|
|
651
|
-
var _objKeysDontEnums = [
|
|
652
|
-
"toString",
|
|
653
|
-
"toLocaleString",
|
|
654
|
-
"valueOf",
|
|
655
|
-
"hasOwnProperty",
|
|
656
|
-
"isPrototypeOf",
|
|
657
|
-
"propertyIsEnumerable",
|
|
658
|
-
"constructor"
|
|
659
|
-
];
|
|
660
|
-
function objKeys(obj) {
|
|
661
|
-
var objType = typeof obj;
|
|
662
|
-
if (objType !== strShimFunction && (objType !== strShimObject || obj === null)) {
|
|
663
|
-
throwTypeError("objKeys called on non-object");
|
|
664
|
-
}
|
|
665
|
-
if (!_objKeysHasDontEnumBug && _objKeys) {
|
|
666
|
-
return _objKeys(obj);
|
|
667
|
-
}
|
|
668
|
-
var result = [];
|
|
669
|
-
for (var prop in obj) {
|
|
670
|
-
if (obj && ObjHasOwnProperty[_DYN_CALL ](obj, prop)) {
|
|
671
|
-
result[_DYN_PUSH$1 ](prop);
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
if (_objKeysHasDontEnumBug) {
|
|
675
|
-
var dontEnumsLength = _objKeysDontEnums[_DYN_LENGTH$2 ];
|
|
676
|
-
for (var lp = 0; lp < dontEnumsLength; lp++) {
|
|
677
|
-
if (obj && ObjHasOwnProperty[_DYN_CALL ](obj, _objKeysDontEnums[lp])) {
|
|
678
|
-
result[_DYN_PUSH$1 ](_objKeysDontEnums[lp]);
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
return result;
|
|
683
|
-
}
|
|
684
|
-
function objDefineAccessors(target, prop, getProp, setProp) {
|
|
685
|
-
if (_objDefineProperty$1) {
|
|
686
|
-
try {
|
|
687
|
-
var descriptor = {
|
|
688
|
-
enumerable: true,
|
|
689
|
-
configurable: true
|
|
690
|
-
};
|
|
691
|
-
if (getProp) {
|
|
692
|
-
descriptor.get = getProp;
|
|
693
|
-
}
|
|
694
|
-
if (setProp) {
|
|
695
|
-
descriptor.set = setProp;
|
|
696
|
-
}
|
|
697
|
-
_objDefineProperty$1(target, prop, descriptor);
|
|
698
|
-
return true;
|
|
699
|
-
}
|
|
700
|
-
catch (e) {
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
return false;
|
|
704
|
-
}
|
|
705
|
-
function _doNothing(value) {
|
|
706
|
-
return value;
|
|
707
|
-
}
|
|
708
|
-
function deepFreeze(obj) {
|
|
709
|
-
if (_objFreeze) {
|
|
710
|
-
objForEachKey(obj, function (name, value) {
|
|
711
|
-
if (isArray(value) || isObject(value)) {
|
|
712
|
-
_objFreeze(value);
|
|
713
|
-
}
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
return objFreeze(obj);
|
|
717
|
-
}
|
|
718
|
-
var objFreeze = _objFreeze || _doNothing;
|
|
719
718
|
function dateNow() {
|
|
720
719
|
var dt = Date;
|
|
721
720
|
return dt.now ? dt.now() : new dt().getTime();
|
|
722
721
|
}
|
|
723
|
-
function getExceptionName(object) {
|
|
724
|
-
if (isError(object)) {
|
|
725
|
-
return object[_DYN_NAME$1 ];
|
|
726
|
-
}
|
|
727
|
-
return STR_EMPTY;
|
|
728
|
-
}
|
|
729
722
|
function setValue(target, field, value, valChk, srcChk) {
|
|
730
723
|
var theValue = value;
|
|
731
724
|
if (target) {
|
|
@@ -740,9 +733,6 @@
|
|
|
740
733
|
function getCfgValue(theValue, defaultValue) {
|
|
741
734
|
return !isNullOrUndefined(theValue) ? theValue : defaultValue;
|
|
742
735
|
}
|
|
743
|
-
function isTruthy(value) {
|
|
744
|
-
return !!value;
|
|
745
|
-
}
|
|
746
736
|
function _createProxyFunction(source, funcName) {
|
|
747
737
|
var srcFunc = null;
|
|
748
738
|
var src = null;
|
|
@@ -772,7 +762,7 @@
|
|
|
772
762
|
function objExtend(obj1, obj2, obj3, obj4, obj5, obj6) {
|
|
773
763
|
var theArgs = arguments;
|
|
774
764
|
var extended = theArgs[0] || {};
|
|
775
|
-
var argLen = theArgs[_DYN_LENGTH$
|
|
765
|
+
var argLen = theArgs[_DYN_LENGTH$1 ];
|
|
776
766
|
var deep = false;
|
|
777
767
|
var idx = 1;
|
|
778
768
|
if (argLen > 0 && isBoolean(extended)) {
|
|
@@ -801,122 +791,54 @@
|
|
|
801
791
|
clone = [];
|
|
802
792
|
}
|
|
803
793
|
}
|
|
804
|
-
else if (!isPlainObject(clone)) {
|
|
805
|
-
clone = {};
|
|
806
|
-
}
|
|
807
|
-
newValue = objExtend(deep, clone, newValue);
|
|
808
|
-
}
|
|
809
|
-
if (newValue !== undefined) {
|
|
810
|
-
extended[prop] = newValue;
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
return extended;
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
function createEnumStyle(values) {
|
|
818
|
-
var enumClass = {};
|
|
819
|
-
objForEachKey(values, function (field, value) {
|
|
820
|
-
enumClass[field] = value;
|
|
821
|
-
enumClass[value] = field;
|
|
822
|
-
});
|
|
823
|
-
return deepFreeze(enumClass);
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
var strWindow = "window";
|
|
827
|
-
var strDocument = "document";
|
|
828
|
-
var strDocumentMode = "documentMode";
|
|
829
|
-
var strNavigator = "navigator";
|
|
830
|
-
var strLocation = "location";
|
|
831
|
-
var strConsole = "console";
|
|
832
|
-
var strPerformance = "performance";
|
|
833
|
-
var strJSON = "JSON";
|
|
834
|
-
var strCrypto = "crypto";
|
|
835
|
-
var strMsCrypto = "msCrypto";
|
|
836
|
-
var strMsie = "msie";
|
|
837
|
-
var strTrident = "trident/";
|
|
838
|
-
var _isTrident = null;
|
|
839
|
-
var _navUserAgentCheck = null;
|
|
840
|
-
var _enableMocks = false;
|
|
841
|
-
var _beaconsSupported = null;
|
|
842
|
-
function getGlobalInst(name) {
|
|
843
|
-
var gbl = getGlobal();
|
|
844
|
-
if (gbl && gbl[name]) {
|
|
845
|
-
return gbl[name];
|
|
846
|
-
}
|
|
847
|
-
if (name === strWindow && hasWindow()) {
|
|
848
|
-
return window;
|
|
849
|
-
}
|
|
850
|
-
return null;
|
|
851
|
-
}
|
|
852
|
-
function hasWindow() {
|
|
853
|
-
return Boolean(typeof window === strShimObject && window);
|
|
854
|
-
}
|
|
855
|
-
function getWindow() {
|
|
856
|
-
if (hasWindow()) {
|
|
857
|
-
return window;
|
|
858
|
-
}
|
|
859
|
-
return getGlobalInst(strWindow);
|
|
860
|
-
}
|
|
861
|
-
function hasDocument() {
|
|
862
|
-
return Boolean(typeof document === strShimObject && document);
|
|
863
|
-
}
|
|
864
|
-
function getDocument() {
|
|
865
|
-
if (hasDocument()) {
|
|
866
|
-
return document;
|
|
867
|
-
}
|
|
868
|
-
return getGlobalInst(strDocument);
|
|
869
|
-
}
|
|
870
|
-
function hasNavigator() {
|
|
871
|
-
return Boolean(typeof navigator === strShimObject && navigator);
|
|
872
|
-
}
|
|
873
|
-
function getNavigator() {
|
|
874
|
-
if (hasNavigator()) {
|
|
875
|
-
return navigator;
|
|
876
|
-
}
|
|
877
|
-
return getGlobalInst(strNavigator);
|
|
878
|
-
}
|
|
879
|
-
function getLocation(checkForMock) {
|
|
880
|
-
if (checkForMock && _enableMocks) {
|
|
881
|
-
var mockLocation = getGlobalInst("__mockLocation");
|
|
882
|
-
if (mockLocation) {
|
|
883
|
-
return mockLocation;
|
|
794
|
+
else if (!isPlainObject(clone)) {
|
|
795
|
+
clone = {};
|
|
796
|
+
}
|
|
797
|
+
newValue = objExtend(deep, clone, newValue);
|
|
798
|
+
}
|
|
799
|
+
if (newValue !== undefined) {
|
|
800
|
+
extended[prop] = newValue;
|
|
801
|
+
}
|
|
884
802
|
}
|
|
885
803
|
}
|
|
886
|
-
|
|
887
|
-
return location;
|
|
888
|
-
}
|
|
889
|
-
return getGlobalInst(strLocation);
|
|
804
|
+
return extended;
|
|
890
805
|
}
|
|
806
|
+
|
|
807
|
+
var strDocumentMode = "documentMode";
|
|
808
|
+
var strConsole = "console";
|
|
809
|
+
var strJSON = "JSON";
|
|
810
|
+
var strCrypto = "crypto";
|
|
811
|
+
var strMsCrypto = "msCrypto";
|
|
812
|
+
var strMsie = "msie";
|
|
813
|
+
var strTrident = "trident/";
|
|
814
|
+
var _isTrident = null;
|
|
815
|
+
var _navUserAgentCheck = null;
|
|
891
816
|
function getConsole() {
|
|
892
817
|
if (typeof console !== strShimUndefined) {
|
|
893
818
|
return console;
|
|
894
819
|
}
|
|
895
|
-
return
|
|
896
|
-
}
|
|
897
|
-
function getPerformance() {
|
|
898
|
-
return getGlobalInst(strPerformance);
|
|
820
|
+
return getInst(strConsole);
|
|
899
821
|
}
|
|
900
822
|
function hasJSON() {
|
|
901
|
-
return Boolean((typeof JSON === strShimObject && JSON) ||
|
|
823
|
+
return Boolean((typeof JSON === strShimObject && JSON) || getInst(strJSON) !== null);
|
|
902
824
|
}
|
|
903
825
|
function getJSON() {
|
|
904
826
|
if (hasJSON()) {
|
|
905
|
-
return JSON ||
|
|
827
|
+
return JSON || getInst(strJSON);
|
|
906
828
|
}
|
|
907
829
|
return null;
|
|
908
830
|
}
|
|
909
831
|
function getCrypto() {
|
|
910
|
-
return
|
|
832
|
+
return getInst(strCrypto);
|
|
911
833
|
}
|
|
912
834
|
function getMsCrypto() {
|
|
913
|
-
return
|
|
835
|
+
return getInst(strMsCrypto);
|
|
914
836
|
}
|
|
915
837
|
function isIE() {
|
|
916
838
|
var nav = getNavigator();
|
|
917
839
|
if (nav && (nav[_DYN_USER_AGENT ] !== _navUserAgentCheck || _isTrident === null)) {
|
|
918
840
|
_navUserAgentCheck = nav[_DYN_USER_AGENT ];
|
|
919
|
-
var userAgent = (_navUserAgentCheck || STR_EMPTY)[_DYN_TO_LOWER_CASE
|
|
841
|
+
var userAgent = (_navUserAgentCheck || STR_EMPTY)[_DYN_TO_LOWER_CASE ]();
|
|
920
842
|
_isTrident = (strContains(userAgent, strMsie) || strContains(userAgent, strTrident));
|
|
921
843
|
}
|
|
922
844
|
return _isTrident;
|
|
@@ -925,9 +847,9 @@
|
|
|
925
847
|
if (userAgentStr === void 0) { userAgentStr = null; }
|
|
926
848
|
if (!userAgentStr) {
|
|
927
849
|
var navigator_1 = getNavigator() || {};
|
|
928
|
-
userAgentStr = navigator_1 ? (navigator_1[_DYN_USER_AGENT ] || STR_EMPTY)[_DYN_TO_LOWER_CASE
|
|
850
|
+
userAgentStr = navigator_1 ? (navigator_1[_DYN_USER_AGENT ] || STR_EMPTY)[_DYN_TO_LOWER_CASE ]() : STR_EMPTY;
|
|
929
851
|
}
|
|
930
|
-
var ua = (userAgentStr || STR_EMPTY)[_DYN_TO_LOWER_CASE
|
|
852
|
+
var ua = (userAgentStr || STR_EMPTY)[_DYN_TO_LOWER_CASE ]();
|
|
931
853
|
if (strContains(ua, strMsie)) {
|
|
932
854
|
var doc = getDocument() || {};
|
|
933
855
|
return Math.max(parseInt(ua[_DYN_SPLIT ](strMsie)[1]), (doc[strDocumentMode] || 0));
|
|
@@ -940,39 +862,6 @@
|
|
|
940
862
|
}
|
|
941
863
|
return null;
|
|
942
864
|
}
|
|
943
|
-
function dumpObj(object) {
|
|
944
|
-
var objectTypeDump = Object[strShimPrototype].toString[_DYN_CALL ](object);
|
|
945
|
-
var propertyValueDump = STR_EMPTY;
|
|
946
|
-
if (objectTypeDump === "[object Error]") {
|
|
947
|
-
propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object[_DYN_NAME$1 ] + "'";
|
|
948
|
-
}
|
|
949
|
-
else if (hasJSON()) {
|
|
950
|
-
propertyValueDump = getJSON().stringify(object);
|
|
951
|
-
}
|
|
952
|
-
return objectTypeDump + propertyValueDump;
|
|
953
|
-
}
|
|
954
|
-
function isBeaconsSupported() {
|
|
955
|
-
if (_beaconsSupported === null) {
|
|
956
|
-
_beaconsSupported = hasNavigator() && Boolean(getNavigator().sendBeacon);
|
|
957
|
-
}
|
|
958
|
-
return _beaconsSupported;
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
var _aiNamespace = null;
|
|
962
|
-
function _getExtensionNamespace() {
|
|
963
|
-
var target = getGlobalInst("Microsoft");
|
|
964
|
-
if (target) {
|
|
965
|
-
_aiNamespace = target["ApplicationInsights"];
|
|
966
|
-
}
|
|
967
|
-
return _aiNamespace;
|
|
968
|
-
}
|
|
969
|
-
function getDebugExt(config) {
|
|
970
|
-
var ns = _aiNamespace;
|
|
971
|
-
if (!ns && config.disableDbgExt !== true) {
|
|
972
|
-
ns = _aiNamespace || _getExtensionNamespace();
|
|
973
|
-
}
|
|
974
|
-
return ns ? ns["ChromeDbgExt"] : null;
|
|
975
|
-
}
|
|
976
865
|
|
|
977
866
|
var AiNonUserActionablePrefix = "AI (Internal): ";
|
|
978
867
|
var AiUserActionablePrefix = "AI: ";
|
|
@@ -1139,14 +1028,13 @@
|
|
|
1139
1028
|
var PerfEvent = /** @class */ (function () {
|
|
1140
1029
|
function PerfEvent(name, payloadDetails, isAsync) {
|
|
1141
1030
|
var _self = this;
|
|
1142
|
-
var accessorDefined = false;
|
|
1143
1031
|
_self.start = dateNow();
|
|
1144
1032
|
_self[_DYN_NAME$1 ] = name;
|
|
1145
1033
|
_self[_DYN_IS_ASYNC ] = isAsync;
|
|
1146
1034
|
_self[_DYN_IS_CHILD_EVT ] = function () { return false; };
|
|
1147
1035
|
if (isFunction(payloadDetails)) {
|
|
1148
1036
|
var theDetails_1;
|
|
1149
|
-
|
|
1037
|
+
objDefineAccessors(_self, "payload", function () {
|
|
1150
1038
|
if (!theDetails_1 && isFunction(payloadDetails)) {
|
|
1151
1039
|
theDetails_1 = payloadDetails();
|
|
1152
1040
|
payloadDetails = null;
|
|
@@ -1184,7 +1072,7 @@
|
|
|
1184
1072
|
var childTime = 0;
|
|
1185
1073
|
var childEvts = _self[_DYN_GET_CTX ](PerfEvent[strChildrenContextKey]);
|
|
1186
1074
|
if (isArray(childEvts)) {
|
|
1187
|
-
for (var lp = 0; lp < childEvts[_DYN_LENGTH$
|
|
1075
|
+
for (var lp = 0; lp < childEvts[_DYN_LENGTH$1 ]; lp++) {
|
|
1188
1076
|
var childEvt = childEvts[lp];
|
|
1189
1077
|
if (childEvt) {
|
|
1190
1078
|
childTime += childEvt[_DYN_TIME ];
|
|
@@ -1194,9 +1082,6 @@
|
|
|
1194
1082
|
_self[_DYN_TIME ] = dateNow() - _self.start;
|
|
1195
1083
|
_self.exTime = _self[_DYN_TIME ] - childTime;
|
|
1196
1084
|
_self[_DYN_COMPLETE ] = function () { };
|
|
1197
|
-
if (!accessorDefined && isFunction(payloadDetails)) {
|
|
1198
|
-
_self.payload = payloadDetails();
|
|
1199
|
-
}
|
|
1200
1085
|
};
|
|
1201
1086
|
}
|
|
1202
1087
|
PerfEvent.ParentContextKey = "parent";
|
|
@@ -1268,12 +1153,6 @@
|
|
|
1268
1153
|
catch (e) {
|
|
1269
1154
|
}
|
|
1270
1155
|
}
|
|
1271
|
-
function randomValue(maxValue) {
|
|
1272
|
-
if (maxValue > 0) {
|
|
1273
|
-
return Math.floor((random32() / MaxUInt32) * (maxValue + 1)) >>> 0;
|
|
1274
|
-
}
|
|
1275
|
-
return 0;
|
|
1276
|
-
}
|
|
1277
1156
|
function random32(signed) {
|
|
1278
1157
|
var value = 0;
|
|
1279
1158
|
var c = getCrypto() || getMsCrypto();
|
|
@@ -1294,14 +1173,6 @@
|
|
|
1294
1173
|
}
|
|
1295
1174
|
return value;
|
|
1296
1175
|
}
|
|
1297
|
-
function mwcRandomSeed(value) {
|
|
1298
|
-
if (!value) {
|
|
1299
|
-
_autoSeedMwc();
|
|
1300
|
-
}
|
|
1301
|
-
else {
|
|
1302
|
-
_mwcSeed(value);
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
1176
|
function mwcRandom32(signed) {
|
|
1306
1177
|
_mwcZ = (36969 * (_mwcZ & 0xFFFF) + (_mwcZ >> 16)) & MaxUInt32;
|
|
1307
1178
|
_mwcW = (18000 * (_mwcW & 0xFFFF) + (_mwcW >> 16)) & MaxUInt32;
|
|
@@ -1317,7 +1188,7 @@
|
|
|
1317
1188
|
var number = random32() >>> 0;
|
|
1318
1189
|
var chars = 0;
|
|
1319
1190
|
var result = STR_EMPTY;
|
|
1320
|
-
while (result[_DYN_LENGTH$
|
|
1191
|
+
while (result[_DYN_LENGTH$1 ] < maxLength) {
|
|
1321
1192
|
chars++;
|
|
1322
1193
|
result += base64chars.charAt(number & 0x3F);
|
|
1323
1194
|
number >>>= 6;
|
|
@@ -1330,7 +1201,7 @@
|
|
|
1330
1201
|
}
|
|
1331
1202
|
|
|
1332
1203
|
var _objDefineProperty = ObjDefineProperty;
|
|
1333
|
-
var version = "3.0.0-beta.2208-
|
|
1204
|
+
var version = "3.0.0-beta.2208-16";
|
|
1334
1205
|
var instanceName = "." + newId(6);
|
|
1335
1206
|
var _dataUid = 0;
|
|
1336
1207
|
function _createAccessor(target, prop, value) {
|
|
@@ -1401,457 +1272,6 @@
|
|
|
1401
1272
|
return data;
|
|
1402
1273
|
}
|
|
1403
1274
|
|
|
1404
|
-
var strToGMTString = "toGMTString";
|
|
1405
|
-
var strToUTCString = "toUTCString";
|
|
1406
|
-
var strCookie = "cookie";
|
|
1407
|
-
var strExpires = "expires";
|
|
1408
|
-
var strEnabled = "enabled";
|
|
1409
|
-
var strIsCookieUseDisabled = "isCookieUseDisabled";
|
|
1410
|
-
var strDisableCookiesUsage = "disableCookiesUsage";
|
|
1411
|
-
var strConfigCookieMgr = "_ckMgr";
|
|
1412
|
-
var _supportsCookies = null;
|
|
1413
|
-
var _allowUaSameSite = null;
|
|
1414
|
-
var _parsedCookieValue = null;
|
|
1415
|
-
var _doc = getDocument();
|
|
1416
|
-
var _cookieCache = {};
|
|
1417
|
-
var _globalCookieConfig = {};
|
|
1418
|
-
function _gblCookieMgr(config, logger) {
|
|
1419
|
-
var inst = createCookieMgr[strConfigCookieMgr] || _globalCookieConfig[strConfigCookieMgr];
|
|
1420
|
-
if (!inst) {
|
|
1421
|
-
inst = createCookieMgr[strConfigCookieMgr] = createCookieMgr(config, logger);
|
|
1422
|
-
_globalCookieConfig[strConfigCookieMgr] = inst;
|
|
1423
|
-
}
|
|
1424
|
-
return inst;
|
|
1425
|
-
}
|
|
1426
|
-
function _isMgrEnabled(cookieMgr) {
|
|
1427
|
-
if (cookieMgr) {
|
|
1428
|
-
return cookieMgr.isEnabled();
|
|
1429
|
-
}
|
|
1430
|
-
return true;
|
|
1431
|
-
}
|
|
1432
|
-
function _createCookieMgrConfig(rootConfig) {
|
|
1433
|
-
var cookieMgrCfg = rootConfig[_DYN_COOKIE_CFG ] = rootConfig[_DYN_COOKIE_CFG ] || {};
|
|
1434
|
-
setValue(cookieMgrCfg, "domain", rootConfig.cookieDomain, isNotNullOrUndefined, isNullOrUndefined);
|
|
1435
|
-
setValue(cookieMgrCfg, "path", rootConfig.cookiePath || "/", null, isNullOrUndefined);
|
|
1436
|
-
if (isNullOrUndefined(cookieMgrCfg[strEnabled])) {
|
|
1437
|
-
var cookieEnabled = void 0;
|
|
1438
|
-
if (!isUndefined(rootConfig[strIsCookieUseDisabled])) {
|
|
1439
|
-
cookieEnabled = !rootConfig[strIsCookieUseDisabled];
|
|
1440
|
-
}
|
|
1441
|
-
if (!isUndefined(rootConfig[strDisableCookiesUsage])) {
|
|
1442
|
-
cookieEnabled = !rootConfig[strDisableCookiesUsage];
|
|
1443
|
-
}
|
|
1444
|
-
cookieMgrCfg[strEnabled] = cookieEnabled;
|
|
1445
|
-
}
|
|
1446
|
-
return cookieMgrCfg;
|
|
1447
|
-
}
|
|
1448
|
-
function createCookieMgr(rootConfig, logger) {
|
|
1449
|
-
var _a;
|
|
1450
|
-
var cookieMgrConfig = _createCookieMgrConfig(rootConfig || _globalCookieConfig);
|
|
1451
|
-
var _path = cookieMgrConfig.path || "/";
|
|
1452
|
-
var _domain = cookieMgrConfig.domain;
|
|
1453
|
-
var _enabled = cookieMgrConfig[strEnabled] !== false;
|
|
1454
|
-
var cookieMgr = (_a = {
|
|
1455
|
-
isEnabled: function () {
|
|
1456
|
-
var enabled = _enabled && areCookiesSupported(logger);
|
|
1457
|
-
var gblManager = _globalCookieConfig[strConfigCookieMgr];
|
|
1458
|
-
if (enabled && gblManager && cookieMgr !== gblManager) {
|
|
1459
|
-
enabled = _isMgrEnabled(gblManager);
|
|
1460
|
-
}
|
|
1461
|
-
return enabled;
|
|
1462
|
-
}
|
|
1463
|
-
},
|
|
1464
|
-
_a[_DYN_SET_ENABLED ] = function (value) {
|
|
1465
|
-
_enabled = value !== false;
|
|
1466
|
-
},
|
|
1467
|
-
_a.set = function (name, value, maxAgeSec, domain, path) {
|
|
1468
|
-
var result = false;
|
|
1469
|
-
if (_isMgrEnabled(cookieMgr)) {
|
|
1470
|
-
var values = {};
|
|
1471
|
-
var theValue = strTrim(value || STR_EMPTY);
|
|
1472
|
-
var idx = theValue[_DYN_INDEX_OF ](";");
|
|
1473
|
-
if (idx !== -1) {
|
|
1474
|
-
theValue = strTrim(value[_DYN_SUBSTRING$1 ](0, idx));
|
|
1475
|
-
values = _extractParts(value[_DYN_SUBSTRING$1 ](idx + 1));
|
|
1476
|
-
}
|
|
1477
|
-
setValue(values, "domain", domain || _domain, isTruthy, isUndefined);
|
|
1478
|
-
if (!isNullOrUndefined(maxAgeSec)) {
|
|
1479
|
-
var _isIE = isIE();
|
|
1480
|
-
if (isUndefined(values[strExpires])) {
|
|
1481
|
-
var nowMs = dateNow();
|
|
1482
|
-
var expireMs = nowMs + (maxAgeSec * 1000);
|
|
1483
|
-
if (expireMs > 0) {
|
|
1484
|
-
var expiry = new Date();
|
|
1485
|
-
expiry.setTime(expireMs);
|
|
1486
|
-
setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY, isTruthy);
|
|
1487
|
-
}
|
|
1488
|
-
}
|
|
1489
|
-
if (!_isIE) {
|
|
1490
|
-
setValue(values, "max-age", STR_EMPTY + maxAgeSec, null, isUndefined);
|
|
1491
|
-
}
|
|
1492
|
-
}
|
|
1493
|
-
var location_1 = getLocation();
|
|
1494
|
-
if (location_1 && location_1.protocol === "https:") {
|
|
1495
|
-
setValue(values, "secure", null, null, isUndefined);
|
|
1496
|
-
if (_allowUaSameSite === null) {
|
|
1497
|
-
_allowUaSameSite = !uaDisallowsSameSiteNone((getNavigator() || {})[_DYN_USER_AGENT ]);
|
|
1498
|
-
}
|
|
1499
|
-
if (_allowUaSameSite) {
|
|
1500
|
-
setValue(values, "SameSite", "None", null, isUndefined);
|
|
1501
|
-
}
|
|
1502
|
-
}
|
|
1503
|
-
setValue(values, "path", path || _path, null, isUndefined);
|
|
1504
|
-
var setCookieFn = cookieMgrConfig.setCookie || _setCookieValue;
|
|
1505
|
-
setCookieFn(name, _formatCookieValue(theValue, values));
|
|
1506
|
-
result = true;
|
|
1507
|
-
}
|
|
1508
|
-
return result;
|
|
1509
|
-
},
|
|
1510
|
-
_a.get = function (name) {
|
|
1511
|
-
var value = STR_EMPTY;
|
|
1512
|
-
if (_isMgrEnabled(cookieMgr)) {
|
|
1513
|
-
value = (cookieMgrConfig.getCookie || _getCookieValue)(name);
|
|
1514
|
-
}
|
|
1515
|
-
return value;
|
|
1516
|
-
},
|
|
1517
|
-
_a.del = function (name, path) {
|
|
1518
|
-
var result = false;
|
|
1519
|
-
if (_isMgrEnabled(cookieMgr)) {
|
|
1520
|
-
result = cookieMgr.purge(name, path);
|
|
1521
|
-
}
|
|
1522
|
-
return result;
|
|
1523
|
-
},
|
|
1524
|
-
_a.purge = function (name, path) {
|
|
1525
|
-
var _a;
|
|
1526
|
-
var result = false;
|
|
1527
|
-
if (areCookiesSupported(logger)) {
|
|
1528
|
-
var values = (_a = {},
|
|
1529
|
-
_a["path"] = path ? path : "/",
|
|
1530
|
-
_a[strExpires] = "Thu, 01 Jan 1970 00:00:01 GMT",
|
|
1531
|
-
_a);
|
|
1532
|
-
if (!isIE()) {
|
|
1533
|
-
values["max-age"] = "0";
|
|
1534
|
-
}
|
|
1535
|
-
var delCookie = cookieMgrConfig.delCookie || _setCookieValue;
|
|
1536
|
-
delCookie(name, _formatCookieValue(STR_EMPTY, values));
|
|
1537
|
-
result = true;
|
|
1538
|
-
}
|
|
1539
|
-
return result;
|
|
1540
|
-
},
|
|
1541
|
-
_a);
|
|
1542
|
-
cookieMgr[strConfigCookieMgr] = cookieMgr;
|
|
1543
|
-
return cookieMgr;
|
|
1544
|
-
}
|
|
1545
|
-
function areCookiesSupported(logger) {
|
|
1546
|
-
if (_supportsCookies === null) {
|
|
1547
|
-
_supportsCookies = false;
|
|
1548
|
-
try {
|
|
1549
|
-
var doc = _doc || {};
|
|
1550
|
-
_supportsCookies = doc[strCookie] !== undefined;
|
|
1551
|
-
}
|
|
1552
|
-
catch (e) {
|
|
1553
|
-
_throwInternal(logger, 2 , 68 , "Cannot access document.cookie - " + getExceptionName(e), { exception: dumpObj(e) });
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
return _supportsCookies;
|
|
1557
|
-
}
|
|
1558
|
-
function _extractParts(theValue) {
|
|
1559
|
-
var values = {};
|
|
1560
|
-
if (theValue && theValue[_DYN_LENGTH$2 ]) {
|
|
1561
|
-
var parts = strTrim(theValue)[_DYN_SPLIT ](";");
|
|
1562
|
-
arrForEach(parts, function (thePart) {
|
|
1563
|
-
thePart = strTrim(thePart || STR_EMPTY);
|
|
1564
|
-
if (thePart) {
|
|
1565
|
-
var idx = thePart[_DYN_INDEX_OF ]("=");
|
|
1566
|
-
if (idx === -1) {
|
|
1567
|
-
values[thePart] = null;
|
|
1568
|
-
}
|
|
1569
|
-
else {
|
|
1570
|
-
values[strTrim(thePart[_DYN_SUBSTRING$1 ](0, idx))] = strTrim(thePart[_DYN_SUBSTRING$1 ](idx + 1));
|
|
1571
|
-
}
|
|
1572
|
-
}
|
|
1573
|
-
});
|
|
1574
|
-
}
|
|
1575
|
-
return values;
|
|
1576
|
-
}
|
|
1577
|
-
function _formatDate(theDate, func) {
|
|
1578
|
-
if (isFunction(theDate[func])) {
|
|
1579
|
-
return theDate[func]();
|
|
1580
|
-
}
|
|
1581
|
-
return null;
|
|
1582
|
-
}
|
|
1583
|
-
function _formatCookieValue(value, values) {
|
|
1584
|
-
var cookieValue = value || STR_EMPTY;
|
|
1585
|
-
objForEachKey(values, function (name, theValue) {
|
|
1586
|
-
cookieValue += "; " + name + (!isNullOrUndefined(theValue) ? "=" + theValue : STR_EMPTY);
|
|
1587
|
-
});
|
|
1588
|
-
return cookieValue;
|
|
1589
|
-
}
|
|
1590
|
-
function _getCookieValue(name) {
|
|
1591
|
-
var cookieValue = STR_EMPTY;
|
|
1592
|
-
if (_doc) {
|
|
1593
|
-
var theCookie = _doc[strCookie] || STR_EMPTY;
|
|
1594
|
-
if (_parsedCookieValue !== theCookie) {
|
|
1595
|
-
_cookieCache = _extractParts(theCookie);
|
|
1596
|
-
_parsedCookieValue = theCookie;
|
|
1597
|
-
}
|
|
1598
|
-
cookieValue = strTrim(_cookieCache[name] || STR_EMPTY);
|
|
1599
|
-
}
|
|
1600
|
-
return cookieValue;
|
|
1601
|
-
}
|
|
1602
|
-
function _setCookieValue(name, cookieValue) {
|
|
1603
|
-
if (_doc) {
|
|
1604
|
-
_doc[strCookie] = name + "=" + cookieValue;
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
function uaDisallowsSameSiteNone(userAgent) {
|
|
1608
|
-
if (!isString(userAgent)) {
|
|
1609
|
-
return false;
|
|
1610
|
-
}
|
|
1611
|
-
if (strContains(userAgent, "CPU iPhone OS 12") || strContains(userAgent, "iPad; CPU OS 12")) {
|
|
1612
|
-
return true;
|
|
1613
|
-
}
|
|
1614
|
-
if (strContains(userAgent, "Macintosh; Intel Mac OS X 10_14") && strContains(userAgent, "Version/") && strContains(userAgent, "Safari")) {
|
|
1615
|
-
return true;
|
|
1616
|
-
}
|
|
1617
|
-
if (strContains(userAgent, "Macintosh; Intel Mac OS X 10_14") && strEndsWith(userAgent, "AppleWebKit/605.1.15 (KHTML, like Gecko)")) {
|
|
1618
|
-
return true;
|
|
1619
|
-
}
|
|
1620
|
-
if (strContains(userAgent, "Chrome/5") || strContains(userAgent, "Chrome/6")) {
|
|
1621
|
-
return true;
|
|
1622
|
-
}
|
|
1623
|
-
if (strContains(userAgent, "UnrealEngine") && !strContains(userAgent, "Chrome")) {
|
|
1624
|
-
return true;
|
|
1625
|
-
}
|
|
1626
|
-
if (strContains(userAgent, "UCBrowser/12") || strContains(userAgent, "UCBrowser/11")) {
|
|
1627
|
-
return true;
|
|
1628
|
-
}
|
|
1629
|
-
return false;
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
var strOnPrefix = "on";
|
|
1633
|
-
var strAttachEvent = "attachEvent";
|
|
1634
|
-
var strAddEventHelper = "addEventListener";
|
|
1635
|
-
var strEvents = "events";
|
|
1636
|
-
createUniqueNamespace("aiEvtPageHide");
|
|
1637
|
-
createUniqueNamespace("aiEvtPageShow");
|
|
1638
|
-
var rRemoveEmptyNs = /\.[\.]+/g;
|
|
1639
|
-
var rRemoveTrailingEmptyNs = /[\.]+$/;
|
|
1640
|
-
var _guid = 1;
|
|
1641
|
-
var elmNodeData = createElmNodeData("events");
|
|
1642
|
-
var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
|
|
1643
|
-
function _normalizeNamespace(name) {
|
|
1644
|
-
if (name && name[_DYN_REPLACE$1 ]) {
|
|
1645
|
-
return name.replace(/^\s*\.*|\.*\s*$/g, STR_EMPTY);
|
|
1646
|
-
}
|
|
1647
|
-
return name;
|
|
1648
|
-
}
|
|
1649
|
-
function _getEvtNamespace(eventName, evtNamespace) {
|
|
1650
|
-
var _a;
|
|
1651
|
-
if (evtNamespace) {
|
|
1652
|
-
var theNamespace_1 = STR_EMPTY;
|
|
1653
|
-
if (isArray(evtNamespace)) {
|
|
1654
|
-
theNamespace_1 = STR_EMPTY;
|
|
1655
|
-
arrForEach(evtNamespace, function (name) {
|
|
1656
|
-
name = _normalizeNamespace(name);
|
|
1657
|
-
if (name) {
|
|
1658
|
-
if (name[0] !== ".") {
|
|
1659
|
-
name = "." + name;
|
|
1660
|
-
}
|
|
1661
|
-
theNamespace_1 += name;
|
|
1662
|
-
}
|
|
1663
|
-
});
|
|
1664
|
-
}
|
|
1665
|
-
else {
|
|
1666
|
-
theNamespace_1 = _normalizeNamespace(evtNamespace);
|
|
1667
|
-
}
|
|
1668
|
-
if (theNamespace_1) {
|
|
1669
|
-
if (theNamespace_1[0] !== ".") {
|
|
1670
|
-
theNamespace_1 = "." + theNamespace_1;
|
|
1671
|
-
}
|
|
1672
|
-
eventName = (eventName || STR_EMPTY) + theNamespace_1;
|
|
1673
|
-
}
|
|
1674
|
-
}
|
|
1675
|
-
var parsedEvent = (eventNamespace.exec(eventName || STR_EMPTY) || []);
|
|
1676
|
-
return _a = {},
|
|
1677
|
-
_a[_DYN_TYPE ] = parsedEvent[1],
|
|
1678
|
-
_a.ns = ((parsedEvent[2] || STR_EMPTY).replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, STR_EMPTY)[_DYN_SPLIT ](".").sort()).join("."),
|
|
1679
|
-
_a;
|
|
1680
|
-
}
|
|
1681
|
-
function _getRegisteredEvents(target, evtName, addDefault) {
|
|
1682
|
-
if (addDefault === void 0) { addDefault = true; }
|
|
1683
|
-
var aiEvts = elmNodeData.get(target, strEvents, {}, addDefault);
|
|
1684
|
-
var registeredEvents = aiEvts[evtName];
|
|
1685
|
-
if (!registeredEvents) {
|
|
1686
|
-
registeredEvents = aiEvts[evtName] = [];
|
|
1687
|
-
}
|
|
1688
|
-
return registeredEvents;
|
|
1689
|
-
}
|
|
1690
|
-
function _doAttach(obj, evtName, handlerRef, useCapture) {
|
|
1691
|
-
var result = false;
|
|
1692
|
-
if (obj && evtName && evtName[_DYN_TYPE ] && handlerRef) {
|
|
1693
|
-
if (obj[strAddEventHelper]) {
|
|
1694
|
-
obj[strAddEventHelper](evtName[_DYN_TYPE ], handlerRef, useCapture);
|
|
1695
|
-
result = true;
|
|
1696
|
-
}
|
|
1697
|
-
else if (obj[strAttachEvent]) {
|
|
1698
|
-
obj[strAttachEvent](strOnPrefix + evtName[_DYN_TYPE ], handlerRef);
|
|
1699
|
-
result = true;
|
|
1700
|
-
}
|
|
1701
|
-
}
|
|
1702
|
-
return result;
|
|
1703
|
-
}
|
|
1704
|
-
function eventOn(target, eventName, handlerRef, evtNamespace, useCapture) {
|
|
1705
|
-
var _a;
|
|
1706
|
-
if (useCapture === void 0) { useCapture = false; }
|
|
1707
|
-
var result = false;
|
|
1708
|
-
if (target) {
|
|
1709
|
-
try {
|
|
1710
|
-
var evtName = _getEvtNamespace(eventName, evtNamespace);
|
|
1711
|
-
result = _doAttach(target, evtName, handlerRef, useCapture);
|
|
1712
|
-
if (result && elmNodeData.accept(target)) {
|
|
1713
|
-
var registeredEvent = (_a = {
|
|
1714
|
-
guid: _guid++,
|
|
1715
|
-
evtName: evtName
|
|
1716
|
-
},
|
|
1717
|
-
_a[_DYN_HANDLER ] = handlerRef,
|
|
1718
|
-
_a.capture = useCapture,
|
|
1719
|
-
_a);
|
|
1720
|
-
_getRegisteredEvents(target, evtName.type)[_DYN_PUSH$1 ](registeredEvent);
|
|
1721
|
-
}
|
|
1722
|
-
}
|
|
1723
|
-
catch (e) {
|
|
1724
|
-
}
|
|
1725
|
-
}
|
|
1726
|
-
return result;
|
|
1727
|
-
}
|
|
1728
|
-
function attachEvent(obj, eventNameWithoutOn, handlerRef, useCapture) {
|
|
1729
|
-
if (useCapture === void 0) { useCapture = false; }
|
|
1730
|
-
return eventOn(obj, eventNameWithoutOn, handlerRef, null, useCapture);
|
|
1731
|
-
}
|
|
1732
|
-
function addEventHandler(eventName, callback, evtNamespace) {
|
|
1733
|
-
var result = false;
|
|
1734
|
-
var w = getWindow();
|
|
1735
|
-
if (w) {
|
|
1736
|
-
result = eventOn(w, eventName, callback, evtNamespace);
|
|
1737
|
-
result = eventOn(w["body"], eventName, callback, evtNamespace) || result;
|
|
1738
|
-
}
|
|
1739
|
-
var doc = getDocument();
|
|
1740
|
-
if (doc) {
|
|
1741
|
-
result = eventOn(doc, eventName, callback, evtNamespace) || result;
|
|
1742
|
-
}
|
|
1743
|
-
return result;
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
|
-
var _cookieMgrs = null;
|
|
1747
|
-
var _canUseCookies;
|
|
1748
|
-
function newGuid() {
|
|
1749
|
-
var uuid = generateW3CId();
|
|
1750
|
-
return uuid[_DYN_SUBSTRING$1 ](0, 8) + "-" + uuid[_DYN_SUBSTRING$1 ](8, 12) + "-" + uuid[_DYN_SUBSTRING$1 ](12, 16) + "-" + uuid[_DYN_SUBSTRING$1 ](16, 20) + "-" + uuid[_DYN_SUBSTRING$1 ](20);
|
|
1751
|
-
}
|
|
1752
|
-
function perfNow() {
|
|
1753
|
-
var perf = getPerformance();
|
|
1754
|
-
if (perf && perf.now) {
|
|
1755
|
-
return perf.now();
|
|
1756
|
-
}
|
|
1757
|
-
return dateNow();
|
|
1758
|
-
}
|
|
1759
|
-
function generateW3CId() {
|
|
1760
|
-
var hexValues = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
|
|
1761
|
-
var oct = STR_EMPTY, tmp;
|
|
1762
|
-
for (var a = 0; a < 4; a++) {
|
|
1763
|
-
tmp = random32();
|
|
1764
|
-
oct +=
|
|
1765
|
-
hexValues[tmp & 0xF] +
|
|
1766
|
-
hexValues[tmp >> 4 & 0xF] +
|
|
1767
|
-
hexValues[tmp >> 8 & 0xF] +
|
|
1768
|
-
hexValues[tmp >> 12 & 0xF] +
|
|
1769
|
-
hexValues[tmp >> 16 & 0xF] +
|
|
1770
|
-
hexValues[tmp >> 20 & 0xF] +
|
|
1771
|
-
hexValues[tmp >> 24 & 0xF] +
|
|
1772
|
-
hexValues[tmp >> 28 & 0xF];
|
|
1773
|
-
}
|
|
1774
|
-
var clockSequenceHi = hexValues[8 + (random32() & 0x03) | 0];
|
|
1775
|
-
return oct[_DYN_SUBSTR ](0, 8) + oct[_DYN_SUBSTR ](9, 4) + "4" + oct[_DYN_SUBSTR ](13, 3) + clockSequenceHi + oct[_DYN_SUBSTR ](16, 3) + oct[_DYN_SUBSTR ](19, 12);
|
|
1776
|
-
}
|
|
1777
|
-
var CoreUtils = {
|
|
1778
|
-
_canUseCookies: undefined,
|
|
1779
|
-
isTypeof: isTypeof,
|
|
1780
|
-
isUndefined: isUndefined,
|
|
1781
|
-
isNullOrUndefined: isNullOrUndefined,
|
|
1782
|
-
hasOwnProperty: hasOwnProperty,
|
|
1783
|
-
isFunction: isFunction,
|
|
1784
|
-
isObject: isObject,
|
|
1785
|
-
isDate: isDate,
|
|
1786
|
-
isArray: isArray,
|
|
1787
|
-
isError: isError,
|
|
1788
|
-
isString: isString,
|
|
1789
|
-
isNumber: isNumber,
|
|
1790
|
-
isBoolean: isBoolean,
|
|
1791
|
-
toISOString: toISOString,
|
|
1792
|
-
arrForEach: arrForEach,
|
|
1793
|
-
arrIndexOf: arrIndexOf,
|
|
1794
|
-
arrMap: arrMap,
|
|
1795
|
-
arrReduce: arrReduce,
|
|
1796
|
-
strTrim: strTrim,
|
|
1797
|
-
objCreate: objCreateFn,
|
|
1798
|
-
objKeys: objKeys,
|
|
1799
|
-
objDefineAccessors: objDefineAccessors,
|
|
1800
|
-
addEventHandler: addEventHandler,
|
|
1801
|
-
dateNow: dateNow,
|
|
1802
|
-
isIE: isIE,
|
|
1803
|
-
disableCookies: disableCookies,
|
|
1804
|
-
newGuid: newGuid,
|
|
1805
|
-
perfNow: perfNow,
|
|
1806
|
-
newId: newId,
|
|
1807
|
-
randomValue: randomValue,
|
|
1808
|
-
random32: random32,
|
|
1809
|
-
mwcRandomSeed: mwcRandomSeed,
|
|
1810
|
-
mwcRandom32: mwcRandom32,
|
|
1811
|
-
generateW3CId: generateW3CId
|
|
1812
|
-
};
|
|
1813
|
-
function _legacyCookieMgr(config, logger) {
|
|
1814
|
-
var cookieMgr = _gblCookieMgr(config, logger);
|
|
1815
|
-
var legacyCanUseCookies = CoreUtils._canUseCookies;
|
|
1816
|
-
if (_cookieMgrs === null) {
|
|
1817
|
-
_cookieMgrs = [];
|
|
1818
|
-
_canUseCookies = legacyCanUseCookies;
|
|
1819
|
-
objDefineAccessors(CoreUtils, "_canUseCookies", function () {
|
|
1820
|
-
return _canUseCookies;
|
|
1821
|
-
}, function (value) {
|
|
1822
|
-
_canUseCookies = value;
|
|
1823
|
-
arrForEach(_cookieMgrs, function (mgr) {
|
|
1824
|
-
mgr[_DYN_SET_ENABLED ](value);
|
|
1825
|
-
});
|
|
1826
|
-
});
|
|
1827
|
-
}
|
|
1828
|
-
if (arrIndexOf(_cookieMgrs, cookieMgr) === -1) {
|
|
1829
|
-
_cookieMgrs[_DYN_PUSH$1 ](cookieMgr);
|
|
1830
|
-
}
|
|
1831
|
-
if (isBoolean(legacyCanUseCookies)) {
|
|
1832
|
-
cookieMgr[_DYN_SET_ENABLED ](legacyCanUseCookies);
|
|
1833
|
-
}
|
|
1834
|
-
if (isBoolean(_canUseCookies)) {
|
|
1835
|
-
cookieMgr[_DYN_SET_ENABLED ](_canUseCookies);
|
|
1836
|
-
}
|
|
1837
|
-
return cookieMgr;
|
|
1838
|
-
}
|
|
1839
|
-
function disableCookies() {
|
|
1840
|
-
_legacyCookieMgr()[_DYN_SET_ENABLED ](false);
|
|
1841
|
-
}
|
|
1842
|
-
function canUseCookies(logger) {
|
|
1843
|
-
return _legacyCookieMgr(null, logger).isEnabled();
|
|
1844
|
-
}
|
|
1845
|
-
function getCookie(logger, name) {
|
|
1846
|
-
return _legacyCookieMgr(null, logger).get(name);
|
|
1847
|
-
}
|
|
1848
|
-
function setCookie(logger, name, value, domain) {
|
|
1849
|
-
_legacyCookieMgr(null, logger).set(name, value, null, domain);
|
|
1850
|
-
}
|
|
1851
|
-
function deleteCookie(logger, name) {
|
|
1852
|
-
return _legacyCookieMgr(null, logger).del(name);
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
1275
|
var pluginStateData = createElmNodeData("plugin");
|
|
1856
1276
|
function _getPluginState(plugin) {
|
|
1857
1277
|
return pluginStateData.get(plugin, "state", {}, true);
|
|
@@ -1921,7 +1341,7 @@
|
|
|
1921
1341
|
_nextProxy = nextProxy ? nextProxy[_DYN_GET_NEXT ]() : null;
|
|
1922
1342
|
if (!nextProxy) {
|
|
1923
1343
|
var onComplete = _onComplete;
|
|
1924
|
-
if (onComplete && onComplete[_DYN_LENGTH$
|
|
1344
|
+
if (onComplete && onComplete[_DYN_LENGTH$1 ] > 0) {
|
|
1925
1345
|
arrForEach(onComplete, function (completeDetails) {
|
|
1926
1346
|
try {
|
|
1927
1347
|
completeDetails.func[_DYN_CALL ](completeDetails.self, completeDetails.args);
|
|
@@ -2053,7 +1473,7 @@
|
|
|
2053
1473
|
function createTelemetryProxyChain(plugins, config, core, startAt) {
|
|
2054
1474
|
var firstProxy = null;
|
|
2055
1475
|
var add = startAt ? false : true;
|
|
2056
|
-
if (isArray(plugins) && plugins[_DYN_LENGTH$
|
|
1476
|
+
if (isArray(plugins) && plugins[_DYN_LENGTH$1 ] > 0) {
|
|
2057
1477
|
var lastProxy_1 = null;
|
|
2058
1478
|
arrForEach(plugins, function (thePlugin) {
|
|
2059
1479
|
if (!add && startAt === thePlugin) {
|
|
@@ -2386,7 +1806,7 @@
|
|
|
2386
1806
|
];
|
|
2387
1807
|
function _arrLoop(arr, fn) {
|
|
2388
1808
|
if (arr) {
|
|
2389
|
-
for (var lp = 0; lp < arr[_DYN_LENGTH$
|
|
1809
|
+
for (var lp = 0; lp < arr[_DYN_LENGTH$1 ]; lp++) {
|
|
2390
1810
|
if (fn(arr[lp], lp)) {
|
|
2391
1811
|
break;
|
|
2392
1812
|
}
|
|
@@ -2439,7 +1859,7 @@
|
|
|
2439
1859
|
_a);
|
|
2440
1860
|
var hookCtx = [];
|
|
2441
1861
|
var cbArgs = _createArgs([funcArgs], orgArgs);
|
|
2442
|
-
funcArgs.evt =
|
|
1862
|
+
funcArgs.evt = getInst("event");
|
|
2443
1863
|
function _createArgs(target, theArgs) {
|
|
2444
1864
|
_arrLoop(theArgs, function (arg) {
|
|
2445
1865
|
target[_DYN_PUSH$1 ](arg);
|
|
@@ -2470,7 +1890,7 @@
|
|
|
2470
1890
|
function _getOwner(target, name, checkPrototype) {
|
|
2471
1891
|
var owner = null;
|
|
2472
1892
|
if (target) {
|
|
2473
|
-
if (
|
|
1893
|
+
if (objHasOwnProperty(target, name)) {
|
|
2474
1894
|
owner = target;
|
|
2475
1895
|
}
|
|
2476
1896
|
else if (checkPrototype) {
|
|
@@ -2538,7 +1958,7 @@
|
|
|
2538
1958
|
var _DYN_STOP_PROPAGATION = "stopPropagation";
|
|
2539
1959
|
var _DYN_IS_DISPLAYED = "isDisplayed";
|
|
2540
1960
|
var _DYN_NAME = "name";
|
|
2541
|
-
var _DYN_LENGTH
|
|
1961
|
+
var _DYN_LENGTH = "length";
|
|
2542
1962
|
var _DYN_SHOW_CHILDREN = "showChildren";
|
|
2543
1963
|
var _DYN_DUMP_TO_CONSOLE = "dumpToConsole";
|
|
2544
1964
|
var _DYN_LOG_PROCESS_TELEMETR2 = "logProcessTelemetry";
|
|
@@ -2562,275 +1982,13 @@
|
|
|
2562
1982
|
var _DYN_FOCUS = "focus";
|
|
2563
1983
|
var _DYN_REPLACE = "replace";
|
|
2564
1984
|
var _DYN_SUBSTRING = "substring";
|
|
2565
|
-
var _DYN_TO_STRING$1 = "toString";
|
|
2566
|
-
var _DYN_IS_ERROR = "isError";
|
|
2567
|
-
|
|
2568
|
-
var DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio.com";
|
|
2569
|
-
var DEFAULT_BREEZE_PATH = "/v2/track";
|
|
2570
|
-
var strNotSpecified = "not_specified";
|
|
2571
|
-
|
|
2572
|
-
function createDomEvent(eventName) {
|
|
2573
|
-
var event = null;
|
|
2574
|
-
if (isFunction(Event)) {
|
|
2575
|
-
event = new Event(eventName);
|
|
2576
|
-
}
|
|
2577
|
-
else {
|
|
2578
|
-
var doc = getDocument();
|
|
2579
|
-
if (doc && doc.createEvent) {
|
|
2580
|
-
event = doc.createEvent("Event");
|
|
2581
|
-
event.initEvent(eventName, true, true);
|
|
2582
|
-
}
|
|
2583
|
-
}
|
|
2584
|
-
return event;
|
|
2585
|
-
}
|
|
2586
|
-
|
|
2587
|
-
var _DYN_LENGTH = "length";
|
|
2588
|
-
var _DYN_TO_LOWER_CASE = "toLowerCase";
|
|
2589
1985
|
var _DYN_TO_STRING = "toString";
|
|
2590
|
-
var _DYN_REMOVE_ITEM = "removeItem";
|
|
2591
|
-
|
|
2592
|
-
var strEmpty = "";
|
|
2593
|
-
function stringToBoolOrDefault(str, defaultValue) {
|
|
2594
|
-
if (defaultValue === void 0) { defaultValue = false; }
|
|
2595
|
-
if (str === undefined || str === null) {
|
|
2596
|
-
return defaultValue;
|
|
2597
|
-
}
|
|
2598
|
-
return str.toString()[_DYN_TO_LOWER_CASE ]() === "true";
|
|
2599
|
-
}
|
|
2600
|
-
function msToTimeSpan(totalms) {
|
|
2601
|
-
if (isNaN(totalms) || totalms < 0) {
|
|
2602
|
-
totalms = 0;
|
|
2603
|
-
}
|
|
2604
|
-
totalms = Math.round(totalms);
|
|
2605
|
-
var ms = strEmpty + totalms % 1000;
|
|
2606
|
-
var sec = strEmpty + Math.floor(totalms / 1000) % 60;
|
|
2607
|
-
var min = strEmpty + Math.floor(totalms / (1000 * 60)) % 60;
|
|
2608
|
-
var hour = strEmpty + Math.floor(totalms / (1000 * 60 * 60)) % 24;
|
|
2609
|
-
var days = Math.floor(totalms / (1000 * 60 * 60 * 24));
|
|
2610
|
-
ms = ms[_DYN_LENGTH ] === 1 ? "00" + ms : ms[_DYN_LENGTH ] === 2 ? "0" + ms : ms;
|
|
2611
|
-
sec = sec[_DYN_LENGTH ] < 2 ? "0" + sec : sec;
|
|
2612
|
-
min = min[_DYN_LENGTH ] < 2 ? "0" + min : min;
|
|
2613
|
-
hour = hour[_DYN_LENGTH ] < 2 ? "0" + hour : hour;
|
|
2614
|
-
return (days > 0 ? days + "." : strEmpty) + hour + ":" + min + ":" + sec + "." + ms;
|
|
2615
|
-
}
|
|
2616
|
-
function getExtensionByName(extensions, identifier) {
|
|
2617
|
-
var extension = null;
|
|
2618
|
-
arrForEach(extensions, function (value) {
|
|
2619
|
-
if (value.identifier === identifier) {
|
|
2620
|
-
extension = value;
|
|
2621
|
-
return -1;
|
|
2622
|
-
}
|
|
2623
|
-
});
|
|
2624
|
-
return extension;
|
|
2625
|
-
}
|
|
2626
|
-
function isCrossOriginError(message, url, lineNumber, columnNumber, error) {
|
|
2627
|
-
return !error && isString(message) && (message === "Script error." || message === "Script error");
|
|
2628
|
-
}
|
|
2629
|
-
|
|
2630
|
-
var StorageType = createEnumStyle({
|
|
2631
|
-
LocalStorage: 0 ,
|
|
2632
|
-
SessionStorage: 1
|
|
2633
|
-
});
|
|
2634
|
-
createEnumStyle({
|
|
2635
|
-
AI: 0 ,
|
|
2636
|
-
AI_AND_W3C: 1 ,
|
|
2637
|
-
W3C: 2
|
|
2638
|
-
});
|
|
2639
|
-
|
|
2640
|
-
var _canUseLocalStorage = undefined;
|
|
2641
|
-
var _canUseSessionStorage = undefined;
|
|
2642
|
-
function _getLocalStorageObject() {
|
|
2643
|
-
if (utlCanUseLocalStorage()) {
|
|
2644
|
-
return _getVerifiedStorageObject(StorageType.LocalStorage);
|
|
2645
|
-
}
|
|
2646
|
-
return null;
|
|
2647
|
-
}
|
|
2648
|
-
function _getVerifiedStorageObject(storageType) {
|
|
2649
|
-
try {
|
|
2650
|
-
if (isNullOrUndefined(getGlobal())) {
|
|
2651
|
-
return null;
|
|
2652
|
-
}
|
|
2653
|
-
var uid = (new Date)[_DYN_TO_STRING ]();
|
|
2654
|
-
var storage = getGlobalInst(storageType === StorageType.LocalStorage ? "localStorage" : "sessionStorage");
|
|
2655
|
-
storage.setItem(uid, uid);
|
|
2656
|
-
var fail = storage.getItem(uid) !== uid;
|
|
2657
|
-
storage[_DYN_REMOVE_ITEM ](uid);
|
|
2658
|
-
if (!fail) {
|
|
2659
|
-
return storage;
|
|
2660
|
-
}
|
|
2661
|
-
}
|
|
2662
|
-
catch (exception) {
|
|
2663
|
-
}
|
|
2664
|
-
return null;
|
|
2665
|
-
}
|
|
2666
|
-
function _getSessionStorageObject() {
|
|
2667
|
-
if (utlCanUseSessionStorage()) {
|
|
2668
|
-
return _getVerifiedStorageObject(StorageType.SessionStorage);
|
|
2669
|
-
}
|
|
2670
|
-
return null;
|
|
2671
|
-
}
|
|
2672
|
-
function utlDisableStorage() {
|
|
2673
|
-
_canUseLocalStorage = false;
|
|
2674
|
-
_canUseSessionStorage = false;
|
|
2675
|
-
}
|
|
2676
|
-
function utlCanUseLocalStorage(reset) {
|
|
2677
|
-
if (reset || _canUseLocalStorage === undefined) {
|
|
2678
|
-
_canUseLocalStorage = !!_getVerifiedStorageObject(StorageType.LocalStorage);
|
|
2679
|
-
}
|
|
2680
|
-
return _canUseLocalStorage;
|
|
2681
|
-
}
|
|
2682
|
-
function utlGetLocalStorage(logger, name) {
|
|
2683
|
-
var storage = _getLocalStorageObject();
|
|
2684
|
-
if (storage !== null) {
|
|
2685
|
-
try {
|
|
2686
|
-
return storage.getItem(name);
|
|
2687
|
-
}
|
|
2688
|
-
catch (e) {
|
|
2689
|
-
_canUseLocalStorage = false;
|
|
2690
|
-
_throwInternal(logger, 2 , 1 , "Browser failed read of local storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2691
|
-
}
|
|
2692
|
-
}
|
|
2693
|
-
return null;
|
|
2694
|
-
}
|
|
2695
|
-
function utlSetLocalStorage(logger, name, data) {
|
|
2696
|
-
var storage = _getLocalStorageObject();
|
|
2697
|
-
if (storage !== null) {
|
|
2698
|
-
try {
|
|
2699
|
-
storage.setItem(name, data);
|
|
2700
|
-
return true;
|
|
2701
|
-
}
|
|
2702
|
-
catch (e) {
|
|
2703
|
-
_canUseLocalStorage = false;
|
|
2704
|
-
_throwInternal(logger, 2 , 3 , "Browser failed write to local storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2705
|
-
}
|
|
2706
|
-
}
|
|
2707
|
-
return false;
|
|
2708
|
-
}
|
|
2709
|
-
function utlRemoveStorage(logger, name) {
|
|
2710
|
-
var storage = _getLocalStorageObject();
|
|
2711
|
-
if (storage !== null) {
|
|
2712
|
-
try {
|
|
2713
|
-
storage[_DYN_REMOVE_ITEM ](name);
|
|
2714
|
-
return true;
|
|
2715
|
-
}
|
|
2716
|
-
catch (e) {
|
|
2717
|
-
_canUseLocalStorage = false;
|
|
2718
|
-
_throwInternal(logger, 2 , 5 , "Browser failed removal of local storage item. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2719
|
-
}
|
|
2720
|
-
}
|
|
2721
|
-
return false;
|
|
2722
|
-
}
|
|
2723
|
-
function utlCanUseSessionStorage(reset) {
|
|
2724
|
-
if (reset || _canUseSessionStorage === undefined) {
|
|
2725
|
-
_canUseSessionStorage = !!_getVerifiedStorageObject(StorageType.SessionStorage);
|
|
2726
|
-
}
|
|
2727
|
-
return _canUseSessionStorage;
|
|
2728
|
-
}
|
|
2729
|
-
function utlGetSessionStorageKeys() {
|
|
2730
|
-
var keys = [];
|
|
2731
|
-
if (utlCanUseSessionStorage()) {
|
|
2732
|
-
objForEachKey(getGlobalInst("sessionStorage"), function (key) {
|
|
2733
|
-
keys.push(key);
|
|
2734
|
-
});
|
|
2735
|
-
}
|
|
2736
|
-
return keys;
|
|
2737
|
-
}
|
|
2738
|
-
function utlGetSessionStorage(logger, name) {
|
|
2739
|
-
var storage = _getSessionStorageObject();
|
|
2740
|
-
if (storage !== null) {
|
|
2741
|
-
try {
|
|
2742
|
-
return storage.getItem(name);
|
|
2743
|
-
}
|
|
2744
|
-
catch (e) {
|
|
2745
|
-
_canUseSessionStorage = false;
|
|
2746
|
-
_throwInternal(logger, 2 , 2 , "Browser failed read of session storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2747
|
-
}
|
|
2748
|
-
}
|
|
2749
|
-
return null;
|
|
2750
|
-
}
|
|
2751
|
-
function utlSetSessionStorage(logger, name, data) {
|
|
2752
|
-
var storage = _getSessionStorageObject();
|
|
2753
|
-
if (storage !== null) {
|
|
2754
|
-
try {
|
|
2755
|
-
storage.setItem(name, data);
|
|
2756
|
-
return true;
|
|
2757
|
-
}
|
|
2758
|
-
catch (e) {
|
|
2759
|
-
_canUseSessionStorage = false;
|
|
2760
|
-
_throwInternal(logger, 2 , 4 , "Browser failed write to session storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2761
|
-
}
|
|
2762
|
-
}
|
|
2763
|
-
return false;
|
|
2764
|
-
}
|
|
2765
|
-
function utlRemoveSessionStorage(logger, name) {
|
|
2766
|
-
var storage = _getSessionStorageObject();
|
|
2767
|
-
if (storage !== null) {
|
|
2768
|
-
try {
|
|
2769
|
-
storage[_DYN_REMOVE_ITEM ](name);
|
|
2770
|
-
return true;
|
|
2771
|
-
}
|
|
2772
|
-
catch (e) {
|
|
2773
|
-
_canUseSessionStorage = false;
|
|
2774
|
-
_throwInternal(logger, 2 , 6 , "Browser failed removal of session storage item. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2775
|
-
}
|
|
2776
|
-
}
|
|
2777
|
-
return false;
|
|
2778
|
-
}
|
|
2779
|
-
|
|
2780
|
-
var _internalEndpoints = [
|
|
2781
|
-
DEFAULT_BREEZE_ENDPOINT + DEFAULT_BREEZE_PATH,
|
|
2782
|
-
"https://breeze.aimon.applicationinsights.io" + DEFAULT_BREEZE_PATH,
|
|
2783
|
-
"https://dc-int.services.visualstudio.com" + DEFAULT_BREEZE_PATH
|
|
2784
|
-
];
|
|
2785
|
-
function isInternalApplicationInsightsEndpoint(endpointUrl) {
|
|
2786
|
-
return arrIndexOf(_internalEndpoints, endpointUrl[_DYN_TO_LOWER_CASE ]()) !== -1;
|
|
2787
|
-
}
|
|
2788
|
-
var Util = {
|
|
2789
|
-
NotSpecified: strNotSpecified,
|
|
2790
|
-
createDomEvent: createDomEvent,
|
|
2791
|
-
disableStorage: utlDisableStorage,
|
|
2792
|
-
isInternalApplicationInsightsEndpoint: isInternalApplicationInsightsEndpoint,
|
|
2793
|
-
canUseLocalStorage: utlCanUseLocalStorage,
|
|
2794
|
-
getStorage: utlGetLocalStorage,
|
|
2795
|
-
setStorage: utlSetLocalStorage,
|
|
2796
|
-
removeStorage: utlRemoveStorage,
|
|
2797
|
-
canUseSessionStorage: utlCanUseSessionStorage,
|
|
2798
|
-
getSessionStorageKeys: utlGetSessionStorageKeys,
|
|
2799
|
-
getSessionStorage: utlGetSessionStorage,
|
|
2800
|
-
setSessionStorage: utlSetSessionStorage,
|
|
2801
|
-
removeSessionStorage: utlRemoveSessionStorage,
|
|
2802
|
-
disableCookies: disableCookies,
|
|
2803
|
-
canUseCookies: canUseCookies,
|
|
2804
|
-
disallowsSameSiteNone: uaDisallowsSameSiteNone,
|
|
2805
|
-
setCookie: setCookie,
|
|
2806
|
-
stringToBoolOrDefault: stringToBoolOrDefault,
|
|
2807
|
-
getCookie: getCookie,
|
|
2808
|
-
deleteCookie: deleteCookie,
|
|
2809
|
-
trim: strTrim,
|
|
2810
|
-
newId: newId,
|
|
2811
|
-
random32: function () {
|
|
2812
|
-
return random32(true);
|
|
2813
|
-
},
|
|
2814
|
-
generateW3CId: generateW3CId,
|
|
2815
|
-
isArray: isArray,
|
|
2816
|
-
isError: isError,
|
|
2817
|
-
isDate: isDate,
|
|
2818
|
-
toISOStringForIE8: toISOString,
|
|
2819
|
-
getIEVersion: getIEVersion,
|
|
2820
|
-
msToTimeSpan: msToTimeSpan,
|
|
2821
|
-
isCrossOriginError: isCrossOriginError,
|
|
2822
|
-
dump: dumpObj,
|
|
2823
|
-
getExceptionName: getExceptionName,
|
|
2824
|
-
addEventHandler: attachEvent,
|
|
2825
|
-
IsBeaconApiSupported: isBeaconsSupported,
|
|
2826
|
-
getExtension: getExtensionByName
|
|
2827
|
-
};
|
|
2828
1986
|
|
|
2829
1987
|
var strConstructor = "constructor";
|
|
2830
1988
|
var strGetOwnPropertyNames = "getOwnPropertyNames";
|
|
2831
1989
|
var MAX_DEPTH = 16;
|
|
2832
1990
|
function makeRegex(value) {
|
|
2833
|
-
if (value && value[_DYN_LENGTH
|
|
1991
|
+
if (value && value[_DYN_LENGTH ] > 0) {
|
|
2834
1992
|
value = value[_DYN_REPLACE ](/\\/g, "\\\\");
|
|
2835
1993
|
value = value[_DYN_REPLACE ](/([\+\?\|\{\}\[\]\(\)\^\$\#\.\=\!\:\/])/g, "\\$1");
|
|
2836
1994
|
value = value.replace(/\*/g, ".*");
|
|
@@ -2844,7 +2002,7 @@
|
|
|
2844
2002
|
el[_DYN_CLASS_NAME ] += className;
|
|
2845
2003
|
}
|
|
2846
2004
|
else {
|
|
2847
|
-
el[_DYN_CLASS_NAME ] = el[_DYN_CLASS_NAME ][_DYN_SUBSTRING ](0, idx) + el[_DYN_CLASS_NAME ][_DYN_SUBSTRING ](idx + className[_DYN_LENGTH
|
|
2005
|
+
el[_DYN_CLASS_NAME ] = el[_DYN_CLASS_NAME ][_DYN_SUBSTRING ](0, idx) + el[_DYN_CLASS_NAME ][_DYN_SUBSTRING ](idx + className[_DYN_LENGTH ]);
|
|
2848
2006
|
}
|
|
2849
2007
|
}
|
|
2850
2008
|
function traverseAndReplace(target, maxDepth, currentDepth, thingsReferenced, excludedKeys, includeFunctions) {
|
|
@@ -2857,7 +2015,7 @@
|
|
|
2857
2015
|
var key = _a[_i];
|
|
2858
2016
|
var targetValue = target[key];
|
|
2859
2017
|
if (isSymbol(targetValue)) {
|
|
2860
|
-
targetValue = targetValue[_DYN_TO_STRING
|
|
2018
|
+
targetValue = targetValue[_DYN_TO_STRING ]();
|
|
2861
2019
|
}
|
|
2862
2020
|
if (targetValue !== null && arrIndexOf(thingsReferenced, targetValue) !== -1) {
|
|
2863
2021
|
out[key] = "<circular (".concat(key, " - \"").concat(getTargetName(targetValue), "\")>");
|
|
@@ -2896,7 +2054,7 @@
|
|
|
2896
2054
|
var matchTxt = rg.exec(innerText);
|
|
2897
2055
|
if (matchTxt && matchTxt[1]) {
|
|
2898
2056
|
matchPos = theText.indexOf(matchTxt[1]);
|
|
2899
|
-
matchLen = matchTxt[1][_DYN_LENGTH
|
|
2057
|
+
matchLen = matchTxt[1][_DYN_LENGTH ];
|
|
2900
2058
|
}
|
|
2901
2059
|
}
|
|
2902
2060
|
if (matchPos !== -1) {
|
|
@@ -2992,7 +2150,7 @@
|
|
|
2992
2150
|
if (isString(target[_DYN_NAME ])) {
|
|
2993
2151
|
return target[_DYN_NAME ];
|
|
2994
2152
|
}
|
|
2995
|
-
if (
|
|
2153
|
+
if (objHasOwnProperty(target, strShimPrototype)) {
|
|
2996
2154
|
return target[_DYN_NAME ] || "";
|
|
2997
2155
|
}
|
|
2998
2156
|
return ((target[strConstructor]) || {})[_DYN_NAME ] || "";
|
|
@@ -3004,7 +2162,7 @@
|
|
|
3004
2162
|
return value;
|
|
3005
2163
|
}
|
|
3006
2164
|
if (isSymbol(value)) {
|
|
3007
|
-
return value[_DYN_TO_STRING
|
|
2165
|
+
return value[_DYN_TO_STRING ]();
|
|
3008
2166
|
}
|
|
3009
2167
|
if (isFunction(value["toString"])) {
|
|
3010
2168
|
return value["toString"]() || "";
|
|
@@ -3013,7 +2171,7 @@
|
|
|
3013
2171
|
}
|
|
3014
2172
|
function getTargetKeys(target, excludedKeys, includeFunctions) {
|
|
3015
2173
|
var keys = objKeys(target);
|
|
3016
|
-
if (!
|
|
2174
|
+
if (!isArray(target)) {
|
|
3017
2175
|
try {
|
|
3018
2176
|
if (Object[strGetOwnPropertyNames]) {
|
|
3019
2177
|
var propKeys = Object[strGetOwnPropertyNames](target);
|
|
@@ -3050,8 +2208,8 @@
|
|
|
3050
2208
|
if (!thingsReferenced) {
|
|
3051
2209
|
thingsReferenced = [];
|
|
3052
2210
|
}
|
|
3053
|
-
var isObj = isObject(target) ||
|
|
3054
|
-
var isErr = target["baseType"] === "ExceptionData" ||
|
|
2211
|
+
var isObj = isObject(target) || isError(target);
|
|
2212
|
+
var isErr = target["baseType"] === "ExceptionData" || isError(target);
|
|
3055
2213
|
var children = [];
|
|
3056
2214
|
function _openNode(currentLine) {
|
|
3057
2215
|
openState = true;
|
|
@@ -3070,7 +2228,7 @@
|
|
|
3070
2228
|
var matched = false;
|
|
3071
2229
|
var childOpened = false;
|
|
3072
2230
|
var keys = getTargetKeys(target, excludeKeys, includeFunctions);
|
|
3073
|
-
if (keys[_DYN_LENGTH
|
|
2231
|
+
if (keys[_DYN_LENGTH ] === 0) {
|
|
3074
2232
|
keys[_DYN_PUSH ]("<empty>");
|
|
3075
2233
|
}
|
|
3076
2234
|
if (level >= MAX_DEPTH) {
|
|
@@ -3083,7 +2241,7 @@
|
|
|
3083
2241
|
}
|
|
3084
2242
|
var targetValue = target[key_1];
|
|
3085
2243
|
if (isSymbol(targetValue)) {
|
|
3086
|
-
targetValue = targetValue[_DYN_TO_STRING
|
|
2244
|
+
targetValue = targetValue[_DYN_TO_STRING ]();
|
|
3087
2245
|
}
|
|
3088
2246
|
if (key_1 === "<maxdepth>") {
|
|
3089
2247
|
var builder = document[_DYN_CREATE_ELEMENT ]("div");
|
|
@@ -3104,7 +2262,7 @@
|
|
|
3104
2262
|
builder[_DYN_INNER_TEXT ] = "<circular (".concat(key_1, ") - \"").concat(getTargetName(targetValue), "\">");
|
|
3105
2263
|
children[_DYN_PUSH ](builder);
|
|
3106
2264
|
}
|
|
3107
|
-
else if (targetValue !== null && (isObject(targetValue) ||
|
|
2265
|
+
else if (targetValue !== null && (isObject(targetValue) || isError(targetValue))) {
|
|
3108
2266
|
thingsReferenced[_DYN_PUSH ](target);
|
|
3109
2267
|
var formatted = formatLogElements(targetValue, null, key_1, level + 1, textFilter, excludeKeys, thingsReferenced, includeFunctions);
|
|
3110
2268
|
thingsReferenced.pop();
|
|
@@ -3141,7 +2299,7 @@
|
|
|
3141
2299
|
outerSpan[_DYN_APPEND_CHILD ](keySpan);
|
|
3142
2300
|
var valueSpan = document[_DYN_CREATE_ELEMENT ]("span");
|
|
3143
2301
|
if (isFunction(targetValue)) {
|
|
3144
|
-
var fnStr = targetValue[_DYN_TO_STRING
|
|
2302
|
+
var fnStr = targetValue[_DYN_TO_STRING ]();
|
|
3145
2303
|
var fnHead = fnStr.match(/^([^{]+)/)[1];
|
|
3146
2304
|
valueSpan.textContent = "".concat(fnHead, "{...}");
|
|
3147
2305
|
}
|
|
@@ -3159,9 +2317,9 @@
|
|
|
3159
2317
|
var rootDiv = document[_DYN_CREATE_ELEMENT ]("div");
|
|
3160
2318
|
var innerText = "";
|
|
3161
2319
|
var currentLine = document[_DYN_CREATE_ELEMENT ]("span");
|
|
3162
|
-
if (isObj || children[_DYN_LENGTH
|
|
2320
|
+
if (isObj || children[_DYN_LENGTH ]) {
|
|
3163
2321
|
innerText = "".concat(key ? key : "obj", ": ");
|
|
3164
|
-
if (
|
|
2322
|
+
if (isArray(target)) {
|
|
3165
2323
|
innerText += "[".concat(getTargetKeys(target, excludeKeys, includeFunctions).length, "]");
|
|
3166
2324
|
}
|
|
3167
2325
|
else {
|
|
@@ -3199,7 +2357,7 @@
|
|
|
3199
2357
|
}
|
|
3200
2358
|
var openHandler_1 = function (evt, forceState) {
|
|
3201
2359
|
evt[_DYN_STOP_PROPAGATION ]();
|
|
3202
|
-
if (
|
|
2360
|
+
if (getIEVersion()) {
|
|
3203
2361
|
focusHandler(evt, target, level, excludeKeys, includeFunctions);
|
|
3204
2362
|
}
|
|
3205
2363
|
if (forceState !== undefined && openState === forceState) {
|
|
@@ -3251,16 +2409,16 @@
|
|
|
3251
2409
|
}
|
|
3252
2410
|
function _testObj(rg, value, excludedKeys, includeFunctions) {
|
|
3253
2411
|
if (value !== null && value !== undefined && value !== "") {
|
|
3254
|
-
if (
|
|
3255
|
-
for (var lp = 0; lp < value[_DYN_LENGTH
|
|
2412
|
+
if (isArray(value)) {
|
|
2413
|
+
for (var lp = 0; lp < value[_DYN_LENGTH ]; lp++) {
|
|
3256
2414
|
if (_testObj(rg, value[lp], excludedKeys, includeFunctions)) {
|
|
3257
2415
|
return true;
|
|
3258
2416
|
}
|
|
3259
2417
|
}
|
|
3260
2418
|
}
|
|
3261
|
-
else if (isObject(value) ||
|
|
2419
|
+
else if (isObject(value) || isError(value)) {
|
|
3262
2420
|
var keys = getTargetKeys(value, excludedKeys, includeFunctions);
|
|
3263
|
-
for (var lp = 0; lp < keys[_DYN_LENGTH
|
|
2421
|
+
for (var lp = 0; lp < keys[_DYN_LENGTH ]; lp++) {
|
|
3264
2422
|
var key_1 = keys[lp];
|
|
3265
2423
|
if (_testValue(rg, key_1) || _testObj(rg, value[key_1], excludedKeys, includeFunctions)) {
|
|
3266
2424
|
return true;
|
|
@@ -3293,11 +2451,11 @@
|
|
|
3293
2451
|
if (!theEl || lastTextFilter !== textFilter) {
|
|
3294
2452
|
lastTextFilter = textFilter;
|
|
3295
2453
|
var ms = "" + tm;
|
|
3296
|
-
while (ms[_DYN_LENGTH
|
|
2454
|
+
while (ms[_DYN_LENGTH ] < 4) {
|
|
3297
2455
|
ms = "0" + ms;
|
|
3298
2456
|
}
|
|
3299
2457
|
ms = ms[_DYN_REPLACE ](/(.)(\d{3}){1}$/g, "$1.$2s");
|
|
3300
|
-
while (ms[_DYN_LENGTH
|
|
2458
|
+
while (ms[_DYN_LENGTH ] <= 9) {
|
|
3301
2459
|
ms = " " + ms;
|
|
3302
2460
|
}
|
|
3303
2461
|
theEl = formatLogElements(target, "[".concat(ms, "]"), key, level, textFilter, excludeKeys, [], includeFunctions).root;
|
|
@@ -3427,23 +2585,23 @@
|
|
|
3427
2585
|
}());
|
|
3428
2586
|
|
|
3429
2587
|
var BG_INFO = "#F0F6FF", BG_ERROR = "#FEF0F1", ICON_ERROR = "#E00B1C", BTN_PRIMARY = "#0078d4", BTN_HOVER = "#106EBE", BTN_ACTIVE = "#005A9E", TEXT_PRIMARY = "#323130", TEXT_MATCHED = "yellow", BORDER_GREY_160 = "1px solid #605E5C", BORDER_GREY_60 = "1px solid #B3B0AD";
|
|
3430
|
-
console.log(
|
|
3431
|
-
var tempStyle = function (prefix) { return "\n .".concat(prefix, "-dbg-lgr-dashboard {\n z-index: 1000\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .controls {\n width: 90%;\n min-width: 600px;\n position: relative;\n margin: auto;\n left: 0;\n right: 0;\n font-family: monospace;\n font-size: 16px;\n border-color: ").concat(BG_INFO, ";\n border: 1px solid;\n background-color: transparent;\n display: block;\n padding-top: 3px;\n padding-bottom: 3px;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .controls > div {\n display: inline-block;\n position: relative;\n padding: 3px 20px;\n z-index: 1010\n }\n\n .").concat(prefix, "-dbg-lgr {\n width: 90%;\n min-width: 600px;\n height: 80%;\n position: relative;\n margin: auto;\n left: 0;\n right: 0;\n font-family: monospace;\n font-size: 16px;\n overflow-y: scroll;\n overflow-x: ").concat((
|
|
2588
|
+
console.log(getIEVersion());
|
|
2589
|
+
var tempStyle = function (prefix) { return "\n .".concat(prefix, "-dbg-lgr-dashboard {\n z-index: 1000\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .controls {\n width: 90%;\n min-width: 600px;\n position: relative;\n margin: auto;\n left: 0;\n right: 0;\n font-family: monospace;\n font-size: 16px;\n border-color: ").concat(BG_INFO, ";\n border: 1px solid;\n background-color: transparent;\n display: block;\n padding-top: 3px;\n padding-bottom: 3px;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .controls > div {\n display: inline-block;\n position: relative;\n padding: 3px 20px;\n z-index: 1010\n }\n\n .").concat(prefix, "-dbg-lgr {\n width: 90%;\n min-width: 600px;\n height: 80%;\n position: relative;\n margin: auto;\n left: 0;\n right: 0;\n font-family: monospace;\n font-size: 16px;\n overflow-y: scroll;\n overflow-x: ").concat((getIEVersion()) ? "scroll" : "hidden", ";\n border: ").concat(BORDER_GREY_160, ";\n border-radius: 2px;\n }\n\n .").concat(prefix, "-dbg-lgr div:focus {\n outline: 2px solid black;\n }\n\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3432
2590
|
? ""
|
|
3433
|
-
: ".".concat(prefix, "-dbg-lgr .tree-root div::before {\n content: '';\n position: absolute;\n left: -1.25em;\n height: 100%;\n border-right: 2px dotted #CCCCCC;\n }"), "\n\n .").concat(prefix, "-dbg-lgr .tree-root div:hover::before {\n border-right: 2px solid #000;\n }\n\n .").concat(prefix, "-dbg-lgr > div {\n display: block;\n position: relative;\n }\n\n .").concat(prefix, "-dbg-lgr > div:not(.controls) div {\n display: block;\n position: relative;\n margin-left: 2em;\n width: 100%;\n }\n\n .").concat(prefix, "-dbg-lgr .expandable {\n cursor: pointer;\n }\n\n .").concat(prefix, "-dbg-lgr > .tree-root div > span {\n width: 100%;\n display: block;\n }\n\n .").concat(prefix, "-dbg-lgr .exception {\n background-color: ").concat(BG_ERROR, ";\n color: ").concat(TEXT_PRIMARY, ";\n }\n\n .").concat(prefix, "-dbg-lgr .matched-text-filter {\n background-color: ").concat(TEXT_MATCHED, ";\n }\n\n ").concat(
|
|
2591
|
+
: ".".concat(prefix, "-dbg-lgr .tree-root div::before {\n content: '';\n position: absolute;\n left: -1.25em;\n height: 100%;\n border-right: 2px dotted #CCCCCC;\n }"), "\n\n .").concat(prefix, "-dbg-lgr .tree-root div:hover::before {\n border-right: 2px solid #000;\n }\n\n .").concat(prefix, "-dbg-lgr > div {\n display: block;\n position: relative;\n }\n\n .").concat(prefix, "-dbg-lgr > div:not(.controls) div {\n display: block;\n position: relative;\n margin-left: 2em;\n width: 100%;\n }\n\n .").concat(prefix, "-dbg-lgr .expandable {\n cursor: pointer;\n }\n\n .").concat(prefix, "-dbg-lgr > .tree-root div > span {\n width: 100%;\n display: block;\n }\n\n .").concat(prefix, "-dbg-lgr .exception {\n background-color: ").concat(BG_ERROR, ";\n color: ").concat(TEXT_PRIMARY, ";\n }\n\n .").concat(prefix, "-dbg-lgr .matched-text-filter {\n background-color: ").concat(TEXT_MATCHED, ";\n }\n\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3434
2592
|
? ""
|
|
3435
|
-
: ".".concat(prefix, "-dbg-lgr .expandable.open::before {\n content: '[-] ';\n font-weight: bold;\n }\n\n .").concat(prefix, "-dbg-lgr .expandable.closed::before {\n content: '[+] ';\n font-weight: bold;\n }"), "\n\n .").concat(prefix, "-dbg-lgr div:hover > .obj-key {\n text-decoration: underline;\n }\n\n .").concat(prefix, "-dbg-lgr .obj-time {\n padding-right: 15px;\n color: #605E5C;\n }\n \n .").concat(prefix, "-dbg-lgr .object {pointer-events: auto;}\n .").concat(prefix, "-dbg-lgr .function {color: #881391;}\n .").concat(prefix, "-dbg-lgr .string {color: #CB3632;}\n .").concat(prefix, "-dbg-lgr .number {color: #1C00CF;}\n .").concat(prefix, "-dbg-lgr .key {color: #881391; font-weight: bold;}\n .").concat(prefix, "-dbg-lgr .empty {color: #AAAAAA; font-style: italic;}\n\n .").concat(prefix, "-dbg-lgr-dashboard ").concat(prefix, "-last-selected-element > span {\n display: block;\n background-color: black;\n border-radius: 2px;\n color: white\n }\n .").concat(prefix, "-last-selected-element > span > span,\n .").concat(prefix, "-last-selected-element > span > span[class] {\n color: white;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard #close-dashboard {\n float: right;\n margin-right: 2em;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-primary {\n display: inline-block;\n background-color: ").concat(BTN_PRIMARY, ";\n color: #FFFFFF;\n border-radius: 2px;\n cursor: pointer;\n border: 1px solid;\n padding: 3px 20px;\n margin-left: 2em;\n height: 24px;\n min-width: 80px;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-primary:hover {\n background-color: ").concat(BTN_HOVER, ";\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-primary:active {\n background-color: ").concat(BTN_ACTIVE, ";\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-secondary {\n display: inline-block;\n border: 1px solid;\n bolder-color: ").concat(BTN_PRIMARY, ";\n color: ").concat(BTN_PRIMARY, ";\n background-color: transparent;\n border-radius: 2px;\n cursor: pointer;\n border: 1px solid;\n padding: 3px 20px;\n margin-left: 2em;\n height: 24px;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-secondary:hover {\n background-color: ").concat(BTN_HOVER, ";\n color: #FFFFFF;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-secondary:active {\n background-color: ").concat(BTN_ACTIVE, ";\n color: #FFFFFF;\n }\n \n .").concat(prefix, "-dbg-lgr-dashboard .filterlist {\n position: relative;\n display: inline-block;\n vertical-align: middle;\n width: 180px;\n min-height: 24px;\n margin-left: 2em;\n user-select: none;\n cursor: pointer;\n }\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-input {\n position: relative;\n padding: 3px 8px;\n border: ").concat(BORDER_GREY_60, ";\n border-radius: 2px;\n }\n\n ").concat(
|
|
2593
|
+
: ".".concat(prefix, "-dbg-lgr .expandable.open::before {\n content: '[-] ';\n font-weight: bold;\n }\n\n .").concat(prefix, "-dbg-lgr .expandable.closed::before {\n content: '[+] ';\n font-weight: bold;\n }"), "\n\n .").concat(prefix, "-dbg-lgr div:hover > .obj-key {\n text-decoration: underline;\n }\n\n .").concat(prefix, "-dbg-lgr .obj-time {\n padding-right: 15px;\n color: #605E5C;\n }\n \n .").concat(prefix, "-dbg-lgr .object {pointer-events: auto;}\n .").concat(prefix, "-dbg-lgr .function {color: #881391;}\n .").concat(prefix, "-dbg-lgr .string {color: #CB3632;}\n .").concat(prefix, "-dbg-lgr .number {color: #1C00CF;}\n .").concat(prefix, "-dbg-lgr .key {color: #881391; font-weight: bold;}\n .").concat(prefix, "-dbg-lgr .empty {color: #AAAAAA; font-style: italic;}\n\n .").concat(prefix, "-dbg-lgr-dashboard ").concat(prefix, "-last-selected-element > span {\n display: block;\n background-color: black;\n border-radius: 2px;\n color: white\n }\n .").concat(prefix, "-last-selected-element > span > span,\n .").concat(prefix, "-last-selected-element > span > span[class] {\n color: white;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard #close-dashboard {\n float: right;\n margin-right: 2em;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-primary {\n display: inline-block;\n background-color: ").concat(BTN_PRIMARY, ";\n color: #FFFFFF;\n border-radius: 2px;\n cursor: pointer;\n border: 1px solid;\n padding: 3px 20px;\n margin-left: 2em;\n height: 24px;\n min-width: 80px;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-primary:hover {\n background-color: ").concat(BTN_HOVER, ";\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-primary:active {\n background-color: ").concat(BTN_ACTIVE, ";\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-secondary {\n display: inline-block;\n border: 1px solid;\n bolder-color: ").concat(BTN_PRIMARY, ";\n color: ").concat(BTN_PRIMARY, ";\n background-color: transparent;\n border-radius: 2px;\n cursor: pointer;\n border: 1px solid;\n padding: 3px 20px;\n margin-left: 2em;\n height: 24px;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-secondary:hover {\n background-color: ").concat(BTN_HOVER, ";\n color: #FFFFFF;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-secondary:active {\n background-color: ").concat(BTN_ACTIVE, ";\n color: #FFFFFF;\n }\n \n .").concat(prefix, "-dbg-lgr-dashboard .filterlist {\n position: relative;\n display: inline-block;\n vertical-align: middle;\n width: 180px;\n min-height: 24px;\n margin-left: 2em;\n user-select: none;\n cursor: pointer;\n }\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-input {\n position: relative;\n padding: 3px 8px;\n border: ").concat(BORDER_GREY_60, ";\n border-radius: 2px;\n }\n\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3436
2594
|
? ""
|
|
3437
|
-
: ".".concat(prefix, "-dbg-lgr-dashboard .filterlist-input::after {\n content: '';\n width: 8px;\n height: 8px;\n position: absolute;\n right: 8px;\n top: 5px;\n margin: auto;\n transform: rotate(45deg);\n border: ").concat(BORDER_GREY_160, ";\n border-top: none;\n border-left: none;\n }"), "\n\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-input:focus {\n border: ").concat(BORDER_GREY_60, "\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-dropdown {\n position: absolute;\n top: 100%;\n margin: auto;\n background-color: #FFFFFF;\n overflow: hidden;\n min-width: 180px;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.16);\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-toggle {\n position: relative;\n padding: 3px 8px;\n height: 32px;\n width: 100%;\n ").concat((
|
|
2595
|
+
: ".".concat(prefix, "-dbg-lgr-dashboard .filterlist-input::after {\n content: '';\n width: 8px;\n height: 8px;\n position: absolute;\n right: 8px;\n top: 5px;\n margin: auto;\n transform: rotate(45deg);\n border: ").concat(BORDER_GREY_160, ";\n border-top: none;\n border-left: none;\n }"), "\n\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-input:focus {\n border: ").concat(BORDER_GREY_60, "\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-dropdown {\n position: absolute;\n top: 100%;\n margin: auto;\n background-color: #FFFFFF;\n overflow: hidden;\n min-width: 180px;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.16);\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-toggle {\n position: relative;\n padding: 3px 8px;\n height: 32px;\n width: 100%;\n ").concat((getIEVersion()) ? "" : "box-sizing: border-box;", "\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-toggle:focus {\n outline: none;\n border: ").concat(BORDER_GREY_60, ";\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .text-filter-input {\n font-family: monospace;\n margin-left: 2em;\n padding: 3px 8px;\n width: 180px;\n height: 24px;\n border-radius: 2px;\n border: ").concat(BORDER_GREY_160, ";\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .text-filter-input:focus {\n border: ").concat(BORDER_GREY_60, ";\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .label {\n vertical-align: middle;\n width: 80%;\n display: inline-block;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .checkbox {\n display: inline-block;\n width: 18px;\n height: 18px;\n border-radius: 2px;\n vertical-align: middle;\n margin-right: 8px;\n ").concat((getIEVersion()) ? "" : "box-sizing: border-box;", "\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .checkbox.on {\n background-color: #0078D4;\n }\n\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3438
2596
|
? ""
|
|
3439
|
-
: ".".concat(prefix, "-dbg-lgr-dashboard .checkbox.on::after {\n content: '';\n width: 5px;\n height: 10px;\n display: inline-block;\n margin: 2px 6px;\n padding: 0;\n transform: rotate(45deg);\n border: 1px solid #FFFFFF;\n border-top: none;\n border-left: none;\n }"), "\n\n\n .").concat(prefix, "-dbg-lgr-dashboard .checkbox.off {\n border: ").concat(BORDER_GREY_160, ";\n }\n\n ").concat(
|
|
2597
|
+
: ".".concat(prefix, "-dbg-lgr-dashboard .checkbox.on::after {\n content: '';\n width: 5px;\n height: 10px;\n display: inline-block;\n margin: 2px 6px;\n padding: 0;\n transform: rotate(45deg);\n border: 1px solid #FFFFFF;\n border-top: none;\n border-left: none;\n }"), "\n\n\n .").concat(prefix, "-dbg-lgr-dashboard .checkbox.off {\n border: ").concat(BORDER_GREY_160, ";\n }\n\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3440
2598
|
? ""
|
|
3441
2599
|
: "@media only screen and (max-width: 600px) {\n .".concat(prefix, "-dbg-lgr {\n width: 100%;\n min-width: 200px;\n }\n }"), "\n\n"); };
|
|
3442
|
-
var permStyle = function (prefix) { return "\n .".concat(prefix, "-debug-bin-container {\n position: fixed;\n ").concat(
|
|
2600
|
+
var permStyle = function (prefix) { return "\n .".concat(prefix, "-debug-bin-container {\n position: fixed;\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3443
2601
|
? "width: 100%;\n height: 100%;\n top: 0;\n left: 0;"
|
|
3444
|
-
: "width: 100vw;\n height: 100vh;", "\n pointer-events: none;\n }\n\n .").concat(prefix, "-debug-bin-parent {\n position: fixed;\n right: 20px;\n margin: auto;\n padding: 10px;\n border-radius: 2px;\n min-height: 20px;\n min-width: 20px;\n overflow: hidden;\n pointer-events: auto;\n text-align: right;\n font-family: monospace;\n font-size: 16px;\n color: #FFFFFF;\n background-color: ").concat(BTN_PRIMARY, ";\n border: 2px solid #FFFFFF;\n transition: 2s color linear;\n cursor: pointer;\n transition: .2s width ease-in-out, .2s height ease-in-out;\n ").concat((
|
|
2602
|
+
: "width: 100vw;\n height: 100vh;", "\n pointer-events: none;\n }\n\n .").concat(prefix, "-debug-bin-parent {\n position: fixed;\n right: 20px;\n margin: auto;\n padding: 10px;\n border-radius: 2px;\n min-height: 20px;\n min-width: 20px;\n overflow: hidden;\n pointer-events: auto;\n text-align: right;\n font-family: monospace;\n font-size: 16px;\n color: #FFFFFF;\n background-color: ").concat(BTN_PRIMARY, ";\n border: 2px solid #FFFFFF;\n transition: 2s color linear;\n cursor: pointer;\n transition: .2s width ease-in-out, .2s height ease-in-out;\n ").concat((getIEVersion()) ? "" : "box-sizing: border-box;", "\n }\n\n .").concat(prefix, "-debug-bin-parent.active {\n background-color: ").concat(BG_INFO, ";\n color: ").concat(TEXT_PRIMARY, ";\n }\n\n .").concat(prefix, "-debug-bin-parent:focus {\n border: ").concat(BORDER_GREY_160, ";\n outline: none;\n }\n\n .").concat(prefix, "-debug-bin-parent.notify {\n background-color: ").concat(ICON_ERROR, ";\n }\n\n .").concat(prefix, "-debug-bin-parent button {\n display: block;\n width: 100%;\n background-color: ").concat(BTN_PRIMARY, ";\n color: #FFFFFF;\n border-radius: 2px;\n margin-bottom: 5px;\n margin-top: 10px;\n cursor: pointer;\n border: none;\n padding: 3px 20px;\n height: 24px;\n }\n\n .").concat(prefix, "-debug-bin-parent button:hover {\n background-color: ").concat(BTN_HOVER, ";\n }\n\n .").concat(prefix, "-debug-bin-parent button:active {\n background-color: ").concat(BTN_ACTIVE, ";\n }\n\n .").concat(prefix, "-debug-bin-parent .el-name {\n text-align: left;\n }\n\n .").concat(prefix, "-debug-bin-parent .el-value {\n display: inline-block;\n transform: scale(1);\n transition: 2s transform linear, 0s 2s font-weight linear;\n }\n\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3445
2603
|
? ""
|
|
3446
|
-
: ".".concat(prefix, "-debug-bin-parent.notify::after {\n content: \" (!)\";\n }"), "\n\n .").concat(prefix, "-debug-bin-parent .el-value.incremented {\n transform: scale(1.5);\n font-weight: bold;\n transition: 0s transform linear, 0s font-weight linear;\n }\n\n ").concat(
|
|
2604
|
+
: ".".concat(prefix, "-debug-bin-parent.notify::after {\n content: \" (!)\";\n }"), "\n\n .").concat(prefix, "-debug-bin-parent .el-value.incremented {\n transform: scale(1.5);\n font-weight: bold;\n transition: 0s transform linear, 0s font-weight linear;\n }\n\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3447
2605
|
? ""
|
|
3448
2606
|
: ".".concat(prefix, "-debug-bin-parent:focus > span::before,\n .").concat(prefix, "-debug-bin-parent:hover > span::before,\n .").concat(prefix, "-debug-bin-parent.active > span::before {\n content: attr(data-name) \": \";\n }"), "\n"); };
|
|
3449
2607
|
|
|
@@ -3499,7 +2657,7 @@
|
|
|
3499
2657
|
msgTracker[_DYN_PUSH ](new LogEntry(target, tm, key, level, kind, keep));
|
|
3500
2658
|
if (msgTracker.length > config[_DYN_MAX_MESSAGES ]) {
|
|
3501
2659
|
var lp = 0;
|
|
3502
|
-
while (lp < msgTracker[_DYN_LENGTH
|
|
2660
|
+
while (lp < msgTracker[_DYN_LENGTH ]) {
|
|
3503
2661
|
var entry = msgTracker[lp];
|
|
3504
2662
|
if (!entry.isKeep()) {
|
|
3505
2663
|
var el = entry[_DYN_GET_EL ]();
|
|
@@ -3927,7 +3085,7 @@
|
|
|
3927
3085
|
funcName: funcArgs[_DYN_NAME ],
|
|
3928
3086
|
inst: funcArgs.inst
|
|
3929
3087
|
};
|
|
3930
|
-
if (orgArgs && orgArgs[_DYN_LENGTH
|
|
3088
|
+
if (orgArgs && orgArgs[_DYN_LENGTH ]) {
|
|
3931
3089
|
result.args = orgArgs;
|
|
3932
3090
|
}
|
|
3933
3091
|
if (!isUndefined(funcArgs.err)) {
|
|
@@ -3959,7 +3117,7 @@
|
|
|
3959
3117
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3960
3118
|
orgArgs[_i - 1] = arguments[_i];
|
|
3961
3119
|
}
|
|
3962
|
-
(debugBins[funcArgs.name] || debugBins
|
|
3120
|
+
(debugBins[funcArgs.name] || debugBins.default).increment();
|
|
3963
3121
|
if (funcArgs[_DYN_NAME ] === "trackException" && !debugBinParent[_DYN_SHOW_CHILDREN ]) {
|
|
3964
3122
|
debugBinParent.addClassToEl("notify");
|
|
3965
3123
|
}
|
|
@@ -4008,7 +3166,7 @@
|
|
|
4008
3166
|
|
|
4009
3167
|
exports.DebugPlugin = DebugPlugin$1;
|
|
4010
3168
|
|
|
4011
|
-
|
|
3169
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4012
3170
|
|
|
4013
3171
|
}));
|
|
4014
|
-
//# sourceMappingURL=ai.dbg.3.0.0-beta.2208-
|
|
3172
|
+
//# sourceMappingURL=ai.dbg.3.0.0-beta.2208-16.js.map
|