@microsoft/1ds-core-js
Advanced tools
Comparing version 3.1.5 to 3.1.6
@@ -8,7 +8,7 @@ { | ||
"type": "text/javascript; charset=utf-8", | ||
"integrity": "sha256-ROeNMgGCYC3RknmcR37Zn8TucZC9g8uNWVWUiDESYdk= sha384-+I4QjoMpsME+nowqoH+FwiKd2H4LA1dimKK76pu5ymKkg6HCIwguGcjdWfOJ5oDA sha512-cP8DjuKYU7JoyUJp49Ya03in9O10T+WVv2vgsiYyxBfcMd/frghAmrL5gPEwSAVQyjVke4YoiUes0sThII65+w==", | ||
"integrity": "sha256-BKfdbTnbqe4Txf+jmGIuNYG+A/udXOa+oF+r4W/kOuA= sha384-QNDXa2WXHXA6ggcgU/PeMKIwbZVUQZcAxrwFki9L57SEnhjAWUtHpnIodmlcU9OG sha512-jbgC9uM2vWpM4us6v7X1l1ANDKUamwzLy3rxFdOFgliAY9Rvui2eqBpS5R0umworpYqhhhR0nwA074qFBKYm1w==", | ||
"hashes": { | ||
"sha256": "ROeNMgGCYC3RknmcR37Zn8TucZC9g8uNWVWUiDESYdk=", | ||
"sha384": "+I4QjoMpsME+nowqoH+FwiKd2H4LA1dimKK76pu5ymKkg6HCIwguGcjdWfOJ5oDA", | ||
"sha512": "cP8DjuKYU7JoyUJp49Ya03in9O10T+WVv2vgsiYyxBfcMd/frghAmrL5gPEwSAVQyjVke4YoiUes0sThII65+w==" | ||
"sha256": "BKfdbTnbqe4Txf+jmGIuNYG+A/udXOa+oF+r4W/kOuA=", | ||
"sha384": "QNDXa2WXHXA6ggcgU/PeMKIwbZVUQZcAxrwFki9L57SEnhjAWUtHpnIodmlcU9OG", | ||
"sha512": "jbgC9uM2vWpM4us6v7X1l1ANDKUamwzLy3rxFdOFgliAY9Rvui2eqBpS5R0umworpYqhhhR0nwA074qFBKYm1w==" | ||
} | ||
@@ -19,7 +19,7 @@ }, | ||
"type": "text/javascript; charset=utf-8", | ||
"integrity": "sha256-BijN3QvSmynl19jCREg4AWDW9d37IWtdeyZoll3aOUQ= sha384-tFxg9jHDG1154aY+xYVzVv4hX13bMIzDN83x+kQale3gWrVj92kNBX/a38sdgcxc sha512-Adka1Z+CAgaH3JUy1D9BPpM+9YdlxTv4rmg6475v4dBkOk79q0PQN91nqA0YOKYB6Fdy6tujIyMfi/n1GfFv+g==", | ||
"integrity": "sha256-aPFN2lFTD5Evkj0htpa7POHCD+HeuNrFx9R50ElgduY= sha384-oSvoSiACXPTTOdlsYeanKTI1nxOtGEzCNl9qxaNG4AK/Cx3kmpoYle/fnAJMq2x7 sha512-BYT8FSQPW17Z7IsGAn5xIFsddd0xUTuBqLQ6IiuxiKsUSKsVFMluxE2RssigItPdJ70AziwOVzSK/OALrcPcQg==", | ||
"hashes": { | ||
"sha256": "BijN3QvSmynl19jCREg4AWDW9d37IWtdeyZoll3aOUQ=", | ||
"sha384": "tFxg9jHDG1154aY+xYVzVv4hX13bMIzDN83x+kQale3gWrVj92kNBX/a38sdgcxc", | ||
"sha512": "Adka1Z+CAgaH3JUy1D9BPpM+9YdlxTv4rmg6475v4dBkOk79q0PQN91nqA0YOKYB6Fdy6tujIyMfi/n1GfFv+g==" | ||
"sha256": "aPFN2lFTD5Evkj0htpa7POHCD+HeuNrFx9R50ElgduY=", | ||
"sha384": "oSvoSiACXPTTOdlsYeanKTI1nxOtGEzCNl9qxaNG4AK/Cx3kmpoYle/fnAJMq2x7", | ||
"sha512": "BYT8FSQPW17Z7IsGAn5xIFsddd0xUTuBqLQ6IiuxiKsUSKsVFMluxE2RssigItPdJ70AziwOVzSK/OALrcPcQg==" | ||
} | ||
@@ -26,0 +26,0 @@ } |
/*! | ||
* 1DS JS SDK Core, 3.1.5 | ||
* 1DS JS SDK Core, 3.1.6 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
* (Microsoft Internal Only) | ||
*/ | ||
var e=this,n=function(s){"use strict";var a="function",u="object",n="undefined",f="prototype",o="hasOwnProperty",t=Object,l=t[f],r=t.assign,i=t.create,e=t.defineProperty,c=l[o];function d(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function g(e){throw new TypeError(e)}function v(e){if(i)return i(e);if(null==e)return{};var n=typeof e;function t(){}return n!==u&&n!==a&&g("Object prototype may only be an Object:"+e),t[f]=e,new t}(d()||{}).Symbol,(d()||{}).Reflect;var p=r||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])l[o].call(n,i)&&(e[i]=n[i]);return e},h=function(e,n){return(h=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[o](t)&&(e[t]=n[t])})(e,n)};function m(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&g("Class extends value "+n+" is not a constructor or null"),h(e,n),e[f]=null===n?v(n):(t[f]=n[f],new t)}var y={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},C="constructor",S="prototype",x="function",b="_dynInstFuncs",T="_isDynProxy",w="_dynClass",I="_dynInstChk",P=I,E="_dfOpts",N="_unknown_",A="__proto__",k="useBaseInst",L="setInstFuncs",M=Object,F=M.getPrototypeOf,O=0;function R(e,n){return e&&M[S].hasOwnProperty.call(e,n)}function D(e){return e&&(e===M[S]||e===Array[S])}function _(e){return D(e)||e===Function[S]}function j(e){if(e){if(F)return F(e);if(e=e[A]||e[S]||(e[C]?e[C][S]:null))return e}return null}function U(e,n){var t=[],r=M.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&R(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function V(e,n,t){return n!==C&&typeof e[n]===x&&(t||R(e,n))}function z(e){throw new TypeError("DynamicProto: "+e)}function B(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function K(e,n){return R(e,S)?e.name||n||N:((e||{})[C]||{}).name||n||N}function H(e,r,n,t){R(e,S)||z("theClass is an invalid class definition.");var i=e[S];!function(e){if(F)for(var n=[],t=j(r);t&&!_(t)&&!B(n,t);){if(t===e)return 1;n.push(t),t=j(t)}}(i)&&z("["+K(e)+"] is not in class hierarchy of ["+K(r)+"]");var o=null;R(i,w)?o=i[w]:(o="_dynCls$"+K(e,"_")+"$"+O,O++,i[w]=o);var a=H[E],u=!!a[k];u&&t&&t[k]!==undefined&&(u=!!t[k]);var l,s,c,f,d,g,e=(s={},U(l=r,function(e){!s[e]&&V(l,e,!1)&&(s[e]=l[e])}),s);n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[T]&&o&&!1!==(r=e[b]||{})[P]&&(i=(r[n[w]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};U(t,function(e){i[e]=r(n,t,e)});for(var a=j(e),u=[];a&&!_(a)&&!B(u,a);)U(a,function(e){!i[e]&&V(a,e,!F)&&(i[e]=r(n,a,e))}),u.push(a),a=j(a);return i}(i,r,e,u)),a=!!F&&!!a[L],c=i,o=o,f=r,d=e,t=!1!==(a=a&&t?!!t[L]:a),D(c)||(a=f[b]=f[b]||{},g=a[o]=a[o]||{},!1!==a[P]&&(a[P]=!!t),U(f,function(e){var t,r,i;V(f,e,!1)&&f[e]!==d[e]&&(g[e]=f[e],delete f[e],R(c,e)&&(!c[e]||c[e][T])||(c[e]=(t=c,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&R(t,w)){var o=e[b]||{};if((i=(o[t[w]]||{})[n])||z("Missing ["+n+"] "+x),!i[I]&&!1!==o[P]){for(var a=!R(e,n),u=j(e),l=[];a&&u&&!_(u)&&!B(l,u);){var s=u[n];if(s){a=s===r;break}l.push(u),u=j(u)}try{a&&(e[n]=i),i[I]=1}catch(c){o[P]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?j(t)[e]:n)!==x&&z("["+e+"] is not a "+x),n)).apply(this,arguments)})[T]=1,i)))}))}H[E]={setInstFuncs:!0,useBaseInst:!0},s.LoggingSeverity=void 0,(Ht=s.LoggingSeverity||(s.LoggingSeverity={}))[Ht.CRITICAL=1]="CRITICAL",Ht[Ht.WARNING=2]="WARNING";var W={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103},G="on",q="attachEvent",J="addEventListener",X="detachEvent",Q="removeEventListener",Z=e;function $(e){return l.toString.call(e)}function Y(e,n){return typeof e===n}function ee(e){return e===undefined||typeof e===n}function ne(e){return null===e||ee(e)}function te(e){return!ne(e)}function re(e,n){return e&&c.call(e,n)}function ie(e){return typeof e===u}function oe(e){return typeof e===a}function ae(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!ne(e))try{ne(e[J])?ne(e[q])||(e[q](G+n,t),i=!0):(e[J](n,t,r),i=!0)}catch(o){}return i}function ue(e,n,t,r){if(void 0===r&&(r=!1),!ne(e))try{ne(e[Q])?ne(e[X])||e[X](G+n,t):e[Q](n,t,r)}catch(i){}}function le(e,n){if(e)for(var t in e)c.call(e,t)&&n.call(e,t,e[t])}function se(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function ce(e,n){return!(!e||!n||!~e.indexOf(n))}function fe(e){return"[object Date]"===$(e)}function de(e){return"[object Array]"===$(e)}function ge(e){return"[object Error]"===$(e)}function ve(e){return"string"==typeof e}function pe(e){return"number"==typeof e}function he(e){return"boolean"==typeof e}function me(e){if(fe(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function ye(e,n,t){for(var r=e.length,i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}function Ce(e,n,t){for(var r=e.length,i=Math.max(0<=(t=t||0)?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i;return-1}function Se(e,n,t){for(var r=e.length,i=t||e,o=Array(r),a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e));return o}function xe(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r}function be(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var Te=!{toString:null}.propertyIsEnumerable("toString"),we=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Ie(e){var n=typeof e;n===a||n===u&&null!==e||g("objKeys called on non-object");var t,r=[];for(t in e)e&&c.call(e,t)&&r.push(t);if(Te)for(var i=we.length,o=0;o<i;o++)e&&c.call(e,we[o])&&r.push(we[o]);return r}function Pe(e,n,t,r){if(Z)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),Z(e,n,i),!0}catch(o){}return!1}function Ee(){var e=Date;return e.now?e.now():(new e).getTime()}function Ne(e){return ge(e)?e.name:""}function Ae(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function ke(e,n,t){var r;return e?!(r=e[n])&&ne(r)&&(r=ee(t)?{}:t,e[n]=r):r=ee(t)?{}:t,r}function Le(e){return!e}function Me(e){return!!e}function Fe(e){throw Error(e)}var Oe="window",Re="document",De="navigator",_e="location",je="console",Ue="performance",Ve="JSON",ze="crypto",Be="msCrypto",Ke="msie",He="trident/",We=null,Ge=null,qe=!1;function Je(e){var n=d();return n&&n[e]?n[e]:e===Oe&&Xe()?window:null}function Xe(){return!(typeof window!==u||!window)}function Qe(){return Xe()?window:Je(Oe)}function Ze(){return!(typeof document!==u||!document)}function $e(){return Ze()?document:Je(Re)}function Ye(){return!(typeof navigator!==u||!navigator)}function en(){return Ye()?navigator:Je(De)}function nn(){return!(typeof history!==u||!history)}function tn(e){return e&&qe&&(e=Je("__mockLocation"))?e:typeof location===u&&location?location:Je(_e)}function rn(){return typeof console!==n?console:Je(je)}function on(){return Je(Ue)}function an(){return!!(typeof JSON===u&&JSON||null!==Je(Ve))}function un(){return an()?JSON||Je(Ve):null}function ln(){return Je(ze)}function sn(){return Je(Be)}function cn(){var e=en();return!(!e||!e.product)&&"ReactNative"===e.product}function fn(){var e=en();return!e||e.userAgent===Ge&&null!==We||(e=((Ge=e.userAgent)||"").toLowerCase(),We=ce(e,Ke)||ce(e,He)),We}function dn(e){var n=Object[f].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":an()&&(t=un().stringify(e)),n+t}function gn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var vn=(pn.dataType="MessageData",pn);function pn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",an()&&(e=un().stringify(r)),e=(n?" message:"+gn(n):"")+(r?" props:"+gn(e):""),this.message+=e}function hn(e,n){return(e||{}).logger||new mn(n)}var mn=function Lr(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};H(Lr,this,function(o){function e(e,n){return ne(e=t[e])?n:e}ne(t)&&(t={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){if(t=new vn(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw t;ee(t.message)||(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!a[i]&&r>=s.LoggingSeverity.WARNING&&(o.warnToConsole(t.message),a[i]=!0)):r>=s.LoggingSeverity.WARNING&&o.warnToConsole(t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){var n,t=rn();t&&(n="log",oe(t[n=t.warn?"warn":n])&&t[n](e))},o.resetInternalMessageCount=function(){i=0,a={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,a[r]?t=!1:a[r]=!0,t&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++),i===o.maxInternalMessageLimit()&&(n=new vn(W.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},yn=(Cn.ParentContextKey="parent",Cn.ChildrenContextKey="childEvts",Cn);function Cn(e,i,n){var t,o=this,a=!1;o.start=Ee(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},oe(i)&&(a=Pe(o,"payload",function(){return!t&&oe(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===Cn.ParentContextKey||e===Cn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===Cn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===Cn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(Cn.ChildrenContextKey);if(de(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Ee()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&oe(i)&&(o.payload=i())}}var Sn=function Mr(n){this.ctx={},H(Mr,this,function(t){t.create=function(e,n,t){return new yn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},xn="CoreUtils.doPerf";function bn(e,n,t,r,i){if(e){var o=e;if(o=oe(o.getPerfMgr)?o.getPerfMgr():o){var a,u=void 0,e=o.getCtx(xn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(yn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(yn.ChildrenContextKey))||(a=[],e.setCtx(yn.ChildrenContextKey,a)),a.push(u))),o.setCtx(xn,u),t(u)}catch(l){u&&u.setCtx&&u.setCtx("exception",l)}finally{u&&o.fire(u),o.setCtx(xn,e)}}}return t()}var Tn=function(i,n){var o=this,a=null,u=oe(i.processTelemetry),l=oe(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";bn(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),l&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(s.LoggingSeverity.CRITICAL,W.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+n),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function wn(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&oe(o.processTelemetry)&&(o=new Tn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var In=function Fr(e,i,t,n){var r,o,a,u,l=this,s=null;null!==n&&(e&&oe(e.getPlugin)?s=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),wn(r,n)}(e,l,n||e.getPlugin()):n?(r=l,a=e,u=!1,(o=n)&&e&&(a=[],ye(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),s=wn(a,r)):ee(n)&&(s=wn(e,l))),l.core=function(){return t},l.diagLog=function(){return hn(t,i)},l.getCfg=function(){return i},l.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},l.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=l.getExtCfg(e,null))&&!ne(e[n])?r=e[n]:i&&!ne(i[n])&&(r=i[n]),ne(r)?t:r},l.hasNext=function(){return null!=s},l.getNext=function(){return s},l.setNext=function(e){s=e},l.processNext=function(e){var n=s;n&&(s=n.getNext(),n.processTelemetry(e,l))},l.createNew=function(e,n){return new Fr((e=void 0===e?null:e)||s,i,t,n)}},Pn="extensionConfig",En="getPlugin",Nn=(An.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},An);function An(){var o=this,a=!1,u=null,l=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){l=e},o.processNext=function(e,n){n?n.processNext(e):l&&oe(l.processTelemetry)&&l.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=u||new In(null,{},o.core),n=l&&l[En]?e.createNew(null,l[En]):e.createNew(null,l)),n},o._baseTelInit=function(e,n,t,r){e&&Ae(e,Pn,[],null,ne),!r&&n&&(r=n.getProcessTelContext().getNext());var i=l;l&&l[En]&&(i=l[En]()),o.core=n,u=new In(r,e,n,i),a=!0}}var kn="processTelemetry",Ln="priority",Mn="setNextPlugin",Fn="isInitialized";function On(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&oe(r[Mn])&&oe(o[kn])&&r[Mn](o),oe(o[Fn])&&o[Fn]()||e.push(o),r=o,i=i.getNext())}ye(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function Rn(e){return e.sort(function(e,n){var t=0,r=oe(n[kn]);return oe(e[kn])?t=r?e[Ln]-n[Ln]:1:r&&(t=-1),t})}var Dn,_n=(m(jn,Dn=Nn),jn._staticInit=(Pe(vr=jn.prototype,"ChannelControls",vr.getChannelControls),void Pe(vr,"channelQueue",vr.getChannelControls)),jn);function jn(){var l,r=Dn.call(this)||this;function s(e){e&&0<e.length&&(ye(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&Fe("Channel has invalid priority"+e.identifier)}),l.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,H(jn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){l&&ye(l,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return l},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,l=[],e&&ye(e,s),i&&(o=[],ye(i,function(e){500<e.priority&&o.push(e)}),s(o)),ye(l,function(e){return On(new In(e,n,t),r)}))}}),r}var Un="toGMTString",Vn="toUTCString",zn="cookie",Bn="expires",Kn="enabled",Hn="isCookieUseDisabled",Wn="disableCookiesUsage",Gn="_ckMgr",qn="",Jn=null,Xn=null,Qn=null,Zn=$e(),$n={},Yn={};function et(e){return!e||e.isEnabled()}function nt(e,n){var t,r;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[Gn]||tt(n)),t||(r=n,n=(e||{}).logger,(e=tt[Gn]||Yn[Gn])||(e=tt[Gn]=tt(r,n),Yn[Gn]=e),t=e),t}function tt(e,r){var n,t,l=(Ae(t=(n=e||Yn).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,te,ne),Ae(t,"path",n.cookiePath||"/",null,ne),ne(t[Kn])&&(e=void 0,ee(n[Hn])||(e=!n[Hn]),ee(n[Wn])||(e=!n[Wn]),t[Kn]=e),t),s=l.path||"/",c=l.domain,i=!1!==l[Kn],f={isEnabled:function(){var e=i&&rt(r),n=Yn[Gn];return e&&n&&f!==n?et(n):e},setEnabled:function(e){i=!1!==e},set:function(e,n,t,r,i){var o,a,u;et(f)&&(o={},-1!=(u=(a=be(n||qn)).indexOf(";"))&&(a=be(n.substring(0,u)),o=it(n.substring(1+u))),Ae(o,"domain",r||c,Me,ee),ne(t)||(u=fn(),!ee(o[Bn])||0<(n=Ee()+1e3*t)&&((r=new Date).setTime(n),Ae(o,Bn,ot(r,u?Un:Vn)||ot(r,u?Un:Vn)||qn,Me)),u||Ae(o,"max-age",qn+t,null,ee)),(t=tn())&&"https:"===t.protocol&&(Ae(o,"secure",null,null,ee),(Xn=null===Xn?!lt((en()||{}).userAgent):Xn)&&Ae(o,"SameSite","None",null,ee)),Ae(o,"path",i||s,null,ee),(l.setCookie||ut)(e,at(a,o)))},get:function(e){var n=qn;return et(f)?(l.getCookie||function(e){var n,t=qn;return Zn&&(n=Zn[zn]||qn,Qn!==n&&($n=it(n),Qn=n),t=be($n[e]||qn)),t})(e):n},del:function(e,n){et(f)&&f.purge(e,n)},purge:function(e,n){var t;rt(r)&&((t={}).path=n||"/",t[Bn]="Thu, 01 Jan 1970 00:00:01 GMT",fn()||(t["max-age"]="0"),(l.delCookie||ut)(e,at(qn,t)))}};return f[Gn]=f}function rt(e){if(null===Jn){Jn=!1;try{Jn=(Zn||{})[zn]!==undefined}catch(n){e&&e.throwInternal(s.LoggingSeverity.WARNING,W.CannotAccessCookie,"Cannot access document.cookie - "+Ne(n),{exception:dn(n)})}}return Jn}function it(e){var t={};return e&&e.length&&ye(be(e).split(";"),function(e){var n;(e=be(e||qn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[be(e.substring(0,n))]=be(e.substring(1+n)))}),t}function ot(e,n){return oe(e[n])?e[n]():null}function at(e,n){var t=e||qn;return le(n,function(e,n){t+="; "+e+(ne(n)?qn:"="+n)}),t}function ut(e,n){Zn&&(Zn[zn]=e+"="+n)}function lt(e){return!(!ve(e)||!ce(e,"CPU iPhone OS 12")&&!ce(e,"iPad; CPU OS 12")&&!(ce(e,"Macintosh; Intel Mac OS X 10_14")&&ce(e,"Version/")&&ce(e,"Safari"))&&(!ce(e,"Macintosh; Intel Mac OS X 10_14")||!se(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!ce(e,"Chrome/5")&&!ce(e,"Chrome/6")&&(!ce(e,"UnrealEngine")||ce(e,"Chrome"))&&!ce(e,"UCBrowser/12")&&!ce(e,"UCBrowser/11"))}var st,ct="_notificationManager",ft=function Or(){var n,u,l,t,r,s=!1;H(Or,this,function(a){a._extensions=[],u=new _n,a.logger=v({throwInternal:function(e,n,t,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),n=[],a.isInitialized=function(){return s},a.initialize=function(e,n,r,t){a.isInitialized()&&Fe("Core should not be initialized more than once"),e&&!ne(e.instrumentationKey)||Fe("Please provide instrumentation key"),l=t,a[ct]=t,a.config=e||{},e.extensions=ne(e.extensions)?[]:e.extensions,ke(e,Pn).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,n.concat(e.extensions));var t=Rn(t),i=[],o={};ye(t,function(e){(ne(e)||ne(e.initialize))&&Fe("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(ne(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=Rn(t),a._extensions=t,On(new In([u],e,a),t),On(new In(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&Fe("No channels available"),s=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){Ae(e,"iKey",a.config.instrumentationKey,null,Le),Ae(e,"time",me(new Date),null,Le),Ae(e,"ver","4.0",null,ne),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new In(n,a.config,a)},a.getNotifyMgr=function(){return l||(l=v({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[ct]=l),l},a.getCookieMgr=function(){return r=r||tt(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&(t=new Sn(a.getNotifyMgr())),t},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(ye(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},dt=function Rr(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;H(Rr,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=Ce(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=Ce(i.listeners,e)},i.eventsSent=function(n){ye(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){ye(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){ye(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||ye(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},gt=(m(vt,st=ft),vt);function vt(){var e=st.call(this)||this;return H(vt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],y.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new mn(e),r||new dt(e))},t.track=function(e){bn(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),Fe("Invalid telemetry item")),function(){if(ne(e.name))throw n(e),Error("telemetry name required")}(),i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return setInterval(function(){var e=t.logger?t.logger.queue:[];ye(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:me(new Date),baseType:vn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e=e&&0<e?e:1e4)}}),e}var pt=4294967296,ht=4294967295,mt=!1,yt=123456789,Ct=987654321;function St(e){e<0&&(e>>>=0),yt=123456789+e&ht,Ct=987654321-e&ht,mt=!0}function xt(){try{var e=2147483647&Ee();St((Math.random()*pt^e)+e)}catch(n){}}function bt(e){return 0<e?Math.floor(Tt()/ht*(e+1))>>>0:0}function Tt(e){var n=(n=ln()||sn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&ht:fn()?(mt||xt(),wt()&ht):Math.floor(pt*Math.random()|0);return e||(n>>>=0),n}function wt(e){var n=((Ct=36969*(65535&Ct)+(Ct>>16)&ht)<<16)+(65535&(yt=18e3*(65535&yt)+(yt>>16)&ht))>>>0&ht|0;return e||(n>>>=0),n}function It(e,n){var t=!1,r=Qe();return r&&(t=ae(r,e,n),t=ae(r.body,e,n)||t),(r=$e())&&Lt.Attach(r,e,n)||t}function Pt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(kt,function(e){var n=0|bt(15);return("x"===e?n:3&n|8).toString(16)})}function Et(){var e=on();return e&&e.now?e.now():Ee()}function Nt(e){void 0===e&&(e=22);for(var n=Tt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Tt()<<2&4294967295|3&n)>>>0,t=0);return r}function At(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=Tt())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&Tt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var kt=/[xy]/g,Lt={Attach:ae,AttachEvent:ae,Detach:ue,DetachEvent:ue},Mt={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},Ft={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},Ot={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},Rt=p(p({},W),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),Dt="3.1.5",_t="1DS-Web-JS-"+Dt,jt=((Sr={})[0]=Ot.Unspecified,Sr[2]=Ot.Double,Sr[1]=Ot.String,Sr[3]=Ot.Bool,Sr[4098]=Ot.Double,Sr[4097]=Ot.String,Sr[4099]=Ot.Bool,Sr),Ut=null,Vt=null,zt=null;function Bt(e,n){var t,r=!1;if(e&&((r=n in e)||(t=e.prototype)&&(r=n in t),!r))try{r=!ee((new e)[n])}catch(i){}return r}var Kt=!!$e(),Ht=!!Qe();function Wt(e){return!(""===e||ne(e))}function Gt(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function qt(){return Vt=null===Vt?Ye()&&!!en().sendBeacon:Vt}function Jt(){return typeof XMLHttpRequest!==undefined}function Xt(){return zt=null===zt?!(ee(Uint8Array)||!ee(e=en())&&e.userAgent&&(~(e=e.userAgent.toLowerCase()).indexOf("safari")||~e.indexOf("firefox"))&&!~e.indexOf("chrome")||cn()):zt;var e}function Qt(e){return!!(e&&pe(e)&&Ft.Normal<=e&&e<=Ft.Immediate)}function Zt(e,n,t){if(!n&&!Wt(n)||"string"!=typeof e)return null;if("string"==(e=typeof n)||"number"==e||"boolean"==e||de(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(ne(n.value)||""===n.value||!ve(n.value)&&!pe(n.value)&&!he(n.value)&&!de(n.value))return null}else n={value:t?JSON.stringify(n):n};if(de(n.value)&&!sr(n.value))return null;if(!ne(n.kind)){if(de(n.value)||!lr(n.kind))return null;n.value=n.value.toString()}return n}function $t(){return Ut=null===Ut&&(Ut=typeof XDomainRequest!==undefined)&&Jt()?Ut&&!Bt(XMLHttpRequest,"withCredentials"):Ut}function Yt(e,n,t){var r=-1;return ee(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(e=jt[dr(e)]||-1,-1!==r&&-1!==e?r|=e:e===Ot.Double&&(r=e))),r}function er(){nt(null).setEnabled(!1)}function nr(e,n,t){rt(null)&&nt(null).set(e,n,86400*t,null,"/")}function tr(e){rt(null)&&nt(null).del(e)}function rr(e){return rt(null)?ir(nt(null),e):""}function ir(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function or(e){void 0===e&&(e="D");var n=Pt();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function ar(e,n,t,r,i){var o={},a=!1,u=0,l=arguments.length,s=Object[f],c=arguments;for("[object Boolean]"===s.toString.call(c[0])&&(a=c[0],u++);u<l;u++)le(c[u],function(t,e){a&&e&&ie(e)?de(e)?(o[t]=o[t]||[],ye(e,function(e,n){e&&ie(e)?o[t][n]=ar(!0,o[t][n],e):o[t][n]=e})):o[t]=ar(!0,o[t],e):o[t]=e});return o}var ur=Et;function lr(e){return e===Mt.NotSet||e>Mt.NotSet&&e<=Mt.Pii_IPV4AddressLegacy||e===Mt.CustomerContent_GenericContent}function sr(e){return 0<e.length}function cr(e){var n=It("beforeunload",e),n=It("unload",e)||n;return It("pagehide",e)||n}function fr(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=ur()}function dr(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===u&&(t=4,de(e)?(t=4096,0<e.length&&(t|=dr(e[0]))):re(e,"value")&&(t=8192|dr(e.value)))),t}var gr,e={Version:Dt,FullVersionString:_t,strUndefined:n,strObject:u,Undefined:n,arrForEach:ye,arrIndexOf:Ce,arrMap:Se,arrReduce:xe,objKeys:Ie,toISOString:me,isReactNative:cn,isString:ve,isNumber:pe,isBoolean:he,isFunction:oe,isArray:de,isObject:ie,strTrim:be,isDocumentObjectAvailable:Kt,isWindowObjectAvailable:Ht,isValueAssigned:Wt,getTenantId:Gt,isBeaconsSupported:qt,isUint8ArrayAvailable:Xt,isLatency:Qt,sanitizeProperty:Zt,getISOString:me,useXDomainRequest:$t,getCommonSchemaMetaData:Yt,cookieAvailable:rt,disallowsSameSiteNone:lt,setCookie:nr,deleteCookie:tr,getCookie:rr,createGuid:or,extend:ar,getTime:ur,isValueKind:lr,isArrayValid:sr,objDefineAccessors:Pe,addPageUnloadEventListener:cr,setProcessTelemetryTimings:fr,addEventHandler:It,getFieldValueType:dr,strEndsWith:se,objForEachKey:le},vr={_canUseCookies:undefined,isTypeof:Y,isUndefined:ee,isNullOrUndefined:ne,hasOwnProperty:re,isFunction:oe,isObject:ie,isDate:fe,isArray:de,isError:ge,isString:ve,isNumber:pe,isBoolean:he,toISOString:me,arrForEach:ye,arrIndexOf:Ce,arrMap:Se,arrReduce:xe,strTrim:be,objCreate:v,objKeys:Ie,objDefineAccessors:Pe,addEventHandler:It,dateNow:Ee,isIE:fn,disableCookies:er,newGuid:Pt,perfNow:Et,newId:Nt,randomValue:bt,random32:Tt,mwcRandomSeed:function(e){e?St(e):xt()},mwcRandom32:wt,generateW3CId:At},pr="version",hr="properties";function mr(){var e=gr.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",H(mr,e,function(a,u){a.initialize=function(t,r,i,o){bn(a,function(){return"AppInsightsCore.initialize"},function(){if(t){t.endpointUrl||(t.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var e=t.propertyStorageOverride;if(e&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");t.channels&&ye(t.channels,function(e){e&&ye(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,a.pluginVersionStringArr.push(e))})})}a.getWParam=function(){return"undefined"!=typeof document?0:-1},r&&ye(r,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,a.pluginVersionStringArr.push(e))}),a.pluginVersionString=a.pluginVersionStringArr.join(";");try{u.initialize(t,r,i,o)}catch(n){a.logger.throwInternal(s.LoggingSeverity.CRITICAL,Rt.ErrorProvidedChannels,"Channels must be provided through config.channels only")}a.pollInternalLogs("InternalLog")},function(){return{config:t,extensions:r,logger:i,notificationManager:o}})},a.track=function(t){bn(a,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=ur(),Qt(n.latency)||(n.latency=Ft.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=_t,(e=n.baseData=n.baseData||{})[hr]||(e[hr]={}),(e=e[hr])[pr]||(e[pr]=""),""!==a.pluginVersionString&&(e[pr]=a.pluginVersionString)),u.track(n)},function(){return{item:t}},!t.sync)}}),e}var yr,p=(m(mr,gr=gt),mr);function Cr(){var e=yr.call(this)||this;return H(Cr,e,function(o,a){o.initialize=function(e,n,t,r){e&&(e.endpointUrl||(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/")),o.getWParam=function(){return Kt?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(s.LoggingSeverity.CRITICAL,Rt.ErrorProvidedChannels,"Channels must be provided through config.channels only")}},o.track=function(e){var n=e;n&&((e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=_t),a.track(n)}}),e}var Sr=(m(Cr,yr=ft),Cr),xr=oe;function br(n){var a=0,u=null,e=[];function i(t,r,i,o){e.push(function(){var e;try{(e=1===a?xr(t)?t(u):u:xr(r)?r(u):u)instanceof br?e.then(i,o):(2!==a||xr(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<e.length&&(r=e.slice(),e=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(u=e,a=1,l())}function r(e){0===a&&(u=e,a=2,l())}H(br,this,function(n){n.then=function(t,r){return new br(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),function(){if(!xr(n))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{n(t,r)}catch(e){r(e)}}()}var Tr=(br.resolve=function(r){return r instanceof br?r:r&&xr(r.then)?new br(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new br(function(e){e(r)})},br.reject=function(t){return new br(function(e,n){n(t)})},br.all=function(u){if(u&&u.length)return new br(function(r,e){try{for(var i=[],o=0,n=0;n<u.length;n++){var t=u[n];t&&xr(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},br.race=function(i){return new br(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&xr(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})},br),wr=0,Ir=[],Pr=[],Er=[];function Nr(){return(new Date).getTime()}function Ar(e,n){var h=0,m=(e||"<unnamed>")+"."+wr;function y(e){var n=d();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+m+"] "+e)}function C(e){n&&n.warnToConsole("ESPromiseScheduler["+m+"] "+e)}wr++,H(Ar,this,function(e){var g=null,v=0;function p(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(t,e,u){var i=m+"."+v;v++,e&&(i+="-("+e+")");var o,a,n,r=i+"{"+h+"}";return h++,(e={evt:null,tm:Nr(),id:r,isRunning:!1,isAborted:!1}).evt=g?(o=e,a=g,n=new Tr(function(n,t){var e=Nr()-a.tm,r=a.id;y("["+i+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+Pr.length+"] waiting and ["+Ir.length+"] running"),o.abort=function(e){o.abort=null,p(Pr,i),o.isAborted=!0,t(Error(e))},a.evt.then(function(e){p(Pr,i),d(o).then(n,t)},function(e){p(Pr,i),d(o).then(n,t)})}),Pr.push(o),n):d(e),(g=e).evt._schId=r,e.evt;function l(e){for(var n=Nr(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",C(o),e.splice(i,1),r--):i++}}function s(e,n){var t,r=!1,i=p(Ir,e);i||(i=p(Er,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Nr()-i.tm,n?r?C("Timed out event ["+e+"] finally complete -- "+t+" ms"):y("Promise ["+e+"] Complete -- "+t+" ms"):(Er.push(i),C("Event ["+e+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+e+"] from running queue"),g&&g.id===e&&(g=null),l(Ir),l(Pr),l(Er)}function c(n,t){return function(e){return s(n,!0),t&&t(e),e}}function f(r,o){var a=r.id;return new Tr(function(n,t){y("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,s(a,!1),t(Error(e))};var e=o(a);e instanceof Tr?(u&&(r.to=setTimeout(function(){s(a,!1),t(Error("Timed out after ["+u+"] ms"))},u)),function i(n,e,t,r){e.then(function(e){return e instanceof Tr?(y("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):c(n,t)(e)},c(n,r))}(a,e,function(e){y("Event ["+a+"] Resolving after "+(Nr()-r.tm)+" ms"),n(e)},t)):(y("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function d(e){var n=Nr();return e.wTm=n-e.tm,e.tm=n,e.isAborted?Tr.reject(Error("["+i+"] was aborted")):(Ir.push(e),f(e,t))}}})}function kr(e){var l=this,o={},a=[],u=[];function s(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(ve(e)&&ve(n))if(0<u.length){for(var r=0;r<u.length;r++)if(u[r].handleField(e,n)){i={canHandle:!0,fieldHandler:u[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function c(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!ne(i.kind)){if(4096==(4096&r)||!lr(i.kind))return null;i.value=i.value.toString()}return function u(r,i,o,e,n){var t,a;return n&&r&&(t=r.getSanitizer(i,o,e,n.kind,n.propertyType))&&(4===e?(a={},le(n.value,function(e,n){var t;Wt(n)&&(t=f(0,0,n),(t=u(r,i+"."+o,e,dr(n),t))&&(a[e]=t.value))}),n.value=a):n=t.call(l,e={path:i,name:o,type:e,prop:n,sanitizer:l})),n}(e.fieldHandler,n,t,r,i)}function f(e,n,t){return Wt(t)?{value:t}:null}e&&u.push(e),l.addSanitizer=function(e){e&&(a.push(e),o={})},l.addFieldSanitizer=function(e){e&&(u.push(e),o={})},l.handleField=function(e,n){return!!(n=s(e,n))&&n.canHandle},l.value=function(e,n,t,r){var i=s(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!ve(n)||ne(t)||""===t)return null;var o=null,a=dr(t);if(8192==(8192&a)){var u=-8193&a;if(!Wt((o=t).value)||1!=u&&2!=u&&3!=u&&4096!=(4096&u))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=f(0,0,t):4===a&&(o=f(0,0,r?JSON.stringify(t):t));if(o)return c(i,e,n,a,o,r)}return null},l.property=function(e,n,t,r){var i=s(e,n);if(!i||!i.canHandle)return null;if(!ve(n)||ne(t)||!Wt(t.value))return null;var o=dr(t.value);return 0===o?null:c(i,e,n,o,t,r)}}Ar.incomplete=function(){return Ir},Ar.waitingToStart=function(){return Pr},gt=Ar,kr.getFieldType=dr,ft=kr,s.AppInsightsCore=p,s.BaseCore=Sr,s.BaseTelemetryPlugin=Nn,s.CoreUtils=vr,s.DiagnosticLogger=mn,s.ESPromise=Tr,s.ESPromiseScheduler=gt,s.EventHelper=Lt,s.EventLatency=Ft,s.EventPersistence={Normal:1,Critical:2},s.EventPropertyType=Ot,s.EventsDiscardedReason=y,s.FullVersionString=_t,s.MinChannelPriorty=100,s.NotificationManager=dt,s.PerfEvent=yn,s.PerfManager=Sn,s.ProcessTelemetryContext=In,s.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},s.Undefined=n,s.Utils=e,s.ValueKind=Mt,s.ValueSanitizer=ft,s.Version=Dt,s._ExtendedInternalMessageId=Rt,s.addEventHandler=It,s.addPageHideEventListener=function(t){var e=It("pagehide",t);return It("visibilitychange",function(e){var n=$e();t&&n&&"hidden"===n.visibilityState&&t(e)})||e},s.addPageShowEventListener=function(t){var e=It("pageshow",t);return It("visibilitychange",function(e){var n=$e();t&&n&&"visible"===n.visibilityState&&t(e)})||e},s.addPageUnloadEventListener=cr,s.areCookiesSupported=rt,s.arrForEach=ye,s.arrIndexOf=Ce,s.arrMap=Se,s.arrReduce=xe,s.attachEvent=ae,s.cookieAvailable=rt,s.createCookieMgr=tt,s.createGuid=or,s.dateNow=Ee,s.deleteCookie=tr,s.detachEvent=ue,s.disableCookies=er,s.disallowsSameSiteNone=lt,s.doPerf=bn,s.dumpObj=dn,s.extend=ar,s.generateW3CId=At,s.getCommonSchemaMetaData=Yt,s.getConsole=rn,s.getCookie=rr,s.getCookieValue=ir,s.getCrypto=ln,s.getDocument=$e,s.getExceptionName=Ne,s.getFieldValueType=dr,s.getGlobal=d,s.getGlobalInst=Je,s.getHistory=function(){return nn()?history:Je("history")},s.getIEVersion=function(e){var n;return ce(e=((e=(e=void 0===e?null:e)?e:(n=en()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),Ke)?parseInt(e.split(Ke)[1]):ce(e,He)&&(e=parseInt(e.split(He)[1]))?e+4:null},s.getISOString=me,s.getJSON=un,s.getLocation=tn,s.getMsCrypto=sn,s.getNavigator=en,s.getPerformance=on,s.getSetValue=ke,s.getTenantId=Gt,s.getTime=ur,s.getWindow=Qe,s.hasDocument=Ze,s.hasHistory=nn,s.hasJSON=an,s.hasNavigator=Ye,s.hasOwnProperty=re,s.hasWindow=Xe,s.isArray=de,s.isArrayValid=sr,s.isBeaconsSupported=qt,s.isBoolean=he,s.isChromium=function(){return!!Je("chrome")},s.isDate=fe,s.isDocumentObjectAvailable=Kt,s.isError=ge,s.isFetchSupported=function(e){var n=!1;try{var n=!!Je("fetch"),t=Je("Request");n&&e&&t&&(n=Bt(t,"keepalive"))}catch(r){}return n},s.isFunction=oe,s.isIE=fn,s.isLatency=Qt,s.isNotTruthy=Le,s.isNullOrUndefined=ne,s.isNumber=pe,s.isObject=ie,s.isReactNative=cn,s.isString=ve,s.isTruthy=Me,s.isTypeof=Y,s.isUint8ArrayAvailable=Xt,s.isUndefined=ee,s.isValueAssigned=Wt,s.isValueKind=lr,s.isWindowObjectAvailable=Ht,s.isXhrSupported=Jt,s.newGuid=Pt,s.newId=Nt,s.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},s.objCreate=v,s.objDefineAccessors=Pe,s.objForEachKey=le,s.objKeys=Ie,s.optimizeObject=function(e){return e&&t(r?r({},e):e)},s.perfNow=Et,s.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ie(r)&&ie(i))for(var e in i)!function(n){var e,t;ve(n)&&(oe(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(re(r,n)&&delete r[n],Pe(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},s.random32=Tt,s.randomValue=bt,s.safeGetCookieMgr=nt,s.safeGetLogger=hn,s.sanitizeProperty=Zt,s.setCookie=nr,s.setEnableEnvMocks=function(e){qe=e},s.setProcessTelemetryTimings=fr,s.setValue=Ae,s.strContains=ce,s.strEndsWith=se,s.strExtensionConfig=Pn,s.strFunction=a,s.strIKey="iKey",s.strObject=u,s.strPrototype=f,s.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},s.strTrim=be,s.strUndefined=n,s.throwError=Fe,s.toISOString=me,s.useXDomainRequest=$t,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(s,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).oneDS=e.oneDS||{}); | ||
var e=this,n=function(s){"use strict";var a="function",u="object",n="undefined",f="prototype",o="hasOwnProperty",t=Object,l=t[f],r=t.assign,i=t.create,e=t.defineProperty,c=l[o];function g(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function d(e){throw new TypeError(e)}function v(e){if(i)return i(e);if(null==e)return{};var n=typeof e;function t(){}return n!==u&&n!==a&&d("Object prototype may only be an Object:"+e),t[f]=e,new t}(g()||{}).Symbol,(g()||{}).Reflect;var p=r||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])l[o].call(n,i)&&(e[i]=n[i]);return e},h=function(e,n){return(h=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[o](t)&&(e[t]=n[t])})(e,n)};function m(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&d("Class extends value "+n+" is not a constructor or null"),h(e,n),e[f]=null===n?v(n):(t[f]=n[f],new t)}function y(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var C={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},S="constructor",x="prototype",b="function",T="_dynInstFuncs",w="_isDynProxy",I="_dynClass",P="_dynInstChk",E=P,N="_dfOpts",A="_unknown_",k="__proto__",L="useBaseInst",M="setInstFuncs",F=Object,O=F.getPrototypeOf,R=0;function D(e,n){return e&&F[x].hasOwnProperty.call(e,n)}function _(e){return e&&(e===F[x]||e===Array[x])}function j(e){return _(e)||e===Function[x]}function U(e){if(e){if(O)return O(e);if(e=e[k]||e[x]||(e[S]?e[S][x]:null))return e}return null}function V(e,n){var t=[],r=F.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&D(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function z(e,n,t){return n!==S&&typeof e[n]===b&&(t||D(e,n))}function B(e){throw new TypeError("DynamicProto: "+e)}function K(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function H(e,n){return D(e,x)?e.name||n||A:((e||{})[S]||{}).name||n||A}function W(e,r,n,t){D(e,x)||B("theClass is an invalid class definition.");var i=e[x];!function(e){if(O)for(var n=[],t=U(r);t&&!j(t)&&!K(n,t);){if(t===e)return 1;n.push(t),t=U(t)}}(i)&&B("["+H(e)+"] is not in class hierarchy of ["+H(r)+"]");var o=null;D(i,I)?o=i[I]:(o="_dynCls$"+H(e,"_")+"$"+R,R++,i[I]=o);var a=W[N],u=!!a[L];u&&t&&t[L]!==undefined&&(u=!!t[L]);var l,s,c,f,g,d,e=(s={},V(l=r,function(e){!s[e]&&z(l,e,!1)&&(s[e]=l[e])}),s);n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[w]&&o&&!1!==(r=e[T]||{})[E]&&(i=(r[n[I]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};V(t,function(e){i[e]=r(n,t,e)});for(var a=U(e),u=[];a&&!j(a)&&!K(u,a);)V(a,function(e){!i[e]&&z(a,e,!O)&&(i[e]=r(n,a,e))}),u.push(a),a=U(a);return i}(i,r,e,u)),a=!!O&&!!a[M],c=i,o=o,f=r,g=e,t=!1!==(a=a&&t?!!t[M]:a),_(c)||(a=f[T]=f[T]||{},d=a[o]=a[o]||{},!1!==a[E]&&(a[E]=!!t),V(f,function(e){var t,r,i;z(f,e,!1)&&f[e]!==g[e]&&(d[e]=f[e],delete f[e],D(c,e)&&(!c[e]||c[e][w])||(c[e]=(t=c,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&D(t,I)){var o=e[T]||{};if((i=(o[t[I]]||{})[n])||B("Missing ["+n+"] "+b),!i[P]&&!1!==o[E]){for(var a=!D(e,n),u=U(e),l=[];a&&u&&!j(u)&&!K(l,u);){var s=u[n];if(s){a=s===r;break}l.push(u),u=U(u)}try{a&&(e[n]=i),i[P]=1}catch(c){o[E]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?U(t)[e]:n)!==b&&B("["+e+"] is not a "+b),n)).apply(this,arguments)})[w]=1,i)))}))}W[N]={setInstFuncs:!0,useBaseInst:!0},s.LoggingSeverity=void 0,(Xt=s.LoggingSeverity||(s.LoggingSeverity={}))[Xt.CRITICAL=1]="CRITICAL",Xt[Xt.WARNING=2]="WARNING";var G={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104},q="on",J="attachEvent",X="addEventListener",Q="detachEvent",Z="removeEventListener",$=e;function Y(e){return l.toString.call(e)}function ee(e,n){return typeof e===n}function ne(e){return e===undefined||typeof e===n}function te(e){return null===e||ne(e)}function re(e){return!te(e)}function ie(e,n){return e&&c.call(e,n)}function oe(e){return typeof e===u}function ae(e){return typeof e===a}function ue(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!te(e))try{te(e[X])?te(e[J])||(e[J](q+n,t),i=!0):(e[X](n,t,r),i=!0)}catch(o){}return i}function le(e,n,t,r){if(void 0===r&&(r=!1),!te(e))try{te(e[Z])?te(e[Q])||e[Q](q+n,t):e[Z](n,t,r)}catch(i){}}function se(e,n){if(e)for(var t in e)c.call(e,t)&&n.call(e,t,e[t])}function ce(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function fe(e,n){return!(!e||!n||!~e.indexOf(n))}function ge(e){return"[object Date]"===Y(e)}function de(e){return"[object Array]"===Y(e)}function ve(e){return"[object Error]"===Y(e)}function pe(e){return"string"==typeof e}function he(e){return"number"==typeof e}function me(e){return"boolean"==typeof e}function ye(e){if(ge(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function Ce(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function Se(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function xe(e,n,t){var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(u){}return o}function be(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r}function Te(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var we=!{toString:null}.propertyIsEnumerable("toString"),Ie=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Pe(e){var n=typeof e;n===a||n===u&&null!==e||d("objKeys called on non-object");var t,r=[];for(t in e)e&&c.call(e,t)&&r.push(t);if(we)for(var i=Ie.length,o=0;o<i;o++)e&&c.call(e,Ie[o])&&r.push(Ie[o]);return r}function Ee(e,n,t,r){if($)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),$(e,n,i),!0}catch(o){}return!1}function Ne(){var e=Date;return e.now?e.now():(new e).getTime()}function Ae(e){return ve(e)?e.name:""}function ke(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function Le(e,n,t){var r;return e?!(r=e[n])&&te(r)&&(r=ne(t)?{}:t,e[n]=r):r=ne(t)?{}:t,r}function Me(e){return!e}function Fe(e){return!!e}function Oe(e){throw Error(e)}var Re="window",De="document",_e="navigator",je="location",Ue="console",Ve="performance",ze="JSON",Be="crypto",Ke="msCrypto",He="msie",We="trident/",Ge=null,qe=null,Je=!1,Xe=null,Qe=null;function Ze(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[f])&&(r=n in t)}catch(i){}if(!r)try{r=!ne((new e)[n])}catch(i){}}return r}function $e(e){var n=g();return n&&n[e]?n[e]:e===Re&&Ye()?window:null}function Ye(){return!(typeof window!==u||!window)}function en(){return Ye()?window:$e(Re)}function nn(){return!(typeof document!==u||!document)}function tn(){return nn()?document:$e(De)}function rn(){return!(typeof navigator!==u||!navigator)}function on(){return rn()?navigator:$e(_e)}function an(){return!(typeof history!==u||!history)}function un(e){return e&&Je&&(e=$e("__mockLocation"))?e:typeof location===u&&location?location:$e(je)}function ln(){return typeof console!==n?console:$e(Ue)}function sn(){return $e(Ve)}function cn(){return!!(typeof JSON===u&&JSON||null!==$e(ze))}function fn(){return cn()?JSON||$e(ze):null}function gn(){return $e(Be)}function dn(){return $e(Ke)}function vn(){var e=on();return!(!e||!e.product)&&"ReactNative"===e.product}function pn(){var e=on();return!e||e.userAgent===qe&&null!==Ge||(e=((qe=e.userAgent)||"").toLowerCase(),Ge=fe(e,He)||fe(e,We)),Ge}function hn(e){var n=Object[f].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":cn()&&(t=fn().stringify(e)),n+t}function mn(){return Qe=null===Qe?rn()&&!!on().sendBeacon:Qe}function yn(){return Xe=null===Xe&&(Xe=typeof XDomainRequest!==undefined)&&Cn()?Xe&&!Ze($e("XMLHttpRequest"),"withCredentials"):Xe}function Cn(){var e=!1;try{e=!!$e("XMLHttpRequest")}catch(n){}return e}function Sn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var xn=(bn.dataType="MessageData",bn);function bn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",cn()&&(e=fn().stringify(r)),e=(n?" message:"+Sn(n):"")+(r?" props:"+Sn(e):""),this.message+=e}function Tn(e,n){return(e||{}).logger||new wn(n)}var wn=function Fr(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};W(Fr,this,function(o){function e(e,n){return te(e=t[e])?n:e}te(t)&&(t={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){if(t=new xn(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw t;ne(t.message)||(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!a[i]&&r>=s.LoggingSeverity.WARNING&&(o.warnToConsole(t.message),a[i]=!0)):r>=s.LoggingSeverity.WARNING&&o.warnToConsole(t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){var n,t=ln();t&&(n="log",ae(t[n=t.warn?"warn":n])&&t[n](e))},o.resetInternalMessageCount=function(){i=0,a={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,a[r]?t=!1:a[r]=!0,t&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++),i===o.maxInternalMessageLimit()&&(n=new xn(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},In=(Pn.ParentContextKey="parent",Pn.ChildrenContextKey="childEvts",Pn);function Pn(e,i,n){var t,o=this,a=!1;o.start=Ne(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},ae(i)&&(a=Ee(o,"payload",function(){return!t&&ae(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===Pn.ParentContextKey||e===Pn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===Pn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===Pn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(Pn.ChildrenContextKey);if(de(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Ne()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&ae(i)&&(o.payload=i())}}var En=function Or(n){this.ctx={},W(Or,this,function(t){t.create=function(e,n,t){return new In(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&ae(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},Nn="CoreUtils.doPerf";function An(e,n,t,r,i){if(e){var o=e;if(o=ae(o.getPerfMgr)?o.getPerfMgr():o){var a,u=void 0,e=o.getCtx(Nn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(In.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(In.ChildrenContextKey))||(a=[],e.setCtx(In.ChildrenContextKey,a)),a.push(u))),o.setCtx(Nn,u),t(u)}catch(l){u&&u.setCtx&&u.setCtx("exception",l)}finally{u&&o.fire(u),o.setCtx(Nn,e)}}}return t()}var kn=function(i,n){var o=this,a=null,u=ae(i.processTelemetry),l=ae(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";An(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),l&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(s.LoggingSeverity.CRITICAL,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+hn(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Ln(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&ae(o.processTelemetry)&&(o=new kn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Mn=function Rr(e,i,t,n){var r,o,a,u,l=this,s=null;null!==n&&(e&&ae(e.getPlugin)?s=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),Ln(r,n)}(e,l,n||e.getPlugin()):n?(r=l,a=e,u=!1,(o=n)&&e&&(a=[],Ce(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),s=Ln(a,r)):ne(n)&&(s=Ln(e,l))),l.core=function(){return t},l.diagLog=function(){return Tn(t,i)},l.getCfg=function(){return i},l.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},l.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=l.getExtCfg(e,null))&&!te(e[n])?r=e[n]:i&&!te(i[n])&&(r=i[n]),te(r)?t:r},l.hasNext=function(){return null!=s},l.getNext=function(){return s},l.setNext=function(e){s=e},l.processNext=function(e){var n=s;n&&(s=n.getNext(),n.processTelemetry(e,l))},l.createNew=function(e,n){return new Rr((e=void 0===e?null:e)||s,i,t,n)}},Fn="extensionConfig",On="getPlugin",Rn=(Dn.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},Dn);function Dn(){var o=this,a=!1,u=null,l=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){l=e},o.processNext=function(e,n){n?n.processNext(e):l&&ae(l.processTelemetry)&&l.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=u||new Mn(null,{},o.core),n=l&&l[On]?e.createNew(null,l[On]):e.createNew(null,l)),n},o._baseTelInit=function(e,n,t,r){e&&ke(e,Fn,[],null,te),!r&&n&&(r=n.getProcessTelContext().getNext());var i=l;l&&l[On]&&(i=l[On]()),o.core=n,u=new Mn(r,e,n,i),a=!0}}var _n="processTelemetry",jn="priority",Un="setNextPlugin",Vn="isInitialized";function zn(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&ae(r[Un])&&ae(o[_n])&&r[Un](o),ae(o[Vn])&&o[Vn]()||e.push(o),r=o,i=i.getNext())}Ce(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function Bn(e){return e.sort(function(e,n){var t=0,r=ae(n[_n]);return ae(e[_n])?t=r?e[jn]-n[jn]:1:r&&(t=-1),t})}var Kn,Hn=(m(Wn,Kn=Rn),Wn._staticInit=(Ee(hr=Wn.prototype,"ChannelControls",hr.getChannelControls),void Ee(hr,"channelQueue",hr.getChannelControls)),Wn);function Wn(){var l,r=Kn.call(this)||this;function s(e){e&&0<e.length&&(Ce(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&Oe("Channel has invalid priority"+e.identifier)}),l.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,W(Wn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){l&&Ce(l,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return l},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,l=[],e&&Ce(e,s),i&&(o=[],Ce(i,function(e){500<e.priority&&o.push(e)}),s(o)),Ce(l,function(e){return zn(new Mn(e,n,t),r)}))}}),r}var Gn="toGMTString",qn="toUTCString",Jn="cookie",Xn="expires",Qn="enabled",Zn="isCookieUseDisabled",$n="disableCookiesUsage",Yn="_ckMgr",et="",nt=null,tt=null,rt=null,it=tn(),ot={},at={};function ut(e){return!e||e.isEnabled()}function lt(e,n){var t,r;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[Yn]||st(n)),t||(r=n,n=(e||{}).logger,(e=st[Yn]||at[Yn])||(e=st[Yn]=st(r,n),at[Yn]=e),t=e),t}function st(e,i){var n,t,s=(ke(t=(n=e||at).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,re,te),ke(t,"path",n.cookiePath||"/",null,te),te(t[Qn])&&(e=void 0,ne(n[Zn])||(e=!n[Zn]),ne(n[$n])||(e=!n[$n]),t[Qn]=e),t),c=s.path||"/",f=s.domain,r=!1!==s[Qn],g={isEnabled:function(){var e=r&&ct(i),n=at[Yn];return e&&n&&g!==n?ut(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,l=!1;return ut(g)&&(o={},-1!=(u=(a=Te(n||et)).indexOf(";"))&&(a=Te(n.substring(0,u)),o=ft(n.substring(1+u))),ke(o,"domain",r||f,Fe,ne),te(t)||(u=pn(),!ne(o[Xn])||0<(n=Ne()+1e3*t)&&((r=new Date).setTime(n),ke(o,Xn,gt(r,u?Gn:qn)||gt(r,u?Gn:qn)||et,Fe)),u||ke(o,"max-age",et+t,null,ne)),(t=un())&&"https:"===t.protocol&&(ke(o,"secure",null,null,ne),(tt=null===tt?!pt((on()||{}).userAgent):tt)&&ke(o,"SameSite","None",null,ne)),ke(o,"path",i||c,null,ne),(s.setCookie||vt)(e,dt(a,o)),l=!0),l},get:function(e){var n=et;return ut(g)?(s.getCookie||function(e){var n,t=et;return it&&(n=it[Jn]||et,rt!==n&&(ot=ft(n),rt=n),t=Te(ot[e]||et)),t})(e):n},del:function(e,n){return!!ut(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return ct(i)&&((t={}).path=n||"/",t[Xn]="Thu, 01 Jan 1970 00:00:01 GMT",pn()||(t["max-age"]="0"),(s.delCookie||vt)(e,dt(et,t)),r=!0),r}};return g[Yn]=g}function ct(e){if(null===nt){nt=!1;try{nt=(it||{})[Jn]!==undefined}catch(n){e&&e.throwInternal(s.LoggingSeverity.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+Ae(n),{exception:hn(n)})}}return nt}function ft(e){var t={};return e&&e.length&&Ce(Te(e).split(";"),function(e){var n;(e=Te(e||et))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Te(e.substring(0,n))]=Te(e.substring(1+n)))}),t}function gt(e,n){return ae(e[n])?e[n]():null}function dt(e,n){var t=e||et;return se(n,function(e,n){t+="; "+e+(te(n)?et:"="+n)}),t}function vt(e,n){it&&(it[Jn]=e+"="+n)}function pt(e){return!(!pe(e)||!fe(e,"CPU iPhone OS 12")&&!fe(e,"iPad; CPU OS 12")&&!(fe(e,"Macintosh; Intel Mac OS X 10_14")&&fe(e,"Version/")&&fe(e,"Safari"))&&(!fe(e,"Macintosh; Intel Mac OS X 10_14")||!ce(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!fe(e,"Chrome/5")&&!fe(e,"Chrome/6")&&(!fe(e,"UnrealEngine")||fe(e,"Chrome"))&&!fe(e,"UCBrowser/12")&&!fe(e,"UCBrowser/11"))}var ht="_notificationManager";function mt(e,n){return new En(n)}var yt,Ct=function Dr(){var n,u,l,t,r,s=!1;W(Dr,this,function(a){a._extensions=[],u=new Hn,a.logger=v({throwInternal:function(e,n,t,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),n=[],a.isInitialized=function(){return s},a.initialize=function(e,n,r,t){a.isInitialized()&&Oe("Core should not be initialized more than once"),e&&!te(e.instrumentationKey)||Oe("Please provide instrumentation key"),l=t,a[ht]=t,a.config=e||{},a.config.enablePerfMgr&&ke(a.config,"createPerfMgr",mt),e.extensions=te(e.extensions)?[]:e.extensions,Le(e,Fn).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,y(y([],n),e.extensions));var t=Bn(t),i=[],o={};Ce(t,function(e){(te(e)||te(e.initialize))&&Oe("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(te(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=Bn(t),a._extensions=t,zn(new Mn([u],e,a),t),zn(new Mn(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&Oe("No channels available"),s=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){ke(e,"iKey",a.config.instrumentationKey,null,Me),ke(e,"time",ye(new Date),null,Me),ke(e,"ver","4.0",null,te),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new Mn(n,a.config,a)},a.getNotifyMgr=function(){return l||(l=v({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[ht]=l),l},a.getCookieMgr=function(){return r=r||st(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&ae(a.config.createPerfMgr)&&(t=a.config.createPerfMgr(a,a.getNotifyMgr())),t||null},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(Ce(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},St=function _r(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;W(_r,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=Se(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=Se(i.listeners,e)},i.eventsSent=function(n){Ce(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){Ce(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){Ce(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||Ce(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},xt=(m(bt,yt=Ct),bt);function bt(){var e=yt.call(this)||this;return W(bt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],C.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new wn(e),r||new St(e))},t.track=function(e){An(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),Oe("Invalid telemetry item")),function(){if(te(e.name))throw n(e),Error("telemetry name required")}(),i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return setInterval(function(){var e=t.logger?t.logger.queue:[];Ce(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:ye(new Date),baseType:xn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e=e&&0<e?e:1e4)}}),e}var Tt=4294967296,wt=4294967295,It=!1,Pt=123456789,Et=987654321;function Nt(e){e<0&&(e>>>=0),Pt=123456789+e&wt,Et=987654321-e&wt,It=!0}function At(){try{var e=2147483647&Ne();Nt((Math.random()*Tt^e)+e)}catch(n){}}function kt(e){return 0<e?Math.floor(Lt()/wt*(e+1))>>>0:0}function Lt(e){var n=(n=gn()||dn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&wt:pn()?(It||At(),Mt()&wt):Math.floor(Tt*Math.random()|0);return e||(n>>>=0),n}function Mt(e){var n=((Et=36969*(65535&Et)+(Et>>16)&wt)<<16)+(65535&(Pt=18e3*(65535&Pt)+(Pt>>16)&wt))>>>0&wt|0;return e||(n>>>=0),n}function Ft(e,n){var t=!1,r=en();return r&&(t=ue(r,e,n),t=ue(r.body,e,n)||t),(r=tn())&&ue(r,e,n)||t}function Ot(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(jt,function(e){var n=0|kt(15);return("x"===e?n:3&n|8).toString(16)})}function Rt(){var e=sn();return e&&e.now?e.now():Ne()}function Dt(e){void 0===e&&(e=22);for(var n=Lt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Lt()<<2&4294967295|3&n)>>>0,t=0);return r}function _t(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=Lt())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&Lt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var jt=/[xy]/g,Ut={Attach:ue,AttachEvent:ue,Detach:le,DetachEvent:le},Vt={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},zt={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},Bt={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},Kt=p(p({},G),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),Ht="3.1.6",Wt="1DS-Web-JS-"+Ht,Gt=((br={})[0]=Bt.Unspecified,br[2]=Bt.Double,br[1]=Bt.String,br[3]=Bt.Bool,br[4098]=Bt.Double,br[4097]=Bt.String,br[4099]=Bt.Bool,br),qt=null,Jt=!!tn(),Xt=!!en();function Qt(e){return!(""===e||te(e))}function Zt(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function $t(){return qt=null===qt?!(ne(Uint8Array)||!ne(e=on())&&e.userAgent&&(~(e=e.userAgent.toLowerCase()).indexOf("safari")||~e.indexOf("firefox"))&&!~e.indexOf("chrome")||vn()):qt;var e}function Yt(e){return!!(e&&he(e)&&zt.Normal<=e&&e<=zt.Immediate)}function er(e,n,t){if(!n&&!Qt(n)||"string"!=typeof e)return null;if("string"==(e=typeof n)||"number"==e||"boolean"==e||de(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(te(n.value)||""===n.value||!pe(n.value)&&!he(n.value)&&!me(n.value)&&!de(n.value))return null}else n={value:t?JSON.stringify(n):n};if(de(n.value)&&!fr(n.value))return null;if(!te(n.kind)){if(de(n.value)||!cr(n.kind))return null;n.value=n.value.toString()}return n}function nr(e,n,t){var r=-1;return ne(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(e=Gt[vr(e)]||-1,-1!==r&&-1!==e?r|=e:e===Bt.Double&&(r=e))),r}function tr(){lt(null).setEnabled(!1)}function rr(e,n,t){ct(null)&<(null).set(e,n,86400*t,null,"/")}function ir(e){ct(null)&<(null).del(e)}function or(e){return ct(null)?ar(lt(null),e):""}function ar(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function ur(e){void 0===e&&(e="D");var n=Ot();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function lr(e,n,t,r,i){var o={},a=!1,u=0,l=arguments.length,s=Object[f],c=arguments;for("[object Boolean]"===s.toString.call(c[0])&&(a=c[0],u++);u<l;u++)se(c[u],function(t,e){a&&e&&oe(e)?de(e)?(o[t]=o[t]||[],Ce(e,function(e,n){e&&oe(e)?o[t][n]=lr(!0,o[t][n],e):o[t][n]=e})):o[t]=lr(!0,o[t],e):o[t]=e});return o}var sr=Rt;function cr(e){return e===Vt.NotSet||e>Vt.NotSet&&e<=Vt.Pii_IPV4AddressLegacy||e===Vt.CustomerContent_GenericContent}function fr(e){return 0<e.length}function gr(e){var n=Ft("beforeunload",e),n=Ft("unload",e)||n;return Ft("pagehide",e)||n}function dr(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=sr()}function vr(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===u&&(t=4,de(e)?(t=4096,0<e.length&&(t|=vr(e[0]))):ie(e,"value")&&(t=8192|vr(e.value)))),t}var pr,e={Version:Ht,FullVersionString:Wt,strUndefined:n,strObject:u,Undefined:n,arrForEach:Ce,arrIndexOf:Se,arrMap:xe,arrReduce:be,objKeys:Pe,toISOString:ye,isReactNative:vn,isString:pe,isNumber:he,isBoolean:me,isFunction:ae,isArray:de,isObject:oe,strTrim:Te,isDocumentObjectAvailable:Jt,isWindowObjectAvailable:Xt,isValueAssigned:Qt,getTenantId:Zt,isBeaconsSupported:mn,isUint8ArrayAvailable:$t,isLatency:Yt,sanitizeProperty:er,getISOString:ye,useXDomainRequest:yn,getCommonSchemaMetaData:nr,cookieAvailable:ct,disallowsSameSiteNone:pt,setCookie:rr,deleteCookie:ir,getCookie:or,createGuid:ur,extend:lr,getTime:sr,isValueKind:cr,isArrayValid:fr,objDefineAccessors:Ee,addPageUnloadEventListener:gr,setProcessTelemetryTimings:dr,addEventHandler:Ft,getFieldValueType:vr,strEndsWith:ce,objForEachKey:se},hr={_canUseCookies:undefined,isTypeof:ee,isUndefined:ne,isNullOrUndefined:te,hasOwnProperty:ie,isFunction:ae,isObject:oe,isDate:ge,isArray:de,isError:ve,isString:pe,isNumber:he,isBoolean:me,toISOString:ye,arrForEach:Ce,arrIndexOf:Se,arrMap:xe,arrReduce:be,strTrim:Te,objCreate:v,objKeys:Pe,objDefineAccessors:Ee,addEventHandler:Ft,dateNow:Ne,isIE:pn,disableCookies:tr,newGuid:Ot,perfNow:Rt,newId:Dt,randomValue:kt,random32:Lt,mwcRandomSeed:function(e){e?Nt(e):At()},mwcRandom32:Mt,generateW3CId:_t},mr="version",yr="properties";function Cr(){var e=pr.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",W(Cr,e,function(a,u){a.initialize=function(t,r,i,o){An(a,function(){return"AppInsightsCore.initialize"},function(){if(t){t.endpointUrl||(t.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var e=t.propertyStorageOverride;if(e&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");t.channels&&Ce(t.channels,function(e){e&&Ce(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,a.pluginVersionStringArr.push(e))})})}a.getWParam=function(){return"undefined"!=typeof document?0:-1},r&&Ce(r,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,a.pluginVersionStringArr.push(e))}),a.pluginVersionString=a.pluginVersionStringArr.join(";");try{u.initialize(t,r,i,o)}catch(n){a.logger.throwInternal(s.LoggingSeverity.CRITICAL,Kt.ErrorProvidedChannels,"Channels must be provided through config.channels only")}a.pollInternalLogs("InternalLog")},function(){return{config:t,extensions:r,logger:i,notificationManager:o}})},a.track=function(t){An(a,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=sr(),Yt(n.latency)||(n.latency=zt.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=Wt,(e=n.baseData=n.baseData||{})[yr]||(e[yr]={}),(e=e[yr])[mr]||(e[mr]=""),""!==a.pluginVersionString&&(e[mr]=a.pluginVersionString)),u.track(n)},function(){return{item:t}},!t.sync)}}),e}var Sr,p=(m(Cr,pr=xt),Cr);function xr(){var e=Sr.call(this)||this;return W(xr,e,function(o,a){o.initialize=function(e,n,t,r){e&&(e.endpointUrl||(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/")),o.getWParam=function(){return Jt?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(s.LoggingSeverity.CRITICAL,Kt.ErrorProvidedChannels,"Channels must be provided through config.channels only")}},o.track=function(e){var n=e;n&&((e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=Wt),a.track(n)}}),e}var br=(m(xr,Sr=Ct),xr),Tr=ae;function wr(n){var a=0,u=null,e=[];function i(t,r,i,o){e.push(function(){var e;try{(e=1===a?Tr(t)?t(u):u:Tr(r)?r(u):u)instanceof wr?e.then(i,o):(2!==a||Tr(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<e.length&&(r=e.slice(),e=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(u=e,a=1,l())}function r(e){0===a&&(u=e,a=2,l())}W(wr,this,function(n){n.then=function(t,r){return new wr(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),function(){if(!Tr(n))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{n(t,r)}catch(e){r(e)}}()}var Ir=(wr.resolve=function(r){return r instanceof wr?r:r&&Tr(r.then)?new wr(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new wr(function(e){e(r)})},wr.reject=function(t){return new wr(function(e,n){n(t)})},wr.all=function(u){if(u&&u.length)return new wr(function(r,e){try{for(var i=[],o=0,n=0;n<u.length;n++){var t=u[n];t&&Tr(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},wr.race=function(i){return new wr(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&Tr(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})},wr),Pr=0,Er=[],Nr=[],Ar=[];function kr(){return(new Date).getTime()}function Lr(e,n){var h=0,m=(e||"<unnamed>")+"."+Pr;function y(e){var n=g();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+m+"] "+e)}function C(e){n&&n.warnToConsole("ESPromiseScheduler["+m+"] "+e)}Pr++,W(Lr,this,function(e){var d=null,v=0;function p(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(t,e,u){var i=m+"."+v;v++,e&&(i+="-("+e+")");var o,a,n,r=i+"{"+h+"}";return h++,(e={evt:null,tm:kr(),id:r,isRunning:!1,isAborted:!1}).evt=d?(o=e,a=d,n=new Ir(function(n,t){var e=kr()-a.tm,r=a.id;y("["+i+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+Nr.length+"] waiting and ["+Er.length+"] running"),o.abort=function(e){o.abort=null,p(Nr,i),o.isAborted=!0,t(Error(e))},a.evt.then(function(e){p(Nr,i),g(o).then(n,t)},function(e){p(Nr,i),g(o).then(n,t)})}),Nr.push(o),n):g(e),(d=e).evt._schId=r,e.evt;function l(e){for(var n=kr(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",C(o),e.splice(i,1),r--):i++}}function s(e,n){var t,r=!1,i=p(Er,e);i||(i=p(Ar,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=kr()-i.tm,n?r?C("Timed out event ["+e+"] finally complete -- "+t+" ms"):y("Promise ["+e+"] Complete -- "+t+" ms"):(Ar.push(i),C("Event ["+e+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+e+"] from running queue"),d&&d.id===e&&(d=null),l(Er),l(Nr),l(Ar)}function c(n,t){return function(e){return s(n,!0),t&&t(e),e}}function f(r,o){var a=r.id;return new Ir(function(n,t){y("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,s(a,!1),t(Error(e))};var e=o(a);e instanceof Ir?(u&&(r.to=setTimeout(function(){s(a,!1),t(Error("Timed out after ["+u+"] ms"))},u)),function i(n,e,t,r){e.then(function(e){return e instanceof Ir?(y("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):c(n,t)(e)},c(n,r))}(a,e,function(e){y("Event ["+a+"] Resolving after "+(kr()-r.tm)+" ms"),n(e)},t)):(y("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function g(e){var n=kr();return e.wTm=n-e.tm,e.tm=n,e.isAborted?Ir.reject(Error("["+i+"] was aborted")):(Er.push(e),f(e,t))}}})}function Mr(e){var l=this,o={},a=[],u=[];function s(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(pe(e)&&pe(n))if(0<u.length){for(var r=0;r<u.length;r++)if(u[r].handleField(e,n)){i={canHandle:!0,fieldHandler:u[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function c(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!te(i.kind)){if(4096==(4096&r)||!cr(i.kind))return null;i.value=i.value.toString()}return function u(r,i,o,e,n){var t,a;return n&&r&&(t=r.getSanitizer(i,o,e,n.kind,n.propertyType))&&(4===e?(a={},se(n.value,function(e,n){var t;Qt(n)&&(t=f(0,0,n),(t=u(r,i+"."+o,e,vr(n),t))&&(a[e]=t.value))}),n.value=a):n=t.call(l,e={path:i,name:o,type:e,prop:n,sanitizer:l})),n}(e.fieldHandler,n,t,r,i)}function f(e,n,t){return Qt(t)?{value:t}:null}e&&u.push(e),l.addSanitizer=function(e){e&&(a.push(e),o={})},l.addFieldSanitizer=function(e){e&&(u.push(e),o={})},l.handleField=function(e,n){return!!(n=s(e,n))&&n.canHandle},l.value=function(e,n,t,r){var i=s(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!pe(n)||te(t)||""===t)return null;var o=null,a=vr(t);if(8192==(8192&a)){var u=-8193&a;if(!Qt((o=t).value)||1!=u&&2!=u&&3!=u&&4096!=(4096&u))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=f(0,0,t):4===a&&(o=f(0,0,r?JSON.stringify(t):t));if(o)return c(i,e,n,a,o,r)}return null},l.property=function(e,n,t,r){var i=s(e,n);if(!i||!i.canHandle)return null;if(!pe(n)||te(t)||!Qt(t.value))return null;var o=vr(t.value);return 0===o?null:c(i,e,n,o,t,r)}}Lr.incomplete=function(){return Er},Lr.waitingToStart=function(){return Nr},xt=Lr,Mr.getFieldType=vr,Ct=Mr,s.AppInsightsCore=p,s.BaseCore=br,s.BaseTelemetryPlugin=Rn,s.CoreUtils=hr,s.DiagnosticLogger=wn,s.ESPromise=Ir,s.ESPromiseScheduler=xt,s.EventHelper=Ut,s.EventLatency=zt,s.EventPersistence={Normal:1,Critical:2},s.EventPropertyType=Bt,s.EventsDiscardedReason=C,s.FullVersionString=Wt,s.MinChannelPriorty=100,s.NotificationManager=St,s.PerfEvent=In,s.PerfManager=En,s.ProcessTelemetryContext=Mn,s.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},s.Undefined=n,s.Utils=e,s.ValueKind=Vt,s.ValueSanitizer=Ct,s.Version=Ht,s._ExtendedInternalMessageId=Kt,s.addEventHandler=Ft,s.addPageHideEventListener=function(t){var e=Ft("pagehide",t);return Ft("visibilitychange",function(e){var n=tn();t&&n&&"hidden"===n.visibilityState&&t(e)})||e},s.addPageShowEventListener=function(t){var e=Ft("pageshow",t);return Ft("visibilitychange",function(e){var n=tn();t&&n&&"visible"===n.visibilityState&&t(e)})||e},s.addPageUnloadEventListener=gr,s.areCookiesSupported=ct,s.arrForEach=Ce,s.arrIndexOf=Se,s.arrMap=xe,s.arrReduce=be,s.attachEvent=ue,s.cookieAvailable=ct,s.createCookieMgr=st,s.createGuid=ur,s.dateNow=Ne,s.deleteCookie=ir,s.detachEvent=le,s.disableCookies=tr,s.disallowsSameSiteNone=pt,s.doPerf=An,s.dumpObj=hn,s.extend=lr,s.generateW3CId=_t,s.getCommonSchemaMetaData=nr,s.getConsole=ln,s.getCookie=or,s.getCookieValue=ar,s.getCrypto=gn,s.getDocument=tn,s.getExceptionName=Ae,s.getFieldValueType=vr,s.getGlobal=g,s.getGlobalInst=$e,s.getHistory=function(){return an()?history:$e("history")},s.getIEVersion=function(e){var n;return fe(e=((e=(e=void 0===e?null:e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),He)?parseInt(e.split(He)[1]):fe(e,We)&&(e=parseInt(e.split(We)[1]))?e+4:null},s.getISOString=ye,s.getJSON=fn,s.getLocation=un,s.getMsCrypto=dn,s.getNavigator=on,s.getPerformance=sn,s.getSetValue=Le,s.getTenantId=Zt,s.getTime=sr,s.getWindow=en,s.hasDocument=nn,s.hasHistory=an,s.hasJSON=cn,s.hasNavigator=rn,s.hasOwnProperty=ie,s.hasWindow=Ye,s.isArray=de,s.isArrayValid=fr,s.isBeaconsSupported=mn,s.isBoolean=me,s.isChromium=function(){return!!$e("chrome")},s.isDate=ge,s.isDocumentObjectAvailable=Jt,s.isError=ve,s.isFetchSupported=function(e){var n=!1;try{var n=!!$e("fetch"),t=$e("Request");n&&e&&t&&(n=Ze(t,"keepalive"))}catch(r){}return n},s.isFunction=ae,s.isIE=pn,s.isLatency=Yt,s.isNotTruthy=Me,s.isNullOrUndefined=te,s.isNumber=he,s.isObject=oe,s.isReactNative=vn,s.isString=pe,s.isTruthy=Fe,s.isTypeof=ee,s.isUint8ArrayAvailable=$t,s.isUndefined=ne,s.isValueAssigned=Qt,s.isValueKind=cr,s.isWindowObjectAvailable=Xt,s.isXhrSupported=Cn,s.newGuid=Ot,s.newId=Dt,s.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},s.objCreate=v,s.objDefineAccessors=Ee,s.objForEachKey=se,s.objKeys=Pe,s.optimizeObject=function(e){return e&&t(r?r({},e):e)},s.perfNow=Rt,s.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&oe(r)&&oe(i))for(var e in i)!function(n){var e,t;pe(n)&&(ae(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(ie(r,n)&&delete r[n],Ee(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},s.random32=Lt,s.randomValue=kt,s.safeGetCookieMgr=lt,s.safeGetLogger=Tn,s.sanitizeProperty=er,s.setCookie=rr,s.setEnableEnvMocks=function(e){Je=e},s.setProcessTelemetryTimings=dr,s.setValue=ke,s.strContains=fe,s.strEndsWith=ce,s.strExtensionConfig=Fn,s.strFunction=a,s.strIKey="iKey",s.strObject=u,s.strPrototype=f,s.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},s.strTrim=Te,s.strUndefined=n,s.throwError=Oe,s.toISOString=ye,s.useXDomainRequest=yn,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(s,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).oneDS=e.oneDS||{}); | ||
//# sourceMappingURL=ms.core-test.min.js.map |
/* | ||
* 1DS JS SDK Core, 3.1.5 | ||
* 1DS JS SDK Core, 3.1.6 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * (Microsoft Internal Only) |
/* | ||
* 1DS JS SDK Core, 3.1.5 | ||
* 1DS JS SDK Core, 3.1.6 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * (Microsoft Internal Only) |
/* | ||
* 1DS JS SDK Core, 3.1.5 | ||
* 1DS JS SDK Core, 3.1.6 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * (Microsoft Internal Only) |
@@ -313,2 +313,3 @@ /** | ||
TrackPageActionEventFailed: number; | ||
FailedAddingCustomDefinedRequestContext: number; | ||
}; | ||
@@ -315,0 +316,0 @@ export declare const enum GuidStyle { |
/* | ||
* 1DS JS SDK Core, 3.1.5 | ||
* 1DS JS SDK Core, 3.1.6 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * (Microsoft Internal Only) |
/* | ||
* 1DS JS SDK Core, 3.1.5 | ||
* 1DS JS SDK Core, 3.1.6 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * (Microsoft Internal Only) |
/* | ||
* 1DS JS SDK Core, 3.1.5 | ||
* 1DS JS SDK Core, 3.1.6 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * (Microsoft Internal Only) |
@@ -15,5 +15,5 @@ /** | ||
export { ValueKind, IExtendedConfiguration, IPropertyStorageOverride, EventLatency, EventPersistence, TraceLevel, IEventProperty, IExtendedTelemetryItem, TransportType, AppInsightsCore, BaseCore, _ExtendedInternalMessageId, IExtendedAppInsightsCore, EventPropertyType, IEventTiming, ESPromise, ESPromiseOnResolvedFunc, ESPromiseOnRejectedFunc, ResolverResolveFunc, ResolverRejectFunc, ESPromiseScheduler, ESPromiseSchedulerEvent, GuidStyle, FieldValueSanitizerFunc, FieldValueSanitizerType, FieldValueSanitizerTypes, IFieldSanitizerDetails, IFieldValueSanitizerProvider, IValueSanitizer, ValueSanitizer, EventLatencyValue, EventPersistenceValue, EventSendType }; | ||
export { IAppInsightsCore, IChannelControls, IPlugin, INotificationManager, NotificationManager, INotificationListener, IConfiguration, ITelemetryItem, ITelemetryPlugin, BaseTelemetryPlugin, IProcessTelemetryContext, ProcessTelemetryContext, ITelemetryPluginChain, MinChannelPriorty, EventsDiscardedReason, ICoreUtils, IDiagnosticLogger, DiagnosticLogger, LoggingSeverity, SendRequestReason, IPerfEvent, IPerfManager, IPerfManagerProvider, PerfEvent, PerfManager, doPerf, EventHelper, isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strStartsWith, strEndsWith, strContains, strTrim, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, optimizeObject, objCreate, addEventHandler, newGuid, perfNow, newId, generateW3CId, safeGetLogger, getGlobal, getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, strUndefined, strObject, strPrototype, strFunction, setEnableEnvMocks, strUndefined as Undefined, randomValue, random32, ICookieMgr, ICookieMgrConfig, uaDisallowsSameSiteNone as disallowsSameSiteNone, areCookiesSupported, areCookiesSupported as cookieAvailable, createCookieMgr, safeGetCookieMgr, strIKey, strExtensionConfig, toISOString as getISOString, } from "@microsoft/applicationinsights-core-js"; | ||
export { isValueAssigned, isBeaconsSupported, isLatency, isFetchSupported, isXhrSupported, isUint8ArrayAvailable, getTenantId, sanitizeProperty, Version, FullVersionString, getCommonSchemaMetaData, getCookie, setCookie, deleteCookie, getCookieValue, extend, createGuid, useXDomainRequest, isDocumentObjectAvailable, isWindowObjectAvailable, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener, setProcessTelemetryTimings, getTime, isArrayValid, isValueKind, getFieldValueType, CoreUtils, disableCookies, // exporting the overridden version fot tree-shaking | ||
export { IAppInsightsCore, IChannelControls, IPlugin, INotificationManager, NotificationManager, INotificationListener, IConfiguration, ITelemetryItem, ITelemetryPlugin, BaseTelemetryPlugin, IProcessTelemetryContext, ProcessTelemetryContext, ITelemetryPluginChain, MinChannelPriorty, EventsDiscardedReason, ICoreUtils, IDiagnosticLogger, DiagnosticLogger, LoggingSeverity, SendRequestReason, IPerfEvent, IPerfManager, IPerfManagerProvider, PerfEvent, PerfManager, doPerf, EventHelper, isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strStartsWith, strEndsWith, strContains, strTrim, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, optimizeObject, objCreate, addEventHandler, newGuid, perfNow, newId, generateW3CId, safeGetLogger, getGlobal, getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, strUndefined, strObject, strPrototype, strFunction, setEnableEnvMocks, strUndefined as Undefined, randomValue, random32, ICookieMgr, ICookieMgrConfig, uaDisallowsSameSiteNone as disallowsSameSiteNone, areCookiesSupported, areCookiesSupported as cookieAvailable, createCookieMgr, safeGetCookieMgr, strIKey, strExtensionConfig, toISOString as getISOString, isBeaconsSupported, isFetchSupported, isXhrSupported, useXDomainRequest } from "@microsoft/applicationinsights-core-js"; | ||
export { isValueAssigned, isLatency, isUint8ArrayAvailable, getTenantId, sanitizeProperty, Version, FullVersionString, getCommonSchemaMetaData, getCookie, setCookie, deleteCookie, getCookieValue, extend, createGuid, isDocumentObjectAvailable, isWindowObjectAvailable, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener, setProcessTelemetryTimings, getTime, isArrayValid, isValueKind, getFieldValueType, CoreUtils, disableCookies, // exporting the overridden version for tree-shaking | ||
Utils, // Replacement for import * as Utils from "./Utils"; | ||
isChromium, } from "./Utils"; |
/* | ||
* 1DS JS SDK Core, 3.1.5 | ||
* 1DS JS SDK Core, 3.1.6 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -29,4 +29,4 @@ * (Microsoft Internal Only) | ||
// Aliases | ||
toISOString as getISOString, } from "@microsoft/applicationinsights-core-js"; | ||
export { isValueAssigned, isBeaconsSupported, isLatency, isFetchSupported, isXhrSupported, isUint8ArrayAvailable, getTenantId, sanitizeProperty, Version, FullVersionString, getCommonSchemaMetaData, getCookie, setCookie, deleteCookie, getCookieValue, extend, createGuid, useXDomainRequest, isDocumentObjectAvailable, isWindowObjectAvailable, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener, setProcessTelemetryTimings, getTime, isArrayValid, isValueKind, getFieldValueType, CoreUtils, disableCookies, // exporting the overridden version fot tree-shaking | ||
toISOString as getISOString, isBeaconsSupported, isFetchSupported, isXhrSupported, useXDomainRequest } from "@microsoft/applicationinsights-core-js"; | ||
export { isValueAssigned, isLatency, isUint8ArrayAvailable, getTenantId, sanitizeProperty, Version, FullVersionString, getCommonSchemaMetaData, getCookie, setCookie, deleteCookie, getCookieValue, extend, createGuid, isDocumentObjectAvailable, isWindowObjectAvailable, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener, setProcessTelemetryTimings, getTime, isArrayValid, isValueKind, getFieldValueType, CoreUtils, disableCookies, // exporting the overridden version for tree-shaking | ||
Utils, // Replacement for import * as Utils from "./Utils"; | ||
@@ -33,0 +33,0 @@ isChromium, // Replace with ai-core version once published in ai-core |
import { IEventProperty } from "./DataModels"; | ||
import { GuidStyle, FieldValueSanitizerType, EventLatency } from "./Enums"; | ||
import { ITelemetryItem, objForEachKey, isNumber, isReactNative, isString, isBoolean, isArray, isObject, perfNow, addEventHandler, uaDisallowsSameSiteNone, objDefineAccessors, toISOString, strTrim, isFunction, objKeys, arrReduce, arrMap, arrIndexOf, arrForEach, areCookiesSupported, ICookieMgr, ICoreUtils, strEndsWith } from "@microsoft/applicationinsights-core-js"; | ||
export declare const Version = "3.1.5"; | ||
import { ITelemetryItem, objForEachKey, isNumber, isReactNative, isString, isBoolean, isArray, isObject, perfNow, addEventHandler, uaDisallowsSameSiteNone, objDefineAccessors, toISOString, strTrim, isFunction, objKeys, arrReduce, arrMap, arrIndexOf, arrForEach, areCookiesSupported, ICookieMgr, ICoreUtils, strEndsWith, useXDomainRequest, isBeaconsSupported } from "@microsoft/applicationinsights-core-js"; | ||
export declare const Version = "3.1.6"; | ||
export declare const FullVersionString: string; | ||
@@ -27,18 +27,2 @@ /** | ||
/** | ||
* Checks if HTML5 Beacons are supported in the current environment. | ||
* @returns True if supported, false otherwise. | ||
*/ | ||
export declare function isBeaconsSupported(): boolean; | ||
/** | ||
* Checks if the Fetch API is supported in the current environment. | ||
* @param withKeepAlive - [Optional] If True, check if fetch is available and it supports the keepalive feature, otherwise only check if fetch is supported | ||
* @returns True if supported, otherwise false | ||
*/ | ||
export declare function isFetchSupported(withKeepAlive?: boolean): boolean; | ||
/** | ||
* Checks if XMLHttpRequest is supported | ||
* @returns True if supported, otherwise false | ||
*/ | ||
export declare function isXhrSupported(): boolean; | ||
/** | ||
* Checks if Uint8Array are available in the current environment. Safari and Firefox along with | ||
@@ -64,3 +48,2 @@ * ReactNative are known to not support Uint8Array properly. | ||
export declare function sanitizeProperty(name: string, property: string | number | boolean | string[] | number[] | boolean[] | object | IEventProperty, stringifyObjects?: boolean): IEventProperty | null; | ||
export declare function useXDomainRequest(): boolean | undefined; | ||
export declare function getCommonSchemaMetaData(value: string | boolean | number | string[] | number[] | boolean[] | undefined, kind: number | undefined, type?: number | undefined): number; | ||
@@ -67,0 +50,0 @@ /** |
/* | ||
* 1DS JS SDK Core, 3.1.5 | ||
* 1DS JS SDK Core, 3.1.6 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -15,4 +15,4 @@ * (Microsoft Internal Only) | ||
import { EventPropertyType, ValueKind, EventLatency } from "./Enums"; | ||
import { getDocument, hasNavigator, getNavigator, getWindow, getGlobalInst, objForEachKey, isUndefined, isNullOrUndefined, isNumber, isReactNative, isString, isBoolean, isArray, newGuid, isObject, perfNow, hasOwnProperty, addEventHandler, uaDisallowsSameSiteNone, strPrototype, objDefineAccessors, toISOString, strTrim, isFunction, objKeys, arrReduce, arrMap, arrIndexOf, arrForEach, strUndefined, strObject, areCookiesSupported, safeGetCookieMgr, generateW3CId, mwcRandom32, mwcRandomSeed, random32, randomValue, newId, isIE, dateNow, isError, isDate, isTypeof, strEndsWith, } from "@microsoft/applicationinsights-core-js"; | ||
export var Version = '3.1.5'; | ||
import { getDocument, getNavigator, getWindow, getGlobalInst, objForEachKey, isUndefined, isNullOrUndefined, isNumber, isReactNative, isString, isBoolean, isArray, newGuid, isObject, perfNow, hasOwnProperty, addEventHandler, uaDisallowsSameSiteNone, strPrototype, objDefineAccessors, toISOString, strTrim, isFunction, objKeys, arrReduce, arrMap, arrIndexOf, arrForEach, strUndefined, strObject, areCookiesSupported, safeGetCookieMgr, generateW3CId, mwcRandom32, mwcRandomSeed, random32, randomValue, newId, isIE, dateNow, isError, isDate, isTypeof, strEndsWith, useXDomainRequest, isBeaconsSupported, } from "@microsoft/applicationinsights-core-js"; | ||
export var Version = '3.1.6'; | ||
export var FullVersionString = "1DS-Web-JS-" + Version; | ||
@@ -33,28 +33,4 @@ // If value is array just get the type for the first element | ||
// let _uaDisallowsSameSiteNone = null; | ||
var _useXDomainRequest = null; | ||
var beaconsSupported = null; | ||
var uInt8ArraySupported = null; | ||
// var _areCookiesAvailable: boolean | undefined; | ||
function _hasProperty(theClass, property) { | ||
var supported = false; | ||
if (theClass) { | ||
supported = property in theClass; | ||
if (!supported) { | ||
var proto = theClass.prototype; | ||
if (proto) { | ||
supported = property in proto; | ||
} | ||
} | ||
if (!supported) { | ||
try { | ||
var tmp = new theClass(); | ||
supported = !isUndefined(tmp[property]); | ||
} | ||
catch (e) { | ||
// Do Nothing | ||
} | ||
} | ||
} | ||
return supported; | ||
} | ||
/** | ||
@@ -94,39 +70,2 @@ * Checks if document object is available | ||
/** | ||
* Checks if HTML5 Beacons are supported in the current environment. | ||
* @returns True if supported, false otherwise. | ||
*/ | ||
export function isBeaconsSupported() { | ||
if (beaconsSupported === null) { | ||
beaconsSupported = hasNavigator() && Boolean(getNavigator().sendBeacon); | ||
} | ||
return beaconsSupported; | ||
} | ||
/** | ||
* Checks if the Fetch API is supported in the current environment. | ||
* @param withKeepAlive - [Optional] If True, check if fetch is available and it supports the keepalive feature, otherwise only check if fetch is supported | ||
* @returns True if supported, otherwise false | ||
*/ | ||
export function isFetchSupported(withKeepAlive) { | ||
var isSupported = false; | ||
try { | ||
var fetchApi = getGlobalInst("fetch"); | ||
isSupported = !!fetchApi; | ||
var request = getGlobalInst("Request"); | ||
if (isSupported && withKeepAlive && request) { | ||
isSupported = _hasProperty(request, "keepalive"); | ||
} | ||
} | ||
catch (e) { | ||
// Just Swallow any failure during availability checks | ||
} | ||
return isSupported; | ||
} | ||
/** | ||
* Checks if XMLHttpRequest is supported | ||
* @returns True if supported, otherwise false | ||
*/ | ||
export function isXhrSupported() { | ||
return typeof XMLHttpRequest !== undefined; | ||
} | ||
/** | ||
* Checks if Uint8Array are available in the current environment. Safari and Firefox along with | ||
@@ -198,11 +137,2 @@ * ReactNative are known to not support Uint8Array properly. | ||
} | ||
export function useXDomainRequest() { | ||
if (_useXDomainRequest === null) { | ||
_useXDomainRequest = (typeof XDomainRequest !== undefined); | ||
if (_useXDomainRequest && isXhrSupported()) { | ||
_useXDomainRequest = _useXDomainRequest && !_hasProperty(XMLHttpRequest, "withCredentials"); | ||
} | ||
} | ||
return _useXDomainRequest; | ||
} | ||
export function getCommonSchemaMetaData(value, kind, type) { | ||
@@ -209,0 +139,0 @@ var encodedTypeValue = -1; |
/* | ||
* 1DS JS SDK Core, 3.1.5 | ||
* 1DS JS SDK Core, 3.1.6 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * (Microsoft Internal Only) |
/*! | ||
* 1DS JS SDK Core, 3.1.5 | ||
* 1DS JS SDK Core, 3.1.6 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -64,3 +64,3 @@ * (Microsoft Internal Only) | ||
var _a; | ||
var Version = '3.1.5'; | ||
var Version = '3.1.6'; | ||
var FullVersionString = "1DS-Web-JS-" + Version; | ||
@@ -76,26 +76,3 @@ var _fieldTypeEventPropMap = (_a = {}, | ||
_a); | ||
var _useXDomainRequest = null; | ||
var beaconsSupported = null; | ||
var uInt8ArraySupported = null; | ||
function _hasProperty(theClass, property) { | ||
var supported = false; | ||
if (theClass) { | ||
supported = property in theClass; | ||
if (!supported) { | ||
var proto = theClass.prototype; | ||
if (proto) { | ||
supported = property in proto; | ||
} | ||
} | ||
if (!supported) { | ||
try { | ||
var tmp = new theClass(); | ||
supported = !applicationinsightsCoreJs.isUndefined(tmp[property]); | ||
} | ||
catch (e) { | ||
} | ||
} | ||
} | ||
return supported; | ||
} | ||
var isDocumentObjectAvailable = Boolean(applicationinsightsCoreJs.getDocument()); | ||
@@ -115,25 +92,2 @@ var isWindowObjectAvailable = Boolean(applicationinsightsCoreJs.getWindow()); | ||
} | ||
function isBeaconsSupported() { | ||
if (beaconsSupported === null) { | ||
beaconsSupported = applicationinsightsCoreJs.hasNavigator() && Boolean(applicationinsightsCoreJs.getNavigator().sendBeacon); | ||
} | ||
return beaconsSupported; | ||
} | ||
function isFetchSupported(withKeepAlive) { | ||
var isSupported = false; | ||
try { | ||
var fetchApi = applicationinsightsCoreJs.getGlobalInst("fetch"); | ||
isSupported = !!fetchApi; | ||
var request = applicationinsightsCoreJs.getGlobalInst("Request"); | ||
if (isSupported && withKeepAlive && request) { | ||
isSupported = _hasProperty(request, "keepalive"); | ||
} | ||
} | ||
catch (e) { | ||
} | ||
return isSupported; | ||
} | ||
function isXhrSupported() { | ||
return typeof XMLHttpRequest !== undefined; | ||
} | ||
function isUint8ArrayAvailable() { | ||
@@ -180,11 +134,2 @@ if (uInt8ArraySupported === null) { | ||
} | ||
function useXDomainRequest() { | ||
if (_useXDomainRequest === null) { | ||
_useXDomainRequest = (typeof XDomainRequest !== undefined); | ||
if (_useXDomainRequest && isXhrSupported()) { | ||
_useXDomainRequest = _useXDomainRequest && !_hasProperty(XMLHttpRequest, "withCredentials"); | ||
} | ||
} | ||
return _useXDomainRequest; | ||
} | ||
function getCommonSchemaMetaData(value, kind, type) { | ||
@@ -409,3 +354,3 @@ var encodedTypeValue = -1; | ||
getTenantId: getTenantId, | ||
isBeaconsSupported: isBeaconsSupported, | ||
isBeaconsSupported: applicationinsightsCoreJs.isBeaconsSupported, | ||
isUint8ArrayAvailable: isUint8ArrayAvailable, | ||
@@ -415,3 +360,3 @@ isLatency: isLatency, | ||
getISOString: applicationinsightsCoreJs.toISOString, | ||
useXDomainRequest: useXDomainRequest, | ||
useXDomainRequest: applicationinsightsCoreJs.useXDomainRequest, | ||
getCommonSchemaMetaData: getCommonSchemaMetaData, | ||
@@ -1215,5 +1160,7 @@ cookieAvailable: applicationinsightsCoreJs.areCookiesSupported, | ||
exports.isArray = applicationinsightsCoreJs.isArray; | ||
exports.isBeaconsSupported = applicationinsightsCoreJs.isBeaconsSupported; | ||
exports.isBoolean = applicationinsightsCoreJs.isBoolean; | ||
exports.isDate = applicationinsightsCoreJs.isDate; | ||
exports.isError = applicationinsightsCoreJs.isError; | ||
exports.isFetchSupported = applicationinsightsCoreJs.isFetchSupported; | ||
exports.isFunction = applicationinsightsCoreJs.isFunction; | ||
@@ -1230,2 +1177,3 @@ exports.isIE = applicationinsightsCoreJs.isIE; | ||
exports.isUndefined = applicationinsightsCoreJs.isUndefined; | ||
exports.isXhrSupported = applicationinsightsCoreJs.isXhrSupported; | ||
exports.newGuid = applicationinsightsCoreJs.newGuid; | ||
@@ -1259,2 +1207,3 @@ exports.newId = applicationinsightsCoreJs.newId; | ||
exports.toISOString = applicationinsightsCoreJs.toISOString; | ||
exports.useXDomainRequest = applicationinsightsCoreJs.useXDomainRequest; | ||
exports.AppInsightsCore = AppInsightsCore; | ||
@@ -1289,6 +1238,4 @@ exports.BaseCore = BaseCore; | ||
exports.isArrayValid = isArrayValid; | ||
exports.isBeaconsSupported = isBeaconsSupported; | ||
exports.isChromium = isChromium; | ||
exports.isDocumentObjectAvailable = isDocumentObjectAvailable; | ||
exports.isFetchSupported = isFetchSupported; | ||
exports.isLatency = isLatency; | ||
@@ -1299,7 +1246,5 @@ exports.isUint8ArrayAvailable = isUint8ArrayAvailable; | ||
exports.isWindowObjectAvailable = isWindowObjectAvailable; | ||
exports.isXhrSupported = isXhrSupported; | ||
exports.sanitizeProperty = sanitizeProperty; | ||
exports.setCookie = setCookie; | ||
exports.setProcessTelemetryTimings = setProcessTelemetryTimings; | ||
exports.useXDomainRequest = useXDomainRequest; | ||
@@ -1306,0 +1251,0 @@ (function(obj, prop, descriptor) { /* ai_es3_polyfil defineProperty */ var func = Object["defineProperty"]; if (func) { try { return func(obj, prop, descriptor); } catch(e) { /* IE8 defines defineProperty, but will throw */ } } if (descriptor && typeof descriptor.value !== undefined) { obj[prop] = descriptor.value; } return obj; })(exports, '__esModule', { value: true }); |
/*! | ||
* 1DS JS SDK Core, 3.1.5 | ||
* 1DS JS SDK Core, 3.1.6 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
* (Microsoft Internal Only) | ||
*/ | ||
var e=this,n=function(e,r,f,n){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}var o=t(n),i={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},u={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},a={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},l=r.__assignFn(r.__assignFn({},f._InternalMessageId),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),s="3.1.5",d="1DS-Web-JS-"+s,c=((ae={})[0]=a.Unspecified,ae[2]=a.Double,ae[1]=a.String,ae[3]=a.Bool,ae[4098]=a.Double,ae[4097]=a.String,ae[4099]=a.Bool,ae),g=null,v=null,m=null;function p(e,n){var t,r=!1;if(e&&((r=n in e)||(t=e.prototype)&&(r=n in t),!r))try{var i=new e,r=!f.isUndefined(i[n])}catch(o){}return r}var h=!!f.getDocument(),y=!!f.getWindow();function S(e){return!(""===e||f.isNullOrUndefined(e))}function b(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function E(){return v=null===v?f.hasNavigator()&&!!f.getNavigator().sendBeacon:v}function C(){return typeof XMLHttpRequest!==undefined}function I(){return m=null===m?!(f.isUndefined(Uint8Array)||(e=f.getNavigator(),!f.isUndefined(e)&&e.userAgent&&(~(e=e.userAgent.toLowerCase()).indexOf("safari")||~e.indexOf("firefox"))&&!~e.indexOf("chrome"))||f.isReactNative()):m;var e}function P(e){return!!(e&&f.isNumber(e)&&u.Normal<=e&&e<=u.Immediate)}function N(e,n,t){if(!n&&!S(n)||"string"!=typeof e)return null;if("string"==(e=typeof n)||"number"==e||"boolean"==e||f.isArray(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(f.isNullOrUndefined(n.value)||""===n.value||!f.isString(n.value)&&!f.isNumber(n.value)&&!f.isBoolean(n.value)&&!f.isArray(n.value))return null}else n={value:t?JSON.stringify(n):n};if(f.isArray(n.value)&&!x(n.value))return null;if(!f.isNullOrUndefined(n.kind)){if(f.isArray(n.value)||!V(n.kind))return null;n.value=n.value.toString()}return n}function w(){return g=null===g&&(g=typeof XDomainRequest!==undefined)&&C()?g&&!p(XMLHttpRequest,"withCredentials"):g}function O(e,n,t){var r=-1;return f.isUndefined(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(e=c[L(e)]||-1,-1!==r&&-1!==e?r|=e:e===a.Double&&(r=e))),r}function A(){f.safeGetCookieMgr(null).setEnabled(!1)}function T(e,n,t){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).set(e,n,86400*t,null,"/")}function j(e){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).del(e)}function k(e){return f.areCookiesSupported(null)?D(f.safeGetCookieMgr(null),e):""}function D(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function F(e){void 0===e&&(e="D");var n=f.newGuid();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function U(e,n,t,r,i){var o={},a=!1,s=0,u=arguments.length,l=Object[f.strPrototype],d=arguments;for("[object Boolean]"===l.toString.call(d[0])&&(a=d[0],s++);s<u;s++)f.objForEachKey(d[s],function(t,e){a&&e&&f.isObject(e)?f.isArray(e)?(o[t]=o[t]||[],f.arrForEach(e,function(e,n){e&&f.isObject(e)?o[t][n]=U(!0,o[t][n],e):o[t][n]=e})):o[t]=U(!0,o[t],e):o[t]=e});return o}var R=f.perfNow;function V(e){return e===i.NotSet||e>i.NotSet&&e<=i.Pii_IPV4AddressLegacy||e===i.CustomerContent_GenericContent}function x(e){return 0<e.length}function H(e){var n=f.addEventHandler("beforeunload",e),n=f.addEventHandler("unload",e)||n;return f.addEventHandler("pagehide",e)||n}function M(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=R()}function L(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===r.strShimObject&&(t=4,f.isArray(e)?(t=4096,0<e.length&&(t|=L(e[0]))):f.hasOwnProperty(e,"value")&&(t=8192|L(e.value)))),t}var _,G={Version:s,FullVersionString:d,strUndefined:f.strUndefined,strObject:f.strObject,Undefined:f.strUndefined,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,objKeys:f.objKeys,toISOString:f.toISOString,isReactNative:f.isReactNative,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,isFunction:f.isFunction,isArray:f.isArray,isObject:f.isObject,strTrim:f.strTrim,isDocumentObjectAvailable:h,isWindowObjectAvailable:y,isValueAssigned:S,getTenantId:b,isBeaconsSupported:E,isUint8ArrayAvailable:I,isLatency:P,sanitizeProperty:N,getISOString:f.toISOString,useXDomainRequest:w,getCommonSchemaMetaData:O,cookieAvailable:f.areCookiesSupported,disallowsSameSiteNone:f.uaDisallowsSameSiteNone,setCookie:T,deleteCookie:j,getCookie:k,createGuid:F,extend:U,getTime:R,isValueKind:V,isArrayValid:x,objDefineAccessors:f.objDefineAccessors,addPageUnloadEventListener:H,setProcessTelemetryTimings:M,addEventHandler:f.addEventHandler,getFieldValueType:L,strEndsWith:f.strEndsWith,objForEachKey:f.objForEachKey},B={_canUseCookies:undefined,isTypeof:f.isTypeof,isUndefined:f.isUndefined,isNullOrUndefined:f.isNullOrUndefined,hasOwnProperty:f.hasOwnProperty,isFunction:f.isFunction,isObject:f.isObject,isDate:f.isDate,isArray:f.isArray,isError:f.isError,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,toISOString:f.toISOString,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,strTrim:f.strTrim,objCreate:r.objCreateFn,objKeys:f.objKeys,objDefineAccessors:f.objDefineAccessors,addEventHandler:f.addEventHandler,dateNow:f.dateNow,isIE:f.isIE,disableCookies:A,newGuid:f.newGuid,perfNow:f.perfNow,newId:f.newId,randomValue:f.randomValue,random32:f.random32,mwcRandomSeed:f.mwcRandomSeed,mwcRandom32:f.mwcRandom32,generateW3CId:f.generateW3CId},W="version",z="properties",K=(_=f.AppInsightsCore,r.__extendsFn(q,_),q);function q(){var e=_.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",o(q,e,function(a,s){a.initialize=function(t,r,i,o){f.doPerf(a,function(){return"AppInsightsCore.initialize"},function(){if(t){t.endpointUrl||(t.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var e=t.propertyStorageOverride;if(e&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");t.channels&&f.arrForEach(t.channels,function(e){e&&f.arrForEach(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,a.pluginVersionStringArr.push(e))})})}a.getWParam=function(){return"undefined"!=typeof document?0:-1},r&&f.arrForEach(r,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,a.pluginVersionStringArr.push(e))}),a.pluginVersionString=a.pluginVersionStringArr.join(";");try{s.initialize(t,r,i,o)}catch(n){a.logger.throwInternal(f.LoggingSeverity.CRITICAL,l.ErrorProvidedChannels,"Channels must be provided through config.channels only")}a.pollInternalLogs("InternalLog")},function(){return{config:t,extensions:r,logger:i,notificationManager:o}})},a.track=function(t){f.doPerf(a,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=R(),P(n.latency)||(n.latency=u.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=d,(e=n.baseData=n.baseData||{})[z]||(e[z]={}),(e=e[z])[W]||(e[W]=""),""!==a.pluginVersionString&&(e[W]=a.pluginVersionString)),s.track(n)},function(){return{item:t}},!t.sync)}}),e}var J,X=(J=f.BaseCore,r.__extendsFn(Q,J),Q);function Q(){var e=J.call(this)||this;return o(Q,e,function(o,a){o.initialize=function(e,n,t,r){e&&(e.endpointUrl||(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/")),o.getWParam=function(){return h?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(f.LoggingSeverity.CRITICAL,l.ErrorProvidedChannels,"Channels must be provided through config.channels only")}},o.track=function(e){var n=e;n&&((e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=d),a.track(n)}}),e}var Z=f.isFunction,Y=($.resolve=function(r){return r instanceof $?r:r&&Z(r.then)?new $(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new $(function(e){e(r)})},$.reject=function(t){return new $(function(e,n){n(t)})},$.all=function(s){if(s&&s.length)return new $(function(r,e){try{for(var i=[],o=0,n=0;n<s.length;n++){var t=s[n];t&&Z(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},$.race=function(i){return new $(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&Z(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})},$);function $(n){var a=0,s=null,e=[];function i(t,r,i,o){e.push(function(){var e;try{(e=1===a?Z(t)?t(s):s:Z(r)?r(s):s)instanceof $?e.then(i,o):(2!==a||Z(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&u()}function u(){var r;0<e.length&&(r=e.slice(),e=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(s=e,a=1,u())}function r(e){0===a&&(s=e,a=2,u())}o($,this,function(n){n.then=function(t,r){return new $(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),function(){if(!Z(n))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{n(t,r)}catch(e){r(e)}}()}var ee=0,ne=[],te=[],re=[];function ie(){return(new Date).getTime()}function oe(e,n){var p=0,h=(e||"<unnamed>")+"."+ee;function y(e){var n=f.getGlobal();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+h+"] "+e)}function S(e){n&&n.warnToConsole("ESPromiseScheduler["+h+"] "+e)}ee++,o(oe,this,function(e){var g=null,v=0;function m(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(t,e,s){var i=h+"."+v;v++,e&&(i+="-("+e+")");var o,a,n,r=i+"{"+p+"}";return p++,(e={evt:null,tm:ie(),id:r,isRunning:!1,isAborted:!1}).evt=g?(o=e,a=g,n=new Y(function(n,t){var e=ie()-a.tm,r=a.id;y("["+i+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+te.length+"] waiting and ["+ne.length+"] running"),o.abort=function(e){o.abort=null,m(te,i),o.isAborted=!0,t(Error(e))},a.evt.then(function(e){m(te,i),f(o).then(n,t)},function(e){m(te,i),f(o).then(n,t)})}),te.push(o),n):f(e),(g=e).evt._schId=r,e.evt;function u(e){for(var n=ie(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",S(o),e.splice(i,1),r--):i++}}function l(e,n){var t,r=!1,i=m(ne,e);i||(i=m(re,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=ie()-i.tm,n?r?S("Timed out event ["+e+"] finally complete -- "+t+" ms"):y("Promise ["+e+"] Complete -- "+t+" ms"):(re.push(i),S("Event ["+e+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+e+"] from running queue"),g&&g.id===e&&(g=null),u(ne),u(te),u(re)}function d(n,t){return function(e){return l(n,!0),t&&t(e),e}}function c(r,o){var a=r.id;return new Y(function(n,t){y("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,l(a,!1),t(Error(e))};var e=o(a);e instanceof Y?(s&&(r.to=setTimeout(function(){l(a,!1),t(Error("Timed out after ["+s+"] ms"))},s)),function i(n,e,t,r){e.then(function(e){return e instanceof Y?(y("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):d(n,t)(e)},d(n,r))}(a,e,function(e){y("Event ["+a+"] Resolving after "+(ie()-r.tm)+" ms"),n(e)},t)):(y("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function f(e){var n=ie();return e.wTm=n-e.tm,e.tm=n,e.isAborted?Y.reject(Error("["+i+"] was aborted")):(ne.push(e),c(e,t))}}})}oe.incomplete=function(){return ne},oe.waitingToStart=function(){return te},n=oe;var ae=(se.getFieldType=L,se);function se(e){var l=this,o={},a=[],s=[];function u(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(f.isString(e)&&f.isString(n))if(0<s.length){for(var r=0;r<s.length;r++)if(s[r].handleField(e,n)){i={canHandle:!0,fieldHandler:s[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function d(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!f.isNullOrUndefined(i.kind)){if(4096==(4096&r)||!V(i.kind))return null;i.value=i.value.toString()}return function u(i,o,a,e,n){var t,s,r;return n&&i&&(t=i.getSanitizer(o,a,e,n.kind,n.propertyType))&&(4===e?(s={},r=n.value,f.objForEachKey(r,function(e,n){var t,r=o+"."+a;S(n)&&(t=c(0,0,n),(t=u(i,r,e,L(n),t))&&(s[e]=t.value))}),n.value=s):n=t.call(l,e={path:o,name:a,type:e,prop:n,sanitizer:l})),n}(e.fieldHandler,n,t,r,i)}function c(e,n,t){return S(t)?{value:t}:null}e&&s.push(e),l.addSanitizer=function(e){e&&(a.push(e),o={})},l.addFieldSanitizer=function(e){e&&(s.push(e),o={})},l.handleField=function(e,n){return!!(n=u(e,n))&&n.canHandle},l.value=function(e,n,t,r){var i=u(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!f.isString(n)||f.isNullOrUndefined(t)||""===t)return null;var o=null,a=L(t);if(8192==(8192&a)){var s=-8193&a;if(!S((o=t).value)||1!=s&&2!=s&&3!=s&&4096!=(4096&s))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=c(0,0,t):4===a&&(o=c(0,0,r?JSON.stringify(t):t));if(o)return d(i,e,n,a,o,r)}return null},l.property=function(e,n,t,r){var i=u(e,n);if(!i||!i.canHandle)return null;if(!f.isString(n)||f.isNullOrUndefined(t)||!S(t.value))return null;var o=L(t.value);return 0===o?null:d(i,e,n,o,t,r)}}e.BaseTelemetryPlugin=f.BaseTelemetryPlugin,e.DiagnosticLogger=f.DiagnosticLogger,e.EventHelper=f.EventHelper,e.EventsDiscardedReason=f.EventsDiscardedReason,e.LoggingSeverity=f.LoggingSeverity,e.MinChannelPriorty=f.MinChannelPriorty,e.NotificationManager=f.NotificationManager,e.PerfEvent=f.PerfEvent,e.PerfManager=f.PerfManager,e.ProcessTelemetryContext=f.ProcessTelemetryContext,e.Undefined=f.strUndefined,e.addEventHandler=f.addEventHandler,e.areCookiesSupported=f.areCookiesSupported,e.arrForEach=f.arrForEach,e.arrIndexOf=f.arrIndexOf,e.arrMap=f.arrMap,e.arrReduce=f.arrReduce,e.attachEvent=f.attachEvent,e.cookieAvailable=f.areCookiesSupported,e.createCookieMgr=f.createCookieMgr,e.dateNow=f.dateNow,e.detachEvent=f.detachEvent,e.disallowsSameSiteNone=f.uaDisallowsSameSiteNone,e.doPerf=f.doPerf,e.dumpObj=f.dumpObj,e.generateW3CId=f.generateW3CId,e.getConsole=f.getConsole,e.getCrypto=f.getCrypto,e.getDocument=f.getDocument,e.getExceptionName=f.getExceptionName,e.getGlobal=f.getGlobal,e.getGlobalInst=f.getGlobalInst,e.getHistory=f.getHistory,e.getIEVersion=f.getIEVersion,e.getISOString=f.toISOString,e.getJSON=f.getJSON,e.getLocation=f.getLocation,e.getMsCrypto=f.getMsCrypto,e.getNavigator=f.getNavigator,e.getPerformance=f.getPerformance,e.getSetValue=f.getSetValue,e.getWindow=f.getWindow,e.hasDocument=f.hasDocument,e.hasHistory=f.hasHistory,e.hasJSON=f.hasJSON,e.hasNavigator=f.hasNavigator,e.hasOwnProperty=f.hasOwnProperty,e.hasWindow=f.hasWindow,e.isArray=f.isArray,e.isBoolean=f.isBoolean,e.isDate=f.isDate,e.isError=f.isError,e.isFunction=f.isFunction,e.isIE=f.isIE,e.isNotTruthy=f.isNotTruthy,e.isNullOrUndefined=f.isNullOrUndefined,e.isNumber=f.isNumber,e.isObject=f.isObject,e.isReactNative=f.isReactNative,e.isString=f.isString,e.isTruthy=f.isTruthy,e.isTypeof=f.isTypeof,e.isUndefined=f.isUndefined,e.newGuid=f.newGuid,e.newId=f.newId,e.normalizeJsName=f.normalizeJsName,e.objCreate=f.objCreate,e.objDefineAccessors=f.objDefineAccessors,e.objForEachKey=f.objForEachKey,e.objKeys=f.objKeys,e.optimizeObject=f.optimizeObject,e.perfNow=f.perfNow,e.proxyAssign=f.proxyAssign,e.random32=f.random32,e.randomValue=f.randomValue,e.safeGetCookieMgr=f.safeGetCookieMgr,e.safeGetLogger=f.safeGetLogger,e.setEnableEnvMocks=f.setEnableEnvMocks,e.setValue=f.setValue,e.strContains=f.strContains,e.strEndsWith=f.strEndsWith,e.strExtensionConfig=f.strExtensionConfig,e.strFunction=f.strFunction,e.strIKey=f.strIKey,e.strObject=f.strObject,e.strPrototype=f.strPrototype,e.strStartsWith=f.strStartsWith,e.strTrim=f.strTrim,e.strUndefined=f.strUndefined,e.throwError=f.throwError,e.toISOString=f.toISOString,e.AppInsightsCore=K,e.BaseCore=X,e.CoreUtils=B,e.ESPromise=Y,e.ESPromiseScheduler=n,e.EventLatency=u,e.EventPersistence={Normal:1,Critical:2},e.EventPropertyType=a,e.FullVersionString=d,e.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},e.Utils=G,e.ValueKind=i,e.ValueSanitizer=ae,e.Version=s,e._ExtendedInternalMessageId=l,e.addPageHideEventListener=function(t){var e=f.addEventHandler("pagehide",t);return f.addEventHandler("visibilitychange",function(e){var n=f.getDocument();t&&n&&"hidden"===n.visibilityState&&t(e)})||e},e.addPageShowEventListener=function(t){var e=f.addEventHandler("pageshow",t);return f.addEventHandler("visibilitychange",function(e){var n=f.getDocument();t&&n&&"visible"===n.visibilityState&&t(e)})||e},e.addPageUnloadEventListener=H,e.createGuid=F,e.deleteCookie=j,e.disableCookies=A,e.extend=U,e.getCommonSchemaMetaData=O,e.getCookie=k,e.getCookieValue=D,e.getFieldValueType=L,e.getTenantId=b,e.getTime=R,e.isArrayValid=x,e.isBeaconsSupported=E,e.isChromium=function(){return!!f.getGlobalInst("chrome")},e.isDocumentObjectAvailable=h,e.isFetchSupported=function(e){var n=!1;try{var n=!!f.getGlobalInst("fetch"),t=f.getGlobalInst("Request");n&&e&&t&&(n=p(t,"keepalive"))}catch(r){}return n},e.isLatency=P,e.isUint8ArrayAvailable=I,e.isValueAssigned=S,e.isValueKind=V,e.isWindowObjectAvailable=y,e.isXhrSupported=C,e.sanitizeProperty=N,e.setCookie=T,e.setProcessTelemetryTimings=M,e.useXDomainRequest=w,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@microsoft/applicationinsights-shims"),require("@microsoft/applicationinsights-core-js"),require("@microsoft/dynamicproto-js")):"function"==typeof define&&define.amd?define(["exports","@microsoft/applicationinsights-shims","@microsoft/applicationinsights-core-js","@microsoft/dynamicproto-js"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).oneDS=e.oneDS||{},e.applicationinsightsShims,e.applicationinsightsCoreJs,e.dynamicProto); | ||
var e=this,n=function(e,r,f,n){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}var o=t(n),i={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},u={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},a={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},l=r.__assignFn(r.__assignFn({},f._InternalMessageId),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),s="3.1.6",d="1DS-Web-JS-"+s,c=((ee={})[0]=a.Unspecified,ee[2]=a.Double,ee[1]=a.String,ee[3]=a.Bool,ee[4098]=a.Double,ee[4097]=a.String,ee[4099]=a.Bool,ee),g=null,v=!!f.getDocument(),m=!!f.getWindow();function p(e){return!(""===e||f.isNullOrUndefined(e))}function h(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function S(){return g=null===g?!(f.isUndefined(Uint8Array)||(e=f.getNavigator(),!f.isUndefined(e)&&e.userAgent&&(~(e=e.userAgent.toLowerCase()).indexOf("safari")||~e.indexOf("firefox"))&&!~e.indexOf("chrome"))||f.isReactNative()):g;var e}function y(e){return!!(e&&f.isNumber(e)&&u.Normal<=e&&e<=u.Immediate)}function b(e,n,t){if(!n&&!p(n)||"string"!=typeof e)return null;if("string"==(e=typeof n)||"number"==e||"boolean"==e||f.isArray(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(f.isNullOrUndefined(n.value)||""===n.value||!f.isString(n.value)&&!f.isNumber(n.value)&&!f.isBoolean(n.value)&&!f.isArray(n.value))return null}else n={value:t?JSON.stringify(n):n};if(f.isArray(n.value)&&!D(n.value))return null;if(!f.isNullOrUndefined(n.kind)){if(f.isArray(n.value)||!j(n.kind))return null;n.value=n.value.toString()}return n}function E(e,n,t){var r=-1;return f.isUndefined(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(e=c[U(e)]||-1,-1!==r&&-1!==e?r|=e:e===a.Double&&(r=e))),r}function C(){f.safeGetCookieMgr(null).setEnabled(!1)}function I(e,n,t){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).set(e,n,86400*t,null,"/")}function P(e){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).del(e)}function N(e){return f.areCookiesSupported(null)?w(f.safeGetCookieMgr(null),e):""}function w(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function O(e){void 0===e&&(e="D");var n=f.newGuid();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function A(e,n,t,r,i){var o={},a=!1,s=0,u=arguments.length,l=Object[f.strPrototype],d=arguments;for("[object Boolean]"===l.toString.call(d[0])&&(a=d[0],s++);s<u;s++)f.objForEachKey(d[s],function(t,e){a&&e&&f.isObject(e)?f.isArray(e)?(o[t]=o[t]||[],f.arrForEach(e,function(e,n){e&&f.isObject(e)?o[t][n]=A(!0,o[t][n],e):o[t][n]=e})):o[t]=A(!0,o[t],e):o[t]=e});return o}var T=f.perfNow;function j(e){return e===i.NotSet||e>i.NotSet&&e<=i.Pii_IPV4AddressLegacy||e===i.CustomerContent_GenericContent}function D(e){return 0<e.length}function k(e){var n=f.addEventHandler("beforeunload",e),n=f.addEventHandler("unload",e)||n;return f.addEventHandler("pagehide",e)||n}function F(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=T()}function U(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===r.strShimObject&&(t=4,f.isArray(e)?(t=4096,0<e.length&&(t|=U(e[0]))):f.hasOwnProperty(e,"value")&&(t=8192|U(e.value)))),t}var V,R={Version:s,FullVersionString:d,strUndefined:f.strUndefined,strObject:f.strObject,Undefined:f.strUndefined,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,objKeys:f.objKeys,toISOString:f.toISOString,isReactNative:f.isReactNative,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,isFunction:f.isFunction,isArray:f.isArray,isObject:f.isObject,strTrim:f.strTrim,isDocumentObjectAvailable:v,isWindowObjectAvailable:m,isValueAssigned:p,getTenantId:h,isBeaconsSupported:f.isBeaconsSupported,isUint8ArrayAvailable:S,isLatency:y,sanitizeProperty:b,getISOString:f.toISOString,useXDomainRequest:f.useXDomainRequest,getCommonSchemaMetaData:E,cookieAvailable:f.areCookiesSupported,disallowsSameSiteNone:f.uaDisallowsSameSiteNone,setCookie:I,deleteCookie:P,getCookie:N,createGuid:O,extend:A,getTime:T,isValueKind:j,isArrayValid:D,objDefineAccessors:f.objDefineAccessors,addPageUnloadEventListener:k,setProcessTelemetryTimings:F,addEventHandler:f.addEventHandler,getFieldValueType:U,strEndsWith:f.strEndsWith,objForEachKey:f.objForEachKey},x={_canUseCookies:undefined,isTypeof:f.isTypeof,isUndefined:f.isUndefined,isNullOrUndefined:f.isNullOrUndefined,hasOwnProperty:f.hasOwnProperty,isFunction:f.isFunction,isObject:f.isObject,isDate:f.isDate,isArray:f.isArray,isError:f.isError,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,toISOString:f.toISOString,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,strTrim:f.strTrim,objCreate:r.objCreateFn,objKeys:f.objKeys,objDefineAccessors:f.objDefineAccessors,addEventHandler:f.addEventHandler,dateNow:f.dateNow,isIE:f.isIE,disableCookies:C,newGuid:f.newGuid,perfNow:f.perfNow,newId:f.newId,randomValue:f.randomValue,random32:f.random32,mwcRandomSeed:f.mwcRandomSeed,mwcRandom32:f.mwcRandom32,generateW3CId:f.generateW3CId},H="version",M="properties",_=(V=f.AppInsightsCore,r.__extendsFn(L,V),L);function L(){var e=V.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",o(L,e,function(a,s){a.initialize=function(t,r,i,o){f.doPerf(a,function(){return"AppInsightsCore.initialize"},function(){if(t){t.endpointUrl||(t.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var e=t.propertyStorageOverride;if(e&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");t.channels&&f.arrForEach(t.channels,function(e){e&&f.arrForEach(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,a.pluginVersionStringArr.push(e))})})}a.getWParam=function(){return"undefined"!=typeof document?0:-1},r&&f.arrForEach(r,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,a.pluginVersionStringArr.push(e))}),a.pluginVersionString=a.pluginVersionStringArr.join(";");try{s.initialize(t,r,i,o)}catch(n){a.logger.throwInternal(f.LoggingSeverity.CRITICAL,l.ErrorProvidedChannels,"Channels must be provided through config.channels only")}a.pollInternalLogs("InternalLog")},function(){return{config:t,extensions:r,logger:i,notificationManager:o}})},a.track=function(t){f.doPerf(a,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=T(),y(n.latency)||(n.latency=u.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=d,(e=n.baseData=n.baseData||{})[M]||(e[M]={}),(e=e[M])[H]||(e[H]=""),""!==a.pluginVersionString&&(e[H]=a.pluginVersionString)),s.track(n)},function(){return{item:t}},!t.sync)}}),e}var G,B=(G=f.BaseCore,r.__extendsFn(W,G),W);function W(){var e=G.call(this)||this;return o(W,e,function(o,a){o.initialize=function(e,n,t,r){e&&(e.endpointUrl||(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/")),o.getWParam=function(){return v?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(f.LoggingSeverity.CRITICAL,l.ErrorProvidedChannels,"Channels must be provided through config.channels only")}},o.track=function(e){var n=e;n&&((e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=d),a.track(n)}}),e}var z=f.isFunction,K=(J.resolve=function(r){return r instanceof J?r:r&&z(r.then)?new J(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new J(function(e){e(r)})},J.reject=function(t){return new J(function(e,n){n(t)})},J.all=function(s){if(s&&s.length)return new J(function(r,e){try{for(var i=[],o=0,n=0;n<s.length;n++){var t=s[n];t&&z(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},J.race=function(i){return new J(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&z(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})},J);function J(n){var a=0,s=null,e=[];function i(t,r,i,o){e.push(function(){var e;try{(e=1===a?z(t)?t(s):s:z(r)?r(s):s)instanceof J?e.then(i,o):(2!==a||z(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&u()}function u(){var r;0<e.length&&(r=e.slice(),e=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(s=e,a=1,u())}function r(e){0===a&&(s=e,a=2,u())}o(J,this,function(n){n.then=function(t,r){return new J(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),function(){if(!z(n))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{n(t,r)}catch(e){r(e)}}()}var q=0,X=[],Q=[],Z=[];function Y(){return(new Date).getTime()}function $(e,n){var p=0,h=(e||"<unnamed>")+"."+q;function S(e){var n=f.getGlobal();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+h+"] "+e)}function y(e){n&&n.warnToConsole("ESPromiseScheduler["+h+"] "+e)}q++,o($,this,function(e){var g=null,v=0;function m(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(t,e,s){var i=h+"."+v;v++,e&&(i+="-("+e+")");var o,a,n,r=i+"{"+p+"}";return p++,(e={evt:null,tm:Y(),id:r,isRunning:!1,isAborted:!1}).evt=g?(o=e,a=g,n=new K(function(n,t){var e=Y()-a.tm,r=a.id;S("["+i+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+Q.length+"] waiting and ["+X.length+"] running"),o.abort=function(e){o.abort=null,m(Q,i),o.isAborted=!0,t(Error(e))},a.evt.then(function(e){m(Q,i),f(o).then(n,t)},function(e){m(Q,i),f(o).then(n,t)})}),Q.push(o),n):f(e),(g=e).evt._schId=r,e.evt;function u(e){for(var n=Y(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",y(o),e.splice(i,1),r--):i++}}function l(e,n){var t,r=!1,i=m(X,e);i||(i=m(Z,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Y()-i.tm,n?r?y("Timed out event ["+e+"] finally complete -- "+t+" ms"):S("Promise ["+e+"] Complete -- "+t+" ms"):(Z.push(i),y("Event ["+e+"] Timed out and removed -- "+t+" ms"))):S("Failed to remove ["+e+"] from running queue"),g&&g.id===e&&(g=null),u(X),u(Q),u(Z)}function d(n,t){return function(e){return l(n,!0),t&&t(e),e}}function c(r,o){var a=r.id;return new K(function(n,t){S("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,l(a,!1),t(Error(e))};var e=o(a);e instanceof K?(s&&(r.to=setTimeout(function(){l(a,!1),t(Error("Timed out after ["+s+"] ms"))},s)),function i(n,e,t,r){e.then(function(e){return e instanceof K?(S("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):d(n,t)(e)},d(n,r))}(a,e,function(e){S("Event ["+a+"] Resolving after "+(Y()-r.tm)+" ms"),n(e)},t)):(S("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function f(e){var n=Y();return e.wTm=n-e.tm,e.tm=n,e.isAborted?K.reject(Error("["+i+"] was aborted")):(X.push(e),c(e,t))}}})}$.incomplete=function(){return X},$.waitingToStart=function(){return Q},n=$;var ee=(ne.getFieldType=U,ne);function ne(e){var l=this,o={},a=[],s=[];function u(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(f.isString(e)&&f.isString(n))if(0<s.length){for(var r=0;r<s.length;r++)if(s[r].handleField(e,n)){i={canHandle:!0,fieldHandler:s[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function d(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!f.isNullOrUndefined(i.kind)){if(4096==(4096&r)||!j(i.kind))return null;i.value=i.value.toString()}return function u(i,o,a,e,n){var t,s,r;return n&&i&&(t=i.getSanitizer(o,a,e,n.kind,n.propertyType))&&(4===e?(s={},r=n.value,f.objForEachKey(r,function(e,n){var t,r=o+"."+a;p(n)&&(t=c(0,0,n),(t=u(i,r,e,U(n),t))&&(s[e]=t.value))}),n.value=s):n=t.call(l,e={path:o,name:a,type:e,prop:n,sanitizer:l})),n}(e.fieldHandler,n,t,r,i)}function c(e,n,t){return p(t)?{value:t}:null}e&&s.push(e),l.addSanitizer=function(e){e&&(a.push(e),o={})},l.addFieldSanitizer=function(e){e&&(s.push(e),o={})},l.handleField=function(e,n){return!!(n=u(e,n))&&n.canHandle},l.value=function(e,n,t,r){var i=u(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!f.isString(n)||f.isNullOrUndefined(t)||""===t)return null;var o=null,a=U(t);if(8192==(8192&a)){var s=-8193&a;if(!p((o=t).value)||1!=s&&2!=s&&3!=s&&4096!=(4096&s))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=c(0,0,t):4===a&&(o=c(0,0,r?JSON.stringify(t):t));if(o)return d(i,e,n,a,o,r)}return null},l.property=function(e,n,t,r){var i=u(e,n);if(!i||!i.canHandle)return null;if(!f.isString(n)||f.isNullOrUndefined(t)||!p(t.value))return null;var o=U(t.value);return 0===o?null:d(i,e,n,o,t,r)}}e.BaseTelemetryPlugin=f.BaseTelemetryPlugin,e.DiagnosticLogger=f.DiagnosticLogger,e.EventHelper=f.EventHelper,e.EventsDiscardedReason=f.EventsDiscardedReason,e.LoggingSeverity=f.LoggingSeverity,e.MinChannelPriorty=f.MinChannelPriorty,e.NotificationManager=f.NotificationManager,e.PerfEvent=f.PerfEvent,e.PerfManager=f.PerfManager,e.ProcessTelemetryContext=f.ProcessTelemetryContext,e.Undefined=f.strUndefined,e.addEventHandler=f.addEventHandler,e.areCookiesSupported=f.areCookiesSupported,e.arrForEach=f.arrForEach,e.arrIndexOf=f.arrIndexOf,e.arrMap=f.arrMap,e.arrReduce=f.arrReduce,e.attachEvent=f.attachEvent,e.cookieAvailable=f.areCookiesSupported,e.createCookieMgr=f.createCookieMgr,e.dateNow=f.dateNow,e.detachEvent=f.detachEvent,e.disallowsSameSiteNone=f.uaDisallowsSameSiteNone,e.doPerf=f.doPerf,e.dumpObj=f.dumpObj,e.generateW3CId=f.generateW3CId,e.getConsole=f.getConsole,e.getCrypto=f.getCrypto,e.getDocument=f.getDocument,e.getExceptionName=f.getExceptionName,e.getGlobal=f.getGlobal,e.getGlobalInst=f.getGlobalInst,e.getHistory=f.getHistory,e.getIEVersion=f.getIEVersion,e.getISOString=f.toISOString,e.getJSON=f.getJSON,e.getLocation=f.getLocation,e.getMsCrypto=f.getMsCrypto,e.getNavigator=f.getNavigator,e.getPerformance=f.getPerformance,e.getSetValue=f.getSetValue,e.getWindow=f.getWindow,e.hasDocument=f.hasDocument,e.hasHistory=f.hasHistory,e.hasJSON=f.hasJSON,e.hasNavigator=f.hasNavigator,e.hasOwnProperty=f.hasOwnProperty,e.hasWindow=f.hasWindow,e.isArray=f.isArray,e.isBeaconsSupported=f.isBeaconsSupported,e.isBoolean=f.isBoolean,e.isDate=f.isDate,e.isError=f.isError,e.isFetchSupported=f.isFetchSupported,e.isFunction=f.isFunction,e.isIE=f.isIE,e.isNotTruthy=f.isNotTruthy,e.isNullOrUndefined=f.isNullOrUndefined,e.isNumber=f.isNumber,e.isObject=f.isObject,e.isReactNative=f.isReactNative,e.isString=f.isString,e.isTruthy=f.isTruthy,e.isTypeof=f.isTypeof,e.isUndefined=f.isUndefined,e.isXhrSupported=f.isXhrSupported,e.newGuid=f.newGuid,e.newId=f.newId,e.normalizeJsName=f.normalizeJsName,e.objCreate=f.objCreate,e.objDefineAccessors=f.objDefineAccessors,e.objForEachKey=f.objForEachKey,e.objKeys=f.objKeys,e.optimizeObject=f.optimizeObject,e.perfNow=f.perfNow,e.proxyAssign=f.proxyAssign,e.random32=f.random32,e.randomValue=f.randomValue,e.safeGetCookieMgr=f.safeGetCookieMgr,e.safeGetLogger=f.safeGetLogger,e.setEnableEnvMocks=f.setEnableEnvMocks,e.setValue=f.setValue,e.strContains=f.strContains,e.strEndsWith=f.strEndsWith,e.strExtensionConfig=f.strExtensionConfig,e.strFunction=f.strFunction,e.strIKey=f.strIKey,e.strObject=f.strObject,e.strPrototype=f.strPrototype,e.strStartsWith=f.strStartsWith,e.strTrim=f.strTrim,e.strUndefined=f.strUndefined,e.throwError=f.throwError,e.toISOString=f.toISOString,e.useXDomainRequest=f.useXDomainRequest,e.AppInsightsCore=_,e.BaseCore=B,e.CoreUtils=x,e.ESPromise=K,e.ESPromiseScheduler=n,e.EventLatency=u,e.EventPersistence={Normal:1,Critical:2},e.EventPropertyType=a,e.FullVersionString=d,e.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},e.Utils=R,e.ValueKind=i,e.ValueSanitizer=ee,e.Version=s,e._ExtendedInternalMessageId=l,e.addPageHideEventListener=function(t){var e=f.addEventHandler("pagehide",t);return f.addEventHandler("visibilitychange",function(e){var n=f.getDocument();t&&n&&"hidden"===n.visibilityState&&t(e)})||e},e.addPageShowEventListener=function(t){var e=f.addEventHandler("pageshow",t);return f.addEventHandler("visibilitychange",function(e){var n=f.getDocument();t&&n&&"visible"===n.visibilityState&&t(e)})||e},e.addPageUnloadEventListener=k,e.createGuid=O,e.deleteCookie=P,e.disableCookies=C,e.extend=A,e.getCommonSchemaMetaData=E,e.getCookie=N,e.getCookieValue=w,e.getFieldValueType=U,e.getTenantId=h,e.getTime=T,e.isArrayValid=D,e.isChromium=function(){return!!f.getGlobalInst("chrome")},e.isDocumentObjectAvailable=v,e.isLatency=y,e.isUint8ArrayAvailable=S,e.isValueAssigned=p,e.isValueKind=j,e.isWindowObjectAvailable=m,e.sanitizeProperty=b,e.setCookie=I,e.setProcessTelemetryTimings=F,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@microsoft/applicationinsights-shims"),require("@microsoft/applicationinsights-core-js"),require("@microsoft/dynamicproto-js")):"function"==typeof define&&define.amd?define(["exports","@microsoft/applicationinsights-shims","@microsoft/applicationinsights-core-js","@microsoft/dynamicproto-js"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).oneDS=e.oneDS||{},e.applicationinsightsShims,e.applicationinsightsCoreJs,e.dynamicProto); | ||
//# sourceMappingURL=ms.core.min.js.map |
{ | ||
"name": "@microsoft/1ds-core-js", | ||
"version": "3.1.5", | ||
"version": "3.1.6", | ||
"description": "Microsoft Application Insights JavaScript SDK - 1ds-core-js extensions", | ||
@@ -36,3 +36,3 @@ "author": "Microsoft Application Insights Team", | ||
"@microsoft/applicationinsights-shims": "^2.0.0", | ||
"@microsoft/applicationinsights-core-js": "2.6.5", | ||
"@microsoft/applicationinsights-core-js": "2.7.0", | ||
"@microsoft/dynamicproto-js": "^1.1.4" | ||
@@ -39,0 +39,0 @@ }, |
@@ -111,3 +111,3 @@ --- | ||
You can learn more in [1DS First party getting started](https://1dsdocs.azurewebsites.net/getting-started/javascript-first-party-getting_started.html). | ||
You can learn more in [1DS First party getting started](https://1dsdocs.azurewebsites.net/getting-started/javascript-getting_started.html). | ||
@@ -114,0 +114,0 @@ ## Data Collection |
@@ -60,15 +60,14 @@ /** | ||
toISOString as getISOString, | ||
isBeaconsSupported, isFetchSupported, isXhrSupported, useXDomainRequest | ||
} from "@microsoft/applicationinsights-core-js"; | ||
export { | ||
isValueAssigned, isBeaconsSupported, isLatency, isFetchSupported, isXhrSupported, | ||
isUint8ArrayAvailable, getTenantId, sanitizeProperty, | ||
isValueAssigned, isLatency, isUint8ArrayAvailable, getTenantId, sanitizeProperty, | ||
Version, FullVersionString, getCommonSchemaMetaData, getCookie, setCookie, deleteCookie, getCookieValue, | ||
extend, createGuid, useXDomainRequest, isDocumentObjectAvailable, isWindowObjectAvailable, | ||
extend, createGuid, isDocumentObjectAvailable, isWindowObjectAvailable, | ||
addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener, setProcessTelemetryTimings, getTime, | ||
isArrayValid, isValueKind, | ||
getFieldValueType, | ||
CoreUtils, disableCookies, // exporting the overridden version fot tree-shaking | ||
isArrayValid, isValueKind, getFieldValueType, | ||
CoreUtils, disableCookies, // exporting the overridden version for tree-shaking | ||
Utils, // Replacement for import * as Utils from "./Utils"; | ||
isChromium, // Replace with ai-core version once published in ai-core | ||
} from "./Utils"; |
@@ -11,9 +11,8 @@ /** | ||
import { | ||
ITelemetryItem, getDocument, hasNavigator, getNavigator, getWindow, getGlobalInst, | ||
ITelemetryItem, getDocument, getNavigator, getWindow, getGlobalInst, | ||
objForEachKey, isUndefined, isNullOrUndefined, isNumber, isReactNative, isString, isBoolean, isArray, | ||
newGuid, isObject, perfNow, hasOwnProperty, addEventHandler, uaDisallowsSameSiteNone, strPrototype, objDefineAccessors, | ||
toISOString, strTrim, isFunction, objKeys, arrReduce, arrMap, arrIndexOf, arrForEach, strUndefined, strObject, | ||
areCookiesSupported, IDiagnosticLogger, ICookieMgr, safeGetCookieMgr, IConfiguration, IAppInsightsCore, generateW3CId, | ||
mwcRandom32, mwcRandomSeed, random32, randomValue, newId, isIE, dateNow, isError, isDate, isTypeof, ICoreUtils, strEndsWith, | ||
objFreeze, | ||
areCookiesSupported, ICookieMgr, safeGetCookieMgr, generateW3CId, | ||
mwcRandom32, mwcRandomSeed, random32, randomValue, newId, isIE, dateNow, isError, isDate, isTypeof, ICoreUtils, strEndsWith, useXDomainRequest, isBeaconsSupported, | ||
} from "@microsoft/applicationinsights-core-js"; | ||
@@ -24,5 +23,2 @@ | ||
// TypeScript removed this interface so we need to declare the global so we can check for it's existence. | ||
declare var XDomainRequest: any; | ||
// If value is array just get the type for the first element | ||
@@ -44,31 +40,5 @@ const _fieldTypeEventPropMap = { | ||
let _useXDomainRequest: boolean | null = null; | ||
var beaconsSupported: boolean | null = null; | ||
var uInt8ArraySupported: boolean | null = null; | ||
// var _areCookiesAvailable: boolean | undefined; | ||
function _hasProperty(theClass: any, property: string) { | ||
let supported = false; | ||
if (theClass) { | ||
supported = property in theClass; | ||
if (!supported) { | ||
let proto = theClass.prototype; | ||
if (proto) { | ||
supported = property in proto; | ||
} | ||
} | ||
if (!supported) { | ||
try { | ||
let tmp = new theClass(); | ||
supported = !isUndefined(tmp[property]); | ||
} catch (e) { | ||
// Do Nothing | ||
} | ||
} | ||
} | ||
return supported; | ||
} | ||
/** | ||
@@ -112,42 +82,2 @@ * Checks if document object is available | ||
/** | ||
* Checks if HTML5 Beacons are supported in the current environment. | ||
* @returns True if supported, false otherwise. | ||
*/ | ||
export function isBeaconsSupported(): boolean { | ||
if (beaconsSupported === null) { | ||
beaconsSupported = hasNavigator() && Boolean(getNavigator().sendBeacon); | ||
} | ||
return beaconsSupported; | ||
} | ||
/** | ||
* Checks if the Fetch API is supported in the current environment. | ||
* @param withKeepAlive - [Optional] If True, check if fetch is available and it supports the keepalive feature, otherwise only check if fetch is supported | ||
* @returns True if supported, otherwise false | ||
*/ | ||
export function isFetchSupported(withKeepAlive?: boolean): boolean { | ||
let isSupported = false; | ||
try { | ||
const fetchApi = getGlobalInst("fetch"); | ||
isSupported = !!fetchApi; | ||
const request = getGlobalInst("Request"); | ||
if (isSupported && withKeepAlive && request) { | ||
isSupported = _hasProperty(request, "keepalive"); | ||
} | ||
} catch (e) { | ||
// Just Swallow any failure during availability checks | ||
} | ||
return isSupported; | ||
} | ||
/** | ||
* Checks if XMLHttpRequest is supported | ||
* @returns True if supported, otherwise false | ||
*/ | ||
export function isXhrSupported(): boolean { | ||
return typeof XMLHttpRequest !== undefined; | ||
} | ||
/** | ||
* Checks if Uint8Array are available in the current environment. Safari and Firefox along with | ||
@@ -228,13 +158,2 @@ * ReactNative are known to not support Uint8Array properly. | ||
export function useXDomainRequest(): boolean | undefined { | ||
if (_useXDomainRequest === null) { | ||
_useXDomainRequest = (typeof XDomainRequest !== undefined); | ||
if (_useXDomainRequest && isXhrSupported()) { | ||
_useXDomainRequest = _useXDomainRequest && !_hasProperty(XMLHttpRequest, "withCredentials"); | ||
} | ||
} | ||
return _useXDomainRequest; | ||
} | ||
export function getCommonSchemaMetaData(value: string | boolean | number | string[] | number[] | boolean[] | undefined, kind: number | undefined, type?: number | undefined): number { | ||
@@ -241,0 +160,0 @@ let encodedTypeValue = -1; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3273966
17305
+ Added@microsoft/applicationinsights-core-js@2.7.0(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@microsoft/applicationinsights-core-js@2.6.5(transitive)