@microsoft/applicationinsights-analytics-js 3.1.0-nightly3.2401-08 → 3.1.0-nightly3.2401-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/es5/applicationinsights-analytics-js.cjs.js +101 -75
- package/browser/es5/applicationinsights-analytics-js.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-analytics-js.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.gbl.js +103 -77
- package/browser/es5/applicationinsights-analytics-js.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-analytics-js.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.integrity.json +25 -25
- package/browser/es5/applicationinsights-analytics-js.js +103 -77
- package/browser/es5/applicationinsights-analytics-js.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.min.js +2 -2
- package/browser/es5/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist/es5/applicationinsights-analytics-js.js +101 -75
- package/dist/es5/applicationinsights-analytics-js.js.map +1 -1
- package/dist/es5/applicationinsights-analytics-js.min.js +2 -2
- package/dist/es5/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js +2 -2
- package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js.map +1 -1
- package/dist-es5/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
- package/dist-es5/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +1 -1
- package/dist-es5/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
- package/dist-es5/JavaScriptSDK/Timing.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-analytics-js.js +1 -1
- package/package.json +7 -7
- package/types/applicationinsights-analytics-js.d.ts +1 -1
- package/types/applicationinsights-analytics-js.namespaced.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Web Analytics, 3.1.0-nightly3.2401-
|
|
2
|
+
* Application Insights JavaScript SDK - Web Analytics, 3.1.0-nightly3.2401-10
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -27,7 +27,6 @@ var CONSTRUCTOR = "constructor";
|
|
|
27
27
|
var SYMBOL = "Symbol";
|
|
28
28
|
var POLYFILL_TAG = "_polyfill";
|
|
29
29
|
var INDEX_OF = "indexOf";
|
|
30
|
-
var LAST_INDEX_OF = "lastIndexOf";
|
|
31
30
|
var LENGTH = "length";
|
|
32
31
|
var DONE = "done";
|
|
33
32
|
var VALUE = "value";
|
|
@@ -52,34 +51,42 @@ function safeGet(cb, defValue) {
|
|
|
52
51
|
return result;
|
|
53
52
|
}
|
|
54
53
|
|
|
54
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
55
55
|
function _createIs(theType) {
|
|
56
56
|
return function (value) {
|
|
57
57
|
return typeof value === theType;
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
60
61
|
function _createObjIs(theName) {
|
|
61
62
|
var theType = "[object " + theName + "]";
|
|
62
63
|
return function (value) {
|
|
63
64
|
return !!(value && objToString(value) === theType);
|
|
64
65
|
};
|
|
65
66
|
}
|
|
67
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
66
68
|
function objToString(value) {
|
|
67
69
|
return ObjProto.toString[CALL](value);
|
|
68
70
|
}
|
|
71
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69
72
|
function isUndefined(value) {
|
|
70
73
|
return typeof value === UNDEFINED || value === UNDEFINED;
|
|
71
74
|
}
|
|
75
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
72
76
|
function isNullOrUndefined(value) {
|
|
73
77
|
return value === NULL_VALUE || isUndefined(value);
|
|
74
78
|
}
|
|
79
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
75
80
|
function isStrictNullOrUndefined(value) {
|
|
76
81
|
return value === NULL_VALUE || !isDefined(value);
|
|
77
82
|
}
|
|
83
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
78
84
|
function isDefined(arg) {
|
|
79
85
|
return !!arg || arg !== UNDEF_VALUE;
|
|
80
86
|
}
|
|
81
|
-
var isString = ( _createIs(STRING));
|
|
82
|
-
var isFunction = ( _createIs(FUNCTION));
|
|
87
|
+
var isString = ( /*#__PURE__*/_createIs(STRING));
|
|
88
|
+
var isFunction = ( /*#__PURE__*/_createIs(FUNCTION));
|
|
89
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
83
90
|
function isObject(value) {
|
|
84
91
|
if (!value && isNullOrUndefined(value)) {
|
|
85
92
|
return false;
|
|
@@ -87,20 +94,23 @@ function isObject(value) {
|
|
|
87
94
|
return !!value && typeof value === OBJECT;
|
|
88
95
|
}
|
|
89
96
|
var isArray = ArrCls.isArray;
|
|
90
|
-
var isNumber = ( _createIs(NUMBER));
|
|
91
|
-
var isBoolean = ( _createIs(BOOLEAN));
|
|
92
|
-
var isError = ( _createObjIs("Error"));
|
|
97
|
+
var isNumber = ( /*#__PURE__*/_createIs(NUMBER));
|
|
98
|
+
var isBoolean = ( /*#__PURE__*/_createIs(BOOLEAN));
|
|
99
|
+
var isError = ( /*#__PURE__*/_createObjIs("Error"));
|
|
100
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
93
101
|
function isTruthy(value) {
|
|
94
102
|
return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value));
|
|
95
103
|
}
|
|
96
104
|
|
|
97
105
|
var objGetOwnPropertyDescriptor = ObjClass.getOwnPropertyDescriptor;
|
|
98
106
|
|
|
107
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
99
108
|
function objHasOwnProperty(obj, prop) {
|
|
100
109
|
return obj && ObjProto.hasOwnProperty[CALL](obj, prop);
|
|
101
110
|
}
|
|
102
111
|
|
|
103
112
|
var objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn;
|
|
113
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
104
114
|
function polyObjHasOwn(obj, prop) {
|
|
105
115
|
return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
|
|
106
116
|
}
|
|
@@ -117,6 +127,7 @@ function objForEachKey(theObject, callbackfn, thisArg) {
|
|
|
117
127
|
}
|
|
118
128
|
}
|
|
119
129
|
|
|
130
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
120
131
|
function _createKeyValueMap(values, keyType, valueType, completeFn) {
|
|
121
132
|
var theMap = {};
|
|
122
133
|
objForEachKey(values, function (key, value) {
|
|
@@ -137,10 +148,12 @@ var _objFreeze = ObjClass["freeze"];
|
|
|
137
148
|
function _doNothing(value) {
|
|
138
149
|
return value;
|
|
139
150
|
}
|
|
151
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
140
152
|
function _getProto(value) {
|
|
141
153
|
return value[__PROTO__] || NULL_VALUE;
|
|
142
154
|
}
|
|
143
155
|
var objAssign = ObjClass["assign"];
|
|
156
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
144
157
|
function objKeys(value) {
|
|
145
158
|
if (!isObject(value) || value === NULL_VALUE) {
|
|
146
159
|
throwTypeError("objKeys called on non-object");
|
|
@@ -160,14 +173,16 @@ function objDeepFreeze(value) {
|
|
|
160
173
|
var objFreeze = _objFreeze || _doNothing;
|
|
161
174
|
var objGetPrototypeOf = ObjClass["getPrototypeOf"] || _getProto;
|
|
162
175
|
|
|
176
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
163
177
|
function createEnum(values) {
|
|
164
178
|
return _createKeyValueMap(values, 1 , 0 , objDeepFreeze);
|
|
165
179
|
}
|
|
180
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
166
181
|
function createEnumKeyMap(values) {
|
|
167
182
|
return _createKeyValueMap(values, 0 , 0 , objDeepFreeze);
|
|
168
183
|
}
|
|
169
184
|
|
|
170
|
-
var _wellKnownSymbolMap =
|
|
185
|
+
var _wellKnownSymbolMap = /*#__PURE__*/ createEnumKeyMap({
|
|
171
186
|
asyncIterator: 0 ,
|
|
172
187
|
hasInstance: 1 ,
|
|
173
188
|
isConcatSpreadable: 2 ,
|
|
@@ -187,6 +202,7 @@ var asString = StrCls;
|
|
|
187
202
|
|
|
188
203
|
var GLOBAL_CONFIG_KEY = "__tsUtils$gblCfg";
|
|
189
204
|
var _globalCfg;
|
|
205
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
190
206
|
function _getGlobalValue() {
|
|
191
207
|
var result;
|
|
192
208
|
if (typeof globalThis !== UNDEFINED) {
|
|
@@ -203,6 +219,7 @@ function _getGlobalValue() {
|
|
|
203
219
|
}
|
|
204
220
|
return result;
|
|
205
221
|
}
|
|
222
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
206
223
|
function _getGlobalConfig() {
|
|
207
224
|
if (!_globalCfg) {
|
|
208
225
|
var gbl = _getGlobalValue() || {};
|
|
@@ -211,6 +228,7 @@ function _getGlobalConfig() {
|
|
|
211
228
|
return _globalCfg;
|
|
212
229
|
}
|
|
213
230
|
|
|
231
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
214
232
|
function dumpObj(object, format) {
|
|
215
233
|
var propertyValueDump = EMPTY;
|
|
216
234
|
if (isError(object)) {
|
|
@@ -231,12 +249,14 @@ var _slice;
|
|
|
231
249
|
function _throwMissingFunction(funcName, thisArg) {
|
|
232
250
|
throwTypeError("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
|
|
233
251
|
}
|
|
252
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
234
253
|
function _unwrapInstFunction(funcName) {
|
|
235
254
|
_slice = _slice || ArrProto[SLICE];
|
|
236
255
|
return function (thisArg) {
|
|
237
256
|
return thisArg[funcName].apply(thisArg, _slice[CALL](arguments, 1));
|
|
238
257
|
};
|
|
239
258
|
}
|
|
259
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
240
260
|
function _unwrapFunction(funcName, clsProto) {
|
|
241
261
|
_slice = _slice || ArrProto[SLICE];
|
|
242
262
|
var clsFn = clsProto && clsProto[funcName];
|
|
@@ -248,6 +268,7 @@ function _unwrapFunction(funcName, clsProto) {
|
|
|
248
268
|
_throwMissingFunction(funcName, thisArg);
|
|
249
269
|
};
|
|
250
270
|
}
|
|
271
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
251
272
|
function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
|
|
252
273
|
_slice = _slice || ArrProto[SLICE];
|
|
253
274
|
var clsFn = clsProto && clsProto[funcName];
|
|
@@ -263,10 +284,11 @@ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
|
|
|
263
284
|
|
|
264
285
|
var mathMax = MathCls.max;
|
|
265
286
|
|
|
266
|
-
var strSlice = ( _unwrapFunction(SLICE, StrProto));
|
|
287
|
+
var strSlice = ( /*#__PURE__*/_unwrapFunction(SLICE, StrProto));
|
|
267
288
|
|
|
268
|
-
var strSubstring = ( _unwrapFunction("substring", StrProto));
|
|
269
|
-
var strSubstr = ( _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
|
|
289
|
+
var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
|
|
290
|
+
var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
|
|
291
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
270
292
|
function polyStrSubstr(value, start, length) {
|
|
271
293
|
if (isNullOrUndefined(value)) {
|
|
272
294
|
throwTypeError("'polyStrSubstr called with invalid " + dumpObj(value));
|
|
@@ -283,12 +305,14 @@ function polyStrSubstr(value, start, length) {
|
|
|
283
305
|
}
|
|
284
306
|
return strSlice(value, start, start + length);
|
|
285
307
|
}
|
|
308
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
286
309
|
function strLeft(value, count) {
|
|
287
310
|
return strSubstring(value, 0, count);
|
|
288
311
|
}
|
|
289
312
|
|
|
290
313
|
var UNIQUE_REGISTRY_ID = "_urid";
|
|
291
314
|
var _polySymbols;
|
|
315
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
292
316
|
function _globalSymbolRegistry() {
|
|
293
317
|
if (!_polySymbols) {
|
|
294
318
|
var gblCfg = _getGlobalConfig();
|
|
@@ -296,7 +320,8 @@ function _globalSymbolRegistry() {
|
|
|
296
320
|
}
|
|
297
321
|
return _polySymbols;
|
|
298
322
|
}
|
|
299
|
-
var _wellKnownSymbolCache
|
|
323
|
+
var _wellKnownSymbolCache;
|
|
324
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
300
325
|
function polyNewSymbol(description) {
|
|
301
326
|
var theSymbol = {
|
|
302
327
|
description: asString(description),
|
|
@@ -305,6 +330,7 @@ function polyNewSymbol(description) {
|
|
|
305
330
|
theSymbol[POLYFILL_TAG] = true;
|
|
306
331
|
return theSymbol;
|
|
307
332
|
}
|
|
333
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
308
334
|
function polySymbolFor(key) {
|
|
309
335
|
var registry = _globalSymbolRegistry();
|
|
310
336
|
if (!objHasOwn(registry.k, key)) {
|
|
@@ -316,7 +342,9 @@ function polySymbolFor(key) {
|
|
|
316
342
|
}
|
|
317
343
|
return registry.k[key];
|
|
318
344
|
}
|
|
345
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
319
346
|
function polyGetKnownSymbol(name) {
|
|
347
|
+
!_wellKnownSymbolCache && (_wellKnownSymbolCache = {});
|
|
320
348
|
var result;
|
|
321
349
|
var knownName = _wellKnownSymbolMap[name];
|
|
322
350
|
if (knownName) {
|
|
@@ -333,6 +361,7 @@ var propMap = {
|
|
|
333
361
|
g: "get",
|
|
334
362
|
s: "set"
|
|
335
363
|
};
|
|
364
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
336
365
|
function _createProp(value) {
|
|
337
366
|
var prop = {};
|
|
338
367
|
prop[propMap["c"]] = true;
|
|
@@ -394,16 +423,18 @@ var WINDOW = "window";
|
|
|
394
423
|
var _cachedGlobal;
|
|
395
424
|
var _cachedWindow;
|
|
396
425
|
var _cachedDocument;
|
|
397
|
-
var _cachedNavigator;
|
|
398
426
|
var _cachedHistory;
|
|
399
427
|
var _isWebWorker;
|
|
428
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
400
429
|
function lazySafeGetInst(name) {
|
|
401
430
|
return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE);
|
|
402
431
|
}
|
|
432
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
403
433
|
function getGlobal(useCached) {
|
|
404
434
|
(!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE));
|
|
405
435
|
return _cachedGlobal.v;
|
|
406
436
|
}
|
|
437
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
407
438
|
function getInst(name, useCached) {
|
|
408
439
|
var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
|
|
409
440
|
if (gbl && gbl[name]) {
|
|
@@ -414,24 +445,25 @@ function getInst(name, useCached) {
|
|
|
414
445
|
}
|
|
415
446
|
return NULL_VALUE;
|
|
416
447
|
}
|
|
448
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
417
449
|
function getDocument() {
|
|
418
450
|
(!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document"));
|
|
419
451
|
return _cachedDocument.v;
|
|
420
452
|
}
|
|
453
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
421
454
|
function hasWindow() {
|
|
422
455
|
return !!getWindow();
|
|
423
456
|
}
|
|
457
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
424
458
|
function getWindow() {
|
|
425
459
|
(!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW));
|
|
426
460
|
return _cachedWindow.v;
|
|
427
461
|
}
|
|
428
|
-
|
|
429
|
-
(!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator"));
|
|
430
|
-
return _cachedNavigator.v;
|
|
431
|
-
}
|
|
462
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
432
463
|
function hasHistory() {
|
|
433
464
|
return !!getHistory();
|
|
434
465
|
}
|
|
466
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
435
467
|
function getHistory() {
|
|
436
468
|
(!_cachedHistory || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedHistory.b)) && (_cachedHistory = lazySafeGetInst("history"));
|
|
437
469
|
return _cachedHistory.v;
|
|
@@ -443,7 +475,7 @@ function isWebWorker() {
|
|
|
443
475
|
|
|
444
476
|
var _symbol;
|
|
445
477
|
var _symbolFor;
|
|
446
|
-
|
|
478
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
447
479
|
function _getSymbolValue(name) {
|
|
448
480
|
return safeGetLazy(function () {
|
|
449
481
|
return (_symbol.v ? _symbol.v[name] : UNDEF_VALUE);
|
|
@@ -453,26 +485,30 @@ function getSymbol() {
|
|
|
453
485
|
var resetCache = !_symbol || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_symbol.b);
|
|
454
486
|
resetCache && (_symbol = lazySafeGetInst(SYMBOL));
|
|
455
487
|
(!_symbolFor || resetCache) && (_symbolFor = _getSymbolValue("for"));
|
|
456
|
-
(!_symbolKeyFor || resetCache) && (_symbolKeyFor = _getSymbolValue("keyFor"));
|
|
457
488
|
return _symbol.v;
|
|
458
489
|
}
|
|
490
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
459
491
|
function getKnownSymbol(name, noPoly) {
|
|
460
492
|
var knownName = _wellKnownSymbolMap[name];
|
|
461
493
|
(!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
|
|
462
494
|
return _symbol.v ? _symbol.v[knownName || name] : (!noPoly ? polyGetKnownSymbol(name) : UNDEF_VALUE);
|
|
463
495
|
}
|
|
496
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
464
497
|
function newSymbol(description, noPoly) {
|
|
465
498
|
(!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
|
|
466
499
|
return _symbol.v ? _symbol.v(description) : (!noPoly ? polyNewSymbol(description) : NULL_VALUE);
|
|
467
500
|
}
|
|
501
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
468
502
|
function symbolFor(key) {
|
|
469
503
|
(!_symbolFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
|
|
470
504
|
return (_symbolFor.v || polySymbolFor)(key);
|
|
471
505
|
}
|
|
472
506
|
|
|
507
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
473
508
|
function isIterator(value) {
|
|
474
509
|
return !!value && isFunction(value.next);
|
|
475
510
|
}
|
|
511
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
476
512
|
function isIterable(value) {
|
|
477
513
|
return !isStrictNullOrUndefined(value) && isFunction(value[getKnownSymbol(3 )]);
|
|
478
514
|
}
|
|
@@ -519,7 +555,7 @@ function iterForOf(iter, callbackfn, thisArg) {
|
|
|
519
555
|
}
|
|
520
556
|
}
|
|
521
557
|
|
|
522
|
-
var fnApply = ( _unwrapInstFunction("apply"));
|
|
558
|
+
var fnApply = ( /*#__PURE__*/_unwrapInstFunction("apply"));
|
|
523
559
|
|
|
524
560
|
function arrAppend(target, elms) {
|
|
525
561
|
if (!isUndefined(elms) && target) {
|
|
@@ -551,14 +587,14 @@ function arrForEach(theArray, callbackfn, thisArg) {
|
|
|
551
587
|
}
|
|
552
588
|
}
|
|
553
589
|
|
|
554
|
-
var arrIndexOf = ( _unwrapFunction(INDEX_OF, ArrProto));
|
|
555
|
-
( _unwrapFunction(LAST_INDEX_OF, ArrProto));
|
|
590
|
+
var arrIndexOf = ( /*#__PURE__*/_unwrapFunction(INDEX_OF, ArrProto));
|
|
556
591
|
|
|
557
|
-
var arrMap = ( _unwrapFunction("map", ArrProto));
|
|
592
|
+
var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
|
|
558
593
|
|
|
559
|
-
var arrSlice = ( _unwrapFunction(SLICE, ArrProto));
|
|
594
|
+
var arrSlice = ( /*#__PURE__*/_unwrapFunction(SLICE, ArrProto));
|
|
560
595
|
|
|
561
596
|
var objCreate = ObjClass["create"] || polyObjCreate;
|
|
597
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
562
598
|
function polyObjCreate(obj) {
|
|
563
599
|
if (!obj) {
|
|
564
600
|
return {};
|
|
@@ -595,20 +631,21 @@ function _createCustomError(name, d, b) {
|
|
|
595
631
|
d[PROTOTYPE] = b === NULL_VALUE ? objCreate(b) : (__[PROTOTYPE] = b[PROTOTYPE], new __());
|
|
596
632
|
return d;
|
|
597
633
|
}
|
|
598
|
-
|
|
634
|
+
function _safeSetName(baseClass, name) {
|
|
599
635
|
try {
|
|
600
636
|
name && (baseClass[NAME] = name);
|
|
601
637
|
}
|
|
602
638
|
catch (e) {
|
|
603
639
|
}
|
|
604
|
-
}
|
|
605
|
-
|
|
640
|
+
}
|
|
641
|
+
function _safeDefineName(target, name) {
|
|
606
642
|
try {
|
|
607
643
|
objDefine(target, NAME, { v: name, c: true, e: false });
|
|
608
644
|
}
|
|
609
645
|
catch (e) {
|
|
610
646
|
}
|
|
611
|
-
}
|
|
647
|
+
}
|
|
648
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
612
649
|
function createCustomError(name, constructCb, errorBase) {
|
|
613
650
|
var theBaseClass = errorBase || Error;
|
|
614
651
|
var orgName = theBaseClass[PROTOTYPE][NAME];
|
|
@@ -634,13 +671,16 @@ function createCustomError(name, constructCb, errorBase) {
|
|
|
634
671
|
}, theBaseClass);
|
|
635
672
|
}
|
|
636
673
|
|
|
674
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
637
675
|
function utcNow() {
|
|
638
676
|
return (Date.now || polyUtcNow)();
|
|
639
677
|
}
|
|
678
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
640
679
|
function polyUtcNow() {
|
|
641
680
|
return new Date().getTime();
|
|
642
681
|
}
|
|
643
682
|
|
|
683
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
644
684
|
function _createTrimFn(exp) {
|
|
645
685
|
return function _doTrim(value) {
|
|
646
686
|
if (isNullOrUndefined(value)) {
|
|
@@ -652,17 +692,14 @@ function _createTrimFn(exp) {
|
|
|
652
692
|
return value;
|
|
653
693
|
};
|
|
654
694
|
}
|
|
655
|
-
var polyStrTrim = ( _createTrimFn(/^\s+|(?=\s)\s+$/g));
|
|
656
|
-
var polyStrTrimStart = ( _createTrimFn(/^\s+/g));
|
|
657
|
-
var polyStrTrimEnd = ( _createTrimFn(/(?=\s)\s+$/g));
|
|
695
|
+
var polyStrTrim = ( /*#__PURE__*/_createTrimFn(/^\s+|(?=\s)\s+$/g));
|
|
658
696
|
|
|
659
|
-
var strTrim = ( _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
|
|
660
|
-
( _unwrapFunctionWithPoly("trimStart", StrProto, polyStrTrimStart));
|
|
661
|
-
( _unwrapFunctionWithPoly("trimEnd", StrProto, polyStrTrimEnd));
|
|
697
|
+
var strTrim = ( /*#__PURE__*/_unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
|
|
662
698
|
|
|
663
699
|
var _fnToString;
|
|
664
700
|
var _objCtrFnString;
|
|
665
701
|
var _gblWindow;
|
|
702
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
666
703
|
function isPlainObject(value) {
|
|
667
704
|
if (!value || typeof value !== OBJECT) {
|
|
668
705
|
return false;
|
|
@@ -693,12 +730,14 @@ function isPlainObject(value) {
|
|
|
693
730
|
}
|
|
694
731
|
|
|
695
732
|
var _perf;
|
|
733
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
696
734
|
function getPerformance() {
|
|
697
735
|
(!_perf || (!_perf.b && _globalLazyTestHooks && _globalLazyTestHooks.lzy)) && (_perf = lazySafeGetInst("performance"));
|
|
698
736
|
return _perf.v;
|
|
699
737
|
}
|
|
700
738
|
|
|
701
|
-
var strEndsWith = ( _unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
|
|
739
|
+
var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
|
|
740
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
702
741
|
function polyStrEndsWith(value, searchString, length) {
|
|
703
742
|
if (!isString(value)) {
|
|
704
743
|
throwTypeError("'" + dumpObj(value) + "' is not a string");
|
|
@@ -710,8 +749,7 @@ function polyStrEndsWith(value, searchString, length) {
|
|
|
710
749
|
return strSubstring(value, end - chkLen, end) === searchValue;
|
|
711
750
|
}
|
|
712
751
|
|
|
713
|
-
var strIndexOf = ( _unwrapFunction(INDEX_OF, StrProto));
|
|
714
|
-
( _unwrapFunction(LAST_INDEX_OF, StrProto));
|
|
752
|
+
var strIndexOf = ( /*#__PURE__*/_unwrapFunction(INDEX_OF, StrProto));
|
|
715
753
|
|
|
716
754
|
var REF = "ref";
|
|
717
755
|
var UNREF = "un" + REF;
|
|
@@ -802,8 +840,6 @@ function scheduleTimeout(callback, timeout) {
|
|
|
802
840
|
return _createTimeoutWith(this, true, UNDEF_VALUE, arrSlice(arguments));
|
|
803
841
|
}
|
|
804
842
|
|
|
805
|
-
(getGlobal() || {})["Symbol"];
|
|
806
|
-
(getGlobal() || {})["Reflect"];
|
|
807
843
|
var strHasOwnProperty = "hasOwnProperty";
|
|
808
844
|
var __objAssignFnImpl = function (t) {
|
|
809
845
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -912,13 +948,13 @@ function _forEachProp(target, func) {
|
|
|
912
948
|
}
|
|
913
949
|
}
|
|
914
950
|
function _isDynamicCandidate(target, funcName, skipOwn) {
|
|
915
|
-
return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || objHasOwnProperty(target, funcName)));
|
|
951
|
+
return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || objHasOwnProperty(target, funcName)) && funcName !== str__Proto && funcName !== Prototype);
|
|
916
952
|
}
|
|
917
953
|
function _throwTypeError(message) {
|
|
918
954
|
throwTypeError("DynamicProto: " + message);
|
|
919
955
|
}
|
|
920
956
|
function _getInstanceFuncs(thisTarget) {
|
|
921
|
-
var instFuncs =
|
|
957
|
+
var instFuncs = objCreate(null);
|
|
922
958
|
_forEachProp(thisTarget, function (name) {
|
|
923
959
|
if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
|
|
924
960
|
instFuncs[name] = thisTarget[name];
|
|
@@ -947,7 +983,7 @@ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
|
|
|
947
983
|
return theFunc.apply(target, arguments);
|
|
948
984
|
};
|
|
949
985
|
}
|
|
950
|
-
var baseFuncs =
|
|
986
|
+
var baseFuncs = objCreate(null);
|
|
951
987
|
_forEachProp(instFuncs, function (name) {
|
|
952
988
|
baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
|
|
953
989
|
});
|
|
@@ -967,8 +1003,8 @@ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
|
|
|
967
1003
|
function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
|
|
968
1004
|
var instFunc = null;
|
|
969
1005
|
if (target && objHasOwnProperty(proto, DynClassName)) {
|
|
970
|
-
var instFuncTable = target[DynInstFuncTable] ||
|
|
971
|
-
instFunc = (instFuncTable[proto[DynClassName]] ||
|
|
1006
|
+
var instFuncTable = target[DynInstFuncTable] || objCreate(null);
|
|
1007
|
+
instFunc = (instFuncTable[proto[DynClassName]] || objCreate(null))[funcName];
|
|
972
1008
|
if (!instFunc) {
|
|
973
1009
|
_throwTypeError("Missing [" + funcName + "] " + strFunction);
|
|
974
1010
|
}
|
|
@@ -1018,20 +1054,24 @@ function _populatePrototype(proto, className, target, baseInstFuncs, setInstance
|
|
|
1018
1054
|
return dynProtoProxy;
|
|
1019
1055
|
}
|
|
1020
1056
|
if (!_isObjectOrArrayPrototype(proto)) {
|
|
1021
|
-
var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] ||
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
instFuncTable[DynAllowInstChkTag]
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
if (
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1057
|
+
var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || objCreate(null);
|
|
1058
|
+
if (!_isObjectOrArrayPrototype(instFuncTable)) {
|
|
1059
|
+
var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || objCreate(null));
|
|
1060
|
+
if (instFuncTable[DynAllowInstChkTag] !== false) {
|
|
1061
|
+
instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
|
|
1062
|
+
}
|
|
1063
|
+
if (!_isObjectOrArrayPrototype(instFuncs_1)) {
|
|
1064
|
+
_forEachProp(target, function (name) {
|
|
1065
|
+
if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
|
|
1066
|
+
instFuncs_1[name] = target[name];
|
|
1067
|
+
delete target[name];
|
|
1068
|
+
if (!objHasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
|
|
1069
|
+
proto[name] = _createDynamicPrototype(proto, name);
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
});
|
|
1033
1073
|
}
|
|
1034
|
-
}
|
|
1074
|
+
}
|
|
1035
1075
|
}
|
|
1036
1076
|
}
|
|
1037
1077
|
function _checkPrototype(classProto, thisTarget) {
|
|
@@ -1245,10 +1285,7 @@ var strConsole = "console";
|
|
|
1245
1285
|
var strJSON = "JSON";
|
|
1246
1286
|
var strCrypto = "crypto";
|
|
1247
1287
|
var strMsCrypto = "msCrypto";
|
|
1248
|
-
var strMsie = "msie";
|
|
1249
|
-
var strTrident = "trident/";
|
|
1250
1288
|
var _isTrident = null;
|
|
1251
|
-
var _navUserAgentCheck = null;
|
|
1252
1289
|
var _enableMocks = false;
|
|
1253
1290
|
function getLocation(checkForMock) {
|
|
1254
1291
|
if (checkForMock && _enableMocks) {
|
|
@@ -1284,12 +1321,6 @@ function getMsCrypto() {
|
|
|
1284
1321
|
return getInst(strMsCrypto);
|
|
1285
1322
|
}
|
|
1286
1323
|
function isIE() {
|
|
1287
|
-
var nav = getNavigator();
|
|
1288
|
-
if (nav && (nav[_DYN_USER_AGENT ] !== _navUserAgentCheck || _isTrident === null)) {
|
|
1289
|
-
_navUserAgentCheck = nav[_DYN_USER_AGENT ];
|
|
1290
|
-
var userAgent = (_navUserAgentCheck || STR_EMPTY)[_DYN_TO_LOWER_CASE$1 ]();
|
|
1291
|
-
_isTrident = (strContains(userAgent, strMsie) || strContains(userAgent, strTrident));
|
|
1292
|
-
}
|
|
1293
1324
|
return _isTrident;
|
|
1294
1325
|
}
|
|
1295
1326
|
|
|
@@ -1363,7 +1394,7 @@ function newId(maxLength) {
|
|
|
1363
1394
|
return result;
|
|
1364
1395
|
}
|
|
1365
1396
|
|
|
1366
|
-
var version = '3.1.0-nightly3.2401-
|
|
1397
|
+
var version = '3.1.0-nightly3.2401-10';
|
|
1367
1398
|
var instanceName = "." + newId(6);
|
|
1368
1399
|
var _dataUid = 0;
|
|
1369
1400
|
function _canAcceptData(target) {
|
|
@@ -2430,7 +2461,7 @@ function createCookieMgr(rootConfig, logger) {
|
|
|
2430
2461
|
if (location_1 && location_1.protocol === "https:") {
|
|
2431
2462
|
setValue(values, "secure", null, null, isUndefined);
|
|
2432
2463
|
if (_allowUaSameSite === null) {
|
|
2433
|
-
_allowUaSameSite = !uaDisallowsSameSiteNone((
|
|
2464
|
+
_allowUaSameSite = !uaDisallowsSameSiteNone(({})[_DYN_USER_AGENT ]);
|
|
2434
2465
|
}
|
|
2435
2466
|
if (_allowUaSameSite) {
|
|
2436
2467
|
setValue(values, "SameSite", "None", null, isUndefined);
|
|
@@ -3861,11 +3892,6 @@ var StorageType = createEnumStyle({
|
|
|
3861
3892
|
LocalStorage: 0 ,
|
|
3862
3893
|
SessionStorage: 1
|
|
3863
3894
|
});
|
|
3864
|
-
createEnumStyle({
|
|
3865
|
-
AI: 0 ,
|
|
3866
|
-
AI_AND_W3C: 1 ,
|
|
3867
|
-
W3C: 2
|
|
3868
|
-
});
|
|
3869
3895
|
|
|
3870
3896
|
var _canUseLocalStorage = undefined;
|
|
3871
3897
|
var _canUseSessionStorage = undefined;
|
|
@@ -4943,7 +4969,7 @@ function _shouldCollectDuration() {
|
|
|
4943
4969
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
4944
4970
|
durations[_i] = arguments[_i];
|
|
4945
4971
|
}
|
|
4946
|
-
var _navigator =
|
|
4972
|
+
var _navigator = {};
|
|
4947
4973
|
var userAgent = _navigator.userAgent;
|
|
4948
4974
|
var isGoogleBot = false;
|
|
4949
4975
|
if (userAgent) {
|
|
@@ -5648,7 +5674,7 @@ var AnalyticsPlugin = /** @class */ (function (_super) {
|
|
|
5648
5674
|
});
|
|
5649
5675
|
return _this;
|
|
5650
5676
|
}
|
|
5651
|
-
AnalyticsPlugin.Version = '3.1.0-nightly3.2401-
|
|
5677
|
+
AnalyticsPlugin.Version = '3.1.0-nightly3.2401-10';
|
|
5652
5678
|
return AnalyticsPlugin;
|
|
5653
5679
|
}(BaseTelemetryPlugin));
|
|
5654
5680
|
|