@microsoft/applicationinsights-web-basic 3.0.0-beta.2208-03 → 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/README.md +8 -1
- package/browser/aib.2.js +1153 -1328
- package/browser/aib.2.js.map +1 -1
- package/browser/aib.2.min.js +2 -2
- package/browser/aib.2.min.js.map +1 -1
- package/browser/aib.3.0.0-beta.2208-16.integrity.json +26 -0
- package/browser/{aib.3.0.0-beta.2208-03.js → aib.3.0.0-beta.2208-16.js} +1154 -1329
- package/browser/aib.3.0.0-beta.2208-16.js.map +1 -0
- package/browser/aib.3.0.0-beta.2208-16.min.js +6 -0
- package/browser/aib.3.0.0-beta.2208-16.min.js.map +1 -0
- package/dist/applicationinsights-web-basic.api.json +75 -284
- package/dist/applicationinsights-web-basic.api.md +9 -11
- package/dist/applicationinsights-web-basic.d.ts +16 -212
- package/dist/applicationinsights-web-basic.js +1153 -1328
- package/dist/applicationinsights-web-basic.js.map +1 -1
- package/dist/applicationinsights-web-basic.min.js +2 -2
- package/dist/applicationinsights-web-basic.min.js.map +1 -1
- package/dist/applicationinsights-web-basic.rollup.d.ts +16 -212
- package/dist-esm/__DynamicConstants.js +4 -4
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/index.js +5 -5
- package/dist-esm/index.js.map +1 -1
- package/package.json +6 -5
- package/src/__DynamicConstants.ts +3 -3
- package/src/index.ts +6 -7
- package/tsconfig.json +1 -1
- package/types/index.d.ts +1 -1
- package/types/tsdoc-metadata.json +1 -1
- package/browser/aib.3.0.0-beta.2208-03.integrity.json +0 -26
- package/browser/aib.3.0.0-beta.2208-03.js.map +0 -1
- package/browser/aib.3.0.0-beta.2208-03.min.js +0 -6
- package/browser/aib.3.0.0-beta.2208-03.min.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2208-
|
|
2
|
+
* Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2208-16
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
var DynAllowInstChkTag = DynInstChkTag;
|
|
24
24
|
var DynProtoDefaultOptions = '_dfOpts';
|
|
25
25
|
var UnknownValue = '_unknown_';
|
|
26
|
-
var str__Proto
|
|
27
|
-
var DynProtoBaseProto = "_dyn" + str__Proto
|
|
26
|
+
var str__Proto = "__proto__";
|
|
27
|
+
var DynProtoBaseProto = "_dyn" + str__Proto;
|
|
28
28
|
var DynProtoCurrent = "_dynInstProto";
|
|
29
29
|
var strUseBaseInst = 'useBaseInst';
|
|
30
30
|
var strSetInstFuncs = 'setInstFuncs';
|
|
31
31
|
var Obj = Object;
|
|
32
|
-
var _objGetPrototypeOf
|
|
32
|
+
var _objGetPrototypeOf = Obj["getPrototypeOf"];
|
|
33
33
|
var _objGetOwnProps = Obj["getOwnPropertyNames"];
|
|
34
34
|
var _dynamicNames = 0;
|
|
35
35
|
function _hasOwnProperty(obj, prop) {
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
function _getObjProto$1(target) {
|
|
45
45
|
var newProto;
|
|
46
46
|
if (target) {
|
|
47
|
-
if (_objGetPrototypeOf
|
|
48
|
-
return _objGetPrototypeOf
|
|
47
|
+
if (_objGetPrototypeOf) {
|
|
48
|
+
return _objGetPrototypeOf(target);
|
|
49
49
|
}
|
|
50
|
-
var curProto = target[str__Proto
|
|
50
|
+
var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
|
|
51
51
|
newProto = target[DynProtoBaseProto] || curProto;
|
|
52
52
|
if (!_hasOwnProperty(target, DynProtoBaseProto)) {
|
|
53
53
|
delete target[DynProtoCurrent];
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
var visited = [];
|
|
120
120
|
while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
|
|
121
121
|
_forEachProp(baseProto, function (name) {
|
|
122
|
-
if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf
|
|
122
|
+
if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
|
|
123
123
|
baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
|
|
124
124
|
}
|
|
125
125
|
});
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
function _checkPrototype(classProto, thisTarget) {
|
|
202
|
-
if (_objGetPrototypeOf
|
|
202
|
+
if (_objGetPrototypeOf) {
|
|
203
203
|
var visited = [];
|
|
204
204
|
var thisProto = _getObjProto$1(thisTarget);
|
|
205
205
|
while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
var instFuncs = _getInstanceFuncs(target);
|
|
245
245
|
var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);
|
|
246
246
|
delegateFunc(target, baseFuncs);
|
|
247
|
-
var setInstanceFunc = !!_objGetPrototypeOf
|
|
247
|
+
var setInstanceFunc = !!_objGetPrototypeOf && !!perfOptions[strSetInstFuncs];
|
|
248
248
|
if (setInstanceFunc && options) {
|
|
249
249
|
setInstanceFunc = !!options[strSetInstFuncs];
|
|
250
250
|
}
|
|
@@ -261,33 +261,33 @@
|
|
|
261
261
|
var strShimUndefined = "undefined";
|
|
262
262
|
var strShimPrototype = "prototype";
|
|
263
263
|
var strShimHasOwnProperty = "hasOwnProperty";
|
|
264
|
-
var ObjClass = Object;
|
|
265
|
-
var ObjProto = ObjClass[strShimPrototype];
|
|
266
|
-
var ObjAssign = ObjClass["assign"];
|
|
267
|
-
var ObjCreate = ObjClass["create"];
|
|
268
|
-
var ObjDefineProperty = ObjClass["defineProperty"];
|
|
269
|
-
var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];
|
|
264
|
+
var ObjClass$1 = Object;
|
|
265
|
+
var ObjProto$1 = ObjClass$1[strShimPrototype];
|
|
266
|
+
var ObjAssign = ObjClass$1["assign"];
|
|
267
|
+
var ObjCreate = ObjClass$1["create"];
|
|
268
|
+
var ObjDefineProperty = ObjClass$1["defineProperty"];
|
|
269
|
+
var ObjHasOwnProperty = ObjProto$1[strShimHasOwnProperty];
|
|
270
270
|
|
|
271
|
-
var _cachedGlobal = null;
|
|
272
|
-
function getGlobal(useCached) {
|
|
271
|
+
var _cachedGlobal$1 = null;
|
|
272
|
+
function getGlobal$1(useCached) {
|
|
273
273
|
if (useCached === void 0) { useCached = true; }
|
|
274
|
-
if (!_cachedGlobal || !useCached) {
|
|
274
|
+
if (!_cachedGlobal$1 || !useCached) {
|
|
275
275
|
if (typeof globalThis !== strShimUndefined && globalThis) {
|
|
276
|
-
_cachedGlobal = globalThis;
|
|
276
|
+
_cachedGlobal$1 = globalThis;
|
|
277
277
|
}
|
|
278
278
|
if (typeof self !== strShimUndefined && self) {
|
|
279
|
-
_cachedGlobal = self;
|
|
279
|
+
_cachedGlobal$1 = self;
|
|
280
280
|
}
|
|
281
281
|
if (typeof window !== strShimUndefined && window) {
|
|
282
|
-
_cachedGlobal = window;
|
|
282
|
+
_cachedGlobal$1 = window;
|
|
283
283
|
}
|
|
284
284
|
if (typeof global !== strShimUndefined && global) {
|
|
285
|
-
_cachedGlobal = global;
|
|
285
|
+
_cachedGlobal$1 = global;
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
return _cachedGlobal;
|
|
288
|
+
return _cachedGlobal$1;
|
|
289
289
|
}
|
|
290
|
-
function throwTypeError(message) {
|
|
290
|
+
function throwTypeError$1(message) {
|
|
291
291
|
throw new TypeError(message);
|
|
292
292
|
}
|
|
293
293
|
function objCreateFn(obj) {
|
|
@@ -300,20 +300,20 @@
|
|
|
300
300
|
}
|
|
301
301
|
var type = typeof obj;
|
|
302
302
|
if (type !== strShimObject && type !== strShimFunction) {
|
|
303
|
-
throwTypeError("Object prototype may only be an Object:" + obj);
|
|
303
|
+
throwTypeError$1("Object prototype may only be an Object:" + obj);
|
|
304
304
|
}
|
|
305
305
|
function tmpFunc() { }
|
|
306
306
|
tmpFunc[strShimPrototype] = obj;
|
|
307
307
|
return new tmpFunc();
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
(getGlobal() || {})["Symbol"];
|
|
311
|
-
(getGlobal() || {})["Reflect"];
|
|
310
|
+
(getGlobal$1() || {})["Symbol"];
|
|
311
|
+
(getGlobal$1() || {})["Reflect"];
|
|
312
312
|
var __objAssignFnImpl = function (t) {
|
|
313
313
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
314
314
|
s = arguments[i];
|
|
315
315
|
for (var p in s) {
|
|
316
|
-
if (ObjProto[strShimHasOwnProperty].call(s, p)) {
|
|
316
|
+
if (ObjProto$1[strShimHasOwnProperty].call(s, p)) {
|
|
317
317
|
t[p] = s[p];
|
|
318
318
|
}
|
|
319
319
|
}
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
};
|
|
323
323
|
var __assignFn = ObjAssign || __objAssignFnImpl;
|
|
324
324
|
var extendStaticsFn = function (d, b) {
|
|
325
|
-
extendStaticsFn = ObjClass["setPrototypeOf"] ||
|
|
325
|
+
extendStaticsFn = ObjClass$1["setPrototypeOf"] ||
|
|
326
326
|
({ __proto__: [] } instanceof Array && function (d, b) {
|
|
327
327
|
d.__proto__ = b;
|
|
328
328
|
}) ||
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
};
|
|
338
338
|
function __extendsFn(d, b) {
|
|
339
339
|
if (typeof b !== strShimFunction && b !== null) {
|
|
340
|
-
throwTypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
340
|
+
throwTypeError$1("Class extends value " + String(b) + " is not a constructor or null");
|
|
341
341
|
}
|
|
342
342
|
extendStaticsFn(d, b);
|
|
343
343
|
function __() {
|
|
@@ -352,6 +352,347 @@
|
|
|
352
352
|
return to;
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
+
var UNDEF_VALUE = undefined;
|
|
356
|
+
var EMPTY = "";
|
|
357
|
+
var BOOLEAN = "boolean";
|
|
358
|
+
var FUNCTION = "function";
|
|
359
|
+
var NUMBER = "number";
|
|
360
|
+
var OBJECT = "object";
|
|
361
|
+
var PROTOTYPE = "prototype";
|
|
362
|
+
var STRING = "string";
|
|
363
|
+
var UNDEFINED = "undefined";
|
|
364
|
+
var HAS_OWN_PROPERTY = "hasOwnProperty";
|
|
365
|
+
var INDEX_OF = "indexOf";
|
|
366
|
+
var LENGTH = "length";
|
|
367
|
+
var ObjClass = Object;
|
|
368
|
+
var ObjProto = ObjClass[PROTOTYPE];
|
|
369
|
+
var StrCls = String;
|
|
370
|
+
var StrProto = StrCls[PROTOTYPE];
|
|
371
|
+
var ArrCls = Array;
|
|
372
|
+
|
|
373
|
+
function _safeCheck(cb, defValue) {
|
|
374
|
+
var result = defValue;
|
|
375
|
+
try {
|
|
376
|
+
result = cb();
|
|
377
|
+
}
|
|
378
|
+
catch (e) {
|
|
379
|
+
}
|
|
380
|
+
return result;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
function _createIs(theType) {
|
|
384
|
+
return function (value) {
|
|
385
|
+
return typeof value === theType;
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
function _createObjIs(theType) {
|
|
389
|
+
return function (value) {
|
|
390
|
+
return !!(value && objToString(value) === theType);
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
function objToString(value) {
|
|
394
|
+
return ObjProto.toString.call(value);
|
|
395
|
+
}
|
|
396
|
+
function isUndefined(value) {
|
|
397
|
+
return typeof value === UNDEFINED || value === UNDEFINED;
|
|
398
|
+
}
|
|
399
|
+
function isNullOrUndefined(value) {
|
|
400
|
+
return value === null || isUndefined(value);
|
|
401
|
+
}
|
|
402
|
+
function isDefined(arg) {
|
|
403
|
+
return !!arg || arg !== UNDEF_VALUE;
|
|
404
|
+
}
|
|
405
|
+
var isString = _createIs(STRING);
|
|
406
|
+
var isFunction = _createIs(FUNCTION);
|
|
407
|
+
function isObject(value) {
|
|
408
|
+
if (isNullOrUndefined(value)) {
|
|
409
|
+
return false;
|
|
410
|
+
}
|
|
411
|
+
return !!value && typeof value === OBJECT;
|
|
412
|
+
}
|
|
413
|
+
var isArray = ArrCls.isArray;
|
|
414
|
+
var isNumber = _createIs(NUMBER);
|
|
415
|
+
var isBoolean = _createIs(BOOLEAN);
|
|
416
|
+
var isError = _createObjIs("[object Error]");
|
|
417
|
+
function isTruthy(value) {
|
|
418
|
+
return !(!value || _safeCheck(function () { return !(value && (0 + value)); }, !value));
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
var DOCUMENT = "document";
|
|
422
|
+
var NAVIGATOR = "navigator";
|
|
423
|
+
var WINDOW = "window";
|
|
424
|
+
var _cachedGlobal = null;
|
|
425
|
+
var _hasWindow = _safeCheck(function () { return isDefined(window); }, false);
|
|
426
|
+
var _hasDocument = _safeCheck(function () { return isDefined(document); }, false);
|
|
427
|
+
var _hasNavigator = _safeCheck(function () { return isDefined(navigator); }, false);
|
|
428
|
+
_safeCheck(function () { return isDefined(history); }, false);
|
|
429
|
+
_safeCheck(function () { return !!(self && self instanceof WorkerGlobalScope); }, false);
|
|
430
|
+
_safeCheck(function () { return !!(process && (process.versions || {}).node); }, false);
|
|
431
|
+
function getGlobal(useCached) {
|
|
432
|
+
var result = useCached === false ? null : _cachedGlobal;
|
|
433
|
+
if (!result) {
|
|
434
|
+
if (!result && typeof globalThis !== UNDEFINED) {
|
|
435
|
+
result = globalThis;
|
|
436
|
+
}
|
|
437
|
+
if (!result && typeof self !== UNDEFINED) {
|
|
438
|
+
result = self;
|
|
439
|
+
}
|
|
440
|
+
if (!result && typeof window !== UNDEFINED) {
|
|
441
|
+
result = window;
|
|
442
|
+
}
|
|
443
|
+
if (!result && typeof global !== UNDEFINED) {
|
|
444
|
+
result = global;
|
|
445
|
+
}
|
|
446
|
+
_cachedGlobal = result;
|
|
447
|
+
}
|
|
448
|
+
return result;
|
|
449
|
+
}
|
|
450
|
+
function getInst(name, useCached) {
|
|
451
|
+
var gbl = getGlobal(useCached);
|
|
452
|
+
if (gbl && gbl[name]) {
|
|
453
|
+
return gbl[name];
|
|
454
|
+
}
|
|
455
|
+
if (name === WINDOW && _hasWindow) {
|
|
456
|
+
return window;
|
|
457
|
+
}
|
|
458
|
+
return null;
|
|
459
|
+
}
|
|
460
|
+
function getDocument() {
|
|
461
|
+
return _hasDocument ? document : getInst(DOCUMENT);
|
|
462
|
+
}
|
|
463
|
+
function getWindow() {
|
|
464
|
+
return _hasWindow ? window : getInst(WINDOW);
|
|
465
|
+
}
|
|
466
|
+
function hasNavigator() {
|
|
467
|
+
return !!getNavigator();
|
|
468
|
+
}
|
|
469
|
+
function getNavigator() {
|
|
470
|
+
return _hasNavigator ? navigator : getInst(NAVIGATOR);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
function objHasOwnProperty(obj, prop) {
|
|
474
|
+
return obj && ObjProto[HAS_OWN_PROPERTY].call(obj, prop);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
function objForEachKey(theObject, callbackfn, thisArg) {
|
|
478
|
+
if (theObject && isObject(theObject)) {
|
|
479
|
+
for (var prop in theObject) {
|
|
480
|
+
if (objHasOwnProperty(theObject, prop)) {
|
|
481
|
+
if (callbackfn.call(thisArg || theObject, prop, theObject[prop]) === -1) {
|
|
482
|
+
break;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
function arrForEach(arr, callbackfn, thisArg) {
|
|
490
|
+
if (arr) {
|
|
491
|
+
var len = arr[LENGTH];
|
|
492
|
+
for (var idx = 0; idx < len; idx++) {
|
|
493
|
+
if (idx in arr) {
|
|
494
|
+
if (callbackfn.call(thisArg || arr, arr[idx], idx, arr) === -1) {
|
|
495
|
+
break;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
function throwError(message) {
|
|
503
|
+
throw new Error(message);
|
|
504
|
+
}
|
|
505
|
+
function throwTypeError(message) {
|
|
506
|
+
throw new TypeError(message);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
var _objFreeze = ObjClass["freeze"];
|
|
510
|
+
function _doNothing(value) {
|
|
511
|
+
return value;
|
|
512
|
+
}
|
|
513
|
+
function objKeys(value) {
|
|
514
|
+
if (!isObject(value) || value === null) {
|
|
515
|
+
throwTypeError("objKeys called on non-object");
|
|
516
|
+
}
|
|
517
|
+
return ObjClass.keys(value);
|
|
518
|
+
}
|
|
519
|
+
function objDeepFreeze(value) {
|
|
520
|
+
if (_objFreeze) {
|
|
521
|
+
objForEachKey(value, function (key, value) {
|
|
522
|
+
if (isArray(value) || isObject(value)) {
|
|
523
|
+
_objFreeze(value);
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
return objFreeze(value);
|
|
528
|
+
}
|
|
529
|
+
var objFreeze = _objFreeze || _doNothing;
|
|
530
|
+
|
|
531
|
+
function createEnum(values) {
|
|
532
|
+
var theEnum = {};
|
|
533
|
+
objForEachKey(values, function (field, value) {
|
|
534
|
+
theEnum[field] = value;
|
|
535
|
+
theEnum[value] = field;
|
|
536
|
+
});
|
|
537
|
+
return objDeepFreeze(theEnum);
|
|
538
|
+
}
|
|
539
|
+
function createSimpleMap(values) {
|
|
540
|
+
var mapClass = {};
|
|
541
|
+
objForEachKey(values, function (field, value) {
|
|
542
|
+
mapClass[field] = value[1];
|
|
543
|
+
mapClass[value[0]] = value[1];
|
|
544
|
+
});
|
|
545
|
+
return objDeepFreeze(mapClass);
|
|
546
|
+
}
|
|
547
|
+
function createTypeMap(values) {
|
|
548
|
+
return createSimpleMap(values);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
function dumpObj(object, format) {
|
|
552
|
+
var objectTypeDump = objToString(object);
|
|
553
|
+
var propertyValueDump = "";
|
|
554
|
+
if (objectTypeDump === "[object Error]") {
|
|
555
|
+
propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object.name + "'";
|
|
556
|
+
}
|
|
557
|
+
else {
|
|
558
|
+
if (format) {
|
|
559
|
+
if (isNumber(format)) {
|
|
560
|
+
propertyValueDump = JSON.stringify(object, null, format);
|
|
561
|
+
}
|
|
562
|
+
else {
|
|
563
|
+
propertyValueDump = JSON.stringify(object, null, format ? 4 : 0);
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
else {
|
|
567
|
+
propertyValueDump = JSON.stringify(object);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
return objectTypeDump + ": " + propertyValueDump;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
function _unwrapFunction(funcName) {
|
|
574
|
+
return function (thisArg) {
|
|
575
|
+
var args = [];
|
|
576
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
577
|
+
args[_i - 1] = arguments[_i];
|
|
578
|
+
}
|
|
579
|
+
if ((thisArg || thisArg === EMPTY) && thisArg[funcName]) {
|
|
580
|
+
return thisArg[funcName].apply(thisArg, args);
|
|
581
|
+
}
|
|
582
|
+
throwTypeError("'" + funcName + "' not defined for " + dumpObj(thisArg));
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
var arrIndexOf = _unwrapFunction(INDEX_OF);
|
|
587
|
+
|
|
588
|
+
var arrMap = _unwrapFunction("map");
|
|
589
|
+
|
|
590
|
+
function objSetPrototypeOf(obj, proto) {
|
|
591
|
+
var fn = ObjClass["setPrototypeOf"] ||
|
|
592
|
+
({ __proto__: [] } instanceof Array && function (d, b) {
|
|
593
|
+
d.__proto__ = b;
|
|
594
|
+
}) ||
|
|
595
|
+
function (d, b) {
|
|
596
|
+
objForEachKey(b, function (key, value) {
|
|
597
|
+
d[key] = value;
|
|
598
|
+
});
|
|
599
|
+
};
|
|
600
|
+
return fn(obj, proto);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
function _createCustomError(name, d, b) {
|
|
604
|
+
objSetPrototypeOf(d, b);
|
|
605
|
+
function __() {
|
|
606
|
+
this.constructor = d;
|
|
607
|
+
}
|
|
608
|
+
__[PROTOTYPE] = b[PROTOTYPE];
|
|
609
|
+
__[PROTOTYPE].name = name;
|
|
610
|
+
d[PROTOTYPE] = new __();
|
|
611
|
+
return d;
|
|
612
|
+
}
|
|
613
|
+
function createCustomError(name, constructCb) {
|
|
614
|
+
var baseClass = Error;
|
|
615
|
+
var customError = _createCustomError(name, function () {
|
|
616
|
+
var _this = this;
|
|
617
|
+
_this = baseClass.apply(_this, arguments) || _this;
|
|
618
|
+
constructCb && constructCb(_this, arguments);
|
|
619
|
+
return _this;
|
|
620
|
+
}, baseClass);
|
|
621
|
+
return customError;
|
|
622
|
+
}
|
|
623
|
+
var _unsupportedError;
|
|
624
|
+
function throwUnsupported(message) {
|
|
625
|
+
if (!_unsupportedError) {
|
|
626
|
+
_unsupportedError = createCustomError("UnsupportedError");
|
|
627
|
+
}
|
|
628
|
+
throw new _unsupportedError(message);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
var _objDefineProperty$1 = ObjClass["defineProperty"];
|
|
632
|
+
function objDefineProp(target, key, descriptor) {
|
|
633
|
+
if (_objDefineProperty$1) {
|
|
634
|
+
_objDefineProperty$1(target, key, descriptor);
|
|
635
|
+
return target;
|
|
636
|
+
}
|
|
637
|
+
throwUnsupported("Unable to define property [" + objToString(key) + "] on " + dumpObj(target));
|
|
638
|
+
}
|
|
639
|
+
function objDefineAccessors(target, prop, getProp, setProp, configurable) {
|
|
640
|
+
if (_objDefineProperty$1) {
|
|
641
|
+
try {
|
|
642
|
+
var descriptor = {
|
|
643
|
+
enumerable: true,
|
|
644
|
+
configurable: isUndefined(configurable) ? true : configurable
|
|
645
|
+
};
|
|
646
|
+
if (getProp) {
|
|
647
|
+
descriptor.get = getProp;
|
|
648
|
+
}
|
|
649
|
+
if (setProp) {
|
|
650
|
+
descriptor.set = setProp;
|
|
651
|
+
}
|
|
652
|
+
return objDefineProp(target, prop, descriptor);
|
|
653
|
+
}
|
|
654
|
+
catch (e) {
|
|
655
|
+
throwUnsupported("Unable to define accessors for [" + objToString(prop) + "] on " + dumpObj(target));
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
var strSubstring = _unwrapFunction("substring");
|
|
661
|
+
|
|
662
|
+
var ENDS_WITH = "endsWith";
|
|
663
|
+
var strEndsWith = StrProto[ENDS_WITH] ? _unwrapFunction(ENDS_WITH) : polyStrEndsWith;
|
|
664
|
+
function polyStrEndsWith(value, searchString, length) {
|
|
665
|
+
if (!isString(value)) {
|
|
666
|
+
throwTypeError("'" + dumpObj(value) + "' is not a string");
|
|
667
|
+
}
|
|
668
|
+
var searchValue = isString(searchString) ? searchString : "" + searchString;
|
|
669
|
+
var chkLen = searchValue[LENGTH];
|
|
670
|
+
var len = value[LENGTH];
|
|
671
|
+
var end = !isUndefined(length) && length < len ? length : len;
|
|
672
|
+
return strSubstring(value, end - chkLen, end) === searchValue;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
var strIndexOf = _unwrapFunction(INDEX_OF);
|
|
676
|
+
|
|
677
|
+
function _createTrimFn(exp) {
|
|
678
|
+
return function _doTrim(value) {
|
|
679
|
+
if (isNullOrUndefined(value)) {
|
|
680
|
+
throwTypeError("strTrim called [" + dumpObj(value) + "]");
|
|
681
|
+
}
|
|
682
|
+
if (value && value.replace) {
|
|
683
|
+
value = value.replace(exp, "");
|
|
684
|
+
}
|
|
685
|
+
return value;
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
|
|
689
|
+
|
|
690
|
+
var TRIM = "trim";
|
|
691
|
+
var strTrim = StrProto[TRIM] ? _unwrapFunction(TRIM) : polyStrTrim;
|
|
692
|
+
|
|
693
|
+
var createEnumStyle = createEnum;
|
|
694
|
+
var createValueMap = createTypeMap;
|
|
695
|
+
|
|
355
696
|
var _DYN_INITIALIZE$1 = "initialize";
|
|
356
697
|
var _DYN_NAME$2 = "name";
|
|
357
698
|
var _DYN_GET_NOTIFY_MGR = "getNotifyMgr";
|
|
@@ -384,21 +725,18 @@
|
|
|
384
725
|
var _DYN_SET_NEXT_PLUGIN = "setNextPlugin";
|
|
385
726
|
var _DYN_CREATE_NEW = "createNew";
|
|
386
727
|
var _DYN_COOKIE_CFG = "cookieCfg";
|
|
387
|
-
var _DYN_INDEX_OF$1 = "indexOf";
|
|
388
728
|
var _DYN_SUBSTRING$1 = "substring";
|
|
389
729
|
var _DYN_USER_AGENT = "userAgent";
|
|
390
730
|
var _DYN_SPLIT$1 = "split";
|
|
391
|
-
var _DYN_SET_ENABLED = "setEnabled";
|
|
392
|
-
var _DYN_REPLACE = "replace";
|
|
393
|
-
var _DYN_SUBSTR = "substr";
|
|
394
731
|
var _DYN_NODE_TYPE = "nodeType";
|
|
395
732
|
var _DYN_APPLY = "apply";
|
|
733
|
+
var _DYN_REPLACE = "replace";
|
|
396
734
|
var _DYN_ENABLE_DEBUG_EXCEPTI4 = "enableDebugExceptions";
|
|
397
735
|
var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
|
|
398
736
|
var _DYN_TO_LOWER_CASE$1 = "toLowerCase";
|
|
399
|
-
var _DYN_CALL = "call";
|
|
400
737
|
var _DYN_TYPE = "type";
|
|
401
738
|
var _DYN_HANDLER = "handler";
|
|
739
|
+
var _DYN_CALL = "call";
|
|
402
740
|
var _DYN_LISTENERS = "listeners";
|
|
403
741
|
var _DYN_IS_CHILD_EVT = "isChildEvt";
|
|
404
742
|
var _DYN_GET_CTX = "getCtx";
|
|
@@ -425,67 +763,68 @@
|
|
|
425
763
|
var STR_WARN_TO_CONSOLE = "warnToConsole";
|
|
426
764
|
var STR_GET_PERF_MGR = "getPerfMgr";
|
|
427
765
|
|
|
766
|
+
var listenerFuncs = ["eventsSent", "eventsDiscarded", "eventsSendRequest", "perfEvent"];
|
|
767
|
+
var _aiNamespace = null;
|
|
768
|
+
var _debugListener;
|
|
769
|
+
function _listenerProxyFunc(name, config) {
|
|
770
|
+
return function () {
|
|
771
|
+
var args = arguments;
|
|
772
|
+
var dbgExt = getDebugExt(config);
|
|
773
|
+
if (dbgExt) {
|
|
774
|
+
var listener = dbgExt.listener;
|
|
775
|
+
if (listener && listener[name]) {
|
|
776
|
+
listener[name][_DYN_APPLY ](listener, args);
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
function _getExtensionNamespace() {
|
|
782
|
+
var target = getInst("Microsoft");
|
|
783
|
+
if (target) {
|
|
784
|
+
_aiNamespace = target["ApplicationInsights"];
|
|
785
|
+
}
|
|
786
|
+
return _aiNamespace;
|
|
787
|
+
}
|
|
788
|
+
function getDebugExt(config) {
|
|
789
|
+
var ns = _aiNamespace;
|
|
790
|
+
if (!ns && config.disableDbgExt !== true) {
|
|
791
|
+
ns = _aiNamespace || _getExtensionNamespace();
|
|
792
|
+
}
|
|
793
|
+
return ns ? ns["ChromeDbgExt"] : null;
|
|
794
|
+
}
|
|
795
|
+
function getDebugListener(config) {
|
|
796
|
+
if (!_debugListener) {
|
|
797
|
+
_debugListener = {};
|
|
798
|
+
for (var lp = 0; lp < listenerFuncs[_DYN_LENGTH$2 ]; lp++) {
|
|
799
|
+
_debugListener[listenerFuncs[lp]] = _listenerProxyFunc(listenerFuncs[lp], config);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
return _debugListener;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
var cString = "String";
|
|
806
|
+
var cObject = "Object";
|
|
428
807
|
var strToISOString = "toISOString";
|
|
429
|
-
var cStrEndsWith = "endsWith";
|
|
430
|
-
var cStrStartsWith = "startsWith";
|
|
431
|
-
var strIndexOf = "indexOf";
|
|
432
|
-
var strMap = "map";
|
|
433
|
-
var strReduce = "reduce";
|
|
434
|
-
var cStrTrim = "trim";
|
|
435
808
|
var strToString = "toString";
|
|
436
|
-
var
|
|
809
|
+
var strGetPrototypeOf = "getPrototypeOf";
|
|
437
810
|
var strConstructor = "constructor";
|
|
438
|
-
var _objDefineProperty$1 = ObjDefineProperty;
|
|
439
|
-
var _objFreeze = ObjClass.freeze;
|
|
440
|
-
ObjClass.seal;
|
|
441
|
-
var _objKeys = ObjClass.keys;
|
|
442
|
-
var StringProto = String[strShimPrototype];
|
|
443
|
-
var _strTrim = StringProto[cStrTrim];
|
|
444
|
-
var _strEndsWith = StringProto[cStrEndsWith];
|
|
445
|
-
StringProto[cStrStartsWith];
|
|
446
811
|
var DateProto = Date[strShimPrototype];
|
|
447
|
-
var
|
|
448
|
-
|
|
449
|
-
var
|
|
450
|
-
var
|
|
451
|
-
var _objFunctionString = _fnToString[_DYN_CALL ](ObjClass);
|
|
812
|
+
var _dateToISOString = DateProto[strToISOString] || _polyfillRequired("Date", strToISOString);
|
|
813
|
+
ObjProto$1[strToString] || _polyfillRequired(cObject, strToString);
|
|
814
|
+
var _fnToString = ObjHasOwnProperty[strToString] || _polyfillRequired(cString, strToString);
|
|
815
|
+
var _objFunctionString = _fnToString[_DYN_CALL ](ObjClass$1);
|
|
452
816
|
var rCamelCase = /-([a-z])/g;
|
|
453
817
|
var rNormalizeInvalid = /([^\w\d_$])/g;
|
|
454
818
|
var rLeadingNumeric = /^(\d+[\w\d_$])/;
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
return _objGetPrototypeOf(target);
|
|
460
|
-
}
|
|
461
|
-
var newProto = target[str__Proto] || target[strShimPrototype] || target[strConstructor];
|
|
462
|
-
if (newProto) {
|
|
463
|
-
return newProto;
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
return null;
|
|
467
|
-
}
|
|
468
|
-
function isTypeof(value, theType) {
|
|
469
|
-
return typeof value === theType;
|
|
470
|
-
}
|
|
471
|
-
function isUndefined(value) {
|
|
472
|
-
return value === undefined || typeof value === strShimUndefined;
|
|
473
|
-
}
|
|
474
|
-
function isNullOrUndefined(value) {
|
|
475
|
-
return (value === null || isUndefined(value));
|
|
819
|
+
function _polyfillRequired(object, name) {
|
|
820
|
+
return function () {
|
|
821
|
+
throwUnsupported("Polyfill required for [" + name + "]");
|
|
822
|
+
};
|
|
476
823
|
}
|
|
824
|
+
var _getObjProto = Object[strGetPrototypeOf] || _polyfillRequired(cObject, strGetPrototypeOf);
|
|
477
825
|
function isNotNullOrUndefined(value) {
|
|
478
826
|
return !isNullOrUndefined(value);
|
|
479
827
|
}
|
|
480
|
-
function hasOwnProperty(obj, prop) {
|
|
481
|
-
return !!(obj && ObjHasOwnProperty[_DYN_CALL ](obj, prop));
|
|
482
|
-
}
|
|
483
|
-
function isObject(value) {
|
|
484
|
-
return !!(value && typeof value === strShimObject);
|
|
485
|
-
}
|
|
486
|
-
function isFunction(value) {
|
|
487
|
-
return !!(value && typeof value === strShimFunction);
|
|
488
|
-
}
|
|
489
828
|
function normalizeJsName(name) {
|
|
490
829
|
var value = name;
|
|
491
830
|
if (value && isString(value)) {
|
|
@@ -499,67 +838,16 @@
|
|
|
499
838
|
}
|
|
500
839
|
return value;
|
|
501
840
|
}
|
|
502
|
-
function
|
|
503
|
-
if (
|
|
504
|
-
|
|
505
|
-
if (ObjHasOwnProperty[_DYN_CALL ](target, prop)) {
|
|
506
|
-
callbackfn[_DYN_CALL ](target, prop, target[prop]);
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
function strEndsWith(value, search) {
|
|
512
|
-
var result = false;
|
|
513
|
-
if (value && search && !(result = value === search)) {
|
|
514
|
-
result = _strEndsWith ? value[cStrEndsWith](search) : _strEndsWithPoly(value, search);
|
|
841
|
+
function strContains(value, search) {
|
|
842
|
+
if (value && search) {
|
|
843
|
+
return strIndexOf(value, search) !== -1;
|
|
515
844
|
}
|
|
516
|
-
return
|
|
845
|
+
return false;
|
|
517
846
|
}
|
|
518
|
-
function
|
|
519
|
-
var result = false;
|
|
520
|
-
var searchLen = search ? search[_DYN_LENGTH$2 ] : 0;
|
|
521
|
-
var valLen = value ? value[_DYN_LENGTH$2 ] : 0;
|
|
522
|
-
if (searchLen && valLen && valLen >= searchLen && !(result = value === search)) {
|
|
523
|
-
var pos = valLen - 1;
|
|
524
|
-
for (var lp = searchLen - 1; lp >= 0; lp--) {
|
|
525
|
-
if (value[pos] != search[lp]) {
|
|
526
|
-
return false;
|
|
527
|
-
}
|
|
528
|
-
pos--;
|
|
529
|
-
}
|
|
530
|
-
result = true;
|
|
531
|
-
}
|
|
532
|
-
return result;
|
|
533
|
-
}
|
|
534
|
-
function strContains(value, search) {
|
|
535
|
-
if (value && search) {
|
|
536
|
-
return value[_DYN_INDEX_OF$1 ](search) !== -1;
|
|
537
|
-
}
|
|
538
|
-
return false;
|
|
539
|
-
}
|
|
540
|
-
function isDate(obj) {
|
|
541
|
-
return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Date]");
|
|
542
|
-
}
|
|
543
|
-
var isArray = _isArray || _isArrayPoly;
|
|
544
|
-
function _isArrayPoly(obj) {
|
|
545
|
-
return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Array]");
|
|
546
|
-
}
|
|
547
|
-
function isError(obj) {
|
|
548
|
-
return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Error]");
|
|
549
|
-
}
|
|
550
|
-
function isString(value) {
|
|
551
|
-
return typeof value === "string";
|
|
552
|
-
}
|
|
553
|
-
function isNumber(value) {
|
|
554
|
-
return typeof value === "number";
|
|
555
|
-
}
|
|
556
|
-
function isBoolean(value) {
|
|
557
|
-
return typeof value === "boolean";
|
|
558
|
-
}
|
|
559
|
-
function isPlainObject(value) {
|
|
847
|
+
function isPlainObject(value) {
|
|
560
848
|
var result = false;
|
|
561
849
|
if (value && typeof value === "object") {
|
|
562
|
-
var proto =
|
|
850
|
+
var proto = _getObjProto(value);
|
|
563
851
|
if (!proto) {
|
|
564
852
|
result = true;
|
|
565
853
|
}
|
|
@@ -573,184 +861,8 @@
|
|
|
573
861
|
return result;
|
|
574
862
|
}
|
|
575
863
|
function toISOString(date) {
|
|
576
|
-
|
|
577
|
-
return _dataToISOString ? date[strToISOString]() : _toISOStringPoly(date);
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
function _toISOStringPoly(date) {
|
|
581
|
-
if (date && date.getUTCFullYear) {
|
|
582
|
-
var pad = function (num) {
|
|
583
|
-
var r = String(num);
|
|
584
|
-
if (r[_DYN_LENGTH$2 ] === 1) {
|
|
585
|
-
r = "0" + r;
|
|
586
|
-
}
|
|
587
|
-
return r;
|
|
588
|
-
};
|
|
589
|
-
return date.getUTCFullYear()
|
|
590
|
-
+ "-" + pad(date.getUTCMonth() + 1)
|
|
591
|
-
+ "-" + pad(date.getUTCDate())
|
|
592
|
-
+ "T" + pad(date.getUTCHours())
|
|
593
|
-
+ ":" + pad(date.getUTCMinutes())
|
|
594
|
-
+ ":" + pad(date.getUTCSeconds())
|
|
595
|
-
+ "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
|
|
596
|
-
+ "Z";
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
function arrForEach(arr, callbackfn, thisArg) {
|
|
600
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
601
|
-
try {
|
|
602
|
-
for (var idx = 0; idx < len; idx++) {
|
|
603
|
-
if (idx in arr) {
|
|
604
|
-
if (callbackfn[_DYN_CALL ](thisArg || arr, arr[idx], idx, arr) === -1) {
|
|
605
|
-
break;
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
catch (e) {
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
function arrIndexOf(arr, searchElement, fromIndex) {
|
|
614
|
-
if (arr) {
|
|
615
|
-
if (arr[strIndexOf]) {
|
|
616
|
-
return arr[strIndexOf](searchElement, fromIndex);
|
|
617
|
-
}
|
|
618
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
619
|
-
var from = fromIndex || 0;
|
|
620
|
-
try {
|
|
621
|
-
for (var lp = Math.max(from >= 0 ? from : len - Math.abs(from), 0); lp < len; lp++) {
|
|
622
|
-
if (lp in arr && arr[lp] === searchElement) {
|
|
623
|
-
return lp;
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
catch (e) {
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
return -1;
|
|
631
|
-
}
|
|
632
|
-
function arrMap(arr, callbackfn, thisArg) {
|
|
633
|
-
var results;
|
|
634
|
-
if (arr) {
|
|
635
|
-
if (arr[strMap]) {
|
|
636
|
-
return arr[strMap](callbackfn, thisArg);
|
|
637
|
-
}
|
|
638
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
639
|
-
var _this = thisArg || arr;
|
|
640
|
-
results = new Array(len);
|
|
641
|
-
try {
|
|
642
|
-
for (var lp = 0; lp < len; lp++) {
|
|
643
|
-
if (lp in arr) {
|
|
644
|
-
results[lp] = callbackfn[_DYN_CALL ](_this, arr[lp], arr);
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
catch (e) {
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
return results;
|
|
652
|
-
}
|
|
653
|
-
function arrReduce(arr, callbackfn, initialValue) {
|
|
654
|
-
var value;
|
|
655
|
-
if (arr) {
|
|
656
|
-
if (arr[strReduce]) {
|
|
657
|
-
return arr[strReduce](callbackfn, initialValue);
|
|
658
|
-
}
|
|
659
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
660
|
-
var lp = 0;
|
|
661
|
-
if (arguments[_DYN_LENGTH$2 ] >= 3) {
|
|
662
|
-
value = arguments[2];
|
|
663
|
-
}
|
|
664
|
-
else {
|
|
665
|
-
while (lp < len && !(lp in arr)) {
|
|
666
|
-
lp++;
|
|
667
|
-
}
|
|
668
|
-
value = arr[lp++];
|
|
669
|
-
}
|
|
670
|
-
while (lp < len) {
|
|
671
|
-
if (lp in arr) {
|
|
672
|
-
value = callbackfn(value, arr[lp], lp, arr);
|
|
673
|
-
}
|
|
674
|
-
lp++;
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
return value;
|
|
864
|
+
return _dateToISOString[_DYN_CALL ](date);
|
|
678
865
|
}
|
|
679
|
-
function strTrim(str) {
|
|
680
|
-
if (str) {
|
|
681
|
-
str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str[_DYN_REPLACE ] ? str[_DYN_REPLACE ](/^\s+|\s+$/g, STR_EMPTY) : str);
|
|
682
|
-
}
|
|
683
|
-
return str;
|
|
684
|
-
}
|
|
685
|
-
var _objKeysHasDontEnumBug = !({ toString: null }).propertyIsEnumerable("toString");
|
|
686
|
-
var _objKeysDontEnums = [
|
|
687
|
-
"toString",
|
|
688
|
-
"toLocaleString",
|
|
689
|
-
"valueOf",
|
|
690
|
-
"hasOwnProperty",
|
|
691
|
-
"isPrototypeOf",
|
|
692
|
-
"propertyIsEnumerable",
|
|
693
|
-
"constructor"
|
|
694
|
-
];
|
|
695
|
-
function objKeys(obj) {
|
|
696
|
-
var objType = typeof obj;
|
|
697
|
-
if (objType !== strShimFunction && (objType !== strShimObject || obj === null)) {
|
|
698
|
-
throwTypeError("objKeys called on non-object");
|
|
699
|
-
}
|
|
700
|
-
if (!_objKeysHasDontEnumBug && _objKeys) {
|
|
701
|
-
return _objKeys(obj);
|
|
702
|
-
}
|
|
703
|
-
var result = [];
|
|
704
|
-
for (var prop in obj) {
|
|
705
|
-
if (obj && ObjHasOwnProperty[_DYN_CALL ](obj, prop)) {
|
|
706
|
-
result[_DYN_PUSH$1 ](prop);
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
if (_objKeysHasDontEnumBug) {
|
|
710
|
-
var dontEnumsLength = _objKeysDontEnums[_DYN_LENGTH$2 ];
|
|
711
|
-
for (var lp = 0; lp < dontEnumsLength; lp++) {
|
|
712
|
-
if (obj && ObjHasOwnProperty[_DYN_CALL ](obj, _objKeysDontEnums[lp])) {
|
|
713
|
-
result[_DYN_PUSH$1 ](_objKeysDontEnums[lp]);
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
return result;
|
|
718
|
-
}
|
|
719
|
-
function objDefineAccessors(target, prop, getProp, setProp) {
|
|
720
|
-
if (_objDefineProperty$1) {
|
|
721
|
-
try {
|
|
722
|
-
var descriptor = {
|
|
723
|
-
enumerable: true,
|
|
724
|
-
configurable: true
|
|
725
|
-
};
|
|
726
|
-
if (getProp) {
|
|
727
|
-
descriptor.get = getProp;
|
|
728
|
-
}
|
|
729
|
-
if (setProp) {
|
|
730
|
-
descriptor.set = setProp;
|
|
731
|
-
}
|
|
732
|
-
_objDefineProperty$1(target, prop, descriptor);
|
|
733
|
-
return true;
|
|
734
|
-
}
|
|
735
|
-
catch (e) {
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
return false;
|
|
739
|
-
}
|
|
740
|
-
function _doNothing(value) {
|
|
741
|
-
return value;
|
|
742
|
-
}
|
|
743
|
-
function deepFreeze(obj) {
|
|
744
|
-
if (_objFreeze) {
|
|
745
|
-
objForEachKey(obj, function (name, value) {
|
|
746
|
-
if (isArray(value) || isObject(value)) {
|
|
747
|
-
_objFreeze(value);
|
|
748
|
-
}
|
|
749
|
-
});
|
|
750
|
-
}
|
|
751
|
-
return objFreeze(obj);
|
|
752
|
-
}
|
|
753
|
-
var objFreeze = _objFreeze || _doNothing;
|
|
754
866
|
function dateNow() {
|
|
755
867
|
var dt = Date;
|
|
756
868
|
return dt.now ? dt.now() : new dt().getTime();
|
|
@@ -789,12 +901,6 @@
|
|
|
789
901
|
function getCfgValue(theValue, defaultValue) {
|
|
790
902
|
return !isNullOrUndefined(theValue) ? theValue : defaultValue;
|
|
791
903
|
}
|
|
792
|
-
function isTruthy(value) {
|
|
793
|
-
return !!value;
|
|
794
|
-
}
|
|
795
|
-
function throwError(message) {
|
|
796
|
-
throw new Error(message);
|
|
797
|
-
}
|
|
798
904
|
function _createProxyFunction(source, funcName) {
|
|
799
905
|
var srcFunc = null;
|
|
800
906
|
var src = null;
|
|
@@ -834,10 +940,10 @@
|
|
|
834
940
|
function createClassFromInterface(defaults) {
|
|
835
941
|
return /** @class */ (function () {
|
|
836
942
|
function class_1() {
|
|
837
|
-
var
|
|
943
|
+
var _this = this;
|
|
838
944
|
if (defaults) {
|
|
839
945
|
objForEachKey(defaults, function (field, value) {
|
|
840
|
-
|
|
946
|
+
_this[field] = value;
|
|
841
947
|
});
|
|
842
948
|
}
|
|
843
949
|
}
|
|
@@ -846,7 +952,7 @@
|
|
|
846
952
|
}
|
|
847
953
|
function optimizeObject(theObject) {
|
|
848
954
|
if (theObject && ObjAssign) {
|
|
849
|
-
theObject = ObjClass(ObjAssign({}, theObject));
|
|
955
|
+
theObject = ObjClass$1(ObjAssign({}, theObject));
|
|
850
956
|
}
|
|
851
957
|
return theObject;
|
|
852
958
|
}
|
|
@@ -895,30 +1001,9 @@
|
|
|
895
1001
|
return extended;
|
|
896
1002
|
}
|
|
897
1003
|
|
|
898
|
-
function createEnumStyle(values) {
|
|
899
|
-
var enumClass = {};
|
|
900
|
-
objForEachKey(values, function (field, value) {
|
|
901
|
-
enumClass[field] = value;
|
|
902
|
-
enumClass[value] = field;
|
|
903
|
-
});
|
|
904
|
-
return deepFreeze(enumClass);
|
|
905
|
-
}
|
|
906
|
-
function createValueMap(values) {
|
|
907
|
-
var mapClass = {};
|
|
908
|
-
objForEachKey(values, function (field, value) {
|
|
909
|
-
mapClass[field] = value[1];
|
|
910
|
-
mapClass[value[0]] = value[1];
|
|
911
|
-
});
|
|
912
|
-
return deepFreeze(mapClass);
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
var strWindow = "window";
|
|
916
|
-
var strDocument = "document";
|
|
917
1004
|
var strDocumentMode = "documentMode";
|
|
918
|
-
var strNavigator = "navigator";
|
|
919
1005
|
var strLocation = "location";
|
|
920
1006
|
var strConsole = "console";
|
|
921
|
-
var strPerformance = "performance";
|
|
922
1007
|
var strJSON = "JSON";
|
|
923
1008
|
var strCrypto = "crypto";
|
|
924
1009
|
var strMsCrypto = "msCrypto";
|
|
@@ -955,46 +1040,9 @@
|
|
|
955
1040
|
}
|
|
956
1041
|
return supported;
|
|
957
1042
|
}
|
|
958
|
-
function getGlobalInst(name) {
|
|
959
|
-
var gbl = getGlobal();
|
|
960
|
-
if (gbl && gbl[name]) {
|
|
961
|
-
return gbl[name];
|
|
962
|
-
}
|
|
963
|
-
if (name === strWindow && hasWindow()) {
|
|
964
|
-
return window;
|
|
965
|
-
}
|
|
966
|
-
return null;
|
|
967
|
-
}
|
|
968
|
-
function hasWindow() {
|
|
969
|
-
return Boolean(typeof window === strShimObject && window);
|
|
970
|
-
}
|
|
971
|
-
function getWindow() {
|
|
972
|
-
if (hasWindow()) {
|
|
973
|
-
return window;
|
|
974
|
-
}
|
|
975
|
-
return getGlobalInst(strWindow);
|
|
976
|
-
}
|
|
977
|
-
function hasDocument() {
|
|
978
|
-
return Boolean(typeof document === strShimObject && document);
|
|
979
|
-
}
|
|
980
|
-
function getDocument() {
|
|
981
|
-
if (hasDocument()) {
|
|
982
|
-
return document;
|
|
983
|
-
}
|
|
984
|
-
return getGlobalInst(strDocument);
|
|
985
|
-
}
|
|
986
|
-
function hasNavigator() {
|
|
987
|
-
return Boolean(typeof navigator === strShimObject && navigator);
|
|
988
|
-
}
|
|
989
|
-
function getNavigator() {
|
|
990
|
-
if (hasNavigator()) {
|
|
991
|
-
return navigator;
|
|
992
|
-
}
|
|
993
|
-
return getGlobalInst(strNavigator);
|
|
994
|
-
}
|
|
995
1043
|
function getLocation(checkForMock) {
|
|
996
1044
|
if (checkForMock && _enableMocks) {
|
|
997
|
-
var mockLocation =
|
|
1045
|
+
var mockLocation = getInst("__mockLocation");
|
|
998
1046
|
if (mockLocation) {
|
|
999
1047
|
return mockLocation;
|
|
1000
1048
|
}
|
|
@@ -1002,31 +1050,28 @@
|
|
|
1002
1050
|
if (typeof location === strShimObject && location) {
|
|
1003
1051
|
return location;
|
|
1004
1052
|
}
|
|
1005
|
-
return
|
|
1053
|
+
return getInst(strLocation);
|
|
1006
1054
|
}
|
|
1007
1055
|
function getConsole() {
|
|
1008
1056
|
if (typeof console !== strShimUndefined) {
|
|
1009
1057
|
return console;
|
|
1010
1058
|
}
|
|
1011
|
-
return
|
|
1012
|
-
}
|
|
1013
|
-
function getPerformance() {
|
|
1014
|
-
return getGlobalInst(strPerformance);
|
|
1059
|
+
return getInst(strConsole);
|
|
1015
1060
|
}
|
|
1016
1061
|
function hasJSON() {
|
|
1017
|
-
return Boolean((typeof JSON === strShimObject && JSON) ||
|
|
1062
|
+
return Boolean((typeof JSON === strShimObject && JSON) || getInst(strJSON) !== null);
|
|
1018
1063
|
}
|
|
1019
1064
|
function getJSON() {
|
|
1020
1065
|
if (hasJSON()) {
|
|
1021
|
-
return JSON ||
|
|
1066
|
+
return JSON || getInst(strJSON);
|
|
1022
1067
|
}
|
|
1023
1068
|
return null;
|
|
1024
1069
|
}
|
|
1025
1070
|
function getCrypto() {
|
|
1026
|
-
return
|
|
1071
|
+
return getInst(strCrypto);
|
|
1027
1072
|
}
|
|
1028
1073
|
function getMsCrypto() {
|
|
1029
|
-
return
|
|
1074
|
+
return getInst(strMsCrypto);
|
|
1030
1075
|
}
|
|
1031
1076
|
function isIE() {
|
|
1032
1077
|
var nav = getNavigator();
|
|
@@ -1056,17 +1101,6 @@
|
|
|
1056
1101
|
}
|
|
1057
1102
|
return null;
|
|
1058
1103
|
}
|
|
1059
|
-
function dumpObj(object) {
|
|
1060
|
-
var objectTypeDump = Object[strShimPrototype].toString[_DYN_CALL ](object);
|
|
1061
|
-
var propertyValueDump = STR_EMPTY;
|
|
1062
|
-
if (objectTypeDump === "[object Error]") {
|
|
1063
|
-
propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object[_DYN_NAME$2 ] + "'";
|
|
1064
|
-
}
|
|
1065
|
-
else if (hasJSON()) {
|
|
1066
|
-
propertyValueDump = getJSON().stringify(object);
|
|
1067
|
-
}
|
|
1068
|
-
return objectTypeDump + propertyValueDump;
|
|
1069
|
-
}
|
|
1070
1104
|
function isBeaconsSupported() {
|
|
1071
1105
|
if (_beaconsSupported === null) {
|
|
1072
1106
|
_beaconsSupported = hasNavigator() && Boolean(getNavigator().sendBeacon);
|
|
@@ -1076,8 +1110,8 @@
|
|
|
1076
1110
|
function isFetchSupported(withKeepAlive) {
|
|
1077
1111
|
var isSupported = false;
|
|
1078
1112
|
try {
|
|
1079
|
-
isSupported = !!
|
|
1080
|
-
var request =
|
|
1113
|
+
isSupported = !!getInst("fetch");
|
|
1114
|
+
var request = getInst("Request");
|
|
1081
1115
|
if (isSupported && withKeepAlive && request) {
|
|
1082
1116
|
isSupported = _hasProperty(request, "keepalive");
|
|
1083
1117
|
}
|
|
@@ -1090,7 +1124,7 @@
|
|
|
1090
1124
|
if (_useXDomainRequest === null) {
|
|
1091
1125
|
_useXDomainRequest = (typeof XDomainRequest !== strShimUndefined);
|
|
1092
1126
|
if (_useXDomainRequest && isXhrSupported()) {
|
|
1093
|
-
_useXDomainRequest = _useXDomainRequest && !_hasProperty(
|
|
1127
|
+
_useXDomainRequest = _useXDomainRequest && !_hasProperty(getInst(strXMLHttpRequest), "withCredentials");
|
|
1094
1128
|
}
|
|
1095
1129
|
}
|
|
1096
1130
|
return _useXDomainRequest;
|
|
@@ -1098,7 +1132,7 @@
|
|
|
1098
1132
|
function isXhrSupported() {
|
|
1099
1133
|
var isSupported = false;
|
|
1100
1134
|
try {
|
|
1101
|
-
var xmlHttpRequest =
|
|
1135
|
+
var xmlHttpRequest = getInst(strXMLHttpRequest);
|
|
1102
1136
|
isSupported = !!xmlHttpRequest;
|
|
1103
1137
|
}
|
|
1104
1138
|
catch (e) {
|
|
@@ -1106,45 +1140,6 @@
|
|
|
1106
1140
|
return isSupported;
|
|
1107
1141
|
}
|
|
1108
1142
|
|
|
1109
|
-
var listenerFuncs = ["eventsSent", "eventsDiscarded", "eventsSendRequest", "perfEvent"];
|
|
1110
|
-
var _aiNamespace = null;
|
|
1111
|
-
var _debugListener;
|
|
1112
|
-
function _listenerProxyFunc(name, config) {
|
|
1113
|
-
return function () {
|
|
1114
|
-
var args = arguments;
|
|
1115
|
-
var dbgExt = getDebugExt(config);
|
|
1116
|
-
if (dbgExt) {
|
|
1117
|
-
var listener = dbgExt.listener;
|
|
1118
|
-
if (listener && listener[name]) {
|
|
1119
|
-
listener[name][_DYN_APPLY ](listener, args);
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
};
|
|
1123
|
-
}
|
|
1124
|
-
function _getExtensionNamespace() {
|
|
1125
|
-
var target = getGlobalInst("Microsoft");
|
|
1126
|
-
if (target) {
|
|
1127
|
-
_aiNamespace = target["ApplicationInsights"];
|
|
1128
|
-
}
|
|
1129
|
-
return _aiNamespace;
|
|
1130
|
-
}
|
|
1131
|
-
function getDebugExt(config) {
|
|
1132
|
-
var ns = _aiNamespace;
|
|
1133
|
-
if (!ns && config.disableDbgExt !== true) {
|
|
1134
|
-
ns = _aiNamespace || _getExtensionNamespace();
|
|
1135
|
-
}
|
|
1136
|
-
return ns ? ns["ChromeDbgExt"] : null;
|
|
1137
|
-
}
|
|
1138
|
-
function getDebugListener(config) {
|
|
1139
|
-
if (!_debugListener) {
|
|
1140
|
-
_debugListener = {};
|
|
1141
|
-
for (var lp = 0; lp < listenerFuncs[_DYN_LENGTH$2 ]; lp++) {
|
|
1142
|
-
_debugListener[listenerFuncs[lp]] = _listenerProxyFunc(listenerFuncs[lp], config);
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
return _debugListener;
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
1143
|
var AiNonUserActionablePrefix = "AI (Internal): ";
|
|
1149
1144
|
var AiUserActionablePrefix = "AI: ";
|
|
1150
1145
|
var AIInternalMessagePrefix = "AITR_";
|
|
@@ -1314,14 +1309,13 @@
|
|
|
1314
1309
|
var PerfEvent = /** @class */ (function () {
|
|
1315
1310
|
function PerfEvent(name, payloadDetails, isAsync) {
|
|
1316
1311
|
var _self = this;
|
|
1317
|
-
var accessorDefined = false;
|
|
1318
1312
|
_self.start = dateNow();
|
|
1319
1313
|
_self[_DYN_NAME$2 ] = name;
|
|
1320
1314
|
_self[_DYN_IS_ASYNC ] = isAsync;
|
|
1321
1315
|
_self[_DYN_IS_CHILD_EVT ] = function () { return false; };
|
|
1322
1316
|
if (isFunction(payloadDetails)) {
|
|
1323
1317
|
var theDetails_1;
|
|
1324
|
-
|
|
1318
|
+
objDefineAccessors(_self, "payload", function () {
|
|
1325
1319
|
if (!theDetails_1 && isFunction(payloadDetails)) {
|
|
1326
1320
|
theDetails_1 = payloadDetails();
|
|
1327
1321
|
payloadDetails = null;
|
|
@@ -1369,9 +1363,6 @@
|
|
|
1369
1363
|
_self[_DYN_TIME ] = dateNow() - _self.start;
|
|
1370
1364
|
_self.exTime = _self[_DYN_TIME ] - childTime;
|
|
1371
1365
|
_self[_DYN_COMPLETE ] = function () { };
|
|
1372
|
-
if (!accessorDefined && isFunction(payloadDetails)) {
|
|
1373
|
-
_self.payload = payloadDetails();
|
|
1374
|
-
}
|
|
1375
1366
|
};
|
|
1376
1367
|
}
|
|
1377
1368
|
PerfEvent.ParentContextKey = "parent";
|
|
@@ -1475,12 +1466,6 @@
|
|
|
1475
1466
|
catch (e) {
|
|
1476
1467
|
}
|
|
1477
1468
|
}
|
|
1478
|
-
function randomValue(maxValue) {
|
|
1479
|
-
if (maxValue > 0) {
|
|
1480
|
-
return Math.floor((random32() / MaxUInt32) * (maxValue + 1)) >>> 0;
|
|
1481
|
-
}
|
|
1482
|
-
return 0;
|
|
1483
|
-
}
|
|
1484
1469
|
function random32(signed) {
|
|
1485
1470
|
var value = 0;
|
|
1486
1471
|
var c = getCrypto() || getMsCrypto();
|
|
@@ -1496,634 +1481,108 @@
|
|
|
1496
1481
|
if (value === 0) {
|
|
1497
1482
|
value = Math.floor((UInt32Mask * Math.random()) | 0);
|
|
1498
1483
|
}
|
|
1499
|
-
if (!signed) {
|
|
1500
|
-
value >>>= 0;
|
|
1501
|
-
}
|
|
1502
|
-
return value;
|
|
1503
|
-
}
|
|
1504
|
-
function mwcRandomSeed(value) {
|
|
1505
|
-
if (!value) {
|
|
1506
|
-
_autoSeedMwc();
|
|
1507
|
-
}
|
|
1508
|
-
else {
|
|
1509
|
-
_mwcSeed(value);
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
function mwcRandom32(signed) {
|
|
1513
|
-
_mwcZ = (36969 * (_mwcZ & 0xFFFF) + (_mwcZ >> 16)) & MaxUInt32;
|
|
1514
|
-
_mwcW = (18000 * (_mwcW & 0xFFFF) + (_mwcW >> 16)) & MaxUInt32;
|
|
1515
|
-
var value = (((_mwcZ << 16) + (_mwcW & 0xFFFF)) >>> 0) & MaxUInt32 | 0;
|
|
1516
|
-
if (!signed) {
|
|
1517
|
-
value >>>= 0;
|
|
1518
|
-
}
|
|
1519
|
-
return value;
|
|
1520
|
-
}
|
|
1521
|
-
function newId(maxLength) {
|
|
1522
|
-
if (maxLength === void 0) { maxLength = 22; }
|
|
1523
|
-
var base64chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
1524
|
-
var number = random32() >>> 0;
|
|
1525
|
-
var chars = 0;
|
|
1526
|
-
var result = STR_EMPTY;
|
|
1527
|
-
while (result[_DYN_LENGTH$2 ] < maxLength) {
|
|
1528
|
-
chars++;
|
|
1529
|
-
result += base64chars.charAt(number & 0x3F);
|
|
1530
|
-
number >>>= 6;
|
|
1531
|
-
if (chars === 5) {
|
|
1532
|
-
number = (((random32() << 2) & 0xFFFFFFFF) | (number & 0x03)) >>> 0;
|
|
1533
|
-
chars = 0;
|
|
1534
|
-
}
|
|
1535
|
-
}
|
|
1536
|
-
return result;
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
var _objDefineProperty = ObjDefineProperty;
|
|
1540
|
-
var version = "3.0.0-beta.2208-03";
|
|
1541
|
-
var instanceName = "." + newId(6);
|
|
1542
|
-
var _dataUid = 0;
|
|
1543
|
-
function _createAccessor(target, prop, value) {
|
|
1544
|
-
if (_objDefineProperty) {
|
|
1545
|
-
try {
|
|
1546
|
-
_objDefineProperty(target, prop, {
|
|
1547
|
-
value: value,
|
|
1548
|
-
enumerable: false,
|
|
1549
|
-
configurable: true
|
|
1550
|
-
});
|
|
1551
|
-
return true;
|
|
1552
|
-
}
|
|
1553
|
-
catch (e) {
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
return false;
|
|
1557
|
-
}
|
|
1558
|
-
function _canAcceptData(target) {
|
|
1559
|
-
return target[_DYN_NODE_TYPE ] === 1 || target[_DYN_NODE_TYPE ] === 9 || !(+target[_DYN_NODE_TYPE ]);
|
|
1560
|
-
}
|
|
1561
|
-
function _getCache(data, target) {
|
|
1562
|
-
var theCache = target[data.id];
|
|
1563
|
-
if (!theCache) {
|
|
1564
|
-
theCache = {};
|
|
1565
|
-
try {
|
|
1566
|
-
if (_canAcceptData(target)) {
|
|
1567
|
-
if (!_createAccessor(target, data.id, theCache)) {
|
|
1568
|
-
target[data.id] = theCache;
|
|
1569
|
-
}
|
|
1570
|
-
}
|
|
1571
|
-
}
|
|
1572
|
-
catch (e) {
|
|
1573
|
-
}
|
|
1574
|
-
}
|
|
1575
|
-
return theCache;
|
|
1576
|
-
}
|
|
1577
|
-
function createUniqueNamespace(name, includeVersion) {
|
|
1578
|
-
if (includeVersion === void 0) { includeVersion = false; }
|
|
1579
|
-
return normalizeJsName(name + (_dataUid++) + (includeVersion ? "." + version : STR_EMPTY) + instanceName);
|
|
1580
|
-
}
|
|
1581
|
-
function createElmNodeData(name) {
|
|
1582
|
-
var data = {
|
|
1583
|
-
id: createUniqueNamespace("_aiData-" + (name || STR_EMPTY) + "." + version),
|
|
1584
|
-
accept: function (target) {
|
|
1585
|
-
return _canAcceptData(target);
|
|
1586
|
-
},
|
|
1587
|
-
get: function (target, name, defValue, addDefault) {
|
|
1588
|
-
var theCache = target[data.id];
|
|
1589
|
-
if (!theCache) {
|
|
1590
|
-
if (addDefault) {
|
|
1591
|
-
theCache = _getCache(data, target);
|
|
1592
|
-
theCache[normalizeJsName(name)] = defValue;
|
|
1593
|
-
}
|
|
1594
|
-
return defValue;
|
|
1595
|
-
}
|
|
1596
|
-
return theCache[normalizeJsName(name)];
|
|
1597
|
-
},
|
|
1598
|
-
kill: function (target, name) {
|
|
1599
|
-
if (target && target[name]) {
|
|
1600
|
-
try {
|
|
1601
|
-
delete target[name];
|
|
1602
|
-
}
|
|
1603
|
-
catch (e) {
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
};
|
|
1608
|
-
return data;
|
|
1609
|
-
}
|
|
1610
|
-
|
|
1611
|
-
var strToGMTString = "toGMTString";
|
|
1612
|
-
var strToUTCString = "toUTCString";
|
|
1613
|
-
var strCookie = "cookie";
|
|
1614
|
-
var strExpires = "expires";
|
|
1615
|
-
var strEnabled = "enabled";
|
|
1616
|
-
var strIsCookieUseDisabled = "isCookieUseDisabled";
|
|
1617
|
-
var strDisableCookiesUsage = "disableCookiesUsage";
|
|
1618
|
-
var strConfigCookieMgr = "_ckMgr";
|
|
1619
|
-
var _supportsCookies = null;
|
|
1620
|
-
var _allowUaSameSite = null;
|
|
1621
|
-
var _parsedCookieValue = null;
|
|
1622
|
-
var _doc = getDocument();
|
|
1623
|
-
var _cookieCache = {};
|
|
1624
|
-
var _globalCookieConfig = {};
|
|
1625
|
-
function _gblCookieMgr(config, logger) {
|
|
1626
|
-
var inst = createCookieMgr[strConfigCookieMgr] || _globalCookieConfig[strConfigCookieMgr];
|
|
1627
|
-
if (!inst) {
|
|
1628
|
-
inst = createCookieMgr[strConfigCookieMgr] = createCookieMgr(config, logger);
|
|
1629
|
-
_globalCookieConfig[strConfigCookieMgr] = inst;
|
|
1630
|
-
}
|
|
1631
|
-
return inst;
|
|
1632
|
-
}
|
|
1633
|
-
function _isMgrEnabled(cookieMgr) {
|
|
1634
|
-
if (cookieMgr) {
|
|
1635
|
-
return cookieMgr.isEnabled();
|
|
1636
|
-
}
|
|
1637
|
-
return true;
|
|
1638
|
-
}
|
|
1639
|
-
function _createCookieMgrConfig(rootConfig) {
|
|
1640
|
-
var cookieMgrCfg = rootConfig[_DYN_COOKIE_CFG ] = rootConfig[_DYN_COOKIE_CFG ] || {};
|
|
1641
|
-
setValue(cookieMgrCfg, "domain", rootConfig.cookieDomain, isNotNullOrUndefined, isNullOrUndefined);
|
|
1642
|
-
setValue(cookieMgrCfg, "path", rootConfig.cookiePath || "/", null, isNullOrUndefined);
|
|
1643
|
-
if (isNullOrUndefined(cookieMgrCfg[strEnabled])) {
|
|
1644
|
-
var cookieEnabled = void 0;
|
|
1645
|
-
if (!isUndefined(rootConfig[strIsCookieUseDisabled])) {
|
|
1646
|
-
cookieEnabled = !rootConfig[strIsCookieUseDisabled];
|
|
1647
|
-
}
|
|
1648
|
-
if (!isUndefined(rootConfig[strDisableCookiesUsage])) {
|
|
1649
|
-
cookieEnabled = !rootConfig[strDisableCookiesUsage];
|
|
1650
|
-
}
|
|
1651
|
-
cookieMgrCfg[strEnabled] = cookieEnabled;
|
|
1652
|
-
}
|
|
1653
|
-
return cookieMgrCfg;
|
|
1654
|
-
}
|
|
1655
|
-
function createCookieMgr(rootConfig, logger) {
|
|
1656
|
-
var _a;
|
|
1657
|
-
var cookieMgrConfig = _createCookieMgrConfig(rootConfig || _globalCookieConfig);
|
|
1658
|
-
var _path = cookieMgrConfig.path || "/";
|
|
1659
|
-
var _domain = cookieMgrConfig.domain;
|
|
1660
|
-
var _enabled = cookieMgrConfig[strEnabled] !== false;
|
|
1661
|
-
var cookieMgr = (_a = {
|
|
1662
|
-
isEnabled: function () {
|
|
1663
|
-
var enabled = _enabled && areCookiesSupported(logger);
|
|
1664
|
-
var gblManager = _globalCookieConfig[strConfigCookieMgr];
|
|
1665
|
-
if (enabled && gblManager && cookieMgr !== gblManager) {
|
|
1666
|
-
enabled = _isMgrEnabled(gblManager);
|
|
1667
|
-
}
|
|
1668
|
-
return enabled;
|
|
1669
|
-
}
|
|
1670
|
-
},
|
|
1671
|
-
_a[_DYN_SET_ENABLED ] = function (value) {
|
|
1672
|
-
_enabled = value !== false;
|
|
1673
|
-
},
|
|
1674
|
-
_a.set = function (name, value, maxAgeSec, domain, path) {
|
|
1675
|
-
var result = false;
|
|
1676
|
-
if (_isMgrEnabled(cookieMgr)) {
|
|
1677
|
-
var values = {};
|
|
1678
|
-
var theValue = strTrim(value || STR_EMPTY);
|
|
1679
|
-
var idx = theValue[_DYN_INDEX_OF$1 ](";");
|
|
1680
|
-
if (idx !== -1) {
|
|
1681
|
-
theValue = strTrim(value[_DYN_SUBSTRING$1 ](0, idx));
|
|
1682
|
-
values = _extractParts(value[_DYN_SUBSTRING$1 ](idx + 1));
|
|
1683
|
-
}
|
|
1684
|
-
setValue(values, "domain", domain || _domain, isTruthy, isUndefined);
|
|
1685
|
-
if (!isNullOrUndefined(maxAgeSec)) {
|
|
1686
|
-
var _isIE = isIE();
|
|
1687
|
-
if (isUndefined(values[strExpires])) {
|
|
1688
|
-
var nowMs = dateNow();
|
|
1689
|
-
var expireMs = nowMs + (maxAgeSec * 1000);
|
|
1690
|
-
if (expireMs > 0) {
|
|
1691
|
-
var expiry = new Date();
|
|
1692
|
-
expiry.setTime(expireMs);
|
|
1693
|
-
setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY, isTruthy);
|
|
1694
|
-
}
|
|
1695
|
-
}
|
|
1696
|
-
if (!_isIE) {
|
|
1697
|
-
setValue(values, "max-age", STR_EMPTY + maxAgeSec, null, isUndefined);
|
|
1698
|
-
}
|
|
1699
|
-
}
|
|
1700
|
-
var location_1 = getLocation();
|
|
1701
|
-
if (location_1 && location_1.protocol === "https:") {
|
|
1702
|
-
setValue(values, "secure", null, null, isUndefined);
|
|
1703
|
-
if (_allowUaSameSite === null) {
|
|
1704
|
-
_allowUaSameSite = !uaDisallowsSameSiteNone((getNavigator() || {})[_DYN_USER_AGENT ]);
|
|
1705
|
-
}
|
|
1706
|
-
if (_allowUaSameSite) {
|
|
1707
|
-
setValue(values, "SameSite", "None", null, isUndefined);
|
|
1708
|
-
}
|
|
1709
|
-
}
|
|
1710
|
-
setValue(values, "path", path || _path, null, isUndefined);
|
|
1711
|
-
var setCookieFn = cookieMgrConfig.setCookie || _setCookieValue;
|
|
1712
|
-
setCookieFn(name, _formatCookieValue(theValue, values));
|
|
1713
|
-
result = true;
|
|
1714
|
-
}
|
|
1715
|
-
return result;
|
|
1716
|
-
},
|
|
1717
|
-
_a.get = function (name) {
|
|
1718
|
-
var value = STR_EMPTY;
|
|
1719
|
-
if (_isMgrEnabled(cookieMgr)) {
|
|
1720
|
-
value = (cookieMgrConfig.getCookie || _getCookieValue)(name);
|
|
1721
|
-
}
|
|
1722
|
-
return value;
|
|
1723
|
-
},
|
|
1724
|
-
_a.del = function (name, path) {
|
|
1725
|
-
var result = false;
|
|
1726
|
-
if (_isMgrEnabled(cookieMgr)) {
|
|
1727
|
-
result = cookieMgr.purge(name, path);
|
|
1728
|
-
}
|
|
1729
|
-
return result;
|
|
1730
|
-
},
|
|
1731
|
-
_a.purge = function (name, path) {
|
|
1732
|
-
var _a;
|
|
1733
|
-
var result = false;
|
|
1734
|
-
if (areCookiesSupported(logger)) {
|
|
1735
|
-
var values = (_a = {},
|
|
1736
|
-
_a["path"] = path ? path : "/",
|
|
1737
|
-
_a[strExpires] = "Thu, 01 Jan 1970 00:00:01 GMT",
|
|
1738
|
-
_a);
|
|
1739
|
-
if (!isIE()) {
|
|
1740
|
-
values["max-age"] = "0";
|
|
1741
|
-
}
|
|
1742
|
-
var delCookie = cookieMgrConfig.delCookie || _setCookieValue;
|
|
1743
|
-
delCookie(name, _formatCookieValue(STR_EMPTY, values));
|
|
1744
|
-
result = true;
|
|
1745
|
-
}
|
|
1746
|
-
return result;
|
|
1747
|
-
},
|
|
1748
|
-
_a);
|
|
1749
|
-
cookieMgr[strConfigCookieMgr] = cookieMgr;
|
|
1750
|
-
return cookieMgr;
|
|
1751
|
-
}
|
|
1752
|
-
function areCookiesSupported(logger) {
|
|
1753
|
-
if (_supportsCookies === null) {
|
|
1754
|
-
_supportsCookies = false;
|
|
1755
|
-
try {
|
|
1756
|
-
var doc = _doc || {};
|
|
1757
|
-
_supportsCookies = doc[strCookie] !== undefined;
|
|
1758
|
-
}
|
|
1759
|
-
catch (e) {
|
|
1760
|
-
_throwInternal(logger, 2 , 68 , "Cannot access document.cookie - " + getExceptionName(e), { exception: dumpObj(e) });
|
|
1761
|
-
}
|
|
1762
|
-
}
|
|
1763
|
-
return _supportsCookies;
|
|
1764
|
-
}
|
|
1765
|
-
function _extractParts(theValue) {
|
|
1766
|
-
var values = {};
|
|
1767
|
-
if (theValue && theValue[_DYN_LENGTH$2 ]) {
|
|
1768
|
-
var parts = strTrim(theValue)[_DYN_SPLIT$1 ](";");
|
|
1769
|
-
arrForEach(parts, function (thePart) {
|
|
1770
|
-
thePart = strTrim(thePart || STR_EMPTY);
|
|
1771
|
-
if (thePart) {
|
|
1772
|
-
var idx = thePart[_DYN_INDEX_OF$1 ]("=");
|
|
1773
|
-
if (idx === -1) {
|
|
1774
|
-
values[thePart] = null;
|
|
1775
|
-
}
|
|
1776
|
-
else {
|
|
1777
|
-
values[strTrim(thePart[_DYN_SUBSTRING$1 ](0, idx))] = strTrim(thePart[_DYN_SUBSTRING$1 ](idx + 1));
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
});
|
|
1781
|
-
}
|
|
1782
|
-
return values;
|
|
1783
|
-
}
|
|
1784
|
-
function _formatDate(theDate, func) {
|
|
1785
|
-
if (isFunction(theDate[func])) {
|
|
1786
|
-
return theDate[func]();
|
|
1787
|
-
}
|
|
1788
|
-
return null;
|
|
1789
|
-
}
|
|
1790
|
-
function _formatCookieValue(value, values) {
|
|
1791
|
-
var cookieValue = value || STR_EMPTY;
|
|
1792
|
-
objForEachKey(values, function (name, theValue) {
|
|
1793
|
-
cookieValue += "; " + name + (!isNullOrUndefined(theValue) ? "=" + theValue : STR_EMPTY);
|
|
1794
|
-
});
|
|
1795
|
-
return cookieValue;
|
|
1796
|
-
}
|
|
1797
|
-
function _getCookieValue(name) {
|
|
1798
|
-
var cookieValue = STR_EMPTY;
|
|
1799
|
-
if (_doc) {
|
|
1800
|
-
var theCookie = _doc[strCookie] || STR_EMPTY;
|
|
1801
|
-
if (_parsedCookieValue !== theCookie) {
|
|
1802
|
-
_cookieCache = _extractParts(theCookie);
|
|
1803
|
-
_parsedCookieValue = theCookie;
|
|
1804
|
-
}
|
|
1805
|
-
cookieValue = strTrim(_cookieCache[name] || STR_EMPTY);
|
|
1806
|
-
}
|
|
1807
|
-
return cookieValue;
|
|
1808
|
-
}
|
|
1809
|
-
function _setCookieValue(name, cookieValue) {
|
|
1810
|
-
if (_doc) {
|
|
1811
|
-
_doc[strCookie] = name + "=" + cookieValue;
|
|
1812
|
-
}
|
|
1813
|
-
}
|
|
1814
|
-
function uaDisallowsSameSiteNone(userAgent) {
|
|
1815
|
-
if (!isString(userAgent)) {
|
|
1816
|
-
return false;
|
|
1817
|
-
}
|
|
1818
|
-
if (strContains(userAgent, "CPU iPhone OS 12") || strContains(userAgent, "iPad; CPU OS 12")) {
|
|
1819
|
-
return true;
|
|
1820
|
-
}
|
|
1821
|
-
if (strContains(userAgent, "Macintosh; Intel Mac OS X 10_14") && strContains(userAgent, "Version/") && strContains(userAgent, "Safari")) {
|
|
1822
|
-
return true;
|
|
1823
|
-
}
|
|
1824
|
-
if (strContains(userAgent, "Macintosh; Intel Mac OS X 10_14") && strEndsWith(userAgent, "AppleWebKit/605.1.15 (KHTML, like Gecko)")) {
|
|
1825
|
-
return true;
|
|
1826
|
-
}
|
|
1827
|
-
if (strContains(userAgent, "Chrome/5") || strContains(userAgent, "Chrome/6")) {
|
|
1828
|
-
return true;
|
|
1829
|
-
}
|
|
1830
|
-
if (strContains(userAgent, "UnrealEngine") && !strContains(userAgent, "Chrome")) {
|
|
1831
|
-
return true;
|
|
1832
|
-
}
|
|
1833
|
-
if (strContains(userAgent, "UCBrowser/12") || strContains(userAgent, "UCBrowser/11")) {
|
|
1834
|
-
return true;
|
|
1835
|
-
}
|
|
1836
|
-
return false;
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
var strOnPrefix = "on";
|
|
1840
|
-
var strAttachEvent = "attachEvent";
|
|
1841
|
-
var strAddEventHelper = "addEventListener";
|
|
1842
|
-
var strDetachEvent = "detachEvent";
|
|
1843
|
-
var strRemoveEventListener = "removeEventListener";
|
|
1844
|
-
var strEvents = "events";
|
|
1845
|
-
createUniqueNamespace("aiEvtPageHide");
|
|
1846
|
-
createUniqueNamespace("aiEvtPageShow");
|
|
1847
|
-
var rRemoveEmptyNs = /\.[\.]+/g;
|
|
1848
|
-
var rRemoveTrailingEmptyNs = /[\.]+$/;
|
|
1849
|
-
var _guid = 1;
|
|
1850
|
-
var elmNodeData = createElmNodeData("events");
|
|
1851
|
-
var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
|
|
1852
|
-
function _normalizeNamespace(name) {
|
|
1853
|
-
if (name && name[_DYN_REPLACE ]) {
|
|
1854
|
-
return name.replace(/^\s*\.*|\.*\s*$/g, STR_EMPTY);
|
|
1855
|
-
}
|
|
1856
|
-
return name;
|
|
1857
|
-
}
|
|
1858
|
-
function _getEvtNamespace(eventName, evtNamespace) {
|
|
1859
|
-
var _a;
|
|
1860
|
-
if (evtNamespace) {
|
|
1861
|
-
var theNamespace_1 = STR_EMPTY;
|
|
1862
|
-
if (isArray(evtNamespace)) {
|
|
1863
|
-
theNamespace_1 = STR_EMPTY;
|
|
1864
|
-
arrForEach(evtNamespace, function (name) {
|
|
1865
|
-
name = _normalizeNamespace(name);
|
|
1866
|
-
if (name) {
|
|
1867
|
-
if (name[0] !== ".") {
|
|
1868
|
-
name = "." + name;
|
|
1869
|
-
}
|
|
1870
|
-
theNamespace_1 += name;
|
|
1871
|
-
}
|
|
1872
|
-
});
|
|
1873
|
-
}
|
|
1874
|
-
else {
|
|
1875
|
-
theNamespace_1 = _normalizeNamespace(evtNamespace);
|
|
1876
|
-
}
|
|
1877
|
-
if (theNamespace_1) {
|
|
1878
|
-
if (theNamespace_1[0] !== ".") {
|
|
1879
|
-
theNamespace_1 = "." + theNamespace_1;
|
|
1880
|
-
}
|
|
1881
|
-
eventName = (eventName || STR_EMPTY) + theNamespace_1;
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
var parsedEvent = (eventNamespace.exec(eventName || STR_EMPTY) || []);
|
|
1885
|
-
return _a = {},
|
|
1886
|
-
_a[_DYN_TYPE ] = parsedEvent[1],
|
|
1887
|
-
_a.ns = ((parsedEvent[2] || STR_EMPTY).replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, STR_EMPTY)[_DYN_SPLIT$1 ](".").sort()).join("."),
|
|
1888
|
-
_a;
|
|
1889
|
-
}
|
|
1890
|
-
function _getRegisteredEvents(target, evtName, addDefault) {
|
|
1891
|
-
if (addDefault === void 0) { addDefault = true; }
|
|
1892
|
-
var aiEvts = elmNodeData.get(target, strEvents, {}, addDefault);
|
|
1893
|
-
var registeredEvents = aiEvts[evtName];
|
|
1894
|
-
if (!registeredEvents) {
|
|
1895
|
-
registeredEvents = aiEvts[evtName] = [];
|
|
1896
|
-
}
|
|
1897
|
-
return registeredEvents;
|
|
1898
|
-
}
|
|
1899
|
-
function _doDetach(obj, evtName, handlerRef, useCapture) {
|
|
1900
|
-
if (obj && evtName && evtName[_DYN_TYPE ]) {
|
|
1901
|
-
if (obj[strRemoveEventListener]) {
|
|
1902
|
-
obj[strRemoveEventListener](evtName[_DYN_TYPE ], handlerRef, useCapture);
|
|
1903
|
-
}
|
|
1904
|
-
else if (obj[strDetachEvent]) {
|
|
1905
|
-
obj[strDetachEvent](strOnPrefix + evtName[_DYN_TYPE ], handlerRef);
|
|
1906
|
-
}
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
|
-
function _doAttach(obj, evtName, handlerRef, useCapture) {
|
|
1910
|
-
var result = false;
|
|
1911
|
-
if (obj && evtName && evtName[_DYN_TYPE ] && handlerRef) {
|
|
1912
|
-
if (obj[strAddEventHelper]) {
|
|
1913
|
-
obj[strAddEventHelper](evtName[_DYN_TYPE ], handlerRef, useCapture);
|
|
1914
|
-
result = true;
|
|
1915
|
-
}
|
|
1916
|
-
else if (obj[strAttachEvent]) {
|
|
1917
|
-
obj[strAttachEvent](strOnPrefix + evtName[_DYN_TYPE ], handlerRef);
|
|
1918
|
-
result = true;
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
return result;
|
|
1922
|
-
}
|
|
1923
|
-
function _doUnregister(target, events, evtName, unRegFn) {
|
|
1924
|
-
var idx = events[_DYN_LENGTH$2 ];
|
|
1925
|
-
while (idx--) {
|
|
1926
|
-
var theEvent = events[idx];
|
|
1927
|
-
if (theEvent) {
|
|
1928
|
-
if (!evtName.ns || evtName.ns === theEvent.evtName.ns) {
|
|
1929
|
-
if (!unRegFn || unRegFn(theEvent)) {
|
|
1930
|
-
_doDetach(target, theEvent.evtName, theEvent[_DYN_HANDLER ], theEvent.capture);
|
|
1931
|
-
events[_DYN_SPLICE ](idx, 1);
|
|
1932
|
-
}
|
|
1933
|
-
}
|
|
1934
|
-
}
|
|
1935
|
-
}
|
|
1936
|
-
}
|
|
1937
|
-
function _unregisterEvents(target, evtName, unRegFn) {
|
|
1938
|
-
if (evtName[_DYN_TYPE ]) {
|
|
1939
|
-
_doUnregister(target, _getRegisteredEvents(target, evtName[_DYN_TYPE ]), evtName, unRegFn);
|
|
1940
|
-
}
|
|
1941
|
-
else {
|
|
1942
|
-
var eventCache = elmNodeData.get(target, strEvents, {});
|
|
1943
|
-
objForEachKey(eventCache, function (evtType, events) {
|
|
1944
|
-
_doUnregister(target, events, evtName, unRegFn);
|
|
1945
|
-
});
|
|
1946
|
-
if (objKeys(eventCache)[_DYN_LENGTH$2 ] === 0) {
|
|
1947
|
-
elmNodeData.kill(target, strEvents);
|
|
1948
|
-
}
|
|
1949
|
-
}
|
|
1484
|
+
if (!signed) {
|
|
1485
|
+
value >>>= 0;
|
|
1486
|
+
}
|
|
1487
|
+
return value;
|
|
1950
1488
|
}
|
|
1951
|
-
function
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
else {
|
|
1958
|
-
newNamespaces = [theNamespace, namespaces];
|
|
1959
|
-
}
|
|
1960
|
-
newNamespaces = (_getEvtNamespace("xx", newNamespaces).ns)[_DYN_SPLIT$1 ](".");
|
|
1489
|
+
function mwcRandom32(signed) {
|
|
1490
|
+
_mwcZ = (36969 * (_mwcZ & 0xFFFF) + (_mwcZ >> 16)) & MaxUInt32;
|
|
1491
|
+
_mwcW = (18000 * (_mwcW & 0xFFFF) + (_mwcW >> 16)) & MaxUInt32;
|
|
1492
|
+
var value = (((_mwcZ << 16) + (_mwcW & 0xFFFF)) >>> 0) & MaxUInt32 | 0;
|
|
1493
|
+
if (!signed) {
|
|
1494
|
+
value >>>= 0;
|
|
1961
1495
|
}
|
|
1962
|
-
|
|
1963
|
-
|
|
1496
|
+
return value;
|
|
1497
|
+
}
|
|
1498
|
+
function newId(maxLength) {
|
|
1499
|
+
if (maxLength === void 0) { maxLength = 22; }
|
|
1500
|
+
var base64chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
1501
|
+
var number = random32() >>> 0;
|
|
1502
|
+
var chars = 0;
|
|
1503
|
+
var result = STR_EMPTY;
|
|
1504
|
+
while (result[_DYN_LENGTH$2 ] < maxLength) {
|
|
1505
|
+
chars++;
|
|
1506
|
+
result += base64chars.charAt(number & 0x3F);
|
|
1507
|
+
number >>>= 6;
|
|
1508
|
+
if (chars === 5) {
|
|
1509
|
+
number = (((random32() << 2) & 0xFFFFFFFF) | (number & 0x03)) >>> 0;
|
|
1510
|
+
chars = 0;
|
|
1511
|
+
}
|
|
1964
1512
|
}
|
|
1965
|
-
return
|
|
1513
|
+
return result;
|
|
1966
1514
|
}
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1515
|
+
|
|
1516
|
+
var _objDefineProperty = ObjDefineProperty;
|
|
1517
|
+
var version = "3.0.0-beta.2208-16";
|
|
1518
|
+
var instanceName = "." + newId(6);
|
|
1519
|
+
var _dataUid = 0;
|
|
1520
|
+
function _createAccessor(target, prop, value) {
|
|
1521
|
+
if (_objDefineProperty) {
|
|
1972
1522
|
try {
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
},
|
|
1980
|
-
_a[_DYN_HANDLER ] = handlerRef,
|
|
1981
|
-
_a.capture = useCapture,
|
|
1982
|
-
_a);
|
|
1983
|
-
_getRegisteredEvents(target, evtName.type)[_DYN_PUSH$1 ](registeredEvent);
|
|
1984
|
-
}
|
|
1523
|
+
_objDefineProperty(target, prop, {
|
|
1524
|
+
value: value,
|
|
1525
|
+
enumerable: false,
|
|
1526
|
+
configurable: true
|
|
1527
|
+
});
|
|
1528
|
+
return true;
|
|
1985
1529
|
}
|
|
1986
1530
|
catch (e) {
|
|
1987
1531
|
}
|
|
1988
1532
|
}
|
|
1989
|
-
return
|
|
1533
|
+
return false;
|
|
1990
1534
|
}
|
|
1991
|
-
function
|
|
1992
|
-
|
|
1993
|
-
|
|
1535
|
+
function _canAcceptData(target) {
|
|
1536
|
+
return target[_DYN_NODE_TYPE ] === 1 || target[_DYN_NODE_TYPE ] === 9 || !(+target[_DYN_NODE_TYPE ]);
|
|
1537
|
+
}
|
|
1538
|
+
function _getCache(data, target) {
|
|
1539
|
+
var theCache = target[data.id];
|
|
1540
|
+
if (!theCache) {
|
|
1541
|
+
theCache = {};
|
|
1994
1542
|
try {
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
if ((evtName_1.ns && !handlerRef) || regEvent[_DYN_HANDLER ] === handlerRef) {
|
|
1999
|
-
found_1 = true;
|
|
2000
|
-
return true;
|
|
1543
|
+
if (_canAcceptData(target)) {
|
|
1544
|
+
if (!_createAccessor(target, data.id, theCache)) {
|
|
1545
|
+
target[data.id] = theCache;
|
|
2001
1546
|
}
|
|
2002
|
-
return false;
|
|
2003
|
-
});
|
|
2004
|
-
if (!found_1) {
|
|
2005
|
-
_doDetach(target, evtName_1, handlerRef, useCapture);
|
|
2006
1547
|
}
|
|
2007
1548
|
}
|
|
2008
1549
|
catch (e) {
|
|
2009
1550
|
}
|
|
2010
1551
|
}
|
|
1552
|
+
return theCache;
|
|
2011
1553
|
}
|
|
2012
|
-
function
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
if (w) {
|
|
2016
|
-
result = eventOn(w, eventName, callback, evtNamespace);
|
|
2017
|
-
result = eventOn(w["body"], eventName, callback, evtNamespace) || result;
|
|
2018
|
-
}
|
|
2019
|
-
var doc = getDocument();
|
|
2020
|
-
if (doc) {
|
|
2021
|
-
result = eventOn(doc, eventName, callback, evtNamespace) || result;
|
|
2022
|
-
}
|
|
2023
|
-
return result;
|
|
2024
|
-
}
|
|
2025
|
-
|
|
2026
|
-
var _cookieMgrs = null;
|
|
2027
|
-
var _canUseCookies;
|
|
2028
|
-
function newGuid() {
|
|
2029
|
-
function randomHexDigit() {
|
|
2030
|
-
return randomValue(15);
|
|
2031
|
-
}
|
|
2032
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[_DYN_REPLACE ](GuidRegex, function (c) {
|
|
2033
|
-
var r = (randomHexDigit() | 0), v = (c === "x" ? r : r & 0x3 | 0x8);
|
|
2034
|
-
return v.toString(16);
|
|
2035
|
-
});
|
|
2036
|
-
}
|
|
2037
|
-
function perfNow() {
|
|
2038
|
-
var perf = getPerformance();
|
|
2039
|
-
if (perf && perf.now) {
|
|
2040
|
-
return perf.now();
|
|
2041
|
-
}
|
|
2042
|
-
return dateNow();
|
|
2043
|
-
}
|
|
2044
|
-
function generateW3CId() {
|
|
2045
|
-
var hexValues = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
|
|
2046
|
-
var oct = STR_EMPTY, tmp;
|
|
2047
|
-
for (var a = 0; a < 4; a++) {
|
|
2048
|
-
tmp = random32();
|
|
2049
|
-
oct +=
|
|
2050
|
-
hexValues[tmp & 0xF] +
|
|
2051
|
-
hexValues[tmp >> 4 & 0xF] +
|
|
2052
|
-
hexValues[tmp >> 8 & 0xF] +
|
|
2053
|
-
hexValues[tmp >> 12 & 0xF] +
|
|
2054
|
-
hexValues[tmp >> 16 & 0xF] +
|
|
2055
|
-
hexValues[tmp >> 20 & 0xF] +
|
|
2056
|
-
hexValues[tmp >> 24 & 0xF] +
|
|
2057
|
-
hexValues[tmp >> 28 & 0xF];
|
|
2058
|
-
}
|
|
2059
|
-
var clockSequenceHi = hexValues[8 + (random32() & 0x03) | 0];
|
|
2060
|
-
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);
|
|
2061
|
-
}
|
|
2062
|
-
var CoreUtils = {
|
|
2063
|
-
_canUseCookies: undefined,
|
|
2064
|
-
isTypeof: isTypeof,
|
|
2065
|
-
isUndefined: isUndefined,
|
|
2066
|
-
isNullOrUndefined: isNullOrUndefined,
|
|
2067
|
-
hasOwnProperty: hasOwnProperty,
|
|
2068
|
-
isFunction: isFunction,
|
|
2069
|
-
isObject: isObject,
|
|
2070
|
-
isDate: isDate,
|
|
2071
|
-
isArray: isArray,
|
|
2072
|
-
isError: isError,
|
|
2073
|
-
isString: isString,
|
|
2074
|
-
isNumber: isNumber,
|
|
2075
|
-
isBoolean: isBoolean,
|
|
2076
|
-
toISOString: toISOString,
|
|
2077
|
-
arrForEach: arrForEach,
|
|
2078
|
-
arrIndexOf: arrIndexOf,
|
|
2079
|
-
arrMap: arrMap,
|
|
2080
|
-
arrReduce: arrReduce,
|
|
2081
|
-
strTrim: strTrim,
|
|
2082
|
-
objCreate: objCreateFn,
|
|
2083
|
-
objKeys: objKeys,
|
|
2084
|
-
objDefineAccessors: objDefineAccessors,
|
|
2085
|
-
addEventHandler: addEventHandler,
|
|
2086
|
-
dateNow: dateNow,
|
|
2087
|
-
isIE: isIE,
|
|
2088
|
-
disableCookies: disableCookies,
|
|
2089
|
-
newGuid: newGuid,
|
|
2090
|
-
perfNow: perfNow,
|
|
2091
|
-
newId: newId,
|
|
2092
|
-
randomValue: randomValue,
|
|
2093
|
-
random32: random32,
|
|
2094
|
-
mwcRandomSeed: mwcRandomSeed,
|
|
2095
|
-
mwcRandom32: mwcRandom32,
|
|
2096
|
-
generateW3CId: generateW3CId
|
|
2097
|
-
};
|
|
2098
|
-
var GuidRegex = /[xy]/g;
|
|
2099
|
-
function _legacyCookieMgr(config, logger) {
|
|
2100
|
-
var cookieMgr = _gblCookieMgr(config, logger);
|
|
2101
|
-
var legacyCanUseCookies = CoreUtils._canUseCookies;
|
|
2102
|
-
if (_cookieMgrs === null) {
|
|
2103
|
-
_cookieMgrs = [];
|
|
2104
|
-
_canUseCookies = legacyCanUseCookies;
|
|
2105
|
-
objDefineAccessors(CoreUtils, "_canUseCookies", function () {
|
|
2106
|
-
return _canUseCookies;
|
|
2107
|
-
}, function (value) {
|
|
2108
|
-
_canUseCookies = value;
|
|
2109
|
-
arrForEach(_cookieMgrs, function (mgr) {
|
|
2110
|
-
mgr[_DYN_SET_ENABLED ](value);
|
|
2111
|
-
});
|
|
2112
|
-
});
|
|
2113
|
-
}
|
|
2114
|
-
if (arrIndexOf(_cookieMgrs, cookieMgr) === -1) {
|
|
2115
|
-
_cookieMgrs[_DYN_PUSH$1 ](cookieMgr);
|
|
2116
|
-
}
|
|
2117
|
-
if (isBoolean(legacyCanUseCookies)) {
|
|
2118
|
-
cookieMgr[_DYN_SET_ENABLED ](legacyCanUseCookies);
|
|
2119
|
-
}
|
|
2120
|
-
if (isBoolean(_canUseCookies)) {
|
|
2121
|
-
cookieMgr[_DYN_SET_ENABLED ](_canUseCookies);
|
|
2122
|
-
}
|
|
2123
|
-
return cookieMgr;
|
|
1554
|
+
function createUniqueNamespace(name, includeVersion) {
|
|
1555
|
+
if (includeVersion === void 0) { includeVersion = false; }
|
|
1556
|
+
return normalizeJsName(name + (_dataUid++) + (includeVersion ? "." + version : STR_EMPTY) + instanceName);
|
|
2124
1557
|
}
|
|
2125
|
-
function
|
|
2126
|
-
|
|
1558
|
+
function createElmNodeData(name) {
|
|
1559
|
+
var data = {
|
|
1560
|
+
id: createUniqueNamespace("_aiData-" + (name || STR_EMPTY) + "." + version),
|
|
1561
|
+
accept: function (target) {
|
|
1562
|
+
return _canAcceptData(target);
|
|
1563
|
+
},
|
|
1564
|
+
get: function (target, name, defValue, addDefault) {
|
|
1565
|
+
var theCache = target[data.id];
|
|
1566
|
+
if (!theCache) {
|
|
1567
|
+
if (addDefault) {
|
|
1568
|
+
theCache = _getCache(data, target);
|
|
1569
|
+
theCache[normalizeJsName(name)] = defValue;
|
|
1570
|
+
}
|
|
1571
|
+
return defValue;
|
|
1572
|
+
}
|
|
1573
|
+
return theCache[normalizeJsName(name)];
|
|
1574
|
+
},
|
|
1575
|
+
kill: function (target, name) {
|
|
1576
|
+
if (target && target[name]) {
|
|
1577
|
+
try {
|
|
1578
|
+
delete target[name];
|
|
1579
|
+
}
|
|
1580
|
+
catch (e) {
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
};
|
|
1585
|
+
return data;
|
|
2127
1586
|
}
|
|
2128
1587
|
|
|
2129
1588
|
var INVALID_TRACE_ID = "00000000000000000000000000000000";
|
|
@@ -2761,27 +2220,245 @@
|
|
|
2761
2220
|
});
|
|
2762
2221
|
return true;
|
|
2763
2222
|
},
|
|
2764
|
-
_setQueue: function (queue) {
|
|
2765
|
-
channelQueue = queue;
|
|
2223
|
+
_setQueue: function (queue) {
|
|
2224
|
+
channelQueue = queue;
|
|
2225
|
+
}
|
|
2226
|
+
};
|
|
2227
|
+
return channelController;
|
|
2228
|
+
}
|
|
2229
|
+
function createChannelQueues(channels, extensions, core) {
|
|
2230
|
+
var channelQueue = [];
|
|
2231
|
+
if (channels) {
|
|
2232
|
+
arrForEach(channels, function (queue) { return _addChannelQueue(channelQueue, queue, core); });
|
|
2233
|
+
}
|
|
2234
|
+
if (extensions) {
|
|
2235
|
+
var extensionQueue_1 = [];
|
|
2236
|
+
arrForEach(extensions, function (plugin) {
|
|
2237
|
+
if (plugin[STR_PRIORITY ] > ChannelControllerPriority) {
|
|
2238
|
+
extensionQueue_1[_DYN_PUSH$1 ](plugin);
|
|
2239
|
+
}
|
|
2240
|
+
});
|
|
2241
|
+
_addChannelQueue(channelQueue, extensionQueue_1, core);
|
|
2242
|
+
}
|
|
2243
|
+
return channelQueue;
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
var strToGMTString = "toGMTString";
|
|
2247
|
+
var strToUTCString = "toUTCString";
|
|
2248
|
+
var strCookie = "cookie";
|
|
2249
|
+
var strExpires = "expires";
|
|
2250
|
+
var strEnabled = "enabled";
|
|
2251
|
+
var strIsCookieUseDisabled = "isCookieUseDisabled";
|
|
2252
|
+
var strDisableCookiesUsage = "disableCookiesUsage";
|
|
2253
|
+
var strConfigCookieMgr = "_ckMgr";
|
|
2254
|
+
var _supportsCookies = null;
|
|
2255
|
+
var _allowUaSameSite = null;
|
|
2256
|
+
var _parsedCookieValue = null;
|
|
2257
|
+
var _doc = getDocument();
|
|
2258
|
+
var _cookieCache = {};
|
|
2259
|
+
var _globalCookieConfig = {};
|
|
2260
|
+
function _isMgrEnabled(cookieMgr) {
|
|
2261
|
+
if (cookieMgr) {
|
|
2262
|
+
return cookieMgr.isEnabled();
|
|
2263
|
+
}
|
|
2264
|
+
return true;
|
|
2265
|
+
}
|
|
2266
|
+
function _createCookieMgrConfig(rootConfig) {
|
|
2267
|
+
var cookieMgrCfg = rootConfig[_DYN_COOKIE_CFG ] = rootConfig[_DYN_COOKIE_CFG ] || {};
|
|
2268
|
+
setValue(cookieMgrCfg, "domain", rootConfig.cookieDomain, isNotNullOrUndefined, isNullOrUndefined);
|
|
2269
|
+
setValue(cookieMgrCfg, "path", rootConfig.cookiePath || "/", null, isNullOrUndefined);
|
|
2270
|
+
if (isNullOrUndefined(cookieMgrCfg[strEnabled])) {
|
|
2271
|
+
var cookieEnabled = void 0;
|
|
2272
|
+
if (!isUndefined(rootConfig[strIsCookieUseDisabled])) {
|
|
2273
|
+
cookieEnabled = !rootConfig[strIsCookieUseDisabled];
|
|
2274
|
+
}
|
|
2275
|
+
if (!isUndefined(rootConfig[strDisableCookiesUsage])) {
|
|
2276
|
+
cookieEnabled = !rootConfig[strDisableCookiesUsage];
|
|
2277
|
+
}
|
|
2278
|
+
cookieMgrCfg[strEnabled] = cookieEnabled;
|
|
2279
|
+
}
|
|
2280
|
+
return cookieMgrCfg;
|
|
2281
|
+
}
|
|
2282
|
+
function createCookieMgr(rootConfig, logger) {
|
|
2283
|
+
var cookieMgrConfig = _createCookieMgrConfig(rootConfig || _globalCookieConfig);
|
|
2284
|
+
var _path = cookieMgrConfig.path || "/";
|
|
2285
|
+
var _domain = cookieMgrConfig.domain;
|
|
2286
|
+
var _enabled = cookieMgrConfig[strEnabled] !== false;
|
|
2287
|
+
var cookieMgr = {
|
|
2288
|
+
isEnabled: function () {
|
|
2289
|
+
var enabled = _enabled && areCookiesSupported(logger);
|
|
2290
|
+
var gblManager = _globalCookieConfig[strConfigCookieMgr];
|
|
2291
|
+
if (enabled && gblManager && cookieMgr !== gblManager) {
|
|
2292
|
+
enabled = _isMgrEnabled(gblManager);
|
|
2293
|
+
}
|
|
2294
|
+
return enabled;
|
|
2295
|
+
},
|
|
2296
|
+
setEnabled: function (value) {
|
|
2297
|
+
_enabled = value !== false;
|
|
2298
|
+
},
|
|
2299
|
+
set: function (name, value, maxAgeSec, domain, path) {
|
|
2300
|
+
var result = false;
|
|
2301
|
+
if (_isMgrEnabled(cookieMgr)) {
|
|
2302
|
+
var values = {};
|
|
2303
|
+
var theValue = strTrim(value || STR_EMPTY);
|
|
2304
|
+
var idx = theValue.indexOf(";");
|
|
2305
|
+
if (idx !== -1) {
|
|
2306
|
+
theValue = strTrim(value[_DYN_SUBSTRING$1 ](0, idx));
|
|
2307
|
+
values = _extractParts(value[_DYN_SUBSTRING$1 ](idx + 1));
|
|
2308
|
+
}
|
|
2309
|
+
setValue(values, "domain", domain || _domain, isTruthy, isUndefined);
|
|
2310
|
+
if (!isNullOrUndefined(maxAgeSec)) {
|
|
2311
|
+
var _isIE = isIE();
|
|
2312
|
+
if (isUndefined(values[strExpires])) {
|
|
2313
|
+
var nowMs = dateNow();
|
|
2314
|
+
var expireMs = nowMs + (maxAgeSec * 1000);
|
|
2315
|
+
if (expireMs > 0) {
|
|
2316
|
+
var expiry = new Date();
|
|
2317
|
+
expiry.setTime(expireMs);
|
|
2318
|
+
setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY, isTruthy);
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
if (!_isIE) {
|
|
2322
|
+
setValue(values, "max-age", STR_EMPTY + maxAgeSec, null, isUndefined);
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
var location_1 = getLocation();
|
|
2326
|
+
if (location_1 && location_1.protocol === "https:") {
|
|
2327
|
+
setValue(values, "secure", null, null, isUndefined);
|
|
2328
|
+
if (_allowUaSameSite === null) {
|
|
2329
|
+
_allowUaSameSite = !uaDisallowsSameSiteNone((getNavigator() || {})[_DYN_USER_AGENT ]);
|
|
2330
|
+
}
|
|
2331
|
+
if (_allowUaSameSite) {
|
|
2332
|
+
setValue(values, "SameSite", "None", null, isUndefined);
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
setValue(values, "path", path || _path, null, isUndefined);
|
|
2336
|
+
var setCookieFn = cookieMgrConfig.setCookie || _setCookieValue;
|
|
2337
|
+
setCookieFn(name, _formatCookieValue(theValue, values));
|
|
2338
|
+
result = true;
|
|
2339
|
+
}
|
|
2340
|
+
return result;
|
|
2341
|
+
},
|
|
2342
|
+
get: function (name) {
|
|
2343
|
+
var value = STR_EMPTY;
|
|
2344
|
+
if (_isMgrEnabled(cookieMgr)) {
|
|
2345
|
+
value = (cookieMgrConfig.getCookie || _getCookieValue)(name);
|
|
2346
|
+
}
|
|
2347
|
+
return value;
|
|
2348
|
+
},
|
|
2349
|
+
del: function (name, path) {
|
|
2350
|
+
var result = false;
|
|
2351
|
+
if (_isMgrEnabled(cookieMgr)) {
|
|
2352
|
+
result = cookieMgr.purge(name, path);
|
|
2353
|
+
}
|
|
2354
|
+
return result;
|
|
2355
|
+
},
|
|
2356
|
+
purge: function (name, path) {
|
|
2357
|
+
var _a;
|
|
2358
|
+
var result = false;
|
|
2359
|
+
if (areCookiesSupported(logger)) {
|
|
2360
|
+
var values = (_a = {},
|
|
2361
|
+
_a["path"] = path ? path : "/",
|
|
2362
|
+
_a[strExpires] = "Thu, 01 Jan 1970 00:00:01 GMT",
|
|
2363
|
+
_a);
|
|
2364
|
+
if (!isIE()) {
|
|
2365
|
+
values["max-age"] = "0";
|
|
2366
|
+
}
|
|
2367
|
+
var delCookie = cookieMgrConfig.delCookie || _setCookieValue;
|
|
2368
|
+
delCookie(name, _formatCookieValue(STR_EMPTY, values));
|
|
2369
|
+
result = true;
|
|
2370
|
+
}
|
|
2371
|
+
return result;
|
|
2766
2372
|
}
|
|
2767
2373
|
};
|
|
2768
|
-
|
|
2374
|
+
cookieMgr[strConfigCookieMgr] = cookieMgr;
|
|
2375
|
+
return cookieMgr;
|
|
2769
2376
|
}
|
|
2770
|
-
function
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2377
|
+
function areCookiesSupported(logger) {
|
|
2378
|
+
if (_supportsCookies === null) {
|
|
2379
|
+
_supportsCookies = false;
|
|
2380
|
+
try {
|
|
2381
|
+
var doc = _doc || {};
|
|
2382
|
+
_supportsCookies = doc[strCookie] !== undefined;
|
|
2383
|
+
}
|
|
2384
|
+
catch (e) {
|
|
2385
|
+
_throwInternal(logger, 2 , 68 , "Cannot access document.cookie - " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2386
|
+
}
|
|
2774
2387
|
}
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2388
|
+
return _supportsCookies;
|
|
2389
|
+
}
|
|
2390
|
+
function _extractParts(theValue) {
|
|
2391
|
+
var values = {};
|
|
2392
|
+
if (theValue && theValue[_DYN_LENGTH$2 ]) {
|
|
2393
|
+
var parts = strTrim(theValue)[_DYN_SPLIT$1 ](";");
|
|
2394
|
+
arrForEach(parts, function (thePart) {
|
|
2395
|
+
thePart = strTrim(thePart || STR_EMPTY);
|
|
2396
|
+
if (thePart) {
|
|
2397
|
+
var idx = thePart.indexOf("=");
|
|
2398
|
+
if (idx === -1) {
|
|
2399
|
+
values[thePart] = null;
|
|
2400
|
+
}
|
|
2401
|
+
else {
|
|
2402
|
+
values[strTrim(thePart[_DYN_SUBSTRING$1 ](0, idx))] = strTrim(thePart[_DYN_SUBSTRING$1 ](idx + 1));
|
|
2403
|
+
}
|
|
2780
2404
|
}
|
|
2781
2405
|
});
|
|
2782
|
-
_addChannelQueue(channelQueue, extensionQueue_1, core);
|
|
2783
2406
|
}
|
|
2784
|
-
return
|
|
2407
|
+
return values;
|
|
2408
|
+
}
|
|
2409
|
+
function _formatDate(theDate, func) {
|
|
2410
|
+
if (isFunction(theDate[func])) {
|
|
2411
|
+
return theDate[func]();
|
|
2412
|
+
}
|
|
2413
|
+
return null;
|
|
2414
|
+
}
|
|
2415
|
+
function _formatCookieValue(value, values) {
|
|
2416
|
+
var cookieValue = value || STR_EMPTY;
|
|
2417
|
+
objForEachKey(values, function (name, theValue) {
|
|
2418
|
+
cookieValue += "; " + name + (!isNullOrUndefined(theValue) ? "=" + theValue : STR_EMPTY);
|
|
2419
|
+
});
|
|
2420
|
+
return cookieValue;
|
|
2421
|
+
}
|
|
2422
|
+
function _getCookieValue(name) {
|
|
2423
|
+
var cookieValue = STR_EMPTY;
|
|
2424
|
+
if (_doc) {
|
|
2425
|
+
var theCookie = _doc[strCookie] || STR_EMPTY;
|
|
2426
|
+
if (_parsedCookieValue !== theCookie) {
|
|
2427
|
+
_cookieCache = _extractParts(theCookie);
|
|
2428
|
+
_parsedCookieValue = theCookie;
|
|
2429
|
+
}
|
|
2430
|
+
cookieValue = strTrim(_cookieCache[name] || STR_EMPTY);
|
|
2431
|
+
}
|
|
2432
|
+
return cookieValue;
|
|
2433
|
+
}
|
|
2434
|
+
function _setCookieValue(name, cookieValue) {
|
|
2435
|
+
if (_doc) {
|
|
2436
|
+
_doc[strCookie] = name + "=" + cookieValue;
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
function uaDisallowsSameSiteNone(userAgent) {
|
|
2440
|
+
if (!isString(userAgent)) {
|
|
2441
|
+
return false;
|
|
2442
|
+
}
|
|
2443
|
+
if (strContains(userAgent, "CPU iPhone OS 12") || strContains(userAgent, "iPad; CPU OS 12")) {
|
|
2444
|
+
return true;
|
|
2445
|
+
}
|
|
2446
|
+
if (strContains(userAgent, "Macintosh; Intel Mac OS X 10_14") && strContains(userAgent, "Version/") && strContains(userAgent, "Safari")) {
|
|
2447
|
+
return true;
|
|
2448
|
+
}
|
|
2449
|
+
if (strContains(userAgent, "Macintosh; Intel Mac OS X 10_14") && strEndsWith(userAgent, "AppleWebKit/605.1.15 (KHTML, like Gecko)")) {
|
|
2450
|
+
return true;
|
|
2451
|
+
}
|
|
2452
|
+
if (strContains(userAgent, "Chrome/5") || strContains(userAgent, "Chrome/6")) {
|
|
2453
|
+
return true;
|
|
2454
|
+
}
|
|
2455
|
+
if (strContains(userAgent, "UnrealEngine") && !strContains(userAgent, "Chrome")) {
|
|
2456
|
+
return true;
|
|
2457
|
+
}
|
|
2458
|
+
if (strContains(userAgent, "UCBrowser/12") || strContains(userAgent, "UCBrowser/11")) {
|
|
2459
|
+
return true;
|
|
2460
|
+
}
|
|
2461
|
+
return false;
|
|
2785
2462
|
}
|
|
2786
2463
|
|
|
2787
2464
|
function createUnloadHandlerContainer() {
|
|
@@ -3378,7 +3055,6 @@
|
|
|
3378
3055
|
}
|
|
3379
3056
|
}
|
|
3380
3057
|
function _getPlugin(pluginIdentifier) {
|
|
3381
|
-
var _a;
|
|
3382
3058
|
var theExt = null;
|
|
3383
3059
|
var thePlugin = null;
|
|
3384
3060
|
arrForEach(_self[_DYN__EXTENSIONS ], function (ext) {
|
|
@@ -3391,17 +3067,16 @@
|
|
|
3391
3067
|
thePlugin = _channelControl.getChannel(pluginIdentifier);
|
|
3392
3068
|
}
|
|
3393
3069
|
if (thePlugin) {
|
|
3394
|
-
theExt =
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
_a[_DYN_SET_ENABLED ] = function (enabled) {
|
|
3070
|
+
theExt = {
|
|
3071
|
+
plugin: thePlugin,
|
|
3072
|
+
setEnabled: function (enabled) {
|
|
3398
3073
|
_getPluginState(thePlugin)[STR_DISABLED] = !enabled;
|
|
3399
3074
|
},
|
|
3400
|
-
|
|
3075
|
+
isEnabled: function () {
|
|
3401
3076
|
var pluginState = _getPluginState(thePlugin);
|
|
3402
3077
|
return !pluginState[_DYN_TEARDOWN ] && !pluginState[STR_DISABLED];
|
|
3403
3078
|
},
|
|
3404
|
-
|
|
3079
|
+
remove: function (isAsync, removeCb) {
|
|
3405
3080
|
var _a;
|
|
3406
3081
|
if (isAsync === void 0) { isAsync = true; }
|
|
3407
3082
|
var pluginsToRemove = [thePlugin];
|
|
@@ -3419,8 +3094,8 @@
|
|
|
3419
3094
|
}
|
|
3420
3095
|
removeCb && removeCb(removed);
|
|
3421
3096
|
});
|
|
3422
|
-
}
|
|
3423
|
-
|
|
3097
|
+
}
|
|
3098
|
+
};
|
|
3424
3099
|
}
|
|
3425
3100
|
return theExt;
|
|
3426
3101
|
}
|
|
@@ -3633,20 +3308,194 @@
|
|
|
3633
3308
|
throwError("telemetry name required");
|
|
3634
3309
|
}
|
|
3635
3310
|
}
|
|
3636
|
-
function _notifyInvalidEvent(telemetryItem) {
|
|
3637
|
-
var manager = _self[_DYN_GET_NOTIFY_MGR ]();
|
|
3638
|
-
if (manager) {
|
|
3639
|
-
manager[STR_EVENTS_DISCARDED ]([telemetryItem], 2 );
|
|
3311
|
+
function _notifyInvalidEvent(telemetryItem) {
|
|
3312
|
+
var manager = _self[_DYN_GET_NOTIFY_MGR ]();
|
|
3313
|
+
if (manager) {
|
|
3314
|
+
manager[STR_EVENTS_DISCARDED ]([telemetryItem], 2 );
|
|
3315
|
+
}
|
|
3316
|
+
}
|
|
3317
|
+
});
|
|
3318
|
+
return _this;
|
|
3319
|
+
}
|
|
3320
|
+
AppInsightsCore.__ieDyn=1;
|
|
3321
|
+
return AppInsightsCore;
|
|
3322
|
+
}(BaseCore));
|
|
3323
|
+
|
|
3324
|
+
var strOnPrefix = "on";
|
|
3325
|
+
var strAttachEvent = "attachEvent";
|
|
3326
|
+
var strAddEventHelper = "addEventListener";
|
|
3327
|
+
var strDetachEvent = "detachEvent";
|
|
3328
|
+
var strRemoveEventListener = "removeEventListener";
|
|
3329
|
+
var strEvents = "events";
|
|
3330
|
+
createUniqueNamespace("aiEvtPageHide");
|
|
3331
|
+
createUniqueNamespace("aiEvtPageShow");
|
|
3332
|
+
var rRemoveEmptyNs = /\.[\.]+/g;
|
|
3333
|
+
var rRemoveTrailingEmptyNs = /[\.]+$/;
|
|
3334
|
+
var _guid = 1;
|
|
3335
|
+
var elmNodeData = createElmNodeData("events");
|
|
3336
|
+
var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
|
|
3337
|
+
function _normalizeNamespace(name) {
|
|
3338
|
+
if (name && name[_DYN_REPLACE ]) {
|
|
3339
|
+
return name.replace(/^\s*\.*|\.*\s*$/g, STR_EMPTY);
|
|
3340
|
+
}
|
|
3341
|
+
return name;
|
|
3342
|
+
}
|
|
3343
|
+
function _getEvtNamespace(eventName, evtNamespace) {
|
|
3344
|
+
var _a;
|
|
3345
|
+
if (evtNamespace) {
|
|
3346
|
+
var theNamespace_1 = STR_EMPTY;
|
|
3347
|
+
if (isArray(evtNamespace)) {
|
|
3348
|
+
theNamespace_1 = STR_EMPTY;
|
|
3349
|
+
arrForEach(evtNamespace, function (name) {
|
|
3350
|
+
name = _normalizeNamespace(name);
|
|
3351
|
+
if (name) {
|
|
3352
|
+
if (name[0] !== ".") {
|
|
3353
|
+
name = "." + name;
|
|
3354
|
+
}
|
|
3355
|
+
theNamespace_1 += name;
|
|
3356
|
+
}
|
|
3357
|
+
});
|
|
3358
|
+
}
|
|
3359
|
+
else {
|
|
3360
|
+
theNamespace_1 = _normalizeNamespace(evtNamespace);
|
|
3361
|
+
}
|
|
3362
|
+
if (theNamespace_1) {
|
|
3363
|
+
if (theNamespace_1[0] !== ".") {
|
|
3364
|
+
theNamespace_1 = "." + theNamespace_1;
|
|
3365
|
+
}
|
|
3366
|
+
eventName = (eventName || STR_EMPTY) + theNamespace_1;
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
var parsedEvent = (eventNamespace.exec(eventName || STR_EMPTY) || []);
|
|
3370
|
+
return _a = {},
|
|
3371
|
+
_a[_DYN_TYPE ] = parsedEvent[1],
|
|
3372
|
+
_a.ns = ((parsedEvent[2] || STR_EMPTY).replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, STR_EMPTY)[_DYN_SPLIT$1 ](".").sort()).join("."),
|
|
3373
|
+
_a;
|
|
3374
|
+
}
|
|
3375
|
+
function _getRegisteredEvents(target, evtName, addDefault) {
|
|
3376
|
+
if (addDefault === void 0) { addDefault = true; }
|
|
3377
|
+
var aiEvts = elmNodeData.get(target, strEvents, {}, addDefault);
|
|
3378
|
+
var registeredEvents = aiEvts[evtName];
|
|
3379
|
+
if (!registeredEvents) {
|
|
3380
|
+
registeredEvents = aiEvts[evtName] = [];
|
|
3381
|
+
}
|
|
3382
|
+
return registeredEvents;
|
|
3383
|
+
}
|
|
3384
|
+
function _doDetach(obj, evtName, handlerRef, useCapture) {
|
|
3385
|
+
if (obj && evtName && evtName[_DYN_TYPE ]) {
|
|
3386
|
+
if (obj[strRemoveEventListener]) {
|
|
3387
|
+
obj[strRemoveEventListener](evtName[_DYN_TYPE ], handlerRef, useCapture);
|
|
3388
|
+
}
|
|
3389
|
+
else if (obj[strDetachEvent]) {
|
|
3390
|
+
obj[strDetachEvent](strOnPrefix + evtName[_DYN_TYPE ], handlerRef);
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3393
|
+
}
|
|
3394
|
+
function _doAttach(obj, evtName, handlerRef, useCapture) {
|
|
3395
|
+
var result = false;
|
|
3396
|
+
if (obj && evtName && evtName[_DYN_TYPE ] && handlerRef) {
|
|
3397
|
+
if (obj[strAddEventHelper]) {
|
|
3398
|
+
obj[strAddEventHelper](evtName[_DYN_TYPE ], handlerRef, useCapture);
|
|
3399
|
+
result = true;
|
|
3400
|
+
}
|
|
3401
|
+
else if (obj[strAttachEvent]) {
|
|
3402
|
+
obj[strAttachEvent](strOnPrefix + evtName[_DYN_TYPE ], handlerRef);
|
|
3403
|
+
result = true;
|
|
3404
|
+
}
|
|
3405
|
+
}
|
|
3406
|
+
return result;
|
|
3407
|
+
}
|
|
3408
|
+
function _doUnregister(target, events, evtName, unRegFn) {
|
|
3409
|
+
var idx = events[_DYN_LENGTH$2 ];
|
|
3410
|
+
while (idx--) {
|
|
3411
|
+
var theEvent = events[idx];
|
|
3412
|
+
if (theEvent) {
|
|
3413
|
+
if (!evtName.ns || evtName.ns === theEvent.evtName.ns) {
|
|
3414
|
+
if (!unRegFn || unRegFn(theEvent)) {
|
|
3415
|
+
_doDetach(target, theEvent.evtName, theEvent[_DYN_HANDLER ], theEvent.capture);
|
|
3416
|
+
events[_DYN_SPLICE ](idx, 1);
|
|
3417
|
+
}
|
|
3418
|
+
}
|
|
3419
|
+
}
|
|
3420
|
+
}
|
|
3421
|
+
}
|
|
3422
|
+
function _unregisterEvents(target, evtName, unRegFn) {
|
|
3423
|
+
if (evtName[_DYN_TYPE ]) {
|
|
3424
|
+
_doUnregister(target, _getRegisteredEvents(target, evtName[_DYN_TYPE ]), evtName, unRegFn);
|
|
3425
|
+
}
|
|
3426
|
+
else {
|
|
3427
|
+
var eventCache = elmNodeData.get(target, strEvents, {});
|
|
3428
|
+
objForEachKey(eventCache, function (evtType, events) {
|
|
3429
|
+
_doUnregister(target, events, evtName, unRegFn);
|
|
3430
|
+
});
|
|
3431
|
+
if (objKeys(eventCache)[_DYN_LENGTH$2 ] === 0) {
|
|
3432
|
+
elmNodeData.kill(target, strEvents);
|
|
3433
|
+
}
|
|
3434
|
+
}
|
|
3435
|
+
}
|
|
3436
|
+
function mergeEvtNamespace(theNamespace, namespaces) {
|
|
3437
|
+
var newNamespaces;
|
|
3438
|
+
if (namespaces) {
|
|
3439
|
+
if (isArray(namespaces)) {
|
|
3440
|
+
newNamespaces = [theNamespace].concat(namespaces);
|
|
3441
|
+
}
|
|
3442
|
+
else {
|
|
3443
|
+
newNamespaces = [theNamespace, namespaces];
|
|
3444
|
+
}
|
|
3445
|
+
newNamespaces = (_getEvtNamespace("xx", newNamespaces).ns)[_DYN_SPLIT$1 ](".");
|
|
3446
|
+
}
|
|
3447
|
+
else {
|
|
3448
|
+
newNamespaces = theNamespace;
|
|
3449
|
+
}
|
|
3450
|
+
return newNamespaces;
|
|
3451
|
+
}
|
|
3452
|
+
function eventOn(target, eventName, handlerRef, evtNamespace, useCapture) {
|
|
3453
|
+
var _a;
|
|
3454
|
+
if (useCapture === void 0) { useCapture = false; }
|
|
3455
|
+
var result = false;
|
|
3456
|
+
if (target) {
|
|
3457
|
+
try {
|
|
3458
|
+
var evtName = _getEvtNamespace(eventName, evtNamespace);
|
|
3459
|
+
result = _doAttach(target, evtName, handlerRef, useCapture);
|
|
3460
|
+
if (result && elmNodeData.accept(target)) {
|
|
3461
|
+
var registeredEvent = (_a = {
|
|
3462
|
+
guid: _guid++,
|
|
3463
|
+
evtName: evtName
|
|
3464
|
+
},
|
|
3465
|
+
_a[_DYN_HANDLER ] = handlerRef,
|
|
3466
|
+
_a.capture = useCapture,
|
|
3467
|
+
_a);
|
|
3468
|
+
_getRegisteredEvents(target, evtName.type)[_DYN_PUSH$1 ](registeredEvent);
|
|
3469
|
+
}
|
|
3470
|
+
}
|
|
3471
|
+
catch (e) {
|
|
3472
|
+
}
|
|
3473
|
+
}
|
|
3474
|
+
return result;
|
|
3475
|
+
}
|
|
3476
|
+
function eventOff(target, eventName, handlerRef, evtNamespace, useCapture) {
|
|
3477
|
+
if (useCapture === void 0) { useCapture = false; }
|
|
3478
|
+
if (target) {
|
|
3479
|
+
try {
|
|
3480
|
+
var evtName_1 = _getEvtNamespace(eventName, evtNamespace);
|
|
3481
|
+
var found_1 = false;
|
|
3482
|
+
_unregisterEvents(target, evtName_1, function (regEvent) {
|
|
3483
|
+
if ((evtName_1.ns && !handlerRef) || regEvent[_DYN_HANDLER ] === handlerRef) {
|
|
3484
|
+
found_1 = true;
|
|
3485
|
+
return true;
|
|
3640
3486
|
}
|
|
3487
|
+
return false;
|
|
3488
|
+
});
|
|
3489
|
+
if (!found_1) {
|
|
3490
|
+
_doDetach(target, evtName_1, handlerRef, useCapture);
|
|
3641
3491
|
}
|
|
3642
|
-
}
|
|
3643
|
-
|
|
3492
|
+
}
|
|
3493
|
+
catch (e) {
|
|
3494
|
+
}
|
|
3644
3495
|
}
|
|
3645
|
-
|
|
3646
|
-
return AppInsightsCore;
|
|
3647
|
-
}(BaseCore));
|
|
3496
|
+
}
|
|
3648
3497
|
|
|
3649
|
-
var _a$
|
|
3498
|
+
var _a$1;
|
|
3650
3499
|
var FAILED = "Failed";
|
|
3651
3500
|
var FAILED_MONITOR_AJAX = FAILED + "MonitorAjax";
|
|
3652
3501
|
var TRACK = "Track";
|
|
@@ -3666,91 +3515,91 @@
|
|
|
3666
3515
|
CRITICAL: 1 ,
|
|
3667
3516
|
WARNING: 2
|
|
3668
3517
|
});
|
|
3669
|
-
var _InternalMessageId = createEnumStyle((_a$
|
|
3670
|
-
_a$
|
|
3671
|
-
_a$
|
|
3672
|
-
_a$
|
|
3673
|
-
_a$
|
|
3674
|
-
_a$
|
|
3675
|
-
_a$
|
|
3676
|
-
_a$
|
|
3677
|
-
_a$
|
|
3678
|
-
_a$
|
|
3679
|
-
_a$
|
|
3680
|
-
_a$
|
|
3681
|
-
_a$
|
|
3682
|
-
_a$
|
|
3683
|
-
_a$
|
|
3684
|
-
_a$
|
|
3685
|
-
_a$
|
|
3686
|
-
_a$
|
|
3687
|
-
_a$
|
|
3688
|
-
_a$
|
|
3689
|
-
_a$
|
|
3690
|
-
_a$
|
|
3691
|
-
_a$
|
|
3692
|
-
_a$
|
|
3693
|
-
_a$
|
|
3694
|
-
_a$
|
|
3695
|
-
_a$
|
|
3696
|
-
_a$
|
|
3697
|
-
_a$
|
|
3698
|
-
_a$
|
|
3699
|
-
_a$
|
|
3700
|
-
_a$
|
|
3701
|
-
_a$
|
|
3702
|
-
_a$
|
|
3703
|
-
_a$
|
|
3704
|
-
_a$
|
|
3705
|
-
_a$
|
|
3706
|
-
_a$
|
|
3707
|
-
_a$
|
|
3708
|
-
_a$
|
|
3709
|
-
_a$
|
|
3710
|
-
_a$
|
|
3711
|
-
_a$
|
|
3712
|
-
_a$
|
|
3713
|
-
_a$
|
|
3714
|
-
_a$
|
|
3715
|
-
_a$
|
|
3716
|
-
_a$
|
|
3717
|
-
_a$
|
|
3718
|
-
_a$
|
|
3719
|
-
_a$
|
|
3720
|
-
_a$
|
|
3721
|
-
_a$
|
|
3722
|
-
_a$
|
|
3723
|
-
_a$
|
|
3724
|
-
_a$
|
|
3725
|
-
_a$
|
|
3726
|
-
_a$
|
|
3727
|
-
_a$
|
|
3728
|
-
_a$
|
|
3729
|
-
_a$
|
|
3730
|
-
_a$
|
|
3731
|
-
_a$
|
|
3732
|
-
_a$
|
|
3733
|
-
_a$
|
|
3734
|
-
_a$
|
|
3735
|
-
_a$
|
|
3736
|
-
_a$
|
|
3737
|
-
_a$
|
|
3738
|
-
_a$
|
|
3739
|
-
_a$
|
|
3740
|
-
_a$
|
|
3741
|
-
_a$
|
|
3742
|
-
_a$
|
|
3743
|
-
_a$
|
|
3744
|
-
_a$
|
|
3745
|
-
_a$
|
|
3746
|
-
_a$
|
|
3747
|
-
_a$
|
|
3748
|
-
_a$
|
|
3749
|
-
_a$
|
|
3750
|
-
_a$
|
|
3751
|
-
_a$
|
|
3752
|
-
_a$
|
|
3753
|
-
_a$
|
|
3518
|
+
var _InternalMessageId = createEnumStyle((_a$1 = {},
|
|
3519
|
+
_a$1[BROWSER + "DoesNotSupport" + LOCAL + STORAGE] = 0 ,
|
|
3520
|
+
_a$1[BROWSER + CANNOT + "Read" + LOCAL + STORAGE] = 1 ,
|
|
3521
|
+
_a$1[BROWSER + CANNOT + "Read" + SESSION + STORAGE] = 2 ,
|
|
3522
|
+
_a$1[BROWSER + CANNOT + "Write" + LOCAL + STORAGE] = 3 ,
|
|
3523
|
+
_a$1[BROWSER + CANNOT + "Write" + SESSION + STORAGE] = 4 ,
|
|
3524
|
+
_a$1[BROWSER + FAILED + "RemovalFrom" + LOCAL + STORAGE] = 5 ,
|
|
3525
|
+
_a$1[BROWSER + FAILED + "RemovalFrom" + SESSION + STORAGE] = 6 ,
|
|
3526
|
+
_a$1[CANNOT + "SendEmptyTelemetry"] = 7 ,
|
|
3527
|
+
_a$1.ClientPerformanceMathError = 8 ,
|
|
3528
|
+
_a$1["ErrorParsingAI" + SESSION + "Cookie"] = 9 ,
|
|
3529
|
+
_a$1.ErrorPVCalc = 10 ,
|
|
3530
|
+
_a$1[EXCEPTION + "WhileLoggingError"] = 11 ,
|
|
3531
|
+
_a$1[FAILED + "AddingTelemetryTo" + BUFFER] = 12 ,
|
|
3532
|
+
_a$1[FAILED_MONITOR_AJAX + "Abort"] = 13 ,
|
|
3533
|
+
_a$1[FAILED_MONITOR_AJAX + "Dur"] = 14 ,
|
|
3534
|
+
_a$1[FAILED_MONITOR_AJAX + "Open"] = 15 ,
|
|
3535
|
+
_a$1[FAILED_MONITOR_AJAX + "RSC"] = 16 ,
|
|
3536
|
+
_a$1[FAILED_MONITOR_AJAX + "Send"] = 17 ,
|
|
3537
|
+
_a$1[FAILED_MONITOR_AJAX + "GetCorrelationHeader"] = 18 ,
|
|
3538
|
+
_a$1[FAILED + "ToAddHandlerForOnBeforeUnload"] = 19 ,
|
|
3539
|
+
_a$1[FAILED + "ToSendQueuedTelemetry"] = 20 ,
|
|
3540
|
+
_a$1[FAILED + "ToReportDataLoss"] = 21 ,
|
|
3541
|
+
_a$1["Flush" + FAILED] = 22 ,
|
|
3542
|
+
_a$1.MessageLimitPerPVExceeded = 23 ,
|
|
3543
|
+
_a$1.MissingRequiredFieldSpecification = 24 ,
|
|
3544
|
+
_a$1.NavigationTimingNotSupported = 25 ,
|
|
3545
|
+
_a$1.OnError = 26 ,
|
|
3546
|
+
_a$1[SESSION + "RenewalDateIsZero"] = 27 ,
|
|
3547
|
+
_a$1.SenderNotInitialized = 28 ,
|
|
3548
|
+
_a$1[START + TRACK + EVENT + FAILED] = 29 ,
|
|
3549
|
+
_a$1[STOP + TRACK + EVENT + FAILED] = 30 ,
|
|
3550
|
+
_a$1[START + TRACK + FAILED] = 31 ,
|
|
3551
|
+
_a$1[STOP + TRACK + FAILED] = 32 ,
|
|
3552
|
+
_a$1.TelemetrySampledAndNotSent = 33 ,
|
|
3553
|
+
_a$1[TRACK + EVENT + FAILED] = 34 ,
|
|
3554
|
+
_a$1[TRACK + EXCEPTION + FAILED] = 35 ,
|
|
3555
|
+
_a$1[TRACK + "Metric" + FAILED] = 36 ,
|
|
3556
|
+
_a$1[TRACK + "PV" + FAILED] = 37 ,
|
|
3557
|
+
_a$1[TRACK + "PV" + FAILED + "Calc"] = 38 ,
|
|
3558
|
+
_a$1[TRACK + "Trace" + FAILED] = 39 ,
|
|
3559
|
+
_a$1["Transmission" + FAILED] = 40 ,
|
|
3560
|
+
_a$1[FAILED + "ToSet" + STORAGE + BUFFER] = 41 ,
|
|
3561
|
+
_a$1[FAILED + "ToRestore" + STORAGE + BUFFER] = 42 ,
|
|
3562
|
+
_a$1.InvalidBackendResponse = 43 ,
|
|
3563
|
+
_a$1[FAILED + "ToFixDepricatedValues"] = 44 ,
|
|
3564
|
+
_a$1.InvalidDurationValue = 45 ,
|
|
3565
|
+
_a$1.TelemetryEnvelopeInvalid = 46 ,
|
|
3566
|
+
_a$1.CreateEnvelopeError = 47 ,
|
|
3567
|
+
_a$1[CANNOT + "SerializeObject"] = 48 ,
|
|
3568
|
+
_a$1[CANNOT + "SerializeObjectNonSerializable"] = 49 ,
|
|
3569
|
+
_a$1.CircularReferenceDetected = 50 ,
|
|
3570
|
+
_a$1["Clear" + AUTH_CONTEXT + FAILED] = 51 ,
|
|
3571
|
+
_a$1[EXCEPTION + "Truncated"] = 52 ,
|
|
3572
|
+
_a$1.IllegalCharsInName = 53 ,
|
|
3573
|
+
_a$1.ItemNotInArray = 54 ,
|
|
3574
|
+
_a$1.MaxAjaxPerPVExceeded = 55 ,
|
|
3575
|
+
_a$1.MessageTruncated = 56 ,
|
|
3576
|
+
_a$1.NameTooLong = 57 ,
|
|
3577
|
+
_a$1.SampleRateOutOfRange = 58 ,
|
|
3578
|
+
_a$1["Set" + AUTH_CONTEXT + FAILED] = 59 ,
|
|
3579
|
+
_a$1["Set" + AUTH_CONTEXT + FAILED + "AccountName"] = 60 ,
|
|
3580
|
+
_a$1.StringValueTooLong = 61 ,
|
|
3581
|
+
_a$1.StartCalledMoreThanOnce = 62 ,
|
|
3582
|
+
_a$1.StopCalledWithoutStart = 63 ,
|
|
3583
|
+
_a$1["TelemetryInitializer" + FAILED] = 64 ,
|
|
3584
|
+
_a$1.TrackArgumentsNotSpecified = 65 ,
|
|
3585
|
+
_a$1.UrlTooLong = 66 ,
|
|
3586
|
+
_a$1[SESSION + STORAGE + BUFFER + "Full"] = 67 ,
|
|
3587
|
+
_a$1[CANNOT + "AccessCookie"] = 68 ,
|
|
3588
|
+
_a$1.IdTooLong = 69 ,
|
|
3589
|
+
_a$1.InvalidEvent = 70 ,
|
|
3590
|
+
_a$1[FAILED_MONITOR_AJAX + "SetRequestHeader"] = 71 ,
|
|
3591
|
+
_a$1["Send" + BROWSER + "InfoOnUserInit"] = 72 ,
|
|
3592
|
+
_a$1["Plugin" + EXCEPTION] = 73 ,
|
|
3593
|
+
_a$1["Notification" + EXCEPTION] = 74 ,
|
|
3594
|
+
_a$1.SnippetScriptLoadFailure = 99 ,
|
|
3595
|
+
_a$1["Invalid" + INSTRUMENTATION_KEY] = 100 ,
|
|
3596
|
+
_a$1[CANNOT + "ParseAiBlobValue"] = 101 ,
|
|
3597
|
+
_a$1.InvalidContentBlob = 102 ,
|
|
3598
|
+
_a$1[TRACK + "PageAction" + EVENT + FAILED] = 103 ,
|
|
3599
|
+
_a$1[FAILED + "AddingCustomDefinedRequestContext"] = 104 ,
|
|
3600
|
+
_a$1["InMemory" + STORAGE + BUFFER + "Full"] = 105 ,
|
|
3601
|
+
_a$1[INSTRUMENTATION_KEY + "Deprecation"] = 106 ,
|
|
3602
|
+
_a$1));
|
|
3754
3603
|
|
|
3755
3604
|
var DisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
|
|
3756
3605
|
var SampleRate = "sampleRate";
|
|
@@ -3760,6 +3609,18 @@
|
|
|
3760
3609
|
var DEFAULT_BREEZE_PATH = "/v2/track";
|
|
3761
3610
|
var strNotSpecified = "not_specified";
|
|
3762
3611
|
|
|
3612
|
+
var RequestHeaders = createValueMap({
|
|
3613
|
+
requestContextHeader: [0 , "Request-Context"],
|
|
3614
|
+
requestContextTargetKey: [1 , "appId"],
|
|
3615
|
+
requestContextAppIdFormat: [2 , "appId=cid-v1:"],
|
|
3616
|
+
requestIdHeader: [3 , "Request-Id"],
|
|
3617
|
+
traceParentHeader: [4 , "traceparent"],
|
|
3618
|
+
traceStateHeader: [5 , "tracestate"],
|
|
3619
|
+
sdkContextHeader: [6 , "Sdk-Context"],
|
|
3620
|
+
sdkContextHeaderAppIdRequest: [7 , "appId"],
|
|
3621
|
+
requestContextHeaderLowerCase: [8 , "request-context"]
|
|
3622
|
+
});
|
|
3623
|
+
|
|
3763
3624
|
var _DYN_SPLIT = "split";
|
|
3764
3625
|
var _DYN_LENGTH$1 = "length";
|
|
3765
3626
|
var _DYN_TO_LOWER_CASE = "toLowerCase";
|
|
@@ -3789,111 +3650,7 @@
|
|
|
3789
3650
|
var _DYN_DURATION = "duration";
|
|
3790
3651
|
var _DYN_RECEIVED_RESPONSE = "receivedResponse";
|
|
3791
3652
|
var _DYN_SUBSTRING = "substring";
|
|
3792
|
-
var _DYN_SANITIZE_KEY_AND_ADD2 = "sanitizeKeyAndAddUniqueness";
|
|
3793
|
-
var _DYN_SANITIZE_EXCEPTION = "sanitizeException";
|
|
3794
|
-
var _DYN_SANITIZE_PROPERTIES = "sanitizeProperties";
|
|
3795
|
-
var _DYN_SANITIZE_MEASUREMENT3 = "sanitizeMeasurements";
|
|
3796
|
-
|
|
3797
|
-
var strEmpty = "";
|
|
3798
|
-
function msToTimeSpan(totalms) {
|
|
3799
|
-
if (isNaN(totalms) || totalms < 0) {
|
|
3800
|
-
totalms = 0;
|
|
3801
|
-
}
|
|
3802
|
-
totalms = Math.round(totalms);
|
|
3803
|
-
var ms = strEmpty + totalms % 1000;
|
|
3804
|
-
var sec = strEmpty + Math.floor(totalms / 1000) % 60;
|
|
3805
|
-
var min = strEmpty + Math.floor(totalms / (1000 * 60)) % 60;
|
|
3806
|
-
var hour = strEmpty + Math.floor(totalms / (1000 * 60 * 60)) % 24;
|
|
3807
|
-
var days = Math.floor(totalms / (1000 * 60 * 60 * 24));
|
|
3808
|
-
ms = ms[_DYN_LENGTH$1 ] === 1 ? "00" + ms : ms[_DYN_LENGTH$1 ] === 2 ? "0" + ms : ms;
|
|
3809
|
-
sec = sec[_DYN_LENGTH$1 ] < 2 ? "0" + sec : sec;
|
|
3810
|
-
min = min[_DYN_LENGTH$1 ] < 2 ? "0" + min : min;
|
|
3811
|
-
hour = hour[_DYN_LENGTH$1 ] < 2 ? "0" + hour : hour;
|
|
3812
|
-
return (days > 0 ? days + "." : strEmpty) + hour + ":" + min + ":" + sec + "." + ms;
|
|
3813
|
-
}
|
|
3814
|
-
|
|
3815
|
-
var RequestHeaders = createValueMap({
|
|
3816
|
-
requestContextHeader: [0 , "Request-Context"],
|
|
3817
|
-
requestContextTargetKey: [1 , "appId"],
|
|
3818
|
-
requestContextAppIdFormat: [2 , "appId=cid-v1:"],
|
|
3819
|
-
requestIdHeader: [3 , "Request-Id"],
|
|
3820
|
-
traceParentHeader: [4 , "traceparent"],
|
|
3821
|
-
traceStateHeader: [5 , "tracestate"],
|
|
3822
|
-
sdkContextHeader: [6 , "Sdk-Context"],
|
|
3823
|
-
sdkContextHeaderAppIdRequest: [7 , "appId"],
|
|
3824
|
-
requestContextHeaderLowerCase: [8 , "request-context"]
|
|
3825
|
-
});
|
|
3826
|
-
|
|
3827
|
-
var StorageType = createEnumStyle({
|
|
3828
|
-
LocalStorage: 0 ,
|
|
3829
|
-
SessionStorage: 1
|
|
3830
|
-
});
|
|
3831
|
-
createEnumStyle({
|
|
3832
|
-
AI: 0 ,
|
|
3833
|
-
AI_AND_W3C: 1 ,
|
|
3834
|
-
W3C: 2
|
|
3835
|
-
});
|
|
3836
|
-
|
|
3837
|
-
var _canUseSessionStorage = undefined;
|
|
3838
|
-
function _getVerifiedStorageObject(storageType) {
|
|
3839
|
-
try {
|
|
3840
|
-
if (isNullOrUndefined(getGlobal())) {
|
|
3841
|
-
return null;
|
|
3842
|
-
}
|
|
3843
|
-
var uid = (new Date)[_DYN_TO_STRING$1 ]();
|
|
3844
|
-
var storage = getGlobalInst(storageType === StorageType.LocalStorage ? "localStorage" : "sessionStorage");
|
|
3845
|
-
storage.setItem(uid, uid);
|
|
3846
|
-
var fail = storage.getItem(uid) !== uid;
|
|
3847
|
-
storage[_DYN_REMOVE_ITEM ](uid);
|
|
3848
|
-
if (!fail) {
|
|
3849
|
-
return storage;
|
|
3850
|
-
}
|
|
3851
|
-
}
|
|
3852
|
-
catch (exception) {
|
|
3853
|
-
}
|
|
3854
|
-
return null;
|
|
3855
|
-
}
|
|
3856
|
-
function _getSessionStorageObject() {
|
|
3857
|
-
if (utlCanUseSessionStorage()) {
|
|
3858
|
-
return _getVerifiedStorageObject(StorageType.SessionStorage);
|
|
3859
|
-
}
|
|
3860
|
-
return null;
|
|
3861
|
-
}
|
|
3862
|
-
function utlCanUseSessionStorage(reset) {
|
|
3863
|
-
if (reset || _canUseSessionStorage === undefined) {
|
|
3864
|
-
_canUseSessionStorage = !!_getVerifiedStorageObject(StorageType.SessionStorage);
|
|
3865
|
-
}
|
|
3866
|
-
return _canUseSessionStorage;
|
|
3867
|
-
}
|
|
3868
|
-
function utlGetSessionStorage(logger, name) {
|
|
3869
|
-
var storage = _getSessionStorageObject();
|
|
3870
|
-
if (storage !== null) {
|
|
3871
|
-
try {
|
|
3872
|
-
return storage.getItem(name);
|
|
3873
|
-
}
|
|
3874
|
-
catch (e) {
|
|
3875
|
-
_canUseSessionStorage = false;
|
|
3876
|
-
_throwInternal(logger, 2 , 2 , "Browser failed read of session storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
3877
|
-
}
|
|
3878
|
-
}
|
|
3879
|
-
return null;
|
|
3880
|
-
}
|
|
3881
|
-
function utlSetSessionStorage(logger, name, data) {
|
|
3882
|
-
var storage = _getSessionStorageObject();
|
|
3883
|
-
if (storage !== null) {
|
|
3884
|
-
try {
|
|
3885
|
-
storage.setItem(name, data);
|
|
3886
|
-
return true;
|
|
3887
|
-
}
|
|
3888
|
-
catch (e) {
|
|
3889
|
-
_canUseSessionStorage = false;
|
|
3890
|
-
_throwInternal(logger, 2 , 4 , "Browser failed write to session storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
3891
|
-
}
|
|
3892
|
-
}
|
|
3893
|
-
return false;
|
|
3894
|
-
}
|
|
3895
3653
|
|
|
3896
|
-
var _a$1;
|
|
3897
3654
|
function dataSanitizeKeyAndAddUniqueness(logger, key, map) {
|
|
3898
3655
|
var origLength = key[_DYN_LENGTH$1 ];
|
|
3899
3656
|
var field = dataSanitizeKey(logger, key);
|
|
@@ -3924,9 +3681,9 @@
|
|
|
3924
3681
|
var valueTrunc;
|
|
3925
3682
|
if (value) {
|
|
3926
3683
|
maxLength = maxLength ? maxLength : 1024 ;
|
|
3927
|
-
value = strTrim(value);
|
|
3928
|
-
if (value
|
|
3929
|
-
valueTrunc = value[
|
|
3684
|
+
value = strTrim(value[_DYN_TO_STRING$1 ]());
|
|
3685
|
+
if (value[_DYN_LENGTH$1 ] > maxLength) {
|
|
3686
|
+
valueTrunc = value[_DYN_SUBSTRING ](0, maxLength);
|
|
3930
3687
|
_throwInternal(logger, 2 , 61 , "string value is too long. It has been truncated to " + maxLength + " characters.", { value: value }, true);
|
|
3931
3688
|
}
|
|
3932
3689
|
}
|
|
@@ -3993,7 +3750,7 @@
|
|
|
3993
3750
|
function dataSanitizeInput(logger, input, maxLength, _msgId) {
|
|
3994
3751
|
var inputTrunc;
|
|
3995
3752
|
if (input) {
|
|
3996
|
-
input = strTrim(input);
|
|
3753
|
+
input = strTrim(input[_DYN_TO_STRING$1 ]());
|
|
3997
3754
|
if (input[_DYN_LENGTH$1 ] > maxLength) {
|
|
3998
3755
|
inputTrunc = input[_DYN_SUBSTRING ](0, maxLength);
|
|
3999
3756
|
_throwInternal(logger, 2 , _msgId, "input is too long, it has been truncated to " + maxLength + " characters.", { data: input }, true);
|
|
@@ -4005,28 +3762,6 @@
|
|
|
4005
3762
|
var s = "00" + num;
|
|
4006
3763
|
return s.substr(s[_DYN_LENGTH$1 ] - 3);
|
|
4007
3764
|
}
|
|
4008
|
-
(_a$1 = {
|
|
4009
|
-
MAX_NAME_LENGTH: 150 ,
|
|
4010
|
-
MAX_ID_LENGTH: 128 ,
|
|
4011
|
-
MAX_PROPERTY_LENGTH: 8192 ,
|
|
4012
|
-
MAX_STRING_LENGTH: 1024 ,
|
|
4013
|
-
MAX_URL_LENGTH: 2048 ,
|
|
4014
|
-
MAX_MESSAGE_LENGTH: 32768 ,
|
|
4015
|
-
MAX_EXCEPTION_LENGTH: 32768
|
|
4016
|
-
},
|
|
4017
|
-
_a$1[_DYN_SANITIZE_KEY_AND_ADD2 ] = dataSanitizeKeyAndAddUniqueness,
|
|
4018
|
-
_a$1.sanitizeKey = dataSanitizeKey,
|
|
4019
|
-
_a$1.sanitizeString = dataSanitizeString,
|
|
4020
|
-
_a$1.sanitizeUrl = dataSanitizeUrl,
|
|
4021
|
-
_a$1.sanitizeMessage = dataSanitizeMessage,
|
|
4022
|
-
_a$1[_DYN_SANITIZE_EXCEPTION ] = dataSanitizeException,
|
|
4023
|
-
_a$1[_DYN_SANITIZE_PROPERTIES ] = dataSanitizeProperties,
|
|
4024
|
-
_a$1[_DYN_SANITIZE_MEASUREMENT3 ] = dataSanitizeMeasurements,
|
|
4025
|
-
_a$1.sanitizeId = dataSanitizeId,
|
|
4026
|
-
_a$1.sanitizeInput = dataSanitizeInput,
|
|
4027
|
-
_a$1.padNumber = dsPadNumber,
|
|
4028
|
-
_a$1.trim = strTrim,
|
|
4029
|
-
_a$1);
|
|
4030
3765
|
|
|
4031
3766
|
var _document = getDocument() || {};
|
|
4032
3767
|
var _htmlAnchorIdx = 0;
|
|
@@ -4664,6 +4399,24 @@
|
|
|
4664
4399
|
return Metric;
|
|
4665
4400
|
}());
|
|
4666
4401
|
|
|
4402
|
+
var strEmpty = "";
|
|
4403
|
+
function msToTimeSpan(totalms) {
|
|
4404
|
+
if (isNaN(totalms) || totalms < 0) {
|
|
4405
|
+
totalms = 0;
|
|
4406
|
+
}
|
|
4407
|
+
totalms = Math.round(totalms);
|
|
4408
|
+
var ms = strEmpty + totalms % 1000;
|
|
4409
|
+
var sec = strEmpty + Math.floor(totalms / 1000) % 60;
|
|
4410
|
+
var min = strEmpty + Math.floor(totalms / (1000 * 60)) % 60;
|
|
4411
|
+
var hour = strEmpty + Math.floor(totalms / (1000 * 60 * 60)) % 24;
|
|
4412
|
+
var days = Math.floor(totalms / (1000 * 60 * 60 * 24));
|
|
4413
|
+
ms = ms[_DYN_LENGTH$1 ] === 1 ? "00" + ms : ms[_DYN_LENGTH$1 ] === 2 ? "0" + ms : ms;
|
|
4414
|
+
sec = sec[_DYN_LENGTH$1 ] < 2 ? "0" + sec : sec;
|
|
4415
|
+
min = min[_DYN_LENGTH$1 ] < 2 ? "0" + min : min;
|
|
4416
|
+
hour = hour[_DYN_LENGTH$1 ] < 2 ? "0" + hour : hour;
|
|
4417
|
+
return (days > 0 ? days + "." : strEmpty) + hour + ":" + min + ":" + sec + "." + ms;
|
|
4418
|
+
}
|
|
4419
|
+
|
|
4667
4420
|
var PageView = /** @class */ (function () {
|
|
4668
4421
|
function PageView(logger, name, url, durationMs, properties, measurements, id) {
|
|
4669
4422
|
this.aiDataContract = {
|
|
@@ -4899,6 +4652,75 @@
|
|
|
4899
4652
|
|
|
4900
4653
|
var CtxTagKeys = new ContextTagKeys();
|
|
4901
4654
|
|
|
4655
|
+
var StorageType = createEnumStyle({
|
|
4656
|
+
LocalStorage: 0 ,
|
|
4657
|
+
SessionStorage: 1
|
|
4658
|
+
});
|
|
4659
|
+
createEnumStyle({
|
|
4660
|
+
AI: 0 ,
|
|
4661
|
+
AI_AND_W3C: 1 ,
|
|
4662
|
+
W3C: 2
|
|
4663
|
+
});
|
|
4664
|
+
|
|
4665
|
+
var _canUseSessionStorage = undefined;
|
|
4666
|
+
function _getVerifiedStorageObject(storageType) {
|
|
4667
|
+
try {
|
|
4668
|
+
if (isNullOrUndefined(getGlobal$1())) {
|
|
4669
|
+
return null;
|
|
4670
|
+
}
|
|
4671
|
+
var uid = (new Date)[_DYN_TO_STRING$1 ]();
|
|
4672
|
+
var storage = getInst(storageType === StorageType.LocalStorage ? "localStorage" : "sessionStorage");
|
|
4673
|
+
storage.setItem(uid, uid);
|
|
4674
|
+
var fail = storage.getItem(uid) !== uid;
|
|
4675
|
+
storage[_DYN_REMOVE_ITEM ](uid);
|
|
4676
|
+
if (!fail) {
|
|
4677
|
+
return storage;
|
|
4678
|
+
}
|
|
4679
|
+
}
|
|
4680
|
+
catch (exception) {
|
|
4681
|
+
}
|
|
4682
|
+
return null;
|
|
4683
|
+
}
|
|
4684
|
+
function _getSessionStorageObject() {
|
|
4685
|
+
if (utlCanUseSessionStorage()) {
|
|
4686
|
+
return _getVerifiedStorageObject(StorageType.SessionStorage);
|
|
4687
|
+
}
|
|
4688
|
+
return null;
|
|
4689
|
+
}
|
|
4690
|
+
function utlCanUseSessionStorage(reset) {
|
|
4691
|
+
if (reset || _canUseSessionStorage === undefined) {
|
|
4692
|
+
_canUseSessionStorage = !!_getVerifiedStorageObject(StorageType.SessionStorage);
|
|
4693
|
+
}
|
|
4694
|
+
return _canUseSessionStorage;
|
|
4695
|
+
}
|
|
4696
|
+
function utlGetSessionStorage(logger, name) {
|
|
4697
|
+
var storage = _getSessionStorageObject();
|
|
4698
|
+
if (storage !== null) {
|
|
4699
|
+
try {
|
|
4700
|
+
return storage.getItem(name);
|
|
4701
|
+
}
|
|
4702
|
+
catch (e) {
|
|
4703
|
+
_canUseSessionStorage = false;
|
|
4704
|
+
_throwInternal(logger, 2 , 2 , "Browser failed read of session storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
4705
|
+
}
|
|
4706
|
+
}
|
|
4707
|
+
return null;
|
|
4708
|
+
}
|
|
4709
|
+
function utlSetSessionStorage(logger, name, data) {
|
|
4710
|
+
var storage = _getSessionStorageObject();
|
|
4711
|
+
if (storage !== null) {
|
|
4712
|
+
try {
|
|
4713
|
+
storage.setItem(name, data);
|
|
4714
|
+
return true;
|
|
4715
|
+
}
|
|
4716
|
+
catch (e) {
|
|
4717
|
+
_canUseSessionStorage = false;
|
|
4718
|
+
_throwInternal(logger, 2 , 4 , "Browser failed write to session storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
4719
|
+
}
|
|
4720
|
+
}
|
|
4721
|
+
return false;
|
|
4722
|
+
}
|
|
4723
|
+
|
|
4902
4724
|
var BreezeChannelIdentifier = "AppInsightsChannelPlugin";
|
|
4903
4725
|
|
|
4904
4726
|
var STR_DURATION = "duration";
|
|
@@ -5069,7 +4891,7 @@
|
|
|
5069
4891
|
}
|
|
5070
4892
|
}
|
|
5071
4893
|
var EnvelopeCreator = {
|
|
5072
|
-
Version: "3.0.0-beta.2208-
|
|
4894
|
+
Version: "3.0.0-beta.2208-16"
|
|
5073
4895
|
};
|
|
5074
4896
|
function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
|
|
5075
4897
|
EnvelopeCreatorInit(logger, telemetryItem);
|
|
@@ -6222,7 +6044,7 @@
|
|
|
6222
6044
|
});
|
|
6223
6045
|
}
|
|
6224
6046
|
}
|
|
6225
|
-
})
|
|
6047
|
+
}).catch(function (error) {
|
|
6226
6048
|
if (!isAsync) {
|
|
6227
6049
|
_syncFetchPayload -= batchLength;
|
|
6228
6050
|
batchLength = 0;
|
|
@@ -6306,10 +6128,14 @@
|
|
|
6306
6128
|
_retryAt = null;
|
|
6307
6129
|
}
|
|
6308
6130
|
function _isRetriable(statusCode) {
|
|
6309
|
-
return statusCode ===
|
|
6131
|
+
return statusCode === 401
|
|
6132
|
+
|| statusCode === 403
|
|
6133
|
+
|| statusCode === 408
|
|
6310
6134
|
|| statusCode === 429
|
|
6311
6135
|
|| statusCode === 500
|
|
6312
|
-
|| statusCode ===
|
|
6136
|
+
|| statusCode === 502
|
|
6137
|
+
|| statusCode === 503
|
|
6138
|
+
|| statusCode === 504;
|
|
6313
6139
|
}
|
|
6314
6140
|
function _formatErrorMessageXhr(xhr, message) {
|
|
6315
6141
|
if (xhr) {
|
|
@@ -6417,13 +6243,13 @@
|
|
|
6417
6243
|
}
|
|
6418
6244
|
dynamicProto(ApplicationInsights, this, function (_self) {
|
|
6419
6245
|
_self.config = config;
|
|
6420
|
-
_self.getSKUDefaults();
|
|
6421
6246
|
_initialize();
|
|
6422
6247
|
_self[_DYN_INITIALIZE ] = _initialize;
|
|
6423
6248
|
_self.getSKUDefaults = function () {
|
|
6424
6249
|
_self.config[_DYN_DIAGNOSTIC_LOG_INTER0 ] =
|
|
6425
6250
|
_self.config[_DYN_DIAGNOSTIC_LOG_INTER0 ] && _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 ] > 0 ? _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 ] : 10000;
|
|
6426
6251
|
};
|
|
6252
|
+
_self.getSKUDefaults();
|
|
6427
6253
|
proxyFunctions(_self, core, [
|
|
6428
6254
|
"track",
|
|
6429
6255
|
"flush",
|
|
@@ -6439,8 +6265,8 @@
|
|
|
6439
6265
|
var extensions = [];
|
|
6440
6266
|
var appInsightsChannel = new Sender();
|
|
6441
6267
|
extensions.push(appInsightsChannel);
|
|
6442
|
-
core[_DYN_INITIALIZE ](
|
|
6443
|
-
appInsightsChannel[_DYN_INITIALIZE ](
|
|
6268
|
+
core[_DYN_INITIALIZE ](_self.config, extensions);
|
|
6269
|
+
appInsightsChannel[_DYN_INITIALIZE ](_self.config, core, extensions);
|
|
6444
6270
|
core.pollInternalLogs();
|
|
6445
6271
|
}
|
|
6446
6272
|
});
|
|
@@ -6451,7 +6277,6 @@
|
|
|
6451
6277
|
|
|
6452
6278
|
exports.AppInsightsCore = AppInsightsCore;
|
|
6453
6279
|
exports.ApplicationInsights = ApplicationInsights;
|
|
6454
|
-
exports.CoreUtils = CoreUtils;
|
|
6455
6280
|
exports.Sender = Sender;
|
|
6456
6281
|
exports.SeverityLevel = SeverityLevel;
|
|
6457
6282
|
exports._InternalMessageId = _InternalMessageId;
|
|
@@ -6460,7 +6285,7 @@
|
|
|
6460
6285
|
exports.proxyFunctions = proxyFunctions;
|
|
6461
6286
|
exports.throwError = throwError;
|
|
6462
6287
|
|
|
6463
|
-
|
|
6288
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6464
6289
|
|
|
6465
6290
|
}));
|
|
6466
|
-
//# sourceMappingURL=aib.3.0.0-beta.2208-
|
|
6291
|
+
//# sourceMappingURL=aib.3.0.0-beta.2208-16.js.map
|