@microsoft/applicationinsights-properties-js 3.3.7-nightly3.2504-08 → 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 (57) hide show
  1. package/browser/es5/{ai.props.3.3.7-nightly3.2504-08.js → ai.props.3.3.7-nightly3.2504-12.cjs.js} +294 -163
  2. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.cjs.js.map +1 -0
  3. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.cjs.min.js +6 -0
  4. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.cjs.min.js.map +1 -0
  5. package/browser/es5/{ai.props.3.3.7-nightly3.2504-08.gbl.js → ai.props.3.3.7-nightly3.2504-12.gbl.js} +296 -138
  6. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.gbl.js.map +1 -0
  7. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.gbl.min.js +6 -0
  8. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.gbl.min.js.map +1 -0
  9. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.integrity.json +66 -0
  10. package/browser/es5/{ai.props.3.3.7-nightly3.2504-08.cjs.js → ai.props.3.3.7-nightly3.2504-12.js} +321 -136
  11. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.js.map +1 -0
  12. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.min.js +6 -0
  13. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.min.js.map +1 -0
  14. package/browser/es5/ai.props.3.cjs.js +293 -135
  15. package/browser/es5/ai.props.3.cjs.js.map +1 -1
  16. package/browser/es5/ai.props.3.cjs.min.js +2 -2
  17. package/browser/es5/ai.props.3.cjs.min.js.map +1 -1
  18. package/browser/es5/ai.props.3.gbl.js +295 -137
  19. package/browser/es5/ai.props.3.gbl.js.map +1 -1
  20. package/browser/es5/ai.props.3.gbl.min.js +2 -2
  21. package/browser/es5/ai.props.3.gbl.min.js.map +1 -1
  22. package/browser/es5/ai.props.3.integrity.json +25 -25
  23. package/browser/es5/ai.props.3.js +295 -137
  24. package/browser/es5/ai.props.3.js.map +1 -1
  25. package/browser/es5/ai.props.3.min.js +2 -2
  26. package/browser/es5/ai.props.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-properties-js.js +293 -135
  28. package/dist/es5/applicationinsights-properties-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-properties-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-properties-js.min.js.map +1 -1
  31. package/dist-es5/Context/Application.js +1 -1
  32. package/dist-es5/Context/Device.js +1 -1
  33. package/dist-es5/Context/Internal.js +2 -2
  34. package/dist-es5/Context/Internal.js.map +1 -1
  35. package/dist-es5/Context/Location.js +1 -1
  36. package/dist-es5/Context/Session.js +1 -1
  37. package/dist-es5/Context/TelemetryTrace.js +1 -1
  38. package/dist-es5/Context/User.js +1 -1
  39. package/dist-es5/Interfaces/IPropTelemetryContext.js +1 -1
  40. package/dist-es5/Interfaces/IPropertiesConfig.js +1 -1
  41. package/dist-es5/PropertiesPlugin.js +1 -1
  42. package/dist-es5/TelemetryContext.js +1 -1
  43. package/dist-es5/__DynamicConstants.js +1 -1
  44. package/dist-es5/applicationinsights-properties-js.js +1 -1
  45. package/package.json +3 -3
  46. package/types/applicationinsights-properties-js.d.ts +1 -1
  47. package/types/applicationinsights-properties-js.namespaced.d.ts +1 -1
  48. package/browser/es5/ai.props.3.3.7-nightly3.2504-08.cjs.js.map +0 -1
  49. package/browser/es5/ai.props.3.3.7-nightly3.2504-08.cjs.min.js +0 -6
  50. package/browser/es5/ai.props.3.3.7-nightly3.2504-08.cjs.min.js.map +0 -1
  51. package/browser/es5/ai.props.3.3.7-nightly3.2504-08.gbl.js.map +0 -1
  52. package/browser/es5/ai.props.3.3.7-nightly3.2504-08.gbl.min.js +0 -6
  53. package/browser/es5/ai.props.3.3.7-nightly3.2504-08.gbl.min.js.map +0 -1
  54. package/browser/es5/ai.props.3.3.7-nightly3.2504-08.integrity.json +0 -66
  55. package/browser/es5/ai.props.3.3.7-nightly3.2504-08.js.map +0 -1
  56. package/browser/es5/ai.props.3.3.7-nightly3.2504-08.min.js +0 -6
  57. package/browser/es5/ai.props.3.3.7-nightly3.2504-08.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.3.7-nightly3.2504-08
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.7-nightly3.2504-12
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  'use strict';
@@ -11,7 +11,7 @@ var strShimUndefined = "undefined";
11
11
  var strShimPrototype = "prototype";
