@microsoft/applicationinsights-react-js 3.3.5-nightly.2206-02 → 3.3.5-nightly.2206-06

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - React Plugin, 3.3.5-nightly.2206-02
2
+ * Application Insights JavaScript SDK - React Plugin, 3.3.5-nightly.2206-06
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -369,14 +369,55 @@
369
369
  };
370
370
  dynamicProto[DynProtoDefaultOptions] = perfDefaults;
371
371
 
372
- var strEmpty = "";
373
- var strSetNextPlugin = "setNextPlugin";
374
- var strIsInitialized = "isInitialized";
375
- var strTeardown = "teardown";
376
- var strCore = "core";
377
- var strUpdate = "update";
378
- var strDisabled = "disabled";
379
- var strDoTeardown = "_doTeardown";
372
+ var _DYN_INITIALIZE = "initialize";
373
+ var _DYN_NAME = "name";
374
+ var _DYN_IDENTIFIER = "identifier";
375
+ var _DYN_PUSH = "push";
376
+ var _DYN_IS_INITIALIZED = "isInitialized";
377
+ var _DYN_CONFIG = "config";
378
+ var _DYN_LOGGER = "logger";
379
+ var _DYN_LENGTH = "length";
380
+ var _DYN_TIME = "time";
381
+ var _DYN_PROCESS_NEXT = "processNext";
382
+ var _DYN_GET_PROCESS_TEL_CONT0 = "getProcessTelContext";
383
+ var _DYN_GET_PLUGIN = "getPlugin";
384
+ var _DYN_TEARDOWN = "teardown";
385
+ var _DYN_MESSAGE_ID = "messageId";
386
+ var _DYN_MESSAGE = "message";
387
+ var _DYN_IS_ASYNC = "isAsync";
388
+ var _DYN__DO_TEARDOWN = "_doTeardown";
389
+ var _DYN_UPDATE = "update";
390
+ var _DYN_GET_NEXT = "getNext";
391
+ var _DYN_DIAG_LOG = "diagLog";
392
+ var _DYN_SET_NEXT_PLUGIN = "setNextPlugin";
393
+ var _DYN_CREATE_NEW = "createNew";
394
+ var _DYN_COOKIE_CFG = "cookieCfg";
395
+ var _DYN_INDEX_OF = "indexOf";
396
+ var _DYN_SUBSTRING = "substring";
397
+ var _DYN_USER_AGENT = "userAgent";
398
+ var _DYN_SPLIT = "split";
399
+ var _DYN_SET_ENABLED = "setEnabled";
400
+ var _DYN_REPLACE = "replace";
401
+ var _DYN_NODE_TYPE = "nodeType";
402
+ var _DYN_APPLY = "apply";
403
+ var _DYN_ENABLE_DEBUG_EXCEPTI4 = "enableDebugExceptions";
404
+ var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
405
+ var _DYN_TO_LOWER_CASE = "toLowerCase";
406
+ var _DYN_CALL = "call";
407
+ var _DYN_IS_CHILD_EVT = "isChildEvt";
408
+ var _DYN_GET_CTX = "getCtx";
409
+ var _DYN_SET_CTX = "setCtx";
410
+ var _DYN_COMPLETE = "complete";
411
+
412
+ var STR_EMPTY = "";
413
+ var STR_CORE = "core";
414
+ var STR_DISABLED = "disabled";
415
+ var STR_EXTENSION_CONFIG = "extensionConfig";
416
+ var STR_PROCESS_TELEMETRY = "processTelemetry";
417
+ var STR_PRIORITY = "priority";
418
+ var STR_ERROR_TO_CONSOLE = "errorToConsole";
419
+ var STR_WARN_TO_CONSOLE = "warnToConsole";
420
+ var STR_GET_PERF_MGR = "getPerfMgr";
380
421
 
381
422
  var cStrEndsWith = "endsWith";
382
423
  var cStrTrim = "trim";
@@ -391,7 +432,7 @@
391
432
  var _isArray = Array.isArray;
392
433
  var _objToString = ObjProto[strToString];
393
434
  var _fnToString = ObjHasOwnProperty[strToString];
394
- var _objFunctionString = _fnToString.call(ObjClass);
435
+ var _objFunctionString = _fnToString[_DYN_CALL ](ObjClass);
395
436
  var rCamelCase = /-([a-z])/g;
396
437
  var rNormalizeInvalid = /([^\w\d_$])/g;
397
438
  var rLeadingNumeric = /^(\d+[\w\d_$])/;
