@microsoft/1ds-core-js 4.4.0-nightlybeta3.2602-27 → 4.4.1

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 (53) hide show
  1. package/README.md +56 -0
  2. package/bundle/es5/{ms.core-4.4.0-nightlybeta3.2602-27.gbl.js → ms.core-4.4.1.gbl.js} +498 -511
  3. package/bundle/es5/ms.core-4.4.1.gbl.js.map +1 -0
  4. package/bundle/es5/ms.core-4.4.1.gbl.min.js +7 -0
  5. package/bundle/es5/ms.core-4.4.1.gbl.min.js.map +1 -0
  6. package/bundle/es5/ms.core-4.4.1.integrity.json +46 -0
  7. package/bundle/es5/{ms.core-4.4.0-nightlybeta3.2602-27.js → ms.core-4.4.1.js} +498 -511
  8. package/bundle/es5/ms.core-4.4.1.js.map +1 -0
  9. package/bundle/es5/ms.core-4.4.1.min.js +7 -0
  10. package/bundle/es5/ms.core-4.4.1.min.js.map +1 -0
  11. package/bundle/es5/ms.core.gbl.js +497 -510
  12. package/bundle/es5/ms.core.gbl.js.map +1 -1
  13. package/bundle/es5/ms.core.gbl.min.js +2 -2
  14. package/bundle/es5/ms.core.gbl.min.js.map +1 -1
  15. package/bundle/es5/ms.core.integrity.json +17 -17
  16. package/bundle/es5/ms.core.js +497 -510
  17. package/bundle/es5/ms.core.js.map +1 -1
  18. package/bundle/es5/ms.core.min.js +2 -2
  19. package/bundle/es5/ms.core.min.js.map +1 -1
  20. package/dist/es5/ms.core.js +495 -508
  21. package/dist/es5/ms.core.js.map +1 -1
  22. package/dist/es5/ms.core.min.js +2 -2
  23. package/dist/es5/ms.core.min.js.map +1 -1
  24. package/dist-es5/Index.js +9 -22
  25. package/dist-es5/Index.js.map +1 -1
  26. package/package.json +69 -72
  27. package/types/1ds-core-js.d.ts +110 -691
  28. package/types/1ds-core-js.namespaced.d.ts +54 -5
  29. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.gbl.js.map +0 -1
  30. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.gbl.min.js +0 -7
  31. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.gbl.min.js.map +0 -1
  32. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.integrity.json +0 -46
  33. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.js.map +0 -1
  34. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.min.js +0 -7
  35. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.min.js.map +0 -1
  36. package/dist-es5/AppInsightsCore.js +0 -96
  37. package/dist-es5/AppInsightsCore.js.map +0 -1
  38. package/dist-es5/BaseCore.js +0 -67
  39. package/dist-es5/BaseCore.js.map +0 -1
  40. package/dist-es5/DataModels.js +0 -7
  41. package/dist-es5/DataModels.js.map +0 -1
  42. package/dist-es5/Enums.js +0 -92
  43. package/dist-es5/Enums.js.map +0 -1
  44. package/dist-es5/InternalConstants.js +0 -19
  45. package/dist-es5/InternalConstants.js.map +0 -1
  46. package/dist-es5/Utils.js +0 -397
  47. package/dist-es5/Utils.js.map +0 -1
  48. package/dist-es5/ValueSanitizer.js +0 -262
  49. package/dist-es5/ValueSanitizer.js.map +0 -1
  50. package/dist-es5/__DynamicConstants.js +0 -28
  51. package/dist-es5/__DynamicConstants.js.map +0 -1
  52. package/dist-es5/extSpanUtils.js +0 -308
  53. package/dist-es5/extSpanUtils.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * 1DS JS SDK Core, 4.4.0-nightlybeta3.2602-27
2
+ * 1DS JS SDK Core, 4.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
6
6
  (function (global, factory) {
7
7
  var undef = "undefined";
8
- var nsKey, key, nm, theExports = {}, modName = "es5_ms_core_4_4_0_nightlybeta3_2602_27", msMod="__ms$mod__";
9
- var mods={}, modDetail=mods[modName]={}, ver="4.4.0-nightlybeta3.2602-27";
8
+ var nsKey, key, nm, theExports = {}, modName = "es5_ms_core_4_4_1", msMod="__ms$mod__";
9
+ var mods={}, modDetail=mods[modName]={}, ver="4.4.1";
10
10
  // Versioned namespace "oneDS4"
11
11
  var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
12
12
  // Global namespace "oneDS"
@@ -26,14 +26,9 @@
26
26
  'use strict';
27
27
 
28
28
 
29
- var strShimFunction = "function";
30
- var strShimObject = "object";
31
- var strShimUndefined = "undefined";
32
- var strShimPrototype = "prototype";
33
- var ObjClass$1 = Object;
34
- var ObjProto$1 = ObjClass$1[strShimPrototype];
29
+ var MinChannelPriorty = 100;
35
30
 
36
- /*! https://github.com/nevware21/ts-utils v0.12.6 */
31
+ /*! https://github.com/nevware21/ts-utils v0.13.0 */
37
32
  /*#__NO_SIDE_EFFECTS__*/
38
33
  function _pureAssign(func1, func2) {
39
34
  return func1 || func2;
@@ -58,8 +53,8 @@ var CALL = "call";
58
53
  var TO_STRING = "toString";
59
54
  var GET_OWN_PROPERTY_DESCRIPTOR = "getOwnPropertyDescriptor";
60
55
  var GET_OWN_PROPERTY_SYMBOLS = "getOwnPropertySymbols";
61
- var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
62
- var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
56
+ var ObjClass$1 = ( /*#__PURE__*/_pureAssign(Object));
57
+ var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass$1, PROTOTYPE));
63
58
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
64
59
  var StrProto = ( /*#__PURE__*/_pureRef(StrCls, PROTOTYPE));
65
60
  var MathCls = ( /*#__PURE__*/_pureAssign(Math));
@@ -203,8 +198,8 @@ function _throwIfNotString(value) {
203
198
  function objHasOwnProperty(obj, prop) {
204
199
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
205
200
  }
206
- var _objGetOwnPropertyDescriptor$2 = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
207
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
201
+ var _objGetOwnPropertyDescriptor$2 = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
202
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, "hasOwn")), polyObjHasOwn));
208
203
  /*#__NO_SIDE_EFFECTS__*/
209
204
  function polyObjHasOwn(obj, prop) {
210
205
  _throwIfNullOrUndefined(obj);
@@ -254,7 +249,7 @@ function _unwrapProp(propName) {
254
249
  }
255
250
  function _objPropertyIsEnum(obj, propKey) {
256
251
  var desc;
257
- var fn = ObjClass.getOwnPropertyDescriptor;
252
+ var fn = ObjClass$1.getOwnPropertyDescriptor;
258
253
  if (!isStrictNullOrUndefined(obj) && fn) {
259
254
  desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
260
255
  }
@@ -270,8 +265,8 @@ function _objPropertyIsEnum(obj, propKey) {
270
265
  return (desc && desc.enumerable) || false;
271
266
  }
272
267
  var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
273
- var _objGetOwnPropertyDescriptor$1 = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
274
- var _objGetOwnPropertySymbols = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_SYMBOLS)), _returnEmptyArray));
268
+ var _objGetOwnPropertyDescriptor$1 = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
269
+ var _objGetOwnPropertySymbols = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, GET_OWN_PROPERTY_SYMBOLS)), _returnEmptyArray));
275
270
  var propMap = {
276
271
  e: "enumerable",
277
272
  c: "configurable",
@@ -299,8 +294,8 @@ function _createProp(value) {
299
294
  });
300
295
  return prop;
301
296
  }
302
- var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
303
- var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
297
+ var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass$1, "defineProperty"));
298
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass$1, "defineProperties"));
304
299
  function objDefineAccessors(target, prop, getProp, setProp, configurable, enumerable) {
305
300
  var desc = {
306
301
  e: enumerable,
@@ -354,8 +349,8 @@ function polyObjIs(value1, value2) {
354
349
  }
355
350
  return value1 === value2;
356
351
  }
357
- var objIsFrozen = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, "isFrozen")), _returnFalse));
358
- var _objFreeze = ( /*#__PURE__*/_pureRef(ObjClass, "freeze"));
352
+ var objIsFrozen = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, "isFrozen")), _returnFalse));
353
+ var _objFreeze = ( /*#__PURE__*/_pureRef(ObjClass$1, "freeze"));
359
354
  function _doNothing(value) {
360
355
  return value;
361
356
  }
@@ -364,8 +359,8 @@ function _getProto(value) {
364
359
  _throwIfNullOrUndefined(value);
365
360
  return value[__PROTO__] || NULL_VALUE;
366
361
  }
367
- var objAssign = ( /*#__PURE__*/_pureRef(ObjClass, "assign"));
368
- var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
362
+ var objAssign = ( /*#__PURE__*/_pureRef(ObjClass$1, "assign"));
363
+ var objKeys = ( /*#__PURE__*/_pureRef(ObjClass$1, "keys"));
369
364
  function _deepFreeze(val, visited) {
370
365
  if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
371
366
  for (var lp = 0; lp < visited.length; lp++) {
@@ -385,9 +380,9 @@ function objDeepFreeze(value) {
385
380
  return _objFreeze ? _deepFreeze(value, []) : value;
386
381
  }
387
382
  var objFreeze = ( /*#__PURE__*/_pureAssign(_objFreeze, _doNothing));
388
- var objSeal = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, "seal")), _doNothing));
389
- var objGetPrototypeOf = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
390
- var objIs = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, "is")), polyObjIs));
383
+ var objSeal = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, "seal")), _doNothing));
384
+ var objGetPrototypeOf = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, "getPrototypeOf")), _getProto));
385
+ var objIs = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, "is")), polyObjIs));
391
386
  /*#__NO_SIDE_EFFECTS__*/
392
387
  function createEnum(values) {
393
388
  return _createKeyValueMap(values, 1 , 0 , objFreeze);
@@ -480,7 +475,7 @@ function _tagAsPolyfill(target, polyfillTypeName) {
480
475
  }
481
476
  return target;
482
477
  }
483
- var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
478
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass$1, "create")), polyObjCreate));
484
479
  /*#__NO_SIDE_EFFECTS__*/