12
12
  var ObjClass$1 = Object;
13
13
 
14
- /*! https://github.com/nevware21/ts-utils v0.11.8 */
14
+ /*! https://github.com/nevware21/ts-utils v0.12.1 */
15
15
  /*#__NO_SIDE_EFFECTS__*/
16
16
  function _pureAssign(func1, func2) {
17
17
  return func1 || func2;
@@ -30,11 +30,12 @@ var __PROTO__ = "__proto__";
30
30
  var UNDEFINED = "undefined";
31
31
  var CONSTRUCTOR = "constructor";
32
32
  var SYMBOL = "Symbol";
33
- var POLYFILL_TAG = "_polyfill";
34
33
  var LENGTH = "length";
35
34
  var NAME = "name";
36
35
  var CALL = "call";
37
36
  var TO_STRING = "toString";
37
+ var GETTER_NAME = "__lookupGetter__";
38
+ var SETTER_NAME = "__lookupSetter__";
38
39
  var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
39
40
  var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
40
41
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
@@ -43,6 +44,8 @@ var MathCls = ( /*#__PURE__*/_pureAssign(Math));
43
44
  var ArrCls = ( /*#__PURE__*/_pureAssign(Array));
44
45
  var ArrProto = ( /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE));
45
46
  var ArrSlice = ( /*#__PURE__*/_pureRef(ArrProto, "slice"));
47
+ var POLYFILL_TAG = "_polyfill";
48
+ var POLYFILL_TYPE_NAME = "__nw21$polytype__";
46
49
  function safe(func, argArray) {
47
50
  try {
48
51
  return {
@@ -81,7 +84,7 @@ function isUndefined(value) {
81
84
  }
82
85
  /*#__NO_SIDE_EFFECTS__*/
83
86
  function isStrictUndefined(arg) {
84
- return !isDefined(arg);
87
+ return arg === UNDEF_VALUE;
85
88
  }
86
89
  /*#__NO_SIDE_EFFECTS__*/
87
90
  function isNullOrUndefined(value) {
@@ -89,7 +92,7 @@ function isNullOrUndefined(value) {
89
92
  }
90
93
  /*#__NO_SIDE_EFFECTS__*/
91
94
  function isStrictNullOrUndefined(value) {
92
- return value === NULL_VALUE || !isDefined(value);
95
+ return value === NULL_VALUE || value === UNDEF_VALUE;
93
96
  }
94
97
  /*#__NO_SIDE_EFFECTS__*/
95
98
  function isDefined(arg) {
@@ -105,23 +108,130 @@ function isObject(value) {
105
108
  return !!value && typeof value === OBJECT;
106
109
  }
107
110
  var isArray = ( /* #__PURE__*/_pureRef(ArrCls, "isArray"));
111
+ var isNumber = ( /*#__PURE__*/_createIs("number"));
108
112
  var isError = ( /*#__PURE__*/_createObjIs("Error"));
109
113
  /*#__NO_SIDE_EFFECTS__*/
110
114
  function isTruthy(value) {
111
115
  return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value));
112
116
  }
113
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor"));
117
+ var asString = ( /* #__PURE__ */_pureAssign(StrCls));
118
+ var ERROR_TYPE = "[object Error]";
119
+ /*#__NO_SIDE_EFFECTS__*/
120
+ function dumpObj(object, format) {
121
+ var propertyValueDump = EMPTY;
122
+ var objType = ObjProto[TO_STRING][CALL](object);
123
+ if (objType === ERROR_TYPE) {
124
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
125
+ }
126
+ try {
127
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
128
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
129
+ }
130
+ catch (e) {
131
+ propertyValueDump = " - " + dumpObj(e, format);
132
+ }
133
+ return objType + ": " + propertyValueDump;
134
+ }
135
+ function throwTypeError(message) {
136
+ throw new TypeError(message);
137
+ }
138
+ function _throwIfNullOrUndefined(obj) {
139
+ if (isStrictNullOrUndefined(obj)) {
140
+ throwTypeError("Cannot convert undefined or null to object");
141
+ }
142
+ }
143
+ function _throwIfNotString(value) {
144
+ if (!isString(value)) {
145
+ throwTypeError("'" + dumpObj(value) + "' is not a string");
146
+ }
147
+ }
114
148
  /*#__NO_SIDE_EFFECTS__*/
115
149
  function objHasOwnProperty(obj, prop) {
116
150
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
117
151
  }
118
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
152
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
153
+ /*#__NO_SIDE_EFFECTS__*/
154
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
155
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
156
+ return function (thisArg) {
157
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
158
+ if (theFunc || polyFunc) {
159
+ var theArgs = arguments;
160
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
161
+ }
162
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
163
+ };
164
+ }
165
+ function _objPropertyIsEnum(obj, propKey) {
166
+ var desc;
167
+ var fn = ObjClass.getOwnPropertyDescriptor;
168
+ if (!isStrictNullOrUndefined(obj) && fn) {
169
+ desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
170
+ }
171
+ if (!desc) {
172
+ desc = safe(function () {
173
+ for (var key in obj) {
174
+ if (key === propKey) {
175
+ return { enumerable: true };
176
+ }
177
+ }
178
+ }).v;
179
+ }
180
+ return (desc && desc.enumerable) || false;
181
+ }
182
+ var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
183
+ function _isPropertyWritable(obj, prop) {
184
+ var result = false;
185
+ if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
186
+ var originalValue = obj[prop];
187
+ try {
188
+ obj[prop] = originalValue;
189
+ result = true;
190
+ }
191
+ catch (e) {
192
+ }
193
+ }
194
+ return result;
195
+ }
196
+ function polyObjGetOwnPropertyDescriptor(obj, prop) {
197
+ var descriptor;
198
+ _throwIfNullOrUndefined(obj);
199
+ var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
200
+ if (isLength || objHasOwnProperty(obj, prop)) {
201
+ descriptor = {
202
+ configurable: !isLength,
203
+ enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
204
+ };
205
+ var isData = true;
206
+ if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
207
+ var getter = obj[GETTER_NAME](prop);
208
+ var setter = obj[SETTER_NAME](prop);
209
+ if (getter || setter) {
210
+ isData = false;
211
+ if (getter) {
212
+ descriptor.get = getter;
213
+ }
214
+ if (setter) {
215
+ descriptor.set = setter;
216
+ }
217
+ }
218
+ }
219
+ if (isData) {
220
+ descriptor.value = obj[prop];
221
+ descriptor.writable = _isPropertyWritable(obj, prop);
222
+ }
223
+ }
224
+ return descriptor;
225
+ }
226
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
119
227
  /*#__NO_SIDE_EFFECTS__*/
