@microsoft/applicationinsights-analytics-js 3.3.7-nightly3.2504-10 → 3.3.7-nightly3.2504-12

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.
Files changed (28) hide show
  1. package/browser/es5/applicationinsights-analytics-js.cjs.js +296 -138
  2. package/browser/es5/applicationinsights-analytics-js.cjs.js.map +1 -1
  3. package/browser/es5/applicationinsights-analytics-js.cjs.min.js +2 -2
  4. package/browser/es5/applicationinsights-analytics-js.cjs.min.js.map +1 -1
  5. package/browser/es5/applicationinsights-analytics-js.gbl.js +298 -140
  6. package/browser/es5/applicationinsights-analytics-js.gbl.js.map +1 -1
  7. package/browser/es5/applicationinsights-analytics-js.gbl.min.js +2 -2
  8. package/browser/es5/applicationinsights-analytics-js.gbl.min.js.map +1 -1
  9. package/browser/es5/applicationinsights-analytics-js.integrity.json +25 -25
  10. package/browser/es5/applicationinsights-analytics-js.js +298 -140
  11. package/browser/es5/applicationinsights-analytics-js.js.map +1 -1
  12. package/browser/es5/applicationinsights-analytics-js.min.js +2 -2
  13. package/browser/es5/applicationinsights-analytics-js.min.js.map +1 -1
  14. package/dist/es5/applicationinsights-analytics-js.js +296 -138
  15. package/dist/es5/applicationinsights-analytics-js.js.map +1 -1
  16. package/dist/es5/applicationinsights-analytics-js.min.js +2 -2
  17. package/dist/es5/applicationinsights-analytics-js.min.js.map +1 -1
  18. package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js +2 -2
  19. package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js.map +1 -1
  20. package/dist-es5/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
  21. package/dist-es5/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +1 -1
  22. package/dist-es5/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
  23. package/dist-es5/JavaScriptSDK/Timing.js +1 -1
  24. package/dist-es5/__DynamicConstants.js +1 -1
  25. package/dist-es5/applicationinsights-analytics-js.js +1 -1
  26. package/package.json +5 -5
  27. package/types/applicationinsights-analytics-js.d.ts +1 -1
  28. package/types/applicationinsights-analytics-js.namespaced.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Web Analytics, 3.3.7-nightly3.2504-10
2
+ * Application Insights JavaScript SDK - Web Analytics, 3.3.7-nightly3.2504-12
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -7,8 +7,8 @@
7
7
  typeof exports === "object" && typeof module !== undef ? factory(exports) :
8
8
  typeof define === "function" && define.amd ? define(["exports"], factory) :
