@microsoft/applicationinsights-offlinechannel-js 0.4.0-nightlybeta.2504-03 → 0.4.0-nightlybeta3.2504-17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Offline Channel, 0.4.0-nightlybeta.2504-03
2
+ * Application Insights JavaScript SDK - Offline Channel, 0.4.0-nightlybeta3.2504-17
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
- !function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((n="undefined"!=typeof globalThis?globalThis:n||self).Microsoft=n.Microsoft||{},n.Microsoft.ApplicationInsights=n.Microsoft.ApplicationInsights||{}))}(this,function(n){"use strict";function u(n,t){return n||t}function t(n,t){return n[t]}var p=undefined,y=null,c="",a="function",f="object",l="prototype",s="__proto__",v="undefined",A="constructor",R="Symbol",B="_polyfill",M="length",j="name",m="call",L="toString",o=u(Object),H=t(o,l),U=u(String),e=t(U,l),G=u(Math),r=u(Array),Z=t(r,l),Y=t(Z,"slice");function b(n,t){try{return{v:n.apply(this,t)}}catch(e){return{e:e}}}function nn(t){return function(n){return typeof n===t}}function z(n){return typeof n===v||n===v}function q(n){return n===y||z(n)}function tn(n){return!!n||n!==p}var en=nn("string"),F=nn(a);function rn(n){return!(!n&&q(n)||!n||typeof n!==f)}var C=t(r,"isArray"),on=nn("number");function un(n){return n&&n.then&&F(n.then)}var cn=t(o,"getOwnPropertyDescriptor");function g(n,t){return!!n&&H.hasOwnProperty[m](n,t)}var an=u(t(o,"hasOwn"),fn);function fn(n,t){return g(n,t)||!!cn(n,t)}function V(n,t,e){if(n&&rn(n))for(var r in n)if(an(n,r)&&-1===t[m](e||n,r,n[r]))break}var ln={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"},sn=t(o,"defineProperty");function x(n,t,e){return sn(n,t,(r=e,(o={})[ln.c]=!0,o[ln.e]=!0,r.l&&(o.get=function(){return r.l.v},(n=cn(r.l,"v"))&&n.set&&(o.set=function(n){r.l.v=n})),V(r,function(n,t){o[ln[n]]=tn(t)?t:o[ln[n]]}),o));var r,o}function dn(n,e,r,t){var o={};return V(n,function(n,t){vn(o,n,e?t:n),vn(o,t,r?t:n)}),t?t(o):o}function vn(n,t,e){sn(n,t,{value:e,enumerable:!0,writable:!1})}var gn=u(U),hn="[object Error]";function T(n,t){var e=c,r=H[L][m](n);r===hn&&(n={stack:gn(n.stack),message:gn(n.message),name:gn(n.name)});try{e=((e=JSON.stringify(n,y,t?"number"==typeof t?t:4:p))?e.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):y)||gn(n)}catch(o){e=" - "+T(o,t)}return r+": "+e}function pn(n){throw new TypeError(n)}var yn=t(o,"freeze");function mn(n){return n}function bn(n){return n[s]||y}var Cn=t(o,"keys"),xn=u(yn,mn),_n=u(t(o,"getPrototypeOf"),bn);function wn(n){return dn(n,0,0,xn)}var Sn,Dn=wn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),On="__tsUtils$gblCfg";function En(){var n;return(n=(n=(n=typeof globalThis!==v?globalThis:n)||typeof self===v?n:self)||typeof window===v?n:window)||typeof global===v?n:global}function Tn(){var n;return Sn||(n=b(En).v||{},Sn=n[On]=n[On]||{}),Sn}function Pn(r,n,o){var i=n?n[r]:y;return function(n){var t,e=(n?n[r]:y)||i;if(e||o)return t=arguments,(e||o).apply(n,e?Y[m](t,1):t);pn('"'+gn(r)+'" not defined for '+T(n))}}function In(t){return function(n){return n[t]}}var kn=t(G,"min"),Nn=t(G,"max"),An=Pn("slice",e),Rn=Pn("substring",e),Bn=Pn("substr",e,Mn);function Mn(n,t,e){return q(n)&&pn("Invalid "+T(n)),e<0?c:((t=t||0)<0&&(t=Nn(t+n[M],0)),z(e)?An(n,t):An(n,t,t+e))}var jn,Ln,i;function Hn(n){var t={description:gn(n),toString:function(){return R+"("+n+")"}};return t[B]=!0,t}function Un(){i=Tn()}function _(n){return sn({toJSON:function(){return n}},"v",{value:n})}var zn,qn="window";function Fn(n,t){var e;return function(){return i||Un(),(e=e&&!i.lzy?e:_(b(n,t).v)).v}}function Vn(n){return i||Un(),(zn=zn&&!1!==n&&!i.lzy?zn:_(b(En).v||y)).v}function P(n,t){t=zn&&!1!==t?zn.v:Vn(t);if(t&&t[n])return t[n];if(n===qn)try{return window}catch(e){}return y}var Kn,Xn,Wn,$n=Fn(P,["document"]),Jn=Fn(P,[qn]),Qn=Fn(P,["navigator"]),Gn=Fn(function(){return!!b(function(){return process&&(process.versions||{}).node}).v});function Zn(){return Kn=_(b(P,[R]).v)}function Yn(n){var t=(i.lzy?0:Kn)||Zn();return t.v?t.v[n]:p}function nt(){return i||Un(),((i.lzy?0:Kn)||Zn()).v}function tt(n,t){var e=Dn[n],r=(i||Un(),(i.lzy?0:Kn)||Zn());return r.v?r.v[e||n]:t?p:(Ln=Ln||{},(e=Dn[n])?Ln[e]=Ln[e]||Hn(R+"."+e):void 0)}function et(n,t){i||Un();var e=(i.lzy?0:Kn)||Zn();return e.v?e.v(n):t?y:Hn(n)}function rt(n){return i||Un(),((Xn=(i.lzy?0:Xn)||_(b(Yn,["for"]).v)).v||function(n){jn||(r=Tn(),jn=r.gblSym=r.gblSym||{k:{},s:{}});var t,e,r=jn;return an(r.k,n)||(t=Hn(n),e=Cn(r.s).length,t._urid=function(){return e+"_"+t[L]()},r.k[n]=t,r.s[t._urid()]=gn(n)),r.k[n]})(n)}function ot(n){return n&&F(n.next)}function it(n,t,e){if(n&&(ot(n)||(n=n[(Wn=Wn||_(tt(3))).v]?n[Wn.v]():y),ot(n))){var r=p,o=p;try{for(var i=0;!(o=n.next()).done&&-1!==t[m](e||n,o.value,i,n);)i++}catch(u){r={e:u},n["throw"]&&(o=y,n["throw"](r))}finally{try{o&&!o.done&&n["return"]&&n["return"](o)}finally{if(r)throw r.e}}}}function ut(n,t,e){return n.apply(t,e)}function K(n,t,e){if(n)for(var r=n[M]>>>0,o=0;o<r&&!(o in n&&-1===t[m](e||n,n[o],o,n));o++);}var ct=Pn("indexOf",Z);function at(n){return((n?n.slice:y)||Y).apply(n,Y[m](arguments,1))}var ft,lt=u(t(o,"create"),st);function st(n){if(!n)return{};var t=typeof n;function e(){}return t!==f&&t!=a&&pn("Prototype must be an Object or function: "+T(n)),e[l]=n,new e}function dt(n,t){return(o.setPrototypeOf||function(e,n){var t;(ft=ft||_(((t={})[s]=[],t instanceof Array))).v?e[s]=n:V(n,function(n,t){return e[n]=t})})(n,t)}function vt(n,t){t&&(n[j]=t)}function gt(o,i,n){var t,e,u=n||Error,c=u[l][j],a=Error.captureStackTrace,n=u;return b(x,[e=function(){var n=this,t=arguments;try{b(vt,[u,o]);var e,r=ut(u,n,Y[m](t))||n;return r!==n&&(e=_n(n))!==_n(r)&&dt(r,e),a&&a(r,n[A]),i&&i(r,t),r}finally{b(vt,[u,c])}},j,{v:t=o,c:!0,e:!1}]),(e=dt(e,n))[l]=n===y?lt(n):(r[l]=n[l],new r),e;function r(){this[A]=e,b(x,[this,j,{v:t,c:!0,e:!1}])}}function ht(){return(Date.now||pt)()}function pt(){return(new Date).getTime()}function yt(t){return function(n){return q(n)&&pn("strTrim called ["+T(n)+"]"),n&&n.replace?n.replace(t,c):n}}var mt,bt,Ct,xt=Pn("trim",e,yt(/^\s+|(?=\s)\s+$/g)),_t=t(G,"floor");function wt(n){if(!n||typeof n!==f)return!1;var t=!1;if(n!==(Ct=Ct||Jn()||!0)){bt||(mt=Function[l][L],bt=mt[m](o));try{var e=_n(n),t=(t=!e)||!(!(e=g(e,A)?e[A]:e)||typeof e!=a||mt[m](e)!==bt)}catch(r){}}return t}var St=In(M),Dt=Pn("indexOf",e),Ot="unref",Et="hasRef";function Tt(){return a=p,f=Y[m](arguments),s=(l=C(a))?a.length:0,d=(0<s?a[0]:l?p:a)||setTimeout,v=(1<s?a[1]:p)||clearTimeout,g=f[0],f[0]=function(){h.dn(),ut(g,p,Y[m](arguments))},o=function(n){ut(v,p,[n])},u=!0,c=(r=function(n){if(n){if(n.refresh)return n.refresh(),n;ut(v,p,[n])}return ut(d,p,f)})(y),(i={cancel:t,refresh:e,hasRef:function(){return c&&c[Et]?c[Et]():u},ref:function(){return u=!0,c&&c.ref&&c.ref(),i}})[Ot]=n,(h={h:i=sn(i,"enabled",{get:function(){return!!c},set:function(n){!n&&c&&t(),n&&!c&&e()}}),dn:function(){c=y}}).h;function n(){return u=!1,c&&c[Ot]&&c[Ot](),i}function t(){c&&o(c),c=y}function e(){return c=r(c),u||n(),i}var r,o,i,u,c,a,f,l,s,d,v,g,h}var Pt,r=function(n){return dn(n,1,0,xn)},It=r({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),kt="toLowerCase",I="length",Nt="warnToConsole",At="throwInternal",Rt="watch",Bt="apply",h="push",Mt="splice",jt="logger",Lt="initialize",Ht="identifier",Ut="isInitialized",zt="getPlugin",qt="name",Ft="processNext",Vt="unload",Kt="createNew",Xt="teardown",Wt="messageId",$t="message",Jt="diagLog",Qt="_doTeardown",Gt="update",Zt="getNext",Yt="setNextPlugin",ne="userAgent",te="split",ee="replace",re="type",oe="evtName",ie="status",ue="getAllResponseHeaders",ce="isChildEvt",ae="data",fe="getCtx",le="setCtx",se="itemsReceived",de="urlString",ve="headers",ge="timeout",he="object",pe="undefined",ye="prototype",me=Object,be=((Vn()||{}).Symbol,(Vn()||{}).Reflect,function(n,t){return(be=me.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)}),Ce="constructor",xe="prototype",_e="function",we="_dynInstFuncs",Se="_isDynProxy",De="_dynClass",Oe="_dynInstChk",Ee=Oe,Te="_dfOpts",Pe="_unknown_",Ie="__proto__",ke="_dyn"+Ie,U="__dynProto$Gbl",Ne="_dynInstProto",Ae="useBaseInst",Re="setInstFuncs",Be=Object,Me=Be.getPrototypeOf,je=Be.getOwnPropertyNames,Z=Vn(),Le=Z[U]||(Z[U]={o:((G={})[Re]=!0,G[Ae]=!0,G),n:1e3});function He(n){return n&&(n===Be[xe]||n===Array[xe])}function Ue(n){return He(n)||n===Function[xe]}function ze(n){if(n){if(Me)return Me(n);var t=n[Ie]||n[xe]||(n[Ce]?n[Ce][xe]:null),e=n[ke]||t;g(n,ke)||(delete n[Ne],e=n[ke]=n[Ne]||n[ke],n[Ne]=t)}return e}function qe(n,t){var e=[];if(je)e=je(n);else for(var r in n)"string"==typeof r&&g(n,r)&&e.push(r);if(e&&0<e.length)for(var o=0;o<e.length;o++)t(e[o])}function Fe(n,t,e){return t!==Ce&&typeof n[t]===_e&&(e||g(n,t))&&t!==Ie&&t!==xe}function Ve(n){pn("DynamicProto: "+n)}function Ke(n,t){for(var e=n.length-1;0<=e;e--)if(n[e]===t)return 1}function Xe(n,t){return g(n,xe)?n.name||t||Pe:((n||{})[Ce]||{}).name||t||Pe}function k(n,r,t,e){g(n,xe)||Ve("theClass is an invalid class definition.");var o,i,u,c,a,f,l=n[xe],s=(function(n){if(!Me)return 1;for(var t=[],e=ze(r);e&&!Ue(e)&&!Ke(t,e);){if(e===n)return 1;t.push(e),e=ze(e)}}(l)||Ve("["+Xe(n)+"] not in hierarchy of ["+Xe(r)+"]"),null),n=(g(l,De)?s=l[De]:(s="_dynCls$"+Xe(n,"_")+"$"+Le.n,Le.n++,l[De]=s),k[Te]),d=!!n[Ae],v=(d&&e&&e[Ae]!==undefined&&(d=!!e[Ae]),o=r,i=lt(null),qe(o,function(n){!i[n]&&Fe(o,n,!1)&&(i[n]=o[n])}),i),d=(t(r,function(n,t,e,i){function r(n,t,e){var r,o=t[e];return o[Se]&&i&&!1!==(r=n[we]||{})[Ee]&&(o=(r[t[De]]||{})[e]||o),function(){return o.apply(n,arguments)}}for(var o=lt(null),u=(qe(e,function(n){o[n]=r(t,e,n)}),ze(n)),c=[];u&&!Ue(u)&&!Ke(c,u);)qe(u,function(n){!o[n]&&Fe(u,n,!Me)&&(o[n]=r(t,u,n))}),c.push(u),u=ze(u);return o}(l,r,v,d)),!!Me&&!!n[Re]);u=l,t=s,c=r,a=v,n=!1!==(d=d&&e?!!e[Re]:d),He(u)||He(l=c[we]=c[we]||lt(null))||(f=l[t]=l[t]||lt(null),!1!==l[Ee]&&(l[Ee]=!!n),He(f)||qe(c,function(n){var e,r,o;Fe(c,n,!1)&&c[n]!==a[n]&&(f[n]=c[n],delete c[n],g(u,n)&&(!u[n]||u[n][Se])||(u[n]=(e=u,r=n,(o=function(){var n,t;return(function(n,t,e,r){var o=null;if(n&&g(e,De)){var i=n[we]||lt(null);if((o=(i[e[De]]||lt(null))[t])||Ve("Missing ["+t+"] "+_e),!o[Oe]&&!1!==i[Ee]){for(var u=!g(n,t),c=ze(n),a=[];u&&c&&!Ue(c)&&!Ke(a,c);){var f=c[t];if(f){u=f===r;break}a.push(c),c=ze(c)}try{u&&(n[t]=o),o[Oe]=1}catch(l){i[Ee]=!1}}}return o}(this,r,e,o)||(typeof(t=(t=e[n=r])===o?ze(e)[n]:t)!==_e&&Ve("["+n+"] is not a "+_e),t)).apply(this,arguments)})[Se]=1,o)))}))}k[Te]=Le.o;var We="Promise",$e="rejected";function N(n,t){return Je(n,function(n){return t?t({status:"fulfilled",rejected:!1,value:n}):n},function(n){return t?t({status:$e,rejected:!0,reason:n}):n})}function Je(n,t,e,r){var o,i=n;try{if(un(n))(t||e)&&(i=n.then(t,e));else try{t&&(i=t(n))}catch(u){if(!e)throw u;i=e(u)}}finally{r&&(n=i,(o=r)&&(un(n)?n["finally"]?n["finally"](o):n.then(function(n){return o(),n},function(n){throw o(),n}):o()))}return i}var Qe,Ge=["pending","resolving","resolved",$e],Ze="dispatchEvent";function Ye(n){var t;return!!(t=n&&n.createEvent?n.createEvent("Event"):t)&&t.initEvent}var nr,tr="unhandledRejection",er=tr.toLowerCase(),rr=10;function or(n){return F(n)?n.toString():T(n)}function ir(n,t,e){var c,i,r=at(arguments,3),a=0,f=!1,l=[],s=!1,o=null;function u(i,u){return s=!0,o&&o.cancel(),o=null,n(function(r,o){l.push(function(){try{var n=2===a?i:u,t=z(n)?c:F(n)?n(c):n;un(t)?t.then(r,o):(n||3!==a?r:o)(t)}catch(e){o(e)}}),f&&v()},r)}function d(){return Ge[a]}function v(){var n;0<l.length&&(n=l.slice(),l=[],s=!0,o&&o.cancel(),o=null,t(n))}function g(t,e){return function(n){if(a===e){if(2===t&&un(n))return a=1,void n.then(g(2,1),g(3,1));a=t,f=!0,c=n,v(),s||3!==t||o||(o=Tt(h,rr))}}}function h(){var n,t,e,r,o;s||(s=!0,Gn()?process.emit(tr,c,i):(n=Jn()||Vn(),nr=nr||_(b(P,[We+"RejectionEvent"]).v),n=n,t=er,r=function(n){return x(n,"promise",{g:function(){return i}}),n.reason=c,n},e=!!nr.v,o=$n(),r(o=(Qe=Qe||_(!!b(Ye,[o]).v)).v?o.createEvent("Event"):e?new Event(t):{}),Qe.v&&o.initEvent(t,!1,!0),o&&n[Ze]?n[Ze](o):(e=n["on"+t])?e(o):(r=P("console"))&&(r.error||r.log)(t,T(o))))}sn(i={then:u,"catch":function(n){return u(undefined,n)},"finally":function(t){var n=t,e=t;return F(t)&&(n=function(n){return t&&t(),n},e=function(n){throw t&&t(),n}),u(n,e)}},"state",{get:d}),nt()&&(i[tt(11)]="IPromise"),i.toString=function(){return"IPromise "+d()+(f?" - "+or(c):"")},F(e)||pn(We+": executor is not a function - "+or(e));var p=g(3,0);try{e.call(i,g(2,0),p)}catch(y){p(y)}return i}function ur(e){return function(t){var n=at(arguments,1);return e(function(e,r){try{var o=[],i=1;it(t,function(n,t){n&&(i++,Je(n,function(n){o[t]=n,0==--i&&e(o)},r))}),0==--i&&e(o)}catch(n){r(n)}},n)}}function cr(e){return function(t){var n=at(arguments,1);return un(t)?t:e(function(n){n(t)},n)}}function ar(t){return function(e){var n=at(arguments,1);return t(function(n,t){t(e)},n)}}function X(n,t){return ir(X,(r=on(e=t)?e:0,function(n){Tt(function(){K(n,function(n){try{n()}catch(t){}})},r)}),n,t);var e,r}var fr,lr,sr=ur(X),dr=cr(X),w=ar(X);function vr(n,t){var e=(fr=fr||_(b(P,[We]).v||null)).v;if(!e)return X(n);F(n)||pn(We+": executor is not a function - "+T(n));var r=0,e=new e(function(t,e){n(function(n){r=2,t(n)},function(n){r=3,e(n)})});return sn(e,"state",{get:function(){return Ge[r]}}),e}function gr(n,t){return(lr=lr||_(vr)).v.call(this,n,t)}var hr,pr,yr="reject",mr="Rejected",br=0,Cr={};function xr(){}function _r(n,t,e){Cr[n]||(Cr[n]=gt(n));var r=ht();return new Cr[n]("Task [".concat(t.id,"] ").concat(e||"","- ").concat(t.st?"Running":"Waiting",": ").concat((r-(t.st||t.cr)||"0")+" ms"))}function wr(n,t){var e=ht()-t;K(n,function(n){(n&&!n.rj&&n.st&&n.st<e||!n.st&&n.cr&&n.cr<e)&&n&&n[yr](n.rj||_r("Aborted",n,"Stale "))})}function Sr(n,t){t=ct(n,t);-1!==t&&n.splice(t,1)}function Dr(a,n){var f,e,r,o,t,i,l=[],s=[],d=0,v=(n?n+".":"")+br++,g=(a=a||gr,function(){var n=0<St(l)+St(s);0<e&&(o||(o=Tt(function(){wr(l,e),wr(s,e),o&&(o.enabled=0<St(l)+St(s))},r)).unref(),o&&(o.enabled=n))}),h=function(u,c){return u.st=ht(),l.push(u),g(),function(e,r){var n=function(n){u.rj=u.rj||n||_r(mr,u),u[yr]=xr,p(u),e=null,r&&r(n),r=null},t=u.id;if(u.rj)n(u.rj);else{u[yr]=n;try{var o=c(t);u.to&&un(o)&&(u.t=Tt(function(){n(_r("Timeout",u))},u.to)),Je(o,function(n){p(u);try{e&&e(n)}catch(t){r&&r(t)}e=r=null},n)}catch(i){n(i)}}}},p=function(n){Sr(l,n),n.t&&n.t.cancel(),n.t=null,f&&f===n&&(f=null,St(l)+St(s)===0&&(o&&o.cancel(),o=null))},n={idle:!0,queue:function(n,t,e){var r,o,i,u=v+"."+d++,c=(t&&(u+="-("+t+")"),(t={id:u,cr:ht(),to:e})[yr]=function(n){c.rj=n||_r(mr,c),c[yr]=xr},t);return c.p=f?(o=f,i=n,s.push(r=c),g(),a(function(n,t){N(o.p,function(){Sr(s,r),h(r,i)(n,t)})})):a(h(c,n)),(f=c).p},setStaleTimeout:function(n,t){o&&o.cancel(),o=null,e=n,r=t||n/10,g()}};return x(n,"idle",{g:function(){return St(l)+St(s)===0}}),i=function(){return{l:f,r:l,w:s}},pr=pr||{toString:function(){return"[[SchedulerState]]"}},sn(t=n,hr=hr||{toString:function(){return"[[SchedulerName]]"}},{get:function(){return v}}),sn(t,pr,{get:i}),n}var Or=undefined,d="",S="core",Er="disabled",Tr="extensionConfig",Pr="processTelemetry",Ir="priority",kr="getPerfMgr",Nr="Not dynamic - ",Ar=/-([a-z])/g,Rr=/([^\w\d_$])/g,Br=/^(\d+[\w\d_$])/;function Mr(n){return!q(n)}function jr(n){return n&&en(n)?(n=(n=n[ee](Ar,function(n,t){return t.toUpperCase()}))[ee](Rr,"_"))[ee](Br,function(n,t){return"_"+t}):n}function Lr(n,t){return!(!n||!t)&&-1!==Dt(n,t)}function Hr(n,t,e,r,o){var i,u,c;n&&t&&e&&(!1===o&&!z(n[t])||(n[t]=(i=r,c=u=null,F(o=e)?u=o:c=o,function(){var n=arguments;if(c=u?u():c)return c[i][Bt](c,n)})))}function Ur(n){try{return n.responseText}catch(t){}return null}function zr(n,t){return n?"XDomainRequest,Response:"+Ur(n)||"":t}function qr(n,t){return n?"XMLHttpRequest,Status:"+n[ie]+",Response:"+Ur(n)||n.response||"":t}var Fr="withCredentials";function Vr(n,t,e){return!n[e]&&t&&t.getResponseHeader&&(t=t.getResponseHeader(e))&&(n[e]=xt(t)),n}var Kr="kill-duration",Xr="kill-duration-seconds",Wr="time-delta-millis";function $r(n,t){var e,r,o={};return n[ue]?(e=n[ue](),r={},en(e)&&K(xt(e)[te](/[\r\n]+/),function(n){var t,e;n&&(-1!=(e=n.indexOf(": "))?(t=xt(n.substring(0,e))[kt](),e=xt(n.substring(1+e)),r[t]=e):r[xt(n)]=1)}),o=r):t&&(o=Vr(o,n,Wr),o=Vr(o,n,Kr),o=Vr(o,n,Xr)),o}var Jr="console",Qr="JSON",Gr="crypto",Zr="msCrypto",Yr="msie",no="trident/",to="XMLHttpRequest",eo=null,ro=null,oo=null,io=null;function uo(n,t){var e,r=!1;if(n){try{(r=t in n)||(e=n[ye])&&(r=t in e)}catch(o){}if(!r)try{r=!z((new n)[t])}catch(o){}}return r}function co(){return typeof JSON===he&&JSON||null!==P(Qr)}function ao(){return co()?JSON||P(Qr):null}function fo(){var n=!1;try{n=!!P(to)}catch(t){}return n}var lo=4294967296,so=4294967295,vo=123456789,go=987654321,ho=!1,po=vo,yo=go;function mo(n){var t,e=0,r=P(Gr)||P(Zr);if(0===(e=r&&r.getRandomValues?r.getRandomValues(new Uint32Array(1))[0]&so:e)&&(!(r=Qn())||r[ne]===ro&&null!==eo||(r=((ro=r[ne])||d)[kt](),eo=Lr(r,Yr)||Lr(r,no)),eo)){if(!ho)try{var o=2147483647&ht();(t=(Math.random()*lo^o)+o)<0&&(t>>>=0),po=vo+t&so,yo=go-t&so,ho=!0}catch(i){}r=((yo=36969*(65535&yo)+(yo>>16)&so)<<16)+(65535&(po=18e3*(65535&po)+(po>>16)&so))>>>0&so|0,e=(r>>>=0)&so}return 0===e&&(e=_t(lo*Math.random()|0)),n||(e>>>=0),e}var bo="3.4.0-nightlybeta.2504-03",Co="."+function(n){void 0===n&&(n=22);for(var t=mo()>>>0,e=0,r=d;r[I]<n;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++e&&(t=(mo()<<2&4294967295|3&t)>>>0,e=0);return r}(6),xo=0;function _o(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType}function wo(n,t){return jr(n+xo+++((t=void 0!==t&&t)?"."+bo:d)+Co)}function So(n){var i={id:wo("_aiData-"+(n||d)+"."+bo),accept:_o,get:function(n,t,e,r){var o=n[i.id];return o?o[jr(t)]:(r&&((o=function(n,t){var e=t[n.id];if(!e){e={};try{_o(t)&&x(t,n.id,{e:!1,v:e})}catch(r){}}return e}(i,n))[jr(t)]=e),e)},kill:function(n,t){if(n&&n[t])try{delete n[t]}catch(e){}}};return i}function Do(n){return n&&rn(n)&&(n.isVal||n.fb||an(n,"v")||an(n,"mrg")||an(n,"ref")||n.set)}function Oo(n,t,e){var r,o=e.dfVal||tn;if(t&&e.fb){var i=e.fb;C(i)||(i=[i]);for(var u=0;u<i[I];u++){var c=i[u],a=t[c];if(o(a)?r=a:n&&(o(a=n.cfg[c])&&(r=a),n.set(n.cfg,gn(c),a)),o(r))break}}return!o(r)&&o(e.v)?e.v:r}function Eo(e,n,t,r){var o,i,u,c,a,f,l=r,l=Do(l)?(o=l.isVal,i=l.set,a=l.rdOnly,s=l.blkVal,u=l.mrg,!(c=l.ref)&&z(c)&&(c=!!u),Oo(e,n,l)):r,r=(s&&e.blkVal(n,t),!0),s=n[t];!s&&q(s)||(f=s,r=!1,o&&f!==l&&!o(f)&&(f=l,r=!0),i&&(r=(f=i(f,l,n))===l)),r?f=l&&function d(e,r,n){var o,t=n;return(t=n&&Do(n)?Oo(e,r,n):t)&&(Do(t)&&(t=d(e,r,t)),C(t)?(o=[])[I]=t[I]:wt(t)&&(o={}),o&&(V(t,function(n,t){t&&Do(t)&&(t=d(e,r,t)),o[n]=t}),t=o)),t}(e,n,l):(wt(f)||C(l))&&u&&l&&(wt(l)||C(l))&&V(l,function(n,t){Eo(e,f,n,t)}),e.set(n,t,f),c&&e.ref(n,t),a&&e.rdOnly(n,t)}var To=rt("[[ai_dynCfg_1]]"),Po=rt("[[ai_blkDynCfg_1]]"),Io=rt("[[ai_frcDynCfg_1]]");function ko(n,t,e){var r=!1;return!e||n[t.blkVal]||(r=e[Io])||e[Po]?r:wt(e)||C(e)}function No(n){pn("InvalidAccess:"+n)}var Ao=["push","pop","shift","unshift","splice"],Ro=function(n,t,e,r){n&&n[At](3,108,"".concat(e," [").concat(t,"] failed - ")+T(r))};function Bo(n,t){n=cn(n,t);return n&&n.get}function Mo(o,i,u,c){var a={n:u,h:[],trk:function(n){n&&n.fn&&(-1===ct(a.h,n)&&a.h[h](n),o.trk(n,a))},clr:function(n){n=ct(a.h,n);-1!==n&&a.h[Mt](n,1)}},f=!0,l=!1;function s(){f&&(l=l||ko(s,o,c),c&&!c[To]&&l&&(c=Ho(o,c,u,"Converting")),f=!1);var n=o.act;return n&&a.trk(n),c}s[o.prop]={chng:function(){o.add(a)}},x(i,a.n,{g:s,s:function(t){if(c!==t){s[o.ro]&&!o.upd&&No("["+u+"] is read-only:"+T(i)),f&&(l=l||ko(s,o,c),f=!1);var n,e=l&&s[o.rf];if(l)if(e){V(c,function(n){c[n]=t?t[n]:Or});try{V(t,function(n,t){jo(o,c,n,t)}),t=c}catch(r){Ro((o.hdlr||{})[jt],u,"Assigning",r),l=!1}}else c&&c[To]&&V(c,function(n){var n=Bo(c,n);n&&(n=n[o.prop])&&n.chng()});t!==c&&(n=t&&ko(s,o,t),!e&&n&&(t=Ho(o,t,u,"Converting")),c=t,l=n),o.add(a)}}})}function jo(n,t,e,r){var o;return t&&((o=Bo(t,e))&&o[n.prop]?t[e]=r:Mo(n,t,e,r)),t}function Lo(n,t,e,r){if(t){var o=Bo(t,e),i=o&&!!o[n.prop],u=r&&r[0],c=r&&r[1],r=r&&r[2];if(!i){if(r)try{var a=t;if(a&&(wt(a)||C(a)))try{a[Po]=!0}catch(f){}}catch(l){Ro((n.hdlr||{})[jt],e,"Blocking",l)}try{jo(n,t,e,t[e]),o=Bo(t,e)}catch(l){Ro((n.hdlr||{})[jt],e,"State",l)}}u&&(o[n.rf]=u),c&&(o[n.ro]=c),r&&(o[n.blkVal]=!0)}return t}function Ho(e,r,n,t){try{V(r,function(n,t){jo(e,r,n,t)}),r[To]||(sn(r,To,{get:function(){return e.hdlr}}),o=e,u=n,C(i=r)&&K(Ao,function(n){var r=i[n];i[n]=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=r[Bt](this,n);return Ho(o,i,u,"Patching"),e}}))}catch(c){Ro((e.hdlr||{})[jt],n,t,c)}var o,i,u;return r}var Uo="[[ai_",zo="]]";function qo(i){var u,n=et(Uo+"get"+i.uid+zo),t=et(Uo+"ro"+i.uid+zo),e=et(Uo+"rf"+i.uid+zo),r=et(Uo+"blkVal"+i.uid+zo),c=et(Uo+"dtl"+i.uid+zo),o=null,a=null;function f(t,n){var e=u.act;try{(u.act=t)&&t[c]&&(K(t[c],function(n){n.clr(t)}),t[c]=[]),n({cfg:i.cfg,set:i.set.bind(i),setDf:i.setDf.bind(i),ref:i.ref.bind(i),rdOnly:i.rdOnly.bind(i)})}catch(o){var r=i[jt];throw r&&r[At](1,107,T(o)),o}finally{u.act=e||null}}function l(){if(o){var e,n=o,r=(o=null,a&&a.cancel(),a=null,[]);if(K(n,function(t){if(t&&(t[c]&&(K(t[c],function(n){n.clr(t)}),t[c]=null),t.fn))try{f(t,t.fn)}catch(n){r[h](n)}}),o)try{l()}catch(t){r[h](t)}if(0<r[I])throw n=r,Pt=Pt||gt("AggregationError",function(n,t){1<t[I]&&(n.errors=t[1])}),e="Watcher error(s): ",K(n,function(n,t){e+="\n".concat(t," > ").concat(T(n))}),new Pt(e,n||[])}}return u={prop:n,ro:t,rf:e,blkVal:r,hdlr:i,add:function(n){if(n&&0<n.h[I]){o=o||[],a=a||Tt(function(){a=null,l()},0);for(var t=0;t<n.h[I];t++){var e=n.h[t];e&&-1===ct(o,e)&&o[h](e)}}},notify:l,use:f,trk:function(n,t){n&&(n=n[c]=n[c]||[],-1===ct(n,t)&&n[h](t))}}}function Fo(o,t,n){var e=function(){if(t){var n=t[To]||t;if(n.cfg&&(n.cfg===t||n.cfg[To]===n))return n}return null}();if(e)return e;var i,e=wo("dyncfg",!0),n=t&&!1!==n?t:function u(n){var e;return n&&(C(n)?(e=[])[I]=n[I]:wt(n)&&(e={}),e)?(V(n,function(n,t){e[n]=u(t)}),e):n}(t),r={uid:null,cfg:n,logger:o,notify:function(){i.notify()},set:function(n,t,e){try{n=jo(i,n,t,e)}catch(r){Ro(o,t,"Setting value",r)}return n[t]},setDf:function(e,n){return n&&V(n,function(n,t){Eo(r,e,n,t)}),e},watch:function(n){return t=i,x(r={fn:e=n,rm:function(){r.fn=null,e=t=null}},"toJSON",{v:function(){return"WatcherHandler"+(r.fn?"":"[X]")}}),t.use(r,e),r;var t,e,r},ref:function(n,t){return Lo(i,n,t,((n={})[0]=!0,n))[t]},rdOnly:function(n,t){return Lo(i,n,t,((n={})[1]=!0,n))[t]},blkVal:function(n,t){return Lo(i,n,t,((n={})[2]=!0,n))[t]},_block:function(e,r){i.use(null,function(n){var t=i.upd;try{z(r)||(i.upd=r),e(n)}finally{i.upd=t}})}};return x(r,"uid",{c:!1,e:!1,w:!1,v:e}),Ho(i=qo(r),n,"config","Creating"),r}function Vo(n,t,e,r){e=Fo(e,n||{},r);return t&&e.setDf(e.cfg,t),e}function Ko(n,t,e){var r,o,i=n[To]||n;return!i.cfg||i.cfg!==n&&i.cfg[To]!==i?(r=e,o=Nr+T(n),r?(r[Nt](o),r[At](2,108,o)):No(o),Vo(n,null,e)[Rt](t)):i[Rt](t)}var Xo="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Wo=null,$o="warnToConsole",Jo={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},Qo=((e={})[0]=null,e[1]="errorToConsole",e[2]=$o,e[3]="debugToConsole",e);function Go(n){return n?'"'+n[ee](/\"/g,d)+'"':d}function Zo(n,t){var e,r=typeof console!==pe?console:P(Jr);r&&(e="log",r[n]&&(e=n),F(r[e])&&r[e](t))}ni.dataType="MessageData";var Yo=ni;function ni(n,t,e,r){void 0===e&&(e=!1),this[Wt]=n,this[$t]=(e?"AI: ":"AI (Internal): ")+n;e=d,co()&&(e=ao().stringify(r)),n=(t?" message:"+Go(t):d)+(r?" props:"+Go(e):d);this[$t]+=n}function ti(n,t){return(n||{})[jt]||new ei(t)}ri.__ieDyn=1;var ei=ri;function ri(o){this.identifier="DiagnosticLogger",this.queue=[];var a,f,l,s,t,d=0,v={};k(ri,this,function(i){function u(n,t){var e,r;l<=d||(r=!0,e="AITR_"+t[Wt],v[e]?r=!1:v[e]=!0,r&&(n<=f&&(i.queue[h](t),d++,c(1===n?"error":"warn",t)),d===l&&(r=new Yo(23,e="Internal events throttle limit per PageView reached for this app.",!1),i.queue[h](r),1===n?i.errorToConsole(e):i[Nt](e))))}function c(n,t){var e,r=(e=(e=Wo)||!0===(o||{}).disableDbgExt?e:Wo||(r=P("Microsoft"),Wo=r?r.ApplicationInsights:Wo))?e.ChromeDbgExt:null;r&&r[Jt]&&r[Jt](n,t)}t=Ko(Vo(o||{},Jo,i).cfg,function(n){n=n.cfg;a=n.loggingLevelConsole,f=n.loggingLevelTelemetry,l=n.maxMessageLimit,s=n.enableDebug}),i.consoleLoggingLevel=function(){return a},i[At]=function(n,t,e,r,o){t=new Yo(t,e,o=void 0!==o&&o,r);if(s)throw T(t);e=Qo[n]||$o;z(t[$t])?c("throw"+(1===n?"Critical":"Warning"),t):(o?(r=+t[Wt],!v[r]&&n<=a&&(i[e](t[$t]),v[r]=!0)):n<=a&&i[e](t[$t]),u(n,t))},i.debugToConsole=function(n){Zo("debug",n),c("warning",n)},i[Nt]=function(n){Zo("warn",n),c("warning",n)},i.errorToConsole=function(n){Zo("error",n),c("error",n)},i.resetInternalMessageCount=function(){d=0,v={}},i.logInternalMessage=u,i[Vt]=function(n){t&&t.rm(),t=null}})}function oi(n){return n||new ei}function W(n,t,e,r,o,i){void 0===i&&(i=!1),oi(n)[At](t,e,r,o,i)}var ii="ParentContextKey",ui="ChildrenContextKey",ci=(ai.ParentContextKey="parent",ai.ChildrenContextKey="childEvts",ai);function ai(n,t,e){var r,o=this;o.start=ht(),o[qt]=n,o.isAsync=e,o[ce]=function(){return!1},F(t)&&x(o,"payload",{g:function(){return!r&&F(t)&&(r=t(),t=null),r}}),o[fe]=function(n){return n?(n===ai[ii]||n===ai[ui]?o:o.ctx||{})[n]:null},o[le]=function(n,t){n&&(n===ai[ii]?(o[n]||(o[ce]=function(){return!0}),o[n]=t):n===ai[ui]?o[n]=t:(o.ctx=o.ctx||{})[n]=t)},o.complete=function(){var n=0,t=o[fe](ai[ui]);if(C(t))for(var e=0;e<t[I];e++){var r=t[e];r&&(n+=r.time)}o.time=ht()-o.start,o.exTime=o.time-n,o.complete=function(){}}}var fi="CoreUtils.doPerf";function li(n,t,e,r,o){if(n)if(n=n[kr]?n[kr]():n){var i,u=void 0,c=n[fe](fi);try{if(u=n.create(t(),r,o))return c&&u[le]&&(u[le](ci[ii],c),c[fe]&&c[le]&&((i=c[fe](ci[ui]))||(i=[],c[le](ci[ui],i)),i[h](u))),n[le](fi,u),e(u)}catch(a){u&&u[le]&&u[le]("exception",a)}finally{u&&n.fire(u),n[le](fi,c)}}e()}function si(){for(var n,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],e=d,r=0;r<4;r++)e+=t[15&(n=mo())]+t[n>>4&15]+t[n>>8&15]+t[n>>12&15]+t[n>>16&15]+t[n>>20&15]+t[n>>24&15]+t[n>>28&15];var o=t[8+(3&mo())|0];return Bn(e,0,8)+Bn(e,9,4)+"4"+Bn(e,13,3)+o+Bn(e,16,3)+Bn(e,19,12)}var di=So("plugin");function vi(n){return di.get(n,"state",{},!0)}var gi="TelemetryPluginChain",hi="_hasRun",pi="_getTelCtx",yi=0;function mi(n,i,e,t){var r=null,o=[],u=(i=i||Vo({},null,e[jt]),null!==t&&(r=t?function(n,t,e){for(;n;){if(n[zt]()===e)return n;n=n[Zt]()}return Ci([e],t.config||{},t)}(n,e,t):n),{_next:function(){var n,t=r;return r=t?t[Zt]():null,t||(n=o)&&0<n[I]&&(K(n,function(n){try{n.func.call(n.self,n.args)}catch(t){W(e[jt],2,73,"Unexpected Exception during onComplete - "+T(t))}}),o=[]),t},ctx:{core:function(){return e},diagLog:function(){return ti(e,i.cfg)},getCfg:function(){return i.cfg},getExtCfg:function(n,t){var r=c(n,!0);return t&&V(t,function(n,t){var e;!q(r[n])||!(e=i.cfg[n])&&q(e)||(r[n]=e),Eo(i,r,n,t)}),i.setDf(r,t)},getConfig:function(n,t,e){void 0===e&&(e=!1);var r,n=c(n,!1),o=i.cfg;return!n||!n[t]&&q(n[t])?!o[t]&&q(o[t])||(r=o[t]):r=n[t],r||!q(r)?r:e},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(n){r=n},iterate:function(n){for(;t=u._next();){var t=t[zt]();t&&n(t)}},onComplete:function(n,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];n&&o[h]({func:n,self:z(t)?u.ctx:t,args:e})}}});function c(n,t){var e,r=null,o=i.cfg;return o&&n&&(e=o[Tr],o[Tr]=e=!e&&t?{}:e,(e=i.ref(o,Tr))&&(r=e[n],e[n]=r=!r&&t?{}:r,r=i.ref(e,n))),r}return u}function bi(n,t,e,r){var o=Vo(t),i=mi(n,o,e,r),u=i.ctx;return u[Ft]=function(n){var t=i._next();return t&&t[Pr](n,u),!t},u[Kt]=function(n,t){return bi((n=C(n=void 0===n?null:n)?Ci(n,o.cfg,e,t):n)||u[Zt](),o.cfg,e,t)},u}function Ci(n,t,e,r){var o,i=null,u=!r;return C(n)&&0<n[I]&&(o=null,K(n,function(n){(u=!u&&r===n||u)&&n&&F(n[Pr])&&(n=xi(n,t,e),i=i||n,o&&o._setNext(n),o=n)})),r&&!i?Ci([r],t,e):i}function xi(a,r,o){var f=null,i=F(a[Pr]),u=F(a[Yt]),l=a?a[Ht]+"-"+a[Ir]+"-"+yi++:"Unknown-0-"+yi++,c={getPlugin:function(){return a},getNext:function(){return f},processTelemetry:function(e,n){var t;s(n=n||(t=(t=a&&F(a[pi])?a[pi]():t)||bi(c,r,o)),function(n){if(!a||!i)return!1;var t=vi(a);return!t[Xt]&&!t[Er]&&(u&&a[Yt](f),a[Pr](e,n),!0)},"processTelemetry",function(){return{item:e}},!e.sync)||n[Ft](e)},unload:function(r,o){s(r,function(){var n,t,e=!1;return a&&(n=vi(a),t=a[S]||n[S],!a||t&&t!==r.core()||n[Xt]||(n[S]=null,n[Xt]=!0,n[Ut]=!1,a[Xt]&&!0===a[Xt](r,o)&&(e=!0))),e},"unload",function(){},o.isAsync)||r[Ft](o)},update:function(r,o){s(r,function(){var n,t,e=!1;return a&&(n=vi(a),t=a[S]||n[S],!a||t&&t!==r.core()||n[Xt]||a[Gt]&&!0===a[Gt](r,o)&&(e=!0)),e},"update",function(){},!1)||r[Ft](o)},_id:l,_setNext:function(n){f=n}};function s(e,r,o,n,t){var i=!1,u=a?a[Ht]:gi,c=(c=e[hi])||(e[hi]={});return e.setNext(f),a&&li(e[S](),function(){return u+":"+o},function(){c[l]=!0;try{var n=f?f._id:d;n&&(c[n]=!1),i=r(e)}catch(t){n=!f||c[f._id];n&&(i=!0),f&&n||W(e[Jt](),1,73,"Plugin ["+u+"] failed during "+o+" - "+T(t)+", run flags: "+T(c))}},n,t),i}return xn(c)}function _i(){var t=[];return{add:function(n){n&&t[h](n)},run:function(e,r){K(t,function(n){try{n(e,r)}catch(t){W(e[Jt](),2,73,"Unexpected error calling unload handler - "+T(t))}}),t=[]}}}function wi(){var r=[];return{run:function(e){var n=r;r=[],K(n,function(n){try{(n.rm||n.remove).call(n)}catch(t){W(e,2,73,"Unloading:"+T(t))}})},add:function(n){var t;n&&(t=r,!z(n=n)&&t&&(C(n)?ut(t.push,t,n):ot(n)||n!==y&&tn(n)&&F(n[tt(3)])?it(n,function(n){t.push(n)}):t.push(n)))}}}var Si="getPlugin",Di=((U={})[Tr]={isVal:Mr,v:{}},U),Z=(Oi.__ieDyn=1,Oi);function Oi(){var o,i,l,s,d,u=this;function t(n){var t,n=n=void 0===n?null:n;return n||(t=i||bi(null,{},u[S]),n=l&&l[Si]?t[Kt](null,l[Si]):t[Kt](null,l)),n}function a(n,t,e){Vo(n,Di,ti(t)),!e&&t&&(e=t.getProcessTelContext()[Zt]());var r=l;l&&l[Si]&&(r=l[Si]()),u[S]=t,i=bi(e,n,t,r)}function v(){o=!1,u[S]=null,l=i=null,d=wi(),s=_i()}v(),k(Oi,u,function(f){f[Lt]=function(n,t,e,r){a(n,t,r),o=!0},f[Xt]=function(n,t){var e,r,o,i,u=f[S];if(u&&(!n||u===n[S]()))return r=!1,o=n||function a(n,e,t){var r=Vo(e.config),o=mi(n,r,e,t),i=o.ctx;return i[Ft]=function(n){var t=o._next();return t&&t[Vt](i,n),!t},i[Kt]=function(n,t){return a((n=C(n=void 0===n?null:n)?Ci(n,r.cfg,e,t):n)||i[Zt](),e,t)},i}(null,u,l&&l[Si]?l[Si]():l),i=t||{reason:0,isAsync:!1},f[Qt]&&!0===f[Qt](o,i,c)?e=!0:c(),e;function c(){r||(r=!0,s.run(o,t),d.run(o[Jt]()),!0===e&&o[Ft](i),v())}},f[Gt]=function(n,t){var e,r,o,i=f[S];if(i&&(!n||i===n[S]()))return r=!1,o=n||function c(n,e,t){var r=Vo(e.config),o=mi(n,r,e,t).ctx;return o[Ft]=function(t){return o.iterate(function(n){F(n[Gt])&&n[Gt](o,t)})},o[Kt]=function(n,t){return c((n=C(n=void 0===n?null:n)?Ci(n,r.cfg,e,t):n)||o[Zt](),e,t)},o}(null,i,l&&l[Si]?l[Si]():l),f._doUpdate&&!0===f._doUpdate(o,t||{reason:0},u)?e=!0:u(),e;function u(){r||(r=!0,a(o.getCfg(),o.core(),o[Zt]()))}},Hr(f,"_addUnloadCb",function(){return s},"add"),Hr(f,"_addHook",function(){return d},"add"),x(f,"_unloadHooks",{g:function(){return d}})}),u[Jt]=function(n){return t(n)[Jt]()},u[Ut]=function(){return o},u.setInitialized=function(n){o=n},u[Yt]=function(n){l=n},u[Ft]=function(n,t){t?t[Ft](n):l&&F(l[Pr])&&l[Pr](n,null)},u._getTelCtx=t}function Ei(n,t){try{if(n&&""!==n){var e=ao().parse(n);if(e&&e[se]&&e[se]>=e.itemsAccepted&&e.itemsReceived-e.itemsAccepted===e.errors[I])return e}}catch(r){W(t,1,43,"Cannot parse the response. "+(r[qt]||T(r)),{response:n})}return null}var Ti="&NoResponseBody=true",Pi=(Ii.__ieDyn=1,Ii);function Ii(){var C,o,d,x,_,i,w,v,g,h,p,S,D,O,E=0;k(Ii,this,function(e,n){var y=!0;function c(n,t){W(d,2,26,"Failed to send telemetry.",{message:n}),b(t,400,{})}function m(n){c("No endpoint url is provided for the batch",n)}function b(n,t,e,r){try{n&&n(t,e,r)}catch(o){}}function u(n,t){var e=Qn();if(!n[de])return m(t),!0;t=n[de]+(D?Ti:""),n=n[ae],n=x?n:new Blob([n],{type:"text/plain;charset=UTF-8"});return e.sendBeacon(t,n)}function a(n,t,e){var r,o=n[ae];try{o&&(u(n,t)?b(t,200,{},""):(r=_&&_.beaconOnRetry)&&F(r)?r(n,t,u):(v&&v.sendPOST(n,t,!0),W(d,2,40,". Failed to send telemetry with Beacon API, retried with normal sender.")))}catch(i){x&&(o=d,r="Failed to send telemetry using sendBeacon API. Ex:"+T(i),oi(o)[Nt](r)),b(t,x?0:400,{},"")}}function f(e,r,n){var t,o,i,u=e[ve]||{},c=(!n&&C&&(t=gr(function(n,t){o=n,i=t})),x&&n&&e.disableXhrSync&&(n=!1),e[de]);if(!c)return m(r),void(o&&o(!1));c=c,a=y,n=n,l=e[ge],f=!0,void 0===n&&(n=!1),s=new XMLHttpRequest,f&&v(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",f),a&&v(s,Fr,a),s.open("POST",c,!n),a&&v(s,Fr,a),!n&&l&&v(s,"timeout",l);var a,f,l,s,d=s;function v(n,t,e){try{n[t]=e}catch(r){}}function g(n){var t=_&&_.xhrOnComplete;t&&F(t)?t(n,r,e):(t=Ur(n),b(r,n[ie],$r(n,x),t))}return x||d.setRequestHeader("Content-type","application/json"),K(Cn(u),function(n){d.setRequestHeader(n,u[n])}),d.onreadystatechange=function(){x||(g(d),4===d.readyState&&o&&o(!0))},d.onload=function(){x&&g(d)},d.onerror=function(n){b(r,x?d[ie]:400,$r(d,x),x?"":qr(d)),i&&i(n)},d.ontimeout=function(){b(r,x?d[ie]:500,$r(d,x),x?"":qr(d)),o&&o(!1)},d.send(e[ae]),t}function l(e,i,r){var n,o,u,t=e[de],c=e[ae],a=x?c:new Blob([c],{type:"application/json"}),f=new Headers,l=c[I],c=!1,s=!1,d=e[ve]||{},v=((a={method:"POST",body:a})[Xo]=!0,e.headers&&0<Cn(e.headers)[I]&&(K(Cn(d),function(n){f.append(n,d[n])}),a[ve]=f),w?a.credentials=w:y&&x&&(a.credentials="include"),r&&(a.keepalive=!0,E+=l,x?2===e._sendReason&&(c=!0,D&&(t+=Ti)):c=!0),new Request(t,a));try{v[Xo]=!0}catch(p){}if(!r&&C&&(n=gr(function(n,t){o=n,u=t})),!t)return m(i),void(o&&o(!1));function g(n){b(i,x?0:400,{},x?"":n)}function h(n,t,e){var r=n[ie],o=_.fetchOnComplete;o&&F(o)?o(n,i,e||"",t):b(i,r,{},e||"")}try{N(fetch(x?t:v,x?a:null),function(n){if(r&&(E-=l,l=0),!s)if(s=!0,n.rejected)g(n.reason&&n.reason[$t]),u&&u(n.reason);else{var t=n.value;try{x||t.ok?x&&!t.body?(h(t,null,""),o&&o(!0)):N(t.text(),function(n){h(t,e,n.value),o&&o(!0)}):(g(t.statusText),o&&o(!1))}catch(p){g(T(p)),u&&u(p)}}})}catch(p){s||(g(T(p)),u&&u(p))}return c&&!s&&(s=!0,b(i,200,{}),o&&o(!0)),x&&!s&&0<e[ge]&&O&&O.set(function(){s||(s=!0,b(i,500,{}),o&&o(!0))},e[ge]),n}function s(e,r,n){var t=Jn(),o=new XDomainRequest,i=e[ae],t=(o.onload=function(){var n=Ur(o),t=_&&_.xdrOnComplete;t&&F(t)?t(o,r,e):b(r,200,{},n)},o.onerror=function(){b(r,400,{},x?"":zr(o))},o.ontimeout=function(){b(r,500,{})},o.onprogress=function(){},t&&t.location&&t.location.protocol||""),u=e[de];if(u){if(!x&&u.lastIndexOf(t,0))return W(d,2,40,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void c("Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.",r);t=x?u:u[ee](/^(https?:)/,"");o.open("POST",t),e[ge]&&(o[ge]=e[ge]),o.send(i),x&&n?O&&O.set(function(){o.send(i)},0):o.send(i)}else m(r)}function r(){E=0,D=S=p=h=g=C=o=!1,O=v=w=i=_=x=d=null}r(),e[Lt]=function(n,t){d=t,o&&W(d,1,28,"Sender is already initialized"),e.SetConfig(n),o=!0},e._getDbgPlgTargets=function(){return[o,x,i,C]},e.SetConfig=function(n){try{var t;return _=n.senderOnCompleteCallBack||{},i=!!n.disableCredentials,w=n.fetchCredentials,x=!!n.isOneDs,C=!!n.enableSendPromise,g=!!n.disableXhr,h=!!n.disableBeacon,p=!!n.disableBeaconSync,O=n.timeWrapper,D=!!n.addNoResponse,S=!!n.disableFetchKeepAlive,v={sendPOST:f},x||(y=!1),i&&(t=typeof location===he&&location?location:P("location"))&&t.protocol&&"file:"===t.protocol[kt]()&&(y=!1),!0}catch(e){}return!1},e.getSyncFetchPayload=function(){return E},e.getSenderInst=function(n,t){if(n&&n[I]){for(var e=n,r=t,o=0,i=null,u=0;null==i&&u<e[I];)o=e[u],g||1!==o?2!==o||!function(n){var t=!1;try{var t=!!P("fetch"),e=P("Request");t&&n&&e&&(t=uo(e,"keepalive"))}catch(r){}return t}(r)||r&&S?3!==o||!(io=null!==io?io:!!Qn()&&!!Qn().sendBeacon)||(r?p:h)||(i=a):i=l:(oo=null===oo&&(oo=typeof XDomainRequest!==pe)&&fo()?oo&&!uo(P(to),"withCredentials"):oo)?i=s:fo()&&(i=f),u++;return i?{_transport:o,_isSync:r,sendPOST:i}:null}return null},e.getFallbackInst=function(){return v},e[Qt]=function(n,t){r()}})}var ki="attachEvent",Ni="addEventListener",Ai="detachEvent",Ri="removeEventListener",Bi="events",Mi=(wo("aiEvtPageHide"),wo("aiEvtPageShow"),/\.[\.]+/g),ji=/[\.]+$/,Li=1,Hi=So("events"),Ui=/^([^.]*)(?:\.(.+)|)/;function zi(n){return n&&n[ee]?n[ee](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,d):n}function qi(n,t){t&&(e=d,C(t)?(e=d,K(t,function(n){(n=zi(n))&&("."!==n[0]&&(n="."+n),e+=n)})):e=zi(t),e&&("."!==e[0]&&(e="."+e),n=(n||d)+e));var e,t=Ui.exec(n||d)||[];return{type:t[1],ns:(t[2]||d).replace(Mi,".").replace(ji,d)[te](".").sort().join(".")}}function Fi(n,t,e){n=Hi.get(n,Bi,{},e=void 0===e||e);return n[t]||(n[t]=[])}function Vi(n,t,e,r){n&&t&&t[re]&&(n[Ri]?n[Ri](t[re],e,r):n[Ai]&&n[Ai]("on"+t[re],e))}function Ki(n,t,e,r){for(var o=t[I];o--;){var i=t[o];!i||e.ns&&e.ns!==i[oe].ns||r&&!r(i)||(Vi(n,i[oe],i.handler,i.capture),t[Mt](o,1))}}function Xi(n,t){return t?qi("xx",C(t)?[n].concat(t):[n,t]).ns[te]("."):n}function Wi(n,t,e,r,o){void 0===o&&(o=!1);var i,u=!1;if(n)try{var c,a=qi(t,r),f=a,l=e,s=o,d=!1;(i=n)&&f&&f[re]&&l&&(i[Ni]?(i[Ni](f[re],l,s),d=!0):i[ki]&&(i[ki]("on"+f[re],l),d=!0)),(u=d)&&Hi.accept(n)&&(c={guid:Li++,evtName:a,handler:e,capture:o},Fi(n,a.type)[h](c))}catch(v){}return u}var G=r({Unknown:0,LocalStorage:1,SessionStorage:2,IndexDb:3}),e=r({Complete:1,Retry:2,Drop:3,Failure:4}),U=r({Success:1,Failure:2}),$i=r({LocalStorage:1,SessionStorage:2,IndexedDb:3}),Ji=r({Normal:1,Critical:2});function Qi(n,t){var e,r,o=void 0;if(void 0===o&&(o=!1),n)try{var i=qi(null,t),u=!1,c=n,a=function(n){return!(!i.ns&&null!==n.handler)&&(u=!0)};(e=i)[re]?Ki(c,Fi(c,e[re]),e,a):(V(r=Hi.get(c,Bi,{}),function(n,t){Ki(c,t,e,a)}),0===Cn(r)[I]&&Hi.kill(c,Bi)),u||Vi(n,i,null,o)}catch(f){}}var Gi="AppInsightsChannelPlugin",Zi="addEvent",$="push",J="length",Yi="clear",nu="getItems",tu="split",Q="initialize",eu="diagLog",ru="storageConfig",D="value",ou="rejected",iu="sendNextBatch",uu="getNextBatch",cu="removeEvents",au="data",fu="attempCnt",lu="state",su="teardown",du="isArr",vu="indexOf",gu="cancel",hu="processNext",pu="persistence",yu="onunloadFlush",mu="batchHandler",bu="refresh",Cu="criticalCnt",xu="isCompletelyIdle",_u="instrumentationKey",wu="notificationMgr",Su="toString",Du="charCodeAt",Ou="charAt",Eu="fromCharCode",Tu="getTime",Pu="dbHdl",Iu="isAvailable",ku="transaction",Nu="openCursor",Au="onerror",Ru="onsuccess",O="then",Bu="continue",Mu="EventsToDropPerTime",ju="maxCriticalEvtsDropCnt",Lu="supportsSyncRequests",Hu="removeItem",Uu="evts";function zu(n){try{var t=n.replace(/^https?:\/\/|^www\./,"").replace(/\?/,"/")[tu]("/");if(t&&0<t[J])return t[0]}catch(e){}return n}function qu(n){return 0<=n}var Fu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Vu(){return(new Date)[Tu]()+"."+Bn(si(),0,8)}function Ku(n){try{var t;if(n&&en(n)&&/\d+\./g.test(n))return t=n[tu]("."),parseInt(t[0])}catch(e){}return 0}var Xu="offlineBatchDrop";function Wu(n,t,e){if(n){var r,o=Cn(n);e&&o&&(r=(new Date)[Tu](),o=o.sort(function(n,t){try{return(Ku(n)||r)-(Ku(t)||r)}catch(e){}return-1}));for(var i=0;i<o[J];i++){var u=o[i];if(!t(n[u],u))break}}}function $u(n,t,e){n=n||{},t=n[t];if(t)try{t.apply(n,e)}catch(r){}}function Ju(n,t,e){n&&0<t&&$u(n,Xu,[t,e])}Gu.__ieDyn=1;var Qu=Gu;function Gu(r){k(Gu,this,function(n){n.base64ToArr=function(n){if(!n||!n[du])return n;try{var t=n[au];return t&&(n[au]=function(n){var t,e,r,o,i,u,c="",a=0;for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");a<n[J];)r=Fu[vu](n[Ou](a++)),t=(15&(o=Fu[vu](n[Ou](a++))))<<4|(i=Fu[vu](n[Ou](a++)))>>2,e=(3&i)<<6|(u=Fu[vu](n[Ou](a++))),c+=String[Eu](r<<2|o>>4),64!=i&&(c+=String[Eu](t)),64!=u&&(c+=String[Eu](e));var f=c[tu](",").map(function(n){return+(""+n)});return new Uint8Array(f)}(t)),n}catch(e){W(r,1,48,e&&F(e[Su])?e[Su]():"Error serializing object",null,!0)}return null},n.base64ToStr=function(n){if(!n||!n[du])return n;try{var t=n[au];return t&&(n[au]=function(n){for(var t,e,r,o="",i="",i=en(n)?n:n[Su](),u=0;u<i[J];)t=i[Du](u++),e=i[Du](u++),r=i[Du](u++),o=(o+=Fu[Ou](t>>2))+Fu[Ou]((3&t)<<4|e>>4),isNaN(e)?o+="==":o=(o+=Fu[Ou]((15&e)<<2|r>>6))+(isNaN(r)?"=":Fu[Ou](63&r));return""+o}(t)),n}catch(e){W(r,1,48,e&&F(e[Su])?e[Su]():"Error serializing object",null,!0)}return null}})}function Zu(n){var t,e=Vn()||{},r=null;try{(r=e[n])&&(t="__storage_test__",r.setItem(t,t),r[Hu](t))}catch(o){n=r,e=!1,o instanceof DOMException&&(22!==o.code&&"QuotaExceededError"!==o.name&&1014!==o.code&&"NS_ERROR_DOM_QUOTA_REACHED"!==o.name||n&&0!==n[J]&&(e=!0)),e||(r=null)}return r}nc.__ieDyn=1;var Yu=nc;function nc(n,t,y){k(nc,this,function(o){var i,u,c=null,a=5e6,f=null,l=null,s=null,d=null,v=null,g=null;function e(t,n){var e=[],r=h(l).db;return r&&Wu(r[Uu],function(n){return n&&(n[du]&&(n=f.base64ToArr(n)),e[$](n)),!t||!e||e[J]!=t},n),e}function h(n,t){void 0===t&&(t=!0);var e=null;if(c){var r=c.getItem(n);if(r)try{e=ao().parse(r)}catch(o){c[Hu](n)}t&&!e&&(e={evts:{},lastAccessTime:0})}return{key:n,db:e}}function p(n,t){void 0===t&&(t=!0);var e=n.db;e&&t&&(e.lastAccessTime=(new Date)[Tu]());try{var r=ao().stringify(e);if(r[J]>a)return!1;c&&c.setItem(n.key,r)}catch(o){return!1}return!0}o.id=t,c=Zu(n)||null,o._getDbgPlgTargets=function(){return[l,a,s]},o[Q]=function(n,t){if(!c)return!1;var e=n[ru],r=n.itemCtx,r=(f=new Qu(r[eu]()),u=zu(t||n.endpoint),!!e.autoClean),t=(g=n[wu],Ko(e,function(){a=e.maxStorageSizeInBytes||5e6,s=e.inStorageMaxTime||6048e5;var n=e[Mu];d=Mr(n)?n:10,v=e[ju]||2}));return y&&y.add(t),i=e.storageKeyPrefix||"AIOffline",l=i+"_1_"+u,r&&o.clean(),!0},o[Lu]=function(){return!0},o.getAllEvents=function(n){try{return c?e(n):void 0}catch(t){return w(t)}},o[uu]=function(){try{return c?e(1,!0):void 0}catch(n){return w(n)}},o[Zi]=function(n,t,e){try{for(var r=h(l),o=(t.id=t.id||Vu(),t[Cu]=t[Cu]||0,r.db[Uu]),i=t.id,u=(t&&t[du]&&(t=f.base64ToStr(t)),0);t;){if(o[i]=t,p(r))return u&&g&&Ju(g,u,2),t;delete o[i];var c=function(n,t,e){for(var r=[],o=0,i=0;o<=n&&i<e;){if(Wu(t,function(n,t){return n[Cu]===o&&(r[$](t),i++),i<e}),0<i){for(var u=0;u<r[J];u++)delete t[r[u]];return i}o++}return i}(v,o,d);if(u+=c,!c)return w(Error("Unable to free up event space"))}}catch(a){return w(a)}},o[cu]=function(n){try{var t=h(l,!1),e=t.db;if(e){var r=e[Uu];try{for(var o=0;o<n[J];++o)delete r[n[o].id];if(p(t))return n}catch(i){}n=function(n){var t=[],n=h(n,!1),e=n.db;if(e){e=e[Uu];try{Wu(e,function(n){return n&&t[$](n),1})}catch(r){}c&&c[Hu](n.key)}return t}(t.key)}return n}catch(i){return w(i)}},o[Yi]=function(){try{var t,e=[],n=h(l,!1),r=n.db;return r&&(Wu(t=r[Uu],function(n){return n&&(delete t[n.id],e[$](n)),1}),p(n)),e}catch(o){return w(o)}},o.clean=function(){var n=h(l,!1),t=n.db;if(t){t=t[Uu];try{return!function(n,t,e,r){var o=[],i=0,u=(new Date)[Tu]()+1-n;try{if(Wu(t,function(n,t){return Ku(t)<=u&&(o[$](t),i++),i<e}),0<i){for(var c=0;c<o[J];c++)delete t[o[c]];return r&&Ju(r,i,3),1}}catch(a){}return 0<i}(s,t,d,g)||p(n)}catch(e){}return!1}},o[su]=function(){try{var n=h(l,!1),t=n.db;t&&(t.lastAccessTime=0,p(n,!1))}catch(e){}}})}var tc=["indexedDB"],ec="result",rc="DBError: Unable to open database",oc="Database is not open",ic="DBError: Failed to delete the database",uc=[];function cc(r){for(var o=null,n=0;n<uc[J];n++)if((o=uc[n]).name===r)return o;return o={name:r,sch:Dr(X,"IndexedDbHelper["+r+"]"),dbHdl:[],add:function(n){o.dbHdl[$](n),E(r,"- dbOpened (add) -- hdls ["+o.dbHdl[J]+"]")},remove:function(n){for(var t=o[Pu],e=0;e<t[J];e++)if(t[e]===n){t.splice(e,1);break}E(r,"- dbClosed (remove) -- hdls ["+o.dbHdl[J]+"]")},isOpen:function(){return 0<o.dbHdl[J]},openHdl:function(){return 0<o.dbHdl[J]?o[Pu][0]:null}},uc[$](o),o}function ac(n,t,e,r){return cc(n).sch.queue(e,t,r)}function E(n,t){P("QUnit")&&console&&console.log("IndexedDbHelper ["+n+"] "+t)}function fc(t,e,r,o){return function(n){r(Error(e)),E(t,"["+o+"] event rejected")}}sc.__ieDyn=1;var lc=sc;function sc(n){var y=function(){var n=Vn()||{},t=null;if(n)try{for(var e=0;e<tc[J];e++)if((t=n[tc[e]])&&F(t.open))return t}catch(r){t=null}return t}()||null;k(sc,this,function(n){function l(e,r){var n=e.db||null,n=n&&n[ku](r,"readwrite");return n?(n.onabort=function(){},n[Au]=function(){},n.oncomplete=function(){E(e.dbName,"txn.oncomplete")},{db:e,store:n.objectStore(r),tx:n,tbl:r,openCursor:function(n,t){return p(e,r,n,t)},newTransaction:function(n){return h(e,r,n)}}):null}function h(n,t,e){if(!n||!n.db)return w(Error(oc));try{var r=e(l(n,t));return un(r)?r:dr(r)}catch(o){return w(o)}}function p(e,r,n,a){if(!e||!e.db)return w(Error(oc));var f=null;return n&&en(n)?f=new dc(n):n&&n.isMatch&&(f=n),X(function(o,i){var u=[],n=null,t=null,c=(f&&f.keyRange&&(t=f.keyRange()),l(e,r));(n=t?c.store[Nu](t):c.store[Nu]())[Au]=fc(c.db.dbName,"DBError: Failed to Open Cursor",i,"openCursor"),n[Ru]=function(n){var t=n.target[ec];if(t){var e={store:c,cursor:t,"continue":function(){t[Bu]()},done:function(){o(u)}},n=t[D];if(f&&!f.isMatch(n))e[Bu]();else if(a)try{switch(a(e,n,u)){case 2:o(u);break;case 1:break;default:e[Bu]()}}catch(r){i(r)}else u[$](n),e[Bu]()}else o(u)}})}n[Iu]=function(){return!!y},n.openDb=function(s,d,v,g){return ac(s,"openDb",function(l){return X(function(i,u){var c=!1;function a(n,t,e,r,o){var i={db:t,dbName:s,dbVersion:d,ctx:null,isNew:r,txn:e?e[ku]:null};return o||(i.openStore=function(n,t){return h(i,n,t)},i[Nu]=function(n,t,e){return p(i,n,t,e)}),i}function t(t,n){var e=cc(s),r=(e.add(t),t.onabort=function(n){E(s,"onabort -- closing the Db"),e.remove(t)},t[Au]=function(n){E(s,"onerror -- closing the Db"),e.remove(t)},t.onclose=function(n){E(s,"onclose -- closing the Db"),e.remove(t)},t.onversionchange=function(n){E(s,"onversionchange -- force closing the Db"),t.close(),e.remove(t)},null),r=a(0,r=0<e.dbHdl[J]?e[Pu][0]:r,n,c);try{Je(v(r),i,u)}catch(o){u(o)}}var n=cc(s);if(null==y)u(Error("No available storage factory"));else if(n.isOpen()){n=a(0,n.openHdl(),null,!1);Je(v(n),i,u)}else{var f=y.open(s,d);if(!f)throw Error("missing API");f.onblocked=function(n){E(s,"Db Open Blocked event ["+l+"] - "+(f.error||"")),u(Error(rc))},f[Au]=function(n){E(s,"Db Open Error event ["+l+"] - "+(f.error||"")),u(Error(rc))},f.onupgradeneeded=function(n){E(s,"Db Open Create/Upgrade needed event ["+l+"]");try{var t=n.target[ec]||f.result;if(!t)return E(s,"no db"),void u(Error(rc));var e=t,r=f,o=(E(s,"db upgrade called"),a(0,e,r,!0,!0));if(g)c=!0,N(g(o),function(n){if(n[ou])try{r[ku]&&r[ku].abort()}finally{u(n.reason)}else E(o.dbName,"on version change success"),o.txn||(o.txn=r[ku],E(o.dbName,"added open request"))});else try{r[ku]&&r[ku].abort(),r.result&&r.result.close()}finally{u(Error("DBError: Database upgrade required"))}}catch(i){fc(s,rc,u,l)(i)}},f[Ru]=function(n){E(s,"Db Open sucess ["+l+"]");n=n.target[ec];n?t(n,f):u(Error(rc))}}})})},n.closeDb=function(i){E(i,"close db"),ac(i,"closeDb",function(n){var t=cc(i),e=t[Pu],r=e[J];if(0<r){for(var o=0;o<r;o++)e[o].close();t[Pu]=[]}return 1})["catch"](function(n){})},n.deleteDb=function(i){return null!=y&&ac(i,"deleteDb",function(o){var n=cc(i),t=n[Pu],e=t[J];if(0<e){E(i,"Db is open ["+e+"] force closing");for(var r=0;r<e;r++)t[r].close();n[Pu]=[]}return X(function(e,r){setTimeout(function(){try{E(i,"["+o+"] starting");var n=y.deleteDatabase(i);n[Au]=function(n){r(Error(ic))},n.onblocked=function(n){r(Error(ic))},n.onupgradeneeded=function(n){r(Error(ic))},n[Ru]=function(n){E(i,"["+o+"] complete"),e(!0)},E(i,"["+o+"] started")}catch(t){r(Error(ic+" - "+t))}},0)})})},n.getDbDetails=function(o){return ac(o,"getDbDetails",function(n){return null!=y&&y.databases?X(function(e,r){y.databases()[O](function(n){for(var t=0;t<n[J];t++)if(n[t].name===o)return void e(n[t]);r(Error("DBError: Database does not exist"))},r)}):w(Error("DBError: Feature not supported"))},2e3)}})}vc.__ieDyn=1;var dc=vc;function vc(n){var c=[],a=null;k(vc,this,function(u){u.keyRange=function(){return a},u.parseQuery=function(n){if(c=[],n)for(var t=n[tu](";"),e=0;e<t[J];e++){var r,o=t[e],i=o[vu]("=");-1!==i&&(r=o.substring(0,i),i=o.substring(i+1),0===r[vu]("#")&&(r=r.substring(1),a=a||IDBKeyRange.bound(i,i+"￿")),u.startsWith(r,i))}},u.startsWith=function(n,t){c[$]({name:n,value:t,type:0})},u.contains=function(n,t){c[$]({name:n,value:t,type:1})},u.isMatch=function(n){if(!c||0===c[J])return!0;if(!n)return!1;for(var t=0;t<c[J];t++){var e=c[t],r=n[e.name];if(r)if(0===e.type){if(r.indexOf(e[D]))return!1}else if(1===e.type&&!~r.indexOf(e[D]))return!1}return!0},n&&u.parseQuery(n)})}var gc="DBError: Unable to add event",hc="Evts";function pc(){return(new Date)[Tu]()}function yc(n){for(var t=[],e=0;e<n[J];e++){var r=n[e];r&&r.evt&&t[$](r.evt)}return t}function mc(t){return function(n){return t[Bu]()}}function bc(n,t,r){return n.openCursor(hc,t,function(n,t,e){return e[$](t),r&&e&&e[J]==r?2:0})}function Cc(n,t,r){return n.openCursor(hc,t,function(n,t,e){return r(t)?(e[$](t),(e=(t=n).cursor["delete"]())[Au]=mc(t),e[Ru]=mc(t),1):0})}_c.__ieDyn=1;var xc=_c;function _c(n,y){k(_c,this,function(o){var i,u,c=null,a=null,f="Unknown",l=null,s=null,d=null,v=null,g=null,h=null;function p(o){return c.openDb(a,1,function(r){return X(function(n,t){var e={iKey:f,id:s,storageId:l};r.ctx=e,Je(o(r),n,t)})},function(o){return X(function(n,t){try{(e=o.db).objectStoreNames.contains(hc)||e.createObjectStore(hc,{keyPath:"id"}).createIndex("criticalCnt","criticalCnt",{unique:!1})}catch(r){t(r)}var e;n()})})}o.id=n,o[Q]=function(n){var t=n.itemCtx[eu]();if(!(c=new lc(t))[Iu]())return c=null,!1;var e,r=n.itemCtx.getCfg(),r=n.itemCtx.getCfg()[_u]||r[_u];return en(r)?(f=r,e=n[ru],l=o.id||n.id||(r=si(),Rn(r,0,8)+"-"+Rn(r,8,12)+"-"+Rn(r,12,16)+"-"+Rn(r,16,20)+"-"+Rn(r,20)),h=n[wu],s=zu(n.endpoint),i=!!e.autoClean,u=e.storageKeyPrefix||"AIOffline",a=u+"_1_"+s,r=Ko(e,function(){d=e.inStorageMaxTime||6048e5;var n=e[Mu];v=Mr(n)?n:10,g=e[ju]||2}),y&&y.add(r),a&&N(o.clean(!i),function(n){p(function(n){return!0})[O](function(n){},function(n){t.warnToConsole("IndexedDbProvider failed to initialize - "+(n||"<unknown>")),c=null})}),!0):void 0},o._getDbgPlgTargets=function(){return[a,s,d,c]},o[Lu]=function(){return!1},o.getAllEvents=function(r){return null!=c&&c[Iu]()?p(function(e){return X(function(t,n){bc(e,null,r)[O](function(n){t(yc(n))},n)})}):[]},o[uu]=function(){return null!=c&&c[Iu]()?p(function(e){return X(function(t,n){bc(e,null,1)[O](function(n){t(yc(n))},n)})}):[]},o[Zi]=function(t,e,n){return null!=c&&c[Iu]()?(e.id=e.id||Vu(),e[Cu]=e[Cu]||0,p(function(n){return function s(a,f,l){return X(function(o,i){a.openStore(hc,function(n){n=n.store.put(f);n[Ru]=function(n){o(f.evt)},n[Au]=function(n){function t(n){0===n&&i(Error(gc)),s(a,f,!1)[O](function(n){o(f.evt)},function(){i(Error(gc))})}var e,u,r,c;l?(e=function(n){0<n?t(n):i(Error(gc))},u=a,r=g,c=v,X(function(n,t){var o=0;function i(){n(o)}u.openCursor(hc,null,function(n,t,e){return t.evt[Cu]<=r&&(function(n,t){for(var e=0;e<n[J];e++)if(t.tm<n[e].tm)return n.splice(e,0,t);n[$](t)}(e,t),e[J]>c&&e.splice(e[J]-1,1)),0})[O](function(r){0===r[J]?i():u.openStore(hc,function(n){for(var t=[],e=0;e<r[J];e++)t[$](function(e,r){return X(function(t){var n=e.store["delete"](r.key);n[Ru]=function(n){o++,t()},n[Au]=function(n){t()}})}(n,r[e]));return sr(t)[O](i,i)})},function(){n(0)})})[O](function(n){h&&n&&Ju(h,n,2),e(n)},function(n){e(0)})):i(Error(gc))}})["catch"](function(n){i(n)})})}(n,{id:t||e.id,evt:e,tm:pc(),v:1},!0)})):e},o[cu]=function(o){if(null==c||!c[Iu]())return[];var i=[];return X(function(t,n){p(function(n){return n.openCursor(hc,null,function(n,t,e){var r;return-1!==function(n,t){for(var e=t[J],r=0;r<e;r++)if(n===t[r].id)return r;return-1}(t.id,o)?((r=n.cursor["delete"]())[Au]=mc(n),r[Ru]=function(){i[$](t.evt),n[Bu]()},1):0})})[O](function(){t(i)},function(n){t(i)})})},o[Yi]=function(n){return null==c||!c[Iu]()||n?[]:X(function(t,n){p(function(n){return Cc(n,null,function(n){return 1})})[O](function(n){t(yc(n))},function(n){t([])})})},o.clean=function(n){return!(null==c||!c[Iu]()||n)&&X(function(t,n){p(function(n){return n.isNew?[]:(e=n,r=d,X(function(t,n){return Cc(e,null,function(n){return!n||!n.evt||Ku(n.id)<=pc()+1-r})[O](function(n){t(n)},n)}));var e,r})[O](function(n){n=n&&n[J];h&&n&&Ju(h,n,3),t(n&&0<n)},function(n){t(!1)})})},o[su]=function(){c&&c.closeDb(a)}})}var wc="No provider is available",Sc=(Dc.__ieDyn=1,Dc);function Dc(i,c){k(Dc,this,function(n){var o,d,v,g,h,p;function e(){o=!1,p=h=v=d=null}function u(n,t){n=new Yu(n,undefined,c);return n[Q](t)?n:null}e(),n[Q]=function(n){try{var t,e;o||(i||n.itemCtx[eu](),g=n.itemCtx,d=function(n){for(var t,e,r=n[ru].providers,o=null,i=0;!o&&i<r[J]&&i<2;)switch(r[i++]){case 1:o=u("localStorage",n),v=o;break;case 2:o=u("sessionStorage",n),v=o;break;case 3:t=n,e=void 0,o=e=(e=new xc(undefined,c))[Q](t)?e:null,v=u("localStorage",n)}return o}(n),e=(t=n[ru]||{}).maxRetry,h=q(e)?2:e,p=(t.senderCfg||{}).retryCodes,d&&(o=!0))}catch(r){o=!1}return o},n._getDbgPlgTargets=function(){return[d,o,v]},n.storeBatch=function(e,c,n){var r=n?v:d;return gr(function(i,u){var n,t;return r||u(Error(wc)),(t=(n=e)[au])&&(t=rn(t),n[du]=t),N(r[Zi](n.id,n,g),function(n){try{var t=n[D]||n.reason||[],e=2,r={state:e=n[ou]?e:1,item:t};try{c&&c(r)}catch(o){}i(r)}catch(o){u(o)}})})},n[iu]=function(i,l,s,n){return gr(function(e,c){function a(n){try{i&&i(n)}catch(t){}e(n)}d||v||c(Error(wc));var t=d;try{if(!v)return r();N(v[uu](),function(n){if(n&&!n[ou]){n=n[D];if(n&&n[J])return t=v,o(n)}return r()})}catch(f){c(f)}function r(){return N(t[uu](),function(n){try{return!n||n[ou]?void a({state:4,data:n.reason}):o(n[D]||[])}catch(f){c(f)}})}function o(i){var u={state:1,data:null};if(i[J])return N(t[cu](i),function(n){if(n&&!n.rejected&&n[D]){for(var t=n[D],e=function(n){try{var o=i[n];return u[au]=o,s&&s.sendPOST?(o[fu]++,{value:N((0,s.sendPOST)(o,function(n,t,e){var r;200==n?u[lu]=1:(n=n,(r=o)&&r[au]&&(r[fu]=r[fu]||0,r[fu]<=h)&&(q(p)?401===n||403===n||408===n||429===n||500===n||502===n||503===n||504===n:p[J]&&-1<p[vu](n))?(u[lu]=2,v&&v[Zi](o.id,o,g)):u[lu]=3),a(u)},l),function(n){})}):(u[lu]=3,a(u),{value:void 0})}catch(f){c(f)}},r=0;r<t[J];r++){var o=e(r);if("object"==typeof o)return o.value}return u[lu]=1,void a(u)}u[lu]=4,u[au]=n.reason,a(u)});a(u)}})},n.hasStoredBatch=function(i){return gr(function(r,o){return d||o(Error(wc)),N(d[uu](),function(n){try{var t=0<(n[D]||[])[J];i&&i(t),r(t)}catch(e){o(e)}})})},n.cleanStorage=function(u){return gr(function(o,i){return d||i(Error(wc)),N(d[Yi](),function(n){try{var t=0,e={batchCnt:t=n[ou]?t:(n[D]||[])[J]};u&&u(e),o(e)}catch(r){i(r)}})})},n[su]=function(n,t){d&&d[su](),e()}})}Ec.__ieDyn=1;var Oc=Ec;function Ec(r,o,n,i){var u=n?[].concat(n):[];k(Ec,this,function(t){t.endpoint=function(){return o},t[Zi]=function(n){return!(!q(i)&&t.count()>=i||(u[$](n),0))},t.count=function(){return u[J]},t[Yi]=function(){u=[]},t[nu]=function(){return u.slice(0)},t[tu]=function(n,t){var e;return n<u[J]&&(e=u[J]-n,q(t)||(e=t<e?t:e),e=u.splice(n,e)),new Ec(r,o,e,i)},t.createNew=function(n,t,e){return new Ec(r,n,t,e)}})}var Tc="PostChannel",Pc=(Ic.__ieDyn=1,Ic);function Ic(){var r,f,l,o,s,d,v,g,h,p,y;k(Ic,this,function(n,t){function c(n,t,e,r){try{n&&n(t,e,r)}catch(o){}}function a(n,t,e,r){c(n,206==t&&!h||204==t&&h?200:t,e,r)}function e(){n._appId=null,o=r=!1,p=g=d=null}e(),n.pause=function(){r=!0},n.resume=function(){r=r&&!1},n.getXhrInst=function(n){return v},n[Q]=function(n,i,t,e,u,r){s=e||i.logger,o&&W(s,1,28,"Sender is already initialized"),d=i;e=Ko(n,function(n){var t,n=bi(null,n.cfg,i),e=n.getExtCfg("OfflineChannel"),r=(g=u||Gi,n.getExtCfg(g,{})),e=e.senderCfg||{},n=(y=null,g==Tc&&(h=!0,(n=n.getExtCfg(Tc))&&n.fetchCredentials&&(y=n.fetchCredentials)),l=e.alwaysUseXhrOverride,f=!(!1===r.enableSendPromise),e.httpXHROverride||r.httpXHROverride),n=n&&n.sendPOST?n:null,o={enableSendPromise:f,isOneDs:h,disableCredentials:!n&&h,fetchCredentials:y,senderOnCompleteCallBack:{xdrOnComplete:function(n,t){var e,r=Ur(n);n&&(r+""=="200"||""===r)||(e=Ei(r,s))&&e.itemsAccepted?c(t,200,{},r):(e=zr(n),r=t,W(s,2,26,"Failed to send telemetry.",{message:e}),c(r,400,{}))},fetchOnComplete:function(n,t,e){return a(t,n.status,{},e)},xhrOnComplete:function(n,t){var e=Ur(n);return a(t,n.status,{},e)}}},o=(p?p.SetConfig(o):(p=new Pi)[Q](o,s),null),r=(t=[1,2,3],(e=e.transports||r.transports||[])&&(on(e)?t=[e].concat(t):C(e)&&(t=e.concat(t))),t),o=p.getSenderInst(r,!1),e=p.getFallbackInst();v=(o=l?n:o||n||e)||e});r&&r.add(e)},n[xu]=function(){var n=0;try{var t=d.getPlugin(g).plugin;if(t&&F(t[xu])&&!t[xu]())return!1;p&&(n=p.getSyncFetchPayload())}catch(e){}return!r&&0===n},n._doTeardown=function(n,t){e()}})}var kc,Nc,Ac=[Ji.Critical,Ji.Normal],Rc=undefined,Bc=function Lc(n){return yn&&V(n,function(n,t){(C(t)||rn(t))&&Lc(t)}),xn(n)}({maxStorageSizeInBytes:{isVal:qu,v:5e6},storageKey:Rc,minPersistenceLevel:{isVal:function(n){return on(n)&&0<=n&&n<=Ji.Critical},v:Ji.Normal},providers:[1,3],indexedDbName:Rc,maxStorageItems:{isVal:qu,v:Rc},inMemoMaxTime:{isVal:qu,v:15e3},maxRetry:{isVal:qu,v:1},maxBatchsize:{isVal:qu,v:63e3},maxSentBatchInterval:{isVal:qu,v:15e3},primaryOnlineChannelId:[Gi,"PostChannel"],overrideInstrumentationKey:Rc,senderCfg:{},splitEvts:!1}),Z=(r=kc=Z,be(Nc=jc,r),Nc[ye]=(Mc[ye]=r[ye],new Mc),jc.__ieDyn=1,jc);function Mc(){this.constructor=Nc}function jc(){var n=kc.call(this)||this;return n.identifier="OfflineChannel",n.priority=1e3,n.version="0.4.0-nightlybeta.2504-03",k(jc,n,function(d,l){var c,v,u,g,a,t,h,p,y,m,b,C,x,_,w,S,e,D,O,E,T,P,I,r,k,N;function o(){v=c=!1,u=new Pc,C=Rc,k=I=!1,N=r=T=E=O=D=S=_=x=w=b=m=y=p=a=g=null}function A(){t?t.enabled=!0:(t=Tt(function(){f(),n()&&t&&t[bu](),R()},h)).unref()}function f(f,l){try{var s=!1;K(Ac,function(n){var r,o,i,u,t,e=N[n],c=e,a=c&&c[nu]();a&&a[J]&&(k&&l&&l!==n?s=s||!!a[J]:(r=[],i=-1,u=o=0,K(a,function(n,t){i=t;var e=function(n){try{if(n)return D&&D.serialize(n,C)}catch(t){}return null}(n);o+=e[J],m<o||(n[pu]==Ji.Critical&&u++,i=t,r[$](e))}),r[J]&&(t=a.slice(0,i+1),i+1<a[J]&&(s=!0),N[n]=e.createNew(y,at(c[nu](),i+1),T),a=null,D&&D.createOneDSPayload?(a=D.createOneDSPayload(t))&&(a[Cu]=u):a=function(n,t){try{if(!D)return null;var e=t||0,r=D.batch(n),o=D.createPayload&&D.createPayload(r);if(o)return o[Cu]=e,o}catch(i){}return null}(r,u),a&&g&&g[mu]&&B("storeBatch",g[mu].storeBatch(a,function(n){if(!n||!n[lu])return null;2==n[lu]?f?L(t,It.NonRetryableStatus):(K(t,function(n){M(n)}),A()):t&&t[J]&&j("offlineEventsStored",[t])},f)))))}),s||t&&t[gu]()}catch(n){}}function R(){var n,t=a&&a.isOnline();b?t&&(b.enabled=!0,b[bu]()):(n=x?Nn(0,x-ht()):0,n=Nn(_,n),(b=Tt(function(){t?F(u[xu])&&!u[xu]()?b&&b[bu]():g&&g[mu]&&B("sendNextBatch",g.batchHandler[iu](function(n){var t=n&&n[lu],n=(1!==t&&w++,n&&n[au]);1===t&&n&&(n&&n[au]&&j("offlineBatchSent",[n]),b&&b[bu]()),3===t&&Ju(P,1,1)},!1,S)):b&&b[gu]()},n)).unref())}function i(){t&&t[gu](),b&&b[gu](),b=t=null}function B(n,t){e&&e.queue(function(){return t},n)["catch"](function(n){})}function H(n,t,e,r){n&&(n.extensionConfig=n.extensionConfig||{}),!r&&t&&(r=t.getProcessTelContext().getNext());var o=null,i=d._getTelCtx().getNext();return bi(r,n,t,o=i?i.getPlugin():o)}function U(n,t){return r||(n=bi(null,n,t).getExtCfg(d.identifier,Bc).primaryOnlineChannelId)&&n[J]&&K(n,function(n){n=t.getPlugin(n),n=n&&n.plugin;n&&(r=n)}),r}function n(){var t=!1;return V(N,function(n){n=N[n];if(n&&n.count())return t=!0,-1}),t}function M(n){var t=Ji.Normal;return k&&n[pu]&&(t=n[pu]),N[t][Zi](n)}function j(n,t){$u(P,n,t)}function L(n,t){n&&n[J]&&j("eventsDiscarded",[n,t])}o(),d[Q]=function(r,o,n,i){c||(l[Q](r,o,n),c=!0,p=d[eu](),n=Xi(wo("OfflineSender"),o.evtNamespace&&o.evtNamespace()),a=function(n){var t,e=$n(),r=Qn(),o=!1,i=[],u=1,c=(!r||q(r.onLine)||r.onLine||(u=2),0),a=s(),f=Xi(wo("OfflineListener"),n);try{l(Jn())&&(o=!0),e&&(t=e.body||e).ononline&&l(t)&&(o=!0)}catch(h){o=!1}function l(n){var t=!1;return n&&(t=Wi(n,"online",v,f))&&Wi(n,"offline",g,f),t}function s(){return 2!==c&&2!==u}function d(){var n=s();a!==n&&(a=n,K(i,function(n){var t={isOnline:a,rState:u,uState:c};try{n(t)}catch(h){}}))}function v(){u=1,d()}function g(){u=2,d()}return{isOnline:function(){return a},isListening:function(){return o},unload:function(){var n=Jn();n&&o&&(Qi(n,f),e&&!z((n=e.body||e).ononline)&&Qi(n,f),o=!1)},addListener:function(t){return i.push(t),{rm:function(){var n=i.indexOf(t);if(-1<n)return i.splice(n,1)}}},setOnlineState:function(n){c=n,d()}}}(n),e=Dr(X,"offline channel"),P=o.getNotifyMgr()),Tt(function(){try{var n,t=U(r,o);!I&&t&&t.isInitialized()&&(I=!0,f=r,l=o,s=i,d._addHook(Ko(f,function(n){if(en(f[_u])&&en(f.endpointUrl)){v&&d.resume();var n=bi(null,n.cfg,l),t=n.getExtCfg(d.identifier,Bc),e=U(f,l);if(e.isInitialized()&&F(e.getOfflineSupport)){D=e.getOfflineSupport(),e=F(D&&D.getUrl)&&D.getUrl(),E=t.overrideInstrumentationKey;var r=g,o=e||f.endpointUrl||y;if(o!==y){var e=H(f,l,0,s),i={itemCtx:e,storageConfig:t,id:d.id,endpoint:o,notificationMgr:P},u=g&&g[mu];try{u&&u[su]()}catch(a){}var u=new Sc(d[eu](),d._unloadHooks),c=(u[Q](i),r={iKey:f[_u],url:o,minPersistenceCacheLevel:t.minPersistenceLevel,coreRootCtx:e,providerContext:i,batchHandler:u},T=t.eventsLimitInMem,N=N||{},{}),e=(K(Ac,function(n){var t,e,r=null;N&&N[n]&&(e=(t=N[n])&&t[nu]())&&e[J]&&(r=at(e),t&&t[Yi]()),c[n]=new Oc(d[eu](),o,r,T)}),N=c,h=t.inMemoMaxTime,n.getExtCfg(O,{})||{}),i=(C=e.convertUndefined,void(y=o)),e=(void 0===i&&(i=1),n=w<=1?10:(u=_t((Math.pow(2,w)-1)/2*Math.random()*10)+1,Nn(kn(u*=i,3600),10)),ht()+1e3*n);x=e,_=t.maxSentBatchInterval,m=t.maxBatchsize,k=t.splitEvts}g=r,y=o}}else d.pause()})),n=H(r,o,0,i),u[Q](r,o,n,p,O,d._unloadHooks),S=u.getXhrInst(),a.addListener(function(n){n.isOnline?R():b&&b[gu]()}),R())}catch(e){}var f,l,s},0)},d.processTelemetry=function(n,t){try{var e=a.isOnline();if(t=t||d._getTelCtx(t),e||!D||!y)return void d[hu](n,t);if(c&&!v){var r=!0;if(!(r=F(D.shouldProcess)?D.shouldProcess(n):r))return void d[hu](n,t);var o=n;return o[pu]=o[pu]||o.baseData&&o.baseData[pu]||Ji.Normal,i=g,void(o[pu]<i.minPersistenceCacheLevel||!N?L([o],It.InvalidEvent):(E&&(o.iKey=E),M(o)||(f(!1,o[pu]),M(o)||(L([n],It.QueueFull),W(p,2,105,"Maximum offline in-memory buffer size reached",!0))),A()))}}catch(u){}var i;d[hu](n,t)},d.pause=function(){v=!0,i(),w=0,x=null},d.resume=function(){v=!1,i(),A(),R()},d[yu]=function(){if(!v)for(;n();)f(!0)},d.flush=function(n,t,e){return d[yu]()},d.getOfflineListener=function(){return a},d[iu]=function(){return D&&R()},d._doTeardown=function(n,t){d[yu](),a&&(e=a)&&e[Vt]&&e[Vt](!1);var e=g&&g[mu];e&&e[su](),i(),o()},d._getDbgPlgTargets=function(){return[g,N,S,t,b]}}),n}n.BatchSendStatus=e,n.BatchStoreStatus=U,n.InMemoryBatch=Oc,n.IndexedDbProvider=xc,n.OfflineBatchHandler=Sc,n.OfflineChannel=Z,n.Sender=Pc,n.StorageProviders=$i,n.StorageType=G,n.WebStorageProvider=Yu});
5
+ !function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((n="undefined"!=typeof globalThis?globalThis:n||self).Microsoft=n.Microsoft||{},n.Microsoft.ApplicationInsights=n.Microsoft.ApplicationInsights||{}))}(this,function(n){"use strict";function t(n,t){return n||t}function e(n,t){return n[t]}var p=undefined,y=null,a="",f="function",l="object",s="prototype",v="__proto__",O="undefined",E="constructor",A="Symbol",R="length",B="name",m="call",M="toString",o=t(Object),j=e(o,s),L=t(String),H=e(L,s),r=t(Math),i=t(Array),u=e(i,s),z=e(u,"slice"),G="_polyfill",Z="__nw21$polytype__";function b(n,t){try{return{v:n.apply(this,t)}}catch(e){return{e:e}}}function Y(t){return function(n){return typeof n===t}}function U(n){return typeof n===O||n===O}function F(n){return n===y||U(n)}function nn(n){return n===y||n===p}function tn(n){return!!n||n!==p}var en=Y("string"),q=Y(f);function rn(n){return!(!n&&F(n)||!n||typeof n!==l)}var C=e(i,"isArray"),on=Y("number");function un(n){return n&&n.then&&q(n.then)}var cn=t(L),an="[object Error]";function P(n,t){var e=a,r=j[M][m](n);r===an&&(n={stack:cn(n.stack),message:cn(n.message),name:cn(n.name)});try{e=((e=JSON.stringify(n,y,t?"number"==typeof t?t:4:p))?e.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):y)||cn(n)}catch(o){e=" - "+P(o,t)}return r+": "+e}function fn(n){throw new TypeError(n)}function ln(n){nn(n)&&fn("Cannot convert undefined or null to object")}function sn(){return p}var dn=t(e(o,"getOwnPropertyDescriptor"),sn);function g(n,t){return!!n&&j.hasOwnProperty[m](n,t)}function vn(n,t){return ln(n),g(n,t)||!!dn(n,t)}var gn=t(e(o,"hasOwn"),vn);function V(n,t,e){if(n&&(rn(n)||q(n)))for(var r in n)if(gn(n,r)&&-1===t[m](e||n,r,n[r]))break}function K(n,t,e){if(n)for(var r=n[R]>>>0,o=0;o<r&&!(o in n&&-1===t[m](e||n,n[o],o,n));o++);}i=hn;function hn(r,n,o){var i=n?n[r]:y;return function(n){var t,e=(n?n[r]:y)||i;if(e||o)return t=arguments,(e||o).apply(n,e?z[m](t,1):t);fn('"'+cn(r)+'" not defined for '+P(n))}}function pn(t){return function(n){return n[t]}}var yn={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"},x=e(o,"defineProperty"),mn=e(o,"defineProperties");function _(n,t,e){return x(n,t,(r=e,(o={})[yn.c]=!0,o[yn.e]=!0,r.l&&(o.get=function(){return r.l.v},(n=dn(r.l,"v"))&&n.set&&(o.set=function(n){r.l.v=n})),V(r,function(n,t){o[yn[n]]=t===p?o[yn[n]]:t}),o));var r,o}function bn(n,e,r,t){var o={};return V(n,function(n,t){Cn(o,n,e?t:n),Cn(o,t,r?t:n)}),t?t(o):o}function Cn(n,t,e){x(n,t,{value:e,enumerable:!0,writable:!1})}function xn(){return!1}var _n=t(e(o,"isFrozen"),xn),L=e(o,"freeze");function wn(n){return n}function Sn(n){return ln(n),n[v]||y}var Dn=e(o,"keys"),On=t(L,wn),En=t(e(o,"getPrototypeOf"),Sn);function Pn(n){return bn(n,0,0,On)}var Tn,In=Pn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),kn="__tsUtils$gblCfg";function Nn(){var n;return(n=(n=(n=typeof globalThis!==O?globalThis:n)||typeof self===O?n:self)||typeof window===O?n:window)||typeof global===O?n:global}function An(){var n;return Tn||(n=b(Nn).v||{},Tn=n[kn]=n[kn]||{}),Tn}var Rn=e(r,"min"),Bn=e(r,"max"),Mn=i("slice",H),jn=i("substring",H),Ln=hn("substr",H,Hn);function Hn(n,t,e){return ln(n),e<0?a:((t=t||0)<0&&(t=Bn(t+n[R],0)),U(e)?Mn(n,t):Mn(n,t,t+e))}var c,zn=t(e(o,"create"),Un);function Un(n,t){var e;function r(){}return e=nn(n)?{}:((e=typeof n)!==l&&e!=f&&fn("Prototype must be an Object or function: "+P(n)),r[s]=n,b(function(){r[v]=n}),new r),t&&b(mn,[e,t]),e}function Fn(){return(Date.now||qn)()}function qn(){return(new Date).getTime()}function Vn(){c=An()}function Kn(t){var e={};return c||Vn(),e.b=c.lzy,x(e,"v",{configurable:!0,get:function(){var n=t();return c.lzy||x(e,"v",{value:n}),e.b=c.lzy,n}}),e}var Xn,$n,Wn=e(r,"random"),Jn=Kn(function(){for(var n=Fn().toString(36).slice(2);n.length<16;)n+=Wn().toString(36).slice(2);return n.substring(0,16)}),Qn="$nw21sym",Gn=0;function Zn(n){var t="_"+Gn+++"_"+Jn.v,e=A+"("+n+")";function r(n,t){_(i,n,{v:t,e:!1,w:!1})}var o,i=zn(null);return r("description",cn(n)),r(M,function(){return e+Qn+t}),r("valueOf",function(){return i}),r("v",e),r("_uid",t),(o=i)&&(b(function(){o[G]=!0,o[Z]="symbol"}),b(_,[o,G,{v:!0,w:!1,e:!1}]),b(_,[o,Z,{v:"symbol",w:!1,e:!1}])),o}function Yn(n){return x({toJSON:function(){return n}},"v",{value:n})}var nt,tt="window";function et(n,t){var e;return function(){return c||Vn(),(e=e&&!c.lzy?e:Yn(b(n,t).v)).v}}function rt(n){return c||Vn(),(nt=nt&&!1!==n&&!c.lzy?nt:Yn(b(Nn).v||y)).v}function T(n,t){t=nt&&!1!==t?nt.v:rt(t);if(t&&t[n])return t[n];if(n===tt)try{return window}catch(e){}return y}var ot,it,ut,ct=et(T,["document"]),at=et(T,[tt]),ft=et(T,["navigator"]),lt=et(function(){return!!b(function(){return process&&(process.versions||{}).node}).v});function st(){return ot=Yn(b(T,[A]).v)}function dt(n){var t=(c.lzy?0:ot)||st();return t.v?t.v[n]:p}function vt(){return c||Vn(),((c.lzy?0:ot)||st()).v}function gt(n,t){var e=In[n],r=(c||Vn(),(c.lzy?0:ot)||st());return r.v?r.v[e||n]:t?p:($n=$n||{},(e=In[n])?$n[e]=$n[e]||Zn(A+"."+e):void 0)}function ht(n,t){c||Vn();var e=(c.lzy?0:ot)||st();return e.v?e.v(n):t?y:Zn(n)}function pt(n){return c||Vn(),((it=(c.lzy?0:it)||Yn(b(dt,["for"]).v)).v||function(n){Xn||(r=An(),Xn=r.gblSym=r.gblSym||{k:{},s:{}});var t,e,r=Xn;return gn(r.k,n)||(t=Zn(n),e=Dn(r.s).length,t._urid=function(){return e+"_"+t[M]()},r.k[n]=t,r.s[t._urid()]=cn(n)),r.k[n]})(n)}function yt(n){return n&&q(n.next)}function mt(n,t,e){if(n&&(yt(n)||(n=n[(ut=ut||Yn(gt(3))).v]?n[ut.v]():y),yt(n))){var r=p,o=p;try{for(var i=0;!(o=n.next()).done&&-1!==t[m](e||n,o.value,i,n);)i++}catch(u){r={e:u},n["throw"]&&(o=y,n["throw"](r))}finally{try{o&&!o.done&&n["return"]&&n["return"](o)}finally{if(r)throw r.e}}}}function bt(n,t,e){return n.apply(t,e)}var Ct,xt=i("indexOf",u);function _t(n){return((n?n.slice:y)||z).apply(n,z[m](arguments,1))}var wt=t(e(o,"setPrototypeOf"),St);function St(e,n){var t;return(Ct=Ct||Yn(((t={})[v]=[],t instanceof Array))).v?e[v]=n:V(n,function(n,t){return e[n]=t}),e}function Dt(n,t){t&&(n[B]=t)}function Ot(o,i,n){var t,e,u=n||Error,c=u[s][B],a=Error.captureStackTrace,n=u;return b(_,[e=function(){var n=this,t=arguments;try{b(Dt,[u,o]);var e,r=bt(u,n,z[m](t))||n;return r!==n&&(e=En(n))!==En(r)&&wt(r,e),a&&a(r,n[E]),i&&i(r,t),r}finally{b(Dt,[u,c])}},B,{v:t=o,c:!0,e:!1}]),(e=wt(e,n))[s]=n===y?zn(n):(r[s]=n[s],new r),e;function r(){this[E]=e,b(_,[this,B,{v:t,c:!0,e:!1}])}}function Et(t){return function(n){return ln(n),n&&n.replace?n.replace(t,a):n}}var Pt,Tt,It,kt=hn("trim",H,Et(/^\s+|(?=\s)\s+$/g)),Nt=e(r,"floor");function At(n){if(!n||typeof n!==l)return!1;var t=!1;if(n!==(It=It||at()||!0)){Tt||(Pt=Function[s][M],Tt=Pt[m](o));try{var e=En(n),t=(t=!e)||!(!(e=g(e,E)?e[E]:e)||typeof e!=f||Pt[m](e)!==Tt)}catch(r){}}return t}var Rt=pn(R),Bt=i("indexOf",H),Mt="unref",jt="hasRef";function Lt(){return a=p,f=z[m](arguments),s=(l=C(a))?a.length:0,d=(0<s?a[0]:l?p:a)||setTimeout,v=(1<s?a[1]:p)||clearTimeout,g=f[0],f[0]=function(){h.dn(),bt(g,p,z[m](arguments))},o=function(n){bt(v,p,[n])},u=!0,c=(r=function(n){if(n){if(n.refresh)return n.refresh(),n;bt(v,p,[n])}return bt(d,p,f)})(y),(i={cancel:t,refresh:e,hasRef:function(){return c&&c[jt]?c[jt]():u},ref:function(){return u=!0,c&&c.ref&&c.ref(),i}})[Mt]=n,(h={h:i=x(i,"enabled",{get:function(){return!!c},set:function(n){!n&&c&&t(),n&&!c&&e()}}),dn:function(){c=y}}).h;function n(){return u=!1,c&&c[Mt]&&c[Mt](),i}function t(){c&&o(c),c=y}function e(){return c=r(c),u||n(),i}var r,o,i,u,c,a,f,l,s,d,v,g,h}var Ht,u=function(n){return bn(n,1,0,On)},zt=u({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),Ut="toLowerCase",I="length",Ft="warnToConsole",qt="throwInternal",Vt="watch",Kt="apply",h="push",Xt="splice",$t="logger",Wt="initialize",Jt="identifier",Qt="isInitialized",Gt="getPlugin",Zt="name",Yt="processNext",ne="unload",te="createNew",ee="teardown",re="messageId",oe="message",ie="diagLog",ue="_doTeardown",ce="update",ae="getNext",fe="setNextPlugin",le="userAgent",se="split",de="replace",ve="type",ge="evtName",he="status",pe="indexOf",ye="getAllResponseHeaders",me="isChildEvt",be="data",Ce="getCtx",xe="setCtx",_e="itemsReceived",we="urlString",Se="headers",De="timeout",Oe="object",Ee="undefined",Pe="prototype",Te=Object,Ie=((rt()||{}).Symbol,(rt()||{}).Reflect,function(n,t){return(Ie=Te.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)}),ke="constructor",Ne="prototype",Ae="function",Re="_dynInstFuncs",Be="_isDynProxy",Me="_dynClass",je="_dynInstChk",Le=je,He="_dfOpts",ze="_unknown_",Ue="__proto__",Fe="_dyn"+Ue,r="__dynProto$Gbl",qe="_dynInstProto",Ve="useBaseInst",Ke="setInstFuncs",Xe=Object,$e=Xe.getPrototypeOf,We=Xe.getOwnPropertyNames,H=rt(),Je=H[r]||(H[r]={o:((i={})[Ke]=!0,i[Ve]=!0,i),n:1e3});function Qe(n){return n&&(n===Xe[Ne]||n===Array[Ne])}function Ge(n){return Qe(n)||n===Function[Ne]}function Ze(n){if(n){if($e)return $e(n);var t=n[Ue]||n[Ne]||(n[ke]?n[ke][Ne]:null),e=n[Fe]||t;g(n,Fe)||(delete n[qe],e=n[Fe]=n[qe]||n[Fe],n[qe]=t)}return e}function Ye(n,t){var e=[];if(We)e=We(n);else for(var r in n)"string"==typeof r&&g(n,r)&&e.push(r);if(e&&0<e.length)for(var o=0;o<e.length;o++)t(e[o])}function nr(n,t,e){return t!==ke&&typeof n[t]===Ae&&(e||g(n,t))&&t!==Ue&&t!==Ne}function tr(n){fn("DynamicProto: "+n)}function er(n,t){for(var e=n.length-1;0<=e;e--)if(n[e]===t)return 1}function rr(n,t){return g(n,Ne)?n.name||t||ze:((n||{})[ke]||{}).name||t||ze}function k(n,r,t,e){g(n,Ne)||tr("theClass is an invalid class definition.");var o,i,u,c,a,f,l=n[Ne],s=(function(n){if(!$e)return 1;for(var t=[],e=Ze(r);e&&!Ge(e)&&!er(t,e);){if(e===n)return 1;t.push(e),e=Ze(e)}}(l)||tr("["+rr(n)+"] not in hierarchy of ["+rr(r)+"]"),null),n=(g(l,Me)?s=l[Me]:(s="_dynCls$"+rr(n,"_")+"$"+Je.n,Je.n++,l[Me]=s),k[He]),d=!!n[Ve],v=(d&&e&&e[Ve]!==undefined&&(d=!!e[Ve]),o=r,i=zn(null),Ye(o,function(n){!i[n]&&nr(o,n,!1)&&(i[n]=o[n])}),i),d=(t(r,function(n,t,e,i){function r(n,t,e){var r,o=t[e];return o[Be]&&i&&!1!==(r=n[Re]||{})[Le]&&(o=(r[t[Me]]||{})[e]||o),function(){return o.apply(n,arguments)}}for(var o=zn(null),u=(Ye(e,function(n){o[n]=r(t,e,n)}),Ze(n)),c=[];u&&!Ge(u)&&!er(c,u);)Ye(u,function(n){!o[n]&&nr(u,n,!$e)&&(o[n]=r(t,u,n))}),c.push(u),u=Ze(u);return o}(l,r,v,d)),!!$e&&!!n[Ke]);u=l,t=s,c=r,a=v,n=!1!==(d=d&&e?!!e[Ke]:d),Qe(u)||Qe(l=c[Re]=c[Re]||zn(null))||(f=l[t]=l[t]||zn(null),!1!==l[Le]&&(l[Le]=!!n),Qe(f)||Ye(c,function(n){var e,r,o;nr(c,n,!1)&&c[n]!==a[n]&&(f[n]=c[n],delete c[n],g(u,n)&&(!u[n]||u[n][Be])||(u[n]=(e=u,r=n,(o=function(){var n,t;return(function(n,t,e,r){var o=null;if(n&&g(e,Me)){var i=n[Re]||zn(null);if((o=(i[e[Me]]||zn(null))[t])||tr("Missing ["+t+"] "+Ae),!o[je]&&!1!==i[Le]){for(var u=!g(n,t),c=Ze(n),a=[];u&&c&&!Ge(c)&&!er(a,c);){var f=c[t];if(f){u=f===r;break}a.push(c),c=Ze(c)}try{u&&(n[t]=o),o[je]=1}catch(l){i[Le]=!1}}}return o}(this,r,e,o)||(typeof(t=(t=e[n=r])===o?Ze(e)[n]:t)!==Ae&&tr("["+n+"] is not a "+Ae),t)).apply(this,arguments)})[Be]=1,o)))}))}k[He]=Je.o;var or="Promise",ir="rejected";function N(n,t){return ur(n,function(n){return t?t({status:"fulfilled",rejected:!1,value:n}):n},function(n){return t?t({status:ir,rejected:!0,reason:n}):n})}function ur(n,t,e,r){var o,i=n;try{if(un(n))(t||e)&&(i=n.then(t,e));else try{t&&(i=t(n))}catch(u){if(!e)throw u;i=e(u)}}finally{r&&(n=i,(o=r)&&(un(n)?n["finally"]?n["finally"](o):n.then(function(n){return o(),n},function(n){throw o(),n}):o()))}return i}var cr,ar=["pending","resolving","resolved",ir],fr="dispatchEvent";function lr(n){var t;return!!(t=n&&n.createEvent?n.createEvent("Event"):t)&&t.initEvent}var sr,dr="unhandledRejection",vr=dr.toLowerCase(),gr=10;function hr(n){return q(n)?n.toString():P(n)}function pr(n,t,e){var c,i,r=_t(arguments,3),a=0,f=!1,l=[],s=!1,o=null;function u(i,u){return s=!0,o&&o.cancel(),o=null,n(function(r,o){l.push(function(){try{var n=2===a?i:u,t=U(n)?c:q(n)?n(c):n;un(t)?t.then(r,o):(n||3!==a?r:o)(t)}catch(e){o(e)}}),f&&v()},r)}function d(){return ar[a]}function v(){var n;0<l.length&&(n=l.slice(),l=[],s=!0,o&&o.cancel(),o=null,t(n))}function g(t,e){return function(n){if(a===e){if(2===t&&un(n))return a=1,void n.then(g(2,1),g(3,1));a=t,f=!0,c=n,v(),s||3!==t||o||(o=Lt(h,gr))}}}function h(){var n,t,e,r,o;s||(s=!0,lt()?process.emit(dr,c,i):(n=at()||rt(),sr=sr||Yn(b(T,[or+"RejectionEvent"]).v),n=n,t=vr,r=function(n){return _(n,"promise",{g:function(){return i}}),n.reason=c,n},e=!!sr.v,o=ct(),r(o=(cr=cr||Yn(!!b(lr,[o]).v)).v?o.createEvent("Event"):e?new Event(t):{}),cr.v&&o.initEvent(t,!1,!0),o&&n[fr]?n[fr](o):(e=n["on"+t])?e(o):(r=T("console"))&&(r.error||r.log)(t,P(o))))}x(i={then:u,"catch":function(n){return u(undefined,n)},"finally":function(t){var n=t,e=t;return q(t)&&(n=function(n){return t&&t(),n},e=function(n){throw t&&t(),n}),u(n,e)}},"state",{get:d}),vt()&&(i[gt(11)]="IPromise"),i.toString=function(){return"IPromise "+d()+(f?" - "+hr(c):"")},q(e)||fn(or+": executor is not a function - "+hr(e));var p=g(3,0);try{e.call(i,g(2,0),p)}catch(y){p(y)}return i}function yr(e){return function(t){var n=_t(arguments,1);return e(function(e,r){try{var o=[],i=1;mt(t,function(n,t){n&&(i++,ur(n,function(n){o[t]=n,0==--i&&e(o)},r))}),0==--i&&e(o)}catch(n){r(n)}},n)}}function mr(e){return function(t){var n=_t(arguments,1);return un(t)?t:e(function(n){n(t)},n)}}function br(t){return function(e){var n=_t(arguments,1);return t(function(n,t){t(e)},n)}}function X(n,t){return pr(X,(r=on(e=t)?e:0,function(n){Lt(function(){K(n,function(n){try{n()}catch(t){}})},r)}),n,t);var e,r}var Cr,xr,_r=yr(X),wr=mr(X),Sr=br(X);function Dr(n,t){var e=(Cr=Cr||Yn(b(T,[or]).v||null)).v;if(!e)return X(n);q(n)||fn(or+": executor is not a function - "+P(n));var r=0,e=new e(function(t,e){n(function(n){r=2,t(n)},function(n){r=3,e(n)})});return x(e,"state",{get:function(){return ar[r]}}),e}function Or(n,t){return(xr=xr||Yn(Dr)).v.call(this,n,t)}var Er,Pr,Tr="reject",Ir="Rejected",kr=0,Nr={};function Ar(){}function Rr(n,t,e){Nr[n]||(Nr[n]=Ot(n));var r=Fn();return new Nr[n]("Task [".concat(t.id,"] ").concat(e||"","- ").concat(t.st?"Running":"Waiting",": ").concat((r-(t.st||t.cr)||"0")+" ms"))}function Br(n,t){var e=Fn()-t;K(n,function(n){(n&&!n.rj&&n.st&&n.st<e||!n.st&&n.cr&&n.cr<e)&&n&&n[Tr](n.rj||Rr("Aborted",n,"Stale "))})}function Mr(n,t){t=xt(n,t);-1!==t&&n.splice(t,1)}function jr(a,n){var f,e,r,o,t,i,l=[],s=[],d=0,v=(n?n+".":"")+kr++,g=(a=a||Or,function(){var n=0<Rt(l)+Rt(s);0<e&&(o||(o=Lt(function(){Br(l,e),Br(s,e),o&&(o.enabled=0<Rt(l)+Rt(s))},r)).unref(),o&&(o.enabled=n))}),h=function(u,c){return u.st=Fn(),l.push(u),g(),function(e,r){var n=function(n){u.rj=u.rj||n||Rr(Ir,u),u[Tr]=Ar,p(u),e=null,r&&r(n),r=null},t=u.id;if(u.rj)n(u.rj);else{u[Tr]=n;try{var o=c(t);u.to&&un(o)&&(u.t=Lt(function(){n(Rr("Timeout",u))},u.to)),ur(o,function(n){p(u);try{e&&e(n)}catch(t){r&&r(t)}e=r=null},n)}catch(i){n(i)}}}},p=function(n){Mr(l,n),n.t&&n.t.cancel(),n.t=null,f&&f===n&&(f=null,Rt(l)+Rt(s)===0&&(o&&o.cancel(),o=null))},n={idle:!0,queue:function(n,t,e){var r,o,i,u=v+"."+d++,c=(t&&(u+="-("+t+")"),(t={id:u,cr:Fn(),to:e})[Tr]=function(n){c.rj=n||Rr(Ir,c),c[Tr]=Ar},t);return c.p=f?(o=f,i=n,s.push(r=c),g(),a(function(n,t){N(o.p,function(){Mr(s,r),h(r,i)(n,t)})})):a(h(c,n)),(f=c).p},setStaleTimeout:function(n,t){o&&o.cancel(),o=null,e=n,r=t||n/10,g()}};return _(n,"idle",{g:function(){return Rt(l)+Rt(s)===0}}),i=function(){return{l:f,r:l,w:s}},Pr=Pr||{toString:function(){return"[[SchedulerState]]"}},x(t=n,Er=Er||{toString:function(){return"[[SchedulerName]]"}},{get:function(){return v}}),x(t,Pr,{get:i}),n}var Lr=undefined,d="",w="core",Hr="disabled",zr="extensionConfig",Ur="processTelemetry",Fr="priority",qr="getPerfMgr",Vr="Not dynamic - ",Kr=/-([a-z])/g,Xr=/([^\w\d_$])/g,$r=/^(\d+[\w\d_$])/;function Wr(n){return!F(n)}function Jr(n){return n&&en(n)?(n=(n=n[de](Kr,function(n,t){return t.toUpperCase()}))[de](Xr,"_"))[de]($r,function(n,t){return"_"+t}):n}function Qr(n,t){return!(!n||!t)&&-1!==Bt(n,t)}function Gr(n,t,e,r,o){var i,u,c;n&&t&&e&&(!1===o&&!U(n[t])||(n[t]=(i=r,c=u=null,q(o=e)?u=o:c=o,function(){var n=arguments;if(c=u?u():c)return c[i][Kt](c,n)})))}function Zr(n){try{return n.responseText}catch(t){}return null}function Yr(n,t){return n?"XDomainRequest,Response:"+Zr(n)||"":t}function no(n,t){return n?"XMLHttpRequest,Status:"+n[he]+",Response:"+Zr(n)||n.response||"":t}var to="withCredentials";function eo(n,t,e){return!n[e]&&t&&t.getResponseHeader&&(t=t.getResponseHeader(e))&&(n[e]=kt(t)),n}var ro="kill-duration",oo="kill-duration-seconds",io="time-delta-millis";function uo(n,t){var e,r,o={};return n[ye]?(e=n[ye](),r={},en(e)&&K(kt(e)[se](/[\r\n]+/),function(n){var t,e;n&&(-1!==(e=n[pe](": "))?(t=kt(n.substring(0,e))[Ut](),e=kt(n.substring(e+1)),r[t]=e):r[kt(n)]=1)}),o=r):t&&(o=eo(o,n,io),o=eo(o,n,ro),o=eo(o,n,oo)),o}var co="console",ao="JSON",fo="crypto",lo="msCrypto",so="msie",vo="trident/",go="XMLHttpRequest",ho=null,po=null,yo=null,mo=null;function bo(n,t){var e,r=!1;if(n){try{(r=t in n)||(e=n[Pe])&&(r=t in e)}catch(o){}if(!r)try{r=!U((new n)[t])}catch(o){}}return r}function Co(){return typeof JSON===Oe&&JSON||null!==T(ao)}function xo(){return Co()?JSON||T(ao):null}function _o(){var n=!1;try{n=!!T(go)}catch(t){}return n}var wo=4294967296,So=4294967295,Do=123456789,Oo=987654321,Eo=!1,Po=Do,To=Oo;function Io(n){var t,e=0,r=T(fo)||T(lo);if(0===(e=r&&r.getRandomValues?r.getRandomValues(new Uint32Array(1))[0]&So:e)&&(!(r=ft())||r[le]===po&&null!==ho||(r=((po=r[le])||d)[Ut](),ho=Qr(r,so)||Qr(r,vo)),ho)){if(!Eo)try{var o=2147483647&Fn();(t=(Math.random()*wo^o)+o)<0&&(t>>>=0),Po=Do+t&So,To=Oo-t&So,Eo=!0}catch(i){}r=((To=36969*(65535&To)+(To>>16)&So)<<16)+(65535&(Po=18e3*(65535&Po)+(Po>>16)&So))>>>0&So|0,e=(r>>>=0)&So}return 0===e&&(e=Nt(wo*Math.random()|0)),n||(e>>>=0),e}var ko="3.4.0-nightlybeta3.2504-17",No="."+function(n){void 0===n&&(n=22);for(var t=Io()>>>0,e=0,r=d;r[I]<n;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++e&&(t=(Io()<<2&4294967295|3&t)>>>0,e=0);return r}(6),Ao=0;function Ro(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType}function Bo(n,t){return Jr(n+Ao+++((t=void 0!==t&&t)?"."+ko:d)+No)}function Mo(n){var i={id:Bo("_aiData-"+(n||d)+"."+ko),accept:Ro,get:function(n,t,e,r){var o=n[i.id];return o?o[Jr(t)]:(r&&((o=function(n,t){var e=t[n.id];if(!e){e={};try{Ro(t)&&_(t,n.id,{e:!1,v:e})}catch(r){}}return e}(i,n))[Jr(t)]=e),e)},kill:function(n,t){if(n&&n[t])try{delete n[t]}catch(e){}}};return i}function jo(n){return n&&rn(n)&&(n.isVal||n.fb||gn(n,"v")||gn(n,"mrg")||gn(n,"ref")||n.set)}function Lo(n,t,e){var r,o=e.dfVal||tn;if(t&&e.fb){var i=e.fb;C(i)||(i=[i]);for(var u=0;u<i[I];u++){var c=i[u],a=t[c];if(o(a)?r=a:n&&(o(a=n.cfg[c])&&(r=a),n.set(n.cfg,cn(c),a)),o(r))break}}return!o(r)&&o(e.v)?e.v:r}function Ho(e,n,t,r){var o,i,u,c,a,f,l=r,l=jo(l)?(o=l.isVal,i=l.set,a=l.rdOnly,s=l.blkVal,u=l.mrg,!(c=l.ref)&&U(c)&&(c=!!u),Lo(e,n,l)):r,r=(s&&e.blkVal(n,t),!0),s=n[t];!s&&F(s)||(f=s,r=!1,o&&f!==l&&!o(f)&&(f=l,r=!0),i&&(r=(f=i(f,l,n))===l)),r?f=l&&function d(e,r,n){var o,t=n;return(t=n&&jo(n)?Lo(e,r,n):t)&&(jo(t)&&(t=d(e,r,t)),C(t)?(o=[])[I]=t[I]:At(t)&&(o={}),o&&(V(t,function(n,t){t&&jo(t)&&(t=d(e,r,t)),o[n]=t}),t=o)),t}(e,n,l):(At(f)||C(l))&&u&&l&&(At(l)||C(l))&&V(l,function(n,t){Ho(e,f,n,t)}),e.set(n,t,f),c&&e.ref(n,t),a&&e.rdOnly(n,t)}var zo=pt("[[ai_dynCfg_1]]"),Uo=pt("[[ai_blkDynCfg_1]]"),Fo=pt("[[ai_frcDynCfg_1]]");function qo(n,t,e){var r=!1;return!e||n[t.blkVal]||(r=e[Fo])||e[Uo]?r:At(e)||C(e)}function Vo(n){fn("InvalidAccess:"+n)}var Ko=["push","pop","shift","unshift","splice"],Xo=function(n,t,e,r){n&&n[qt](3,108,"".concat(e," [").concat(t,"] failed - ")+P(r))};function $o(n,t){n=dn(n,t);return n&&n.get}function Wo(o,i,u,c){var a={n:u,h:[],trk:function(n){n&&n.fn&&(-1===xt(a.h,n)&&a.h[h](n),o.trk(n,a))},clr:function(n){n=xt(a.h,n);-1!==n&&a.h[Xt](n,1)}},f=!0,l=!1;function s(){f&&(l=l||qo(s,o,c),c&&!c[zo]&&l&&(c=Go(o,c,u,"Converting")),f=!1);var n=o.act;return n&&a.trk(n),c}s[o.prop]={chng:function(){o.add(a)}},_(i,a.n,{g:s,s:function(t){if(c!==t){s[o.ro]&&!o.upd&&Vo("["+u+"] is read-only:"+P(i)),f&&(l=l||qo(s,o,c),f=!1);var n,e=l&&s[o.rf];if(l)if(e){V(c,function(n){c[n]=t?t[n]:Lr});try{V(t,function(n,t){Jo(o,c,n,t)}),t=c}catch(r){Xo((o.hdlr||{})[$t],u,"Assigning",r),l=!1}}else c&&c[zo]&&V(c,function(n){var n=$o(c,n);n&&(n=n[o.prop])&&n.chng()});t!==c&&(n=t&&qo(s,o,t),!e&&n&&(t=Go(o,t,u,"Converting")),c=t,l=n),o.add(a)}}})}function Jo(n,t,e,r){var o;return t&&((o=$o(t,e))&&o[n.prop]?t[e]=r:Wo(n,t,e,r)),t}function Qo(n,t,e,r){if(t){var o=$o(t,e),i=o&&!!o[n.prop],u=r&&r[0],c=r&&r[1],r=r&&r[2];if(!i){if(r)try{var a=t;if(a&&(At(a)||C(a)))try{a[Uo]=!0}catch(f){}}catch(l){Xo((n.hdlr||{})[$t],e,"Blocking",l)}try{Jo(n,t,e,t[e]),o=$o(t,e)}catch(l){Xo((n.hdlr||{})[$t],e,"State",l)}}u&&(o[n.rf]=u),c&&(o[n.ro]=c),r&&(o[n.blkVal]=!0)}return t}function Go(e,r,n,t){try{V(r,function(n,t){Jo(e,r,n,t)}),r[zo]||(x(r,zo,{get:function(){return e.hdlr}}),o=e,u=n,C(i=r)&&K(Ko,function(n){var r=i[n];i[n]=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=r[Kt](this,n);return Go(o,i,u,"Patching"),e}}))}catch(c){Xo((e.hdlr||{})[$t],n,t,c)}var o,i,u;return r}var Zo="[[ai_",Yo="]]";function ni(i){var u,n=ht(Zo+"get"+i.uid+Yo),t=ht(Zo+"ro"+i.uid+Yo),e=ht(Zo+"rf"+i.uid+Yo),r=ht(Zo+"blkVal"+i.uid+Yo),c=ht(Zo+"dtl"+i.uid+Yo),o=null,a=null;function f(t,n){var e=u.act;try{(u.act=t)&&t[c]&&(K(t[c],function(n){n.clr(t)}),t[c]=[]),n({cfg:i.cfg,set:i.set.bind(i),setDf:i.setDf.bind(i),ref:i.ref.bind(i),rdOnly:i.rdOnly.bind(i)})}catch(o){var r=i[$t];throw r&&r[qt](1,107,P(o)),o}finally{u.act=e||null}}function l(){if(o){var e,n=o,r=(o=null,a&&a.cancel(),a=null,[]);if(K(n,function(t){if(t&&(t[c]&&(K(t[c],function(n){n.clr(t)}),t[c]=null),t.fn))try{f(t,t.fn)}catch(n){r[h](n)}}),o)try{l()}catch(t){r[h](t)}if(0<r[I])throw n=r,Ht=Ht||Ot("AggregationError",function(n,t){1<t[I]&&(n.errors=t[1])}),e="Watcher error(s): ",K(n,function(n,t){e+="\n".concat(t," > ").concat(P(n))}),new Ht(e,n||[])}}return u={prop:n,ro:t,rf:e,blkVal:r,hdlr:i,add:function(n){if(n&&0<n.h[I]){o=o||[],a=a||Lt(function(){a=null,l()},0);for(var t=0;t<n.h[I];t++){var e=n.h[t];e&&-1===xt(o,e)&&o[h](e)}}},notify:l,use:f,trk:function(n,t){n&&(n=n[c]=n[c]||[],-1===xt(n,t)&&n[h](t))}}}function ti(o,t,n){var e=function(){if(t){var n=t[zo]||t;if(n.cfg&&(n.cfg===t||n.cfg[zo]===n))return n}return null}();if(e)return e;var i,e=Bo("dyncfg",!0),n=t&&!1!==n?t:function u(n){var e;return n&&(C(n)?(e=[])[I]=n[I]:At(n)&&(e={}),e)?(V(n,function(n,t){e[n]=u(t)}),e):n}(t),r={uid:null,cfg:n,logger:o,notify:function(){i.notify()},set:function(n,t,e){try{n=Jo(i,n,t,e)}catch(r){Xo(o,t,"Setting value",r)}return n[t]},setDf:function(e,n){return n&&V(n,function(n,t){Ho(r,e,n,t)}),e},watch:function(n){return t=i,_(r={fn:e=n,rm:function(){r.fn=null,e=t=null}},"toJSON",{v:function(){return"WatcherHandler"+(r.fn?"":"[X]")}}),t.use(r,e),r;var t,e,r},ref:function(n,t){return Qo(i,n,t,((n={})[0]=!0,n))[t]},rdOnly:function(n,t){return Qo(i,n,t,((n={})[1]=!0,n))[t]},blkVal:function(n,t){return Qo(i,n,t,((n={})[2]=!0,n))[t]},_block:function(e,r){i.use(null,function(n){var t=i.upd;try{U(r)||(i.upd=r),e(n)}finally{i.upd=t}})}};return _(r,"uid",{c:!1,e:!1,w:!1,v:e}),Go(i=ni(r),n,"config","Creating"),r}function ei(n,t,e,r){e=ti(e,n||{},r);return t&&e.setDf(e.cfg,t),e}function ri(n,t,e){var r,o,i=n[zo]||n;return!i.cfg||i.cfg!==n&&i.cfg[zo]!==i?(r=e,o=Vr+P(n),r?(r[Ft](o),r[qt](2,108,o)):Vo(o),ei(n,null,e)[Vt](t)):i[Vt](t)}var oi="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",ii=null,ui="warnToConsole",ci={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},ai=((r={})[0]=null,r[1]="errorToConsole",r[2]=ui,r[3]="debugToConsole",r);function fi(n){return n?'"'+n[de](/\"/g,d)+'"':d}function li(n,t){var e,r=typeof console!==Ee?console:T(co);r&&(e="log",r[n]&&(e=n),q(r[e])&&r[e](t))}di.dataType="MessageData";var si=di;function di(n,t,e,r){void 0===e&&(e=!1),this[re]=n,this[oe]=(e?"AI: ":"AI (Internal): ")+n;e=d,Co()&&(e=xo().stringify(r)),n=(t?" message:"+fi(t):d)+(r?" props:"+fi(e):d);this[oe]+=n}function vi(n,t){return(n||{})[$t]||new gi(t)}hi.__ieDyn=1;var gi=hi;function hi(o){this.identifier="DiagnosticLogger",this.queue=[];var a,f,l,s,t,d=0,v={};k(hi,this,function(i){function u(n,t){var e,r;l<=d||(r=!0,e="AITR_"+t[re],v[e]?r=!1:v[e]=!0,r&&(n<=f&&(i.queue[h](t),d++,c(1===n?"error":"warn",t)),d===l&&(r=new si(23,e="Internal events throttle limit per PageView reached for this app.",!1),i.queue[h](r),1===n?i.errorToConsole(e):i[Ft](e))))}function c(n,t){var e,r=(e=(e=ii)||!0===(o||{}).disableDbgExt?e:ii||(r=T("Microsoft"),ii=r?r.ApplicationInsights:ii))?e.ChromeDbgExt:null;r&&r[ie]&&r[ie](n,t)}t=ri(ei(o||{},ci,i).cfg,function(n){n=n.cfg;a=n.loggingLevelConsole,f=n.loggingLevelTelemetry,l=n.maxMessageLimit,s=n.enableDebug}),i.consoleLoggingLevel=function(){return a},i[qt]=function(n,t,e,r,o){t=new si(t,e,o=void 0!==o&&o,r);if(s)throw P(t);e=ai[n]||ui;U(t[oe])?c("throw"+(1===n?"Critical":"Warning"),t):(o?(r=+t[re],!v[r]&&n<=a&&(i[e](t[oe]),v[r]=!0)):n<=a&&i[e](t[oe]),u(n,t))},i.debugToConsole=function(n){li("debug",n),c("warning",n)},i[Ft]=function(n){li("warn",n),c("warning",n)},i.errorToConsole=function(n){li("error",n),c("error",n)},i.resetInternalMessageCount=function(){d=0,v={}},i.logInternalMessage=u,i[ne]=function(n){t&&t.rm(),t=null}})}function pi(n){return n||new gi}function $(n,t,e,r,o,i){void 0===i&&(i=!1),pi(n)[qt](t,e,r,o,i)}var yi="ParentContextKey",mi="ChildrenContextKey",bi=(Ci.ParentContextKey="parent",Ci.ChildrenContextKey="childEvts",Ci);function Ci(n,t,e){var r,o=this;o.start=Fn(),o[Zt]=n,o.isAsync=e,o[me]=function(){return!1},q(t)&&_(o,"payload",{g:function(){return!r&&q(t)&&(r=t(),t=null),r}}),o[Ce]=function(n){return n?(n===Ci[yi]||n===Ci[mi]?o:o.ctx||{})[n]:null},o[xe]=function(n,t){n&&(n===Ci[yi]?(o[n]||(o[me]=function(){return!0}),o[n]=t):n===Ci[mi]?o[n]=t:(o.ctx=o.ctx||{})[n]=t)},o.complete=function(){var n=0,t=o[Ce](Ci[mi]);if(C(t))for(var e=0;e<t[I];e++){var r=t[e];r&&(n+=r.time)}o.time=Fn()-o.start,o.exTime=o.time-n,o.complete=function(){}}}var xi="CoreUtils.doPerf";function _i(n,t,e,r,o){if(n)if(n=n[qr]?n[qr]():n){var i,u=void 0,c=n[Ce](xi);try{if(u=n.create(t(),r,o))return c&&u[xe]&&(u[xe](bi[yi],c),c[Ce]&&c[xe]&&((i=c[Ce](bi[mi]))||(i=[],c[xe](bi[mi],i)),i[h](u))),n[xe](xi,u),e(u)}catch(a){u&&u[xe]&&u[xe]("exception",a)}finally{u&&n.fire(u),n[xe](xi,c)}}e()}function wi(){for(var n,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],e=d,r=0;r<4;r++)e+=t[15&(n=Io())]+t[n>>4&15]+t[n>>8&15]+t[n>>12&15]+t[n>>16&15]+t[n>>20&15]+t[n>>24&15]+t[n>>28&15];var o=t[8+(3&Io())|0];return Ln(e,0,8)+Ln(e,9,4)+"4"+Ln(e,13,3)+o+Ln(e,16,3)+Ln(e,19,12)}var Si=Mo("plugin");function Di(n){return Si.get(n,"state",{},!0)}var Oi="TelemetryPluginChain",Ei="_hasRun",Pi="_getTelCtx",Ti=0;function Ii(n,i,e,t){var r=null,o=[],u=(i=i||ei({},null,e[$t]),null!==t&&(r=t?function(n,t,e){for(;n;){if(n[Gt]()===e)return n;n=n[ae]()}return Ni([e],t.config||{},t)}(n,e,t):n),{_next:function(){var n,t=r;return r=t?t[ae]():null,t||(n=o)&&0<n[I]&&(K(n,function(n){try{n.func.call(n.self,n.args)}catch(t){$(e[$t],2,73,"Unexpected Exception during onComplete - "+P(t))}}),o=[]),t},ctx:{core:function(){return e},diagLog:function(){return vi(e,i.cfg)},getCfg:function(){return i.cfg},getExtCfg:function(n,t){var r=c(n,!0);return t&&V(t,function(n,t){var e;!F(r[n])||!(e=i.cfg[n])&&F(e)||(r[n]=e),Ho(i,r,n,t)}),i.setDf(r,t)},getConfig:function(n,t,e){void 0===e&&(e=!1);var r,n=c(n,!1),o=i.cfg;return!n||!n[t]&&F(n[t])?!o[t]&&F(o[t])||(r=o[t]):r=n[t],r||!F(r)?r:e},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(n){r=n},iterate:function(n){for(;t=u._next();){var t=t[Gt]();t&&n(t)}},onComplete:function(n,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];n&&o[h]({func:n,self:U(t)?u.ctx:t,args:e})}}});function c(n,t){var e,r=null,o=i.cfg;return o&&n&&(e=o[zr],o[zr]=e=!e&&t?{}:e,(e=i.ref(o,zr))&&(r=e[n],e[n]=r=!r&&t?{}:r,r=i.ref(e,n))),r}return u}function ki(n,t,e,r){var o=ei(t),i=Ii(n,o,e,r),u=i.ctx;return u[Yt]=function(n){var t=i._next();return t&&t[Ur](n,u),!t},u[te]=function(n,t){return ki((n=C(n=void 0===n?null:n)?Ni(n,o.cfg,e,t):n)||u[ae](),o.cfg,e,t)},u}function Ni(n,t,e,r){var o,i=null,u=!r;return C(n)&&0<n[I]&&(o=null,K(n,function(n){(u=!u&&r===n||u)&&n&&q(n[Ur])&&(n=Ai(n,t,e),i=i||n,o&&o._setNext(n),o=n)})),r&&!i?Ni([r],t,e):i}function Ai(a,r,o){var f=null,i=q(a[Ur]),u=q(a[fe]),l=a?a[Jt]+"-"+a[Fr]+"-"+Ti++:"Unknown-0-"+Ti++,c={getPlugin:function(){return a},getNext:function(){return f},processTelemetry:function(e,n){var t;s(n=n||(t=(t=a&&q(a[Pi])?a[Pi]():t)||ki(c,r,o)),function(n){if(!a||!i)return!1;var t=Di(a);return!t[ee]&&!t[Hr]&&(u&&a[fe](f),a[Ur](e,n),!0)},"processTelemetry",function(){return{item:e}},!e.sync)||n[Yt](e)},unload:function(r,o){s(r,function(){var n,t,e=!1;return a&&(n=Di(a),t=a[w]||n[w],!a||t&&t!==r.core()||n[ee]||(n[w]=null,n[ee]=!0,n[Qt]=!1,a[ee]&&!0===a[ee](r,o)&&(e=!0))),e},"unload",function(){},o.isAsync)||r[Yt](o)},update:function(r,o){s(r,function(){var n,t,e=!1;return a&&(n=Di(a),t=a[w]||n[w],!a||t&&t!==r.core()||n[ee]||a[ce]&&!0===a[ce](r,o)&&(e=!0)),e},"update",function(){},!1)||r[Yt](o)},_id:l,_setNext:function(n){f=n}};function s(e,r,o,n,t){var i=!1,u=a?a[Jt]:Oi,c=(c=e[Ei])||(e[Ei]={});return e.setNext(f),a&&_i(e[w](),function(){return u+":"+o},function(){c[l]=!0;try{var n=f?f._id:d;n&&(c[n]=!1),i=r(e)}catch(t){n=!f||c[f._id];n&&(i=!0),f&&n||$(e[ie](),1,73,"Plugin ["+u+"] failed during "+o+" - "+P(t)+", run flags: "+P(c))}},n,t),i}return On(c)}function Ri(){var t=[];return{add:function(n){n&&t[h](n)},run:function(e,r){K(t,function(n){try{n(e,r)}catch(t){$(e[ie](),2,73,"Unexpected error calling unload handler - "+P(t))}}),t=[]}}}function Bi(){var r=[];return{run:function(e){var n=r;r=[],K(n,function(n){try{(n.rm||n.remove).call(n)}catch(t){$(e,2,73,"Unloading:"+P(t))}})},add:function(n){var t,e;n&&(t=r,!U(n=n)&&t&&(C(n)?bt(t.push,t,n):yt(n)||!nn(e=n)&&q(e[gt(3)])?mt(n,function(n){t.push(n)}):t.push(n)))}}}var Mi="getPlugin",ji=((H={})[zr]={isVal:Wr,v:{}},H),i=(Li.__ieDyn=1,Li);function Li(){var o,i,l,s,d,u=this;function t(n){var t,n=n=void 0===n?null:n;return n||(t=i||ki(null,{},u[w]),n=l&&l[Mi]?t[te](null,l[Mi]):t[te](null,l)),n}function a(n,t,e){ei(n,ji,vi(t)),!e&&t&&(e=t.getProcessTelContext()[ae]());var r=l;l&&l[Mi]&&(r=l[Mi]()),u[w]=t,i=ki(e,n,t,r)}function v(){o=!1,u[w]=null,l=i=null,d=Bi(),s=Ri()}v(),k(Li,u,function(f){f[Wt]=function(n,t,e,r){a(n,t,r),o=!0},f[ee]=function(n,t){var e,r,o,i,u=f[w];if(u&&(!n||u===n[w]()))return r=!1,o=n||function a(n,e,t){var r=ei(e.config),o=Ii(n,r,e,t),i=o.ctx;return i[Yt]=function(n){var t=o._next();return t&&t[ne](i,n),!t},i[te]=function(n,t){return a((n=C(n=void 0===n?null:n)?Ni(n,r.cfg,e,t):n)||i[ae](),e,t)},i}(null,u,l&&l[Mi]?l[Mi]():l),i=t||{reason:0,isAsync:!1},f[ue]&&!0===f[ue](o,i,c)?e=!0:c(),e;function c(){r||(r=!0,s.run(o,t),d.run(o[ie]()),!0===e&&o[Yt](i),v())}},f[ce]=function(n,t){var e,r,o,i=f[w];if(i&&(!n||i===n[w]()))return r=!1,o=n||function c(n,e,t){var r=ei(e.config),o=Ii(n,r,e,t).ctx;return o[Yt]=function(t){return o.iterate(function(n){q(n[ce])&&n[ce](o,t)})},o[te]=function(n,t){return c((n=C(n=void 0===n?null:n)?Ni(n,r.cfg,e,t):n)||o[ae](),e,t)},o}(null,i,l&&l[Mi]?l[Mi]():l),f._doUpdate&&!0===f._doUpdate(o,t||{reason:0},u)?e=!0:u(),e;function u(){r||(r=!0,a(o.getCfg(),o.core(),o[ae]()))}},Gr(f,"_addUnloadCb",function(){return s},"add"),Gr(f,"_addHook",function(){return d},"add"),_(f,"_unloadHooks",{g:function(){return d}})}),u[ie]=function(n){return t(n)[ie]()},u[Qt]=function(){return o},u.setInitialized=function(n){o=n},u[fe]=function(n){l=n},u[Yt]=function(n,t){t?t[Yt](n):l&&q(l[Ur])&&l[Ur](n,null)},u._getTelCtx=t}function Hi(n,t){try{if(n&&""!==n){var e=xo().parse(n);if(e&&e[_e]&&e[_e]>=e.itemsAccepted&&e.itemsReceived-e.itemsAccepted===e.errors[I])return e}}catch(r){$(t,1,43,"Cannot parse the response. "+(r[Zt]||P(r)),{response:n})}return null}var zi="&NoResponseBody=true",Ui=(Fi.__ieDyn=1,Fi);function Fi(){var C,o,d,x,_,i,w,v,g,h,p,S,D,O,E=0;k(Fi,this,function(e,n){var y=!0;function c(n,t){$(d,2,26,"Failed to send telemetry.",{message:n}),b(t,400,{})}function m(n){c("No endpoint url is provided for the batch",n)}function b(n,t,e,r){try{n&&n(t,e,r)}catch(o){}}function u(n,t){var e=ft();if(!n[we])return m(t),!0;t=n[we]+(D?zi:""),n=n[be],n=x?n:new Blob([n],{type:"text/plain;charset=UTF-8"});return e.sendBeacon(t,n)}function a(n,t,e){var r,o=n[be];try{o&&(u(n,t)?b(t,200,{},""):(r=_&&_.beaconOnRetry)&&q(r)?r(n,t,u):(v&&v.sendPOST(n,t,!0),$(d,2,40,". Failed to send telemetry with Beacon API, retried with normal sender.")))}catch(i){x&&(o=d,r="Failed to send telemetry using sendBeacon API. Ex:"+P(i),pi(o)[Ft](r)),b(t,x?0:400,{},"")}}function f(e,r,n){var t,o,i,u=e[Se]||{},c=(!n&&C&&(t=Or(function(n,t){o=n,i=t})),x&&n&&e.disableXhrSync&&(n=!1),e[we]);if(!c)return m(r),void(o&&o(!1));c=c,a=y,n=n,l=e[De],f=!0,void 0===n&&(n=!1),s=new XMLHttpRequest,f&&v(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",f),a&&v(s,to,a),s.open("POST",c,!n),a&&v(s,to,a),!n&&l&&v(s,"timeout",l);var a,f,l,s,d=s;function v(n,t,e){try{n[t]=e}catch(r){}}function g(n){var t=_&&_.xhrOnComplete;t&&q(t)?t(n,r,e):(t=Zr(n),b(r,n[he],uo(n,x),t))}return x||d.setRequestHeader("Content-type","application/json"),K(Dn(u),function(n){d.setRequestHeader(n,u[n])}),d.onreadystatechange=function(){x||(g(d),4===d.readyState&&o&&o(!0))},d.onload=function(){x&&g(d)},d.onerror=function(n){b(r,x?d[he]:400,uo(d,x),x?"":no(d)),i&&i(n)},d.ontimeout=function(){b(r,x?d[he]:500,uo(d,x),x?"":no(d)),o&&o(!1)},d.send(e[be]),t}function l(e,i,r){var n,o,u,t=e[we],c=e[be],a=x?c:new Blob([c],{type:"application/json"}),f=new Headers,l=c[I],c=!1,s=!1,d=e[Se]||{},v=((a={method:"POST",body:a})[oi]=!0,e.headers&&0<Dn(e.headers)[I]&&(K(Dn(d),function(n){f.append(n,d[n])}),a[Se]=f),w?a.credentials=w:y&&x&&(a.credentials="include"),r&&(a.keepalive=!0,E+=l,x?2===e._sendReason&&(c=!0,D&&(t+=zi)):c=!0),new Request(t,a));try{v[oi]=!0}catch(p){}if(!r&&C&&(n=Or(function(n,t){o=n,u=t})),!t)return m(i),void(o&&o(!1));function g(n,t){b(i,t?x?0:t:x?0:400,{},x?"":n)}function h(n,t,e){var r=n[he],o=_.fetchOnComplete;o&&q(o)?o(n,i,e||"",t):b(i,r,{},e||"")}try{N(fetch(x?t:v,x?a:null),function(n){if(r&&(E-=l,l=0),!s)if(s=!0,n.rejected)g(n.reason&&n.reason[oe],499),u&&u(n.reason);else{var t=n.value;try{x||t.ok?x&&!t.body?(h(t,null,""),o&&o(!0)):N(t.text(),function(n){h(t,e,n.value),o&&o(!0)}):(t[he]?g(t.statusText,t[he]):g(t.statusText,499),o&&o(!1))}catch(p){t&&t[he]?g(P(p),t[he]):g(P(p),499),u&&u(p)}}})}catch(p){s||(g(P(p),499),u&&u(p))}return c&&!s&&(s=!0,b(i,200,{}),o&&o(!0)),x&&!s&&0<e[De]&&O&&O.set(function(){s||(s=!0,b(i,500,{}),o&&o(!0))},e[De]),n}function s(e,r,n){var t=at(),o=new XDomainRequest,i=e[be],t=(o.onload=function(){var n=Zr(o),t=_&&_.xdrOnComplete;t&&q(t)?t(o,r,e):b(r,200,{},n)},o.onerror=function(){b(r,400,{},x?"":Yr(o))},o.ontimeout=function(){b(r,500,{})},o.onprogress=function(){},t&&t.location&&t.location.protocol||""),u=e[we];if(u){if(!x&&u.lastIndexOf(t,0))return $(d,2,40,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void c("Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.",r);t=x?u:u[de](/^(https?:)/,"");o.open("POST",t),e[De]&&(o[De]=e[De]),o.send(i),x&&n?O&&O.set(function(){o.send(i)},0):o.send(i)}else m(r)}function r(){E=0,D=S=p=h=g=C=o=!1,O=v=w=i=_=x=d=null}r(),e[Wt]=function(n,t){d=t,o&&$(d,1,28,"Sender is already initialized"),e.SetConfig(n),o=!0},e._getDbgPlgTargets=function(){return[o,x,i,C]},e.SetConfig=function(n){try{var t;return _=n.senderOnCompleteCallBack||{},i=!!n.disableCredentials,w=n.fetchCredentials,x=!!n.isOneDs,C=!!n.enableSendPromise,g=!!n.disableXhr,h=!!n.disableBeacon,p=!!n.disableBeaconSync,O=n.timeWrapper,D=!!n.addNoResponse,S=!!n.disableFetchKeepAlive,v={sendPOST:f},x||(y=!1),i&&(t=typeof location===Oe&&location?location:T("location"))&&t.protocol&&"file:"===t.protocol[Ut]()&&(y=!1),!0}catch(e){}return!1},e.getSyncFetchPayload=function(){return E},e.getSenderInst=function(n,t){if(n&&n[I]){for(var e=n,r=t,o=0,i=null,u=0;null==i&&u<e[I];)o=e[u],g||1!==o?2!==o||!function(n){var t=!1;try{var t=!!T("fetch"),e=T("Request");t&&n&&e&&(t=bo(e,"keepalive"))}catch(r){}return t}(r)||r&&S?3!==o||!(mo=null!==mo?mo:!!ft()&&!!ft().sendBeacon)||(r?p:h)||(i=a):i=l:(yo=null===yo&&(yo=typeof XDomainRequest!==Ee)&&_o()?yo&&!bo(T(go),"withCredentials"):yo)?i=s:_o()&&(i=f),u++;return i?{_transport:o,_isSync:r,sendPOST:i}:null}return null},e.getFallbackInst=function(){return v},e[ue]=function(n,t){r()}})}var qi="attachEvent",Vi="addEventListener",Ki="detachEvent",Xi="removeEventListener",$i="events",Wi=(Bo("aiEvtPageHide"),Bo("aiEvtPageShow"),/\.[\.]+/g),Ji=/[\.]+$/,Qi=1,Gi=Mo("events"),Zi=/^([^.]*)(?:\.(.+)|)/;function Yi(n){return n&&n[de]?n[de](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,d):n}function nu(n,t){t&&(e=d,C(t)?(e=d,K(t,function(n){(n=Yi(n))&&("."!==n[0]&&(n="."+n),e+=n)})):e=Yi(t),e&&("."!==e[0]&&(e="."+e),n=(n||d)+e));var e,t=Zi.exec(n||d)||[];return{type:t[1],ns:(t[2]||d).replace(Wi,".").replace(Ji,d)[se](".").sort().join(".")}}function tu(n,t,e){n=Gi.get(n,$i,{},e=void 0===e||e);return n[t]||(n[t]=[])}function eu(n,t,e,r){n&&t&&t[ve]&&(n[Xi]?n[Xi](t[ve],e,r):n[Ki]&&n[Ki]("on"+t[ve],e))}function ru(n,t,e,r){for(var o=t[I];o--;){var i=t[o];!i||e.ns&&e.ns!==i[ge].ns||r&&!r(i)||(eu(n,i[ge],i.handler,i.capture),t[Xt](o,1))}}function ou(n,t){return t?nu("xx",C(t)?[n].concat(t):[n,t]).ns[se]("."):n}function iu(n,t,e,r,o){void 0===o&&(o=!1);var i,u=!1;if(n)try{var c,a=nu(t,r),f=a,l=e,s=o,d=!1;(i=n)&&f&&f[ve]&&l&&(i[Vi]?(i[Vi](f[ve],l,s),d=!0):i[qi]&&(i[qi]("on"+f[ve],l),d=!0)),(u=d)&&Gi.accept(n)&&(c={guid:Qi++,evtName:a,handler:e,capture:o},tu(n,a.type)[h](c))}catch(v){}return u}var r=u({Unknown:0,LocalStorage:1,SessionStorage:2,IndexDb:3}),H=u({Complete:1,Retry:2,Drop:3,Failure:4}),uu=u({Success:1,Failure:2}),cu=u({LocalStorage:1,SessionStorage:2,IndexedDb:3}),au=u({Normal:1,Critical:2});function fu(n,t){var e,r,o=void 0;if(void 0===o&&(o=!1),n)try{var i=nu(null,t),u=!1,c=n,a=function(n){return!(!i.ns&&null!==n.handler)&&(u=!0)};(e=i)[ve]?ru(c,tu(c,e[ve]),e,a):(V(r=Gi.get(c,$i,{}),function(n,t){ru(c,t,e,a)}),0===Dn(r)[I]&&Gi.kill(c,$i)),u||eu(n,i,null,o)}catch(f){}}var lu="AppInsightsChannelPlugin",su="addEvent",W="push",J="length",du="clear",vu="getItems",gu="split",Q="initialize",hu="diagLog",pu="storageConfig",yu="value",mu="rejected",bu="sendNextBatch",Cu="getNextBatch",xu="removeEvents",_u="data",wu="attempCnt",Su="state",Du="teardown",Ou="isArr",Eu="indexOf",Pu="cancel",Tu="processNext",Iu="persistence",ku="onunloadFlush",Nu="batchHandler",Au="refresh",Ru="criticalCnt",Bu="isCompletelyIdle",Mu="instrumentationKey",ju="notificationMgr",Lu="toString",Hu="charCodeAt",zu="charAt",Uu="fromCharCode",Fu="getTime",qu="dbHdl",Vu="isAvailable",Ku="transaction",Xu="openCursor",$u="onerror",Wu="onsuccess",S="then",Ju="continue",Qu="EventsToDropPerTime",Gu="maxCriticalEvtsDropCnt",Zu="supportsSyncRequests",Yu="removeItem",nc="evts";function tc(n){try{var t=n.replace(/^https?:\/\/|^www\./,"").replace(/\?/,"/")[gu]("/");if(t&&0<t[J])return t[0]}catch(e){}return n}function ec(n){return 0<=n}var rc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function oc(){return(new Date)[Fu]()+"."+Ln(wi(),0,8)}function ic(n){try{var t;if(n&&en(n)&&/\d+\./g.test(n))return t=n[gu]("."),parseInt(t[0])}catch(e){}return 0}var uc="offlineBatchDrop";function cc(n,t,e){if(n){var r,o=Dn(n);e&&o&&(r=(new Date)[Fu](),o=o.sort(function(n,t){try{return(ic(n)||r)-(ic(t)||r)}catch(e){}return-1}));for(var i=0;i<o[J];i++){var u=o[i];if(!t(n[u],u))break}}}function ac(n,t,e){n=n||{},t=n[t];if(t)try{t.apply(n,e)}catch(r){}}function fc(n,t,e){n&&0<t&&ac(n,uc,[t,e])}sc.__ieDyn=1;var lc=sc;function sc(r){k(sc,this,function(n){n.base64ToArr=function(n){if(!n||!n[Ou])return n;try{var t=n[_u];return t&&(n[_u]=function(n){var t,e,r,o,i,u,c="",a=0;for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");a<n[J];)r=rc[Eu](n[zu](a++)),t=(15&(o=rc[Eu](n[zu](a++))))<<4|(i=rc[Eu](n[zu](a++)))>>2,e=(3&i)<<6|(u=rc[Eu](n[zu](a++))),c+=String[Uu](r<<2|o>>4),64!=i&&(c+=String[Uu](t)),64!=u&&(c+=String[Uu](e));var f=c[gu](",").map(function(n){return+(""+n)});return new Uint8Array(f)}(t)),n}catch(e){$(r,1,48,e&&q(e[Lu])?e[Lu]():"Error serializing object",null,!0)}return null},n.base64ToStr=function(n){if(!n||!n[Ou])return n;try{var t=n[_u];return t&&(n[_u]=function(n){for(var t,e,r,o="",i="",i=en(n)?n:n[Lu](),u=0;u<i[J];)t=i[Hu](u++),e=i[Hu](u++),r=i[Hu](u++),o=(o+=rc[zu](t>>2))+rc[zu]((3&t)<<4|e>>4),isNaN(e)?o+="==":o=(o+=rc[zu]((15&e)<<2|r>>6))+(isNaN(r)?"=":rc[zu](63&r));return""+o}(t)),n}catch(e){$(r,1,48,e&&q(e[Lu])?e[Lu]():"Error serializing object",null,!0)}return null}})}function dc(n){var t,e=rt()||{},r=null;try{(r=e[n])&&(t="__storage_test__",r.setItem(t,t),r[Yu](t))}catch(o){n=r,e=!1,o instanceof DOMException&&(22!==o.code&&"QuotaExceededError"!==o.name&&1014!==o.code&&"NS_ERROR_DOM_QUOTA_REACHED"!==o.name||n&&0!==n[J]&&(e=!0)),e||(r=null)}return r}gc.__ieDyn=1;var vc=gc;function gc(n,t,y){k(gc,this,function(o){var i,u,c=null,a=5e6,f=null,l=null,s=null,d=null,v=null,g=null;function e(t,n){var e=[],r=h(l).db;return r&&cc(r[nc],function(n){return n&&(n[Ou]&&(n=f.base64ToArr(n)),e[W](n)),!t||!e||e[J]!=t},n),e}function h(n,t){void 0===t&&(t=!0);var e=null;if(c){var r=c.getItem(n);if(r)try{e=xo().parse(r)}catch(o){c[Yu](n)}t&&!e&&(e={evts:{},lastAccessTime:0})}return{key:n,db:e}}function p(n,t){void 0===t&&(t=!0);var e=n.db;e&&t&&(e.lastAccessTime=(new Date)[Fu]());try{var r=xo().stringify(e);if(r[J]>a)return!1;c&&c.setItem(n.key,r)}catch(o){return!1}return!0}o.id=t,c=dc(n)||null,o._getDbgPlgTargets=function(){return[l,a,s]},o[Q]=function(n,t){if(!c)return!1;var e=n[pu],r=n.itemCtx,r=(f=new lc(r[hu]()),u=tc(t||n.endpoint),!!e.autoClean),t=(g=n[ju],ri(e,function(){a=e.maxStorageSizeInBytes||5e6,s=e.inStorageMaxTime||6048e5;var n=e[Qu];d=Wr(n)?n:10,v=e[Gu]||2}));return y&&y.add(t),i=e.storageKeyPrefix||"AIOffline",l=i+"_1_"+u,r&&o.clean(),!0},o[Zu]=function(){return!0},o.getAllEvents=function(n){try{return c?e(n):void 0}catch(t){return Sr(t)}},o[Cu]=function(){try{return c?e(1,!0):void 0}catch(n){return Sr(n)}},o[su]=function(n,t,e){try{for(var r=h(l),o=(t.id=t.id||oc(),t[Ru]=t[Ru]||0,r.db[nc]),i=t.id,u=(t&&t[Ou]&&(t=f.base64ToStr(t)),0);t;){if(o[i]=t,p(r))return u&&g&&fc(g,u,2),t;delete o[i];var c=function(n,t,e){for(var r=[],o=0,i=0;o<=n&&i<e;){if(cc(t,function(n,t){return n[Ru]===o&&(r[W](t),i++),i<e}),0<i){for(var u=0;u<r[J];u++)delete t[r[u]];return i}o++}return i}(v,o,d);if(u+=c,!c)return Sr(Error("Unable to free up event space"))}}catch(a){return Sr(a)}},o[xu]=function(n){try{var t=h(l,!1),e=t.db;if(e){var r=e[nc];try{for(var o=0;o<n[J];++o)delete r[n[o].id];if(p(t))return n}catch(i){}n=function(n){var t=[],n=h(n,!1),e=n.db;if(e){e=e[nc];try{cc(e,function(n){return n&&t[W](n),1})}catch(r){}c&&c[Yu](n.key)}return t}(t.key)}return n}catch(i){return Sr(i)}},o[du]=function(){try{var t,e=[],n=h(l,!1),r=n.db;return r&&(cc(t=r[nc],function(n){return n&&(delete t[n.id],e[W](n)),1}),p(n)),e}catch(o){return Sr(o)}},o.clean=function(){var n=h(l,!1),t=n.db;if(t){t=t[nc];try{return!function(n,t,e,r){var o=[],i=0,u=(new Date)[Fu]()+1-n;try{if(cc(t,function(n,t){return ic(t)<=u&&(o[W](t),i++),i<e}),0<i){for(var c=0;c<o[J];c++)delete t[o[c]];return r&&fc(r,i,3),1}}catch(a){}return 0<i}(s,t,d,g)||p(n)}catch(e){}return!1}},o[Du]=function(){try{var n=h(l,!1),t=n.db;t&&(t.lastAccessTime=0,p(n,!1))}catch(e){}}})}var hc=["indexedDB"],pc="result",yc="DBError: Unable to open database",mc="Database is not open",bc="DBError: Failed to delete the database",Cc=[];function xc(r){for(var o=null,n=0;n<Cc[J];n++)if((o=Cc[n]).name===r)return o;return o={name:r,sch:jr(X,"IndexedDbHelper["+r+"]"),dbHdl:[],add:function(n){o.dbHdl[W](n),D(r,"- dbOpened (add) -- hdls ["+o.dbHdl[J]+"]")},remove:function(n){for(var t=o[qu],e=0;e<t[J];e++)if(t[e]===n){t.splice(e,1);break}D(r,"- dbClosed (remove) -- hdls ["+o.dbHdl[J]+"]")},isOpen:function(){return 0<o.dbHdl[J]},openHdl:function(){return 0<o.dbHdl[J]?o[qu][0]:null}},Cc[W](o),o}function _c(n,t,e,r){return xc(n).sch.queue(e,t,r)}function D(n,t){T("QUnit")&&console&&console.log("IndexedDbHelper ["+n+"] "+t)}function wc(t,e,r,o){return function(n){r(Error(e)),D(t,"["+o+"] event rejected")}}Dc.__ieDyn=1;var Sc=Dc;function Dc(n){var y=function(){var n=rt()||{},t=null;if(n)try{for(var e=0;e<hc[J];e++)if((t=n[hc[e]])&&q(t.open))return t}catch(r){t=null}return t}()||null;k(Dc,this,function(n){function l(e,r){var n=e.db||null,n=n&&n[Ku](r,"readwrite");return n?(n.onabort=function(){},n[$u]=function(){},n.oncomplete=function(){D(e.dbName,"txn.oncomplete")},{db:e,store:n.objectStore(r),tx:n,tbl:r,openCursor:function(n,t){return p(e,r,n,t)},newTransaction:function(n){return h(e,r,n)}}):null}function h(n,t,e){if(!n||!n.db)return Sr(Error(mc));try{var r=e(l(n,t));return un(r)?r:wr(r)}catch(o){return Sr(o)}}function p(e,r,n,a){if(!e||!e.db)return Sr(Error(mc));var f=null;return n&&en(n)?f=new Oc(n):n&&n.isMatch&&(f=n),X(function(o,i){var u=[],n=null,t=null,c=(f&&f.keyRange&&(t=f.keyRange()),l(e,r));(n=t?c.store[Xu](t):c.store[Xu]())[$u]=wc(c.db.dbName,"DBError: Failed to Open Cursor",i,"openCursor"),n[Wu]=function(n){var t=n.target[pc];if(t){var e={store:c,cursor:t,"continue":function(){t[Ju]()},done:function(){o(u)}},n=t[yu];if(f&&!f.isMatch(n))e[Ju]();else if(a)try{switch(a(e,n,u)){case 2:o(u);break;case 1:break;default:e[Ju]()}}catch(r){i(r)}else u[W](n),e[Ju]()}else o(u)}})}n[Vu]=function(){return!!y},n.openDb=function(s,d,v,g){return _c(s,"openDb",function(l){return X(function(i,u){var c=!1;function a(n,t,e,r,o){var i={db:t,dbName:s,dbVersion:d,ctx:null,isNew:r,txn:e?e[Ku]:null};return o||(i.openStore=function(n,t){return h(i,n,t)},i[Xu]=function(n,t,e){return p(i,n,t,e)}),i}function t(t,n){var e=xc(s),r=(e.add(t),t.onabort=function(n){D(s,"onabort -- closing the Db"),e.remove(t)},t[$u]=function(n){D(s,"onerror -- closing the Db"),e.remove(t)},t.onclose=function(n){D(s,"onclose -- closing the Db"),e.remove(t)},t.onversionchange=function(n){D(s,"onversionchange -- force closing the Db"),t.close(),e.remove(t)},null),r=a(0,r=0<e.dbHdl[J]?e[qu][0]:r,n,c);try{ur(v(r),i,u)}catch(o){u(o)}}var n=xc(s);if(null==y)u(Error("No available storage factory"));else if(n.isOpen()){n=a(0,n.openHdl(),null,!1);ur(v(n),i,u)}else{var f=y.open(s,d);if(!f)throw Error("missing API");f.onblocked=function(n){D(s,"Db Open Blocked event ["+l+"] - "+(f.error||"")),u(Error(yc))},f[$u]=function(n){D(s,"Db Open Error event ["+l+"] - "+(f.error||"")),u(Error(yc))},f.onupgradeneeded=function(n){D(s,"Db Open Create/Upgrade needed event ["+l+"]");try{var t=n.target[pc]||f.result;if(!t)return D(s,"no db"),void u(Error(yc));var e=t,r=f,o=(D(s,"db upgrade called"),a(0,e,r,!0,!0));if(g)c=!0,N(g(o),function(n){if(n[mu])try{r[Ku]&&r[Ku].abort()}finally{u(n.reason)}else D(o.dbName,"on version change success"),o.txn||(o.txn=r[Ku],D(o.dbName,"added open request"))});else try{r[Ku]&&r[Ku].abort(),r.result&&r.result.close()}finally{u(Error("DBError: Database upgrade required"))}}catch(i){wc(s,yc,u,l)(i)}},f[Wu]=function(n){D(s,"Db Open sucess ["+l+"]");n=n.target[pc];n?t(n,f):u(Error(yc))}}})})},n.closeDb=function(i){D(i,"close db"),_c(i,"closeDb",function(n){var t=xc(i),e=t[qu],r=e[J];if(0<r){for(var o=0;o<r;o++)e[o].close();t[qu]=[]}return 1})["catch"](function(n){})},n.deleteDb=function(i){return null!=y&&_c(i,"deleteDb",function(o){var n=xc(i),t=n[qu],e=t[J];if(0<e){D(i,"Db is open ["+e+"] force closing");for(var r=0;r<e;r++)t[r].close();n[qu]=[]}return X(function(e,r){setTimeout(function(){try{D(i,"["+o+"] starting");var n=y.deleteDatabase(i);n[$u]=function(n){r(Error(bc))},n.onblocked=function(n){r(Error(bc))},n.onupgradeneeded=function(n){r(Error(bc))},n[Wu]=function(n){D(i,"["+o+"] complete"),e(!0)},D(i,"["+o+"] started")}catch(t){r(Error(bc+" - "+t))}},0)})})},n.getDbDetails=function(o){return _c(o,"getDbDetails",function(n){return null!=y&&y.databases?X(function(e,r){y.databases()[S](function(n){for(var t=0;t<n[J];t++)if(n[t].name===o)return void e(n[t]);r(Error("DBError: Database does not exist"))},r)}):Sr(Error("DBError: Feature not supported"))},2e3)}})}Ec.__ieDyn=1;var Oc=Ec;function Ec(n){var c=[],a=null;k(Ec,this,function(u){u.keyRange=function(){return a},u.parseQuery=function(n){if(c=[],n)for(var t=n[gu](";"),e=0;e<t[J];e++){var r,o=t[e],i=o[Eu]("=");-1!==i&&(r=o.substring(0,i),i=o.substring(i+1),0===r[Eu]("#")&&(r=r.substring(1),a=a||IDBKeyRange.bound(i,i+"￿")),u.startsWith(r,i))}},u.startsWith=function(n,t){c[W]({name:n,value:t,type:0})},u.contains=function(n,t){c[W]({name:n,value:t,type:1})},u.isMatch=function(n){if(!c||0===c[J])return!0;if(!n)return!1;for(var t=0;t<c[J];t++){var e=c[t],r=n[e.name];if(r)if(0===e.type){if(r.indexOf(e[yu]))return!1}else if(1===e.type&&!~r.indexOf(e[yu]))return!1}return!0},n&&u.parseQuery(n)})}var Pc="DBError: Unable to add event",Tc="Evts";function Ic(){return(new Date)[Fu]()}function kc(n){for(var t=[],e=0;e<n[J];e++){var r=n[e];r&&r.evt&&t[W](r.evt)}return t}function Nc(t){return function(n){return t[Ju]()}}function Ac(n,t,r){return n.openCursor(Tc,t,function(n,t,e){return e[W](t),r&&e&&e[J]==r?2:0})}function Rc(n,t,r){return n.openCursor(Tc,t,function(n,t,e){return r(t)?(e[W](t),(e=(t=n).cursor["delete"]())[$u]=Nc(t),e[Wu]=Nc(t),1):0})}Mc.__ieDyn=1;var Bc=Mc;function Mc(n,y){k(Mc,this,function(o){var i,u,c=null,a=null,f="Unknown",l=null,s=null,d=null,v=null,g=null,h=null;function p(o){return c.openDb(a,1,function(r){return X(function(n,t){var e={iKey:f,id:s,storageId:l};r.ctx=e,ur(o(r),n,t)})},function(o){return X(function(n,t){try{(e=o.db).objectStoreNames.contains(Tc)||e.createObjectStore(Tc,{keyPath:"id"}).createIndex("criticalCnt","criticalCnt",{unique:!1})}catch(r){t(r)}var e;n()})})}o.id=n,o[Q]=function(n){var t=n.itemCtx[hu]();if(!(c=new Sc(t))[Vu]())return c=null,!1;var e,r=n.itemCtx.getCfg(),r=n.itemCtx.getCfg()[Mu]||r[Mu];return en(r)?(f=r,e=n[pu],l=o.id||n.id||(r=wi(),jn(r,0,8)+"-"+jn(r,8,12)+"-"+jn(r,12,16)+"-"+jn(r,16,20)+"-"+jn(r,20)),h=n[ju],s=tc(n.endpoint),i=!!e.autoClean,u=e.storageKeyPrefix||"AIOffline",a=u+"_1_"+s,r=ri(e,function(){d=e.inStorageMaxTime||6048e5;var n=e[Qu];v=Wr(n)?n:10,g=e[Gu]||2}),y&&y.add(r),a&&N(o.clean(!i),function(n){p(function(n){return!0})[S](function(n){},function(n){t.warnToConsole("IndexedDbProvider failed to initialize - "+(n||"<unknown>")),c=null})}),!0):void 0},o._getDbgPlgTargets=function(){return[a,s,d,c]},o[Zu]=function(){return!1},o.getAllEvents=function(r){return null!=c&&c[Vu]()?p(function(e){return X(function(t,n){Ac(e,null,r)[S](function(n){t(kc(n))},n)})}):[]},o[Cu]=function(){return null!=c&&c[Vu]()?p(function(e){return X(function(t,n){Ac(e,null,1)[S](function(n){t(kc(n))},n)})}):[]},o[su]=function(t,e,n){return null!=c&&c[Vu]()?(e.id=e.id||oc(),e[Ru]=e[Ru]||0,p(function(n){return function s(a,f,l){return X(function(o,i){a.openStore(Tc,function(n){n=n.store.put(f);n[Wu]=function(n){o(f.evt)},n[$u]=function(n){function t(n){0===n&&i(Error(Pc)),s(a,f,!1)[S](function(n){o(f.evt)},function(){i(Error(Pc))})}var e,u,r,c;l?(e=function(n){0<n?t(n):i(Error(Pc))},u=a,r=g,c=v,X(function(n,t){var o=0;function i(){n(o)}u.openCursor(Tc,null,function(n,t,e){return t.evt[Ru]<=r&&(function(n,t){for(var e=0;e<n[J];e++)if(t.tm<n[e].tm)return n.splice(e,0,t);n[W](t)}(e,t),e[J]>c&&e.splice(e[J]-1,1)),0})[S](function(r){0===r[J]?i():u.openStore(Tc,function(n){for(var t=[],e=0;e<r[J];e++)t[W](function(e,r){return X(function(t){var n=e.store["delete"](r.key);n[Wu]=function(n){o++,t()},n[$u]=function(n){t()}})}(n,r[e]));return _r(t)[S](i,i)})},function(){n(0)})})[S](function(n){h&&n&&fc(h,n,2),e(n)},function(n){e(0)})):i(Error(Pc))}})["catch"](function(n){i(n)})})}(n,{id:t||e.id,evt:e,tm:Ic(),v:1},!0)})):e},o[xu]=function(o){if(null==c||!c[Vu]())return[];var i=[];return X(function(t,n){p(function(n){return n.openCursor(Tc,null,function(n,t,e){var r;return-1!==function(n,t){for(var e=t[J],r=0;r<e;r++)if(n===t[r].id)return r;return-1}(t.id,o)?((r=n.cursor["delete"]())[$u]=Nc(n),r[Wu]=function(){i[W](t.evt),n[Ju]()},1):0})})[S](function(){t(i)},function(n){t(i)})})},o[du]=function(n){return null==c||!c[Vu]()||n?[]:X(function(t,n){p(function(n){return Rc(n,null,function(n){return 1})})[S](function(n){t(kc(n))},function(n){t([])})})},o.clean=function(n){return!(null==c||!c[Vu]()||n)&&X(function(t,n){p(function(n){return n.isNew?[]:(e=n,r=d,X(function(t,n){return Rc(e,null,function(n){return!n||!n.evt||ic(n.id)<=Ic()+1-r})[S](function(n){t(n)},n)}));var e,r})[S](function(n){n=n&&n[J];h&&n&&fc(h,n,3),t(n&&0<n)},function(n){t(!1)})})},o[Du]=function(){c&&c.closeDb(a)}})}var jc="No provider is available",Lc=(Hc.__ieDyn=1,Hc);function Hc(i,c){k(Hc,this,function(n){var o,d,v,g,h,p;function e(){o=!1,p=h=v=d=null}function u(n,t){n=new vc(n,undefined,c);return n[Q](t)?n:null}e(),n[Q]=function(n){try{var t,e;o||(i||n.itemCtx[hu](),g=n.itemCtx,d=function(n){for(var t,e,r=n[pu].providers,o=null,i=0;!o&&i<r[J]&&i<2;)switch(r[i++]){case 1:o=u("localStorage",n),v=o;break;case 2:o=u("sessionStorage",n),v=o;break;case 3:t=n,e=void 0,o=e=(e=new Bc(undefined,c))[Q](t)?e:null,v=u("localStorage",n)}return o}(n),e=(t=n[pu]||{}).maxRetry,h=F(e)?2:e,p=(t.senderCfg||{}).retryCodes,d&&(o=!0))}catch(r){o=!1}return o},n._getDbgPlgTargets=function(){return[d,o,v]},n.storeBatch=function(e,c,n){var r=n?v:d;return Or(function(i,u){var n,t;return r||u(Error(jc)),(t=(n=e)[_u])&&(t=rn(t),n[Ou]=t),N(r[su](n.id,n,g),function(n){try{var t=n[yu]||n.reason||[],e=2,r={state:e=n[mu]?e:1,item:t};try{c&&c(r)}catch(o){}i(r)}catch(o){u(o)}})})},n[bu]=function(i,l,s,n){return Or(function(e,c){function a(n){try{i&&i(n)}catch(t){}e(n)}d||v||c(Error(jc));var t=d;try{if(!v)return r();N(v[Cu](),function(n){if(n&&!n[mu]){n=n[yu];if(n&&n[J])return t=v,o(n)}return r()})}catch(f){c(f)}function r(){return N(t[Cu](),function(n){try{return!n||n[mu]?void a({state:4,data:n.reason}):o(n[yu]||[])}catch(f){c(f)}})}function o(i){var u={state:1,data:null};if(i[J])return N(t[xu](i),function(n){if(n&&!n.rejected&&n[yu]){for(var t=n[yu],e=function(n){try{var o=i[n];return u[_u]=o,s&&s.sendPOST?(o[wu]++,{value:N((0,s.sendPOST)(o,function(n,t,e){var r;200==n?u[Su]=1:(n=n,(r=o)&&r[_u]&&(r[wu]=r[wu]||0,r[wu]<=h)&&(F(p)?401===n||403===n||408===n||429===n||500===n||502===n||503===n||504===n:p[J]&&-1<p[Eu](n))?(u[Su]=2,v&&v[su](o.id,o,g)):u[Su]=3),a(u)},l),function(n){})}):(u[Su]=3,a(u),{value:void 0})}catch(f){c(f)}},r=0;r<t[J];r++){var o=e(r);if("object"==typeof o)return o.value}return u[Su]=1,void a(u)}u[Su]=4,u[_u]=n.reason,a(u)});a(u)}})},n.hasStoredBatch=function(i){return Or(function(r,o){return d||o(Error(jc)),N(d[Cu](),function(n){try{var t=0<(n[yu]||[])[J];i&&i(t),r(t)}catch(e){o(e)}})})},n.cleanStorage=function(u){return Or(function(o,i){return d||i(Error(jc)),N(d[du](),function(n){try{var t=0,e={batchCnt:t=n[mu]?t:(n[yu]||[])[J]};u&&u(e),o(e)}catch(r){i(r)}})})},n[Du]=function(n,t){d&&d[Du](),e()}})}Uc.__ieDyn=1;var zc=Uc;function Uc(r,o,n,i){var u=n?[].concat(n):[];k(Uc,this,function(t){t.endpoint=function(){return o},t[su]=function(n){return!(!F(i)&&t.count()>=i||(u[W](n),0))},t.count=function(){return u[J]},t[du]=function(){u=[]},t[vu]=function(){return u.slice(0)},t[gu]=function(n,t){var e;return n<u[J]&&(e=u[J]-n,F(t)||(e=t<e?t:e),e=u.splice(n,e)),new Uc(r,o,e,i)},t.createNew=function(n,t,e){return new Uc(r,n,t,e)}})}var Fc="PostChannel",qc=(Vc.__ieDyn=1,Vc);function Vc(){var r,f,l,o,s,d,v,g,h,p,y;k(Vc,this,function(n,t){function c(n,t,e,r){try{n&&n(t,e,r)}catch(o){}}function a(n,t,e,r){c(n,206==t&&!h||204==t&&h?200:t,e,r)}function e(){n._appId=null,o=r=!1,p=g=d=null}e(),n.pause=function(){r=!0},n.resume=function(){r=r&&!1},n.getXhrInst=function(n){return v},n[Q]=function(n,i,t,e,u,r){s=e||i.logger,o&&$(s,1,28,"Sender is already initialized"),d=i;e=ri(n,function(n){var t,n=ki(null,n.cfg,i),e=n.getExtCfg("OfflineChannel"),r=(g=u||lu,n.getExtCfg(g,{})),e=e.senderCfg||{},n=(y=null,g==Fc&&(h=!0,(n=n.getExtCfg(Fc))&&n.fetchCredentials&&(y=n.fetchCredentials)),l=e.alwaysUseXhrOverride,f=!(!1===r.enableSendPromise),e.httpXHROverride||r.httpXHROverride),n=n&&n.sendPOST?n:null,o={enableSendPromise:f,isOneDs:h,disableCredentials:!n&&h,fetchCredentials:y,senderOnCompleteCallBack:{xdrOnComplete:function(n,t){var e,r=Zr(n);n&&(r+""=="200"||""===r)||(e=Hi(r,s))&&e.itemsAccepted?c(t,200,{},r):(e=Yr(n),r=t,$(s,2,26,"Failed to send telemetry.",{message:e}),c(r,400,{}))},fetchOnComplete:function(n,t,e){return a(t,n.status,{},e)},xhrOnComplete:function(n,t){var e=Zr(n);return a(t,n.status,{},e)}}},o=(p?p.SetConfig(o):(p=new Ui)[Q](o,s),null),r=(t=[1,2,3],(e=e.transports||r.transports||[])&&(on(e)?t=[e].concat(t):C(e)&&(t=e.concat(t))),t),o=p.getSenderInst(r,!1),e=p.getFallbackInst();v=(o=l?n:o||n||e)||e});r&&r.add(e)},n[Bu]=function(){var n=0;try{var t=d.getPlugin(g).plugin;if(t&&q(t[Bu])&&!t[Bu]())return!1;p&&(n=p.getSyncFetchPayload())}catch(e){}return!r&&0===n},n._doTeardown=function(n,t){e()}})}var Kc,Xc,$c=[au.Critical,au.Normal],Wc=undefined,Jc=(u={maxStorageSizeInBytes:{isVal:ec,v:5e6},storageKey:Wc,minPersistenceLevel:{isVal:function(n){return on(n)&&0<=n&&n<=au.Critical},v:au.Normal},providers:[1,3],indexedDbName:Wc,maxStorageItems:{isVal:ec,v:Wc},inMemoMaxTime:{isVal:ec,v:15e3},maxRetry:{isVal:ec,v:1},maxBatchsize:{isVal:ec,v:63e3},maxSentBatchInterval:{isVal:ec,v:15e3},primaryOnlineChannelId:[lu,"PostChannel"],overrideInstrumentationKey:Wc,senderCfg:{},splitEvts:!1},L?function Zc(n,e){if((C(n)||rn(n)||q(n))&&!_n(n)){for(var t=0;t<e.length;t++)if(e[t]===n)return n;e.push(n),V(n,function(n,t){Zc(t,e)}),On(n)}return n}(u,[]):u),u=(L=Kc=i,Ie(Xc=Gc,L),Xc[Pe]=(Qc[Pe]=L[Pe],new Qc),Gc.__ieDyn=1,Gc);function Qc(){this.constructor=Xc}function Gc(){var n=Kc.call(this)||this;return n.identifier="OfflineChannel",n.priority=1e3,n.version="0.4.0-nightlybeta3.2504-17",k(Gc,n,function(d,l){var c,v,u,g,a,t,h,p,y,m,b,C,x,_,w,S,e,D,O,E,P,T,I,r,k,N;function o(){v=c=!1,u=new qc,C=Wc,k=I=!1,N=r=P=E=O=D=S=_=x=w=b=m=y=p=a=g=null}function A(){t?t.enabled=!0:(t=Lt(function(){f(),n()&&t&&t[Au](),R()},h)).unref()}function f(f,l){try{var s=!1;K($c,function(n){var r,o,i,u,t,e=N[n],c=e,a=c&&c[vu]();a&&a[J]&&(k&&l&&l!==n?s=s||!!a[J]:(r=[],i=-1,u=o=0,K(a,function(n,t){i=t;var e=function(n){try{if(n)return D&&D.serialize(n,C)}catch(t){}return null}(n);o+=e[J],m<o||(n[Iu]==au.Critical&&u++,i=t,r[W](e))}),r[J]&&(t=a.slice(0,i+1),i+1<a[J]&&(s=!0),N[n]=e.createNew(y,_t(c[vu](),i+1),P),a=null,D&&D.createOneDSPayload?(a=D.createOneDSPayload(t))&&(a[Ru]=u):a=function(n,t){try{if(!D)return null;var e=t||0,r=D.batch(n),o=D.createPayload&&D.createPayload(r);if(o)return o[Ru]=e,o}catch(i){}return null}(r,u),a&&g&&g[Nu]&&B("storeBatch",g[Nu].storeBatch(a,function(n){if(!n||!n[Su])return null;2==n[Su]?f?L(t,zt.NonRetryableStatus):(K(t,function(n){M(n)}),A()):t&&t[J]&&j("offlineEventsStored",[t])},f)))))}),s||t&&t[Pu]()}catch(n){}}function R(){var n,t=a&&a.isOnline();b?t&&(b.enabled=!0,b[Au]()):(n=x?Bn(0,x-Fn()):0,n=Bn(_,n),(b=Lt(function(){t?q(u[Bu])&&!u[Bu]()?b&&b[Au]():g&&g[Nu]&&B("sendNextBatch",g.batchHandler[bu](function(n){var t=n&&n[Su],n=(1!==t&&w++,n&&n[_u]);1===t&&n&&(n&&n[_u]&&j("offlineBatchSent",[n]),b&&b[Au]()),3===t&&fc(T,1,1)},!1,S)):b&&b[Pu]()},n)).unref())}function i(){t&&t[Pu](),b&&b[Pu](),b=t=null}function B(n,t){e&&e.queue(function(){return t},n)["catch"](function(n){})}function H(n,t,e,r){n&&(n.extensionConfig=n.extensionConfig||{}),!r&&t&&(r=t.getProcessTelContext().getNext());var o=null,i=d._getTelCtx().getNext();return ki(r,n,t,o=i?i.getPlugin():o)}function z(n,t){return r||(n=ki(null,n,t).getExtCfg(d.identifier,Jc).primaryOnlineChannelId)&&n[J]&&K(n,function(n){n=t.getPlugin(n),n=n&&n.plugin;n&&(r=n)}),r}function n(){var t=!1;return V(N,function(n){n=N[n];if(n&&n.count())return t=!0,-1}),t}function M(n){var t=au.Normal;return k&&n[Iu]&&(t=n[Iu]),N[t][su](n)}function j(n,t){ac(T,n,t)}function L(n,t){n&&n[J]&&j("eventsDiscarded",[n,t])}o(),d[Q]=function(r,o,n,i){c||(l[Q](r,o,n),c=!0,p=d[hu](),n=ou(Bo("OfflineSender"),o.evtNamespace&&o.evtNamespace()),a=function(n){var t,e=ct(),r=ft(),o=!1,i=[],u=1,c=(!r||F(r.onLine)||r.onLine||(u=2),0),a=s(),f=ou(Bo("OfflineListener"),n);try{l(at())&&(o=!0),e&&(t=e.body||e).ononline&&l(t)&&(o=!0)}catch(h){o=!1}function l(n){var t=!1;return n&&(t=iu(n,"online",v,f))&&iu(n,"offline",g,f),t}function s(){return 2!==c&&2!==u}function d(){var n=s();a!==n&&(a=n,K(i,function(n){var t={isOnline:a,rState:u,uState:c};try{n(t)}catch(h){}}))}function v(){u=1,d()}function g(){u=2,d()}return{isOnline:function(){return a},isListening:function(){return o},unload:function(){var n=at();n&&o&&(fu(n,f),e&&!U((n=e.body||e).ononline)&&fu(n,f),o=!1)},addListener:function(t){return i.push(t),{rm:function(){var n=i.indexOf(t);if(-1<n)return i.splice(n,1)}}},setOnlineState:function(n){c=n,d()}}}(n),e=jr(X,"offline channel"),T=o.getNotifyMgr()),Lt(function(){try{var n,t=z(r,o);!I&&t&&t.isInitialized()&&(I=!0,f=r,l=o,s=i,d._addHook(ri(f,function(n){if(en(f[Mu])&&en(f.endpointUrl)){v&&d.resume();var n=ki(null,n.cfg,l),t=n.getExtCfg(d.identifier,Jc),e=z(f,l);if(e.isInitialized()&&q(e.getOfflineSupport)){D=e.getOfflineSupport(),e=q(D&&D.getUrl)&&D.getUrl(),E=t.overrideInstrumentationKey;var r=g,o=e||f.endpointUrl||y;if(o!==y){var e=H(f,l,0,s),i={itemCtx:e,storageConfig:t,id:d.id,endpoint:o,notificationMgr:T},u=g&&g[Nu];try{u&&u[Du]()}catch(a){}var u=new Lc(d[hu](),d._unloadHooks),c=(u[Q](i),r={iKey:f[Mu],url:o,minPersistenceCacheLevel:t.minPersistenceLevel,coreRootCtx:e,providerContext:i,batchHandler:u},P=t.eventsLimitInMem,N=N||{},{}),e=(K($c,function(n){var t,e,r=null;N&&N[n]&&(e=(t=N[n])&&t[vu]())&&e[J]&&(r=_t(e),t&&t[du]()),c[n]=new zc(d[hu](),o,r,P)}),N=c,h=t.inMemoMaxTime,n.getExtCfg(O,{})||{}),i=(C=e.convertUndefined,void(y=o)),e=(void 0===i&&(i=1),n=w<=1?10:(u=Nt((Math.pow(2,w)-1)/2*Math.random()*10)+1,Bn(Rn(u*=i,3600),10)),Fn()+1e3*n);x=e,_=t.maxSentBatchInterval,m=t.maxBatchsize,k=t.splitEvts}g=r,y=o}}else d.pause()})),n=H(r,o,0,i),u[Q](r,o,n,p,O,d._unloadHooks),S=u.getXhrInst(),a.addListener(function(n){n.isOnline?R():b&&b[Pu]()}),R())}catch(e){}var f,l,s},0)},d.processTelemetry=function(n,t){try{var e=a.isOnline();if(t=t||d._getTelCtx(t),e||!D||!y)return void d[Tu](n,t);if(c&&!v){var r=!0;if(!(r=q(D.shouldProcess)?D.shouldProcess(n):r))return void d[Tu](n,t);var o=n;return o[Iu]=o[Iu]||o.baseData&&o.baseData[Iu]||au.Normal,i=g,void(o[Iu]<i.minPersistenceCacheLevel||!N?L([o],zt.InvalidEvent):(E&&(o.iKey=E),M(o)||(f(!1,o[Iu]),M(o)||(L([n],zt.QueueFull),$(p,2,105,"Maximum offline in-memory buffer size reached",!0))),A()))}}catch(u){}var i;d[Tu](n,t)},d.pause=function(){v=!0,i(),w=0,x=null},d.resume=function(){v=!1,i(),A(),R()},d[ku]=function(){if(!v)for(;n();)f(!0)},d.flush=function(n,t,e){return d[ku]()},d.getOfflineListener=function(){return a},d[bu]=function(){return D&&R()},d._doTeardown=function(n,t){d[ku](),a&&(e=a)&&e[ne]&&e[ne](!1);var e=g&&g[Nu];e&&e[Du](),i(),o()},d._getDbgPlgTargets=function(){return[g,N,S,t,b]}}),n}n.BatchSendStatus=H,n.BatchStoreStatus=uu,n.InMemoryBatch=zc,n.IndexedDbProvider=Bc,n.OfflineBatchHandler=Lc,n.OfflineChannel=u,n.Sender=qc,n.StorageProviders=cu,n.StorageType=r,n.WebStorageProvider=vc});
6
6
  //# sourceMappingURL=applicationinsights-offlinechannel-js.min.js.map