120
228
  function polyObjHasOwn(obj, prop) {
229
+ _throwIfNullOrUndefined(obj);
121
230
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
122
231
  }
232
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
123
233
  function objForEachKey(theObject, callbackfn, thisArg) {
124
- if (theObject && isObject(theObject)) {
234
+ if (theObject && (isObject(theObject) || isFunction(theObject))) {
125
235
  for (var prop in theObject) {
126
236
  if (objHasOwn(theObject, prop)) {
127
237
  if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
@@ -131,6 +241,18 @@ function objForEachKey(theObject, callbackfn, thisArg) {
131
241
  }
132
242
  }
133
243
  }
244
+ function arrForEach(theArray, callbackfn, thisArg) {
245
+ if (theArray) {
246
+ var len = theArray[LENGTH] >>> 0;
247
+ for (var idx = 0; idx < len; idx++) {
248
+ if (idx in theArray) {
249
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
250
+ break;
251
+ }
252
+ }
253
+ }
254
+ }
255
+ }
134
256
  var propMap = {
135
257
  e: "enumerable",
136
258
  c: "configurable",
@@ -159,6 +281,7 @@ function _createProp(value) {
159
281
  return prop;
160
282
  }
161
283
  var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
284
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
162
285
  function objDefine(target, key, propDesc) {
163
286
  return objDefineProp(target, key, _createProp(propDesc));
164
287
  }
@@ -178,45 +301,49 @@ function _assignMapValue(theMap, key, value, writable) {
178
301
  writable: false
179
302
  });
180
303
  }
181
- var asString = ( /* #__PURE__ */_pureAssign(StrCls));
182
- var ERROR_TYPE = "[object Error]";
183
- /*#__NO_SIDE_EFFECTS__*/
184
- function dumpObj(object, format) {
185
- var propertyValueDump = EMPTY;
186
- var objType = ObjProto[TO_STRING][CALL](object);
187
- if (objType === ERROR_TYPE) {
188
- object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
304
+ function polyObjIsFrozen(obj) {
305
+ if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
306
+ return true;
189
307
  }
190
- try {
191
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
192
- propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
308
+ if (isFunction(obj)) {
309
+ return false;
193
310
  }
194
- catch (e) {
195
- propertyValueDump = " - " + dumpObj(e, format);
311
+ for (var prop in obj) {
312
+ var desc = objGetOwnPropertyDescriptor(obj, prop);
313
+ if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
314
+ return false;
315
+ }
196
316
  }
197
- return objType + ": " + propertyValueDump;
198
- }
199
- function throwTypeError(message) {
200
- throw new TypeError(message);
317
+ return true;
201
318
  }
319
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), polyObjIsFrozen));
202
320
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
203
321
  function _doNothing(value) {
204
322
  return value;
205
323
  }