485
480
  function polyObjCreate(obj, properties) {
486
481
  var newObj = null;
@@ -802,7 +797,7 @@ function polyArrIncludes(theArray, searchElement, fromIndex) {
802
797
  var arrIncludes = ( /*#__PURE__*/_unwrapFunctionWithPoly("includes", ArrProto, polyArrIncludes));
803
798
  var arrReduce = ( /*#__PURE__*/_unwrapFunction("reduce", ArrProto));
804
799
  var _isProtoArray;
805
- var objSetPrototypeOf = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
800
+ var objSetPrototypeOf = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, "setPrototypeOf")), _polyObjSetPrototypeOf));
806
801
  function _polyObjSetPrototypeOf(obj, proto) {
807
802
  var _a;
808
803
  !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
@@ -824,7 +819,7 @@ function _setName(baseClass, name) {
824
819
  name && (baseClass[NAME] = name);
825
820
  }
826
821
  /*#__NO_SIDE_EFFECTS__*/
827
- function createCustomError(name, constructCb, errorBase) {
822
+ function createCustomError(name, constructCb, errorBase, superArgsFn) {
828
823
  var theBaseClass = errorBase || Error;
829
824
  var orgName = theBaseClass[PROTOTYPE][NAME];
830
825
  var captureFn = Error.captureStackTrace;
@@ -833,7 +828,7 @@ function createCustomError(name, constructCb, errorBase) {
833
828
  var theArgs = arguments;
834
829
  try {
835
830
  safe(_setName, [theBaseClass, name]);
836
- var _self = fnApply(theBaseClass, _this, ArrSlice[CALL](theArgs)) || _this;
831
+ var _self = fnApply(theBaseClass, _this, superArgsFn ? superArgsFn(theArgs) : ArrSlice[CALL](theArgs)) || _this;
837
832
  if (_self !== _this) {
838
833
  var orgProto = objGetPrototypeOf(_this);
839
834
  if (orgProto !== objGetPrototypeOf(_self)) {
@@ -863,6 +858,13 @@ var polyStrTrim = ( /*#__PURE__*/_createTrimFn(/^\s+|(?=\s)\s+$/g));
863
858
  var strTrim = ( /*#__PURE__*/_unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
864
859
  var strLower = ( /*#__PURE__*/_unwrapFunction("toLowerCase", StrProto));
865
860
  var mathFloor = ( /*#__PURE__*/_pureRef(MathCls, "floor"));
861
+ /*#__NO_SIDE_EFFECTS__*/
862
+ function safeGetDeferred(cb, defValue, argArray) {
863
+ return getDeferred(function () {
864
+ var result = safe(cb, argArray);
865
+ return result.e ? defValue : result.v;
866
+ });
867
+ }
866
868
  var _fnToString;
867
869
  var _objCtrFnString;
868
870
  var _gblWindow;
@@ -878,7 +880,7 @@ function isPlainObject(value) {
878
880
  if (value !== _gblWindow) {
879
881
  if (!_objCtrFnString) {
880
882
  _fnToString = Function[PROTOTYPE][TO_STRING];
881
- _objCtrFnString = _fnToString[CALL](ObjClass);
883
+ _objCtrFnString = _fnToString[CALL](ObjClass$1);
882
884
  }
883
885
  try {
884
886
  var proto = objGetPrototypeOf(value);
@@ -1064,13 +1066,6 @@ function perfNow() {
1064
1066
  return utcNow();
1065
1067
  }
1066
1068
  /*#__NO_SIDE_EFFECTS__*/
1067
- function safeGetDeferred(cb, defValue, argArray) {
1068
- return getDeferred(function () {
1069
- var result = safe(cb, argArray);
1070
- return result.e ? defValue : result.v;
1071
- });
1072
- }
1073
- /*#__NO_SIDE_EFFECTS__*/
1074
1069
  function createIterator(ctx) {
1075
1070
  var isDone = false;
1076
1071
  function _value() {
@@ -1113,7 +1108,7 @@ function createIterator(ctx) {
1113
1108
  }
1114
1109
  return theIterator;
1115
1110
  }
1116
- var objGetOwnPropertyDescriptor = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
1111
+ var objGetOwnPropertyDescriptor = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
1117
1112
  var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
1118
1113
  /*#__NO_SIDE_EFFECTS__*/
1119
1114
  function polyStrEndsWith(value, searchString, length) {
@@ -1240,11 +1235,151 @@ function createTimeout(callback, timeout) {
1240
1235
  return _createTimeoutWith(false, UNDEF_VALUE, ArrSlice[CALL](arguments));
1241
1236
  }
1242
1237
 
1238
+ var createEnumStyle = createEnum;
1239
+
1240
+ var EventsDiscardedReason = ( /* @__PURE__ */createEnumStyle({
1241
+ Unknown: 0 ,
1242
+ NonRetryableStatus: 1 ,
1243
+ InvalidEvent: 2 ,
1244
+ SizeLimitExceeded: 3 ,
1245
+ KillSwitch: 4 ,
1246
+ QueueFull: 5 ,
1247
+ BeaconSendFailure: 6
1248
+ }));
1249
+
1250
+ var ActiveStatus = ( /* @__PURE__ */createEnumStyle({
1251
+ NONE: 0 ,
1252
+ PENDING: 3 ,
1253
+ INACTIVE: 1 ,
1254
+ ACTIVE: 2
1255
+ }));
1256
+
1257
+ var _DYN_TO_LOWER_CASE = "toLowerCase";
1258
+ var _DYN_LENGTH = "length";
1259
+ var _DYN_WARN_TO_CONSOLE = "warnToConsole";
1260
+ var _DYN_THROW_INTERNAL = "throwInternal";
1261
+ var _DYN_WATCH = "watch";
1262
+ var _DYN_APPLY = "apply";
1263
+ var _DYN_PUSH = "push";
1264
+ var _DYN_SPLICE = "splice";
1265
+ var _DYN_LOGGER = "logger";
1266
+ var _DYN_CANCEL = "cancel";
1267
+ var _DYN_INITIALIZE = "initialize";
1268
+ var _DYN_IDENTIFIER = "identifier";
1269
+ var _DYN_REMOVE_NOTIFICATION_0 = "removeNotificationListener";
1270
+ var _DYN_ADD_NOTIFICATION_LIS1 = "addNotificationListener";
1271
+ var _DYN_STRINGIFY = "stringify";
1272
+ var _DYN_TRACE_ID = "traceId";
1273
+ var _DYN_SPAN_ID = "spanId";
1274
+ var _DYN_TRACE_FLAGS = "traceFlags";
1275
+ var _DYN_IS_INITIALIZED = "isInitialized";
1276
+ var _DYN_TRACE_HDR_MODE = "traceHdrMode";
1277
+ var _DYN_GET_NOTIFY_MGR = "getNotifyMgr";
1278
+ var _DYN_GET_PLUGIN = "getPlugin";
1279
+ var _DYN_TRACK = "track";
1280
+ var _DYN_NAME = "name";
1281
+ var _DYN_I_KEY = "iKey";
1282
+ var _DYN_TIME = "time";
1283
+ var _DYN_PROCESS_NEXT = "processNext";
1284
+ var _DYN_GET_PROCESS_TEL_CONT2 = "getProcessTelContext";
1285
+ var _DYN_POLL_INTERNAL_LOGS = "pollInternalLogs";
1286
+ var _DYN_VALUE = "value";
1287
+ var _DYN_ENABLED = "enabled";
1288
+ var _DYN_STOP_POLLING_INTERNA3 = "stopPollingInternalLogs";
1289
+ var _DYN_UNLOAD = "unload";
1290
+ var _DYN_ON_COMPLETE = "onComplete";
1291
+ var _DYN_REASON = "reason";
1292
+ var _DYN_FLUSH = "flush";
1293
+ var _DYN_GET_TRACE_CTX = "getTraceCtx";
1294
+ var _DYN_SET_TRACE_CTX = "setTraceCtx";
1295
+ var _DYN_GET_ACTIVE_SPAN = "getActiveSpan";
1296
+ var _DYN_SET_ACTIVE_SPAN = "setActiveSpan";
1297
+ var _DYN_SPAN_CONTEXT = "spanContext";
1298
+ var _DYN_PARENT_SPAN_CONTEXT = "parentSpanContext";
1299
+ var _DYN_PARENT_SPAN_ID = "parentSpanId";
1300
+ var _DYN_LOGGING_LEVEL_CONSOL4 = "loggingLevelConsole";
1301
+ var _DYN_JOIN = "join";
1302
+ var _DYN_CREATE_NEW = "createNew";
1303
+ var _DYN_TEARDOWN = "teardown";
1304
+ var _DYN_MESSAGE_ID = "messageId";
1305
+ var _DYN_MESSAGE = "message";
1306
+ var _DYN_ATTRIBUTE_COUNT_LIMI5 = "attributeCountLimit";
1307
+ var _DYN_SUPPRESS_TRACING = "suppressTracing";
1308
+ var _DYN_NOT_IMPLEMENTED = "notImplemented";
1309
+ var _DYN_DIAG_LOG = "diagLog";
1310
+ var _DYN__DO_TEARDOWN = "_doTeardown";
1311
+ var _DYN_UPDATE = "update";
1312
+ var _DYN_GET_NEXT = "getNext";
1313
+ var _DYN_SET_NEXT_PLUGIN = "setNextPlugin";
1314
+ var _DYN_SPLIT = "split";
1315
+ var _DYN_IS_CHILD_EVT = "isChildEvt";
1316
+ var _DYN_DATA = "data";
1317
+ var _DYN_GET_CTX = "getCtx";
1318
+ var _DYN_SET_CTX = "setCtx";
1319
+ var _DYN_CONFIG = "config";
1320
+ var _DYN_CALL = "call";
1321
+ var _DYN_ITEMS_RECEIVED = "itemsReceived";
1322
+ var _DYN_HEADERS = "headers";
1323
+ var _DYN_URL_STRING = "urlString";
1324
+ var _DYN_TIMEOUT = "timeout";
1325
+ var _DYN_STATUS = "status";
1326
+ var _DYN_REPLACE = "replace";
1327
+ var _DYN_HAS_OWN_PROPERTY = "hasOwnProperty";
1328
+ var _DYN_INDEX_OF = "indexOf";
1329
+ var _DYN_TYPE = "type";
1330
+ var _DYN_SET_TRACE_FLAGS = "setTraceFlags";
1331
+ var _DYN_PATHNAME = "pathname";
1332
+ var _DYN_TRACE_STATE = "traceState";
1333
+ var _DYN_TIMINGS = "timings";
1334
+ var _DYN_BASE_DATA = "baseData";
1335
+ var _DYN_PROPERTIES = "properties";
1336
+ var _DYN_USER_AGENT = "userAgent";
1337
+ var _DYN_ATTRIBUTES = "attributes";
1338
+ var _DYN_KIND = "kind";
1339
+ var _DYN_START_TIME = "startTime";
1340
+ var _DYN_DURATION = "duration";
1341
+ var _DYN_TO_STRING = "toString";
1342
+ var _DYN_PROCESS_TELEMETRY_ST6 = "processTelemetryStart";
1343
+ var _DYN_HANDLE_FIELD = "handleField";
1344
+ var _DYN_RM_SANITIZER = "rmSanitizer";
1345
+ var _DYN_RM_FIELD_SANITIZER = "rmFieldSanitizer";
1346
+ var _DYN_CAN_HANDLE = "canHandle";
1347
+ var _DYN_HANDLER = "handler";
1348
+ var _DYN_ERROR_HANDLERS = "errorHandlers";
1349
+ var _DYN_EVT_NAME = "evtName";
1350
+ var _DYN_CONCAT = "concat";
1351
+ var _DYN_SUBSTRING = "substring";
1352
+ var _DYN_GET_ALL_RESPONSE_HEA7 = "getAllResponseHeaders";
1353
+ var _DYN_ENTRIES = "entries";
1354
+ var _DYN_TRACE_CFG = "traceCfg";
1355
+
1356
+ var aggregationErrorType;
1357
+ function throwAggregationError(message, sourceErrors) {
1358
+ if (!aggregationErrorType) {
1359
+ aggregationErrorType = createCustomError("AggregationError", function (self, args) {
1360
+ if (args[_DYN_LENGTH ] > 1) {
1361
+ self.errors = args[1];
1362
+ }
1363
+ });
1364
+ }
1365
+ var theMessage = message || "One or more errors occurred.";
1366
+ arrForEach(sourceErrors, function (srcError, idx) {
1367
+ theMessage += "\n".concat(idx, " > ").concat(dumpObj(srcError));
1368
+ });
1369
+ throw new aggregationErrorType(theMessage, sourceErrors || []);
1370
+ }
1371
+
1372
+ var strShimFunction = "function";
1373
+ var strShimObject = "object";
1374
+ var strShimUndefined = "undefined";
1375
+ var strShimPrototype = "prototype";
1376
+ var ObjClass = Object;
1377
+
1243
1378
  (getGlobal() || {})["Symbol"];
1244
1379
  (getGlobal() || {})["Reflect"];
1245
1380
  var strHasOwnProperty = "hasOwnProperty";
1246
1381
  var extendStaticsFn = function (d, b) {
1247
- extendStaticsFn = ObjClass$1["setPrototypeOf"] ||
1382
+ extendStaticsFn = ObjClass["setPrototypeOf"] ||
1248
1383
  ({ __proto__: [] } instanceof Array && function (d, b) {
1249
1384
  d.__proto__ = b;
1250
1385
  }) ||
@@ -1524,122 +1659,6 @@ function dynamicProto(theClass, target, delegateFunc, options) {
1524
1659
  }
1525
1660
  dynamicProto[DynProtoDefaultOptions] = _gblInst.o;
1526
1661
 
1527
- var MinChannelPriorty = 100;
1528
-
1529
- var createEnumStyle = createEnum;
1530
-
1531
- var EventsDiscardedReason = ( /* @__PURE__ */createEnumStyle({
1532
- Unknown: 0 ,
1533
- NonRetryableStatus: 1 ,
1534
- InvalidEvent: 2 ,
1535
- SizeLimitExceeded: 3 ,
1536
- KillSwitch: 4 ,
1537
- QueueFull: 5 ,
1538
- BeaconSendFailure: 6
1539
- }));
1540
-
1541
- var ActiveStatus = ( /* @__PURE__ */createEnumStyle({
1542
- NONE: 0 ,
1543
- PENDING: 3 ,
1544
- INACTIVE: 1 ,
1545
- ACTIVE: 2
1546
- }));
1547
-
1548
- var _DYN_TO_LOWER_CASE = "toLowerCase";
1549
- var _DYN_LENGTH$1 = "length";
1550
- var _DYN_WARN_TO_CONSOLE = "warnToConsole";
1551
- var _DYN_THROW_INTERNAL = "throwInternal";
1552
- var _DYN_WATCH = "watch";
1553
- var _DYN_APPLY = "apply";
1554
- var _DYN_PUSH = "push";
1555
- var _DYN_SPLICE = "splice";
1556
- var _DYN_LOGGER = "logger";
1557
- var _DYN_CANCEL = "cancel";
1558
- var _DYN_INITIALIZE$1 = "initialize";
1559
- var _DYN_IDENTIFIER = "identifier";
1560
- var _DYN_REMOVE_NOTIFICATION_0 = "removeNotificationListener";
1561
- var _DYN_ADD_NOTIFICATION_LIS1 = "addNotificationListener";
1562
- var _DYN_STRINGIFY = "stringify";
1563
- var _DYN_TRACE_ID = "traceId";
1564
- var _DYN_SPAN_ID = "spanId";
1565
- var _DYN_TRACE_FLAGS = "traceFlags";
1566
- var _DYN_IS_INITIALIZED = "isInitialized";
1567
- var _DYN_TRACE_HDR_MODE = "traceHdrMode";
1568
- var _DYN_GET_NOTIFY_MGR = "getNotifyMgr";
1569
- var _DYN_GET_PLUGIN = "getPlugin";
1570
- var _DYN_NAME = "name";
1571
- var _DYN_TIME = "time";
1572
- var _DYN_PROCESS_NEXT = "processNext";
1573
- var _DYN_GET_PROCESS_TEL_CONT2 = "getProcessTelContext";
1574
- var _DYN_VALUE$1 = "value";
1575
- var _DYN_ENABLED = "enabled";
1576
- var _DYN_STOP_POLLING_INTERNA3 = "stopPollingInternalLogs";
1577
- var _DYN_UNLOAD = "unload";
1578
- var _DYN_ON_COMPLETE = "onComplete";
1579
- var _DYN_REASON = "reason";
1580
- var _DYN_FLUSH = "flush";
1581
- var _DYN_GET_TRACE_CTX = "getTraceCtx";
1582
- var _DYN_SET_TRACE_CTX = "setTraceCtx";
1583
- var _DYN_GET_ACTIVE_SPAN = "getActiveSpan";
1584
- var _DYN_SET_ACTIVE_SPAN = "setActiveSpan";
1585
- var _DYN_SPAN_CONTEXT = "spanContext";
1586
- var _DYN_PARENT_SPAN_CONTEXT = "parentSpanContext";
1587
- var _DYN_VERSION = "version";
1588
- var _DYN_LOGGING_LEVEL_CONSOL4 = "loggingLevelConsole";
1589
- var _DYN_JOIN = "join";
1590
- var _DYN_CREATE_NEW = "createNew";
1591
- var _DYN_TEARDOWN = "teardown";
1592
- var _DYN_MESSAGE_ID = "messageId";
1593
- var _DYN_MESSAGE = "message";
1594
- var _DYN_ATTRIBUTE_COUNT_LIMI5 = "attributeCountLimit";
1595
- var _DYN_SUPPRESS_TRACING = "suppressTracing";
1596
- var _DYN_NOT_IMPLEMENTED = "notImplemented";
1597
- var _DYN_DIAG_LOG = "diagLog";
1598
- var _DYN__DO_TEARDOWN = "_doTeardown";
1599
- var _DYN_UPDATE = "update";
1600
- var _DYN_GET_NEXT = "getNext";
1601
- var _DYN_SET_NEXT_PLUGIN = "setNextPlugin";
1602
- var _DYN_SPLIT = "split";
1603
- var _DYN_IS_CHILD_EVT = "isChildEvt";
1604
- var _DYN_DATA = "data";
1605
- var _DYN_GET_CTX = "getCtx";
1606
- var _DYN_SET_CTX = "setCtx";
1607
- var _DYN_CONFIG = "config";
1608
- var _DYN_ITEMS_RECEIVED = "itemsReceived";
1609
- var _DYN_HEADERS = "headers";
1610
- var _DYN_URL_STRING = "urlString";
1611
- var _DYN_TIMEOUT = "timeout";
1612
- var _DYN_STATUS = "status";
1613
- var _DYN_REPLACE = "replace";
1614
- var _DYN_TYPE = "type";
1615
- var _DYN_SET_TRACE_FLAGS = "setTraceFlags";
1616
- var _DYN_PATHNAME = "pathname";
1617
- var _DYN_TRACE_STATE = "traceState";
1618
- var _DYN_ERROR_HANDLERS = "errorHandlers";
1619
- var _DYN_TO_STRING = "toString";
1620
- var _DYN_EVT_NAME = "evtName";
1621
- var _DYN_CONCAT = "concat";
1622
- var _DYN_SUBSTRING = "substring";
1623
- var _DYN_GET_ALL_RESPONSE_HEA6 = "getAllResponseHeaders";
1624
- var _DYN_ENTRIES = "entries";
1625
- var _DYN_TRACE_CFG = "traceCfg";
1626
-
1627
- var aggregationErrorType;
1628
- function throwAggregationError(message, sourceErrors) {
1629
- if (!aggregationErrorType) {
1630
- aggregationErrorType = createCustomError("AggregationError", function (self, args) {
1631
- if (args[_DYN_LENGTH$1 ] > 1) {
1632
- self.errors = args[1];
1633
- }
1634
- });
1635
- }
1636
- var theMessage = message || "One or more errors occurred.";
1637
- arrForEach(sourceErrors, function (srcError, idx) {
1638
- theMessage += "\n".concat(idx, " > ").concat(dumpObj(srcError));
1639
- });
1640
- throw new aggregationErrorType(theMessage, sourceErrors || []);
1641
- }
1642
-
1643
1662
  /*!
1644
1663
  * NevWare21 Solutions LLC - ts-async, 0.5.5
1645
1664
  * https://github.com/nevware21/ts-async
@@ -2045,7 +2064,7 @@ function createPromise(executor, timeout) {
2045
2064
  var createAllPromise = ( /*#__PURE__*/_createAllPromise(createPromise));
2046
2065
 
2047
2066
  var UNDEFINED_VALUE = undefined;
2048
- var STR_EMPTY$1 = "";
2067
+ var STR_EMPTY = "";
2049
2068
  var STR_CHANNELS = "channels";
2050
2069
  var STR_CORE = "core";
2051
2070
  var STR_CREATE_PERF_MGR = "createPerfMgr";
@@ -2067,6 +2086,9 @@ var STR_PATH = "path";
2067
2086
  var STR_NOT_DYNAMIC_ERROR = "Not dynamic - ";
2068
2087
  var STR_REDACTED = "REDACTED";
2069
2088
  var DEFAULT_SENSITIVE_PARAMS = ["sig", "Signature", "AWSAccessKeyId", "X-Goog-Signature"];
2089
+ var STR_DEFAULT_ENDPOINT_URL = "https://browser.events.data.microsoft.com/OneCollector/1.0/";
2090
+ var STR_VERSION = "version";
2091
+ var STR_NOT_SPECIFIED = "not_specified";
2070
2092
 
2071
2093
  function cfgDfMerge(defaultValue) {
2072
2094
  return {
@@ -2108,14 +2130,14 @@ function strContains(value, search) {
2108
2130
  }
2109
2131
  /*#__NO_SIDE_EFFECTS__*/
2110
2132
  function toISOString(date) {
2111
- return date && date.toISOString() || STR_EMPTY$1;
2133
+ return date && date.toISOString() || STR_EMPTY;
2112
2134
  }
2113
2135
  /*#__NO_SIDE_EFFECTS__*/
2114
2136
  function getExceptionName(object) {
2115
2137
  if (isError(object)) {
2116
2138
  return object[_DYN_NAME ];
2117
2139
  }
2118
- return STR_EMPTY$1;
2140
+ return STR_EMPTY;
2119
2141
  }
2120
2142
  function setValue(target, field, value, valChk, srcChk) {
2121
2143
  var theValue = value;
@@ -2241,7 +2263,7 @@ function setProtoTypeName(target, name) {
2241
2263
  /*#__NO_SIDE_EFFECTS__*/
2242
2264
  function optimizeObject(theObject) {
2243
2265
  if (theObject && objAssign) {
2244
- theObject = ObjClass$1(objAssign({}, theObject));
2266
+ theObject = ObjClass(objAssign({}, theObject));
2245
2267
  }
2246
2268
  return theObject;
2247
2269
  }
@@ -2271,14 +2293,14 @@ function getResponseText(xhr) {
2271
2293
  /*#__NO_SIDE_EFFECTS__*/
2272
2294
  function formatErrorMessageXdr(xdr, message) {
2273
2295
  if (xdr) {
2274
- return "XDomainRequest,Response:" + getResponseText(xdr) || STR_EMPTY$1;
2296
+ return "XDomainRequest,Response:" + getResponseText(xdr) || STR_EMPTY;
2275
2297
  }
2276
2298
  return message;
2277
2299
  }
2278
2300
  /*#__NO_SIDE_EFFECTS__*/
2279
2301
  function formatErrorMessageXhr(xhr, message) {
2280
2302
  if (xhr) {
2281
- return "XMLHttpRequest,Status:" + xhr[_DYN_STATUS ] + ",Response:" + getResponseText(xhr) || xhr.response || STR_EMPTY$1;
2303
+ return "XMLHttpRequest,Status:" + xhr[_DYN_STATUS ] + ",Response:" + getResponseText(xhr) || xhr.response || STR_EMPTY;
2282
2304
  }
2283
2305
  return message;
2284
2306
  }
@@ -2294,10 +2316,10 @@ function prependTransports(theTransports, newTransports) {
2294
2316
  }
2295
2317
  return theTransports;
2296
2318
  }
2297
- var strDisabledPropertyName$1 = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
2298
- var strWithCredentials$1 = "withCredentials";
2299
- var strTimeout$1 = "timeout";
2300
- function openXhr$1(method, urlString, withCredentials, disabled, isSync, timeout) {
2319
+ var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
2320
+ var strWithCredentials = "withCredentials";
2321
+ var strTimeout = "timeout";
2322
+ function openXhr(method, urlString, withCredentials, disabled, isSync, timeout) {
2301
2323
  if (disabled === void 0) { disabled = false; }
2302
2324
  if (isSync === void 0) { isSync = false; }
2303
2325
  function _wrapSetXhrProp(xhr, prop, value) {
@@ -2309,17 +2331,17 @@ function openXhr$1(method, urlString, withCredentials, disabled, isSync, timeout
2309
2331
  }
2310
2332
  var xhr = new XMLHttpRequest();
2311
2333
  if (disabled) {
2312
- _wrapSetXhrProp(xhr, strDisabledPropertyName$1, disabled);
2334
+ _wrapSetXhrProp(xhr, strDisabledPropertyName, disabled);
2313
2335
  }
2314
2336
  if (withCredentials) {
2315
- _wrapSetXhrProp(xhr, strWithCredentials$1, withCredentials);
2337
+ _wrapSetXhrProp(xhr, strWithCredentials, withCredentials);
2316
2338
  }
2317
2339
  xhr.open(method, urlString, !isSync);
2318
2340
  if (withCredentials) {
2319
- _wrapSetXhrProp(xhr, strWithCredentials$1, withCredentials);
2341
+ _wrapSetXhrProp(xhr, strWithCredentials, withCredentials);
2320
2342
  }
2321
2343
  if (!isSync && timeout) {
2322
- _wrapSetXhrProp(xhr, strTimeout$1, timeout);
2344
+ _wrapSetXhrProp(xhr, strTimeout, timeout);
2323
2345
  }
2324
2346
  return xhr;
2325
2347
  }
@@ -2358,7 +2380,7 @@ var STR_KILL_DURATION_SECONDS_HEADER = "kill-duration-seconds";
2358
2380
  var STR_TIME_DELTA_HEADER = "time-delta-millis";
2359
2381
  function _getAllResponseHeaders(xhr, isOneDs) {
2360
2382
  var theHeaders = {};
2361
- if (!xhr[_DYN_GET_ALL_RESPONSE_HEA6 ]) {
2383
+ if (!xhr[_DYN_GET_ALL_RESPONSE_HEA7 ]) {
2362
2384
  if (!!isOneDs) {
2363
2385
  theHeaders = _appendHeader(theHeaders, xhr, STR_TIME_DELTA_HEADER);
2364
2386
  theHeaders = _appendHeader(theHeaders, xhr, STR_KILL_DURATION_HEADER);
@@ -2366,7 +2388,7 @@ function _getAllResponseHeaders(xhr, isOneDs) {
2366
2388
  }
2367
2389
  }
2368
2390
  else {
2369
- theHeaders = convertAllHeadersToMap(xhr[_DYN_GET_ALL_RESPONSE_HEA6 ]());
2391
+ theHeaders = convertAllHeadersToMap(xhr[_DYN_GET_ALL_RESPONSE_HEA7 ]());
2370
2392
  }
2371
2393
  return theHeaders;
2372
2394
  }
@@ -2417,7 +2439,7 @@ function getUserAgentString() {
2417
2439
  if (!_userAgent) {
2418
2440
  _userAgent = getLazy(function () {
2419
2441
  var nav = getNavigator() || {};
2420
- return nav.userAgent || STR_EMPTY$1;
2442
+ return nav[_DYN_USER_AGENT ] || STR_EMPTY;
2421
2443
  });
2422
2444
  }
2423
2445
  return _userAgent.v;
@@ -2488,7 +2510,7 @@ function getIEVersion(userAgentStr) {
2488
2510
  if (!userAgentStr) {
2489
2511
  userAgentStr = getUserAgentString();
2490
2512
  }
2491
- var ua = (userAgentStr || STR_EMPTY$1)[_DYN_TO_LOWER_CASE ]();
2513
+ var ua = (userAgentStr || STR_EMPTY)[_DYN_TO_LOWER_CASE ]();
2492
2514
  if (strContains(ua, strMsie)) {
2493
2515
  var doc = getDocument() || {};
2494
2516
  return mathMax(parseInt(ua[_DYN_SPLIT ](strMsie)[1]), (doc[strDocumentMode] || 0));
@@ -2562,7 +2584,7 @@ function _getNamedValue(values, name) {
2562
2584
  /*#__NO_SIDE_EFFECTS__*/
2563
2585
  function findMetaTag(name) {
2564
2586
  var tags = findMetaTags(name);
2565
- if (tags[_DYN_LENGTH$1 ] > 0) {
2587
+ if (tags[_DYN_LENGTH ] > 0) {
2566
2588
  return tags[0];
2567
2589
  }
2568
2590
  return null;
@@ -2582,7 +2604,7 @@ function findMetaTags(name) {
2582
2604
  function findNamedServerTiming(name) {
2583
2605
  var value;
2584
2606
  var serverTimings = findNamedServerTimings(name);
2585
- if (serverTimings[_DYN_LENGTH$1 ] > 0) {
2607
+ if (serverTimings[_DYN_LENGTH ] > 0) {
2586
2608
  value = serverTimings[0];
2587
2609
  }
2588
2610
  return value;
@@ -2614,22 +2636,26 @@ function redactQueryParameters(url, config) {
2614
2636
  if (questionMarkIndex === -1) {
2615
2637
  return url;
2616
2638
  }
2617
- if (config && config.redactQueryParams) {
2639
+ var option = config ? config.redactUrls : undefined;
2640
+ if (option === 3 ) {
2618
2641
  sensitiveParams = DEFAULT_SENSITIVE_PARAMS[_DYN_CONCAT ](config.redactQueryParams);
2619
2642
  }
2643
+ else if (option === 4 ) {
2644
+ sensitiveParams = config.redactQueryParams;
2645
+ }
2620
2646
  else {
2621
2647
  sensitiveParams = DEFAULT_SENSITIVE_PARAMS;
2622
2648
  }
2623
2649
  var baseUrl = strSubstring(url, 0, questionMarkIndex + 1);
2624
2650
  var queryString = strSubstring(url, questionMarkIndex + 1);
2625
- var fragment = STR_EMPTY$1;
2651
+ var fragment = STR_EMPTY;
2626
2652
  var hashIndex = strIndexOf(queryString, "#");
2627
2653
  if (hashIndex !== -1) {
2628
2654
  fragment = strSubstring(queryString, hashIndex);
2629
2655
  queryString = strSubstring(queryString, 0, hashIndex);
2630
2656
  }
2631
2657
  var hasPotentialSensitiveParam = false;
2632
- for (var i = 0; i < sensitiveParams[_DYN_LENGTH$1 ]; i++) {
2658
+ for (var i = 0; i < sensitiveParams[_DYN_LENGTH ]; i++) {
2633
2659
  var paramCheck = sensitiveParams[i] + "=";
2634
2660
  if (strIndexOf(queryString, paramCheck) !== -1) {
2635
2661
  hasPotentialSensitiveParam = true;
@@ -2641,9 +2667,9 @@ function redactQueryParameters(url, config) {
2641
2667
  }
2642
2668
  var resultParts = [];
2643
2669
  var anyParamRedacted = false;
2644
- if (queryString && queryString[_DYN_LENGTH$1 ]) {
2670
+ if (queryString && queryString[_DYN_LENGTH ]) {
2645
2671
  var pairs = queryString[_DYN_SPLIT ]("&");
2646
- for (var i = 0; i < pairs[_DYN_LENGTH$1 ]; i++) {
2672
+ for (var i = 0; i < pairs[_DYN_LENGTH ]; i++) {
2647
2673
  var pair = pairs[i];
2648
2674
  if (!pair) {
2649
2675
  continue;
@@ -2655,12 +2681,12 @@ function redactQueryParameters(url, config) {
2655
2681
  else {
2656
2682
  var paramName = pair[_DYN_SUBSTRING ](0, equalsIndex);
2657
2683
  var paramValue = pair[_DYN_SUBSTRING ](equalsIndex + 1);
2658
- if (paramValue === STR_EMPTY$1) {
2684
+ if (paramValue === STR_EMPTY) {
2659
2685
  resultParts[_DYN_PUSH ](pair);
2660
2686
  }
2661
2687
  else {
2662
2688
  var shouldRedact = false;
2663
- for (var j = 0; j < sensitiveParams[_DYN_LENGTH$1 ]; j++) {
2689
+ for (var j = 0; j < sensitiveParams[_DYN_LENGTH ]; j++) {
2664
2690
  if (paramName === sensitiveParams[j]) {
2665
2691
  shouldRedact = true;
2666
2692
  anyParamRedacted = true;
@@ -2687,7 +2713,8 @@ function fieldRedaction(input, config) {
2687
2713
  if (!input || !isString(input) || strIndexOf(input, " ") !== -1) {
2688
2714
  return input;
2689
2715
  }
2690
- var isRedactionDisabled = config && config.redactUrls === false;
2716
+ var option = config ? config.redactUrls : undefined;
2717
+ var isRedactionDisabled = option === false || option === 2 ;
2691
2718
  if (isRedactionDisabled) {
2692
2719
  return input;
2693
2720
  }
@@ -2696,6 +2723,12 @@ function fieldRedaction(input, config) {
2696
2723
  if (!hasCredentials && !hasQueryParams) {
2697
2724
  return input;
2698
2725
  }
2726
+ if (option === 5 ) {
2727
+ hasQueryParams = false;
2728
+ }
2729
+ if (option === 6 ) {
2730
+ hasCredentials = false;
2731
+ }
2699
2732
  try {
2700
2733
  var result = input;
2701
2734
  if (hasCredentials) {
@@ -2774,8 +2807,8 @@ function newId(maxLength) {
2774
2807
  var base64chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
2775
2808
  var number = random32() >>> 0;
2776
2809
  var chars = 0;
2777
- var result = STR_EMPTY$1;
2778
- while (result[_DYN_LENGTH$1 ] < maxLength) {
2810
+ var result = STR_EMPTY;
2811
+ while (result[_DYN_LENGTH ] < maxLength) {
2779
2812
  chars++;
2780
2813
  result += base64chars.charAt(number & 0x3F);
2781
2814
  number >>>= 6;
@@ -2787,7 +2820,7 @@ function newId(maxLength) {
2787
2820
  return result;
2788
2821
  }
2789
2822
 
2790
- var version = '3.4.0-nightlybeta3.2602-27';
2823
+ var version = '3.4.1';
2791
2824
  var instanceName = "." + newId(6);
2792
2825
  var _dataUid = 0;
2793
2826
  function _canAcceptData(target) {
@@ -2812,11 +2845,11 @@ function _getCache(data, target) {
2812
2845
  }
2813
2846
  function createUniqueNamespace(name, includeVersion) {
2814
2847
  if (includeVersion === void 0) { includeVersion = false; }
2815
- return normalizeJsName(name + (_dataUid++) + (includeVersion ? "." + version : STR_EMPTY$1) + instanceName);
2848
+ return normalizeJsName(name + (_dataUid++) + (includeVersion ? "." + version : STR_EMPTY) + instanceName);
2816
2849
  }
2817
2850
  function createElmNodeData(name) {
2818
2851
  var data = {
2819
- id: createUniqueNamespace("_aiData-" + (name || STR_EMPTY$1) + "." + version),
2852
+ id: createUniqueNamespace("_aiData-" + (name || STR_EMPTY) + "." + version),
2820
2853
  accept: function (target) {
2821
2854
  return _canAcceptData(target);
2822
2855
  },
@@ -2855,7 +2888,7 @@ function _getDefault(dynamicHandler, theConfig, cfgDefaults) {
2855
2888
  if (!isArray(fallbacks)) {
2856
2889
  fallbacks = [fallbacks];
2857
2890
  }
2858
- for (var lp = 0; lp < fallbacks[_DYN_LENGTH$1 ]; lp++) {
2891
+ for (var lp = 0; lp < fallbacks[_DYN_LENGTH ]; lp++) {
2859
2892
  var fallback = fallbacks[lp];
2860
2893
  var fbValue = theConfig[fallback];
2861
2894
  if (isDefaultValid(fbValue)) {
@@ -2890,7 +2923,7 @@ function _resolveDefaultValue(dynamicHandler, theConfig, cfgDefaults) {
2890
2923
  var newValue_1;
2891
2924
  if (isArray(theValue)) {
2892
2925
  newValue_1 = [];
2893
- newValue_1[_DYN_LENGTH$1 ] = theValue[_DYN_LENGTH$1 ];
2926
+ newValue_1[_DYN_LENGTH ] = theValue[_DYN_LENGTH ];
2894
2927
  }
2895
2928
  else if (isPlainObject(theValue)) {
2896
2929
  newValue_1 = {};
@@ -2981,7 +3014,7 @@ function _cfgDeepCopy(source) {
2981
3014
  var target_1;
2982
3015
  if (isArray(source)) {
2983
3016
  target_1 = [];
2984
- target_1[_DYN_LENGTH$1 ] = source[_DYN_LENGTH$1 ];
3017
+ target_1[_DYN_LENGTH ] = source[_DYN_LENGTH ];
2985
3018
  }
2986
3019
  else if (isPlainObject(source)) {
2987
3020
  target_1 = {};
@@ -3299,13 +3332,13 @@ function _createState(cfgHandler) {
3299
3332
  watcherFailures_1[_DYN_PUSH ](e);
3300
3333
  }
3301
3334
  }
3302
- if (watcherFailures_1[_DYN_LENGTH$1 ] > 0) {
3335
+ if (watcherFailures_1[_DYN_LENGTH ] > 0) {
3303
3336
  throwAggregationError("Watcher error(s): ", watcherFailures_1);
3304
3337
  }
3305
3338
  }
3306
3339
  }
3307
3340
  function _addWatcher(detail) {
3308
- if (detail && detail.h[_DYN_LENGTH$1 ] > 0) {
3341
+ if (detail && detail.h[_DYN_LENGTH ] > 0) {
3309
3342
  if (!_waitingHandlers) {
3310
3343
  _waitingHandlers = [];
3311
3344
  }
@@ -3315,7 +3348,7 @@ function _createState(cfgHandler) {
3315
3348
  _notifyWatchers();
3316
3349
  }, 0);
3317
3350
  }
3318
- for (var idx = 0; idx < detail.h[_DYN_LENGTH$1 ]; idx++) {
3351
+ for (var idx = 0; idx < detail.h[_DYN_LENGTH ]; idx++) {
3319
3352
  var handler = detail.h[idx];
3320
3353
  if (handler && arrIndexOf(_waitingHandlers, handler) === -1) {
3321
3354
  _waitingHandlers[_DYN_PUSH ](handler);
@@ -3354,7 +3387,7 @@ function _createAndUseHandler(state, configHandler) {
3354
3387
  configHandler = null;
3355
3388
  }
3356
3389
  };
3357
- objDefine(handler, "toJSON", { v: function () { return "WatcherHandler" + (handler.fn ? STR_EMPTY$1 : "[X]"); } });
3390
+ objDefine(handler, "toJSON", { v: function () { return "WatcherHandler" + (handler.fn ? STR_EMPTY : "[X]"); } });
3358
3391
  state.use(handler, configHandler);
3359
3392
  return handler;
3360
3393
  }
@@ -3498,7 +3531,7 @@ function getDebugExt(config) {
3498
3531
  function getDebugListener(config) {
3499
3532
  if (!_debugListener) {
3500
3533
  _debugListener = {};
3501
- for (var lp = 0; lp < listenerFuncs[_DYN_LENGTH$1 ]; lp++) {
3534
+ for (var lp = 0; lp < listenerFuncs[_DYN_LENGTH ]; lp++) {
3502
3535
  _debugListener[listenerFuncs[lp]] = _listenerProxyFunc(listenerFuncs[lp], config);
3503
3536
  }
3504
3537
  }
@@ -3524,9 +3557,9 @@ var _logFuncs = (_a$4 = {},
3524
3557
  _a$4);
3525
3558
  function _sanitizeDiagnosticText(text) {
3526
3559
  if (text) {
3527
- return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY$1) + "\"";
3560
+ return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY) + "\"";
3528
3561
  }
3529
- return STR_EMPTY$1;
3562
+ return STR_EMPTY;
3530
3563
  }
3531
3564
  function _logToConsole(func, message) {
3532
3565
  var theConsole = getConsole();
@@ -3548,12 +3581,12 @@ var _InternalLogMessage = /** @class */ (function () {
3548
3581
  _self[_DYN_MESSAGE ] =
3549
3582
  (isUserAct ? AiUserActionablePrefix : AiNonUserActionablePrefix) +
3550
3583
  msgId;
3551
- var strProps = STR_EMPTY$1;
3584
+ var strProps = STR_EMPTY;
3552
3585
  if (hasJSON()) {
3553
3586
  strProps = getJSON()[_DYN_STRINGIFY ](properties);
3554
3587
  }
3555
- var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : STR_EMPTY$1) +
3556
- (properties ? " props:" + _sanitizeDiagnosticText(strProps) : STR_EMPTY$1);
3588
+ var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : STR_EMPTY) +
3589
+ (properties ? " props:" + _sanitizeDiagnosticText(strProps) : STR_EMPTY);
3557
3590
  _self[_DYN_MESSAGE ] += diagnosticText;
3558
3591
  }
3559
3592
  _InternalLogMessage.dataType = "MessageData";
@@ -3561,7 +3594,7 @@ var _InternalLogMessage = /** @class */ (function () {
3561
3594
  }());
3562
3595
  /*#__NO_SIDE_EFFECTS__*/
3563
3596
  function safeGetLogger(core, config) {
3564
- return (core || {})[_DYN_LOGGER ] || new DiagnosticLogger(config);
3597
+ return (core || {})[_DYN_LOGGER ] || new DiagnosticLogger(config || (core || {})[_DYN_CONFIG ]);
3565
3598
  }
3566
3599
  var DiagnosticLogger = /** @class */ (function () {
3567
3600
  function DiagnosticLogger(config) {
@@ -3716,7 +3749,7 @@ function _parseListMember(value) {
3716
3749
  if (value) {
3717
3750
  TRACESTATE_KVP_REGEX.lastIndex = 0;
3718
3751
  var match = TRACESTATE_KVP_REGEX.exec(value);
3719
- if (match && match[_DYN_LENGTH$1 ] >= 7 && match[1] && match[6]) {
3752
+ if (match && match[_DYN_LENGTH ] >= 7 && match[1] && match[6]) {
3720
3753
  var type = match[3] ? 1 : 0 ;
3721
3754
  var multiTenant = null;
3722
3755
  if (type === 1 ) {
@@ -3746,7 +3779,7 @@ function _parseTraceStateList(value) {
3746
3779
  if (arrIndexOf(addedKeys_1, parts.key) === -1) {
3747
3780
  items[_DYN_PUSH ](parts);
3748
3781
  addedKeys_1[_DYN_PUSH ](parts.key);
3749
- if (items[_DYN_LENGTH$1 ] >= MAX_TRACE_STATE_MEMBERS) {
3782
+ if (items[_DYN_LENGTH ] >= MAX_TRACE_STATE_MEMBERS) {
3750
3783
  return -1;
3751
3784
  }
3752
3785
  }
@@ -3756,7 +3789,7 @@ function _parseTraceStateList(value) {
3756
3789
  return items;
3757
3790
  }
3758
3791
  function _indexOf(items, key) {
3759
- for (var lp = 0; lp < items[_DYN_LENGTH$1 ]; lp++) {
3792
+ for (var lp = 0; lp < items[_DYN_LENGTH ]; lp++) {
3760
3793
  if (items[lp].key === key) {
3761
3794
  return lp;
3762
3795
  }
@@ -3767,7 +3800,7 @@ function _keys(items, parent) {
3767
3800
  var keys = [];
3768
3801
  var delKeys = [];
3769
3802
  arrForEach(items, function (member) {
3770
- if (member[_DYN_VALUE$1 ] != null) {
3803
+ if (member[_DYN_VALUE ] != null) {
3771
3804
  keys[_DYN_PUSH ](member.key);
3772
3805
  }
3773
3806
  else {
@@ -3787,9 +3820,9 @@ function _keys(items, parent) {
3787
3820
  function _isEmpty(items, parent) {
3788
3821
  var delKeys;
3789
3822
  var isEmpty = true;
3790
- if (items && items[_DYN_LENGTH$1 ] > 0) {
3823
+ if (items && items[_DYN_LENGTH ] > 0) {
3791
3824
  arrForEach(items, function (member) {
3792
- if (member[_DYN_VALUE$1 ] != null) {
3825
+ if (member[_DYN_VALUE ] != null) {
3793
3826
  isEmpty = false;
3794
3827
  }
3795
3828
  else {
@@ -3802,7 +3835,7 @@ function _isEmpty(items, parent) {
3802
3835
  }
3803
3836
  if (isEmpty && parent) {
3804
3837
  isEmpty = parent.isEmpty;
3805
- if (!isEmpty && delKeys && delKeys[_DYN_LENGTH$1 ] > 0) {
3838
+ if (!isEmpty && delKeys && delKeys[_DYN_LENGTH ] > 0) {
3806
3839
  isEmpty = true;
3807
3840
  arrForEach(parent.keys, function (key) {
3808
3841
  if (arrIndexOf(delKeys, key) === -1) {
@@ -3820,13 +3853,13 @@ function isW3cTraceState(value) {
3820
3853
  }
3821
3854
  /*#__NO_SIDE_EFFECTS__*/
3822
3855
  function createW3cTraceState(value, parent) {
3823
- var cachedItems = safeGetDeferred(_parseTraceStateList, [], [value || STR_EMPTY$1]);
3856
+ var cachedItems = safeGetDeferred(_parseTraceStateList, [], [value || STR_EMPTY]);
3824
3857
  function _get(key) {
3825
3858
  var value;
3826
3859
  var theItems = cachedItems.v;
3827
3860
  var idx = _indexOf(theItems, key);
3828
3861
  if (idx !== -1) {
3829
- var itmValue = theItems[idx][_DYN_VALUE$1 ];
3862
+ var itmValue = theItems[idx][_DYN_VALUE ];
3830
3863
  if (itmValue != null) {
3831
3864
  value = itmValue;
3832
3865
  }
@@ -3864,7 +3897,7 @@ function createW3cTraceState(value, parent) {
3864
3897
  }
3865
3898
  function _headers(maxHeaders, maxKeys, maxLen) {
3866
3899
  var results = [];
3867
- var result = STR_EMPTY$1;
3900
+ var result = STR_EMPTY;
3868
3901
  var numKeys = 0;
3869
3902
  var len = 0;
3870
3903
  maxKeys = maxKeys || MAX_TRACE_STATE_MEMBERS;
@@ -3875,16 +3908,16 @@ function createW3cTraceState(value, parent) {
3875
3908
  if (!isNullOrUndefined(value) && isString(value)) {
3876
3909
  numKeys++;
3877
3910
  var val = key + "=" + value;
3878
- var valLen = val[_DYN_LENGTH$1 ];
3911
+ var valLen = val[_DYN_LENGTH ];
3879
3912
  if (len + 1 + valLen >= maxLen) {
3880
3913
  results[_DYN_PUSH ](result);
3881
- if (maxHeaders && results[_DYN_LENGTH$1 ] <= maxHeaders) {
3914
+ if (maxHeaders && results[_DYN_LENGTH ] <= maxHeaders) {
3882
3915
  return -1;
3883
3916
  }
3884
- result = STR_EMPTY$1;
3917
+ result = STR_EMPTY;
3885
3918
  len = 0;
3886
3919
  }
3887
- if (result[_DYN_LENGTH$1 ] > 0) {
3920
+ if (result[_DYN_LENGTH ] > 0) {
3888
3921
  result += ",";
3889
3922
  len++;
3890
3923
  }
@@ -3911,7 +3944,7 @@ function createW3cTraceState(value, parent) {
3911
3944
  };
3912
3945
  function _toString() {
3913
3946
  var headers = traceStateList.hdrs(1);
3914
- return headers[_DYN_LENGTH$1 ] > 0 ? headers[0] : STR_EMPTY$1;
3947
+ return headers[_DYN_LENGTH ] > 0 ? headers[0] : STR_EMPTY;
3915
3948
  }
3916
3949
  objDefineProps(traceStateList, {
3917
3950
  "keys": {
@@ -3937,12 +3970,12 @@ function findW3cTraceState() {
3937
3970
  var name = "tracestate";
3938
3971
  var traceState = null;
3939
3972
  var metaTags = findMetaTags(name);
3940
- if (metaTags[_DYN_LENGTH$1 ] > 0) {
3973
+ if (metaTags[_DYN_LENGTH ] > 0) {
3941
3974
  traceState = createW3cTraceState(metaTags[_DYN_JOIN ](","));
3942
3975
  }
3943
3976
  if (!traceState) {
3944
3977
  var serverTimings = findNamedServerTimings(name);
3945
- if (serverTimings[_DYN_LENGTH$1 ] > 0) {
3978
+ if (serverTimings[_DYN_LENGTH ] > 0) {
3946
3979
  traceState = createW3cTraceState(serverTimings[_DYN_JOIN ](","));
3947
3980
  }
3948
3981
  }
@@ -3955,7 +3988,7 @@ function newGuid() {
3955
3988
  }
3956
3989
  function generateW3CId() {
3957
3990
  var hexValues = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
3958
- var oct = STR_EMPTY$1, tmp;
3991
+ var oct = STR_EMPTY, tmp;
3959
3992
  for (var a = 0; a < 4; a++) {
3960
3993
  tmp = random32();
3961
3994
  oct +=
@@ -3979,7 +4012,7 @@ var INVALID_TRACE_ID = "00000000000000000000000000000000";
3979
4012
  var INVALID_SPAN_ID = "0000000000000000";
3980
4013
  var SAMPLED_FLAG = 0x01;
3981
4014
  function _isValid(value, len, invalidValue) {
3982
- if (value && value[_DYN_LENGTH$1 ] === len && value !== invalidValue) {
4015
+ if (value && value[_DYN_LENGTH ] === len && value !== invalidValue) {
3983
4016
  return !!value.match(/^[\da-f]*$/i);
3984
4017
  }
3985
4018
  return false;
@@ -3995,7 +4028,7 @@ function _formatFlags(value) {
3995
4028
  value = 0x01;
3996
4029
  }
3997
4030
  var result = value[_DYN_TO_STRING ](16);
3998
- while (result[_DYN_LENGTH$1 ] < 2) {
4031
+ while (result[_DYN_LENGTH ] < 2) {
3999
4032
  result = "0" + result;
4000
4033
  }
4001
4034
  return result;
@@ -4015,14 +4048,14 @@ function parseTraceParent(value, selectIdx) {
4015
4048
  return null;
4016
4049
  }
4017
4050
  if (isArray(value)) {
4018
- value = value[0] || STR_EMPTY$1;
4051
+ value = value[0] || STR_EMPTY;
4019
4052
  }
4020
- if (!value || !isString(value) || value[_DYN_LENGTH$1 ] > 8192) {
4053
+ if (!value || !isString(value) || value[_DYN_LENGTH ] > 8192) {
4021
4054
  return null;
4022
4055
  }
4023
4056
  if (strIndexOf(value, ",") !== -1) {
4024
4057
  var values = value[_DYN_SPLIT ](",");
4025
- value = values[selectIdx > 0 && values[_DYN_LENGTH$1 ] > selectIdx ? selectIdx : 0];
4058
+ value = values[selectIdx > 0 && values[_DYN_LENGTH ] > selectIdx ? selectIdx : 0];
4026
4059
  }
4027
4060
  TRACE_PARENT_REGEX.lastIndex = 0;
4028
4061
  var match = TRACE_PARENT_REGEX.exec(strTrim(value));
@@ -4033,9 +4066,9 @@ function parseTraceParent(value, selectIdx) {
4033
4066
  return null;
4034
4067
  }
4035
4068
  return {
4036
- version: (match[1] || STR_EMPTY$1)[_DYN_TO_LOWER_CASE ](),
4037
- traceId: (match[2] || STR_EMPTY$1)[_DYN_TO_LOWER_CASE ](),
4038
- spanId: (match[3] || STR_EMPTY$1)[_DYN_TO_LOWER_CASE ](),
4069
+ version: (match[1] || STR_EMPTY)[_DYN_TO_LOWER_CASE ](),
4070
+ traceId: (match[2] || STR_EMPTY)[_DYN_TO_LOWER_CASE ](),
4071
+ spanId: (match[3] || STR_EMPTY)[_DYN_TO_LOWER_CASE ](),
4039
4072
  traceFlags: parseInt(match[4], 16)
4040
4073
  };
4041
4074
  }
@@ -4050,7 +4083,7 @@ function isValidSpanId(value) {
4050
4083
  /*#__NO_SIDE_EFFECTS__*/
4051
4084
  function isValidTraceParent(value) {
4052
4085
  if (!value ||
4053
- !_isValid(value[_DYN_VERSION ], 2, INVALID_VERSION) ||
4086
+ !_isValid(value[STR_VERSION ], 2, INVALID_VERSION) ||
4054
4087
  !_isValid(value[_DYN_TRACE_ID ], 32, INVALID_TRACE_ID) ||
4055
4088
  !_isValid(value[_DYN_SPAN_ID ], 16, INVALID_SPAN_ID) ||
4056
4089
  !_isValid(_formatFlags(value[_DYN_TRACE_FLAGS ]), 2)) {
@@ -4072,13 +4105,13 @@ function formatTraceParent(value) {
4072
4105
  if (!_isValid(flags, 2)) {
4073
4106
  flags = "01";
4074
4107
  }
4075
- var version = value[_DYN_VERSION ] || DEFAULT_VERSION;
4108
+ var version = value[STR_VERSION ] || DEFAULT_VERSION;
4076
4109
  if (version !== "00" && version !== "ff") {
4077
4110
  version = DEFAULT_VERSION;
4078
4111
  }
4079
4112
  return "".concat(version.toLowerCase(), "-").concat(_formatValue(value.traceId, 32, INVALID_TRACE_ID).toLowerCase(), "-").concat(_formatValue(value.spanId, 16, INVALID_SPAN_ID).toLowerCase(), "-").concat(flags.toLowerCase());
4080
4113
  }
4081
- return STR_EMPTY$1;
4114
+ return STR_EMPTY;
4082
4115
  }
4083
4116
  function findW3cTraceParent(selectIdx) {
4084
4117
  var name = "traceparent";
@@ -4223,11 +4256,11 @@ function createCookieMgr(rootConfig, logger) {
4223
4256
  if (!isIE()) {
4224
4257
  values["max-age"] = "0";
4225
4258
  }
4226
- return _formatCookieValue(STR_EMPTY$1, values);
4259
+ return _formatCookieValue(STR_EMPTY, values);
4227
4260
  }
4228
4261
  function _formatSetCookieValue(value, maxAgeSec, domain, path) {
4229
4262
  var values = {};
4230
- var theValue = strTrim(value || STR_EMPTY$1);
4263
+ var theValue = strTrim(value || STR_EMPTY);
4231
4264
  var idx = strIndexOf(theValue, ";");
4232
4265
  if (idx !== -1) {
4233
4266
  theValue = strTrim(strLeft(value, idx));
@@ -4242,11 +4275,11 @@ function createCookieMgr(rootConfig, logger) {
4242
4275
  if (expireMs > 0) {
4243
4276
  var expiry = new Date();
4244
4277
  expiry.setTime(expireMs);
4245
- setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY$1, isTruthy);
4278
+ setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY, isTruthy);
4246
4279
  }
4247
4280
  }
4248
4281
  if (!_isIE) {
4249
- setValue(values, "max-age", STR_EMPTY$1 + maxAgeSec, null, isUndefined);
4282
+ setValue(values, "max-age", STR_EMPTY + maxAgeSec, null, isUndefined);
4250
4283
  }
4251
4284
  }
4252
4285
  var location = getLocation();
@@ -4264,7 +4297,7 @@ function createCookieMgr(rootConfig, logger) {
4264
4297
  }
4265
4298
  function _removePendingCookie(name) {
4266
4299
  if (_pendingCookies) {
4267
- for (var i = _pendingCookies[_DYN_LENGTH$1 ] - 1; i >= 0; i--) {
4300
+ for (var i = _pendingCookies[_DYN_LENGTH ] - 1; i >= 0; i--) {
4268
4301
  if (_pendingCookies[i].n === name) {
4269
4302
  _pendingCookies[_DYN_SPLICE ](i, 1);
4270
4303
  }
@@ -4344,14 +4377,14 @@ function createCookieMgr(rootConfig, logger) {
4344
4377
  return result;
4345
4378
  },
4346
4379
  get: function (name) {
4347
- var value = STR_EMPTY$1;
4380
+ var value = STR_EMPTY;
4348
4381
  var isIgnored = _isIgnoredCookie(cookieMgrConfig, name);
4349
4382
  if (!isIgnored) {
4350
4383
  if (_isMgrEnabled(cookieMgr)) {
4351
4384
  value = _getCookieFn(name);
4352
4385
  }
4353
4386
  else if (_pendingCookies) {
4354
- for (var i = _pendingCookies[_DYN_LENGTH$1 ] - 1; i >= 0; i--) {
4387
+ for (var i = _pendingCookies[_DYN_LENGTH ] - 1; i >= 0; i--) {
4355
4388
  var pendingData = _pendingCookies[i];
4356
4389
  if (pendingData.n === name) {
4357
4390
  if (pendingData.o === 0 ) {
@@ -4415,10 +4448,10 @@ function areCookiesSupported(logger) {
4415
4448
  }
4416
4449
  function _extractParts(theValue) {
4417
4450
  var values = {};
4418
- if (theValue && theValue[_DYN_LENGTH$1 ]) {
4451
+ if (theValue && theValue[_DYN_LENGTH ]) {
4419
4452
  var parts = strTrim(theValue)[_DYN_SPLIT ](";");
4420
4453
  arrForEach(parts, function (thePart) {
4421
- thePart = strTrim(thePart || STR_EMPTY$1);
4454
+ thePart = strTrim(thePart || STR_EMPTY);
4422
4455
  if (thePart) {
4423
4456
  var idx = strIndexOf(thePart, "=");
4424
4457
  if (idx === -1) {
@@ -4439,22 +4472,22 @@ function _formatDate(theDate, func) {
4439
4472
  return null;
4440
4473
  }
4441
4474
  function _formatCookieValue(value, values) {
4442
- var cookieValue = value || STR_EMPTY$1;
4475
+ var cookieValue = value || STR_EMPTY;
4443
4476
  objForEachKey(values, function (name, theValue) {
4444
- cookieValue += "; " + name + (!isNullOrUndefined(theValue) ? "=" + theValue : STR_EMPTY$1);
4477
+ cookieValue += "; " + name + (!isNullOrUndefined(theValue) ? "=" + theValue : STR_EMPTY);
4445
4478
  });
4446
4479
  return cookieValue;
4447
4480
  }
4448
4481
  function _getCookieValue(name) {
4449
- var cookieValue = STR_EMPTY$1;
4482
+ var cookieValue = STR_EMPTY;
4450
4483
  !_doc && _getDoc();
4451
4484
  if (_doc.v) {
4452
- var theCookie = _doc.v[strCookie] || STR_EMPTY$1;
4485
+ var theCookie = _doc.v[strCookie] || STR_EMPTY;
4453
4486
  if (_parsedCookieValue !== theCookie) {
4454
4487
  _cookieCache = _extractParts(theCookie);
4455
4488
  _parsedCookieValue = theCookie;
4456
4489
  }
4457
- cookieValue = strTrim(_cookieCache[name] || STR_EMPTY$1);
4490
+ cookieValue = strTrim(_cookieCache[name] || STR_EMPTY);
4458
4491
  }
4459
4492
  return cookieValue;
4460
4493
  }
@@ -4574,7 +4607,7 @@ var NotificationManager = /** @class */ (function () {
4574
4607
  }
4575
4608
  };
4576
4609
  _self[STR_OFFLINE_STORE ] = function (events) {
4577
- if (events && events[_DYN_LENGTH$1 ]) {
4610
+ if (events && events[_DYN_LENGTH ]) {
4578
4611
  _runListeners(_listeners, STR_OFFLINE_STORE, _asyncNotifications, function (listener) {
4579
4612
  listener[STR_OFFLINE_STORE ](events);
4580
4613
  });
@@ -4685,7 +4718,7 @@ var PerfEvent = /** @class */ (function () {
4685
4718
  var childTime = 0;
4686
4719
  var childEvts = _self[_DYN_GET_CTX ](PerfEvent[strChildrenContextKey]);
4687
4720
  if (isArray(childEvts)) {
4688
- for (var lp = 0; lp < childEvts[_DYN_LENGTH$1 ]; lp++) {
4721
+ for (var lp = 0; lp < childEvts[_DYN_LENGTH ]; lp++) {
4689
4722
  var childEvt = childEvts[lp];
4690
4723
  if (childEvt) {
4691
4724
  childTime += childEvt[_DYN_TIME ];
@@ -4791,12 +4824,12 @@ function _createOTelTraceState(traceState) {
4791
4824
  }
4792
4825
  var otTraceState = {
4793
4826
  set: function (key, value) {
4794
- var newState = createW3cTraceState(STR_EMPTY$1, traceState);
4827
+ var newState = createW3cTraceState(STR_EMPTY, traceState);
4795
4828
  newState.set(key, value);
4796
4829
  return _createOTelTraceState(newState);
4797
4830
  },
4798
4831
  unset: function (key) {
4799
- var newState = createW3cTraceState(STR_EMPTY$1, traceState);
4832
+ var newState = createW3cTraceState(STR_EMPTY, traceState);
4800
4833
  newState.del(key);
4801
4834
  return _createOTelTraceState(newState);
4802
4835
  },
@@ -4805,10 +4838,10 @@ function _createOTelTraceState(traceState) {
4805
4838
  },
4806
4839
  serialize: function () {
4807
4840
  var headers = traceState.hdrs(1);
4808
- if (headers[_DYN_LENGTH$1 ] > 0) {
4841
+ if (headers[_DYN_LENGTH ] > 0) {
4809
4842
  return headers[0];
4810
4843
  }
4811
- return STR_EMPTY$1;
4844
+ return STR_EMPTY;
4812
4845
  }
4813
4846
  };
4814
4847
  objDefine(otTraceState, _otelTraceState.v, { g: function () { return traceState; } });
@@ -4833,7 +4866,7 @@ function createOTelTraceState(value) {
4833
4866
  parentTraceState = value[_otelTraceState.v];
4834
4867
  }
4835
4868
  if (parentTraceState) {
4836
- traceState = createW3cTraceState(STR_EMPTY$1, parentTraceState);
4869
+ traceState = createW3cTraceState(STR_EMPTY, parentTraceState);
4837
4870
  }
4838
4871
  else {
4839
4872
  traceState = createW3cTraceState(value.serialize());
@@ -4843,7 +4876,7 @@ function createOTelTraceState(value) {
4843
4876
  traceState = value;
4844
4877
  }
4845
4878
  else {
4846
- traceState = createW3cTraceState(isString(value) ? value : STR_EMPTY$1);
4879
+ traceState = createW3cTraceState(isString(value) ? value : STR_EMPTY);
4847
4880
  }
4848
4881
  return _createOTelTraceState(traceState);
4849
4882
  }
@@ -4918,7 +4951,7 @@ function initializePlugins(processContext, extensions) {
4918
4951
  }
4919
4952
  arrForEach(initPlugins, function (thePlugin) {
4920
4953
  var core = processContext[STR_CORE ]();
4921
- thePlugin[_DYN_INITIALIZE$1 ](processContext.getCfg(), core, extensions, processContext[_DYN_GET_NEXT ]());
4954
+ thePlugin[_DYN_INITIALIZE ](processContext.getCfg(), core, extensions, processContext[_DYN_GET_NEXT ]());
4922
4955
  pluginState = _getPluginState(thePlugin);
4923
4956
  if (!thePlugin[STR_CORE] && !pluginState[STR_CORE]) {
4924
4957
  pluginState[STR_CORE] = core;
@@ -4963,10 +4996,10 @@ function createDistributedTraceContext(parent) {
4963
4996
  var parentCtx = null;
4964
4997
  var initCtx = null;
4965
4998
  var traceId = (parent && isValidTraceId(parent[_DYN_TRACE_ID ])) ? parent[_DYN_TRACE_ID ] : generateW3CId();
4966
- var spanId = (parent && isValidSpanId(parent[_DYN_SPAN_ID ])) ? parent[_DYN_SPAN_ID ] : STR_EMPTY$1;
4999
+ var spanId = (parent && isValidSpanId(parent[_DYN_SPAN_ID ])) ? parent[_DYN_SPAN_ID ] : STR_EMPTY;
4967
5000
  var traceFlags = parent ? parent[_DYN_TRACE_FLAGS ] : UNDEFINED_VALUE;
4968
5001
  var isRemote = parent ? parent.isRemote : false;
4969
- var pageName = STR_EMPTY$1;
5002
+ var pageName = STR_EMPTY;
4970
5003
  var traceState = null;
4971
5004
  if (parent) {
4972
5005
  if (isDistributedTraceContext(parent)) {
@@ -5037,15 +5070,15 @@ function createDistributedTraceContext(parent) {
5037
5070
  if (!parentCtx) {
5038
5071
  if (initCtx) {
5039
5072
  if (isOTelTraceState(initCtx[_DYN_TRACE_STATE ])) {
5040
- traceState = createW3cTraceState(initCtx[_DYN_TRACE_STATE ].serialize() || STR_EMPTY$1, parentCtx ? parentCtx[_DYN_TRACE_STATE ] : undefined);
5073
+ traceState = createW3cTraceState(initCtx[_DYN_TRACE_STATE ].serialize() || STR_EMPTY, parentCtx ? parentCtx[_DYN_TRACE_STATE ] : undefined);
5041
5074
  }
5042
5075
  else {
5043
- traceState = createW3cTraceState(STR_EMPTY$1, initCtx[_DYN_TRACE_STATE ] || (parentCtx ? parentCtx[_DYN_TRACE_STATE ] : undefined));
5076
+ traceState = createW3cTraceState(STR_EMPTY, initCtx[_DYN_TRACE_STATE ] || (parentCtx ? parentCtx[_DYN_TRACE_STATE ] : undefined));
5044
5077
  }
5045
5078
  }
5046
5079
  }
5047
5080
  if (!traceState) {
5048
- traceState = createW3cTraceState(STR_EMPTY$1, parentCtx ? parentCtx[_DYN_TRACE_STATE ] : undefined);
5081
+ traceState = createW3cTraceState(STR_EMPTY, parentCtx ? parentCtx[_DYN_TRACE_STATE ] : undefined);
5049
5082
  }
5050
5083
  }
5051
5084
  return traceState;
@@ -5189,10 +5222,10 @@ function _createInternalContext(telemetryChain, dynamicHandler, core, startAt) {
5189
5222
  _nextProxy = nextProxy ? nextProxy[_DYN_GET_NEXT ]() : null;
5190
5223
  if (!nextProxy) {
5191
5224
  var onComplete = _onComplete;
5192
- if (onComplete && onComplete[_DYN_LENGTH$1 ] > 0) {
5225
+ if (onComplete && onComplete[_DYN_LENGTH ] > 0) {
5193
5226
  arrForEach(onComplete, function (completeDetails) {
5194
5227
  try {
5195
- completeDetails.func.call(completeDetails.self, completeDetails.args);
5228
+ completeDetails.func[_DYN_CALL ](completeDetails.self, completeDetails.args);
5196
5229
  }
5197
5230
  catch (e) {
5198
5231
  _throwInternal(core[_DYN_LOGGER ], 2 , 73 , "Unexpected Exception during onComplete - " + dumpObj(e));
@@ -5329,7 +5362,7 @@ function createProcessTelemetryUpdateContext(telemetryChain, core, startAt) {
5329
5362
  function createTelemetryProxyChain(plugins, config, core, startAt) {
5330
5363
  var firstProxy = null;
5331
5364
  var add = startAt ? false : true;
5332
- if (isArray(plugins) && plugins[_DYN_LENGTH$1 ] > 0) {
5365
+ if (isArray(plugins) && plugins[_DYN_LENGTH ] > 0) {
5333
5366
  var lastProxy_1 = null;
5334
5367
  arrForEach(plugins, function (thePlugin) {
5335
5368
  if (!add && startAt === thePlugin) {
@@ -5402,7 +5435,7 @@ function createTelemetryPluginProxy(plugin, config, core) {
5402
5435
  doPerf(itemCtx[STR_CORE ](), function () { return identifier + ":" + name; }, function () {
5403
5436
  hasRunContext[chainId] = true;
5404
5437
  try {
5405
- var nextId = nextProxy ? nextProxy._id : STR_EMPTY$1;
5438
+ var nextId = nextProxy ? nextProxy._id : STR_EMPTY;
5406
5439
  if (nextId) {
5407
5440
  hasRunContext[nextId] = false;
5408
5441
  }
@@ -5521,20 +5554,20 @@ function createUnloadHookContainer() {
5521
5554
  _hooks = [];
5522
5555
  arrForEach(oldHooks, function (fn) {
5523
5556
  try {
5524
- (fn.rm || fn.remove).call(fn);
5557
+ (fn.rm || fn.remove)[_DYN_CALL ](fn);
5525
5558
  }
5526
5559
  catch (e) {
5527
5560
  _throwInternal(logger, 2 , 73 , "Unloading:" + dumpObj(e));
5528
5561
  }
5529
5562
  });
5530
- if (_maxHooks && oldHooks[_DYN_LENGTH$1 ] > _maxHooks) {
5563
+ if (_maxHooks && oldHooks[_DYN_LENGTH ] > _maxHooks) {
5531
5564
  _hookAddMonitor ? _hookAddMonitor("doUnload", oldHooks) : _throwInternal(null, 1 , 48 , "Max unload hooks exceeded. An excessive number of unload hooks has been detected.");
5532
5565
  }
5533
5566
  }
5534
5567
  function _addHook(hooks) {
5535
5568
  if (hooks) {
5536
5569
  arrAppend(_hooks, hooks);
5537
- if (_maxHooks && _hooks[_DYN_LENGTH$1 ] > _maxHooks) {
5570
+ if (_maxHooks && _hooks[_DYN_LENGTH ] > _maxHooks) {
5538
5571
  _hookAddMonitor ? _hookAddMonitor("Add", _hooks) : _throwInternal(null, 1 , 48 , "Max unload hooks exceeded. An excessive number of unload hooks has been detected.");
5539
5572
  }
5540
5573
  }
@@ -5560,7 +5593,7 @@ var BaseTelemetryPlugin = /** @class */ (function () {
5560
5593
  var _hookContainer;
5561
5594
  _initDefaults();
5562
5595
  dynamicProto(BaseTelemetryPlugin, _self, function (_self) {
5563
- _self[_DYN_INITIALIZE$1 ] = function (config, core, extensions, pluginChain) {
5596
+ _self[_DYN_INITIALIZE ] = function (config, core, extensions, pluginChain) {
5564
5597
  _setDefaults(config, core, pluginChain);
5565
5598
  _isinitialized = true;
5566
5599
  };
@@ -5704,7 +5737,7 @@ function _addInitializer(_initializers, id, telemetryInitializer) {
5704
5737
  }
5705
5738
  function _runInitializers(_initializers, item, logger) {
5706
5739
  var doNotSendItem = false;
5707
- var telemetryInitializersCount = _initializers[_DYN_LENGTH$1 ];
5740
+ var telemetryInitializersCount = _initializers[_DYN_LENGTH ];
5708
5741
  for (var i = 0; i < telemetryInitializersCount; ++i) {
5709
5742
  var telemetryInitializer = _initializers[i];
5710
5743
  if (telemetryInitializer) {
@@ -5824,7 +5857,7 @@ function _validateExtensions(logger, channelPriority, allExtensions) {
5824
5857
  var channels = [];
5825
5858
  var extPriorities = {};
5826
5859
  arrForEach(allExtensions, function (ext) {
5827
- if (isNullOrUndefined(ext) || isNullOrUndefined(ext[_DYN_INITIALIZE$1 ])) {
5860
+ if (isNullOrUndefined(ext) || isNullOrUndefined(ext[_DYN_INITIALIZE ])) {
5828
5861
  throwError(strValidationError);
5829
5862
  }
5830
5863
  var extPriority = ext[STR_PRIORITY ];
@@ -5953,7 +5986,7 @@ function _getParentTraceCtx(mode) {
5953
5986
  }
5954
5987
  return spanContext;
5955
5988
  }
5956
- var AppInsightsCore$1 = /** @class */ (function () {
5989
+ var AppInsightsCore = /** @class */ (function () {
5957
5990
  function AppInsightsCore() {
5958
5991
  var _configHandler;
5959
5992
  var _isInitialized;
@@ -6002,7 +6035,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6002
6035
  _self._setPendingStatus = function () {
6003
6036
  _activeStatus = 3 ;
6004
6037
  };
6005
- _self[_DYN_INITIALIZE$1 ] = function (config, extensions, logger, notificationManager) {
6038
+ _self[_DYN_INITIALIZE ] = function (config, extensions, logger, notificationManager) {
6006
6039
  if (_isUnloading) {
6007
6040
  throwError(strSdkUnloadingError);
6008
6041
  }
@@ -6033,10 +6066,10 @@ var AppInsightsCore$1 = /** @class */ (function () {
6033
6066
  _configExtensions[_DYN_PUSH ].apply(_configExtensions, __spreadArrayFn(__spreadArrayFn([], extensions, false), cfgExtensions));
6034
6067
  _channelConfig = config[STR_CHANNELS ];
6035
6068
  _initPluginChain(null);
6036
- if (!_channels || _channels[_DYN_LENGTH$1 ] === 0) {
6069
+ if (!_channels || _channels[_DYN_LENGTH ] === 0) {
6037
6070
  throwError("No " + STR_CHANNELS + " available");
6038
6071
  }
6039
- if (_channelConfig && _channelConfig[_DYN_LENGTH$1 ] > 1) {
6072
+ if (_channelConfig && _channelConfig[_DYN_LENGTH ] > 1) {
6040
6073
  var teeController = _self[_DYN_GET_PLUGIN ]("TeeChannelController");
6041
6074
  if (!teeController || !teeController.plugin) {
6042
6075
  _throwInternal(_logger, 1 , 28 , "TeeChannel required");
@@ -6058,7 +6091,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6058
6091
  }
6059
6092
  return objFreeze(controls);
6060
6093
  };
6061
- _self.track = function (telemetryItem) {
6094
+ _self[_DYN_TRACK ] = function (telemetryItem) {
6062
6095
  doPerf(_self[STR_GET_PERF_MGR ](), function () { return "AppInsightsCore:track"; }, function () {
6063
6096
  if (telemetryItem === null) {
6064
6097
  _notifyInvalidEvent(telemetryItem);
@@ -6068,14 +6101,14 @@ var AppInsightsCore$1 = /** @class */ (function () {
6068
6101
  _notifyInvalidEvent(telemetryItem);
6069
6102
  throwError("telemetry name required");
6070
6103
  }
6071
- telemetryItem.iKey = telemetryItem.iKey || _instrumentationKey;
6104
+ telemetryItem[_DYN_I_KEY ] = telemetryItem[_DYN_I_KEY ] || _instrumentationKey;
6072
6105
  telemetryItem[_DYN_TIME ] = telemetryItem[_DYN_TIME ] || toISOString(new Date());
6073
6106
  telemetryItem.ver = telemetryItem.ver || "4.0";
6074
6107
  if (!_isUnloading && _self[_DYN_IS_INITIALIZED ]() && _activeStatus === ActiveStatus.ACTIVE) {
6075
6108
  _createTelCtx()[_DYN_PROCESS_NEXT ](telemetryItem);
6076
6109
  }
6077
6110
  else if (_activeStatus !== ActiveStatus.INACTIVE) {
6078
- if (_eventQueue[_DYN_LENGTH$1 ] <= _initInMemoMaxSize) {
6111
+ if (_eventQueue[_DYN_LENGTH ] <= _initInMemoMaxSize) {
6079
6112
  _eventQueue[_DYN_PUSH ](telemetryItem);
6080
6113
  }
6081
6114
  }
@@ -6116,15 +6149,15 @@ var AppInsightsCore$1 = /** @class */ (function () {
6116
6149
  _perfManager = perfMgr;
6117
6150
  };
6118
6151
  _self.eventCnt = function () {
6119
- return _eventQueue[_DYN_LENGTH$1 ];
6152
+ return _eventQueue[_DYN_LENGTH ];
6120
6153
  };
6121
6154
  _self.releaseQueue = function () {
6122
- if (_isInitialized && _eventQueue[_DYN_LENGTH$1 ] > 0) {
6155
+ if (_isInitialized && _eventQueue[_DYN_LENGTH ] > 0) {
6123
6156
  var eventQueue = _eventQueue;
6124
6157
  _eventQueue = [];
6125
6158
  if (_activeStatus === 2 ) {
6126
6159
  arrForEach(eventQueue, function (event) {
6127
- event.iKey = event.iKey || _instrumentationKey;
6160
+ event[_DYN_I_KEY ] = event[_DYN_I_KEY ] || _instrumentationKey;
6128
6161
  _createTelCtx()[_DYN_PROCESS_NEXT ](event);
6129
6162
  });
6130
6163
  }
@@ -6133,7 +6166,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6133
6166
  }
6134
6167
  }
6135
6168
  };
6136
- _self.pollInternalLogs = function (eventName) {
6169
+ _self[_DYN_POLL_INTERNAL_LOGS ] = function (eventName) {
6137
6170
  _internalLogsEventName = eventName || null;
6138
6171
  _forceStopInternalLogPoller = false;
6139
6172
  _internalLogPoller && _internalLogPoller[_DYN_CANCEL ]();
@@ -6171,7 +6204,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6171
6204
  else {
6172
6205
  _endpoint = endpointUrl;
6173
6206
  }
6174
- if (promises[_DYN_LENGTH$1 ]) {
6207
+ if (promises[_DYN_LENGTH ]) {
6175
6208
  _waitForInitPromises(theConfig, promises);
6176
6209
  }
6177
6210
  else {
@@ -6199,13 +6232,13 @@ var AppInsightsCore$1 = /** @class */ (function () {
6199
6232
  return;
6200
6233
  }
6201
6234
  if (!response.rejected) {
6202
- var values = response[_DYN_VALUE$1 ];
6203
- if (values && values[_DYN_LENGTH$1 ]) {
6235
+ var values = response[_DYN_VALUE ];
6236
+ if (values && values[_DYN_LENGTH ]) {
6204
6237
  var ikeyRes = values[0];
6205
- _instrumentationKey = ikeyRes && ikeyRes[_DYN_VALUE$1 ];
6206
- if (values[_DYN_LENGTH$1 ] > 1) {
6238
+ _instrumentationKey = ikeyRes && ikeyRes[_DYN_VALUE ];
6239
+ if (values[_DYN_LENGTH ] > 1) {
6207
6240
  var endpointRes = values[1];
6208
- _endpoint = endpointRes && endpointRes[_DYN_VALUE$1 ];
6241
+ _endpoint = endpointRes && endpointRes[_DYN_VALUE ];
6209
6242
  }
6210
6243
  }
6211
6244
  if (_instrumentationKey) {
@@ -6236,12 +6269,12 @@ var AppInsightsCore$1 = /** @class */ (function () {
6236
6269
  function _releaseQueues() {
6237
6270
  if (_isInitialized) {
6238
6271
  _self.releaseQueue();
6239
- _self.pollInternalLogs();
6272
+ _self[_DYN_POLL_INTERNAL_LOGS ]();
6240
6273
  }
6241
6274
  }
6242
6275
  function _startLogPoller(alwaysStart) {
6243
6276
  if ((!_internalLogPoller || !_internalLogPoller[_DYN_ENABLED ]) && !_forceStopInternalLogPoller) {
6244
- var shouldStart = alwaysStart || (_logger && _logger.queue[_DYN_LENGTH$1 ] > 0);
6277
+ var shouldStart = alwaysStart || (_logger && _logger.queue[_DYN_LENGTH ] > 0);
6245
6278
  if (shouldStart) {
6246
6279
  if (!_internalLogPollerListening) {
6247
6280
  _internalLogPollerListening = true;
@@ -6434,10 +6467,10 @@ var AppInsightsCore$1 = /** @class */ (function () {
6434
6467
  theSpanContext = createDistributedTraceContext(currentCtx);
6435
6468
  var parentContext = span[_DYN_PARENT_SPAN_CONTEXT ];
6436
6469
  if (!parentContext) {
6437
- if (span.parentSpanId) {
6470
+ if (span[_DYN_PARENT_SPAN_ID ]) {
6438
6471
  parentContext = {
6439
6472
  traceId: otelSpanContext[_DYN_TRACE_ID ],
6440
- spanId: span.parentSpanId
6473
+ spanId: span[_DYN_PARENT_SPAN_ID ]
6441
6474
  };
6442
6475
  }
6443
6476
  }
@@ -6503,8 +6536,8 @@ var AppInsightsCore$1 = /** @class */ (function () {
6503
6536
  var _addPluginVersions = function (plugins) {
6504
6537
  if (plugins) {
6505
6538
  arrForEach(plugins, function (plugin) {
6506
- if (plugin[_DYN_IDENTIFIER ] && plugin[_DYN_VERSION ] && !thePlugins[plugin.identifier]) {
6507
- var ver = plugin[_DYN_IDENTIFIER ] + "=" + plugin[_DYN_VERSION ];
6539
+ if (plugin[_DYN_IDENTIFIER ] && plugin[STR_VERSION ] && !thePlugins[plugin.identifier]) {
6540
+ var ver = plugin[_DYN_IDENTIFIER ] + "=" + plugin[STR_VERSION ];
6508
6541
  _pluginVersionStringArr[_DYN_PUSH ](ver);
6509
6542
  thePlugins[plugin.identifier] = plugin;
6510
6543
  }
@@ -6545,7 +6578,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6545
6578
  }
6546
6579
  _pluginVersionString = _pluginVersionStringArr[_DYN_JOIN ](";");
6547
6580
  }
6548
- return _pluginVersionString || STR_EMPTY$1;
6581
+ return _pluginVersionString || STR_EMPTY;
6549
6582
  }
6550
6583
  });
6551
6584
  objDefine(_self, "logger", {
@@ -6567,7 +6600,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6567
6600
  _self[_DYN_LOGGER ] = new DiagnosticLogger(_configHandler.cfg);
6568
6601
  _extensions = [];
6569
6602
  var cfgExtensions = _self[_DYN_CONFIG ][STR_EXTENSIONS ] || [];
6570
- cfgExtensions.splice(0, cfgExtensions[_DYN_LENGTH$1 ]);
6603
+ cfgExtensions.splice(0, cfgExtensions[_DYN_LENGTH ]);
6571
6604
  arrAppend(cfgExtensions, _extensions);
6572
6605
  _telemetryInitializerPlugin = new TelemetryInitializerPlugin();
6573
6606
  _serverOTelCtx = null;
@@ -6618,10 +6651,10 @@ var AppInsightsCore$1 = /** @class */ (function () {
6618
6651
  var allExtensions = arrAppend(sortPlugins(theExtensions[STR_CORE ]), _channels);
6619
6652
  _extensions = objFreeze(allExtensions);
6620
6653
  var cfgExtensions = _self[_DYN_CONFIG ][STR_EXTENSIONS ] || [];
6621
- cfgExtensions.splice(0, cfgExtensions[_DYN_LENGTH$1 ]);
6654
+ cfgExtensions.splice(0, cfgExtensions[_DYN_LENGTH ]);
6622
6655
  arrAppend(cfgExtensions, _extensions);
6623
6656
  var rootCtx = _createTelCtx();
6624
- if (_channels && _channels[_DYN_LENGTH$1 ] > 0) {
6657
+ if (_channels && _channels[_DYN_LENGTH ] > 0) {
6625
6658
  initializePlugins(rootCtx[_DYN_CREATE_NEW ](_channels), allExtensions);
6626
6659
  }
6627
6660
  initializePlugins(rootCtx, allExtensions);
@@ -6642,7 +6675,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6642
6675
  channelHosts[_DYN_PUSH ](ext);
6643
6676
  }
6644
6677
  });
6645
- if (!thePlugin && channelHosts[_DYN_LENGTH$1 ] > 0) {
6678
+ if (!thePlugin && channelHosts[_DYN_LENGTH ] > 0) {
6646
6679
  arrForEach(channelHosts, function (host) {
6647
6680
  thePlugin = host.getChannel(pluginIdentifier);
6648
6681
  if (!thePlugin) {
@@ -6692,7 +6725,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6692
6725
  return _pluginChain;
6693
6726
  }
6694
6727
  function _removePlugins(thePlugins, unloadState, removeComplete) {
6695
- if (thePlugins && thePlugins[_DYN_LENGTH$1 ] > 0) {
6728
+ if (thePlugins && thePlugins[_DYN_LENGTH ] > 0) {
6696
6729
  var unloadChain = createTelemetryProxyChain(thePlugins, _configHandler.cfg, _self);
6697
6730
  var unloadCtx = createProcessTelemetryUnloadContext(unloadChain, _self);
6698
6731
  unloadCtx[_DYN_ON_COMPLETE ](function () {
@@ -6737,7 +6770,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6737
6770
  function _flushInternalLogs() {
6738
6771
  if (_logger && _logger.queue) {
6739
6772
  var queue = _logger.queue.slice(0);
6740
- _logger.queue[_DYN_LENGTH$1 ] = 0;
6773
+ _logger.queue[_DYN_LENGTH ] = 0;
6741
6774
  arrForEach(queue, function (logMessage) {
6742
6775
  var item = {
6743
6776
  name: _internalLogsEventName ? _internalLogsEventName : "InternalMessageId: " + logMessage[_DYN_MESSAGE_ID ],
@@ -6746,7 +6779,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6746
6779
  baseType: _InternalLogMessage.dataType,
6747
6780
  baseData: { message: logMessage[_DYN_MESSAGE ] }
6748
6781
  };
6749
- _self.track(item);
6782
+ _self[_DYN_TRACK ](item);
6750
6783
  });
6751
6784
  }
6752
6785
  }
@@ -6764,7 +6797,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6764
6797
  callBack = null;
6765
6798
  }
6766
6799
  }
6767
- if (_channels && _channels[_DYN_LENGTH$1 ] > 0) {
6800
+ if (_channels && _channels[_DYN_LENGTH ] > 0) {
6768
6801
  var flushCtx = _createTelCtx()[_DYN_CREATE_NEW ](_channels);
6769
6802
  flushCtx.iterate(function (plugin) {
6770
6803
  if (plugin[_DYN_FLUSH ]) {
@@ -6851,10 +6884,10 @@ var AppInsightsCore$1 = /** @class */ (function () {
6851
6884
 
6852
6885
  function parseResponse(response, diagLog) {
6853
6886
  try {
6854
- if (response && response !== STR_EMPTY$1) {
6887
+ if (response && response !== STR_EMPTY) {
6855
6888
  var result = getJSON().parse(response);
6856
6889
  if (result && result[_DYN_ITEMS_RECEIVED ] && result[_DYN_ITEMS_RECEIVED ] >= result.itemsAccepted &&
6857
- result.itemsReceived - result.itemsAccepted === result.errors[_DYN_LENGTH$1 ]) {
6890
+ result.itemsReceived - result.itemsAccepted === result.errors[_DYN_LENGTH ]) {
6858
6891
  return result;
6859
6892
  }
6860
6893
  }
@@ -6890,7 +6923,7 @@ var SenderPostManager = /** @class */ (function () {
6890
6923
  dynamicProto(SenderPostManager, this, function (_self, _base) {
6891
6924
  var _sendCredentials = true;
6892
6925
  _initDefaults();
6893
- _self[_DYN_INITIALIZE$1 ] = function (config, diagLog) {
6926
+ _self[_DYN_INITIALIZE ] = function (config, diagLog) {
6894
6927
  _diagLog = diagLog;
6895
6928
  if (_isInitialized) {
6896
6929
  _throwInternal(_diagLog, 1 , 28 , "Sender is already initialized");
@@ -6934,7 +6967,7 @@ var SenderPostManager = /** @class */ (function () {
6934
6967
  return _syncFetchPayload;
6935
6968
  };
6936
6969
  _self.getSenderInst = function (transports, sync) {
6937
- if (transports && transports[_DYN_LENGTH$1 ]) {
6970
+ if (transports && transports[_DYN_LENGTH ]) {
6938
6971
  return _getSenderInterface(transports, sync);
6939
6972
  }
6940
6973
  return null;
@@ -6969,10 +7002,10 @@ var SenderPostManager = /** @class */ (function () {
6969
7002
  var callbackCalled_1 = false;
6970
7003
  doAwaitResponse(reader_1.read(), function processChunk(response) {
6971
7004
  if (!callbackCalled_1 && !response.rejected) {
6972
- var result = response[_DYN_VALUE$1 ];
7005
+ var result = response[_DYN_VALUE ];
6973
7006
  if (!result.done) {
6974
- chunks_1[_DYN_PUSH ](result[_DYN_VALUE$1 ]);
6975
- totalLength_1 += result.value[_DYN_LENGTH$1 ];
7007
+ chunks_1[_DYN_PUSH ](result[_DYN_VALUE ]);
7008
+ totalLength_1 += result.value[_DYN_LENGTH ];
6976
7009
  return doAwaitResponse(reader_1.read(), processChunk);
6977
7010
  }
6978
7011
  var combined = new Uint8Array(totalLength_1);
@@ -6980,11 +7013,11 @@ var SenderPostManager = /** @class */ (function () {
6980
7013
  for (var _i = 0, chunks_2 = chunks_1; _i < chunks_2.length; _i++) {
6981
7014
  var chunk = chunks_2[_i];
6982
7015
  combined.set(chunk, offset);
6983
- offset += chunk[_DYN_LENGTH$1 ];
7016
+ offset += chunk[_DYN_LENGTH ];
6984
7017
  }
6985
7018
  payload[_DYN_DATA ] = combined;
6986
7019
  payload[_DYN_HEADERS ]["Content-Encoding"] = "gzip";
6987
- payload._chunkCount = chunks_1[_DYN_LENGTH$1 ];
7020
+ payload._chunkCount = chunks_1[_DYN_LENGTH ];
6988
7021
  }
6989
7022
  if (!callbackCalled_1) {
6990
7023
  callbackCalled_1 = true;
@@ -7012,7 +7045,7 @@ var SenderPostManager = /** @class */ (function () {
7012
7045
  var transportType = 0 ;
7013
7046
  var sendPostFunc = null;
7014
7047
  var lp = 0;
7015
- while (sendPostFunc == null && lp < transports[_DYN_LENGTH$1 ]) {
7048
+ while (sendPostFunc == null && lp < transports[_DYN_LENGTH ]) {
7016
7049
  transportType = transports[lp];
7017
7050
  if (!_disableXhr && transportType === 1 ) {
7018
7051
  if (useXDomainRequest()) {
@@ -7053,7 +7086,7 @@ var SenderPostManager = /** @class */ (function () {
7053
7086
  _onNoPayloadUrl(oncomplete);
7054
7087
  return true;
7055
7088
  }
7056
- url = payload[_DYN_URL_STRING ] + (_addNoResponse ? _noResponseQs : STR_EMPTY$1);
7089
+ url = payload[_DYN_URL_STRING ] + (_addNoResponse ? _noResponseQs : STR_EMPTY);
7057
7090
  var data = payload[_DYN_DATA ];
7058
7091
  var plainTextBatch = _isOneDs ? data : new Blob([data], { type: "text/plain;charset=UTF-8" });
7059
7092
  var queued = nav.sendBeacon(url, plainTextBatch);
@@ -7074,13 +7107,13 @@ var SenderPostManager = /** @class */ (function () {
7074
7107
  }
7075
7108
  }
7076
7109
  else {
7077
- _onSuccess(STR_EMPTY$1, oncomplete);
7110
+ _onSuccess(STR_EMPTY, oncomplete);
7078
7111
  }
7079
7112
  }
7080
7113
  }
7081
7114
  catch (e) {
7082
7115
  _isOneDs && _warnToConsole(_diagLog, "Failed to send telemetry using sendBeacon API. Ex:" + dumpObj(e));
7083
- _doOnComplete(oncomplete, _isOneDs ? 0 : 400, {}, STR_EMPTY$1);
7116
+ _doOnComplete(oncomplete, _isOneDs ? 0 : 400, {}, STR_EMPTY);
7084
7117
  }
7085
7118
  return;
7086
7119
  }
@@ -7104,7 +7137,7 @@ var SenderPostManager = /** @class */ (function () {
7104
7137
  resolveFunc && resolveFunc(false);
7105
7138
  return;
7106
7139
  }
7107
- var xhr = openXhr$1(STR_POST_METHOD, endPointUrl, _sendCredentials, true, sync, payload[_DYN_TIMEOUT ]);
7140
+ var xhr = openXhr(STR_POST_METHOD, endPointUrl, _sendCredentials, true, sync, payload[_DYN_TIMEOUT ]);
7108
7141
  if (!_isOneDs) {
7109
7142
  xhr.setRequestHeader("Content-type", "application/json");
7110
7143
  }
@@ -7136,11 +7169,11 @@ var SenderPostManager = /** @class */ (function () {
7136
7169
  }
7137
7170
  }
7138
7171
  xhr.onerror = function (event) {
7139
- _doOnComplete(oncomplete, _isOneDs ? xhr[_DYN_STATUS ] : 400, _getAllResponseHeaders(xhr, _isOneDs), _isOneDs ? STR_EMPTY$1 : formatErrorMessageXhr(xhr));
7172
+ _doOnComplete(oncomplete, _isOneDs ? xhr[_DYN_STATUS ] : 400, _getAllResponseHeaders(xhr, _isOneDs), _isOneDs ? STR_EMPTY : formatErrorMessageXhr(xhr));
7140
7173
  rejectFunc && rejectFunc(event);
7141
7174
  };
7142
7175
  xhr.ontimeout = function () {
7143
- _doOnComplete(oncomplete, _isOneDs ? xhr[_DYN_STATUS ] : 500, _getAllResponseHeaders(xhr, _isOneDs), _isOneDs ? STR_EMPTY$1 : formatErrorMessageXhr(xhr));
7176
+ _doOnComplete(oncomplete, _isOneDs ? xhr[_DYN_STATUS ] : 500, _getAllResponseHeaders(xhr, _isOneDs), _isOneDs ? STR_EMPTY : formatErrorMessageXhr(xhr));
7144
7177
  resolveFunc && resolveFunc(false);
7145
7178
  };
7146
7179
  xhr.send(payload[_DYN_DATA ]);
@@ -7155,7 +7188,7 @@ var SenderPostManager = /** @class */ (function () {
7155
7188
  var resolveFunc;
7156
7189
  var rejectFunc;
7157
7190
  var requestHeaders = new Headers();
7158
- var batchLength = batch[_DYN_LENGTH$1 ];
7191
+ var batchLength = batch[_DYN_LENGTH ];
7159
7192
  var ignoreResponse = false;
7160
7193
  var responseHandled = false;
7161
7194
  var headers = payload[_DYN_HEADERS ] || {};
@@ -7166,7 +7199,7 @@ var SenderPostManager = /** @class */ (function () {
7166
7199
  _a[DisabledPropertyName] = true
7167
7200
  ,
7168
7201
  _a);
7169
- if (payload.headers && objKeys(payload.headers)[_DYN_LENGTH$1 ] > 0) {
7202
+ if (payload.headers && objKeys(payload.headers)[_DYN_LENGTH ] > 0) {
7170
7203
  arrForEach(objKeys(headers), function (headerName) {
7171
7204
  requestHeaders.append(headerName, headers[headerName]);
7172
7205
  });
@@ -7212,20 +7245,20 @@ var SenderPostManager = /** @class */ (function () {
7212
7245
  }
7213
7246
  function _handleError(res, statusCode) {
7214
7247
  if (statusCode) {
7215
- _doOnComplete(oncomplete, _isOneDs ? 0 : statusCode, {}, _isOneDs ? STR_EMPTY$1 : res);
7248
+ _doOnComplete(oncomplete, _isOneDs ? 0 : statusCode, {}, _isOneDs ? STR_EMPTY : res);
7216
7249
  }
7217
7250
  else {
7218
- _doOnComplete(oncomplete, _isOneDs ? 0 : 400, {}, _isOneDs ? STR_EMPTY$1 : res);
7251
+ _doOnComplete(oncomplete, _isOneDs ? 0 : 400, {}, _isOneDs ? STR_EMPTY : res);
7219
7252
  }
7220
7253
  }
7221
7254
  function _onFetchComplete(response, payload, value) {
7222
7255
  var status = response[_DYN_STATUS ];
7223
7256
  var onCompleteFunc = _onCompleteFuncs.fetchOnComplete;
7224
7257
  if (onCompleteFunc && isFunction(onCompleteFunc)) {
7225
- onCompleteFunc(response, oncomplete, value || STR_EMPTY$1, payload);
7258
+ onCompleteFunc(response, oncomplete, value || STR_EMPTY, payload);
7226
7259
  }
7227
7260
  else {
7228
- _doOnComplete(oncomplete, status, {}, value || STR_EMPTY$1);
7261
+ _doOnComplete(oncomplete, status, {}, value || STR_EMPTY);
7229
7262
  }
7230
7263
  }
7231
7264
  try {
@@ -7237,7 +7270,7 @@ var SenderPostManager = /** @class */ (function () {
7237
7270
  if (!responseHandled) {
7238
7271
  responseHandled = true;
7239
7272
  if (!result.rejected) {
7240
- var response_1 = result[_DYN_VALUE$1 ];
7273
+ var response_1 = result[_DYN_VALUE ];
7241
7274
  try {
7242
7275
  if (!_isOneDs && !response_1.ok) {
7243
7276
  if (response_1[_DYN_STATUS ]) {
@@ -7250,12 +7283,12 @@ var SenderPostManager = /** @class */ (function () {
7250
7283
  }
7251
7284
  else {
7252
7285
  if (_isOneDs && !response_1.body) {
7253
- _onFetchComplete(response_1, null, STR_EMPTY$1);
7286
+ _onFetchComplete(response_1, null, STR_EMPTY);
7254
7287
  resolveFunc && resolveFunc(true);
7255
7288
  }
7256
7289
  else {
7257
7290
  doAwaitResponse(response_1.text(), function (resp) {
7258
- _onFetchComplete(response_1, payload, resp[_DYN_VALUE$1 ]);
7291
+ _onFetchComplete(response_1, payload, resp[_DYN_VALUE ]);
7259
7292
  resolveFunc && resolveFunc(true);
7260
7293
  });
7261
7294
  }
@@ -7315,13 +7348,13 @@ var SenderPostManager = /** @class */ (function () {
7315
7348
  }
7316
7349
  };
7317
7350
  xdr.onerror = function () {
7318
- _doOnComplete(oncomplete, 400, {}, _isOneDs ? STR_EMPTY$1 : formatErrorMessageXdr(xdr));
7351
+ _doOnComplete(oncomplete, 400, {}, _isOneDs ? STR_EMPTY : formatErrorMessageXdr(xdr));
7319
7352
  };
7320
7353
  xdr.ontimeout = function () {
7321
7354
  _doOnComplete(oncomplete, 500, {});
7322
7355
  };
7323
7356
  xdr.onprogress = _noopVoid;
7324
- var hostingProtocol = _window && _window.location && _window.location.protocol || STR_EMPTY$1;
7357
+ var hostingProtocol = _window && _window.location && _window.location.protocol || STR_EMPTY;
7325
7358
  var endpoint = payload[_DYN_URL_STRING ];
7326
7359
  if (!endpoint) {
7327
7360
  _onNoPayloadUrl(oncomplete);
@@ -7333,7 +7366,7 @@ var SenderPostManager = /** @class */ (function () {
7333
7366
  _onError(msg, oncomplete);
7334
7367
  return;
7335
7368
  }
7336
- var endpointUrl = _isOneDs ? endpoint : endpoint[_DYN_REPLACE ](/^(https?:)/, STR_EMPTY$1);
7369
+ var endpointUrl = _isOneDs ? endpoint : endpoint[_DYN_REPLACE ](/^(https?:)/, STR_EMPTY);
7337
7370
  xdr.open(STR_POST_METHOD, endpointUrl);
7338
7371
  if (payload[_DYN_TIMEOUT ]) {
7339
7372
  xdr[_DYN_TIMEOUT ] = payload[_DYN_TIMEOUT ];
@@ -7407,16 +7440,16 @@ var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
7407
7440
  /*#__NO_SIDE_EFFECTS__*/
7408
7441
  function _normalizeNamespace(name) {
7409
7442
  if (name && name[_DYN_REPLACE ]) {
7410
- return name[_DYN_REPLACE ](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g, STR_EMPTY$1);
7443
+ return name[_DYN_REPLACE ](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g, STR_EMPTY);
7411
7444
  }
7412
7445
  return name;
7413
7446
  }
7414
7447
  /*#__NO_SIDE_EFFECTS__*/
7415
7448
  function _getEvtNamespace(eventName, evtNamespace) {
7416
7449
  if (evtNamespace) {
7417
- var theNamespace_1 = STR_EMPTY$1;
7450
+ var theNamespace_1 = STR_EMPTY;
7418
7451
  if (isArray(evtNamespace)) {
7419
- theNamespace_1 = STR_EMPTY$1;
7452
+ theNamespace_1 = STR_EMPTY;
7420
7453
  arrForEach(evtNamespace, function (name) {
7421
7454
  name = _normalizeNamespace(name);
7422
7455
  if (name) {
@@ -7434,13 +7467,13 @@ function _getEvtNamespace(eventName, evtNamespace) {
7434
7467
  if (theNamespace_1[0] !== ".") {
7435
7468
  theNamespace_1 = "." + theNamespace_1;
7436
7469
  }
7437
- eventName = (eventName || STR_EMPTY$1) + theNamespace_1;
7470
+ eventName = (eventName || STR_EMPTY) + theNamespace_1;
7438
7471
  }
7439
7472
  }
7440
- var parsedEvent = (eventNamespace.exec(eventName || STR_EMPTY$1) || []);
7473
+ var parsedEvent = (eventNamespace.exec(eventName || STR_EMPTY) || []);
7441
7474
  return {
7442
7475
  type: parsedEvent[1],
7443
- ns: ((parsedEvent[2] || STR_EMPTY$1).replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, STR_EMPTY$1).split(".").sort())[_DYN_JOIN ](".")
7476
+ ns: ((parsedEvent[2] || STR_EMPTY).replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, STR_EMPTY).split(".").sort())[_DYN_JOIN ](".")
7444
7477
  };
7445
7478
  }
7446
7479
  /*#__NO_SIDE_EFFECTS__*/
@@ -7453,8 +7486,8 @@ function __getRegisteredEvents(target, eventName, evtNamespace) {
7453
7486
  if (!evtName[_DYN_TYPE ] || evtName[_DYN_TYPE ] === value[_DYN_EVT_NAME ][_DYN_TYPE ]) {
7454
7487
  if (!evtName.ns || evtName.ns === evtName.ns) {
7455
7488
  theEvents[_DYN_PUSH ]({
7456
- name: value.evtName[_DYN_TYPE ] + (value[_DYN_EVT_NAME ].ns ? "." + value[_DYN_EVT_NAME ].ns : STR_EMPTY$1),
7457
- handler: value.handler
7489
+ name: value.evtName[_DYN_TYPE ] + (value[_DYN_EVT_NAME ].ns ? "." + value[_DYN_EVT_NAME ].ns : STR_EMPTY),
7490
+ handler: value[_DYN_HANDLER ]
7458
7491
  });
7459
7492
  }
7460
7493
  }
@@ -7497,13 +7530,13 @@ function _doAttach(obj, evtName, handlerRef, useCapture) {
7497
7530
  return result;
7498
7531
  }
7499
7532
  function _doUnregister(target, events, evtName, unRegFn) {
7500
- var idx = events[_DYN_LENGTH$1 ];
7533
+ var idx = events[_DYN_LENGTH ];
7501
7534
  while (idx--) {
7502
7535
  var theEvent = events[idx];
7503
7536
  if (theEvent) {
7504
7537
  if (!evtName.ns || evtName.ns === theEvent[_DYN_EVT_NAME ].ns) {
7505
7538
  if (!unRegFn || unRegFn(theEvent)) {
7506
- _doDetach(target, theEvent[_DYN_EVT_NAME ], theEvent.handler, theEvent.capture);
7539
+ _doDetach(target, theEvent.evtName, theEvent[_DYN_HANDLER ], theEvent.capture);
7507
7540
  events[_DYN_SPLICE ](idx, 1);
7508
7541
  }
7509
7542
  }
@@ -7519,7 +7552,7 @@ function _unregisterEvents(target, evtName, unRegFn) {
7519
7552
  objForEachKey(eventCache, function (evtType, events) {
7520
7553
  _doUnregister(target, events, evtName, unRegFn);
7521
7554
  });
7522
- if (objKeys(eventCache)[_DYN_LENGTH$1 ] === 0) {
7555
+ if (objKeys(eventCache)[_DYN_LENGTH ] === 0) {
7523
7556
  _getElmNodeData().kill(target, strEvents);
7524
7557
  }
7525
7558
  }
@@ -7570,7 +7603,7 @@ function eventOff(target, eventName, handlerRef, evtNamespace, useCapture) {
7570
7603
  var evtName_1 = _getEvtNamespace(eventName, evtNamespace);
7571
7604
  var found_1 = false;
7572
7605
  _unregisterEvents(target, evtName_1, function (regEvent) {
7573
- if ((evtName_1.ns && !handlerRef) || regEvent.handler === handlerRef) {
7606
+ if ((evtName_1.ns && !handlerRef) || regEvent[_DYN_HANDLER ] === handlerRef) {
7574
7607
  found_1 = true;
7575
7608
  return true;
7576
7609
  }
@@ -7618,7 +7651,7 @@ function removeEventHandler(eventName, callback, evtNamespace) {
7618
7651
  }
7619
7652
  function _addEventListeners(events, listener, excludeEvents, evtNamespace) {
7620
7653
  var added = false;
7621
- if (listener && events && events[_DYN_LENGTH$1 ] > 0) {
7654
+ if (listener && events && events[_DYN_LENGTH ] > 0) {
7622
7655
  arrForEach(events, function (name) {
7623
7656
  if (name) {
7624
7657
  if (!excludeEvents || arrIndexOf(excludeEvents, name) === -1) {
@@ -7633,7 +7666,7 @@ function addEventListeners(events, listener, excludeEvents, evtNamespace) {
7633
7666
  var added = false;
7634
7667
  if (listener && events && isArray(events)) {
7635
7668
  added = _addEventListeners(events, listener, excludeEvents, evtNamespace);
7636
- if (!added && excludeEvents && excludeEvents[_DYN_LENGTH$1 ] > 0) {
7669
+ if (!added && excludeEvents && excludeEvents[_DYN_LENGTH ] > 0) {
7637
7670
  added = _addEventListeners(events, listener, null, evtNamespace);
7638
7671
  }
7639
7672
  }
@@ -7878,7 +7911,7 @@ function _iterator(target, cb, otelCfg, parentAttribs, inclDeleted) {
7878
7911
  var visitedKeys = parentAttribs ? [] : UNDEFINED_VALUE;
7879
7912
  var inheritState;
7880
7913
  var inheritContainerIter;
7881
- var current = _getStackEntry(target, STR_EMPTY$1);
7914
+ var current = _getStackEntry(target, STR_EMPTY);
7882
7915
  var inheritContainer;
7883
7916
  var inheritAttribs;
7884
7917
  var ctx = {
@@ -7894,7 +7927,7 @@ function _iterator(target, cb, otelCfg, parentAttribs, inclDeleted) {
7894
7927
  }
7895
7928
  }
7896
7929
  function _moveNext() {
7897
- var thePrefix = STR_EMPTY$1;
7930
+ var thePrefix = STR_EMPTY;
7898
7931
  var theKey;
7899
7932
  var theNode;
7900
7933
  var theSource = 0 ;
@@ -7933,7 +7966,7 @@ function _iterator(target, cb, otelCfg, parentAttribs, inclDeleted) {
7933
7966
  if (!theNode && inheritAttribs) {
7934
7967
  if (!inheritState) {
7935
7968
  inheritState = {
7936
- p: STR_EMPTY$1,
7969
+ p: STR_EMPTY,
7937
7970
  n: UNDEFINED_VALUE,
7938
7971
  k: objKeys(inheritAttribs),
7939
7972
  i: -1
@@ -8070,7 +8103,7 @@ function createAttributeContainer(otelCfg, name, inheritAttrib, attribLimits) {
8070
8103
  var inheritAttribObj = null;
8071
8104
  var listeners = null;
8072
8105
  var parentListenerHook = null;
8073
- var containerName = name || STR_EMPTY$1;
8106
+ var containerName = name || STR_EMPTY;
8074
8107
  if (attribLimits) {
8075
8108
  maxAttribs = attribLimits[_DYN_ATTRIBUTE_COUNT_LIMI5 ] || maxAttribs;
8076
8109
  }
@@ -8083,7 +8116,7 @@ function createAttributeContainer(otelCfg, name, inheritAttrib, attribLimits) {
8083
8116
  inheritAttrib = null;
8084
8117
  var inheritSrc = inheritAttribObj || inheritContainer;
8085
8118
  var container = {
8086
- id: (containerName || STR_EMPTY$1) + "." + (_containerId++),
8119
+ id: (containerName || STR_EMPTY) + "." + (_containerId++),
8087
8120
  size: 0,
8088
8121
  droppedAttributes: 0,
8089
8122
  attributes: UNDEFINED_VALUE,
@@ -8458,33 +8491,61 @@ function getHttpHost(container) {
8458
8491
  }
8459
8492
  }
8460
8493
 
8461
- var STR_EMPTY = "";
8462
- var STR_DEFAULT_ENDPOINT_URL = "https://browser.events.data.microsoft.com/OneCollector/1.0/";
8463
- var STR_VERSION = "version";
8464
- var STR_PROPERTIES = "properties";
8465
- var STR_NOT_SPECIFIED = "not_specified";
8494
+ var EventPersistence = ( /* @__PURE__ */createEnumStyle({
8495
+ Normal: 1 ,
8496
+ Critical: 2
8497
+ }));
8466
8498
 
8467
- var _DYN_INITIALIZE = "initialize";
8468
- var _DYN_INDEX_OF = "indexOf";
8469
- var _DYN_TIMINGS = "timings";
8470
- var _DYN_BASE_DATA = "baseData";
8471
- var _DYN_POLL_INTERNAL_LOGS = "pollInternalLogs";
8472
- var _DYN_KIND = "kind";
8473
- var _DYN_VALUE = "value";
8474
- var _DYN_LENGTH = "length";
8475
- var _DYN_PROCESS_TELEMETRY_ST0 = "processTelemetryStart";
8476
- var _DYN_HANDLE_FIELD = "handleField";
8477
- var _DYN_RM_SANITIZER = "rmSanitizer";
8478
- var _DYN_RM_FIELD_SANITIZER = "rmFieldSanitizer";
8479
- var _DYN_CAN_HANDLE = "canHandle";
8499
+ var ValueKind = ( /* @__PURE__ */createEnumStyle({
8500
+ NotSet: 0 ,
8501
+ Pii_DistinguishedName: 1 ,
8502
+ Pii_GenericData: 2 ,
8503
+ Pii_IPV4Address: 3 ,
8504
+ Pii_IPv6Address: 4 ,
8505
+ Pii_MailSubject: 5 ,
8506
+ Pii_PhoneNumber: 6 ,
8507
+ Pii_QueryString: 7 ,
8508
+ Pii_SipAddress: 8 ,
8509
+ Pii_SmtpAddress: 9 ,
8510
+ Pii_Identity: 10 ,
8511
+ Pii_Uri: 11 ,
8512
+ Pii_Fqdn: 12 ,
8513
+ Pii_IPV4AddressLegacy: 13 ,
8514
+ Pii_IPv6ScrubLastHextets: 14 ,
8515
+ Pii_DropValue: 15 ,
8516
+ CustomerContent_GenericContent: 32
8517
+ }));
8518
+ var EventLatency = ( /* @__PURE__ */createEnumStyle({
8519
+ Normal: 1 ,
8520
+ CostDeferred: 2 ,
8521
+ RealTime: 3 ,
8522
+ Immediate: 4
8523
+ }));
8524
+ var EventPropertyType = ( /* @__PURE__ */createEnumStyle({
8525
+ Unspecified: 0 ,
8526
+ String: 1 ,
8527
+ Int32: 2 ,
8528
+ UInt32: 3 ,
8529
+ Int64: 4 ,
8530
+ UInt64: 5 ,
8531
+ Double: 6 ,
8532
+ Bool: 7 ,
8533
+ Guid: 8 ,
8534
+ DateTime: 9
8535
+ }));
8536
+ var TraceLevel = ( /* @__PURE__ */createEnumStyle({
8537
+ NONE: 0 ,
8538
+ ERROR: 1 ,
8539
+ WARNING: 2 ,
8540
+ INFORMATION: 3
8541
+ }));
8480
8542
 
8481
8543
  var _a;
8482
- var Version = '4.4.0-nightlybeta3.2602-27';
8483
- var FullVersionString = "1DS-Web-JS-" + Version;
8484
- var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
8485
- var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
8486
- var strWithCredentials = "withCredentials";
8487
- var strTimeout = "timeout";
8544
+ var ExtVersion = '4.4.1';
8545
+ var ExtFullVersionString = "1DS-Web-JS-" + ExtVersion;
8546
+ var Version = ExtVersion;
8547
+ var FullVersionString = ExtFullVersionString;
8548
+ var ObjHasOwnProperty = Object.prototype[_DYN_HAS_OWN_PROPERTY ];
8488
8549
  var _fieldTypeEventPropMap = (_a = {},
8489
8550
  _a[0 ] = 0 ,
8490
8551
  _a[2 ] = 6 ,
@@ -8494,9 +8555,9 @@ var _fieldTypeEventPropMap = (_a = {},
8494
8555
  _a[4096 | 1 ] = 1 ,
8495
8556
  _a[4096 | 3 ] = 7 ,
8496
8557
  _a);
8497
- var uInt8ArraySupported = null;
8498
- var isDocumentObjectAvailable = hasDocument();
8499
- var isWindowObjectAvailable = hasWindow();
8558
+ var uInt8ArraySupported = ( null);
8559
+ var isDocumentObjectAvailable = ( /* #__PURE__*/hasDocument());
8560
+ var isWindowObjectAvailable = ( /* #__PURE__*/hasWindow());
8500
8561
  function isValueAssigned(value) {
8501
8562
  return !(value === STR_EMPTY || isNullOrUndefined(value));
8502
8563
  }
@@ -8529,8 +8590,8 @@ function sanitizeProperty(name, property, stringifyObjects) {
8529
8590
  if (propType === "string" || propType === "number" || propType === "boolean" || isArray(property)) {
8530
8591
  property = { value: property };
8531
8592
  }
8532
- else if (propType === "object" && !ObjHasOwnProperty.call(property, "value")) {
8533
- property = { value: stringifyObjects ? JSON.stringify(property) : property };
8593
+ else if (propType === "object" && !ObjHasOwnProperty[_DYN_CALL ](property, "value")) {
8594
+ property = { value: stringifyObjects ? JSON[_DYN_STRINGIFY ](property) : property };
8534
8595
  }
8535
8596
  else if (isNullOrUndefined(property[_DYN_VALUE ])
8536
8597
  || property[_DYN_VALUE ] === STR_EMPTY || (!isString(property[_DYN_VALUE ])
@@ -8543,10 +8604,10 @@ function sanitizeProperty(name, property, stringifyObjects) {
8543
8604
  return null;
8544
8605
  }
8545
8606
  if (!isNullOrUndefined(property[_DYN_KIND ])) {
8546
- if (isArray(property.value) || !isValueKind(property[_DYN_KIND ])) {
8607
+ if (isArray(property[_DYN_VALUE ]) || !isValueKind(property[_DYN_KIND ])) {
8547
8608
  return null;
8548
8609
  }
8549
- property[_DYN_VALUE ] = property[_DYN_VALUE ].toString();
8610
+ property[_DYN_VALUE ] = property[_DYN_VALUE ][_DYN_TO_STRING ]();
8550
8611
  }
8551
8612
  return property;
8552
8613
  }
@@ -8600,7 +8661,7 @@ function createGuid(style) {
8600
8661
  theGuid = "(" + theGuid + ")";
8601
8662
  }
8602
8663
  else if (style === "N" ) {
8603
- theGuid = theGuid.replace(/-/g, STR_EMPTY);
8664
+ theGuid = theGuid[_DYN_REPLACE ](/-/g, STR_EMPTY);
8604
8665
  }
8605
8666
  return theGuid;
8606
8667
  }
@@ -8655,8 +8716,8 @@ function isDataType(value) {
8655
8716
  }
8656
8717
  function isSafariOrFirefox() {
8657
8718
  var nav = getNavigator();
8658
- if (!isUndefined(nav) && nav.userAgent) {
8659
- var ua = nav.userAgent.toLowerCase();
8719
+ if (!isUndefined(nav) && nav[_DYN_USER_AGENT ]) {
8720
+ var ua = nav.userAgent[_DYN_TO_LOWER_CASE ]();
8660
8721
  if ((ua[_DYN_INDEX_OF ]("safari") >= 0 || ua[_DYN_INDEX_OF ]("firefox") >= 0) && ua[_DYN_INDEX_OF ]("chrome") < 0) {
8661
8722
  return true;
8662
8723
  }
@@ -8669,8 +8730,8 @@ function isArrayValid(value) {
8669
8730
  function setProcessTelemetryTimings(event, identifier) {
8670
8731
  var evt = event;
8671
8732
  evt[_DYN_TIMINGS ] = evt[_DYN_TIMINGS ] || {};
8672
- evt[_DYN_TIMINGS ][_DYN_PROCESS_TELEMETRY_ST0 ] = evt[_DYN_TIMINGS ][_DYN_PROCESS_TELEMETRY_ST0 ] || {};
8673
- evt[_DYN_TIMINGS ][_DYN_PROCESS_TELEMETRY_ST0 ][identifier] = getTime();
8733
+ evt[_DYN_TIMINGS ][_DYN_PROCESS_TELEMETRY_ST6 ] = evt[_DYN_TIMINGS ][_DYN_PROCESS_TELEMETRY_ST6 ] || {};
8734
+ evt[_DYN_TIMINGS ][_DYN_PROCESS_TELEMETRY_ST6 ][identifier] = getTime();
8674
8735
  }
8675
8736
  function getFieldValueType(value) {
8676
8737
  var theType = 0 ;
@@ -8685,7 +8746,7 @@ function getFieldValueType(value) {
8685
8746
  else if (objType === "boolean") {
8686
8747
  theType = 3 ;
8687
8748
  }
8688
- else if (objType === strShimObject) {
8749
+ else if (objType === "object") {
8689
8750
  theType = 4 ;
8690
8751
  if (isArray(value)) {
8691
8752
  theType = 4096 ;
@@ -8693,7 +8754,7 @@ function getFieldValueType(value) {
8693
8754
  theType |= getFieldValueType(value[0]);
8694
8755
  }
8695
8756
  }
8696
- else if (ObjHasOwnProperty.call(value, "value")) {
8757
+ else if (ObjHasOwnProperty[_DYN_CALL ](value, "value")) {
8697
8758
  theType = 8192 | getFieldValueType(value[_DYN_VALUE ]);
8698
8759
  }
8699
8760
  }
@@ -8703,32 +8764,6 @@ function getFieldValueType(value) {
8703
8764
  function isChromium() {
8704
8765
  return !!getInst("chrome");
8705
8766
  }
8706
- function openXhr(method, urlString, withCredentials, disabled, isSync, timeout) {
8707
- if (disabled === void 0) { disabled = false; }
8708
- if (isSync === void 0) { isSync = false; }
8709
- function _wrapSetXhrProp(xhr, prop, value) {
8710
- try {
8711
- xhr[prop] = value;
8712
- }
8713
- catch (e) {
8714
- }
8715
- }
8716
- var xhr = new XMLHttpRequest();
8717
- if (disabled) {
8718
- _wrapSetXhrProp(xhr, strDisabledPropertyName, disabled);
8719
- }
8720
- if (withCredentials) {
8721
- _wrapSetXhrProp(xhr, strWithCredentials, withCredentials);
8722
- }
8723
- xhr.open(method, urlString, !isSync);
8724
- if (withCredentials) {
8725
- _wrapSetXhrProp(xhr, strWithCredentials, withCredentials);
8726
- }
8727
- if (!isSync && timeout) {
8728
- _wrapSetXhrProp(xhr, strTimeout, timeout);
8729
- }
8730
- return xhr;
8731
- }
8732
8767
  function isGreaterThanZero(value) {
8733
8768
  return value > 0;
8734
8769
  }
@@ -8744,18 +8779,18 @@ function _chkPropOverride(propertyStorageOverride) {
8744
8779
  }
8745
8780
  return true;
8746
8781
  }
8747
- var AppInsightsCore = /** @class */ (function (_super) {
8748
- __extendsFn(AppInsightsCore, _super);
8749
- function AppInsightsCore() {
8782
+ var AppInsightsExtCore = /** @class */ (function (_super) {
8783
+ __extendsFn(AppInsightsExtCore, _super);
8784
+ function AppInsightsExtCore() {
8750
8785
  var _this = _super.call(this) || this;
8751
- dynamicProto(AppInsightsCore, _this, function (_self, _base) {
8786
+ dynamicProto(AppInsightsExtCore, _this, function (_self, _base) {
8752
8787
  _self[_DYN_INITIALIZE ] = function (config, extensions, logger, notificationManager) {
8753
8788
  doPerf(_self, function () { return "AppInsightsCore.initialize"; }, function () {
8754
8789
  try {
8755
- _base[_DYN_INITIALIZE ](createDynamicConfig(config, defaultConfig, logger || _self.logger, false).cfg, extensions, logger, notificationManager);
8790
+ _base.initialize(createDynamicConfig(config, defaultConfig, logger || _self[_DYN_LOGGER ], false).cfg, extensions, logger, notificationManager);
8756
8791
  }
8757
8792
  catch (e) {
8758
- var logger_1 = _self.logger;
8793
+ var logger_1 = _self[_DYN_LOGGER ];
8759
8794
  var message = dumpObj(e);
8760
8795
  if (message[_DYN_INDEX_OF ]("channels") !== -1) {
8761
8796
  message += "\n - Channels must be provided through config.channels only!";
@@ -8764,7 +8799,7 @@ var AppInsightsCore = /** @class */ (function (_super) {
8764
8799
  }
8765
8800
  }, function () { return ({ config: config, extensions: extensions, logger: logger, notificationManager: notificationManager }); });
8766
8801
  };
8767
- _self.track = function (item) {
8802
+ _self[_DYN_TRACK ] = function (item) {
8768
8803
  doPerf(_self, function () { return "AppInsightsCore.track"; }, function () {
8769
8804
  var telemetryItem = item;
8770
8805
  if (telemetryItem) {
@@ -8775,13 +8810,13 @@ var AppInsightsCore = /** @class */ (function (_super) {
8775
8810
  }
8776
8811
  var itemExt = telemetryItem.ext = telemetryItem.ext || {};
8777
8812
  itemExt.sdk = itemExt.sdk || {};
8778
- itemExt.sdk.ver = FullVersionString;
8813
+ itemExt.sdk.ver = ExtFullVersionString;
8779
8814
  var baseData = telemetryItem[_DYN_BASE_DATA ] = telemetryItem[_DYN_BASE_DATA ] || {};
8780
- baseData[STR_PROPERTIES ] = baseData[STR_PROPERTIES ] || {};
8781
- var itemProperties = baseData[STR_PROPERTIES ];
8815
+ baseData[_DYN_PROPERTIES ] = baseData[_DYN_PROPERTIES ] || {};
8816
+ var itemProperties = baseData[_DYN_PROPERTIES ];
8782
8817
  itemProperties[STR_VERSION] = itemProperties[STR_VERSION] || _self.pluginVersionString || STR_EMPTY;
8783
8818
  }
8784
- _base.track(telemetryItem);
8819
+ _base[_DYN_TRACK ](telemetryItem);
8785
8820
  }, function () { return ({ item: item }); }, !(item.sync));
8786
8821
  };
8787
8822
  _self[_DYN_POLL_INTERNAL_LOGS ] = function (eventName) {
@@ -8790,57 +8825,9 @@ var AppInsightsCore = /** @class */ (function (_super) {
8790
8825
  });
8791
8826
  return _this;
8792
8827
  }
8793
- AppInsightsCore.__ieDyn=1;
8794
- return AppInsightsCore;
8795
- }(AppInsightsCore$1));
8796
-
8797
- var ValueKind = ( /* @__PURE__ */createEnumStyle({
8798
- NotSet: 0 ,
8799
- Pii_DistinguishedName: 1 ,
8800
- Pii_GenericData: 2 ,
8801
- Pii_IPV4Address: 3 ,
8802
- Pii_IPv6Address: 4 ,
8803
- Pii_MailSubject: 5 ,
8804
- Pii_PhoneNumber: 6 ,
8805
- Pii_QueryString: 7 ,
8806
- Pii_SipAddress: 8 ,
8807
- Pii_SmtpAddress: 9 ,
8808
- Pii_Identity: 10 ,
8809
- Pii_Uri: 11 ,
8810
- Pii_Fqdn: 12 ,
8811
- Pii_IPV4AddressLegacy: 13 ,
8812
- Pii_IPv6ScrubLastHextets: 14 ,
8813
- Pii_DropValue: 15 ,
8814
- CustomerContent_GenericContent: 32
8815
- }));
8816
- var EventLatency = ( /* @__PURE__ */createEnumStyle({
8817
- Normal: 1 ,
8818
- CostDeferred: 2 ,
8819
- RealTime: 3 ,
8820
- Immediate: 4
8821
- }));
8822
- var EventPropertyType = ( /* @__PURE__ */createEnumStyle({
8823
- Unspecified: 0 ,
8824
- String: 1 ,
8825
- Int32: 2 ,
8826
- UInt32: 3 ,
8827
- Int64: 4 ,
8828
- UInt64: 5 ,
8829
- Double: 6 ,
8830
- Bool: 7 ,
8831
- Guid: 8 ,
8832
- DateTime: 9
8833
- }));
8834
- var EventPersistence = ( /* @__PURE__ */createEnumStyle({
8835
- Normal: 1 ,
8836
- Critical: 2
8837
- }));
8838
- var TraceLevel = ( /* @__PURE__ */createEnumStyle({
8839
- NONE: 0 ,
8840
- ERROR: 1 ,
8841
- WARNING: 2 ,
8842
- INFORMATION: 3
8843
- }));
8828
+ AppInsightsExtCore.__ieDyn=1;
8829
+ return AppInsightsExtCore;
8830
+ }(AppInsightsCore));
8844
8831
 
8845
8832
  function _isSpecialName(name) {
8846
8833
  return (name == "__proto__" || name == "constructor" || name == "prototype");
@@ -8852,7 +8839,7 @@ var ValueSanitizer = /** @class */ (function () {
8852
8839
  var _sanitizers = [];
8853
8840
  var _fieldSanitizers = [];
8854
8841
  if (fieldSanitizerProvider) {
8855
- _fieldSanitizers.push(fieldSanitizerProvider);
8842
+ _fieldSanitizers[_DYN_PUSH ](fieldSanitizerProvider);
8856
8843
  }
8857
8844
  function _getFieldSanitizer(path, name) {
8858
8845
  var result;
@@ -8911,7 +8898,7 @@ var ValueSanitizer = /** @class */ (function () {
8911
8898
  _self.addSanitizer = function (newSanitizer) {
8912
8899
  if (newSanitizer) {
8913
8900
  if (!arrIncludes(_sanitizers, newSanitizer)) {
8914
- _sanitizers.push(newSanitizer);
8901
+ _sanitizers[_DYN_PUSH ](newSanitizer);
8915
8902
  }
8916
8903
  _sanitizerMap = {};
8917
8904
  }
@@ -8919,7 +8906,7 @@ var ValueSanitizer = /** @class */ (function () {
8919
8906
  _self.addFieldSanitizer = function (fieldSanitizer) {
8920
8907
  if (fieldSanitizer) {
8921
8908
  if (!arrIncludes(_fieldSanitizers, fieldSanitizer)) {
8922
- _fieldSanitizers.push(fieldSanitizer);
8909
+ _fieldSanitizers[_DYN_PUSH ](fieldSanitizer);
8923
8910
  }
8924
8911
  _sanitizerMap = {};
8925
8912
  }
@@ -8928,7 +8915,7 @@ var ValueSanitizer = /** @class */ (function () {
8928
8915
  if (theSanitizer) {
8929
8916
  var idx = arrIndexOf(_sanitizers, theSanitizer);
8930
8917
  if (idx !== -1) {
8931
- _sanitizers.splice(idx, 1);
8918
+ _sanitizers[_DYN_SPLICE ](idx, 1);
8932
8919
  _sanitizerMap = {};
8933
8920
  }
8934
8921
  arrForEach(_sanitizers, function (sanitizer) {
@@ -8940,7 +8927,7 @@ var ValueSanitizer = /** @class */ (function () {
8940
8927
  if (theFieldSanitizer) {
8941
8928
  var idx = arrIndexOf(_fieldSanitizers, theFieldSanitizer);
8942
8929
  if (idx !== -1) {
8943
- _fieldSanitizers.splice(idx, 1);
8930
+ _fieldSanitizers[_DYN_SPLICE ](idx, 1);
8944
8931
  _sanitizerMap = {};
8945
8932
  }
8946
8933
  arrForEach(_sanitizers, function (sanitizer) {
@@ -8961,7 +8948,7 @@ var ValueSanitizer = /** @class */ (function () {
8961
8948
  if (!mapValue[_DYN_CAN_HANDLE ]) {
8962
8949
  return null;
8963
8950
  }
8964
- if (mapValue.handler) {
8951
+ if (mapValue[_DYN_HANDLER ]) {
8965
8952
  return mapValue.handler[_DYN_VALUE ](path, name, value, stringifyObjects);
8966
8953
  }
8967
8954
  if (!isString(name) || isNullOrUndefined(value) || value === STR_EMPTY) {
@@ -8987,7 +8974,7 @@ var ValueSanitizer = /** @class */ (function () {
8987
8974
  property = _convertToProperty(path, name, value);
8988
8975
  }
8989
8976
  else if (fieldType === 4 ) {
8990
- property = _convertToProperty(path, name, !!stringifyObjects ? JSON.stringify(value) : value);
8977
+ property = _convertToProperty(path, name, !!stringifyObjects ? JSON[_DYN_STRINGIFY ](value) : value);
8991
8978
  }
8992
8979
  if (property) {
8993
8980
  return _handleProperty(mapValue, path, name, fieldType, property, stringifyObjects);
@@ -9010,14 +8997,14 @@ var ValueSanitizer = /** @class */ (function () {
9010
8997
  return _handleProperty(mapValue, path, name, fieldType, property, stringifyObjects);
9011
8998
  };
9012
8999
  function _handleProperty(mapValue, path, name, fieldType, property, stringifyObjects) {
9013
- if (mapValue.handler) {
9014
- return mapValue.handler.property(path, name, property, stringifyObjects);
9000
+ if (mapValue[_DYN_HANDLER ]) {
9001
+ return mapValue[_DYN_HANDLER ].property(path, name, property, stringifyObjects);
9015
9002
  }
9016
9003
  if (!isNullOrUndefined(property[_DYN_KIND ])) {
9017
9004
  if ((fieldType & 4096 ) === 4096 || !isValueKind(property[_DYN_KIND ])) {
9018
9005
  return null;
9019
9006
  }
9020
- property[_DYN_VALUE ] = property[_DYN_VALUE ].toString();
9007
+ property[_DYN_VALUE ] = property[_DYN_VALUE ][_DYN_TO_STRING ]();
9021
9008
  }
9022
9009
  return _callFieldSanitizer(mapValue.fieldHandler, path, name, fieldType, property);
9023
9010
  }
@@ -9054,7 +9041,7 @@ var ValueSanitizer = /** @class */ (function () {
9054
9041
  prop: property,
9055
9042
  sanitizer: _self
9056
9043
  };
9057
- property = sanitizer.call(_self, details);
9044
+ property = sanitizer[_DYN_CALL ](_self, details);
9058
9045
  }
9059
9046
  }
9060
9047
  }
@@ -9178,7 +9165,7 @@ function _isIgnorePartCKey(key) {
9178
9165
  }
9179
9166
  function _populatePartC(item, container) {
9180
9167
  if (container) {
9181
- var partC_1 = item.data = (item.data || {});
9168
+ var partC_1 = item[_DYN_DATA ] = (item[_DYN_DATA ] || {});
9182
9169
  _applyValue(partC_1, "httpHost", getHttpHost(container), false);
9183
9170
  _applyValue(partC_1, "httpScheme", getHttpScheme(container), false);
9184
9171
  _applyValue(partC_1, "httpClientIp", getHttpClientIp(container), false);
@@ -9193,8 +9180,8 @@ function _populatePartC(item, container) {
9193
9180
  _applyValue(partC_1, "userAgentSyntheticType", syntheticSource, false);
9194
9181
  }
9195
9182
  var nav = getNavigator();
9196
- if (nav && nav.userAgent) {
9197
- _applyValue(partC_1, "userAgentOriginal", nav.userAgent, false);
9183
+ if (nav && nav[_DYN_USER_AGENT ]) {
9184
+ _applyValue(partC_1, "userAgentOriginal", nav[_DYN_USER_AGENT ], false);
9198
9185
  }
9199
9186
  _applyValue(partC_1, "azureClientRequestId", container.get("azure.client.id") || container.get("az.client_request_id"), false);
9200
9187
  _applyValue(partC_1, "azureServiceRequestId", container.get("azure.service.request.id") || container.get("az.service_request_id"), false);
@@ -9249,25 +9236,25 @@ function _populateRpcDependencyProperties(otelSpanTelemetry, container, rpcSyste
9249
9236
  }
9250
9237
  }
9251
9238
  function _createOTelSpanTelemetryItem(core, span) {
9252
- var container = span.attribContainer || createAttributeContainer(span.attributes);
9253
- var spanCtx = span.spanContext();
9254
- var statusCode = span.status ? span.status.code : 0 ;
9239
+ var container = span.attribContainer || createAttributeContainer(span[_DYN_ATTRIBUTES ]);
9240
+ var spanCtx = span[_DYN_SPAN_CONTEXT ]();
9241
+ var statusCode = span[_DYN_STATUS ] ? span[_DYN_STATUS ].code : 0 ;
9255
9242
  var spanTelemetry = {
9256
- name: span.name,
9243
+ name: span[_DYN_NAME ],
9257
9244
  kind: span[_DYN_KIND ],
9258
- startTime: toISOString(new Date(hrTimeToMilliseconds(span.startTime))),
9245
+ startTime: toISOString(new Date(hrTimeToMilliseconds(span[_DYN_START_TIME ]))),
9259
9246
  success: statusCode !== 0 ? statusCode !== 2 : (Number(getHttpStatusCode(container)) || 0) < 400,
9260
- duration: hrTimeToMilliseconds(span.duration)
9247
+ duration: hrTimeToMilliseconds(span[_DYN_DURATION ])
9261
9248
  };
9262
- var parentCtx = span.parentSpanContext || (spanCtx ? spanCtx.parentCtx : null);
9263
- _applyValue(spanTelemetry, "parentId", span.parentSpanId || (parentCtx ? parentCtx.spanId : null), false);
9249
+ var parentCtx = span[_DYN_PARENT_SPAN_CONTEXT ] || (spanCtx ? spanCtx.parentCtx : null);
9250
+ _applyValue(spanTelemetry, "parentId", span.parentSpanId || (parentCtx ? parentCtx[_DYN_SPAN_ID ] : null), false);
9264
9251
  if (spanCtx) {
9265
- var traceState = spanCtx.traceState;
9252
+ var traceState = spanCtx[_DYN_TRACE_STATE ];
9266
9253
  if (traceState && !traceState.isEmpty) {
9267
9254
  _applyValue(spanTelemetry, "traceState", traceState.hdrs(1)[0], false);
9268
9255
  }
9269
9256
  }
9270
- _populateHttpProperties(spanTelemetry, container, getHttpMethod(container), core.config);
9257
+ _populateHttpProperties(spanTelemetry, container, getHttpMethod(container), core[_DYN_CONFIG ]);
9271
9258
  _populateDbProperties(spanTelemetry, container, container.get(SEMATTRS_DB_SYSTEM));
9272
9259
  _populateRpcDependencyProperties(spanTelemetry, container, container.get(SEMATTRS_RPC_SYSTEM));
9273
9260
  _applyValue(spanTelemetry, "azureResourceProvider", container.get(AzResourceNamespace) || container.get(AzNamespace), false);
@@ -9281,9 +9268,9 @@ function _createTelemetryItem(item, span, baseType, eventName) {
9281
9268
  throwError("Input doesn't contain all required fields");
9282
9269
  }
9283
9270
  var iKey = "";
9284
- if (item.iKey) {
9285
- iKey = item.iKey;
9286
- delete item.iKey;
9271
+ if (item[_DYN_I_KEY ]) {
9272
+ iKey = item[_DYN_I_KEY ];
9273
+ delete item[_DYN_I_KEY ];
9287
9274
  }
9288
9275
  var telemetryItem = {
9289
9276
  name: eventName,
@@ -9298,17 +9285,17 @@ function _createTelemetryItem(item, span, baseType, eventName) {
9298
9285
  }
9299
9286
  function createExtendedTelemetryItemFromSpan(core, span) {
9300
9287
  var telemetryItem = _createOTelSpanTelemetryItem(core, span);
9301
- var container = span.attribContainer || createAttributeContainer(span.attributes);
9288
+ var container = span.attribContainer || createAttributeContainer(span[_DYN_ATTRIBUTES ]);
9302
9289
  if (telemetryItem) {
9303
9290
  var partB = telemetryItem[_DYN_BASE_DATA ] = telemetryItem[_DYN_BASE_DATA ] || {};
9304
- partB.startTime = new Date(hrTimeToMilliseconds(span.startTime));
9305
- var spanContext = span.spanContext();
9291
+ partB[_DYN_START_TIME ] = new Date(hrTimeToMilliseconds(span[_DYN_START_TIME ]));
9292
+ var spanContext = span[_DYN_SPAN_CONTEXT ]();
9306
9293
  if (spanContext) {
9307
9294
  var ext = telemetryItem.ext = telemetryItem.ext || {};
9308
9295
  var dt = ext["dt"] = ext["dt"] || {};
9309
- _applyValue(dt, "spanId", spanContext.spanId, false);
9310
- _applyValue(dt, "traceId", spanContext.traceId, false);
9311
- _applyValue(dt, "traceFlags", spanContext.traceFlags, false);
9296
+ _applyValue(dt, "spanId", spanContext[_DYN_SPAN_ID ], false);
9297
+ _applyValue(dt, "traceId", spanContext[_DYN_TRACE_ID ], false);
9298
+ _applyValue(dt, "traceFlags", spanContext[_DYN_TRACE_FLAGS ], false);
9312
9299
  }
9313
9300
  _populateExtensionsFromSpan(telemetryItem, span, container);
9314
9301
  _populatePartC(telemetryItem, container);
@@ -9317,7 +9304,7 @@ function createExtendedTelemetryItemFromSpan(core, span) {
9317
9304
  }
9318
9305
 
9319
9306
  exports.ActiveStatus = ActiveStatus;
9320
- exports.AppInsightsCore = AppInsightsCore;
9307
+ exports.AppInsightsCore = AppInsightsExtCore;
9321
9308
  exports.BaseTelemetryPlugin = BaseTelemetryPlugin;
9322
9309
  exports.DiagnosticLogger = DiagnosticLogger;
9323
9310
  exports.EventLatency = EventLatency;
@@ -9325,7 +9312,7 @@ exports.EventPersistence = EventPersistence;
9325
9312
  exports.EventPropertyType = EventPropertyType;
9326
9313
  exports.EventsDiscardedReason = EventsDiscardedReason;
9327
9314
  exports.FullVersionString = FullVersionString;
9328
- exports.InternalAppInsightsCore = AppInsightsCore$1;
9315
+ exports.InternalAppInsightsCore = AppInsightsCore;
9329
9316
  exports.LoggingSeverity = LoggingSeverity;
9330
9317
  exports.MinChannelPriorty = MinChannelPriorty;
9331
9318
  exports.NotificationManager = NotificationManager;
@@ -9488,4 +9475,4 @@ exports.toISOString = toISOString;
9488
9475
  exports.useXDomainRequest = useXDomainRequest;
9489
9476
 
9490
9477
  }));
9491
- //# sourceMappingURL=ms.core-4.4.0-nightlybeta3.2602-27.gbl.js.map
9478
+ //# sourceMappingURL=ms.core-4.4.1.gbl.js.map