@@ -426,11 +467,11 @@
426
467
  function normalizeJsName(name) {
427
468
  var value = name;
428
469
  if (value && isString(value)) {
429
- value = value.replace(rCamelCase, function (_all, letter) {
470
+ value = value[_DYN_REPLACE ](rCamelCase, function (_all, letter) {
430
471
  return letter.toUpperCase();
431
472
  });
432
- value = value.replace(rNormalizeInvalid, "_");
433
- value = value.replace(rLeadingNumeric, function (_all, match) {
473
+ value = value[_DYN_REPLACE ](rNormalizeInvalid, "_");
474
+ value = value[_DYN_REPLACE ](rLeadingNumeric, function (_all, match) {
434
475
  return "_" + match;
435
476
  });
436
477
  }
@@ -439,8 +480,8 @@
439
480
  function objForEachKey(target, callbackfn) {
440
481
  if (target) {
441
482
  for (var prop in target) {
442
- if (ObjHasOwnProperty.call(target, prop)) {
443
- callbackfn.call(target, prop, target[prop]);
483
+ if (ObjHasOwnProperty[_DYN_CALL ](target, prop)) {
484
+ callbackfn[_DYN_CALL ](target, prop, target[prop]);
444
485
  }
445
486
  }
446
487
  }
@@ -454,8 +495,8 @@
454
495
  }
455
496
  function _strEndsWithPoly(value, search) {
456
497
  var result = false;
457
- var searchLen = search ? search.length : 0;
458
- var valLen = value ? value.length : 0;
498
+ var searchLen = search ? search[_DYN_LENGTH ] : 0;
499
+ var valLen = value ? value[_DYN_LENGTH ] : 0;
459
500
  if (searchLen && valLen && valLen >= searchLen && !(result = value === search)) {
460
501
  var pos = valLen - 1;
461
502
  for (var lp = searchLen - 1; lp >= 0; lp--) {
@@ -470,16 +511,16 @@
470
511
  }
471
512
  function strContains(value, search) {
472
513
  if (value && search) {
473
- return value.indexOf(search) !== -1;
514
+ return value[_DYN_INDEX_OF ](search) !== -1;
474
515
  }
475
516
  return false;
476
517
  }
477
518
  var isArray = _isArray || _isArrayPoly;
478
519
  function _isArrayPoly(obj) {
479
- return !!(obj && _objToString.call(obj) === "[object Array]");
520
+ return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Array]");
480
521
  }
481
522
  function isError(obj) {
482
- return !!(obj && _objToString.call(obj) === "[object Error]");
523
+ return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Error]");
483
524
  }
484
525
  function isString(value) {
485
526
  return typeof value === "string";
@@ -495,20 +536,20 @@
495
536
  result = true;
496
537
  }
497
538
  else {
498
- if (proto[strConstructor] && ObjHasOwnProperty.call(proto, strConstructor)) {
539
+ if (proto[strConstructor] && ObjHasOwnProperty[_DYN_CALL ](proto, strConstructor)) {
499
540
  proto = proto[strConstructor];
500
541
  }
501
- result = typeof proto === strShimFunction && _fnToString.call(proto) === _objFunctionString;
542
+ result = typeof proto === strShimFunction && _fnToString[_DYN_CALL ](proto) === _objFunctionString;
502
543
  }
503
544
  }
504
545
  return result;
505
546
  }
506
547
  function arrForEach(arr, callbackfn, thisArg) {
507
- var len = arr.length;
548
+ var len = arr[_DYN_LENGTH ];
508
549
  try {
509
550
  for (var idx = 0; idx < len; idx++) {
510
551
  if (idx in arr) {
511
- if (callbackfn.call(thisArg || arr, arr[idx], idx, arr) === -1) {
552
+ if (callbackfn[_DYN_CALL ](thisArg || arr, arr[idx], idx, arr) === -1) {
512
553
  break;
513
554
  }
514
555
  }
@@ -519,7 +560,7 @@
519
560
  }
520
561
  function strTrim(str) {
521
562
  if (str) {
522
- str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str.replace ? str.replace(/^\s+|\s+$/g, "") : str);
563
+ str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str[_DYN_REPLACE ] ? str[_DYN_REPLACE ](/^\s+|\s+$/g, STR_EMPTY) : str);
523
564
  }
524
565
  return str;
525
566
  }
@@ -564,9 +605,9 @@
564
605
  }
565
606
  function getExceptionName(object) {
566
607
  if (isError(object)) {
567
- return object.name;
608
+ return object[_DYN_NAME ];
568
609
  }
569
- return strEmpty;
610
+ return STR_EMPTY;
570
611
  }
571
612
  function setValue(target, field, value, valChk, srcChk) {
572
613
  var theValue = value;
@@ -579,6 +620,9 @@
579
620
  }
580
621
  return theValue;
581
622
  }
623
+ function getCfgValue(theValue, defaultValue) {
624
+ return !isNullOrUndefined(theValue) ? theValue : defaultValue;
625
+ }
582
626
  function isTruthy(value) {
583
627
  return !!value;
584
628
  }
@@ -597,7 +641,7 @@
597
641
  src = srcFunc();
598
642
  }
599
643
  if (src) {
600
- return src[funcName].apply(src, originalArguments);
644
+ return src[funcName][_DYN_APPLY ](src, originalArguments);
601
645
  }
602
646
  };
603
647
  }
@@ -621,7 +665,7 @@
621
665
  function objExtend(obj1, obj2, obj3, obj4, obj5, obj6) {
622
666
  var theArgs = arguments;
623
667
  var extended = theArgs[0] || {};
624
- var argLen = theArgs.length;
668
+ var argLen = theArgs[_DYN_LENGTH ];
625
669
  var deep = false;
626
670
  var idx = 1;
627
671
  if (argLen > 0 && isBoolean(extended)) {
@@ -637,7 +681,7 @@
637
681
  var isArgArray = isArray(arg);
638
682
  var isArgObj = isObject(arg);
639
683
  for (var prop in arg) {
640
- var propOk = (isArgArray && (prop in arg)) || (isArgObj && (ObjHasOwnProperty.call(arg, prop)));
684
+ var propOk = (isArgArray && (prop in arg)) || (isArgObj && (ObjHasOwnProperty[_DYN_CALL ](arg, prop)));
641
685
  if (!propOk) {
642
686
  continue;
643
687
  }
@@ -751,18 +795,18 @@
751
795
  }
752
796
  function isIE() {
753
797
  var nav = getNavigator();
754
- if (nav && (nav.userAgent !== _navUserAgentCheck || _isTrident === null)) {
755
- _navUserAgentCheck = nav.userAgent;
756
- var userAgent = (_navUserAgentCheck || strEmpty).toLowerCase();
798
+ if (nav && (nav[_DYN_USER_AGENT ] !== _navUserAgentCheck || _isTrident === null)) {
799
+ _navUserAgentCheck = nav[_DYN_USER_AGENT ];
800
+ var userAgent = (_navUserAgentCheck || STR_EMPTY)[_DYN_TO_LOWER_CASE ]();
757
801
  _isTrident = (strContains(userAgent, strMsie) || strContains(userAgent, strTrident));
758
802
  }
759
803
  return _isTrident;
760
804
  }
761
805
  function dumpObj(object) {
762
- var objectTypeDump = Object[strShimPrototype].toString.call(object);
763
- var propertyValueDump = strEmpty;
806
+ var objectTypeDump = Object[strShimPrototype].toString[_DYN_CALL ](object);
807
+ var propertyValueDump = STR_EMPTY;
764
808
  if (objectTypeDump === "[object Error]") {
765
- propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object.name + "'";
809
+ propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object[_DYN_NAME ] + "'";
766
810
  }
767
811
  else if (hasJSON()) {
768
812
  propertyValueDump = getJSON().stringify(object);
@@ -789,13 +833,11 @@
789
833
  var AiNonUserActionablePrefix = "AI (Internal): ";
790
834
  var AiUserActionablePrefix = "AI: ";
791
835
  var AIInternalMessagePrefix = "AITR_";
792
- var strErrorToConsole = "errorToConsole";
793
- var strWarnToConsole = "warnToConsole";
794
836
  function _sanitizeDiagnosticText(text) {
795
837
  if (text) {
796
- return "\"" + text.replace(/\"/g, strEmpty) + "\"";
838
+ return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY) + "\"";
797
839
  }
798
- return strEmpty;
840
+ return STR_EMPTY;
799
841
  }
800
842
  function _logToConsole(func, message) {
801
843
  var theConsole = getConsole();
@@ -813,23 +855,23 @@
813
855
  function _InternalLogMessage(msgId, msg, isUserAct, properties) {
814
856
  if (isUserAct === void 0) { isUserAct = false; }
815
857
  var _self = this;
816
- _self.messageId = msgId;
817
- _self.message =
858
+ _self[_DYN_MESSAGE_ID ] = msgId;
859
+ _self[_DYN_MESSAGE ] =
818
860
  (isUserAct ? AiUserActionablePrefix : AiNonUserActionablePrefix) +
819
861
  msgId;
820
- var strProps = strEmpty;
862
+ var strProps = STR_EMPTY;
821
863
  if (hasJSON()) {
822
864
  strProps = getJSON().stringify(properties);
823
865
  }
824
- var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : strEmpty) +
825
- (properties ? " props:" + _sanitizeDiagnosticText(strProps) : strEmpty);
826
- _self.message += diagnosticText;
866
+ var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : STR_EMPTY) +
867
+ (properties ? " props:" + _sanitizeDiagnosticText(strProps) : STR_EMPTY);
868
+ _self[_DYN_MESSAGE ] += diagnosticText;
827
869
  }
828
870
  _InternalLogMessage.dataType = "MessageData";
829
871
  return _InternalLogMessage;
830
872
  }());
831
873
  function safeGetLogger(core, config) {
832
- return (core || {}).logger || new DiagnosticLogger(config);
874
+ return (core || {})[_DYN_LOGGER ] || new DiagnosticLogger(config);
833
875
  }
834
876
  var DiagnosticLogger = /** @class */ (function () {
835
877
  function DiagnosticLogger(config) {
@@ -837,48 +879,49 @@
837
879
  this.queue = [];
838
880
  var _messageCount = 0;
839
881
  var _messageLogged = {};
882
+ var _loggingLevelConsole;
883
+ var _loggingLevelTelemetry;
884
+ var _maxInternalMessageLimit;
885
+ var _enableDebugExceptions;
840
886
  dynamicProto(DiagnosticLogger, this, function (_self) {
841
- if (isNullOrUndefined(config)) {
842
- config = {};
843
- }
844
- _self.consoleLoggingLevel = function () { return _getConfigValue("loggingLevelConsole", 0); };
845
- _self.telemetryLoggingLevel = function () { return _getConfigValue("loggingLevelTelemetry", 1); };
846
- _self.maxInternalMessageLimit = function () { return _getConfigValue("maxMessageLimit", 25); };
847
- _self.enableDebugExceptions = function () { return _getConfigValue("enableDebugExceptions", false); };
887
+ _setDefaultsFromConfig(config || {});
888
+ _self.consoleLoggingLevel = function () { return _loggingLevelConsole; };
889
+ _self.telemetryLoggingLevel = function () { return _loggingLevelTelemetry; };
890
+ _self.maxInternalMessageLimit = function () { return _maxInternalMessageLimit; };
891
+ _self[_DYN_ENABLE_DEBUG_EXCEPTI4 ] = function () { return _enableDebugExceptions; };
848
892
  _self.throwInternal = function (severity, msgId, msg, properties, isUserAct) {
849
893
  if (isUserAct === void 0) { isUserAct = false; }
850
894
  var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
851
- if (_self.enableDebugExceptions()) {
895
+ if (_enableDebugExceptions) {
852
896
  throw dumpObj(message);
853
897
  }
854
898
  else {
855
- var logFunc = severity === 1 ? strErrorToConsole : strWarnToConsole;
856
- if (!isUndefined(message.message)) {
857
- var logLevel = _self.consoleLoggingLevel();
899
+ var logFunc = severity === 1 ? STR_ERROR_TO_CONSOLE : STR_WARN_TO_CONSOLE;
900
+ if (!isUndefined(message[_DYN_MESSAGE ])) {
858
901
  if (isUserAct) {
859
- var messageKey = +message.messageId;
860
- if (!_messageLogged[messageKey] && logLevel >= severity) {
861
- _self[logFunc](message.message);
902
+ var messageKey = +message[_DYN_MESSAGE_ID ];
903
+ if (!_messageLogged[messageKey] && _loggingLevelConsole >= severity) {
904
+ _self[logFunc](message[_DYN_MESSAGE ]);
862
905
  _messageLogged[messageKey] = true;
863
906
  }
864
907
  }
865
908
  else {
866
- if (logLevel >= severity) {
867
- _self[logFunc](message.message);
909
+ if (_loggingLevelConsole >= severity) {
910
+ _self[logFunc](message[_DYN_MESSAGE ]);
868
911
  }
869
912
  }
870
- _self.logInternalMessage(severity, message);
913
+ _logInternalMessage(severity, message);
871
914
  }
872
915
  else {
873
916
  _debugExtMsg("throw" + (severity === 1 ? "Critical" : "Warning"), message);
874
917
  }
875
918
  }
876
919
  };
877
- _self.warnToConsole = function (message) {
920
+ _self[STR_WARN_TO_CONSOLE ] = function (message) {
878
921
  _logToConsole("warn", message);
879
922
  _debugExtMsg("warning", message);
880
923
  };
881
- _self.errorToConsole = function (message) {
924
+ _self[STR_ERROR_TO_CONSOLE ] = function (message) {
882
925
  _logToConsole("error", message);
883
926
  _debugExtMsg("error", message);
884
927
  };
@@ -886,12 +929,13 @@
886
929
  _messageCount = 0;
887
930
  _messageLogged = {};
888
931
  };
889
- _self.logInternalMessage = function (severity, message) {
932
+ _self[_DYN_LOG_INTERNAL_MESSAGE ] = _logInternalMessage;
933
+ function _logInternalMessage(severity, message) {
890
934
  if (_areInternalMessagesThrottled()) {
891
935
  return;
892
936
  }
893
937
  var logMessage = true;
894
- var messageKey = AIInternalMessagePrefix + message.messageId;
938
+ var messageKey = AIInternalMessagePrefix + message[_DYN_MESSAGE_ID ];
895
939
  if (_messageLogged[messageKey]) {
896
940
  logMessage = false;
897
941
  }
@@ -899,58 +943,63 @@
899
943
  _messageLogged[messageKey] = true;
900
944
  }
901
945
  if (logMessage) {
902
- if (severity <= _self.telemetryLoggingLevel()) {
903
- _self.queue.push(message);
946
+ if (severity <= _loggingLevelTelemetry) {
947
+ _self.queue[_DYN_PUSH ](message);
904
948
  _messageCount++;
905
949
  _debugExtMsg((severity === 1 ? "error" : "warn"), message);
906
950
  }
907
- if (_messageCount === _self.maxInternalMessageLimit()) {
951
+ if (_messageCount === _maxInternalMessageLimit) {
908
952
  var throttleLimitMessage = "Internal events throttle limit per PageView reached for this app.";
909
953
  var throttleMessage = new _InternalLogMessage(23 , throttleLimitMessage, false);
910
- _self.queue.push(throttleMessage);
954
+ _self.queue[_DYN_PUSH ](throttleMessage);
911
955
  if (severity === 1 ) {
912
- _self.errorToConsole(throttleLimitMessage);
956
+ _self[STR_ERROR_TO_CONSOLE ](throttleLimitMessage);
913
957
  }
914
958
  else {
915
- _self.warnToConsole(throttleLimitMessage);
959
+ _self[STR_WARN_TO_CONSOLE ](throttleLimitMessage);
916
960
  }
917
961
  }
918
962
  }
919
- };
920
- function _getConfigValue(name, defValue) {
921
- var value = config[name];
922
- if (!isNullOrUndefined(value)) {
923
- return value;
924
- }
925
- return defValue;
963
+ }
964
+ function _setDefaultsFromConfig(config) {
965
+ _loggingLevelConsole = getCfgValue(config.loggingLevelConsole, 0);
966
+ _loggingLevelTelemetry = getCfgValue(config.loggingLevelTelemetry, 1);
967
+ _maxInternalMessageLimit = getCfgValue(config.maxMessageLimit, 25);
968
+ _enableDebugExceptions = getCfgValue(config[_DYN_ENABLE_DEBUG_EXCEPTI4 ], false);
926
969
  }
927
970
  function _areInternalMessagesThrottled() {
928
- return _messageCount >= _self.maxInternalMessageLimit();
971
+ return _messageCount >= _maxInternalMessageLimit;
929
972
  }
930
973
  function _debugExtMsg(name, data) {
931
- var dbgExt = getDebugExt(config);
932
- if (dbgExt && dbgExt.diagLog) {
933
- dbgExt.diagLog(name, data);
974
+ var dbgExt = getDebugExt(config || {});
975
+ if (dbgExt && dbgExt[_DYN_DIAG_LOG ]) {
976
+ dbgExt[_DYN_DIAG_LOG ](name, data);
934
977
  }
935
978
  }
936
979
  });
937
980
  }
981
+ DiagnosticLogger.__ieDyn=1;
938
982
  return DiagnosticLogger;
939
983
  }());
984
+ function _getLogger(logger) {
985
+ return (logger || new DiagnosticLogger());
986
+ }
940
987
  function _throwInternal(logger, severity, msgId, msg, properties, isUserAct) {
941
988
  if (isUserAct === void 0) { isUserAct = false; }
942
- (logger || new DiagnosticLogger()).throwInternal(severity, msgId, msg, properties, isUserAct);
989
+ _getLogger(logger).throwInternal(severity, msgId, msg, properties, isUserAct);
943
990
  }
944
991
 
945
992
  var strExecutionContextKey = "ctx";
993
+ var strParentContextKey = "ParentContextKey";
994
+ var strChildrenContextKey = "ChildrenContextKey";
946
995
  var PerfEvent = /** @class */ (function () {
947
996
  function PerfEvent(name, payloadDetails, isAsync) {
948
997
  var _self = this;
949
998
  var accessorDefined = false;
950
999
  _self.start = dateNow();
951
- _self.name = name;
952
- _self.isAsync = isAsync;
953
- _self.isChildEvt = function () { return false; };
1000
+ _self[_DYN_NAME ] = name;
1001
+ _self[_DYN_IS_ASYNC ] = isAsync;
1002
+ _self[_DYN_IS_CHILD_EVT ] = function () { return false; };
954
1003
  if (isFunction(payloadDetails)) {
955
1004
  var theDetails_1;
956
1005
  accessorDefined = objDefineAccessors(_self, "payload", function () {
@@ -961,24 +1010,24 @@
961
1010
  return theDetails_1;
962
1011
  });
963
1012
  }
964
- _self.getCtx = function (key) {
1013
+ _self[_DYN_GET_CTX ] = function (key) {
965
1014
  if (key) {
966
- if (key === PerfEvent.ParentContextKey || key === PerfEvent.ChildrenContextKey) {
1015
+ if (key === PerfEvent[strParentContextKey] || key === PerfEvent[strChildrenContextKey]) {
967
1016
  return _self[key];
968
1017
  }
969
1018
  return (_self[strExecutionContextKey] || {})[key];
970
1019
  }
971
1020
  return null;
972
1021
  };
973
- _self.setCtx = function (key, value) {
1022
+ _self[_DYN_SET_CTX ] = function (key, value) {
974
1023
  if (key) {
975
- if (key === PerfEvent.ParentContextKey) {
1024
+ if (key === PerfEvent[strParentContextKey]) {
976
1025
  if (!_self[key]) {
977
- _self.isChildEvt = function () { return true; };
1026
+ _self[_DYN_IS_CHILD_EVT ] = function () { return true; };
978
1027
  }
979
1028
  _self[key] = value;
980
1029
  }
981
- else if (key === PerfEvent.ChildrenContextKey) {
1030
+ else if (key === PerfEvent[strChildrenContextKey]) {
982
1031
  _self[key] = value;
983
1032
  }
984
1033
  else {
@@ -987,20 +1036,20 @@
987
1036
  }
988
1037
  }
989
1038
  };
990
- _self.complete = function () {
1039
+ _self[_DYN_COMPLETE ] = function () {
991
1040
  var childTime = 0;
992
- var childEvts = _self.getCtx(PerfEvent.ChildrenContextKey);
1041
+ var childEvts = _self[_DYN_GET_CTX ](PerfEvent[strChildrenContextKey]);
993
1042
  if (isArray(childEvts)) {
994
- for (var lp = 0; lp < childEvts.length; lp++) {
1043
+ for (var lp = 0; lp < childEvts[_DYN_LENGTH ]; lp++) {
995
1044
  var childEvt = childEvts[lp];
996
1045
  if (childEvt) {
997
- childTime += childEvt.time;
1046
+ childTime += childEvt[_DYN_TIME ];
998
1047
  }
999
1048
  }
1000
1049
  }
1001
- _self.time = dateNow() - _self.start;
1002
- _self.exTime = _self.time - childTime;
1003
- _self.complete = function () { };
1050
+ _self[_DYN_TIME ] = dateNow() - _self.start;
1051
+ _self.exTime = _self[_DYN_TIME ] - childTime;
1052
+ _self[_DYN_COMPLETE ] = function () { };
1004
1053
  if (!accessorDefined && isFunction(payloadDetails)) {
1005
1054
  _self.payload = payloadDetails();
1006
1055
  }
@@ -1014,40 +1063,40 @@
1014
1063
  function doPerf(mgrSource, getSource, func, details, isAsync) {
1015
1064
  if (mgrSource) {
1016
1065
  var perfMgr = mgrSource;
1017
- if (isFunction(perfMgr["getPerfMgr"])) {
1018
- perfMgr = perfMgr["getPerfMgr"]();
1066
+ if (perfMgr[STR_GET_PERF_MGR]) {
1067
+ perfMgr = perfMgr[STR_GET_PERF_MGR]();
1019
1068
  }
1020
1069
  if (perfMgr) {
1021
1070
  var perfEvt = void 0;
1022
- var currentActive = perfMgr.getCtx(doPerfActiveKey);
1071
+ var currentActive = perfMgr[_DYN_GET_CTX ](doPerfActiveKey);
1023
1072
  try {
1024
1073
  perfEvt = perfMgr.create(getSource(), details, isAsync);
1025
1074
  if (perfEvt) {
1026
- if (currentActive && perfEvt.setCtx) {
1027
- perfEvt.setCtx(PerfEvent.ParentContextKey, currentActive);
1028
- if (currentActive.getCtx && currentActive.setCtx) {
1029
- var children = currentActive.getCtx(PerfEvent.ChildrenContextKey);
1075
+ if (currentActive && perfEvt[_DYN_SET_CTX ]) {
1076
+ perfEvt[_DYN_SET_CTX ](PerfEvent[strParentContextKey], currentActive);
1077
+ if (currentActive[_DYN_GET_CTX ] && currentActive[_DYN_SET_CTX ]) {
1078
+ var children = currentActive[_DYN_GET_CTX ](PerfEvent[strChildrenContextKey]);
1030
1079
  if (!children) {
1031
1080
  children = [];
1032
- currentActive.setCtx(PerfEvent.ChildrenContextKey, children);
1081
+ currentActive[_DYN_SET_CTX ](PerfEvent[strChildrenContextKey], children);
1033
1082
  }
1034
- children.push(perfEvt);
1083
+ children[_DYN_PUSH ](perfEvt);
1035
1084
  }
1036
1085
  }
1037
- perfMgr.setCtx(doPerfActiveKey, perfEvt);
1086
+ perfMgr[_DYN_SET_CTX ](doPerfActiveKey, perfEvt);
1038
1087
  return func(perfEvt);
1039
1088
  }
1040
1089
  }
1041
1090
  catch (ex) {
1042
- if (perfEvt && perfEvt.setCtx) {
1043
- perfEvt.setCtx("exception", ex);
1091
+ if (perfEvt && perfEvt[_DYN_SET_CTX ]) {
1092
+ perfEvt[_DYN_SET_CTX ]("exception", ex);
1044
1093
  }
1045
1094
  }
1046
1095
  finally {
1047
1096
  if (perfEvt) {
1048
1097
  perfMgr.fire(perfEvt);
1049
1098
  }
1050
- perfMgr.setCtx(doPerfActiveKey, currentActive);
1099
+ perfMgr[_DYN_SET_CTX ](doPerfActiveKey, currentActive);
1051
1100
  }
1052
1101
  }
1053
1102
  }
@@ -1109,8 +1158,8 @@
1109
1158
  var base64chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1110
1159
  var number = random32() >>> 0;
1111
1160
  var chars = 0;
1112
- var result = strEmpty;
1113
- while (result.length < maxLength) {
1161
+ var result = STR_EMPTY;
1162
+ while (result[_DYN_LENGTH ] < maxLength) {
1114
1163
  chars++;
1115
1164
  result += base64chars.charAt(number & 0x3F);
1116
1165
  number >>>= 6;
@@ -1123,7 +1172,7 @@
1123
1172
  }
1124
1173
 
1125
1174
  var _objDefineProperty = ObjDefineProperty;
1126
- var version = "2.8.5-nightly.2206-02";
1175
+ var version = "2.8.5-nightly.2206-06";
1127
1176
  var instanceName = "." + newId(6);
1128
1177
  var _dataUid = 0;
1129
1178
  function _createAccessor(target, prop, value) {
@@ -1142,7 +1191,7 @@
1142
1191
  return false;
1143
1192
  }
1144
1193
  function _canAcceptData(target) {
1145
- return target.nodeType === 1 || target.nodeType === 9 || !(+target.nodeType);
1194
+ return target[_DYN_NODE_TYPE ] === 1 || target[_DYN_NODE_TYPE ] === 9 || !(+target[_DYN_NODE_TYPE ]);
1146
1195
  }
1147
1196
  function _getCache(data, target) {
1148
1197
  var theCache = target[data.id];
@@ -1162,11 +1211,11 @@
1162
1211
  }
1163
1212
  function createUniqueNamespace(name, includeVersion) {
1164
1213
  if (includeVersion === void 0) { includeVersion = false; }
1165
- return normalizeJsName(name + (_dataUid++) + (includeVersion ? "." + version : "") + instanceName);
1214
+ return normalizeJsName(name + (_dataUid++) + (includeVersion ? "." + version : STR_EMPTY) + instanceName);
1166
1215
  }
1167
1216
  function createElmNodeData(name) {
1168
1217
  var data = {
1169
- id: createUniqueNamespace("_aiData-" + (name || "") + "." + version),
1218
+ id: createUniqueNamespace("_aiData-" + (name || STR_EMPTY) + "." + version),
1170
1219
  accept: function (target) {
1171
1220
  return _canAcceptData(target);
1172
1221
  },
@@ -1223,7 +1272,7 @@
1223
1272
  return true;
1224
1273
  }
1225
1274
  function _createCookieMgrConfig(rootConfig) {
1226
- var cookieMgrCfg = rootConfig.cookieCfg = rootConfig.cookieCfg || {};
1275
+ var cookieMgrCfg = rootConfig[_DYN_COOKIE_CFG ] = rootConfig[_DYN_COOKIE_CFG ] || {};
1227
1276
  setValue(cookieMgrCfg, "domain", rootConfig.cookieDomain, isNotNullOrUndefined, isNullOrUndefined);
1228
1277
  setValue(cookieMgrCfg, "path", rootConfig.cookiePath || "/", null, isNullOrUndefined);
1229
1278
  if (isNullOrUndefined(cookieMgrCfg[strEnabled])) {
@@ -1244,7 +1293,7 @@
1244
1293
  cookieMgr = core.getCookieMgr();
1245
1294
  }
1246
1295
  else if (config) {
1247
- var cookieCfg = config.cookieCfg;
1296
+ var cookieCfg = config[_DYN_COOKIE_CFG ];
1248
1297
  if (cookieCfg[strConfigCookieMgr]) {
1249
1298
  cookieMgr = cookieCfg[strConfigCookieMgr];
1250
1299
  }
@@ -1253,36 +1302,38 @@
1253
1302
  }
1254
1303
  }
1255
1304
  if (!cookieMgr) {
1256
- cookieMgr = _gblCookieMgr(config, (core || {}).logger);
1305
+ cookieMgr = _gblCookieMgr(config, (core || {})[_DYN_LOGGER ]);
1257
1306
  }
1258
1307
  return cookieMgr;
1259
1308
  }
1260
1309
  function createCookieMgr(rootConfig, logger) {
1310
+ var _a;
1261
1311
  var cookieMgrConfig = _createCookieMgrConfig(rootConfig || _globalCookieConfig);
1262
1312
  var _path = cookieMgrConfig.path || "/";
1263
1313
  var _domain = cookieMgrConfig.domain;
1264
1314
  var _enabled = cookieMgrConfig[strEnabled] !== false;
1265
- var cookieMgr = {
1266
- isEnabled: function () {
1267
- var enabled = _enabled && areCookiesSupported(logger);
1268
- var gblManager = _globalCookieConfig[strConfigCookieMgr];
1269
- if (enabled && gblManager && cookieMgr !== gblManager) {
1270
- enabled = _isMgrEnabled(gblManager);
1271
- }
1272
- return enabled;
1315
+ var cookieMgr = (_a = {
1316
+ isEnabled: function () {
1317
+ var enabled = _enabled && areCookiesSupported(logger);
1318
+ var gblManager = _globalCookieConfig[strConfigCookieMgr];
1319
+ if (enabled && gblManager && cookieMgr !== gblManager) {
1320
+ enabled = _isMgrEnabled(gblManager);
1321
+ }
1322
+ return enabled;
1323
+ }
1273
1324
  },
1274
- setEnabled: function (value) {
1325
+ _a[_DYN_SET_ENABLED ] = function (value) {
1275
1326
  _enabled = value !== false;
1276
1327
  },
1277
- set: function (name, value, maxAgeSec, domain, path) {
1328
+ _a.set = function (name, value, maxAgeSec, domain, path) {
1278
1329
  var result = false;
1279
1330
  if (_isMgrEnabled(cookieMgr)) {
1280
1331
  var values = {};
1281
- var theValue = strTrim(value || strEmpty);
1282
- var idx = theValue.indexOf(";");
1332
+ var theValue = strTrim(value || STR_EMPTY);
1333
+ var idx = theValue[_DYN_INDEX_OF ](";");
1283
1334
  if (idx !== -1) {
1284
- theValue = strTrim(value.substring(0, idx));
1285
- values = _extractParts(value.substring(idx + 1));
1335
+ theValue = strTrim(value[_DYN_SUBSTRING ](0, idx));
1336
+ values = _extractParts(value[_DYN_SUBSTRING ](idx + 1));
1286
1337
  }
1287
1338
  setValue(values, "domain", domain || _domain, isTruthy, isUndefined);
1288
1339
  if (!isNullOrUndefined(maxAgeSec)) {
@@ -1293,18 +1344,18 @@
1293
1344
  if (expireMs > 0) {
1294
1345
  var expiry = new Date();
1295
1346
  expiry.setTime(expireMs);
1296
- setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || strEmpty, isTruthy);
1347
+ setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY, isTruthy);
1297
1348
  }
1298
1349
  }
1299
1350
  if (!_isIE) {
1300
- setValue(values, "max-age", strEmpty + maxAgeSec, null, isUndefined);
1351
+ setValue(values, "max-age", STR_EMPTY + maxAgeSec, null, isUndefined);
1301
1352
  }
1302
1353
  }
1303
1354
  var location_1 = getLocation();
1304
1355
  if (location_1 && location_1.protocol === "https:") {
1305
1356
  setValue(values, "secure", null, null, isUndefined);
1306
1357
  if (_allowUaSameSite === null) {
1307
- _allowUaSameSite = !uaDisallowsSameSiteNone((getNavigator() || {}).userAgent);
1358
+ _allowUaSameSite = !uaDisallowsSameSiteNone((getNavigator() || {})[_DYN_USER_AGENT ]);
1308
1359
  }
1309
1360
  if (_allowUaSameSite) {
1310
1361
  setValue(values, "SameSite", "None", null, isUndefined);
@@ -1317,21 +1368,21 @@
1317
1368
  }
1318
1369
  return result;
1319
1370
  },
1320
- get: function (name) {
1321
- var value = strEmpty;
1371
+ _a.get = function (name) {
1372
+ var value = STR_EMPTY;
1322
1373
  if (_isMgrEnabled(cookieMgr)) {
1323
1374
  value = (cookieMgrConfig.getCookie || _getCookieValue)(name);
1324
1375
  }
1325
1376
  return value;
1326
1377
  },
1327
- del: function (name, path) {
1378
+ _a.del = function (name, path) {
1328
1379
  var result = false;
1329
1380
  if (_isMgrEnabled(cookieMgr)) {
1330
1381
  result = cookieMgr.purge(name, path);
1331
1382
  }
1332
1383
  return result;
1333
1384
  },
1334
- purge: function (name, path) {
1385
+ _a.purge = function (name, path) {
1335
1386
  var _a;
1336
1387
  var result = false;
1337
1388
  if (areCookiesSupported(logger)) {
@@ -1343,12 +1394,12 @@
1343
1394
  values["max-age"] = "0";
1344
1395
  }
1345
1396
  var delCookie = cookieMgrConfig.delCookie || _setCookieValue;
1346
- delCookie(name, _formatCookieValue(strEmpty, values));
1397
+ delCookie(name, _formatCookieValue(STR_EMPTY, values));
1347
1398
  result = true;
1348
1399
  }
1349
1400
  return result;
1350
- }
1351
- };
1401
+ },
1402
+ _a);
1352
1403
  cookieMgr[strConfigCookieMgr] = cookieMgr;
1353
1404
  return cookieMgr;
1354
1405
  }
@@ -1367,17 +1418,17 @@
1367
1418
  }
1368
1419
  function _extractParts(theValue) {
1369
1420
  var values = {};
1370
- if (theValue && theValue.length) {
1371
- var parts = strTrim(theValue).split(";");
1421
+ if (theValue && theValue[_DYN_LENGTH ]) {
1422
+ var parts = strTrim(theValue)[_DYN_SPLIT ](";");
1372
1423
  arrForEach(parts, function (thePart) {
1373
- thePart = strTrim(thePart || strEmpty);
1424
+ thePart = strTrim(thePart || STR_EMPTY);
1374
1425
  if (thePart) {
1375
- var idx = thePart.indexOf("=");
1426
+ var idx = thePart[_DYN_INDEX_OF ]("=");
1376
1427
  if (idx === -1) {
1377
1428
  values[thePart] = null;
1378
1429
  }
1379
1430
  else {
1380
- values[strTrim(thePart.substring(0, idx))] = strTrim(thePart.substring(idx + 1));
1431
+ values[strTrim(thePart[_DYN_SUBSTRING ](0, idx))] = strTrim(thePart[_DYN_SUBSTRING ](idx + 1));
1381
1432
  }
1382
1433
  }
1383
1434
  });
@@ -1391,21 +1442,21 @@
1391
1442
  return null;
1392
1443
  }
1393
1444
  function _formatCookieValue(value, values) {
1394
- var cookieValue = value || strEmpty;
1445
+ var cookieValue = value || STR_EMPTY;
1395
1446
  objForEachKey(values, function (name, theValue) {
1396
- cookieValue += "; " + name + (!isNullOrUndefined(theValue) ? "=" + theValue : strEmpty);
1447
+ cookieValue += "; " + name + (!isNullOrUndefined(theValue) ? "=" + theValue : STR_EMPTY);
1397
1448
  });
1398
1449
  return cookieValue;
1399
1450
  }
1400
1451
  function _getCookieValue(name) {
1401
- var cookieValue = strEmpty;
1452
+ var cookieValue = STR_EMPTY;
1402
1453
  if (_doc) {
1403
- var theCookie = _doc[strCookie] || strEmpty;
1454
+ var theCookie = _doc[strCookie] || STR_EMPTY;
1404
1455
  if (_parsedCookieValue !== theCookie) {
1405
1456
  _cookieCache = _extractParts(theCookie);
1406
1457
  _parsedCookieValue = theCookie;
1407
1458
  }
1408
- cookieValue = strTrim(_cookieCache[name] || strEmpty);
1459
+ cookieValue = strTrim(_cookieCache[name] || STR_EMPTY);
1409
1460
  }
1410
1461
  return cookieValue;
1411
1462
  }
@@ -1450,12 +1501,12 @@
1450
1501
  var _chainId = 0;
1451
1502
  function _getNextProxyStart(proxy, core, startAt) {
1452
1503
  while (proxy) {
1453
- if (proxy.getPlugin() === startAt) {
1504
+ if (proxy[_DYN_GET_PLUGIN ]() === startAt) {
1454
1505
  return proxy;
1455
1506
  }
1456
- proxy = proxy.getNext();
1507
+ proxy = proxy[_DYN_GET_NEXT ]();
1457
1508
  }
1458
- return createTelemetryProxyChain([startAt], core.config || {}, core);
1509
+ return createTelemetryProxyChain([startAt], core[_DYN_CONFIG ] || {}, core);
1459
1510
  }
1460
1511
  function _createInternalContext(telemetryChain, config, core, startAt) {
1461
1512
  var _nextProxy = null;
@@ -1496,7 +1547,7 @@
1496
1547
  args[_i - 2] = arguments[_i];
1497
1548
  }
1498
1549
  if (onComplete) {
1499
- _onComplete.push({
1550
+ _onComplete[_DYN_PUSH ]({
1500
1551
  func: onComplete,
1501
1552
  self: !isUndefined(that) ? that : context.ctx,
1502
1553
  args: args
@@ -1505,16 +1556,16 @@
1505
1556
  }
1506
1557
  function _moveNext() {
1507
1558
  var nextProxy = _nextProxy;
1508
- _nextProxy = nextProxy ? nextProxy.getNext() : null;
1559
+ _nextProxy = nextProxy ? nextProxy[_DYN_GET_NEXT ]() : null;
1509
1560
  if (!nextProxy) {
1510
1561
  var onComplete = _onComplete;
1511
- if (onComplete && onComplete.length > 0) {
1562
+ if (onComplete && onComplete[_DYN_LENGTH ] > 0) {
1512
1563
  arrForEach(onComplete, function (completeDetails) {
1513
1564
  try {
1514
- completeDetails.func.call(completeDetails.self, completeDetails.args);
1565
+ completeDetails.func[_DYN_CALL ](completeDetails.self, completeDetails.args);
1515
1566
  }
1516
1567
  catch (e) {
1517
- _throwInternal(core.logger, 2 , 73 , "Unexpected Exception during onComplete - " + dumpObj(e));
1568
+ _throwInternal(core[_DYN_LOGGER ], 2 , 73 , "Unexpected Exception during onComplete - " + dumpObj(e));
1518
1569
  }
1519
1570
  });
1520
1571
  _onComplete = [];
@@ -1527,7 +1578,7 @@
1527
1578
  if (mergeDefault === void 0) { mergeDefault = 0 ; }
1528
1579
  var theConfig;
1529
1580
  if (config) {
1530
- var extConfig = config.extensionConfig;
1581
+ var extConfig = config[STR_EXTENSION_CONFIG ];
1531
1582
  if (extConfig && identifier) {
1532
1583
  theConfig = extConfig[identifier];
1533
1584
  }
@@ -1568,7 +1619,7 @@
1568
1619
  function _iterateChain(cb) {
1569
1620
  var nextPlugin;
1570
1621
  while (!!(nextPlugin = context._next())) {
1571
- var plugin = nextPlugin.getPlugin();
1622
+ var plugin = nextPlugin[_DYN_GET_PLUGIN ]();
1572
1623
  if (plugin) {
1573
1624
  cb(plugin);
1574
1625
  }
@@ -1581,7 +1632,7 @@
1581
1632
  var context = internalContext.ctx;
1582
1633
  function _processNext(env) {
1583
1634
  var nextPlugin = internalContext._next();
1584
- nextPlugin && nextPlugin.processTelemetry(env, context);
1635
+ nextPlugin && nextPlugin[STR_PROCESS_TELEMETRY ](env, context);
1585
1636
  return !nextPlugin;
1586
1637
  }
1587
1638
  function _createNew(plugins, startAt) {
@@ -1589,14 +1640,14 @@
1589
1640
  if (isArray(plugins)) {
1590
1641
  plugins = createTelemetryProxyChain(plugins, config, core, startAt);
1591
1642
  }
1592
- return createProcessTelemetryContext(plugins || context.getNext(), config, core, startAt);
1643
+ return createProcessTelemetryContext(plugins || context[_DYN_GET_NEXT ](), config, core, startAt);
1593
1644
  }
1594
- context.processNext = _processNext;
1595
- context.createNew = _createNew;
1645
+ context[_DYN_PROCESS_NEXT ] = _processNext;
1646
+ context[_DYN_CREATE_NEW ] = _createNew;
1596
1647
  return context;
1597
1648
  }
1598
1649
  function createProcessTelemetryUnloadContext(telemetryChain, core, startAt) {
1599
- var config = core.config || {};
1650
+ var config = core[_DYN_CONFIG ] || {};
1600
1651
  var internalContext = _createInternalContext(telemetryChain, config, core, startAt);
1601
1652
  var context = internalContext.ctx;
1602
1653
  function _processNext(unloadState) {
@@ -1609,20 +1660,20 @@
1609
1660
  if (isArray(plugins)) {
1610
1661
  plugins = createTelemetryProxyChain(plugins, config, core, startAt);
1611
1662
  }
1612
- return createProcessTelemetryUnloadContext(plugins || context.getNext(), core, startAt);
1663
+ return createProcessTelemetryUnloadContext(plugins || context[_DYN_GET_NEXT ](), core, startAt);
1613
1664
  }
1614
- context.processNext = _processNext;
1615
- context.createNew = _createNew;
1665
+ context[_DYN_PROCESS_NEXT ] = _processNext;
1666
+ context[_DYN_CREATE_NEW ] = _createNew;
1616
1667
  return context;
1617
1668
  }
1618
1669
  function createProcessTelemetryUpdateContext(telemetryChain, core, startAt) {
1619
- var config = core.config || {};
1670
+ var config = core[_DYN_CONFIG ] || {};
1620
1671
  var internalContext = _createInternalContext(telemetryChain, config, core, startAt);
1621
1672
  var context = internalContext.ctx;
1622
1673
  function _processNext(updateState) {
1623
1674
  return context.iterate(function (plugin) {
1624
- if (isFunction(plugin.update)) {
1625
- plugin.update(context, updateState);
1675
+ if (isFunction(plugin[_DYN_UPDATE ])) {
1676
+ plugin[_DYN_UPDATE ](context, updateState);
1626
1677
  }
1627
1678
  });
1628
1679
  }
@@ -1631,22 +1682,22 @@
1631
1682
  if (isArray(plugins)) {
1632
1683
  plugins = createTelemetryProxyChain(plugins, config, core, startAt);
1633
1684
  }
1634
- return createProcessTelemetryUpdateContext(plugins || context.getNext(), core, startAt);
1685
+ return createProcessTelemetryUpdateContext(plugins || context[_DYN_GET_NEXT ](), core, startAt);
1635
1686
  }
1636
- context.processNext = _processNext;
1637
- context.createNew = _createNew;
1687
+ context[_DYN_PROCESS_NEXT ] = _processNext;
1688
+ context[_DYN_CREATE_NEW ] = _createNew;
1638
1689
  return context;
1639
1690
  }
1640
1691
  function createTelemetryProxyChain(plugins, config, core, startAt) {
1641
1692
  var firstProxy = null;
1642
1693
  var add = startAt ? false : true;
1643
- if (isArray(plugins) && plugins.length > 0) {
1694
+ if (isArray(plugins) && plugins[_DYN_LENGTH ] > 0) {
1644
1695
  var lastProxy_1 = null;
1645
1696
  arrForEach(plugins, function (thePlugin) {
1646
1697
  if (!add && startAt === thePlugin) {
1647
1698
  add = true;
1648
1699
  }
1649
- if (add && thePlugin && isFunction(thePlugin.processTelemetry)) {
1700
+ if (add && thePlugin && isFunction(thePlugin[STR_PROCESS_TELEMETRY ])) {
1650
1701
  var newProxy = createTelemetryPluginProxy(thePlugin, config, core);
1651
1702
  if (!firstProxy) {
1652
1703
  firstProxy = newProxy;
@@ -1665,11 +1716,11 @@
1665
1716
  }
1666
1717
  function createTelemetryPluginProxy(plugin, config, core) {
1667
1718
  var nextProxy = null;
1668
- var hasProcessTelemetry = isFunction(plugin.processTelemetry);
1669
- var hasSetNext = isFunction(plugin.setNextPlugin);
1719
+ var hasProcessTelemetry = isFunction(plugin[STR_PROCESS_TELEMETRY ]);
1720
+ var hasSetNext = isFunction(plugin[_DYN_SET_NEXT_PLUGIN ]);
1670
1721
  var chainId;
1671
1722
  if (plugin) {
1672
- chainId = plugin.identifier + "-" + plugin.priority + "-" + _chainId++;
1723
+ chainId = plugin[_DYN_IDENTIFIER ] + "-" + plugin[STR_PRIORITY ] + "-" + _chainId++;
1673
1724
  }
1674
1725
  else {
1675
1726
  chainId = "Unknown-0-" + _chainId++;
@@ -1701,17 +1752,17 @@
1701
1752
  }
1702
1753
  function _processChain(itemCtx, processPluginFn, name, details, isAsync) {
1703
1754
  var hasRun = false;
1704
- var identifier = plugin ? plugin.identifier : strTelemetryPluginChain;
1755
+ var identifier = plugin ? plugin[_DYN_IDENTIFIER ] : strTelemetryPluginChain;
1705
1756
  var hasRunContext = itemCtx[strHasRunFlags];
1706
1757
  if (!hasRunContext) {
1707
1758
  hasRunContext = itemCtx[strHasRunFlags] = {};
1708
1759
  }
1709
1760
  itemCtx.setNext(nextProxy);
1710
1761
  if (plugin) {
1711
- doPerf(itemCtx[strCore](), function () { return identifier + ":" + name; }, function () {
1762
+ doPerf(itemCtx[STR_CORE ](), function () { return identifier + ":" + name; }, function () {
1712
1763
  hasRunContext[chainId] = true;
1713
1764
  try {
1714
- var nextId = nextProxy ? nextProxy._id : strEmpty;
1765
+ var nextId = nextProxy ? nextProxy._id : STR_EMPTY;
1715
1766
  if (nextId) {
1716
1767
  hasRunContext[nextId] = false;
1717
1768
  }
@@ -1723,7 +1774,7 @@
1723
1774
  hasRun = true;
1724
1775
  }
1725
1776
  if (!nextProxy || !hasNextRun) {
1726
- _throwInternal(itemCtx.diagLog(), 1 , 73 , "Plugin [" + identifier + "] failed during " + name + " - " + dumpObj(error) + ", run flags: " + dumpObj(hasRunContext));
1777
+ _throwInternal(itemCtx[_DYN_DIAG_LOG ](), 1 , 73 , "Plugin [" + identifier + "] failed during " + name + " - " + dumpObj(error) + ", run flags: " + dumpObj(hasRunContext));
1727
1778
  }
1728
1779
  }
1729
1780
  }, details, isAsync);
@@ -1737,17 +1788,17 @@
1737
1788
  return false;
1738
1789
  }
1739
1790
  var pluginState = _getPluginState(plugin);
1740
- if (pluginState.teardown || pluginState[strDisabled]) {
1791
+ if (pluginState[_DYN_TEARDOWN ] || pluginState[STR_DISABLED]) {
1741
1792
  return false;
1742
1793
  }
1743
1794
  if (hasSetNext) {
1744
- plugin.setNextPlugin(nextProxy);
1795
+ plugin[_DYN_SET_NEXT_PLUGIN ](nextProxy);
1745
1796
  }
1746
- plugin.processTelemetry(env, itemCtx);
1797
+ plugin[STR_PROCESS_TELEMETRY ](env, itemCtx);
1747
1798
  return true;
1748
1799
  }
1749
1800
  if (!_processChain(itemCtx, _callProcessTelemetry, "processTelemetry", function () { return ({ item: env }); }, !(env.sync))) {
1750
- itemCtx.processNext(env);
1801
+ itemCtx[_DYN_PROCESS_NEXT ](env);
1751
1802
  }
1752
1803
  }
1753
1804
  function _unloadPlugin(unloadCtx, unloadState) {
@@ -1755,20 +1806,20 @@
1755
1806
  var hasRun = false;
1756
1807
  if (plugin) {
1757
1808
  var pluginState = _getPluginState(plugin);
1758
- var pluginCore = plugin[strCore] || pluginState.core;
1759
- if (plugin && (!pluginCore || pluginCore === unloadCtx[strCore]()) && !pluginState[strTeardown]) {
1760
- pluginState[strCore] = null;
1761
- pluginState[strTeardown] = true;
1762
- pluginState[strIsInitialized] = false;
1763
- if (plugin[strTeardown] && plugin[strTeardown](unloadCtx, unloadState) === true) {
1809
+ var pluginCore = plugin[STR_CORE] || pluginState[STR_CORE ];
1810
+ if (plugin && (!pluginCore || pluginCore === unloadCtx.core()) && !pluginState[_DYN_TEARDOWN ]) {
1811
+ pluginState[STR_CORE ] = null;
1812
+ pluginState[_DYN_TEARDOWN ] = true;
1813
+ pluginState[_DYN_IS_INITIALIZED ] = false;
1814
+ if (plugin[_DYN_TEARDOWN ] && plugin[_DYN_TEARDOWN ](unloadCtx, unloadState) === true) {
1764
1815
  hasRun = true;
1765
1816
  }
1766
1817
  }
1767
1818
  }
1768
1819
  return hasRun;
1769
1820
  }
1770
- if (!_processChain(unloadCtx, _callTeardown, "unload", function () { }, unloadState.isAsync)) {
1771
- unloadCtx.processNext(unloadState);
1821
+ if (!_processChain(unloadCtx, _callTeardown, "unload", function () { }, unloadState[_DYN_IS_ASYNC ])) {
1822
+ unloadCtx[_DYN_PROCESS_NEXT ](unloadState);
1772
1823
  }
1773
1824
  }
1774
1825
  function _updatePlugin(updateCtx, updateState) {
@@ -1776,9 +1827,9 @@
1776
1827
  var hasRun = false;
1777
1828
  if (plugin) {
1778
1829
  var pluginState = _getPluginState(plugin);
1779
- var pluginCore = plugin[strCore] || pluginState.core;
1780
- if (plugin && (!pluginCore || pluginCore === updateCtx[strCore]()) && !pluginState[strTeardown]) {
1781
- if (plugin[strUpdate] && plugin[strUpdate](updateCtx, updateState) === true) {
1830
+ var pluginCore = plugin[STR_CORE] || pluginState[STR_CORE ];
1831
+ if (plugin && (!pluginCore || pluginCore === updateCtx.core()) && !pluginState[_DYN_TEARDOWN ]) {
1832
+ if (plugin[_DYN_UPDATE ] && plugin[_DYN_UPDATE ](updateCtx, updateState) === true) {
1782
1833
  hasRun = true;
1783
1834
  }
1784
1835
  }
@@ -1786,19 +1837,17 @@
1786
1837
  return hasRun;
1787
1838
  }
1788
1839
  if (!_processChain(updateCtx, _callUpdate, "update", function () { }, false)) {
1789
- updateCtx.processNext(updateState);
1840
+ updateCtx[_DYN_PROCESS_NEXT ](updateState);
1790
1841
  }
1791
1842
  }
1792
1843
  return objFreeze(proxyChain);
1793
1844
  }
1794
1845
 
1795
- var strExtensionConfig = "extensionConfig";
1796
-
1797
1846
  function createUnloadHandlerContainer() {
1798
1847
  var handlers = [];
1799
1848
  function _addHandler(handler) {
1800
1849
  if (handler) {
1801
- handlers.push(handler);
1850
+ handlers[_DYN_PUSH ](handler);
1802
1851
  }
1803
1852
  }
1804
1853
  function _runHandlers(unloadCtx, unloadState) {
@@ -1807,7 +1856,7 @@
1807
1856
  handler(unloadCtx, unloadState);
1808
1857
  }
1809
1858
  catch (e) {
1810
- _throwInternal(unloadCtx.diagLog(), 2 , 73 , "Unexpected error calling unload handler - " + dumpObj(e));
1859
+ _throwInternal(unloadCtx[_DYN_DIAG_LOG ](), 2 , 73 , "Unexpected error calling unload handler - " + dumpObj(e));
1811
1860
  }
1812
1861
  });
1813
1862
  handlers = [];
@@ -1829,37 +1878,40 @@
1829
1878
  var _hooks;
1830
1879
  _initDefaults();
1831
1880
  dynamicProto(BaseTelemetryPlugin, _self, function (_self) {
1832
- _self.initialize = function (config, core, extensions, pluginChain) {
1881
+ _self[_DYN_INITIALIZE ] = function (config, core, extensions, pluginChain) {
1833
1882
  _setDefaults(config, core, pluginChain);
1834
1883
  _isinitialized = true;
1835
1884
  };
1836
- _self.teardown = function (unloadCtx, unloadState) {
1837
- var core = _self.core;
1838
- if (!core || (unloadCtx && core !== unloadCtx.core())) {
1885
+ _self[_DYN_TEARDOWN ] = function (unloadCtx, unloadState) {
1886
+ var _a;
1887
+ var core = _self[STR_CORE ];
1888
+ if (!core || (unloadCtx && core !== unloadCtx[STR_CORE ]())) {
1839
1889
  return;
1840
1890
  }
1841
1891
  var result;
1842
1892
  var unloadDone = false;
1843
1893
  var theUnloadCtx = unloadCtx || createProcessTelemetryUnloadContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1844
- var theUnloadState = unloadState || {
1845
- reason: 0 ,
1846
- isAsync: false
1847
- };
1894
+ var theUnloadState = unloadState || (_a = {
1895
+ reason: 0
1896
+ },
1897
+ _a[_DYN_IS_ASYNC ] = false,
1898
+ _a);
1848
1899
  function _unloadCallback() {
1849
1900
  if (!unloadDone) {
1850
1901
  unloadDone = true;
1851
1902
  _unloadHandlerContainer.run(theUnloadCtx, unloadState);
1852
- arrForEach(_hooks, function (fn) {
1903
+ var oldHooks = _hooks;
1904
+ _hooks = [];
1905
+ arrForEach(oldHooks, function (fn) {
1853
1906
  fn.rm();
1854
1907
  });
1855
- _hooks = [];
1856
1908
  if (result === true) {
1857
- theUnloadCtx.processNext(theUnloadState);
1909
+ theUnloadCtx[_DYN_PROCESS_NEXT ](theUnloadState);
1858
1910
  }
1859
1911
  _initDefaults();
1860
1912
  }
1861
1913
  }
1862
- if (!_self[strDoTeardown] || _self[strDoTeardown](theUnloadCtx, theUnloadState, _unloadCallback) !== true) {
1914
+ if (!_self[_DYN__DO_TEARDOWN ] || _self[_DYN__DO_TEARDOWN ](theUnloadCtx, theUnloadState, _unloadCallback) !== true) {
1863
1915
  _unloadCallback();
1864
1916
  }
1865
1917
  else {
@@ -1867,9 +1919,9 @@
1867
1919
  }
1868
1920
  return result;
1869
1921
  };
1870
- _self.update = function (updateCtx, updateState) {
1871
- var core = _self.core;
1872
- if (!core || (updateCtx && core !== updateCtx.core())) {
1922
+ _self[_DYN_UPDATE ] = function (updateCtx, updateState) {
1923
+ var core = _self[STR_CORE ];
1924
+ if (!core || (updateCtx && core !== updateCtx[STR_CORE ]())) {
1873
1925
  return;
1874
1926
  }
1875
1927
  var result;
@@ -1881,7 +1933,7 @@
1881
1933
  function _updateCallback() {
1882
1934
  if (!updateDone) {
1883
1935
  updateDone = true;
1884
- _setDefaults(theUpdateCtx.getCfg(), theUpdateCtx.core(), theUpdateCtx.getNext());
1936
+ _setDefaults(theUpdateCtx.getCfg(), theUpdateCtx.core(), theUpdateCtx[_DYN_GET_NEXT ]());
1885
1937
  }
1886
1938
  }
1887
1939
  if (!_self._doUpdate || _self._doUpdate(theUpdateCtx, theUpdateState, _updateCallback) !== true) {
@@ -1898,30 +1950,30 @@
1898
1950
  _hooks = _hooks.concat(hooks);
1899
1951
  }
1900
1952
  else {
1901
- _hooks.push(hooks);
1953
+ _hooks[_DYN_PUSH ](hooks);
1902
1954
  }
1903
1955
  }
1904
1956
  };
1905
1957
  proxyFunctionAs(_self, "_addUnloadCb", function () { return _unloadHandlerContainer; }, "add");
1906
1958
  });
1907
- _self.diagLog = function (itemCtx) {
1908
- return _getTelCtx(itemCtx).diagLog();
1959
+ _self[_DYN_DIAG_LOG ] = function (itemCtx) {
1960
+ return _getTelCtx(itemCtx)[_DYN_DIAG_LOG ]();
1909
1961
  };
1910
- _self[strIsInitialized] = function () {
1962
+ _self[_DYN_IS_INITIALIZED ] = function () {
1911
1963
  return _isinitialized;
1912
1964
  };
1913
1965
  _self.setInitialized = function (isInitialized) {
1914
1966
  _isinitialized = isInitialized;
1915
1967
  };
1916
- _self[strSetNextPlugin] = function (next) {
1968
+ _self[_DYN_SET_NEXT_PLUGIN ] = function (next) {
1917
1969
  _nextPlugin = next;
1918
1970
  };
1919
- _self.processNext = function (env, itemCtx) {
1971
+ _self[_DYN_PROCESS_NEXT ] = function (env, itemCtx) {
1920
1972
  if (itemCtx) {
1921
- itemCtx.processNext(env);
1973
+ itemCtx[_DYN_PROCESS_NEXT ](env);
1922
1974
  }
1923
- else if (_nextPlugin && isFunction(_nextPlugin.processTelemetry)) {
1924
- _nextPlugin.processTelemetry(env, null);
1975
+ else if (_nextPlugin && isFunction(_nextPlugin[STR_PROCESS_TELEMETRY ])) {
1976
+ _nextPlugin[STR_PROCESS_TELEMETRY ](env, null);
1925
1977
  }
1926
1978
  };
1927
1979
  _self._getTelCtx = _getTelCtx;
@@ -1929,39 +1981,40 @@
1929
1981
  if (currentCtx === void 0) { currentCtx = null; }
1930
1982
  var itemCtx = currentCtx;
1931
1983
  if (!itemCtx) {
1932
- var rootCtx = _rootCtx || createProcessTelemetryContext(null, {}, _self.core);
1984
+ var rootCtx = _rootCtx || createProcessTelemetryContext(null, {}, _self[STR_CORE ]);
1933
1985
  if (_nextPlugin && _nextPlugin[strGetPlugin]) {
1934
- itemCtx = rootCtx.createNew(null, _nextPlugin[strGetPlugin]);
1986
+ itemCtx = rootCtx[_DYN_CREATE_NEW ](null, _nextPlugin[strGetPlugin]);
1935
1987
  }
1936
1988
  else {
1937
- itemCtx = rootCtx.createNew(null, _nextPlugin);
1989
+ itemCtx = rootCtx[_DYN_CREATE_NEW ](null, _nextPlugin);
1938
1990
  }
1939
1991
  }
1940
1992
  return itemCtx;
1941
1993
  }
1942
1994
  function _setDefaults(config, core, pluginChain) {
1943
1995
  if (config) {
1944
- setValue(config, strExtensionConfig, [], null, isNullOrUndefined);
1996
+ setValue(config, STR_EXTENSION_CONFIG, [], null, isNullOrUndefined);
1945
1997
  }
1946
1998
  if (!pluginChain && core) {
1947
- pluginChain = core.getProcessTelContext().getNext();
1999
+ pluginChain = core[_DYN_GET_PROCESS_TEL_CONT0 ]()[_DYN_GET_NEXT ]();
1948
2000
  }
1949
2001
  var nextPlugin = _nextPlugin;
1950
2002
  if (_nextPlugin && _nextPlugin[strGetPlugin]) {
1951
2003
  nextPlugin = _nextPlugin[strGetPlugin]();
1952
2004
  }
1953
- _self.core = core;
2005
+ _self[STR_CORE ] = core;
1954
2006
  _rootCtx = createProcessTelemetryContext(pluginChain, config, core, nextPlugin);
1955
2007
  }
1956
2008
  function _initDefaults() {
1957
2009
  _isinitialized = false;
1958
- _self.core = null;
2010
+ _self[STR_CORE ] = null;
1959
2011
  _rootCtx = null;
1960
2012
  _nextPlugin = null;
1961
2013
  _hooks = [];
1962
2014
  _unloadHandlerContainer = createUnloadHandlerContainer();
1963
2015
  }
1964
2016
  }
2017
+ BaseTelemetryPlugin.__ieDyn=1;
1965
2018
  return BaseTelemetryPlugin;
1966
2019
  }());
1967
2020
 
@@ -2053,6 +2106,7 @@
2053
2106
  });
2054
2107
  return _this;
2055
2108
  }
2109
+ ReactPlugin.__ieDyn=1;
2056
2110
  return ReactPlugin;
2057
2111
  }(BaseTelemetryPlugin));
2058
2112
  var ReactPlugin$1 = ReactPlugin;