9
9
  (function(global){
10
- var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_analytics_js_3_3_7_nightly3_2504_10", msMod="__ms$mod__";
11
- var mods={}, modDetail=mods[modName]={}, ver="3.3.7-nightly3.2504-10";
10
+ var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_analytics_js_3_3_7_nightly3_2504_12", msMod="__ms$mod__";
11
+ var mods={}, modDetail=mods[modName]={}, ver="3.3.7-nightly3.2504-12";
12
12
  var baseNs=global, nsKey="Microsoft", baseNs=baseNs[nsKey]=(baseNs[nsKey]||{});
13
13
  // Versioned namespace "Microsoft.ApplicationInsights3"
14
14
  var exportNs=baseNs, nsKey="ApplicationInsights3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
@@ -37,7 +37,7 @@ var strShimPrototype = "prototype";
37
37
  var ObjClass$1 = Object;
38
38
  var ObjProto$1 = ObjClass$1[strShimPrototype];
39
39
 
40
- /*! https://github.com/nevware21/ts-utils v0.11.8 */
40
+ /*! https://github.com/nevware21/ts-utils v0.12.1 */
41
41
  /*#__NO_SIDE_EFFECTS__*/
42
42
  function _pureAssign(func1, func2) {
43
43
  return func1 || func2;
@@ -56,11 +56,12 @@ var __PROTO__ = "__proto__";
56
56
  var UNDEFINED = "undefined";
57
57
  var CONSTRUCTOR = "constructor";
58
58
  var SYMBOL = "Symbol";
59
- var POLYFILL_TAG = "_polyfill";
60
59
  var LENGTH = "length";
61
60
  var NAME = "name";
62
61
  var CALL = "call";
63
62
  var TO_STRING = "toString";
63
+ var GETTER_NAME = "__lookupGetter__";
64
+ var SETTER_NAME = "__lookupSetter__";
64
65
  var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
65
66
  var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
66
67
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
@@ -69,6 +70,8 @@ var MathCls = ( /*#__PURE__*/_pureAssign(Math));
69
70
  var ArrCls = ( /*#__PURE__*/_pureAssign(Array));
70
71
  var ArrProto = ( /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE));
71
72
  var ArrSlice = ( /*#__PURE__*/_pureRef(ArrProto, "slice"));
73
+ var POLYFILL_TAG = "_polyfill";
74
+ var POLYFILL_TYPE_NAME = "__nw21$polytype__";
72
75
  function safe(func, argArray) {
73
76
  try {
74
77
  return {
@@ -107,7 +110,7 @@ function isUndefined(value) {
107
110
  }
108
111
  /*#__NO_SIDE_EFFECTS__*/
109
112
  function isStrictUndefined(arg) {
110
- return !isDefined(arg);
113
+ return arg === UNDEF_VALUE;
111
114
  }
112
115
  /*#__NO_SIDE_EFFECTS__*/
113
116
  function isNullOrUndefined(value) {
@@ -115,7 +118,7 @@ function isNullOrUndefined(value) {
115
118
  }
116
119
  /*#__NO_SIDE_EFFECTS__*/
117
120
  function isStrictNullOrUndefined(value) {
118
- return value === NULL_VALUE || !isDefined(value);
121
+ return value === NULL_VALUE || value === UNDEF_VALUE;
119
122
  }
120
123
  /*#__NO_SIDE_EFFECTS__*/
121
124
  function isDefined(arg) {
@@ -131,24 +134,134 @@ function isObject(value) {
131
134
  return !!value && typeof value === OBJECT;
132
135
  }
133
136
  var isArray = ( /* #__PURE__*/_pureRef(ArrCls, "isArray"));
137
+ var isNumber = ( /*#__PURE__*/_createIs("number"));
134
138
  var isBoolean = ( /*#__PURE__*/_createIs("boolean"));
135
139
  var isError = ( /*#__PURE__*/_createObjIs("Error"));
136
140
  /*#__NO_SIDE_EFFECTS__*/
137
141
  function isTruthy(value) {
138
142
  return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value));
139
143
  }
140
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor"));
144
+ var asString = ( /* #__PURE__ */_pureAssign(StrCls));
145
+ var ERROR_TYPE = "[object Error]";
146
+ /*#__NO_SIDE_EFFECTS__*/
147
+ function dumpObj(object, format) {
148
+ var propertyValueDump = EMPTY;
149
+ var objType = ObjProto[TO_STRING][CALL](object);
150
+ if (objType === ERROR_TYPE) {
151
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
152
+ }
153
+ try {
154
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
155
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
156
+ }
157
+ catch (e) {
158
+ propertyValueDump = " - " + dumpObj(e, format);
159
+ }
160
+ return objType + ": " + propertyValueDump;
161
+ }
162
+ function throwError(message) {
163
+ throw new Error(message);
164
+ }
165
+ function throwTypeError(message) {
166
+ throw new TypeError(message);
167
+ }
168
+ function _throwIfNullOrUndefined(obj) {
169
+ if (isStrictNullOrUndefined(obj)) {
170
+ throwTypeError("Cannot convert undefined or null to object");
171
+ }
172
+ }
173
+ function _throwIfNotString(value) {
174
+ if (!isString(value)) {
175
+ throwTypeError("'" + dumpObj(value) + "' is not a string");
176
+ }
177
+ }
141
178
  /*#__NO_SIDE_EFFECTS__*/
142
179
  function objHasOwnProperty(obj, prop) {
143
180
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
144
181
  }
145
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
182
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
183
+ /*#__NO_SIDE_EFFECTS__*/
184
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
185
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
186
+ return function (thisArg) {
187
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
188
+ if (theFunc || polyFunc) {
189
+ var theArgs = arguments;
190
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
191
+ }
192
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
193
+ };
194
+ }
195
+ function _objPropertyIsEnum(obj, propKey) {
196
+ var desc;
197
+ var fn = ObjClass.getOwnPropertyDescriptor;
198
+ if (!isStrictNullOrUndefined(obj) && fn) {
199
+ desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
200
+ }
201
+ if (!desc) {
202
+ desc = safe(function () {
203
+ for (var key in obj) {
204
+ if (key === propKey) {
205
+ return { enumerable: true };
206
+ }
207
+ }
208
+ }).v;
209
+ }
210
+ return (desc && desc.enumerable) || false;
211
+ }
212
+ var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
213
+ function _isPropertyWritable(obj, prop) {
214
+ var result = false;
215
+ if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
216
+ var originalValue = obj[prop];
217
+ try {
218
+ obj[prop] = originalValue;
219
+ result = true;
220
+ }
221
+ catch (e) {
222
+ }
223
+ }
224
+ return result;
225
+ }
226
+ function polyObjGetOwnPropertyDescriptor(obj, prop) {
227
+ var descriptor;
228
+ _throwIfNullOrUndefined(obj);
229
+ var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
230
+ if (isLength || objHasOwnProperty(obj, prop)) {
231
+ descriptor = {
232
+ configurable: !isLength,
233
+ enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
234
+ };
235
+ var isData = true;
236
+ if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
237
+ var getter = obj[GETTER_NAME](prop);
238
+ var setter = obj[SETTER_NAME](prop);
239
+ if (getter || setter) {
240
+ isData = false;
241
+ if (getter) {
242
+ descriptor.get = getter;
243
+ }
244
+ if (setter) {
245
+ descriptor.set = setter;
246
+ }
247
+ }
248
+ }
249
+ if (isData) {
250
+ descriptor.value = obj[prop];
251
+ descriptor.writable = _isPropertyWritable(obj, prop);
252
+ }
253
+ }
254
+ return descriptor;
255
+ }
256
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
146
257
  /*#__NO_SIDE_EFFECTS__*/
147
258
  function polyObjHasOwn(obj, prop) {
259
+ _throwIfNullOrUndefined(obj);
148
260
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
149
261
  }
262
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
150
263
  function objForEachKey(theObject, callbackfn, thisArg) {
151
- if (theObject && isObject(theObject)) {
264
+ if (theObject && (isObject(theObject) || isFunction(theObject))) {
152
265
  for (var prop in theObject) {
153
266
  if (objHasOwn(theObject, prop)) {
154
267
  if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
@@ -158,6 +271,18 @@ function objForEachKey(theObject, callbackfn, thisArg) {
158
271
  }
159
272
  }
160
273
  }
274
+ function arrForEach(theArray, callbackfn, thisArg) {
275
+ if (theArray) {
276
+ var len = theArray[LENGTH] >>> 0;
277
+ for (var idx = 0; idx < len; idx++) {
278
+ if (idx in theArray) {
279
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
280
+ break;
281
+ }
282
+ }
283
+ }
284
+ }
285
+ }
161
286
  var propMap = {
162
287
  e: "enumerable",
163
288
  c: "configurable",
@@ -186,6 +311,7 @@ function _createProp(value) {
186
311
  return prop;
187
312
  }
188
313
  var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
314
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
189
315
  function objDefine(target, key, propDesc) {
190
316
  return objDefineProp(target, key, _createProp(propDesc));
191
317
  }
@@ -205,49 +331,50 @@ function _assignMapValue(theMap, key, value, writable) {
205
331
  writable: false
206
332
  });
207
333
  }
208
- var asString = ( /* #__PURE__ */_pureAssign(StrCls));
209
- var ERROR_TYPE = "[object Error]";
210
- /*#__NO_SIDE_EFFECTS__*/
211
- function dumpObj(object, format) {
212
- var propertyValueDump = EMPTY;
213
- var objType = ObjProto[TO_STRING][CALL](object);
214
- if (objType === ERROR_TYPE) {
215
- object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
334
+ function polyObjIsFrozen(obj) {
335
+ if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
336
+ return true;
216
337
  }
217
- try {
218
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
219
- propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
338
+ if (isFunction(obj)) {
339
+ return false;
220
340
  }
221
- catch (e) {
222
- propertyValueDump = " - " + dumpObj(e, format);
341
+ for (var prop in obj) {
342
+ var desc = objGetOwnPropertyDescriptor(obj, prop);
343
+ if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
344
+ return false;
345
+ }
223
346
  }
224
- return objType + ": " + propertyValueDump;
225
- }
226
- function throwError(message) {
227
- throw new Error(message);
228
- }
229
- function throwTypeError(message) {
230
- throw new TypeError(message);
347
+ return true;
231
348
  }
349
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), polyObjIsFrozen));
232
350
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
233
351
  function _doNothing(value) {
234
352
  return value;
235
353
  }
236
354
  /*#__NO_SIDE_EFFECTS__*/
237
355
  function _getProto(value) {
356
+ _throwIfNullOrUndefined(value);
238
357
  return value[__PROTO__] || NULL_VALUE;
239
358
  }
240
359
  var objAssign = ( /*#__PURE__*/_pureRef(ObjClass, "assign"));
241
360
  var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
242
- function objDeepFreeze(value) {
243
- if (_objFreeze) {
244
- objForEachKey(value, function (key, value) {
245
- if (isArray(value) || isObject(value)) {
246
- objDeepFreeze(value);
361
+ function _deepFreeze(val, visited) {
362
+ if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
363
+ for (var lp = 0; lp < visited.length; lp++) {
364
+ if (visited[lp] === val) {
365
+ return val;
247
366
  }
367
+ }
368
+ visited.push(val);
369
+ objForEachKey(val, function (_key, propValue) {
370
+ _deepFreeze(propValue, visited);
248
371
  });
372
+ objFreeze(val);
249
373
  }
250
- return objFreeze(value);
374
+ return val;
375
+ }
376
+ function objDeepFreeze(value) {
377
+ return _objFreeze ? _deepFreeze(value, []) : value;
251
378
  }
252
379
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
253
380
  var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
@@ -301,28 +428,13 @@ function _getGlobalConfig() {
301
428
  }
302
429
  return _globalCfg;
303
430
  }
304
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
305
- /*#__NO_SIDE_EFFECTS__*/
306
- function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
307
- var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
308
- return function (thisArg) {
309
- var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
310
- if (theFunc || polyFunc) {
311
- var theArgs = arguments;
312
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
313
- }
314
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
315
- };
316
- }
317
431
  var mathMax = ( /*#__PURE__*/_pureRef(MathCls, "max"));
318
432
  var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
319
433
  var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
320
434
  var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
321
435
  /*#__NO_SIDE_EFFECTS__*/
322
436
  function polyStrSubstr(value, start, length) {
323
- if (isNullOrUndefined(value)) {
324
- throwTypeError("Invalid " + dumpObj(value));
325
- }
437
+ _throwIfNullOrUndefined(value);
326
438
  if (length < 0) {
327
439
  return EMPTY;
328
440
  }
@@ -339,8 +451,109 @@ function polyStrSubstr(value, start, length) {
339
451
  function strLeft(value, count) {
340
452
  return strSubstring(value, 0, count);
341
453
  }
454
+ function _tagAsPolyfill(target, polyfillTypeName) {
455
+ if (target) {
456
+ safe(function () {
457
+ target[POLYFILL_TAG] = true;
458
+ target[POLYFILL_TYPE_NAME] = polyfillTypeName;
459
+ });
460
+ safe(objDefine, [target, POLYFILL_TAG, {
461
+ v: true,
462
+ w: false,
463
+ e: false
464
+ }]);
465
+ safe(objDefine, [target, POLYFILL_TYPE_NAME, {
466
+ v: polyfillTypeName,
467
+ w: false,
468
+ e: false
469
+ }]);
470
+ }
471
+ return target;
472
+ }
473
+ /*#__NO_SIDE_EFFECTS__*/
474
+ function createCachedValue(value) {
475
+ return objDefineProp({
476
+ toJSON: function () { return value; }
477
+ }, "v", { value: value });
478
+ }
479
+ var _isProtoArray;
480
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
481
+ function _polyObjSetPrototypeOf(obj, proto) {
482
+ var _a;
483
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
484
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
485
+ return obj;
486
+ }
487
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
488
+ /*#__NO_SIDE_EFFECTS__*/
489
+ function polyObjCreate(obj, properties) {
490
+ var newObj;
491
+ function tempFunc() { }
492
+ if (!isStrictNullOrUndefined(obj)) {
493
+ var type = typeof obj;
494
+ if (type !== OBJECT && type !== FUNCTION) {
495
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
496
+ }
497
+ tempFunc[PROTOTYPE] = obj;
498
+ safe(function () {
499
+ tempFunc[__PROTO__] = obj;
500
+ });
501
+ newObj = new tempFunc();
502
+ }
503
+ else {
504
+ newObj = {};
505
+ }
506
+ safe(_polyObjSetPrototypeOf, [newObj, obj]);
507
+ if (properties) {
508
+ safe(objDefineProperties, [newObj, properties]);
509
+ }
510
+ return newObj;
511
+ }
512
+ /*#__NO_SIDE_EFFECTS__*/
513
+ function utcNow() {
514
+ return (Date.now || polyUtcNow)();
515
+ }
516
+ /*#__NO_SIDE_EFFECTS__*/
517
+ function polyUtcNow() {
518
+ return new Date().getTime();
519
+ }
520
+ var _globalLazyTestHooks;
521
+ function _initTestHooks() {
522
+ _globalLazyTestHooks = _getGlobalConfig();
523
+ }
524
+ /*#__NO_SIDE_EFFECTS__*/
525
+ function getLazy(cb) {
526
+ var lazyValue = {};
527
+ !_globalLazyTestHooks && _initTestHooks();
528
+ lazyValue.b = _globalLazyTestHooks.lzy;
529
+ objDefineProp(lazyValue, "v", {
530
+ configurable: true,
531
+ get: function () {
532
+ var result = cb();
533
+ if (!_globalLazyTestHooks.lzy) {
534
+ objDefineProp(lazyValue, "v", {
535
+ value: result
536
+ });
537
+ }
538
+ lazyValue.b = _globalLazyTestHooks.lzy;
539
+ return result;
540
+ }
541
+ });
542
+ return lazyValue;
543
+ }
544
+ var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
545
+ var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
546
+ var value = (utcNow().toString(36).slice(2));
547
+ while (value.length < 16) {
548
+ value += mathRandom().toString(36).slice(2);
549
+ }
550
+ value = value.substring(0, 16);
551
+ return value;
552
+ }));
342
553
  var UNIQUE_REGISTRY_ID = "_urid";
554
+ var POLY_SYM = "$nw21sym";
343
555
  var _polySymbols;
556
+ var _polyId = 0;
344
557
  /*#__NO_SIDE_EFFECTS__*/
345
558
  function _globalSymbolRegistry() {
346
559
  if (!_polySymbols) {
@@ -352,12 +565,35 @@ function _globalSymbolRegistry() {
352
565
  var _wellKnownSymbolCache;
353
566
  /*#__NO_SIDE_EFFECTS__*/
354
567
  function polyNewSymbol(description) {
355
- var theSymbol = {
356
- description: asString(description),
357
- toString: function () { return SYMBOL + "(" + description + ")"; }
358
- };
359
- theSymbol[POLYFILL_TAG] = true;
360
- return theSymbol;
568
+ var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
569
+ var symString = SYMBOL + "(" + description + ")";
570
+ var theSymbol = objCreate(null);
571
+ objDefine(theSymbol, "description", {
572
+ v: asString(description),
573
+ e: false,
574
+ w: false
575
+ });
576
+ objDefine(theSymbol, TO_STRING, {
577
+ v: function () { return symString + POLY_SYM + uniqueId; },
578
+ e: false,
579
+ w: false
580
+ });
581
+ objDefine(theSymbol, "valueOf", {
582
+ v: function () { return theSymbol; },
583
+ e: false,
584
+ w: false
585
+ });
586
+ objDefine(theSymbol, "v", {
587
+ v: symString,
588
+ e: false,
589
+ w: false
590
+ });
591
+ objDefine(theSymbol, "_uid", {
592
+ v: uniqueId,
593
+ e: false,
594
+ w: false
595
+ });
596
+ return _tagAsPolyfill(theSymbol, "symbol");
361
597
  }
362
598
  /*#__NO_SIDE_EFFECTS__*/
363
599
  function polySymbolFor(key) {
@@ -381,36 +617,6 @@ function polyGetKnownSymbol(name) {
381
617
  }
382
618
  return result;
383
619
  }
384
- var _globalLazyTestHooks;
385
- function _initTestHooks() {
386
- _globalLazyTestHooks = _getGlobalConfig();
387
- }
388
- /*#__NO_SIDE_EFFECTS__*/
389
- function getLazy(cb) {
390
- var lazyValue = {};
391
- !_globalLazyTestHooks && _initTestHooks();
392
- lazyValue.b = _globalLazyTestHooks.lzy;
393
- objDefineProp(lazyValue, "v", {
394
- configurable: true,
395
- get: function () {
396
- var result = cb();
397
- if (!_globalLazyTestHooks.lzy) {
398
- objDefineProp(lazyValue, "v", {
399
- value: result
400
- });
401
- }
402
- lazyValue.b = _globalLazyTestHooks.lzy;
403
- return result;
404
- }
405
- });
406
- return lazyValue;
407
- }
408
- /*#__NO_SIDE_EFFECTS__*/
409
- function createCachedValue(value) {
410
- return objDefineProp({
411
- toJSON: function () { return value; }
412
- }, "v", { value: value });
413
- }
414
620
  var WINDOW = "window";
415
621
  var _cachedGlobal;
416
622
  function _getGlobalInstFn(getFn, theArgs) {
@@ -564,44 +770,8 @@ function arrAppend(target, elms) {
564
770
  }
565
771
  return target;
566
772
  }
567
- function arrForEach(theArray, callbackfn, thisArg) {
568
- if (theArray) {
569
- var len = theArray[LENGTH] >>> 0;
570
- for (var idx = 0; idx < len; idx++) {
571
- if (idx in theArray) {
572
- if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
573
- break;
574
- }
575
- }
576
- }
577
- }
578
- }
579
773
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
580
774
  var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
581
- var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
582
- /*#__NO_SIDE_EFFECTS__*/
583
- function polyObjCreate(obj) {
584
- if (!obj) {
585
- return {};
586
- }
587
- var type = typeof obj;
588
- if (type !== OBJECT && type !== FUNCTION) {
589
- throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
590
- }
591
- function tempFunc() { }
592
- tempFunc[PROTOTYPE] = obj;
593
- return new tempFunc();
594
- }
595
- var _isProtoArray;
596
- function objSetPrototypeOf(obj, proto) {
597
- var fn = ObjClass["setPrototypeOf"] ||
598
- function (d, b) {
599
- var _a;
600
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
601
- _isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) { return d[key] = value; });
602
- };
603
- return fn(obj, proto);
604
- }
605
775
  /*#__NO_SIDE_EFFECTS__*/
606
776
  function _createCustomError(name, d, b) {
607
777
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -643,19 +813,9 @@ function createCustomError(name, constructCb, errorBase) {
643
813
  }, theBaseClass);
644
814
  }
645
815
  /*#__NO_SIDE_EFFECTS__*/
646
- function utcNow() {
647
- return (Date.now || polyUtcNow)();
648
- }
649
- /*#__NO_SIDE_EFFECTS__*/
650
- function polyUtcNow() {
651
- return new Date().getTime();
652
- }
653
- /*#__NO_SIDE_EFFECTS__*/
654
816
  function _createTrimFn(exp) {
655
817
  return function _doTrim(value) {
656
- if (isNullOrUndefined(value)) {
657
- throwTypeError("strTrim called [" + dumpObj(value) + "]");
658
- }
818
+ _throwIfNullOrUndefined(value);
659
819
  if (value && value.replace) {
660
820
  value = value.replace(exp, EMPTY);
661
821
  }
@@ -710,9 +870,7 @@ var mathRound = ( /*#__PURE__*/_pureRef(MathCls, "round"));
710
870
  var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
711
871
  /*#__NO_SIDE_EFFECTS__*/
712
872
  function polyStrEndsWith(value, searchString, length) {
713
- if (!isString(value)) {
714
- throwTypeError("'" + dumpObj(value) + "' is not a string");
715
- }
873
+ _throwIfNotString(value);
716
874
  var searchValue = isString(searchString) ? searchString : asString(searchString);
717
875
  var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
718
876
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
@@ -1358,7 +1516,7 @@ function newId(maxLength) {
1358
1516
  return result;
1359
1517
  }
1360
1518
 
1361
- var version = '3.3.7-nightly3.2504-10';
1519
+ var version = '3.3.7-nightly3.2504-12';
1362
1520
  var instanceName = "." + newId(6);
1363
1521
  var _dataUid = 0;
1364
1522
  function _canAcceptData(target) {
@@ -5776,7 +5934,7 @@ var AnalyticsPlugin = /** @class */ (function (_super) {
5776
5934
  });
5777
5935
  return _this;
5778
5936
  }
5779
- AnalyticsPlugin.Version = '3.3.7-nightly3.2504-10';
5937
+ AnalyticsPlugin.Version = '3.3.7-nightly3.2504-12';
5780
5938
  return AnalyticsPlugin;
5781
5939
  }(BaseTelemetryPlugin));
5782
5940