206
324
  /*#__NO_SIDE_EFFECTS__*/
207
325
  function _getProto(value) {
326
+ _throwIfNullOrUndefined(value);
208
327
  return value[__PROTO__] || NULL_VALUE;
209
328
  }
210
329
  var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
211
- function objDeepFreeze(value) {
212
- if (_objFreeze) {
213
- objForEachKey(value, function (key, value) {
214
- if (isArray(value) || isObject(value)) {
215
- objDeepFreeze(value);
330
+ function _deepFreeze(val, visited) {
331
+ if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
332
+ for (var lp = 0; lp < visited.length; lp++) {
333
+ if (visited[lp] === val) {
334
+ return val;
216
335
  }
336
+ }
337
+ visited.push(val);
338
+ objForEachKey(val, function (_key, propValue) {
339
+ _deepFreeze(propValue, visited);
217
340
  });
341
+ objFreeze(val);
218
342
  }
219
- return objFreeze(value);
343
+ return val;
344
+ }
345
+ function objDeepFreeze(value) {
346
+ return _objFreeze ? _deepFreeze(value, []) : value;
220
347
  }
221
348
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
222
349
  var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
@@ -270,28 +397,13 @@ function _getGlobalConfig() {
270
397
  }
271
398
  return _globalCfg;
272
399
  }
273
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
274
- /*#__NO_SIDE_EFFECTS__*/
275
- function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
276
- var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
277
- return function (thisArg) {
278
- var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
279
- if (theFunc || polyFunc) {
280
- var theArgs = arguments;
281
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
282
- }
283
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
284
- };
285
- }
286
400
  var mathMax = ( /*#__PURE__*/_pureRef(MathCls, "max"));
287
401
  var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
288
402
  var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
289
403
  var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
290
404
  /*#__NO_SIDE_EFFECTS__*/
291
405
  function polyStrSubstr(value, start, length) {
292
- if (isNullOrUndefined(value)) {
293
- throwTypeError("Invalid " + dumpObj(value));
294
- }
406
+ _throwIfNullOrUndefined(value);
295
407
  if (length < 0) {
296
408
  return EMPTY;
297
409
  }
@@ -308,8 +420,109 @@ function polyStrSubstr(value, start, length) {
308
420
  function strLeft(value, count) {
309
421
  return strSubstring(value, 0, count);
310
422
  }
423
+ function _tagAsPolyfill(target, polyfillTypeName) {
424
+ if (target) {
425
+ safe(function () {
426
+ target[POLYFILL_TAG] = true;
427
+ target[POLYFILL_TYPE_NAME] = polyfillTypeName;
428
+ });
429
+ safe(objDefine, [target, POLYFILL_TAG, {
430
+ v: true,
431
+ w: false,
432
+ e: false
433
+ }]);
434
+ safe(objDefine, [target, POLYFILL_TYPE_NAME, {
435
+ v: polyfillTypeName,
436
+ w: false,
437
+ e: false
438
+ }]);
439
+ }
440
+ return target;
441
+ }
442
+ /*#__NO_SIDE_EFFECTS__*/
443
+ function createCachedValue(value) {
444
+ return objDefineProp({
445
+ toJSON: function () { return value; }
446
+ }, "v", { value: value });
447
+ }
448
+ var _isProtoArray;
449
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
450
+ function _polyObjSetPrototypeOf(obj, proto) {
451
+ var _a;
452
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
453
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
454
+ return obj;
455
+ }
456
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
457
+ /*#__NO_SIDE_EFFECTS__*/
458
+ function polyObjCreate(obj, properties) {
459
+ var newObj;
460
+ function tempFunc() { }
461
+ if (!isStrictNullOrUndefined(obj)) {
462
+ var type = typeof obj;
463
+ if (type !== OBJECT && type !== FUNCTION) {
464
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
465
+ }
466
+ tempFunc[PROTOTYPE] = obj;
467
+ safe(function () {
468
+ tempFunc[__PROTO__] = obj;
469
+ });
470
+ newObj = new tempFunc();
471
+ }
472
+ else {
473
+ newObj = {};
474
+ }
475
+ safe(_polyObjSetPrototypeOf, [newObj, obj]);
476
+ if (properties) {
477
+ safe(objDefineProperties, [newObj, properties]);
478
+ }
479
+ return newObj;
480
+ }
481
+ /*#__NO_SIDE_EFFECTS__*/
482
+ function utcNow() {
483
+ return (Date.now || polyUtcNow)();
484
+ }
485
+ /*#__NO_SIDE_EFFECTS__*/
486
+ function polyUtcNow() {
487
+ return new Date().getTime();
488
+ }
489
+ var _globalLazyTestHooks;
490
+ function _initTestHooks() {
491
+ _globalLazyTestHooks = _getGlobalConfig();
492
+ }
493
+ /*#__NO_SIDE_EFFECTS__*/
494
+ function getLazy(cb) {
495
+ var lazyValue = {};
496
+ !_globalLazyTestHooks && _initTestHooks();
497
+ lazyValue.b = _globalLazyTestHooks.lzy;
498
+ objDefineProp(lazyValue, "v", {
499
+ configurable: true,
500
+ get: function () {
501
+ var result = cb();
502
+ if (!_globalLazyTestHooks.lzy) {
503
+ objDefineProp(lazyValue, "v", {
504
+ value: result
505
+ });
506
+ }
507
+ lazyValue.b = _globalLazyTestHooks.lzy;
508
+ return result;
509
+ }
510
+ });
511
+ return lazyValue;
512
+ }
513
+ var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
514
+ var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
515
+ var value = (utcNow().toString(36).slice(2));
516
+ while (value.length < 16) {
517
+ value += mathRandom().toString(36).slice(2);
518
+ }
519
+ value = value.substring(0, 16);
520
+ return value;
521
+ }));
311
522
  var UNIQUE_REGISTRY_ID = "_urid";
523
+ var POLY_SYM = "$nw21sym";
312
524
  var _polySymbols;
525
+ var _polyId = 0;
313
526
  /*#__NO_SIDE_EFFECTS__*/
314
527
  function _globalSymbolRegistry() {
315
528
  if (!_polySymbols) {
@@ -321,12 +534,35 @@ function _globalSymbolRegistry() {
321
534
  var _wellKnownSymbolCache;
322
535
  /*#__NO_SIDE_EFFECTS__*/
323
536
  function polyNewSymbol(description) {
324
- var theSymbol = {
325
- description: asString(description),
326
- toString: function () { return SYMBOL + "(" + description + ")"; }
327
- };
328
- theSymbol[POLYFILL_TAG] = true;
329
- return theSymbol;
537
+ var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
538
+ var symString = SYMBOL + "(" + description + ")";
539
+ var theSymbol = objCreate(null);
540
+ objDefine(theSymbol, "description", {
541
+ v: asString(description),
542
+ e: false,
543
+ w: false
544
+ });
545
+ objDefine(theSymbol, TO_STRING, {
546
+ v: function () { return symString + POLY_SYM + uniqueId; },
547
+ e: false,
548
+ w: false
549
+ });
550
+ objDefine(theSymbol, "valueOf", {
551
+ v: function () { return theSymbol; },
552
+ e: false,
553
+ w: false
554
+ });
555
+ objDefine(theSymbol, "v", {
556
+ v: symString,
557
+ e: false,
558
+ w: false
559
+ });
560
+ objDefine(theSymbol, "_uid", {
561
+ v: uniqueId,
562
+ e: false,
563
+ w: false
564
+ });
565
+ return _tagAsPolyfill(theSymbol, "symbol");
330
566
  }
331
567
  /*#__NO_SIDE_EFFECTS__*/
332
568
  function polySymbolFor(key) {
@@ -350,36 +586,6 @@ function polyGetKnownSymbol(name) {
350
586
  }
351
587
  return result;
352
588
  }
353
- var _globalLazyTestHooks;
354
- function _initTestHooks() {
355
- _globalLazyTestHooks = _getGlobalConfig();
356
- }
357
- /*#__NO_SIDE_EFFECTS__*/
358
- function getLazy(cb) {
359
- var lazyValue = {};
360
- !_globalLazyTestHooks && _initTestHooks();
361
- lazyValue.b = _globalLazyTestHooks.lzy;
362
- objDefineProp(lazyValue, "v", {
363
- configurable: true,
364
- get: function () {
365
- var result = cb();
366
- if (!_globalLazyTestHooks.lzy) {
367
- objDefineProp(lazyValue, "v", {
368
- value: result
369
- });
370
- }
371
- lazyValue.b = _globalLazyTestHooks.lzy;
372
- return result;
373
- }
374
- });
375
- return lazyValue;
376
- }
377
- /*#__NO_SIDE_EFFECTS__*/
378
- function createCachedValue(value) {
379
- return objDefineProp({
380
- toJSON: function () { return value; }
381
- }, "v", { value: value });
382
- }
383
589
  var WINDOW = "window";
384
590
  var _cachedGlobal;
385
591
  function _getGlobalInstFn(getFn, theArgs) {
@@ -525,43 +731,7 @@ function arrAppend(target, elms) {
525
731
  }
526
732
  return target;
527
733
  }
528
- function arrForEach(theArray, callbackfn, thisArg) {
529
- if (theArray) {
530
- var len = theArray[LENGTH] >>> 0;
531
- for (var idx = 0; idx < len; idx++) {
532
- if (idx in theArray) {
533
- if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
534
- break;
535
- }
536
- }
537
- }
538
- }
539
- }
540
734
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
541
- var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
542
- /*#__NO_SIDE_EFFECTS__*/
543
- function polyObjCreate(obj) {
544
- if (!obj) {
545
- return {};
546
- }
547
- var type = typeof obj;
548
- if (type !== OBJECT && type !== FUNCTION) {
549
- throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
550
- }
551
- function tempFunc() { }
552
- tempFunc[PROTOTYPE] = obj;
553
- return new tempFunc();
554
- }
555
- var _isProtoArray;
556
- function objSetPrototypeOf(obj, proto) {
557
- var fn = ObjClass["setPrototypeOf"] ||
558
- function (d, b) {
559
- var _a;
560
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
561
- _isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) { return d[key] = value; });
562
- };
563
- return fn(obj, proto);
564
- }
565
735
  /*#__NO_SIDE_EFFECTS__*/
566
736
  function _createCustomError(name, d, b) {
567
737
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -603,19 +773,9 @@ function createCustomError(name, constructCb, errorBase) {
603
773
  }, theBaseClass);
604
774
  }
