@microsoft/applicationinsights-properties-js 2.8.1-nightly.2204-21 → 2.8.2-nightly.2204-24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/applicationinsights-properties-js.integrity.json +9 -9
- package/browser/applicationinsights-properties-js.js +12 -7
- package/browser/applicationinsights-properties-js.js.map +1 -1
- package/browser/applicationinsights-properties-js.min.js +2 -2
- package/browser/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.api.json +1 -1
- package/dist/applicationinsights-properties-js.d.ts +1 -1
- package/dist/applicationinsights-properties-js.js +12 -7
- package/dist/applicationinsights-properties-js.js.map +1 -1
- package/dist/applicationinsights-properties-js.min.js +2 -2
- package/dist/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.rollup.d.ts +1 -1
- package/dist-esm/Context/Application.js +1 -1
- package/dist-esm/Context/Device.js +1 -1
- package/dist-esm/Context/Internal.js +2 -2
- package/dist-esm/Context/Internal.js.map +1 -1
- package/dist-esm/Context/Location.js +1 -1
- package/dist-esm/Context/Session.js +1 -1
- package/dist-esm/Context/TelemetryTrace.js +1 -1
- package/dist-esm/Context/User.js +1 -1
- package/dist-esm/Interfaces/IPropTelemetryContext.js +1 -1
- package/dist-esm/Interfaces/ITelemetryConfig.js +1 -1
- package/dist-esm/PropertiesPlugin.js +1 -1
- package/dist-esm/TelemetryContext.js +1 -1
- package/dist-esm/applicationinsights-properties-js.js +1 -1
- package/package.json +4 -4
- package/src/Context/Internal.ts +1 -1
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Properties Plugin, 2.8.
|
|
2
|
+
* Application Insights JavaScript SDK - Properties Plugin, 2.8.2-nightly.2204-24
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
|
-
var e=this,n=function(e){"use strict";var E="function",a="object",V="undefined",o="prototype",R="hasOwnProperty",t=Object,n=t[o],j=t.create,r=t.defineProperty,q=n[R],B=null;function K(e){return void 0===e&&(e=!0),B&&e||(typeof globalThis!==V&&globalThis&&(B=globalThis),typeof self!==V&&self&&(B=self),typeof window!==V&&window&&(B=window),typeof global!==V&&global&&(B=global)),B}function F(e){throw new TypeError(e)}(K()||{}).Symbol,(K()||{}).Reflect;var z=function(e,n){return(z=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[R](t)&&(e[t]=n[t])})(e,n)};function W(e,n){function t(){this.constructor=e}typeof n!==E&&null!==n&&F("Class extends value "+n+" is not a constructor or null"),z(e,n),e[o]=null===n?function(e){if(j)return j(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==E&&F("Object prototype may only be an Object:"+e),t[o]=e,new t}(n):(t[o]=n[o],new t)}var J="constructor",p="prototype",$="function",G="_dynInstFuncs",H="_isDynProxy",X="_dynClass",Y="_dynInstChk",Z=Y,Q="_dfOpts",ee="_unknown_",ne="__proto__",te="useBaseInst",oe="setInstFuncs",re=Object,ie=re.getPrototypeOf,ae=0;function v(e,n){return e&&re[p].hasOwnProperty.call(e,n)}function ue(e){return e&&(e===re[p]||e===Array[p])}function ce(e){return ue(e)||e===Function[p]}function h(e){if(e){if(ie)return ie(e);e=e[ne]||e[p]||(e[J]?e[J][p]:null);if(e)return e}return null}function se(e,n){var t=[],o=re.getOwnPropertyNames;if(o)t=o(e);else for(var r in e)"string"==typeof r&&v(e,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function le(e,n,t){return n!==J&&typeof e[n]===$&&(t||v(e,n))}function fe(e){throw new TypeError("DynamicProto: "+e)}function de(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function ge(e,n){return v(e,p)?e.name||n||ee:((e||{})[J]||{}).name||n||ee}function y(e,o,n,t){v(e,p)||fe("theClass is an invalid class definition.");var r,i,a,u,c,s,l=e[p],f=(function(e){if(ie)for(var n=[],t=h(o);t&&!ce(t)&&!de(n,t);){if(t===e)return 1;n.push(t),t=h(t)}}(l)||fe("["+ge(e)+"] is not in class hierarchy of ["+ge(o)+"]"),null),e=(v(l,X)?f=l[X]:(f="_dynCls$"+ge(e,"_")+"$"+ae,ae++,l[X]=f),y[Q]),d=!!e[te],g=(d&&t&&t[te]!==undefined&&(d=!!t[te]),i={},se(r=o,function(e){!i[e]&&le(r,e,!1)&&(i[e]=r[e])}),i),d=(n(o,function(e,n,t,i){function o(e,n,t){var o,r=n[t];return r[H]&&i&&!1!==(o=e[G]||{})[Z]&&(r=(o[n[X]]||{})[t]||r),function(){return r.apply(e,arguments)}}for(var r={},a=(se(t,function(e){r[e]=o(n,t,e)}),h(e)),u=[];a&&!ce(a)&&!de(u,a);)se(a,function(e){!r[e]&&le(a,e,!ie)&&(r[e]=o(n,a,e))}),u.push(a),a=h(a);return r}(l,o,g,d)),!!ie&&!!e[oe]);a=l,n=f,u=o,c=g,e=!1!==(d=d&&t?!!t[oe]:d),ue(a)||(l=u[G]=u[G]||{},s=l[n]=l[n]||{},!1!==l[Z]&&(l[Z]=!!e),se(u,function(e){var t,o,r;le(u,e,!1)&&u[e]!==c[e]&&(s[e]=u[e],delete u[e],v(a,e)&&(!a[e]||a[e][H])||(a[e]=(t=a,o=e,(r=function(){var e,n;return(function(e,n,t,o){var r=null;if(e&&v(t,X)){var i=e[G]||{};if((r=(i[t[X]]||{})[n])||fe("Missing ["+n+"] "+$),!r[Y]&&!1!==i[Z]){for(var a=!v(e,n),u=h(e),c=[];a&&u&&!ce(u)&&!de(c,u);){var s=u[n];if(s){a=s===o;break}c.push(u),u=h(u)}try{a&&(e[n]=r),r[Y]=1}catch(l){i[Z]=!1}}}return r}(this,o,t,r)||(typeof(n=(n=t[e=o])===r?h(t)[e]:n)!==$&&fe("["+e+"] is not a "+$),n)).apply(this,arguments)})[H]=1,r)))}))}y[Q]={setInstFuncs:!0,useBaseInst:!0};var g="",pe="isInitialized",ve="teardown",he="core",ye="update",me="disabled",xe="_doTeardown",Ce="toISOString",we="endsWith",Ie="trim",i="toString",Se="constructor",be=r,Ne=t.freeze,ke=t.keys,_e=String[o],Te=_e[Ie],Me=_e[we],Pe=Date[o][Ce],_e=Array.isArray,Ue=n[i],De=q[i],Ae=De.call(t),Le=/-([a-z])/g,Oe=/([^\w\d_$])/g,Ee=/^(\d+[\w\d_$])/,Ve=Object.getPrototypeOf;function m(e){return e===undefined||typeof e===V}function x(e){return null===e||m(e)}function Re(e){return!x(e)}function je(e){return!(!e||typeof e!==a)}function C(e){return!(!e||typeof e!==E)}function qe(e){var n=e;return e&&S(e)?(n=(n=e.replace(Le,function(e,n){return n.toUpperCase()})).replace(Oe,"_")).replace(Ee,function(e,n){return"_"+n}):n}function f(e,n){if(e)for(var t in e)q.call(e,t)&&n.call(e,t,e[t])}function w(e,n){return!(!e||!n||!~e.indexOf(n))}var I=_e||function(e){return!(!e||"[object Array]"!==Ue.call(e))};function S(e){return"string"==typeof e}function Be(e){return e&&"object"==typeof e&&(!(e=(Ve||function(e){if(e){if(Ve)return Ve(e);e=e.__proto__||e[o]||e[Se];if(e)return e}return null})(e))||typeof(e=e[Se]&&q.call(e,Se)?e[Se]:e)===E&&De.call(e)===Ae)}function Ke(e,n,t){var o=e.length;try{for(var r=0;r<o&&!(r in e&&-1===n.call(t||e,e[r],r,e));r++);}catch(i){}}function b(e){return e&&(Te&&e[Ie]?e[Ie]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var Fe=!{toString:null}.propertyIsEnumerable("toString"),ze=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],We=Ne||function(e){return e};function Je(){var e=Date;return e.now?e.now():(new e).getTime()}function $e(e){return e&&"[object Error]"===Ue.call(e)?e.name:g}function N(e,n,t,o,r){var i=t;!e||(i=e[n])===t||r&&!r(i)||o&&!o(t)||(e[n]=i=t)}function d(e,n,t){var o;return e?!(o=e[n])&&x(o)&&(o=m(t)?{}:t,e[n]=o):o=m(t)?{}:t,o}function Ge(e){return!!e}function He(e){var t={};return f(e,function(e,n){t[e]=n,t[n]=e}),e=t,Ne&&f(e,function(e,n){(I(n)||je(n))&&Ne(n)}),We(e)}var Xe="window",Ye="navigator",Ze="location",Qe="JSON",en="crypto",nn="msCrypto",tn="msie",on="trident/",rn=null,an=null,un=!1;function s(e){var n=K();return n&&n[e]?n[e]:e===Xe&&cn()?window:null}function cn(){return typeof window===a&&window}function sn(){return typeof navigator===a&&navigator?navigator:s(Ye)}function ln(e){if(e&&un){e=s("__mockLocation");if(e)return e}return typeof location===a&&location?location:s(Ze)}function fn(){return typeof JSON===a&&JSON||null!==s(Qe)}function dn(){return fn()?JSON||s(Qe):null}function gn(){var e=sn();return!e||e.userAgent===an&&null!==rn||(e=((an=e.userAgent)||g).toLowerCase(),rn=w(e,tn)||w(e,on)),rn}function k(e){var n=Object[o].toString.call(e),t=g;return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":fn()&&(t=dn().stringify(e)),n+t}var pn=null;function vn(e){return e?'"'+e.replace(/\"/g,g)+'"':g}function hn(e,n){var t,o=typeof console!==V?console:s("console");o&&(t="log",C(o[t=o[e]?e:t])&&o[t](n))}mn.dataType="MessageData";var yn=mn;function mn(e,n,t,o){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t=g,fn()&&(t=dn().stringify(o)),e=(n?" message:"+vn(n):g)+(o?" props:"+vn(t):g);this.message+=e}function xn(e,n){return(e||{}).logger||new Cn(n)}var Cn=function Yt(r){this.identifier="DiagnosticLogger",this.queue=[];var u=0,c={};y(Yt,this,function(i){function e(e,n){e=r[e];return x(e)?n:e}function a(e,n){var t,o=(t=(t=pn)||!0===r.disableDbgExt?t:pn||(o=s("Microsoft"),pn=o?o.ApplicationInsights:pn))?t.ChromeDbgExt:null;o&&o.diagLog&&o.diagLog(e,n)}x(r)&&(r={}),i.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},i.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},i.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},i.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},i.throwInternal=function(e,n,t,o,r){n=new yn(n,t,r=void 0!==r&&r,o);if(i.enableDebugExceptions())throw n;t=1===e?"errorToConsole":"warnToConsole";m(n.message)?a("throw"+(1===e?"Critical":"Warning"),n):(o=i.consoleLoggingLevel(),r?(r=+n.messageId,!c[r]&&e<=o&&(i[t](n.message),c[r]=!0)):e<=o&&i[t](n.message),i.logInternalMessage(e,n))},i.warnToConsole=function(e){hn("warn",e),a("warning",e)},i.errorToConsole=function(e){hn("error",e),a("error",e)},i.resetInternalMessageCount=function(){u=0,c={}},i.logInternalMessage=function(e,n){var t,o;u>=i.maxInternalMessageLimit()||(o=!0,t="AITR_"+n.messageId,c[t]?o=!1:c[t]=!0,o&&(e<=i.telemetryLoggingLevel()&&(i.queue.push(n),u++,a(1===e?"error":"warn",n)),u===i.maxInternalMessageLimit()&&(o=new yn(23,t="Internal events throttle limit per PageView reached for this app.",!1),i.queue.push(o),1===e?i.errorToConsole(t):i.warnToConsole(t))))}})};function _(e,n,t,o,r,i){void 0===i&&(i=!1),(e||new Cn).throwInternal(n,t,o,r,i)}u.ParentContextKey="parent",u.ChildrenContextKey="childEvts";var wn=u;function u(e,r,n){var o,i=this,a=!1;i.start=Je(),i.name=e,i.isAsync=n,i.isChildEvt=function(){return!1},C(r)&&(a=function(e){if(be)try{var n={enumerable:!0,configurable:!0,get:function(){return!o&&C(r)&&(o=r(),r=null),o}};return be(e,"payload",n),!0}catch(t){}return!1}(i)),i.getCtx=function(e){return e?(e===u.ParentContextKey||e===u.ChildrenContextKey?i:i.ctx||{})[e]:null},i.setCtx=function(e,n){e&&(e===u.ParentContextKey?(i[e]||(i.isChildEvt=function(){return!0}),i[e]=n):e===u.ChildrenContextKey?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i.complete=function(){var e=0,n=i.getCtx(u.ChildrenContextKey);if(I(n))for(var t=0;t<n.length;t++){var o=n[t];o&&(e+=o.time)}i.time=Je()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&C(r)&&(i.payload=r())}}var In="CoreUtils.doPerf";function Sn(e,n,t,o,r){if(e)if(e=C(e.getPerfMgr)?e.getPerfMgr():e){var i,a=void 0,u=e.getCtx(In);try{if(a=e.create(n(),o,r))return u&&a.setCtx&&(a.setCtx(wn.ParentContextKey,u),u.getCtx&&u.setCtx&&((i=u.getCtx(wn.ChildrenContextKey))||(i=[],u.setCtx(wn.ChildrenContextKey,i)),i.push(a))),e.setCtx(In,a),t(a)}catch(c){a&&a.setCtx&&a.setCtx("exception",c)}finally{a&&e.fire(a),e.setCtx(In,u)}}t()}var bn=4294967296,c=4294967295,Nn=!1,kn=123456789,_n=987654321;function Tn(e){var n,t=0,o=s(en)||s(nn);if(0===(t=o&&o.getRandomValues?o.getRandomValues(new Uint32Array(1))[0]&c:t)&&gn()){if(!Nn)try{var r=2147483647&Je();(n=(Math.random()*bn^r)+r)<0&&(n>>>=0),kn=123456789+n&c,_n=987654321-n&c,Nn=!0}catch(i){}o=((_n=36969*(65535&_n)+(_n>>16)&c)<<16)+(65535&(kn=18e3*(65535&kn)+(kn>>16)&c))>>>0&c|0,t=(o>>>=0)&c}return 0===t&&(t=Math.floor(bn*Math.random()|0)),e||(t>>>=0),t}function Mn(e){void 0===e&&(e=22);for(var n=Tn()>>>0,t=0,o=g;o.length<e;)o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Tn()<<2&4294967295|3&n)>>>0,t=0);return o}var Pn=r,n="2.8.1-nightly.2204-21",i="."+Mn(6);function Un(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}var Dn,An=Dn={id:qe("_aiData-plugin."+n+0+((P=void 0!==P&&P)?"."+n:"")+i),accept:Un,get:function(e,n,t,o){var r=e[Dn.id];return r?r[qe(n)]:(o&&((r=function(e,n){var t=n[e.id];if(!t){t={};try{Un(n)&&!function(e,n,t){if(Pn)try{return Pn(e,n,{value:t,enumerable:!1,configurable:!0}),1}catch(o){}}(n,e.id,t)&&(n[e.id]=t)}catch(o){}}return t}(Dn,e))[qe(n)]=t),t)},kill:function(e,n){if(e&&e[n])try{delete e[n]}catch(t){}}};function Ln(e){return An.get(e,"state",{},!0)}var On="TelemetryPluginChain",En="_hasRun",Vn="_getTelCtx",Rn=0;function jn(e,a,t,n){var o=null,r=[],i=(null!==n&&(o=n?function(e,n,t){for(;e;){if(e.getPlugin()===t)return e;e=e.getNext()}return Bn([t],n.config||{},n)}(e,t,n):e),{_next:function(){var e,n=o;return o=n?n.getNext():null,n||(e=r)&&0<e.length&&(Ke(e,function(e){try{e.func.call(e.self,e.args)}catch(n){_(t.logger,2,73,"Unexpected Exception during onComplete - "+k(n))}}),r=[]),n},ctx:{core:function(){return t},diagLog:function(){return xn(t,a)},getCfg:function(){return a},getExtCfg:u,getConfig:function(e,n,t){void 0===t&&(t=!1);var o,e=u(e,null);return e&&!x(e[n])?o=e[n]:a&&!x(a[n])&&(o=a[n]),x(o)?t:o},hasNext:function(){return!!o},getNext:function(){return o},setNext:function(e){o=e},iterate:function(e){for(;n=i._next();){var n=n.getPlugin();n&&e(n)}},onComplete:function(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];e&&r.push({func:e,self:m(n)?i.ctx:n,args:t})}}});function u(e,n,t){var o,r,i;return void 0===n&&(n={}),void 0===t&&(t=0),(o=a&&(r=a.extensionConfig)&&e?r[e]:o)?je(n)&&0!==t&&(i=function d(){var e=arguments,n=e[0]||{},t=e.length,o=!1,r=1;for(0<t&&"boolean"==typeof n&&(o=n,n=e[r]||{},r++),je(n)||(n={});r<t;r++){var i,a,u,c,s=e[r],l=I(s),f=je(s);for(i in s)(l&&i in s||f&&q.call(s,i))&&(a=s[i],u=void 0,o&&a&&((u=I(a))||Be(a))&&(c=n[i],u?I(c)||(c=[]):Be(c)||(c={}),a=d(o,c,a)),a!==undefined&&(n[i]=a))}return n}(!0,n,o),a&&2===t&&f(n,function(e){var n;x(i[e])&&!x(n=a[e])&&(i[e]=n)}),o=i):o=n,o}return i}function qn(e,t,o,n){var r=jn(e,t,o,n),i=r.ctx;return i.processNext=function(e){var n=r._next();return n&&n.processTelemetry(e,i),!n},i.createNew=function(e,n){return qn((e=I(e=void 0===e?null:e)?Bn(e,t,o,n):e)||i.getNext(),t,o,n)},i}function Bn(e,n,t,o){var r,i=null,a=!o;return I(e)&&0<e.length&&(r=null,Ke(e,function(e){(a=!a&&o===e||a)&&e&&C(e.processTelemetry)&&(e=Kn(e,n,t),i=i||e,r&&r._setNext(e),r=e)})),o&&!i?Bn([o],n,t):i}function Kn(c,o,r){var s=null,i=C(c.processTelemetry),a=C(c.setNextPlugin),l=c?c.identifier+"-"+c.priority+"-"+Rn++:"Unknown-0-"+Rn++,u={getPlugin:function(){return c},getNext:function(){return s},processTelemetry:function(t,e){var n;f(e=e||(n=(n=c&&C(c[Vn])?c[Vn]():n)||qn(u,o,r)),function(e){if(!c||!i)return!1;var n=Ln(c);return!n.teardown&&!n[me]&&(a&&c.setNextPlugin(s),c.processTelemetry(t,e),!0)},"processTelemetry",function(){return{item:t}},!t.sync)||e.processNext(t)},unload:function(o,r){f(o,function(){var e,n,t=!1;return c&&(e=Ln(c),n=c[he]||e.core,!c||n&&n!==o[he]()||e[ve]||(e[he]=null,e[ve]=!0,e[pe]=!1,c[ve]&&!0===c[ve](o,r)&&(t=!0))),t},"unload",function(){},r.isAsync)||o.processNext(r)},update:function(o,r){f(o,function(){var e,n,t=!1;return c&&(e=Ln(c),n=c[he]||e.core,!c||n&&n!==o[he]()||e[ve]||c[ye]&&!0===c[ye](o,r)&&(t=!0)),t},"update",function(){},!1)||o.processNext(r)},_id:l,_setNext:function(e){s=e}};function f(t,o,r,e,n){var i=!1,a=c?c.identifier:On,u=(u=t[En])||(t[En]={});return t.setNext(s),c&&Sn(t[he](),function(){return a+":"+r},function(){u[l]=!0;try{var e=s?s._id:g;e&&(u[e]=!1),i=o(t)}catch(n){e=!s||u[s._id];e&&(i=!0),s&&e||_(t.diagLog(),1,73,"Plugin ["+a+"] failed during "+r+" - "+k(n)+", run flags: "+k(u))}},e,n),i}return We(u)}var Fn="toGMTString",zn="toUTCString",Wn="cookie",Jn="expires",$n="enabled",Gn="isCookieUseDisabled",Hn="disableCookiesUsage",T="_ckMgr",Xn=null,Yn=null,Zn=null,Qn=typeof document===a&&document?document:s("document"),et={},nt={};function tt(e){return!e||e.isEnabled()}function ot(e,n){var t,o;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[T]||rt(n)),t||(e=(e||{}).logger,(o=rt[T]||nt[T])||(o=rt[T]=rt(n,e),nt[T]=o),t=o),t}function rt(e,r){N(t=(e=e||nt).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,Re,x),N(t,"path",e.cookiePath||"/",null,x),x(t[$n])&&(n=void 0,m(e[Gn])||(n=!e[Gn]),m(e[Hn])||(n=!e[Hn]),t[$n]=n);var n,t,s=t,l=s.path||"/",f=s.domain,o=!1!==s[$n],d={isEnabled:function(){var e=o&&it(r),n=nt[T];return e&&n&&d!==n?tt(n):e},setEnabled:function(e){o=!1!==e},set:function(e,n,t,o,r){var i,a,u,c=!1;return tt(d)&&(i={},-1!=(u=(a=b(n||g)).indexOf(";"))&&(a=b(n.substring(0,u)),i=at(n.substring(1+u))),N(i,"domain",o||f,Ge,m),x(t)||(u=gn(),m(i[Jn])&&0<(n=Je()+1e3*t)&&((o=new Date).setTime(n),N(i,Jn,ut(o,u?Fn:zn)||ut(o,u?Fn:zn)||g,Ge)),u||N(i,"max-age",g+t,null,m)),(n=ln())&&"https:"===n.protocol&&(N(i,"secure",null,null,m),(Yn=null===Yn?!(S(o=(sn()||{}).userAgent)&&(w(o,"CPU iPhone OS 12")||w(o,"iPad; CPU OS 12")||w(o,"Macintosh; Intel Mac OS X 10_14")&&w(o,"Version/")&&w(o,"Safari")||w(o,"Macintosh; Intel Mac OS X 10_14")&&function(e,n){var t=!1;if(!e||(t=e===n))return t;if(Me)return e[we](n);var o=e,r=n,t=!1,e=o?o.length:0;if(e&&40<=e&&!(t=o===r)){for(var i=e-1,a=39;0<=a;a--){if(o[i]!=r[a])return;i--}t=!0}return t}(o,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||w(o,"Chrome/5")||w(o,"Chrome/6")||w(o,"UnrealEngine")&&!w(o,"Chrome")||w(o,"UCBrowser/12")||w(o,"UCBrowser/11"))):Yn)&&N(i,"SameSite","None",null,m)),N(i,"path",r||l,null,m),(s.setCookie||st)(e,ct(a,i)),c=!0),c},get:function(e){var n=g;return tt(d)?(s.getCookie||function(e){var n,t=g;return Qn&&(n=Qn[Wn]||g,Zn!==n&&(et=at(n),Zn=n),t=b(et[e]||g)),t})(e):n},del:function(e,n){return!!tt(d)&&d.purge(e,n)},purge:function(e,n){var t,o=!1;return it(r)&&((t={}).path=n||"/",t[Jn]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,gn()||(n["max-age"]="0"),(s.delCookie||st)(e,ct(g,n)),o=!0),o}};return d[T]=d}function it(e){if(null===Xn){Xn=!1;try{Xn=(Qn||{})[Wn]!==undefined}catch(n){_(e,2,68,"Cannot access document.cookie - "+$e(n),{exception:k(n)})}}return Xn}function at(e){var t={};return e&&e.length&&Ke(b(e).split(";"),function(e){var n;(e=b(e||g))&&(-1==(n=e.indexOf("="))?t[e]=null:t[b(e.substring(0,n))]=b(e.substring(1+n)))}),t}function ut(e,n){return C(e[n])?e[n]():null}function ct(e,n){var t=e||g;return f(n,function(e,n){t+="; "+e+(x(n)?g:"="+n)}),t}function st(e,n){Qn&&(Qn[Wn]=e+"="+n)}function lt(){var n=[];return{add:function(e){e&&n.push(e)},run:function(t,o){Ke(n,function(e){try{e(t,o)}catch(n){_(t.diagLog(),2,73,"Unexpected error calling unload handler - "+k(n))}}),n=[]}}}var M="getPlugin",_e=function Zt(){var i,r,l,f,d,a=this;function n(e){var n,e=e=void 0===e?null:e;return e||(n=r||qn(null,{},a.core),e=l&&l[M]?n.createNew(null,l[M]):n.createNew(null,l)),e}function c(e,n,t){e&&N(e,"extensionConfig",[],null,x),!t&&n&&(t=n.getProcessTelContext().getNext());var o=l;l&&l[M]&&(o=l[M]()),a.core=n,r=qn(t,e,n,o)}function g(){i=!1,a.core=null,l=r=null,d=[],f=lt()}g(),y(Zt,a,function(s){var e,n,t,o,r;s.initialize=function(e,n,t,o){c(e,n,o),i=!0},s.teardown=function(e,n){var t,o,r,i,a=s.core;if(a&&(!e||a===e.core()))return o=!1,r=e||function c(e,t,n){var o=t.config||{},r=jn(e,o,t,n),i=r.ctx;return i.processNext=function(e){var n=r._next();return n&&n.unload(i,e),!n},i.createNew=function(e,n){return c((e=I(e=void 0===e?null:e)?Bn(e,o,t,n):e)||i.getNext(),t,n)},i}(null,a,l&&l[M]?l[M]():l),i=n||{reason:0,isAsync:!1},s[xe]&&!0===s[xe](r,i,u)?t=!0:u(),t;function u(){o||(o=!0,f.run(r,n),Ke(d,function(e){e.rm()}),d=[],!0===t&&r.processNext(i),g())}},s.update=function(e,n){var t,o,r,i=s.core;if(i&&(!e||i===e.core()))return o=!1,r=e||function u(e,t,n){var o=t.config||{},r=jn(e,o,t,n).ctx;return r.processNext=function(n){return r.iterate(function(e){C(e.update)&&e.update(r,n)})},r.createNew=function(e,n){return u((e=I(e=void 0===e?null:e)?Bn(e,o,t,n):e)||r.getNext(),t,n)},r}(null,i,l&&l[M]?l[M]():l),s._doUpdate&&!0===s._doUpdate(r,n||{reason:0},a)?t=!0:a(),t;function a(){o||(o=!0,c(r.getCfg(),r.core(),r.getNext()))}},s._addHook=function(e){e&&(I(e)?d=d.concat(e):d.push(e))},t="_addUnloadCb",n=function(){return f},(e=s)&&n&&(e[t]=(r=o=null,C(t=n)?o=t:r=t,function(){var e=arguments;if(r=o?o():r)return r.add.apply(r,e)}))}),a.diagLog=function(e){return n(e).diagLog()},a[pe]=function(){return i},a.setInitialized=function(e){i=e},a.setNextPlugin=function(e){l=e},a.processNext=function(e,n){n?n.processNext(e):l&&C(l.processTelemetry)&&l.processTelemetry(e,null)},a._getTelCtx=n};function ft(e,n,t){var o,r,i=n.length,a=(e=e,(n=n)&&150<(n=b(n.toString())).length&&(r=n.substring(0,150),_(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),r||n);if(a.length!==i){for(var u=0,c=a;t[c]!==undefined;)u++,c=a.substring(0,147)+(o=void 0,(o="00"+u).substr(o.length-3));a=c}return a}function dt(e,n,t){var o;return void 0===t&&(t=1024),n&&(t=t||1024,(n=b(n)).toString().length>t&&(o=n.toString().substring(0,t),_(e,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),o||n}function gt(o,e){var r;return e&&(r={},f(e,function(e,n){if(je(n)&&fn())try{n=dn().stringify(n)}catch(t){_(o,2,49,"custom property is not valid",{exception:t},!0)}n=dt(o,n,8192),e=ft(o,e,r),r[e]=n}),e=r),e}function pt(e,n,t,o){var r;return n&&(n=b(n)).length>t&&(r=n.substring(0,t),_(e,2,o,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),r||n}var vt=He({LocalStorage:0,SessionStorage:1}),ht=(He({AI:0,AI_AND_W3C:1,W3C:2}),undefined);function yt(){return xt()?mt(vt.LocalStorage):null}function mt(e){try{if(x(K()))return null;var n=(new Date).toString(),t=s(e===vt.LocalStorage?"localStorage":"sessionStorage"),o=(t.setItem(n,n),t.getItem(n)!==n);if(t.removeItem(n),!o)return t}catch(r){}return null}function xt(e){return ht=e||ht===undefined?!!mt(vt.LocalStorage):ht}function Ct(e,n){var t=yt();if(null!==t)try{return t.getItem(n)}catch(o){ht=!1,_(e,2,1,"Browser failed read of local storage. "+$e(o),{exception:k(o)})}return null}function wt(e,n,t){var o=yt();if(null!==o)try{o.setItem(n,t)}catch(r){ht=!1,_(e,2,3,"Browser failed write to local storage. "+$e(r),{exception:k(r)})}}function It(e,n){var t=yt();if(null!==t)try{t.removeItem(n)}catch(o){ht=!1,_(e,2,5,"Browser failed removal of local storage item. "+$e(o),{exception:k(o)})}}bt.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",bt.dataType="PageviewData";var St=bt;function bt(e,n,t,o,r,i,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var u,c,s,l=this;l.ver=2,l.id=a&&pt(e,a,128,69).toString(),l.url=pt(e,t,2048,66),l.name=dt(e,n)||"not_specified",isNaN(o)||(l.duration=(t=""+Math.floor((a=Math.round(a=isNaN(a=o)||a<0?0:a))/1e3)%60,n=1===(n=""+a%1e3).length?"00"+n:2===n.length?"0"+n:n,t=t.length<2?"0"+t:t,o=(o=""+Math.floor(a/6e4)%60).length<2?"0"+o:o,(0<(u=Math.floor(a/864e5))?u+".":"")+(u=(u=""+Math.floor(a/36e5)%24).length<2?"0"+u:u)+":"+o+":"+t+"."+n)),l.properties=gt(e,r),l.measurements=(c=e,(a=i)&&(s={},f(a,function(e,n){e=ft(c,e,s),s[e]=n}),a=s),a)}function l(e){var n="ai."+e+".";return function(e){return n+e}}var Nt,kt,r=l("application"),P=l("device"),n=l("location"),i=l("operation"),_t=l("session"),U=l("user"),D=l("cloud"),Tt=l("internal");function Mt(){return Nt.call(this)||this}kt={applicationVersion:r("ver"),applicationBuild:r("build"),applicationTypeId:r("typeId"),applicationId:r("applicationId"),applicationLayer:r("layer"),deviceId:P("id"),deviceIp:P("ip"),deviceLanguage:P("language"),deviceLocale:P("locale"),deviceModel:P("model"),deviceFriendlyName:P("friendlyName"),deviceNetwork:P("network"),deviceNetworkName:P("networkName"),deviceOEMName:P("oemName"),deviceOS:P("os"),deviceOSVersion:P("osVersion"),deviceRoleInstance:P("roleInstance"),deviceRoleName:P("roleName"),deviceScreenResolution:P("screenResolution"),deviceType:P("type"),deviceMachineName:P("machineName"),deviceVMName:P("vmName"),deviceBrowser:P("browser"),deviceBrowserVersion:P("browserVersion"),locationIp:n("ip"),locationCountry:n("country"),locationProvince:n("province"),locationCity:n("city"),operationId:i("id"),operationName:i("name"),operationParentId:i("parentId"),operationRootId:i("rootId"),operationSyntheticSource:i("syntheticSource"),operationCorrelationVector:i("correlationVector"),sessionId:_t("id"),sessionIsFirst:_t("isFirst"),sessionIsNew:_t("isNew"),userAccountAcquisitionDate:U("accountAcquisitionDate"),userAccountId:U("accountId"),userAgent:U("userAgent"),userId:U("id"),userStoreRegion:U("storeRegion"),userAuthUserId:U("authUserId"),userAnonymousUserAcquisitionDate:U("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:U("authUserAcquisitionDate"),cloudName:D("name"),cloudRole:D("role"),cloudRoleVer:D("roleVer"),cloudRoleInstance:D("roleInstance"),cloudEnvironment:D("environment"),cloudLocation:D("location"),cloudDeploymentUnit:D("deploymentUnit"),internalNodeName:Tt("nodeName"),internalSdkVersion:Tt("sdkVersion"),internalAgentVersion:Tt("agentVersion"),internalSnippet:Tt("snippet"),internalSdkSrc:Tt("sdkSrc")},W(Mt,Nt=function(){var t=this;f(kt,function(e,n){t[e]=n})});var Pt="user",Ut="device",Dt="trace",At="web",Lt="app",Ot="os",A=new Mt,Et=function(){},Vt=(L.acquisitionSpan=864e5,L.renewalSpan=18e5,L.cookieUpdateInterval=6e4,L);function L(n,e){var l,f,d=xn(e),g=ot(e);y(L,this,function(u){C((n=n||{}).sessionExpirationMs)||(n.sessionExpirationMs=function(){return L.acquisitionSpan}),C(n.sessionRenewalMs)||(n.sessionRenewalMs=function(){return L.renewalSpan}),u.config=n;var e=u.config.sessionCookiePostfix&&u.config.sessionCookiePostfix()?u.config.sessionCookiePostfix():u.config.namePrefix&&u.config.namePrefix()?u.config.namePrefix():"";function c(e,n){var t=!1,o=", session will be reset",r=n.split("|");if(2<=r.length)try{var i=+r[1]||0,a=+r[2]||0;isNaN(i)||i<=0?_(d,2,27,"AI session acquisition date is 0"+o):isNaN(a)||a<=0?_(d,2,27,"AI session renewal date is 0"+o):r[0]&&(e.id=r[0],e.acquisitionDate=i,e.renewalDate=a,t=!0)}catch(u){_(d,1,9,"Error parsing ai_session value ["+(n||"")+"]"+o+" - "+$e(u),{exception:k(u)})}return t}function s(e,n){var t=e.acquisitionDate,o=(e.renewalDate=n,u.config),r=o.sessionRenewalMs(),i=t+o.sessionExpirationMs()-n,e=[e.id,t,n],t=i<r?i/1e3:r/1e3,i=o.cookieDomain?o.cookieDomain():null;g.set(l(),e.join("|"),0<o.sessionExpirationMs()?t:null,i),f=n}l=function(){return"ai_session"+e},u.automaticSession=new Et,u.update=function(){var e,n,t,o=Je(),r=!1,i=u.automaticSession,a=(i.id||(n=i,t=!1,(a=g.get(l()))&&C(a.split)?t=c(n,a):(a=Ct(d,l()))&&(t=c(n,a)),r=!(t||n.id)),u.config.sessionExpirationMs());!r&&0<a&&(t=u.config.sessionRenewalMs(),n=o-i.acquisitionDate,e=o-i.renewalDate,r=(r=(r=n<0||e<0)||a<n)||t<e),r?(a=o,t=((n=u.config||{}).getNewId?n.getNewId():null)||Mn,u.automaticSession.id=t(n.idLength?n.idLength():22),u.automaticSession.acquisitionDate=a,s(u.automaticSession,a),xt()||_(d,2,0,"Browser does not support local storage. Session durations will be inaccurate.")):(!f||L.cookieUpdateInterval<o-f)&&s(i,o)},u.backup=function(){var e=u.automaticSession,n=e.id,t=e.acquisitionDate,e=e.renewalDate;wt(d,l(),[n,t,e].join("|"))}})}var Rt=function(){},jt=function(){this.id="browser",this.deviceClass="Browser"},qt=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.8.1-nightly.2204-21"};function Bt(e){return"string"==typeof e&&e&&!e.match(/,|;|=| |\|/)}O.cookieSeparator="|",O.userCookieName="ai_user",O.authUserCookieName="ai_authUser";var Kt=O;function O(a,e){this.isNewUser=!1,this.isUserCookieSet=!1;var u,c=xn(e),s=ot(e);y(O,this,function(o){o.config=a;var e=o.config.userCookiePostfix&&o.config.userCookiePostfix()?o.config.userCookiePostfix():"",n=(u=function(){return O.userCookieName+e},s.get(u()));function t(){var e=a||{};return((e.getNewId?e.getNewId():null)||Mn)(e.idLength?a.idLength():22)}function r(e){var n=function(e){if(e){if(Pe)return e[Ce]();var n;return e&&e.getUTCFullYear?(n=function(e){e=""+e;return 1===e.length?"0"+e:e},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"):void 0}}(new Date);return o.accountAcquisitionDate=n,o.isNewUser=!0,[e,n]}function i(e){o.isUserCookieSet=s.set(u(),e,31536e3)}n&&(o.isNewUser=!1,0<(n=n.split(O.cookieSeparator)).length&&(o.id=n[0],o.isUserCookieSet=!!o.id)),o.id||(o.id=t(),i(r(o.id).join(O.cookieSeparator)),n=a.namePrefix&&a.namePrefix()?a.namePrefix()+"ai_session":"ai_session",It(c,n)),o.accountId=a.accountId?a.accountId():undefined;var n=s.get(O.authUserCookieName);n&&((n=(n=decodeURI(n)).split(O.cookieSeparator))[0]&&(o.authenticatedId=n[0]),1<n.length&&n[1]&&(o.accountId=n[1])),o.setAuthenticatedUserContext=function(e,n,t){void 0===t&&(t=!1),!Bt(e)||n&&!Bt(n)?_(c,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0):(o.authenticatedId=e,e=o.authenticatedId,n&&(o.accountId=n,e=[o.authenticatedId,o.accountId].join(O.cookieSeparator)),t&&s.set(O.authUserCookieName,encodeURI(e)))},o.clearAuthenticatedUserContext=function(){o.authenticatedId=null,o.accountId=null,s.del(O.authUserCookieName)},o.update=function(e){o.id===e&&o.isUserCookieSet||i(r(e||t()).join(O.cookieSeparator))}})}var Ft=function(){},zt=function(e,n,t,o){var r=this,e=(r.traceID=e||function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=g,o=0;o<4;o++)t+=n[15&(e=Tn())]+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 r=n[8+(3&Tn())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+r+t.substr(16,3)+t.substr(19,12)}(),r.parentID=n,r.name=t,ln());!t&&e&&e.pathname&&(r.name=e.pathname),r.name=dt(o,r.name)},Wt="ext",Jt="tags";function $t(e,n){e&&e[n]&&0===function(e){var n=typeof e;if(n===E||n===a&&null!==e||F("objKeys called on non-object"),!Fe&&ke)return ke(e);var t,o=[];for(t in e)e&&q.call(e,t)&&o.push(t);if(Fe)for(var r=ze.length,i=0;i<r;i++)e&&q.call(e,ze[i])&&o.push(ze[i]);return o}(e[n]).length&&delete e[n]}var Gt,Ht=function Qt(e,n){var o=this,t=e.logger;this.appId=function(){return null},this.getSessionId=function(){return null},y(Qt,this,function(r){r.application=new Rt,r.internal=new qt(n),cn()&&(r.sessionManager=new Vt(n,e),r.device=new jt,r.location=new Ft,r.user=new Kt(n,e),r.telemetryTrace=new zt(undefined,undefined,undefined,t),r.session=new Et),r.getSessionId=function(){var e=r.session;return e&&S(e.id)?e.id:(e=(r.sessionManager||{}).automaticSession)&&S(e.id)?e.id:null},r.applySessionContext=function(e,n){N(d(e.ext,Lt),"sesId",r.getSessionId(),S)},r.applyOperatingSystemContxt=function(e,n){N(e.ext,Ot,r.os)},r.applyApplicationContext=function(e,n){var t=r.application;t&&(N(e=d(e,Jt),A.applicationVersion,t.ver,S),N(e,A.applicationBuild,t.build,S))},r.applyDeviceContext=function(e,n){var t=r.device;t&&(N(e=d(d(e,Wt),Ut),"localId",t.id,S),N(e,"ip",t.ip,S),N(e,"model",t.model,S),N(e,"deviceClass",t.deviceClass,S))},r.applyInternalContext=function(e,n){var t,o=r.internal;o&&(N(t=d(e,Jt),A.internalAgentVersion,o.agentVersion,S),N(t,A.internalSdkVersion,o.sdkVersion,S),e.baseType!==yn.dataType&&e.baseType!==St.dataType||(N(t,A.internalSnippet,o.snippetVer,S),N(t,A.internalSdkSrc,o.sdkSrc,S)))},r.applyLocationContext=function(e,n){var t=o.location;t&&N(d(e,Jt,[]),A.locationIp,t.ip,S)},r.applyOperationContext=function(e,n){var t=r.telemetryTrace;t&&(N(e=d(d(e,Wt),Dt,{traceID:undefined,parentID:undefined}),"traceID",t.traceID,S),N(e,"name",t.name,S),N(e,"parentID",t.parentID,S))},r.applyWebContext=function(e,n){var t=o.web;t&&N(d(e,Wt),At,t)},r.applyUserContext=function(e,n){var t=r.user;t&&(N(d(e,Jt,[]),A.userAccountId,t.accountId,S),N(e=d(d(e,Wt),Pt),"id",t.id,S),N(e,"authId",t.authenticatedId,S))},r.cleanUp=function(e,n){e=e.ext;e&&($t(e,Ut),$t(e,Pt),$t(e,At),$t(e,Ot),$t(e,Lt),$t(e,Dt))}})},r=(W(Xt,Gt=_e),Xt.getDefaultConfig=function(){return{instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},getSessionId:function(){return null},namePrefix:function(){return undefined},sessionCookiePostfix:function(){return undefined},userCookiePostfix:function(){return undefined},idLength:function(){return 22},getNewId:function(){return null}}},Xt);function Xt(){var s,l,e=Gt.call(this)||this;return e.priority=110,e.identifier="AppInsightsPropertiesPlugin",y(Xt,e,function(u,c){u.initialize=function(e,n,t,o){c.initialize(e,n,t,o);var r,i=u._getTelCtx(),a=u.identifier,e=Xt.getDefaultConfig();l=l||{},f(e,function(e,n){l[e]=function(){return i.getConfig(a,e,n())}}),u.context=new Ht(n,l),r=null,Ke(t,function(e){if("AppInsightsChannelPlugin"===e.identifier)return r=e,-1}),s=r,u.context.appId=function(){return s?s._appId:null},u._extConfig=l},u.processTelemetry=function(e,n){var t,o,r,i;x(e)||(n=u._getTelCtx(n),e.name===St.envelopeType&&n.diagLog().resetInternalMessageCount(),(o=u.context||{}).session&&"string"!=typeof u.context.session.id&&o.sessionManager&&o.sessionManager.update(),(t=o.user)&&!t.isUserCookieSet&&t.update(o.user.id),o=n,d(i=e,"tags",[]),d(i,"ext",{}),(r=u.context).applySessionContext(i,o),r.applyApplicationContext(i,o),r.applyDeviceContext(i,o),r.applyOperationContext(i,o),r.applyUserContext(i,o),r.applyOperatingSystemContxt(i,o),r.applyWebContext(i,o),r.applyLocationContext(i,o),r.applyInternalContext(i,o),r.cleanUp(i,o),t&&t.isNewUser&&(t.isNewUser=!1,i=new yn(72,(sn()||{}).userAgent||""),(n.diagLog()||new Cn).logInternalMessage(1,i)),u.processNext(e,n))}}),e}e.PropertiesPlugin=r,e.Session=Et,e.SessionManager=Vt,e.TelemetryContext=Ht,e.TelemetryTrace=zt;P=e,n="__esModule",i={value:!0},_t=Object.defineProperty;if(_t)try{return void _t(P,n,i)}catch(eo){}typeof i.value!==undefined&&(P[n]=i.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
|
|
5
|
+
var e=this,n=function(e){"use strict";var E="function",a="object",V="undefined",o="prototype",R="hasOwnProperty",t=Object,n=t[o],j=t.create,r=t.defineProperty,q=n[R],B=null;function K(e){return void 0===e&&(e=!0),B&&e||(typeof globalThis!==V&&globalThis&&(B=globalThis),typeof self!==V&&self&&(B=self),typeof window!==V&&window&&(B=window),typeof global!==V&&global&&(B=global)),B}function F(e){throw new TypeError(e)}(K()||{}).Symbol,(K()||{}).Reflect;var z=function(e,n){return(z=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[R](t)&&(e[t]=n[t])})(e,n)};function W(e,n){function t(){this.constructor=e}typeof n!==E&&null!==n&&F("Class extends value "+n+" is not a constructor or null"),z(e,n),e[o]=null===n?function(e){if(j)return j(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==E&&F("Object prototype may only be an Object:"+e),t[o]=e,new t}(n):(t[o]=n[o],new t)}var J="constructor",p="prototype",$="function",G="_dynInstFuncs",H="_isDynProxy",X="_dynClass",Y="_dynInstChk",Z=Y,Q="_dfOpts",ee="_dynProto",ne="_unknown_",te="__proto__",oe="useBaseInst",re="setInstFuncs",ie=Object,ae=ie.getPrototypeOf,ue=0;function v(e,n){return e&&ie[p].hasOwnProperty.call(e,n)}function ce(e){return e&&(e===ie[p]||e===Array[p])}function se(e){return ce(e)||e===Function[p]}function h(e){if(e){if(ae)return ae(e);var n=e[ee]||e[te]||e[p]||(e[J]?e[J][p]:null);if(n)return e[ee]||(e[ee]=n),n}return null}function le(e,n){var t=[],o=ie.getOwnPropertyNames;if(o)t=o(e);else for(var r in e)"string"==typeof r&&v(e,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function fe(e,n,t){return n!==J&&typeof e[n]===$&&(t||v(e,n))}function de(e){throw new TypeError("DynamicProto: "+e)}function ge(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function pe(e,n){return v(e,p)?e.name||n||ne:((e||{})[J]||{}).name||n||ne}function y(e,o,n,t){v(e,p)||de("theClass is an invalid class definition.");var r,i,a,u,c,s,l=e[p],f=(function(e){if(!ae)return 1;for(var n=[],t=h(o);t&&!se(t)&&!ge(n,t);){if(t===e)return 1;n.push(t),t=h(t)}}(l)||de("["+pe(e)+"] is not in class hierarchy of ["+pe(o)+"]"),null),e=(v(l,X)?f=l[X]:(f="_dynCls$"+pe(e,"_")+"$"+ue,ue++,l[X]=f),y[Q]),d=!!e[oe],g=(d&&t&&t[oe]!==undefined&&(d=!!t[oe]),i={},le(r=o,function(e){!i[e]&&fe(r,e,!1)&&(i[e]=r[e])}),i),d=(n(o,function(e,n,t,i){function o(e,n,t){var o,r=n[t];return r[H]&&i&&!1!==(o=e[G]||{})[Z]&&(r=(o[n[X]]||{})[t]||r),function(){return r.apply(e,arguments)}}for(var r={},a=(le(t,function(e){r[e]=o(n,t,e)}),h(e)),u=[];a&&!se(a)&&!ge(u,a);)le(a,function(e){!r[e]&&fe(a,e,!ae)&&(r[e]=o(n,a,e))}),u.push(a),a=h(a);return r}(l,o,g,d)),!!ae&&!!e[re]);a=l,n=f,u=o,c=g,e=!1!==(d=d&&t?!!t[re]:d),ce(a)||(l=u[G]=u[G]||{},s=l[n]=l[n]||{},!1!==l[Z]&&(l[Z]=!!e),le(u,function(e){var t,o,r;fe(u,e,!1)&&u[e]!==c[e]&&(s[e]=u[e],delete u[e],v(a,e)&&(!a[e]||a[e][H])||(a[e]=(t=a,o=e,(r=function(){var e,n;return(function(e,n,t,o){var r=null;if(e&&v(t,X)){var i=e[G]||{};if((r=(i[t[X]]||{})[n])||de("Missing ["+n+"] "+$),!r[Y]&&!1!==i[Z]){for(var a=!v(e,n),u=h(e),c=[];a&&u&&!se(u)&&!ge(c,u);){var s=u[n];if(s){a=s===o;break}c.push(u),u=h(u)}try{a&&(e[n]=r),r[Y]=1}catch(l){i[Z]=!1}}}return r}(this,o,t,r)||(typeof(n=(n=t[e=o])===r?h(t)[e]:n)!==$&&de("["+e+"] is not a "+$),n)).apply(this,arguments)})[H]=1,r)))}))}y[Q]={setInstFuncs:!0,useBaseInst:!0};var g="",ve="isInitialized",he="teardown",ye="core",me="update",xe="disabled",Ce="_doTeardown",we="toISOString",Ie="endsWith",Se="trim",i="toString",be="constructor",Ne=r,ke=t.freeze,_e=t.keys,Te=String[o],Pe=Te[Se],Me=Te[Ie],Ue=Date[o][we],Te=Array.isArray,De=n[i],Ae=q[i],Le=Ae.call(t),Oe=/-([a-z])/g,Ee=/([^\w\d_$])/g,Ve=/^(\d+[\w\d_$])/,Re=Object.getPrototypeOf;function m(e){return e===undefined||typeof e===V}function x(e){return null===e||m(e)}function je(e){return!x(e)}function qe(e){return!(!e||typeof e!==a)}function C(e){return!(!e||typeof e!==E)}function Be(e){var n=e;return e&&S(e)?(n=(n=e.replace(Oe,function(e,n){return n.toUpperCase()})).replace(Ee,"_")).replace(Ve,function(e,n){return"_"+n}):n}function f(e,n){if(e)for(var t in e)q.call(e,t)&&n.call(e,t,e[t])}function w(e,n){return!(!e||!n||!~e.indexOf(n))}var I=Te||function(e){return!(!e||"[object Array]"!==De.call(e))};function S(e){return"string"==typeof e}function Ke(e){return e&&"object"==typeof e&&(!(e=(Re||function(e){if(e){if(Re)return Re(e);e=e.__proto__||e[o]||e[be];if(e)return e}return null})(e))||typeof(e=e[be]&&q.call(e,be)?e[be]:e)===E&&Ae.call(e)===Le)}function Fe(e,n,t){var o=e.length;try{for(var r=0;r<o&&!(r in e&&-1===n.call(t||e,e[r],r,e));r++);}catch(i){}}function b(e){return e&&(Pe&&e[Se]?e[Se]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var ze=!{toString:null}.propertyIsEnumerable("toString"),We=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Je=ke||function(e){return e};function $e(){var e=Date;return e.now?e.now():(new e).getTime()}function Ge(e){return e&&"[object Error]"===De.call(e)?e.name:g}function N(e,n,t,o,r){var i=t;!e||(i=e[n])===t||r&&!r(i)||o&&!o(t)||(e[n]=i=t)}function d(e,n,t){var o;return e?!(o=e[n])&&x(o)&&(o=m(t)?{}:t,e[n]=o):o=m(t)?{}:t,o}function He(e){return!!e}function Xe(e){var t={};return f(e,function(e,n){t[e]=n,t[n]=e}),e=t,ke&&f(e,function(e,n){(I(n)||qe(n))&&ke(n)}),Je(e)}var Ye="window",Ze="navigator",Qe="location",en="JSON",nn="crypto",tn="msCrypto",on="msie",rn="trident/",an=null,un=null,cn=!1;function s(e){var n=K();return n&&n[e]?n[e]:e===Ye&&sn()?window:null}function sn(){return typeof window===a&&window}function ln(){return typeof navigator===a&&navigator?navigator:s(Ze)}function fn(e){if(e&&cn){e=s("__mockLocation");if(e)return e}return typeof location===a&&location?location:s(Qe)}function dn(){return typeof JSON===a&&JSON||null!==s(en)}function gn(){return dn()?JSON||s(en):null}function pn(){var e=ln();return!e||e.userAgent===un&&null!==an||(e=((un=e.userAgent)||g).toLowerCase(),an=w(e,on)||w(e,rn)),an}function k(e){var n=Object[o].toString.call(e),t=g;return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":dn()&&(t=gn().stringify(e)),n+t}var vn=null;function hn(e){return e?'"'+e.replace(/\"/g,g)+'"':g}function yn(e,n){var t,o=typeof console!==V?console:s("console");o&&(t="log",C(o[t=o[e]?e:t])&&o[t](n))}xn.dataType="MessageData";var mn=xn;function xn(e,n,t,o){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t=g,dn()&&(t=gn().stringify(o)),e=(n?" message:"+hn(n):g)+(o?" props:"+hn(t):g);this.message+=e}function Cn(e,n){return(e||{}).logger||new wn(n)}var wn=function Zt(r){this.identifier="DiagnosticLogger",this.queue=[];var u=0,c={};y(Zt,this,function(i){function e(e,n){e=r[e];return x(e)?n:e}function a(e,n){var t,o=(t=(t=vn)||!0===r.disableDbgExt?t:vn||(o=s("Microsoft"),vn=o?o.ApplicationInsights:vn))?t.ChromeDbgExt:null;o&&o.diagLog&&o.diagLog(e,n)}x(r)&&(r={}),i.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},i.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},i.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},i.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},i.throwInternal=function(e,n,t,o,r){n=new mn(n,t,r=void 0!==r&&r,o);if(i.enableDebugExceptions())throw k(n);t=1===e?"errorToConsole":"warnToConsole";m(n.message)?a("throw"+(1===e?"Critical":"Warning"),n):(o=i.consoleLoggingLevel(),r?(r=+n.messageId,!c[r]&&e<=o&&(i[t](n.message),c[r]=!0)):e<=o&&i[t](n.message),i.logInternalMessage(e,n))},i.warnToConsole=function(e){yn("warn",e),a("warning",e)},i.errorToConsole=function(e){yn("error",e),a("error",e)},i.resetInternalMessageCount=function(){u=0,c={}},i.logInternalMessage=function(e,n){var t,o;u>=i.maxInternalMessageLimit()||(o=!0,t="AITR_"+n.messageId,c[t]?o=!1:c[t]=!0,o&&(e<=i.telemetryLoggingLevel()&&(i.queue.push(n),u++,a(1===e?"error":"warn",n)),u===i.maxInternalMessageLimit()&&(o=new mn(23,t="Internal events throttle limit per PageView reached for this app.",!1),i.queue.push(o),1===e?i.errorToConsole(t):i.warnToConsole(t))))}})};function _(e,n,t,o,r,i){void 0===i&&(i=!1),(e||new wn).throwInternal(n,t,o,r,i)}u.ParentContextKey="parent",u.ChildrenContextKey="childEvts";var In=u;function u(e,r,n){var o,i=this,a=!1;i.start=$e(),i.name=e,i.isAsync=n,i.isChildEvt=function(){return!1},C(r)&&(a=function(e){if(Ne)try{var n={enumerable:!0,configurable:!0,get:function(){return!o&&C(r)&&(o=r(),r=null),o}};return Ne(e,"payload",n),!0}catch(t){}return!1}(i)),i.getCtx=function(e){return e?(e===u.ParentContextKey||e===u.ChildrenContextKey?i:i.ctx||{})[e]:null},i.setCtx=function(e,n){e&&(e===u.ParentContextKey?(i[e]||(i.isChildEvt=function(){return!0}),i[e]=n):e===u.ChildrenContextKey?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i.complete=function(){var e=0,n=i.getCtx(u.ChildrenContextKey);if(I(n))for(var t=0;t<n.length;t++){var o=n[t];o&&(e+=o.time)}i.time=$e()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&C(r)&&(i.payload=r())}}var Sn="CoreUtils.doPerf";function bn(e,n,t,o,r){if(e)if(e=C(e.getPerfMgr)?e.getPerfMgr():e){var i,a=void 0,u=e.getCtx(Sn);try{if(a=e.create(n(),o,r))return u&&a.setCtx&&(a.setCtx(In.ParentContextKey,u),u.getCtx&&u.setCtx&&((i=u.getCtx(In.ChildrenContextKey))||(i=[],u.setCtx(In.ChildrenContextKey,i)),i.push(a))),e.setCtx(Sn,a),t(a)}catch(c){a&&a.setCtx&&a.setCtx("exception",c)}finally{a&&e.fire(a),e.setCtx(Sn,u)}}t()}var Nn=4294967296,c=4294967295,kn=!1,_n=123456789,Tn=987654321;function Pn(e){var n,t=0,o=s(nn)||s(tn);if(0===(t=o&&o.getRandomValues?o.getRandomValues(new Uint32Array(1))[0]&c:t)&&pn()){if(!kn)try{var r=2147483647&$e();(n=(Math.random()*Nn^r)+r)<0&&(n>>>=0),_n=123456789+n&c,Tn=987654321-n&c,kn=!0}catch(i){}o=((Tn=36969*(65535&Tn)+(Tn>>16)&c)<<16)+(65535&(_n=18e3*(65535&_n)+(_n>>16)&c))>>>0&c|0,t=(o>>>=0)&c}return 0===t&&(t=Math.floor(Nn*Math.random()|0)),e||(t>>>=0),t}function Mn(e){void 0===e&&(e=22);for(var n=Pn()>>>0,t=0,o=g;o.length<e;)o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Pn()<<2&4294967295|3&n)>>>0,t=0);return o}var Un=r,n="2.8.2-nightly.2204-24",i="."+Mn(6);function Dn(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}var An,Ln=An={id:Be("_aiData-plugin."+n+0+((M=void 0!==M&&M)?"."+n:"")+i),accept:Dn,get:function(e,n,t,o){var r=e[An.id];return r?r[Be(n)]:(o&&((r=function(e,n){var t=n[e.id];if(!t){t={};try{Dn(n)&&!function(e,n,t){if(Un)try{return Un(e,n,{value:t,enumerable:!1,configurable:!0}),1}catch(o){}}(n,e.id,t)&&(n[e.id]=t)}catch(o){}}return t}(An,e))[Be(n)]=t),t)},kill:function(e,n){if(e&&e[n])try{delete e[n]}catch(t){}}};function On(e){return Ln.get(e,"state",{},!0)}var En="TelemetryPluginChain",Vn="_hasRun",Rn="_getTelCtx",jn=0;function qn(e,a,t,n){var o=null,r=[],i=(null!==n&&(o=n?function(e,n,t){for(;e;){if(e.getPlugin()===t)return e;e=e.getNext()}return Kn([t],n.config||{},n)}(e,t,n):e),{_next:function(){var e,n=o;return o=n?n.getNext():null,n||(e=r)&&0<e.length&&(Fe(e,function(e){try{e.func.call(e.self,e.args)}catch(n){_(t.logger,2,73,"Unexpected Exception during onComplete - "+k(n))}}),r=[]),n},ctx:{core:function(){return t},diagLog:function(){return Cn(t,a)},getCfg:function(){return a},getExtCfg:u,getConfig:function(e,n,t){void 0===t&&(t=!1);var o,e=u(e,null);return e&&!x(e[n])?o=e[n]:a&&!x(a[n])&&(o=a[n]),x(o)?t:o},hasNext:function(){return!!o},getNext:function(){return o},setNext:function(e){o=e},iterate:function(e){for(;n=i._next();){var n=n.getPlugin();n&&e(n)}},onComplete:function(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];e&&r.push({func:e,self:m(n)?i.ctx:n,args:t})}}});function u(e,n,t){var o,r,i;return void 0===n&&(n={}),void 0===t&&(t=0),(o=a&&(r=a.extensionConfig)&&e?r[e]:o)?qe(n)&&0!==t&&(i=function d(){var e=arguments,n=e[0]||{},t=e.length,o=!1,r=1;for(0<t&&"boolean"==typeof n&&(o=n,n=e[r]||{},r++),qe(n)||(n={});r<t;r++){var i,a,u,c,s=e[r],l=I(s),f=qe(s);for(i in s)(l&&i in s||f&&q.call(s,i))&&(a=s[i],u=void 0,o&&a&&((u=I(a))||Ke(a))&&(c=n[i],u?I(c)||(c=[]):Ke(c)||(c={}),a=d(o,c,a)),a!==undefined&&(n[i]=a))}return n}(!0,n,o),a&&2===t&&f(n,function(e){var n;x(i[e])&&!x(n=a[e])&&(i[e]=n)}),o=i):o=n,o}return i}function Bn(e,t,o,n){var r=qn(e,t,o,n),i=r.ctx;return i.processNext=function(e){var n=r._next();return n&&n.processTelemetry(e,i),!n},i.createNew=function(e,n){return Bn((e=I(e=void 0===e?null:e)?Kn(e,t,o,n):e)||i.getNext(),t,o,n)},i}function Kn(e,n,t,o){var r,i=null,a=!o;return I(e)&&0<e.length&&(r=null,Fe(e,function(e){(a=!a&&o===e||a)&&e&&C(e.processTelemetry)&&(e=Fn(e,n,t),i=i||e,r&&r._setNext(e),r=e)})),o&&!i?Kn([o],n,t):i}function Fn(c,o,r){var s=null,i=C(c.processTelemetry),a=C(c.setNextPlugin),l=c?c.identifier+"-"+c.priority+"-"+jn++:"Unknown-0-"+jn++,u={getPlugin:function(){return c},getNext:function(){return s},processTelemetry:function(t,e){var n;f(e=e||(n=(n=c&&C(c[Rn])?c[Rn]():n)||Bn(u,o,r)),function(e){if(!c||!i)return!1;var n=On(c);return!n.teardown&&!n[xe]&&(a&&c.setNextPlugin(s),c.processTelemetry(t,e),!0)},"processTelemetry",function(){return{item:t}},!t.sync)||e.processNext(t)},unload:function(o,r){f(o,function(){var e,n,t=!1;return c&&(e=On(c),n=c[ye]||e.core,!c||n&&n!==o[ye]()||e[he]||(e[ye]=null,e[he]=!0,e[ve]=!1,c[he]&&!0===c[he](o,r)&&(t=!0))),t},"unload",function(){},r.isAsync)||o.processNext(r)},update:function(o,r){f(o,function(){var e,n,t=!1;return c&&(e=On(c),n=c[ye]||e.core,!c||n&&n!==o[ye]()||e[he]||c[me]&&!0===c[me](o,r)&&(t=!0)),t},"update",function(){},!1)||o.processNext(r)},_id:l,_setNext:function(e){s=e}};function f(t,o,r,e,n){var i=!1,a=c?c.identifier:En,u=(u=t[Vn])||(t[Vn]={});return t.setNext(s),c&&bn(t[ye](),function(){return a+":"+r},function(){u[l]=!0;try{var e=s?s._id:g;e&&(u[e]=!1),i=o(t)}catch(n){e=!s||u[s._id];e&&(i=!0),s&&e||_(t.diagLog(),1,73,"Plugin ["+a+"] failed during "+r+" - "+k(n)+", run flags: "+k(u))}},e,n),i}return Je(u)}var zn="toGMTString",Wn="toUTCString",Jn="cookie",$n="expires",Gn="enabled",Hn="isCookieUseDisabled",Xn="disableCookiesUsage",T="_ckMgr",Yn=null,Zn=null,Qn=null,et=typeof document===a&&document?document:s("document"),nt={},tt={};function ot(e){return!e||e.isEnabled()}function rt(e,n){var t,o;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[T]||it(n)),t||(e=(e||{}).logger,(o=it[T]||tt[T])||(o=it[T]=it(n,e),tt[T]=o),t=o),t}function it(e,r){N(t=(e=e||tt).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,je,x),N(t,"path",e.cookiePath||"/",null,x),x(t[Gn])&&(n=void 0,m(e[Hn])||(n=!e[Hn]),m(e[Xn])||(n=!e[Xn]),t[Gn]=n);var n,t,s=t,l=s.path||"/",f=s.domain,o=!1!==s[Gn],d={isEnabled:function(){var e=o&&at(r),n=tt[T];return e&&n&&d!==n?ot(n):e},setEnabled:function(e){o=!1!==e},set:function(e,n,t,o,r){var i,a,u,c=!1;return ot(d)&&(i={},-1!=(u=(a=b(n||g)).indexOf(";"))&&(a=b(n.substring(0,u)),i=ut(n.substring(1+u))),N(i,"domain",o||f,He,m),x(t)||(u=pn(),m(i[$n])&&0<(n=$e()+1e3*t)&&((o=new Date).setTime(n),N(i,$n,ct(o,u?zn:Wn)||ct(o,u?zn:Wn)||g,He)),u||N(i,"max-age",g+t,null,m)),(n=fn())&&"https:"===n.protocol&&(N(i,"secure",null,null,m),(Zn=null===Zn?!(S(o=(ln()||{}).userAgent)&&(w(o,"CPU iPhone OS 12")||w(o,"iPad; CPU OS 12")||w(o,"Macintosh; Intel Mac OS X 10_14")&&w(o,"Version/")&&w(o,"Safari")||w(o,"Macintosh; Intel Mac OS X 10_14")&&function(e,n){var t=!1;if(!e||(t=e===n))return t;if(Me)return e[Ie](n);var o=e,r=n,t=!1,e=o?o.length:0;if(e&&40<=e&&!(t=o===r)){for(var i=e-1,a=39;0<=a;a--){if(o[i]!=r[a])return;i--}t=!0}return t}(o,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||w(o,"Chrome/5")||w(o,"Chrome/6")||w(o,"UnrealEngine")&&!w(o,"Chrome")||w(o,"UCBrowser/12")||w(o,"UCBrowser/11"))):Zn)&&N(i,"SameSite","None",null,m)),N(i,"path",r||l,null,m),(s.setCookie||lt)(e,st(a,i)),c=!0),c},get:function(e){var n=g;return ot(d)?(s.getCookie||function(e){var n,t=g;return et&&(n=et[Jn]||g,Qn!==n&&(nt=ut(n),Qn=n),t=b(nt[e]||g)),t})(e):n},del:function(e,n){return!!ot(d)&&d.purge(e,n)},purge:function(e,n){var t,o=!1;return at(r)&&((t={}).path=n||"/",t[$n]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,pn()||(n["max-age"]="0"),(s.delCookie||lt)(e,st(g,n)),o=!0),o}};return d[T]=d}function at(e){if(null===Yn){Yn=!1;try{Yn=(et||{})[Jn]!==undefined}catch(n){_(e,2,68,"Cannot access document.cookie - "+Ge(n),{exception:k(n)})}}return Yn}function ut(e){var t={};return e&&e.length&&Fe(b(e).split(";"),function(e){var n;(e=b(e||g))&&(-1==(n=e.indexOf("="))?t[e]=null:t[b(e.substring(0,n))]=b(e.substring(1+n)))}),t}function ct(e,n){return C(e[n])?e[n]():null}function st(e,n){var t=e||g;return f(n,function(e,n){t+="; "+e+(x(n)?g:"="+n)}),t}function lt(e,n){et&&(et[Jn]=e+"="+n)}function ft(){var n=[];return{add:function(e){e&&n.push(e)},run:function(t,o){Fe(n,function(e){try{e(t,o)}catch(n){_(t.diagLog(),2,73,"Unexpected error calling unload handler - "+k(n))}}),n=[]}}}var P="getPlugin",Te=function Qt(){var i,r,l,f,d,a=this;function n(e){var n,e=e=void 0===e?null:e;return e||(n=r||Bn(null,{},a.core),e=l&&l[P]?n.createNew(null,l[P]):n.createNew(null,l)),e}function c(e,n,t){e&&N(e,"extensionConfig",[],null,x),!t&&n&&(t=n.getProcessTelContext().getNext());var o=l;l&&l[P]&&(o=l[P]()),a.core=n,r=Bn(t,e,n,o)}function g(){i=!1,a.core=null,l=r=null,d=[],f=ft()}g(),y(Qt,a,function(s){var e,n,t,o,r;s.initialize=function(e,n,t,o){c(e,n,o),i=!0},s.teardown=function(e,n){var t,o,r,i,a=s.core;if(a&&(!e||a===e.core()))return o=!1,r=e||function c(e,t,n){var o=t.config||{},r=qn(e,o,t,n),i=r.ctx;return i.processNext=function(e){var n=r._next();return n&&n.unload(i,e),!n},i.createNew=function(e,n){return c((e=I(e=void 0===e?null:e)?Kn(e,o,t,n):e)||i.getNext(),t,n)},i}(null,a,l&&l[P]?l[P]():l),i=n||{reason:0,isAsync:!1},s[Ce]&&!0===s[Ce](r,i,u)?t=!0:u(),t;function u(){o||(o=!0,f.run(r,n),Fe(d,function(e){e.rm()}),d=[],!0===t&&r.processNext(i),g())}},s.update=function(e,n){var t,o,r,i=s.core;if(i&&(!e||i===e.core()))return o=!1,r=e||function u(e,t,n){var o=t.config||{},r=qn(e,o,t,n).ctx;return r.processNext=function(n){return r.iterate(function(e){C(e.update)&&e.update(r,n)})},r.createNew=function(e,n){return u((e=I(e=void 0===e?null:e)?Kn(e,o,t,n):e)||r.getNext(),t,n)},r}(null,i,l&&l[P]?l[P]():l),s._doUpdate&&!0===s._doUpdate(r,n||{reason:0},a)?t=!0:a(),t;function a(){o||(o=!0,c(r.getCfg(),r.core(),r.getNext()))}},s._addHook=function(e){e&&(I(e)?d=d.concat(e):d.push(e))},t="_addUnloadCb",n=function(){return f},(e=s)&&n&&(e[t]=(r=o=null,C(t=n)?o=t:r=t,function(){var e=arguments;if(r=o?o():r)return r.add.apply(r,e)}))}),a.diagLog=function(e){return n(e).diagLog()},a[ve]=function(){return i},a.setInitialized=function(e){i=e},a.setNextPlugin=function(e){l=e},a.processNext=function(e,n){n?n.processNext(e):l&&C(l.processTelemetry)&&l.processTelemetry(e,null)},a._getTelCtx=n};function dt(e,n,t){var o,r,i=n.length,a=(e=e,(n=n)&&150<(n=b(n.toString())).length&&(r=n.substring(0,150),_(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),r||n);if(a.length!==i){for(var u=0,c=a;t[c]!==undefined;)u++,c=a.substring(0,147)+(o=void 0,(o="00"+u).substr(o.length-3));a=c}return a}function gt(e,n,t){var o;return void 0===t&&(t=1024),n&&(t=t||1024,(n=b(n)).toString().length>t&&(o=n.toString().substring(0,t),_(e,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),o||n}function pt(o,e){var r;return e&&(r={},f(e,function(e,n){if(qe(n)&&dn())try{n=gn().stringify(n)}catch(t){_(o,2,49,"custom property is not valid",{exception:t},!0)}n=gt(o,n,8192),e=dt(o,e,r),r[e]=n}),e=r),e}function vt(e,n,t,o){var r;return n&&(n=b(n)).length>t&&(r=n.substring(0,t),_(e,2,o,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),r||n}var ht=Xe({LocalStorage:0,SessionStorage:1}),yt=(Xe({AI:0,AI_AND_W3C:1,W3C:2}),undefined);function mt(){return Ct()?xt(ht.LocalStorage):null}function xt(e){try{if(x(K()))return null;var n=(new Date).toString(),t=s(e===ht.LocalStorage?"localStorage":"sessionStorage"),o=(t.setItem(n,n),t.getItem(n)!==n);if(t.removeItem(n),!o)return t}catch(r){}return null}function Ct(e){return yt=e||yt===undefined?!!xt(ht.LocalStorage):yt}function wt(e,n){var t=mt();if(null!==t)try{return t.getItem(n)}catch(o){yt=!1,_(e,2,1,"Browser failed read of local storage. "+Ge(o),{exception:k(o)})}return null}function It(e,n,t){var o=mt();if(null!==o)try{o.setItem(n,t)}catch(r){yt=!1,_(e,2,3,"Browser failed write to local storage. "+Ge(r),{exception:k(r)})}}function St(e,n){var t=mt();if(null!==t)try{t.removeItem(n)}catch(o){yt=!1,_(e,2,5,"Browser failed removal of local storage item. "+Ge(o),{exception:k(o)})}}Nt.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Nt.dataType="PageviewData";var bt=Nt;function Nt(e,n,t,o,r,i,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var u,c,s,l=this;l.ver=2,l.id=a&&vt(e,a,128,69).toString(),l.url=vt(e,t,2048,66),l.name=gt(e,n)||"not_specified",isNaN(o)||(l.duration=(t=""+Math.floor((a=Math.round(a=isNaN(a=o)||a<0?0:a))/1e3)%60,n=1===(n=""+a%1e3).length?"00"+n:2===n.length?"0"+n:n,t=t.length<2?"0"+t:t,o=(o=""+Math.floor(a/6e4)%60).length<2?"0"+o:o,(0<(u=Math.floor(a/864e5))?u+".":"")+(u=(u=""+Math.floor(a/36e5)%24).length<2?"0"+u:u)+":"+o+":"+t+"."+n)),l.properties=pt(e,r),l.measurements=(c=e,(a=i)&&(s={},f(a,function(e,n){e=dt(c,e,s),s[e]=n}),a=s),a)}function l(e){var n="ai."+e+".";return function(e){return n+e}}var kt,_t,r=l("application"),M=l("device"),n=l("location"),i=l("operation"),Tt=l("session"),U=l("user"),D=l("cloud"),Pt=l("internal");function Mt(){return kt.call(this)||this}_t={applicationVersion:r("ver"),applicationBuild:r("build"),applicationTypeId:r("typeId"),applicationId:r("applicationId"),applicationLayer:r("layer"),deviceId:M("id"),deviceIp:M("ip"),deviceLanguage:M("language"),deviceLocale:M("locale"),deviceModel:M("model"),deviceFriendlyName:M("friendlyName"),deviceNetwork:M("network"),deviceNetworkName:M("networkName"),deviceOEMName:M("oemName"),deviceOS:M("os"),deviceOSVersion:M("osVersion"),deviceRoleInstance:M("roleInstance"),deviceRoleName:M("roleName"),deviceScreenResolution:M("screenResolution"),deviceType:M("type"),deviceMachineName:M("machineName"),deviceVMName:M("vmName"),deviceBrowser:M("browser"),deviceBrowserVersion:M("browserVersion"),locationIp:n("ip"),locationCountry:n("country"),locationProvince:n("province"),locationCity:n("city"),operationId:i("id"),operationName:i("name"),operationParentId:i("parentId"),operationRootId:i("rootId"),operationSyntheticSource:i("syntheticSource"),operationCorrelationVector:i("correlationVector"),sessionId:Tt("id"),sessionIsFirst:Tt("isFirst"),sessionIsNew:Tt("isNew"),userAccountAcquisitionDate:U("accountAcquisitionDate"),userAccountId:U("accountId"),userAgent:U("userAgent"),userId:U("id"),userStoreRegion:U("storeRegion"),userAuthUserId:U("authUserId"),userAnonymousUserAcquisitionDate:U("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:U("authUserAcquisitionDate"),cloudName:D("name"),cloudRole:D("role"),cloudRoleVer:D("roleVer"),cloudRoleInstance:D("roleInstance"),cloudEnvironment:D("environment"),cloudLocation:D("location"),cloudDeploymentUnit:D("deploymentUnit"),internalNodeName:Pt("nodeName"),internalSdkVersion:Pt("sdkVersion"),internalAgentVersion:Pt("agentVersion"),internalSnippet:Pt("snippet"),internalSdkSrc:Pt("sdkSrc")},W(Mt,kt=function(){var t=this;f(_t,function(e,n){t[e]=n})});var Ut="user",Dt="device",At="trace",Lt="web",Ot="app",Et="os",A=new Mt,Vt=function(){},Rt=(L.acquisitionSpan=864e5,L.renewalSpan=18e5,L.cookieUpdateInterval=6e4,L);function L(n,e){var l,f,d=Cn(e),g=rt(e);y(L,this,function(u){C((n=n||{}).sessionExpirationMs)||(n.sessionExpirationMs=function(){return L.acquisitionSpan}),C(n.sessionRenewalMs)||(n.sessionRenewalMs=function(){return L.renewalSpan}),u.config=n;var e=u.config.sessionCookiePostfix&&u.config.sessionCookiePostfix()?u.config.sessionCookiePostfix():u.config.namePrefix&&u.config.namePrefix()?u.config.namePrefix():"";function c(e,n){var t=!1,o=", session will be reset",r=n.split("|");if(2<=r.length)try{var i=+r[1]||0,a=+r[2]||0;isNaN(i)||i<=0?_(d,2,27,"AI session acquisition date is 0"+o):isNaN(a)||a<=0?_(d,2,27,"AI session renewal date is 0"+o):r[0]&&(e.id=r[0],e.acquisitionDate=i,e.renewalDate=a,t=!0)}catch(u){_(d,1,9,"Error parsing ai_session value ["+(n||"")+"]"+o+" - "+Ge(u),{exception:k(u)})}return t}function s(e,n){var t=e.acquisitionDate,o=(e.renewalDate=n,u.config),r=o.sessionRenewalMs(),i=t+o.sessionExpirationMs()-n,e=[e.id,t,n],t=i<r?i/1e3:r/1e3,i=o.cookieDomain?o.cookieDomain():null;g.set(l(),e.join("|"),0<o.sessionExpirationMs()?t:null,i),f=n}l=function(){return"ai_session"+e},u.automaticSession=new Vt,u.update=function(){var e,n,t,o=$e(),r=!1,i=u.automaticSession,a=(i.id||(n=i,t=!1,(a=g.get(l()))&&C(a.split)?t=c(n,a):(a=wt(d,l()))&&(t=c(n,a)),r=!(t||n.id)),u.config.sessionExpirationMs());!r&&0<a&&(t=u.config.sessionRenewalMs(),n=o-i.acquisitionDate,e=o-i.renewalDate,r=(r=(r=n<0||e<0)||a<n)||t<e),r?(a=o,t=((n=u.config||{}).getNewId?n.getNewId():null)||Mn,u.automaticSession.id=t(n.idLength?n.idLength():22),u.automaticSession.acquisitionDate=a,s(u.automaticSession,a),Ct()||_(d,2,0,"Browser does not support local storage. Session durations will be inaccurate.")):(!f||L.cookieUpdateInterval<o-f)&&s(i,o)},u.backup=function(){var e=u.automaticSession,n=e.id,t=e.acquisitionDate,e=e.renewalDate;It(d,l(),[n,t,e].join("|"))}})}var jt=function(){},qt=function(){this.id="browser",this.deviceClass="Browser"},Bt=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.8.2-nightly.2204-24"};function Kt(e){return"string"==typeof e&&e&&!e.match(/,|;|=| |\|/)}O.cookieSeparator="|",O.userCookieName="ai_user",O.authUserCookieName="ai_authUser";var Ft=O;function O(a,e){this.isNewUser=!1,this.isUserCookieSet=!1;var u,c=Cn(e),s=rt(e);y(O,this,function(o){o.config=a;var e=o.config.userCookiePostfix&&o.config.userCookiePostfix()?o.config.userCookiePostfix():"",n=(u=function(){return O.userCookieName+e},s.get(u()));function t(){var e=a||{};return((e.getNewId?e.getNewId():null)||Mn)(e.idLength?a.idLength():22)}function r(e){var n=function(e){if(e){if(Ue)return e[we]();var n;return e&&e.getUTCFullYear?(n=function(e){e=""+e;return 1===e.length?"0"+e:e},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"):void 0}}(new Date);return o.accountAcquisitionDate=n,o.isNewUser=!0,[e,n]}function i(e){o.isUserCookieSet=s.set(u(),e,31536e3)}n&&(o.isNewUser=!1,0<(n=n.split(O.cookieSeparator)).length&&(o.id=n[0],o.isUserCookieSet=!!o.id)),o.id||(o.id=t(),i(r(o.id).join(O.cookieSeparator)),n=a.namePrefix&&a.namePrefix()?a.namePrefix()+"ai_session":"ai_session",St(c,n)),o.accountId=a.accountId?a.accountId():undefined;var n=s.get(O.authUserCookieName);n&&((n=(n=decodeURI(n)).split(O.cookieSeparator))[0]&&(o.authenticatedId=n[0]),1<n.length&&n[1]&&(o.accountId=n[1])),o.setAuthenticatedUserContext=function(e,n,t){void 0===t&&(t=!1),!Kt(e)||n&&!Kt(n)?_(c,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0):(o.authenticatedId=e,e=o.authenticatedId,n&&(o.accountId=n,e=[o.authenticatedId,o.accountId].join(O.cookieSeparator)),t&&s.set(O.authUserCookieName,encodeURI(e)))},o.clearAuthenticatedUserContext=function(){o.authenticatedId=null,o.accountId=null,s.del(O.authUserCookieName)},o.update=function(e){o.id===e&&o.isUserCookieSet||i(r(e||t()).join(O.cookieSeparator))}})}var zt=function(){},Wt=function(e,n,t,o){var r=this,e=(r.traceID=e||function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=g,o=0;o<4;o++)t+=n[15&(e=Pn())]+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 r=n[8+(3&Pn())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+r+t.substr(16,3)+t.substr(19,12)}(),r.parentID=n,r.name=t,fn());!t&&e&&e.pathname&&(r.name=e.pathname),r.name=gt(o,r.name)},Jt="ext",$t="tags";function Gt(e,n){e&&e[n]&&0===function(e){var n=typeof e;if(n===E||n===a&&null!==e||F("objKeys called on non-object"),!ze&&_e)return _e(e);var t,o=[];for(t in e)e&&q.call(e,t)&&o.push(t);if(ze)for(var r=We.length,i=0;i<r;i++)e&&q.call(e,We[i])&&o.push(We[i]);return o}(e[n]).length&&delete e[n]}var Ht,Xt=function eo(e,n){var o=this,t=e.logger;this.appId=function(){return null},this.getSessionId=function(){return null},y(eo,this,function(r){r.application=new jt,r.internal=new Bt(n),sn()&&(r.sessionManager=new Rt(n,e),r.device=new qt,r.location=new zt,r.user=new Ft(n,e),r.telemetryTrace=new Wt(undefined,undefined,undefined,t),r.session=new Vt),r.getSessionId=function(){var e=r.session;return e&&S(e.id)?e.id:(e=(r.sessionManager||{}).automaticSession)&&S(e.id)?e.id:null},r.applySessionContext=function(e,n){N(d(e.ext,Ot),"sesId",r.getSessionId(),S)},r.applyOperatingSystemContxt=function(e,n){N(e.ext,Et,r.os)},r.applyApplicationContext=function(e,n){var t=r.application;t&&(N(e=d(e,$t),A.applicationVersion,t.ver,S),N(e,A.applicationBuild,t.build,S))},r.applyDeviceContext=function(e,n){var t=r.device;t&&(N(e=d(d(e,Jt),Dt),"localId",t.id,S),N(e,"ip",t.ip,S),N(e,"model",t.model,S),N(e,"deviceClass",t.deviceClass,S))},r.applyInternalContext=function(e,n){var t,o=r.internal;o&&(N(t=d(e,$t),A.internalAgentVersion,o.agentVersion,S),N(t,A.internalSdkVersion,o.sdkVersion,S),e.baseType!==mn.dataType&&e.baseType!==bt.dataType||(N(t,A.internalSnippet,o.snippetVer,S),N(t,A.internalSdkSrc,o.sdkSrc,S)))},r.applyLocationContext=function(e,n){var t=o.location;t&&N(d(e,$t,[]),A.locationIp,t.ip,S)},r.applyOperationContext=function(e,n){var t=r.telemetryTrace;t&&(N(e=d(d(e,Jt),At,{traceID:undefined,parentID:undefined}),"traceID",t.traceID,S),N(e,"name",t.name,S),N(e,"parentID",t.parentID,S))},r.applyWebContext=function(e,n){var t=o.web;t&&N(d(e,Jt),Lt,t)},r.applyUserContext=function(e,n){var t=r.user;t&&(N(d(e,$t,[]),A.userAccountId,t.accountId,S),N(e=d(d(e,Jt),Ut),"id",t.id,S),N(e,"authId",t.authenticatedId,S))},r.cleanUp=function(e,n){e=e.ext;e&&(Gt(e,Dt),Gt(e,Ut),Gt(e,Lt),Gt(e,Et),Gt(e,Ot),Gt(e,At))}})},r=(W(Yt,Ht=Te),Yt.getDefaultConfig=function(){return{instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},getSessionId:function(){return null},namePrefix:function(){return undefined},sessionCookiePostfix:function(){return undefined},userCookiePostfix:function(){return undefined},idLength:function(){return 22},getNewId:function(){return null}}},Yt);function Yt(){var s,l,e=Ht.call(this)||this;return e.priority=110,e.identifier="AppInsightsPropertiesPlugin",y(Yt,e,function(u,c){u.initialize=function(e,n,t,o){c.initialize(e,n,t,o);var r,i=u._getTelCtx(),a=u.identifier,e=Yt.getDefaultConfig();l=l||{},f(e,function(e,n){l[e]=function(){return i.getConfig(a,e,n())}}),u.context=new Xt(n,l),r=null,Fe(t,function(e){if("AppInsightsChannelPlugin"===e.identifier)return r=e,-1}),s=r,u.context.appId=function(){return s?s._appId:null},u._extConfig=l},u.processTelemetry=function(e,n){var t,o,r,i;x(e)||(n=u._getTelCtx(n),e.name===bt.envelopeType&&n.diagLog().resetInternalMessageCount(),(o=u.context||{}).session&&"string"!=typeof u.context.session.id&&o.sessionManager&&o.sessionManager.update(),(t=o.user)&&!t.isUserCookieSet&&t.update(o.user.id),o=n,d(i=e,"tags",[]),d(i,"ext",{}),(r=u.context).applySessionContext(i,o),r.applyApplicationContext(i,o),r.applyDeviceContext(i,o),r.applyOperationContext(i,o),r.applyUserContext(i,o),r.applyOperatingSystemContxt(i,o),r.applyWebContext(i,o),r.applyLocationContext(i,o),r.applyInternalContext(i,o),r.cleanUp(i,o),t&&t.isNewUser&&(t.isNewUser=!1,i=new mn(72,(ln()||{}).userAgent||""),(n.diagLog()||new wn).logInternalMessage(1,i)),u.processNext(e,n))}}),e}e.PropertiesPlugin=r,e.Session=Vt,e.SessionManager=Rt,e.TelemetryContext=Xt,e.TelemetryTrace=Wt;M=e,n="__esModule",i={value:!0},Tt=Object.defineProperty;if(Tt)try{return void Tt(M,n,i)}catch(no){}typeof i.value!==undefined&&(M[n]=i.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
|
|
6
6
|
//# sourceMappingURL=applicationinsights-properties-js.min.js.map
|