605
775
  /*#__NO_SIDE_EFFECTS__*/
606
- function utcNow() {
607
- return (Date.now || polyUtcNow)();
608
- }
609
- /*#__NO_SIDE_EFFECTS__*/
610
- function polyUtcNow() {
611
- return new Date().getTime();
612
- }
613
- /*#__NO_SIDE_EFFECTS__*/
614
776
  function _createTrimFn(exp) {
615
777
  return function _doTrim(value) {
616
- if (isNullOrUndefined(value)) {
617
- throwTypeError("strTrim called [" + dumpObj(value) + "]");
618
- }
778
+ _throwIfNullOrUndefined(value);
619
779
  if (value && value.replace) {
620
780
  value = value.replace(exp, EMPTY);
621
781
  }
@@ -661,9 +821,7 @@ var mathRound = ( /*#__PURE__*/_pureRef(MathCls, "round"));
661
821
  var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
662
822
  /*#__NO_SIDE_EFFECTS__*/
663
823
  function polyStrEndsWith(value, searchString, length) {
664
- if (!isString(value)) {
665
- throwTypeError("'" + dumpObj(value) + "' is not a string");
666
- }
824
+ _throwIfNotString(value);
667
825
  var searchValue = isString(searchString) ? searchString : asString(searchString);
668
826
  var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
669
827
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
@@ -1319,7 +1477,7 @@ function newId(maxLength) {
1319
1477
  return result;
1320
1478
  }
1321
1479
 
1322
- var version = '3.3.7-nightly3.2504-08';
1480
+ var version = '3.3.7-nightly3.2504-12';
1323
1481
  var instanceName = "." + newId(6);
1324
1482
  var _dataUid = 0;
1325
1483
  function _canAcceptData(target) {
@@ -3563,7 +3721,7 @@ var Device = /** @class */ (function () {
3563
3721
  return Device;
3564
3722
  }());
3565
3723
 
3566
- var Version = '3.3.7-nightly3.2504-08';
3724
+ var Version = '3.3.7-nightly3.2504-12';
3567
3725
  var Internal = /** @class */ (function () {
3568
3726
  function Internal(config, unloadHookContainer) {
3569
3727
  var _this = this;