(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[8],{"5jpu":function(e,t,i){"use strict";var n=i("OLIE");t.a=function(){return"undefined"===typeof navigator?n.a.Browser:navigator?navigator.standalone||matchMedia("(display-mode: standalone)").matches?n.a.Installed:n.a.Browser:n.a.Unknown}},DnYU:function(e,t,i){"use strict";var n;!function(e){e.PageLoad="PageLoad",e.ExpressionSolve_Start="ExpressionSolve_Start",e.ImmersiveReader_Viewed="ImmersiveReader_Viewed",e.LandingPageVideo_Click="LandingPageVideo_Click",e.MathInput_ImportError="MathInput_ImportError",e.MathInput_KeyboardButtonClick="MathInput_KeyboardButtonClick",e.MathInput_KeyboardSubmission="MathInput_KeyboardSubmission",e.Keyboard_KeyClicked="Keyboard_KeyClicked",e.Keyboard_TabChanged="Keyboard_TabChanged",e.MathSteps_ActionButtonClicked="MathSteps_ActionButtonClicked",e.MathSteps_StepClicked="MathSteps_StepClicked",e.MathSteps_StepsOpened="MathSteps_StepsOpened",e.MathSteps_TemplateDropdownOpened="MathSteps_TemplateDropdownOpened",e.MathSteps_TemplateDropdownClosed="MathSteps_TemplateDropdownClosed",e.NotebookExample_OnClick="NotebookExample_OnClick",e.PWA_Installed="PWA_Installed",e.PWA_InstallPromptApproved="PWA_InstallPromptApproved",e.PWA_InstallPromptDeclined="PWA_InstallPromptDeclined",e.PWA_InstallPromptShown="PWA_InstallPromptShown",e.RelatedContent_Engagement="RelatedContent_Engagement",e.Quiz_Complete="Quiz_Complete",e.Quiz_GenerationComplete="Quiz_GenerationComplete",e.Quiz_HintViewed="Quiz_HintViewed",e.Quiz_ProblemAnswered="Quiz_ProblemAnswered",e.Quiz_New="Quiz_New",e.Quiz_Start="Quiz_Start",e.Share_Interaction="Share_Interaction",e.Topic_LinkClicked="Topic_LinkClicked",e.UpsellBanner_DismissMobile="UpsellBanner_DismissMobile",e.UpsellBanner_MobileInstallClick="UpsellBanner_MobileInstallClick",e.SketchInputPage_RecognizeError="SketchInputPage_RecognizeError",e.ExpressionSolve_Success="ExpressionSolve_Success",e.ExpressionSolve_Error="ExpressionSolve_Error",e.ExpressionSolve_Retry="ExpressionSolve_Retry",e.LocalizedString_Error="LocalizedString_Error",e.Upsell_Impression="Upsell_Impression",e.Upsell_Click="Upsell_Click",e.Survey_Input="Survey_Input",e.SimilarProblem_Requery="SimilarProblem_Requery",e.Math_ExperienceOpened="Math_ExperienceOpened",e.Math_ExpressionSolved="Math_ExpressionSolved",e.Math_ImageRecognized="Math_ImageRecognized",e.ServiceError="ServiceError"}(n||(n={})),t.a=n},JBGY:function(e,t,i){"use strict";var n=i("1OyB"),r=i("vuIU"),o=i("rePB"),s=i("O0rQ"),a=i("DnYU"),u=i("5jpu"),d=i("cH6d"),c=i("eF4C");function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function _(e){for(var t=1;t2?{language:t[1],page:t[2]||"/"}:{language:"unknown",page:"unknown"}}(window.location.pathname);return{Host:window.location.host,Language:e.language,Page:e.page,PlatformClient:"".concat(this.capitalize(this.clientType),"-").concat(Object(c.c)()),LaunchMode:Object(u.a)()}}}]),e}();t.a=new p},O0rQ:function(e,t,i){var n;n=function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.i=function(e){return e},i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=30)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.String=1]="String",e[e.Int64=2]="Int64",e[e.Double=3]="Double",e[e.Boolean=4]="Boolean",e[e.Date=5]="Date"}(t.AWTPropertyType||(t.AWTPropertyType={})),function(e){e[e.NotSet=0]="NotSet",e[e.DistinguishedName=1]="DistinguishedName",e[e.GenericData=2]="GenericData",e[e.IPV4Address=3]="IPV4Address",e[e.IPv6Address=4]="IPv6Address",e[e.MailSubject=5]="MailSubject",e[e.PhoneNumber=6]="PhoneNumber",e[e.QueryString=7]="QueryString",e[e.SipAddress=8]="SipAddress",e[e.SmtpAddress=9]="SmtpAddress",e[e.Identity=10]="Identity",e[e.Uri=11]="Uri",e[e.Fqdn=12]="Fqdn",e[e.IPV4AddressLegacy=13]="IPV4AddressLegacy"}(t.AWTPiiKind||(t.AWTPiiKind={})),function(e){e[e.NotSet=0]="NotSet",e[e.GenericContent=1]="GenericContent"}(t.AWTCustomerContentKind||(t.AWTCustomerContentKind={})),function(e){e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Immediate_sync=5]="Immediate_sync"}(t.AWTEventPriority||(t.AWTEventPriority={})),function(e){e[e.NonRetryableStatus=1]="NonRetryableStatus",e[e.QueueFull=3]="QueueFull"}(t.AWTEventsDroppedReason||(t.AWTEventsDroppedReason={})),function(e){e[e.InvalidEvent=1]="InvalidEvent",e[e.SizeLimitExceeded=2]="SizeLimitExceeded",e[e.KillSwitch=3]="KillSwitch"}(t.AWTEventsRejectedReason||(t.AWTEventsRejectedReason={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(4),r=i(0),o=/[xy]/g,s=null;t.EventNameAndTypeRegex=/^[a-zA-Z]([a-zA-Z0-9]|_){2,98}[a-zA-Z0-9]$/,t.EventNameDotRegex=/\./g,t.PropertyNameRegex=/^[a-zA-Z](([a-zA-Z0-9|_|\.]){0,98}[a-zA-Z0-9])?$/,t.StatsApiKey="a387cfcf60114a43a7699f9fbb49289e-9bceb9fe-1c06-460f-96c5-6a0b247358bc-7238";var a=s,u=s,d=s;function c(e){return"string"===typeof e}function l(e){return"number"===typeof e}function _(e){return"boolean"===typeof e}function p(e){return e instanceof Date}function h(e){return 1e4*(e+621355968e5)}function f(){return!("undefined"===typeof navigator||!navigator.product)&&"ReactNative"===navigator.product}function v(e){return e<10?"0"+e:e.toString()}function y(e){return void 0===e||e===s||""===e}t.numberToBondInt64=function(e){var t=new n.Int64("0");return t.low=4294967295&e,t.high=Math.floor(e/4294967296),t},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(o,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},t.isString=c,t.isNumber=l,t.isBoolean=_,t.isDate=p,t.msToTicks=h,t.getTenantId=function(e){var t=e.indexOf("-");return t>-1?e.substring(0,t):""},t.isBeaconsSupported=function(){return a===s&&(a="undefined"!==typeof navigator&&Boolean(navigator.sendBeacon)),a},t.isUint8ArrayAvailable=function(){return u===s&&(u="undefined"!==typeof Uint8Array&&!function(){if("undefined"!==typeof navigator&&navigator.userAgent){var e=navigator.userAgent.toLowerCase();if((e.indexOf("safari")>=0||e.indexOf("firefox")>=0)&&e.indexOf("chrome")<0)return!0}return!1}()&&!f()),u},t.isPriority=function(e){return!(!l(e)||!(e>=1&&e<=3||5===e))},t.sanitizeProperty=function(e,i){return!t.PropertyNameRegex.test(e)||y(i)?s:(y(i.value)&&(i={value:i,type:r.AWTPropertyType.Unspecified}),i.type=function(e,t){switch(t=function(e){return!!(l(e)&&e>=0&&e<=4)}(t)?t:r.AWTPropertyType.Unspecified){case r.AWTPropertyType.Unspecified:return function(e){switch(typeof e){case"string":return r.AWTPropertyType.String;case"boolean":return r.AWTPropertyType.Boolean;case"number":return r.AWTPropertyType.Double;case"object":return p(e)?r.AWTPropertyType.Date:s}return s}(e);case r.AWTPropertyType.String:return c(e)?t:s;case r.AWTPropertyType.Boolean:return _(e)?t:s;case r.AWTPropertyType.Date:return p(e)&&NaN!==e.getTime()?t:s;case r.AWTPropertyType.Int64:return l(e)&&e%1===0?t:s;case r.AWTPropertyType.Double:return l(e)?t:s}return s}(i.value,i.type),i.type?(p(i.value)&&(i.value=h(i.value.getTime())),i.pii>0&&i.cc>0?s:i.pii?l(n=i.pii)&&n>=0&&n<=13?i:s:i.cc?function(e){return!!(l(e)&&e>=0&&e<=1)}(i.cc)?i:s:i):s);var n},t.getISOString=function(e){return e.getUTCFullYear()+"-"+v(e.getUTCMonth()+1)+"-"+v(e.getUTCDate())+"T"+v(e.getUTCHours())+":"+v(e.getUTCMinutes())+":"+v(e.getUTCSeconds())+"."+(((t=e.getUTCMilliseconds())<10?"00"+t:t<100?"0"+t:t.toString())+"Z");var t},t.useXDomainRequest=function(){if(d===s){var e=new XMLHttpRequest;d="undefined"===typeof e.withCredentials&&"undefined"!==typeof XDomainRequest}return d},t.isReactNative=f},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.addNotificationListener=function(e){this.listeners.push(e)},e.removeNotificationListener=function(e){for(var t=this.listeners.indexOf(e);t>-1;)this.listeners.splice(t,1),t=this.listeners.indexOf(e)},e.eventsSent=function(e){for(var t=this,i=function(i){n.listeners[i].eventsSent&&setTimeout((function(){return t.listeners[i].eventsSent(e)}),0)},n=this,r=0;r=0&&!this._paused&&(this._eventHandler.hasEvents()?(0===t&&this._currentBackoffCount>0&&(t=1),this._timeout=setTimeout((function(){return e._batchAndSendEvents()}),t*(1<=0;--i)if(e[t][i]<0){for(var n=i;n>=0;--n)e[t][n]=-1;break}for(i=2;i>0;--i)if(e[t][i]>0&&e[t][i-1]>0){var r=e[t][i-1]/e[t][i];e[t][i-1]=Math.ceil(r)*e[t][i]}this._profiles[t]=e[t]}},e.sendEvent=function(e){this._newEventsAllowed&&(this._currentBackoffCount>0&&e.priority===r.AWTEventPriority.Immediate_sync&&(e.priority=r.AWTEventPriority.High),this._eventHandler.addEvent(e),this.scheduleTimer())},e.flush=function(e){var t=(new Date).getTime();!this._paused&&this._lastUploadNowCall+3e4-1&&(clearTimeout(this._timeout),this._timeout=-1),this._eventHandler.uploadNow(e))},e.pauseTransmission=function(){this._paused||(this.clearTimeout(),this._eventHandler.pauseTransmission(),this._paused=!0)},e.resumeTransmision=function(){this._paused&&(this._paused=!1,this._eventHandler.resumeTransmission(),this.scheduleTimer())},e.flushAndTeardown=function(){s.default.teardown(),this._newEventsAllowed=!1,this.clearTimeout(),this._eventHandler.teardown()},e.backOffTransmission=function(){this._currentBackoffCount<4&&(this._currentBackoffCount++,this.clearTimeout(),this.scheduleTimer())},e.clearBackOff=function(){this._currentBackoffCount>0&&(this._currentBackoffCount=0,this.clearTimeout(),this.scheduleTimer())},e._resetTransmitProfiles=function(){this.clearTimeout(),this._initializeProfiles(),this._currentProfile=n.AWT_REAL_TIME,this.scheduleTimer()},e.clearTimeout=function(){this._timeout>0&&(clearTimeout(this._timeout),this._timeout=-1,this._timerCount=0)},e._batchAndSendEvents=function(){var e=r.AWTEventPriority.High;this._timerCount++,this._timerCount*this._profiles[this._currentProfile][2]===this._profiles[this._currentProfile][0]?(e=r.AWTEventPriority.Low,this._timerCount=0):this._timerCount*this._profiles[this._currentProfile][2]===this._profiles[this._currentProfile][1]&&(e=r.AWTEventPriority.Normal),this._eventHandler.sendEventsForPriorityAndAbove(e),this._timeout=-1,this.scheduleTimer()},e._initializeProfiles=function(){this._profiles={},this._profiles[n.AWT_REAL_TIME]=[4,2,1],this._profiles[n.AWT_NEAR_REAL_TIME]=[12,6,3],this._profiles[n.AWT_BEST_EFFORT]=[36,18,9]},e._newEventsAllowed=!1,e._currentProfile=n.AWT_REAL_TIME,e._timeout=-1,e._currentBackoffCount=0,e._paused=!1,e._timerCount=0,e._lastUploadNowCall=0,e}();t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.low=0,this.high=0,this.low=parseInt(e,10),this.low<0&&(this.high=-1)}return e.prototype._Equals=function(t){var i=new e(t);return this.low===i.low&&this.high===i.high},e}();t.Int64=n;var r=function(){function e(e){this.low=0,this.high=0,this.low=parseInt(e,10)}return e.prototype._Equals=function(t){var i=new e(t);return this.low===i.low&&this.high===i.high},e}();t.UInt64=r;var o=function(){function e(){}return e._ToByte=function(e){return this._ToUInt8(e)},e._ToUInt8=function(e){return 255&e},e._ToInt32=function(e){return 2147483647&e|2147483648&e},e._ToUInt32=function(e){return 4294967295&e},e}();t.Number=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),r=i(0),o=function(){function e(e){this._event={name:"",properties:{}},e&&this.setName(e)}return e.prototype.setName=function(e){this._event.name=e},e.prototype.getName=function(){return this._event.name},e.prototype.setType=function(e){this._event.type=e},e.prototype.getType=function(){return this._event.type},e.prototype.setTimestamp=function(e){this._event.timestamp=e},e.prototype.getTimestamp=function(){return this._event.timestamp},e.prototype.setEventPriority=function(e){this._event.priority=e},e.prototype.getEventPriority=function(){return this._event.priority},e.prototype.setProperty=function(e,t,i){void 0===i&&(i=r.AWTPropertyType.Unspecified);var o={value:t,type:i,pii:r.AWTPiiKind.NotSet,cc:r.AWTCustomerContentKind.NotSet};null!==(o=n.sanitizeProperty(e,o))?this._event.properties[e]=o:delete this._event.properties[e]},e.prototype.setPropertyWithPii=function(e,t,i,o){void 0===o&&(o=r.AWTPropertyType.Unspecified);var s={value:t,type:o,pii:i,cc:r.AWTCustomerContentKind.NotSet};null!==(s=n.sanitizeProperty(e,s))?this._event.properties[e]=s:delete this._event.properties[e]},e.prototype.setPropertyWithCustomerContent=function(e,t,i,o){void 0===o&&(o=r.AWTPropertyType.Unspecified);var s={value:t,type:o,pii:r.AWTPiiKind.NotSet,cc:i};null!==(s=n.sanitizeProperty(e,s))?this._event.properties[e]=s:delete this._event.properties[e]},e.prototype.getPropertyMap=function(){return this._event.properties},e.prototype.getEvent=function(){return this._event},e}();t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unknown=0]="Unknown",e[e.MSACID=1]="MSACID",e[e.MSAPUID=2]="MSAPUID",e[e.ANID=3]="ANID",e[e.OrgIdCID=4]="OrgIdCID",e[e.OrgIdPUID=5]="OrgIdPUID",e[e.UserObjectId=6]="UserObjectId",e[e.Skype=7]="Skype",e[e.Yammer=8]="Yammer",e[e.EmailAddress=9]="EmailAddress",e[e.PhoneNumber=10]="PhoneNumber",e[e.SipAddress=11]="SipAddress",e[e.MUID=12]="MUID"}(t.AWTUserIdType||(t.AWTUserIdType={})),function(e){e[e.Started=0]="Started",e[e.Ended=1]="Ended"}(t.AWTSessionState||(t.AWTSessionState={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),r="MicrosoftApplicationsTelemetryDeviceId",o="MicrosoftApplicationsTelemetryFirstLaunchTime",s="MSIE",a="Chrome",u="Firefox",d="Safari",c="Edge",l="Electron",_="SkypeShell",p="PhantomJS",h="Opera",f="Windows",v="Mac OS X",y="Windows Phone",g="Windows RT",T="iOS",m="Android",S="Linux",A="Chrome OS",P=/(windows|win32)/i,I=/ arm;/i,E=/windows\sphone\s\d+\.\d+/i,W=/(macintosh|mac os x)/i,w=/(iPad|iPhone|iPod)(?=.*like Mac OS X)/i,b=/(linux|joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)/i,B=/android/i,C=/CrOS/i,O={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},R="([\\d,.]+)",D="Unknown",k="undefined",M=function(){function e(){}return e.addPropertyStorageOverride=function(e){return!!e&&(this._propertyStorage=e,!0)},e.autoCollect=function(e,t,i){if(this._semanticContext=e,this._disableCookies=t,this._autoCollect(),i||typeof navigator===k||(i=navigator.userAgent||""),this._autoCollectFromUserAgent(i),this._disableCookies&&!this._propertyStorage)return this._deleteCookie(r),void this._deleteCookie(o);(this._propertyStorage||this._areCookiesAvailable&&!this._disableCookies)&&this._autoCollectDeviceId()},e.checkAndSaveDeviceId=function(e){if(e){var t=this._getData(r),i=this._getData(o);t!==e&&(i=n.getISOString(new Date)),this._saveData(r,e),this._saveData(o,i),this._setFirstLaunchTime(i)}},e._autoCollectDeviceId=function(){var e=this._getData(r);e||(e=n.newGuid()),this._semanticContext.setDeviceId(e)},e._autoCollect=function(){typeof document!==k&&document.documentElement&&this._semanticContext.setAppLanguage(document.documentElement.lang),typeof navigator!==k&&this._semanticContext.setUserLanguage(navigator.userLanguage||navigator.language);var e=(new Date).getTimezoneOffset(),t=e%60,i=(e-t)/60,n="+";i>0&&(n="-"),i=Math.abs(i),t=Math.abs(t),this._semanticContext.setUserTimeZone(n+(i<10?"0"+i:i.toString())+":"+(t<10?"0"+t:t.toString()))},e._autoCollectFromUserAgent=function(e){if(e){var t=this._getBrowserName(e);this._semanticContext.setDeviceBrowserName(t),this._semanticContext.setDeviceBrowserVersion(this._getBrowserVersion(e,t));var i=this._getOsName(e);this._semanticContext.setDeviceOsName(i),this._semanticContext.setDeviceOsVersion(this._getOsVersion(e,i))}},e._getBrowserName=function(e){return this._userAgentContainsString("OPR/",e)?h:this._userAgentContainsString(p,e)?p:this._userAgentContainsString(c,e)?c:this._userAgentContainsString(l,e)?l:this._userAgentContainsString(a,e)?a:this._userAgentContainsString("Trident",e)?s:this._userAgentContainsString(u,e)?u:this._userAgentContainsString(d,e)?d:this._userAgentContainsString(_,e)?_:D},e._setFirstLaunchTime=function(e){if(!isNaN(e)){var t=new Date;t.setTime(parseInt(e,10)),e=n.getISOString(t)}this.firstLaunchTime=e},e._userAgentContainsString=function(e,t){return t.indexOf(e)>-1},e._getBrowserVersion=function(e,t){return t===s?this._getIeVersion(e):this._getOtherVersion(t,e)},e._getIeVersion=function(e){var t=e.match(new RegExp(s+" "+R));if(t)return t[1];var i=e.match(new RegExp("rv:([\\d,.]+)"));return i?i[1]:void 0},e._getOtherVersion=function(e,t){e===d&&(e="Version");var i=t.match(new RegExp(e+"/"+R));return i?i[1]:D},e._getOsName=function(e){return e.match(E)?y:e.match(I)?g:e.match(w)?T:e.match(B)?m:e.match(b)?S:e.match(W)?v:e.match(P)?f:e.match(C)?A:D},e._getOsVersion=function(e,t){return t===f?this._getGenericOsVersion(e,"Windows NT"):t===m?this._getGenericOsVersion(e,t):t===v?this._getMacOsxVersion(e):D},e._getGenericOsVersion=function(e,t){var i=e.match(new RegExp(t+" "+R));return i?O[i[1]]?O[i[1]]:i[1]:D},e._getMacOsxVersion=function(e){var t=e.match(new RegExp(v+" ([\\d,_,.]+)"));if(t){var i=t[1].replace(/_/g,".");if(i){var n=this._getDelimiter(i);return n?i.split(n)[0]:i}}return D},e._getDelimiter=function(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null},e._saveData=function(e,t){if(this._propertyStorage)this._propertyStorage.setProperty(e,t);else if(this._areCookiesAvailable){var i=new Date;i.setTime(i.getTime()+31536e6);var n="expires="+i.toUTCString();document.cookie=e+"="+t+"; "+n}},e._getData=function(e){if(this._propertyStorage)return this._propertyStorage.getProperty(e)||"";if(this._areCookiesAvailable){e+="=";for(var t=document.cookie.split(";"),i=0;i=0&&i<=12)this._addContext(s,i.toString());else{var n=void 0;switch(t){case r.AWTPiiKind.SipAddress:n=o.AWTUserIdType.SipAddress;break;case r.AWTPiiKind.PhoneNumber:n=o.AWTUserIdType.PhoneNumber;break;case r.AWTPiiKind.SmtpAddress:n=o.AWTUserIdType.EmailAddress;break;default:n=o.AWTUserIdType.Unknown}this._addContext(s,n.toString())}if(isNaN(t)||null===t||t===r.AWTPiiKind.NotSet||t>13)switch(i){case o.AWTUserIdType.Skype:t=r.AWTPiiKind.Identity;break;case o.AWTUserIdType.EmailAddress:t=r.AWTPiiKind.SmtpAddress;break;case o.AWTUserIdType.PhoneNumber:t=r.AWTPiiKind.PhoneNumber;break;case o.AWTUserIdType.SipAddress:t=r.AWTPiiKind.SipAddress;break;default:t=r.AWTPiiKind.NotSet}this._addContextWithPii("UserInfo.Id",e,t)},e.prototype.setUserAdvertisingId=function(e){this._addContext("UserInfo.AdvertisingId",e)},e.prototype.setUserTimeZone=function(e){this._addContext("UserInfo.TimeZone",e)},e.prototype.setUserLanguage=function(e){this._addContext("UserInfo.Language",e)},e.prototype._addContext=function(e,t){"string"===typeof t&&this._properties.setProperty(e,t)},e.prototype._addContextWithPii=function(e,t,i){"string"===typeof t&&this._properties.setPropertyWithPii(e,t,i)},e}();t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(21),r=i(0),o=i(2),s=i(1),a=2936012,u=function(){function e(){}return e.getPayloadBlob=function(e,t){var i,u=!1,d=new n.IO.MemoryStream,c=new n.CompactBinaryProtocolWriter(d);for(var l in c._WriteFieldBegin(n._BondDataType._BT_MAP,3,null),c._WriteMapContainerBegin(t,n._BondDataType._BT_STRING,n._BondDataType._BT_LIST),e)if(u)i||(i={}),i[l]=e[l],delete e[l];else if(e.hasOwnProperty(l)){c._WriteString(l);var _=e[l];c._WriteContainerBegin(1,n._BondDataType._BT_STRUCT),c._WriteFieldBegin(n._BondDataType._BT_STRING,2,null),c._WriteString("act_default_source"),c._WriteFieldBegin(n._BondDataType._BT_STRING,5,null),c._WriteString(s.newGuid()),c._WriteFieldBegin(n._BondDataType._BT_INT64,6,null),c._WriteInt64(s.numberToBondInt64(Date.now())),c._WriteFieldBegin(n._BondDataType._BT_LIST,8,null);var p=d._GetBuffer().length+1;c._WriteContainerBegin(e[l].length,n._BondDataType._BT_STRUCT);for(var h=d._GetBuffer().length-p,f=0;f<_.length;++f){var v=d._GetBuffer().length;if(this.writeEvent(_[f],c),d._GetBuffer().length-v>a)o.default.eventsRejected([_[f]],r.AWTEventsRejectedReason.SizeLimitExceeded),_.splice(f--,1),d._GetBuffer().splice(v),this._addNewDataPackageSize(_.length,d,h,p);else if(d._GetBuffer().length>a){d._GetBuffer().splice(v),i||(i={}),e[l]=_.splice(0,f),i[l]=_,this._addNewDataPackageSize(e[l].length,d,h,p),u=!0;break}}c._WriteStructEnd(!1)}return c._WriteStructEnd(!1),{payloadBlob:d._GetBuffer(),remainingRequest:i}},e._addNewDataPackageSize=function(e,t,i,r){for(var o=n._Encoding._Varint_GetBytes(n.Number._ToUInt32(e)),s=0;s0)y[T]=S,g++;else if(S.pii>0)f[T]=S,v++;else switch(S.type){case r.AWTPropertyType.String:i[T]=S.value,o++;break;case r.AWTPropertyType.Int64:a[T]=S.value,u++;break;case r.AWTPropertyType.Double:d[T]=S.value,c++;break;case r.AWTPropertyType.Boolean:l[T]=S.value,_++;break;case r.AWTPropertyType.Date:p[T]=S.value,h++}if(o)for(var T in t._WriteFieldBegin(n._BondDataType._BT_MAP,13,null),t._WriteMapContainerBegin(o,n._BondDataType._BT_STRING,n._BondDataType._BT_STRING),i)if(i.hasOwnProperty(T)){var m=i[T];t._WriteString(T),t._WriteString(m.toString())}if(v)for(var T in t._WriteFieldBegin(n._BondDataType._BT_MAP,30,null),t._WriteMapContainerBegin(v,n._BondDataType._BT_STRING,n._BondDataType._BT_STRUCT),f)if(f.hasOwnProperty(T)){var S=f[T];t._WriteString(T),t._WriteFieldBegin(n._BondDataType._BT_INT32,1,null),t._WriteInt32(1),t._WriteFieldBegin(n._BondDataType._BT_INT32,2,null),t._WriteInt32(S.pii),t._WriteFieldBegin(n._BondDataType._BT_STRING,3,null),t._WriteString(S.value.toString()),t._WriteStructEnd(!1)}if(_)for(var T in t._WriteFieldBegin(n._BondDataType._BT_MAP,31,null),t._WriteMapContainerBegin(_,n._BondDataType._BT_STRING,n._BondDataType._BT_BOOL),l)l.hasOwnProperty(T)&&(m=l[T],t._WriteString(T),t._WriteBool(m));if(h)for(var T in t._WriteFieldBegin(n._BondDataType._BT_MAP,32,null),t._WriteMapContainerBegin(h,n._BondDataType._BT_STRING,n._BondDataType._BT_INT64),p)p.hasOwnProperty(T)&&(m=p[T],t._WriteString(T),t._WriteInt64(s.numberToBondInt64(m)));if(u)for(var T in t._WriteFieldBegin(n._BondDataType._BT_MAP,33,null),t._WriteMapContainerBegin(u,n._BondDataType._BT_STRING,n._BondDataType._BT_INT64),a)a.hasOwnProperty(T)&&(m=a[T],t._WriteString(T),t._WriteInt64(s.numberToBondInt64(m)));if(c)for(var T in t._WriteFieldBegin(n._BondDataType._BT_MAP,34,null),t._WriteMapContainerBegin(c,n._BondDataType._BT_STRING,n._BondDataType._BT_DOUBLE),d)d.hasOwnProperty(T)&&(m=d[T],t._WriteString(T),t._WriteDouble(m));if(g)for(var T in t._WriteFieldBegin(n._BondDataType._BT_MAP,36,null),t._WriteMapContainerBegin(g,n._BondDataType._BT_STRING,n._BondDataType._BT_STRUCT),y)y.hasOwnProperty(T)&&(S=y[T],t._WriteString(T),t._WriteFieldBegin(n._BondDataType._BT_INT32,1,null),t._WriteInt32(S.cc),t._WriteFieldBegin(n._BondDataType._BT_STRING,2,null),t._WriteString(S.value.toString()),t._WriteStructEnd(!1));t._WriteStructEnd(!1)},e.base64Encode=function(e){return n._Encoding._Base64_GetString(e)},e}();t.default=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),r=i(2),o=i(0),s=function(){function e(){}return e.initialize=function(e){var t=this;this._sendStats=e,this._isInitalized=!0,r.default.addNotificationListener({eventsSent:function(e){t._addStat("records_sent_count",e.length,e[0].apiKey)},eventsDropped:function(e,i){switch(i){case o.AWTEventsDroppedReason.NonRetryableStatus:t._addStat("d_send_fail",e.length,e[0].apiKey),t._addStat("records_dropped_count",e.length,e[0].apiKey);break;case o.AWTEventsDroppedReason.QueueFull:t._addStat("d_queue_full",e.length,e[0].apiKey)}},eventsRejected:function(e,i){switch(i){case o.AWTEventsRejectedReason.InvalidEvent:t._addStat("r_inv",e.length,e[0].apiKey);break;case o.AWTEventsRejectedReason.KillSwitch:t._addStat("r_kl",e.length,e[0].apiKey);break;case o.AWTEventsRejectedReason.SizeLimitExceeded:t._addStat("r_size",e.length,e[0].apiKey)}t._addStat("r_count",e.length,e[0].apiKey)},eventsRetrying:null}),setTimeout((function(){return t.flush()}),6e4)},e.teardown=function(){this._isInitalized&&(this.flush(),this._isInitalized=!1)},e.eventReceived=function(t){e._addStat("records_received_count",1,t)},e.flush=function(){var e=this;if(this._isInitalized){for(var t in this._stats)this._stats.hasOwnProperty(t)&&this._sendStats(this._stats[t],t);this._stats={},setTimeout((function(){return e.flush()}),6e4)}},e._addStat=function(e,t,i){if(this._isInitalized&&i!==n.StatsApiKey){var r=n.getTenantId(i);this._stats[r]||(this._stats[r]={}),this._stats[r][e]?this._stats[r][e]=this._stats[r][e]+t:this._stats[r][e]=t}},e._isInitalized=!1,e._stats={},e}();t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(6),o=i(12),s=i(13),a=i(3),u=i(2),d=i(7),c=function(){function e(){}return e.initialize=function(e,t){if(void 0===t&&(t={}),!this._isInitialized)return this._isInitialized=!0,o.default.defaultTenantToken=e,this._overrideValuesFromConfig(t),this._config.disableCookiesUsage&&!this._config.propertyStorageOverride&&(o.default.sessionEnabled=!1),d.default.addPropertyStorageOverride(this._config.propertyStorageOverride),d.default.autoCollect(o.default.semanticContext,this._config.disableCookiesUsage,this._config.userAgent),a.default.initialize(this._config),o.default.loggingEnabled=!0,this._config.enableAutoUserSession&&(this.getLogger().logSession(r.AWTSessionState.Started),window.addEventListener("beforeunload",this.flushAndTeardown)),this.getLogger()},e.getSemanticContext=function(){return o.default.semanticContext},e.flush=function(e){this._isInitialized&&!this._isDestroyed&&a.default.flush(e)},e.flushAndTeardown=function(){this._isInitialized&&!this._isDestroyed&&(this._config.enableAutoUserSession&&this.getLogger().logSession(r.AWTSessionState.Ended),a.default.flushAndTeardown(),o.default.loggingEnabled=!1,this._isDestroyed=!0)},e.pauseTransmission=function(){this._isInitialized&&!this._isDestroyed&&a.default.pauseTransmission()},e.resumeTransmision=function(){this._isInitialized&&!this._isDestroyed&&a.default.resumeTransmision()},e.setTransmitProfile=function(e){this._isInitialized&&!this._isDestroyed&&a.default.setTransmitProfile(e)},e.loadTransmitProfiles=function(e){this._isInitialized&&!this._isDestroyed&&a.default.loadTransmitProfiles(e)},e.setContext=function(e,t,i){void 0===i&&(i=n.AWTPropertyType.Unspecified),o.default.logManagerContext.setProperty(e,t,i)},e.setContextWithPii=function(e,t,i,r){void 0===r&&(r=n.AWTPropertyType.Unspecified),o.default.logManagerContext.setPropertyWithPii(e,t,i,r)},e.setContextWithCustomerContent=function(e,t,i,r){void 0===r&&(r=n.AWTPropertyType.Unspecified),o.default.logManagerContext.setPropertyWithCustomerContent(e,t,i,r)},e.getLogger=function(e){var t=e;return t&&t!==o.default.defaultTenantToken||(t=""),this._loggers[t]||(this._loggers[t]=new s.default(t)),this._loggers[t]},e.addNotificationListener=function(e){u.default.addNotificationListener(e)},e.removeNotificationListener=function(e){u.default.removeNotificationListener(e)},e._overrideValuesFromConfig=function(e){e.collectorUri&&(this._config.collectorUri=e.collectorUri),e.cacheMemorySizeLimitInNumberOfEvents>0&&(this._config.cacheMemorySizeLimitInNumberOfEvents=e.cacheMemorySizeLimitInNumberOfEvents),e.httpXHROverride&&e.httpXHROverride.sendPOST&&(this._config.httpXHROverride=e.httpXHROverride),e.propertyStorageOverride&&e.propertyStorageOverride.getProperty&&e.propertyStorageOverride.setProperty&&(this._config.propertyStorageOverride=e.propertyStorageOverride),e.userAgent&&(this._config.userAgent=e.userAgent),e.disableCookiesUsage&&(this._config.disableCookiesUsage=e.disableCookiesUsage),e.canSendStatEvent&&(this._config.canSendStatEvent=e.canSendStatEvent),e.enableAutoUserSession&&window.addEventListener&&(this._config.enableAutoUserSession=e.enableAutoUserSession),e.clockSkewRefreshDurationInMins>0&&(this._config.clockSkewRefreshDurationInMins=e.clockSkewRefreshDurationInMins)},e._loggers={},e._isInitialized=!1,e._isDestroyed=!1,e._config={collectorUri:"https://browser.pipe.aria.microsoft.com/Collector/3.0/",cacheMemorySizeLimitInNumberOfEvents:1e4,disableCookiesUsage:!1,canSendStatEvent:function(e){return!0},clockSkewRefreshDurationInMins:0},e}();t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(5),r=i(8),o=function(){function e(){}return e.logManagerContext=new n.default,e.sessionEnabled=!0,e.loggingEnabled=!1,e.defaultTenantToken="",e.semanticContext=new r.default(!0,e.logManagerContext),e}();t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(6),o=i(5),s=i(1),a=i(10),u=i(2),d=i(3),c=i(12),l=i(15),_=i(8),p=i(7),h=function(){function e(e){this._apiKey=e,this._contextProperties=new o.default,this._semanticContext=new _.default(!1,this._contextProperties),this._sessionStartTime=0,this._createInitId()}return e.prototype.setContext=function(e,t,i){void 0===i&&(i=n.AWTPropertyType.Unspecified),this._contextProperties.setProperty(e,t,i)},e.prototype.setContextWithPii=function(e,t,i,r){void 0===r&&(r=n.AWTPropertyType.Unspecified),this._contextProperties.setPropertyWithPii(e,t,i,r)},e.prototype.setContextWithCustomerContent=function(e,t,i,r){void 0===r&&(r=n.AWTPropertyType.Unspecified),this._contextProperties.setPropertyWithCustomerContent(e,t,i,r)},e.prototype.getSemanticContext=function(){return this._semanticContext},e.prototype.logEvent=function(t){if(c.default.loggingEnabled){this._apiKey||(this._apiKey=c.default.defaultTenantToken,this._createInitId());var i=!0;s.isString(t)?t={name:t}:t instanceof o.default&&(t=t.getEvent(),i=!1),a.default.eventReceived(this._apiKey),e._logEvent(e._getInternalEvent(t,this._apiKey,i),this._contextProperties)}},e.prototype.logSession=function(t,i){if(c.default.sessionEnabled){var o={name:"session",type:"session",properties:{}};if(e._addPropertiesToEvent(o,i),o.priority=n.AWTEventPriority.High,t===r.AWTSessionState.Started){if(this._sessionStartTime>0)return;this._sessionStartTime=(new Date).getTime(),this._sessionId=s.newGuid(),this.setContext("Session.Id",this._sessionId),o.properties["Session.State"]="Started"}else{if(t!==r.AWTSessionState.Ended)return;if(0===this._sessionStartTime)return;var a=Math.floor(((new Date).getTime()-this._sessionStartTime)/1e3);o.properties["Session.Id"]=this._sessionId,o.properties["Session.State"]="Ended",o.properties["Session.Duration"]=a.toString(),o.properties["Session.DurationBucket"]=e._getSessionDurationFromTime(a),this._sessionStartTime=0,this.setContext("Session.Id",null),this._sessionId=void 0}o.properties["Session.FirstLaunchTime"]=p.default.firstLaunchTime,this.logEvent(o)}},e.prototype.getSessionId=function(){return this._sessionId},e.prototype.logFailure=function(t,i,r,o,s){if(t&&i){var a={name:"failure",type:"failure",properties:{}};e._addPropertiesToEvent(a,s),a.properties["Failure.Signature"]=t,a.properties["Failure.Detail"]=i,r&&(a.properties["Failure.Category"]=r),o&&(a.properties["Failure.Id"]=o),a.priority=n.AWTEventPriority.High,this.logEvent(a)}},e.prototype.logPageView=function(t,i,n,r,o,s){if(t&&i){var a={name:"pageview",type:"pageview",properties:{}};e._addPropertiesToEvent(a,s),a.properties["PageView.Id"]=t,a.properties["PageView.Name"]=i,n&&(a.properties["PageView.Category"]=n),r&&(a.properties["PageView.Uri"]=r),o&&(a.properties["PageView.ReferrerUri"]=o),this.logEvent(a)}},e.prototype._createInitId=function(){!e._initIdMap[this._apiKey]&&this._apiKey&&(e._initIdMap[this._apiKey]=s.newGuid())},e._addPropertiesToEvent=function(e,t){if(t)for(var i in t instanceof o.default&&(t=t.getEvent()),t.name&&(e.name=t.name),t.priority&&(e.priority=t.priority),t.properties)t.properties.hasOwnProperty(i)&&(e.properties[i]=t.properties[i])},e._getSessionDurationFromTime=function(e){return e<0?"Undefined":e<=3?"UpTo3Sec":e<=10?"UpTo10Sec":e<=30?"UpTo30Sec":e<=60?"UpTo60Sec":e<=180?"UpTo3Min":e<=600?"UpTo10Min":e<=1800?"UpTo30Min":"Above30Min"},e._logEvent=function(e,t){e.name&&s.isString(e.name)?(e.name=e.name.toLowerCase(),e.name=e.name.replace(s.EventNameDotRegex,"_"),e.type&&s.isString(e.type)?e.type=e.type.toLowerCase():e.type="custom",s.EventNameAndTypeRegex.test(e.name)&&s.EventNameAndTypeRegex.test(e.type)?((!s.isNumber(e.timestamp)||e.timestamp<0)&&(e.timestamp=(new Date).getTime()),e.properties||(e.properties={}),this._addContextIfAbsent(e,t.getPropertyMap()),this._addContextIfAbsent(e,c.default.logManagerContext.getPropertyMap()),this._setDefaultProperty(e,"EventInfo.InitId",this._getInitId(e.apiKey)),this._setDefaultProperty(e,"EventInfo.Sequence",this._getSequenceId(e.apiKey)),this._setDefaultProperty(e,"EventInfo.SdkVersion",l.FullVersionString),this._setDefaultProperty(e,"EventInfo.Name",e.name),this._setDefaultProperty(e,"EventInfo.Time",new Date(e.timestamp).toISOString()),s.isPriority(e.priority)||(e.priority=n.AWTEventPriority.Normal),this._sendEvent(e)):u.default.eventsRejected([e],n.AWTEventsRejectedReason.InvalidEvent)):u.default.eventsRejected([e],n.AWTEventsRejectedReason.InvalidEvent)},e._addContextIfAbsent=function(e,t){if(t)for(var i in t)t.hasOwnProperty(i)&&(e.properties[i]||(e.properties[i]=t[i]))},e._setDefaultProperty=function(e,t,i){e.properties[t]={value:i,pii:n.AWTPiiKind.NotSet,type:n.AWTPropertyType.String}},e._sendEvent=function(e){d.default.sendEvent(e)},e._getInternalEvent=function(e,t,i){if(e.properties=e.properties||{},i)for(var n in e.properties)e.properties.hasOwnProperty(n)&&(e.properties[n]=s.sanitizeProperty(n,e.properties[n]),null===e.properties[n]&&delete e.properties[n]);var r=e;return r.id=s.newGuid(),r.apiKey=t,r},e._getInitId=function(t){return e._initIdMap[t]},e._getSequenceId=function(t){return void 0===e._sequenceIdMap[t]&&(e._sequenceIdMap[t]=0),(++e._sequenceIdMap[t]).toString()},e._sequenceIdMap={},e._initIdMap={},e}();t.default=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AWT_REAL_TIME="REAL_TIME",t.AWT_NEAR_REAL_TIME="NEAR_REAL_TIME",t.AWT_BEST_EFFORT="BEST_EFFORT"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Version="1.8.3",t.FullVersionString="AWT-Web-JS-"+t.Version},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0);t.AWTPropertyType=n.AWTPropertyType,t.AWTPiiKind=n.AWTPiiKind,t.AWTEventPriority=n.AWTEventPriority,t.AWTEventsDroppedReason=n.AWTEventsDroppedReason,t.AWTEventsRejectedReason=n.AWTEventsRejectedReason,t.AWTCustomerContentKind=n.AWTCustomerContentKind;var r=i(6);t.AWTUserIdType=r.AWTUserIdType,t.AWTSessionState=r.AWTSessionState;var o=i(14);t.AWT_BEST_EFFORT=o.AWT_BEST_EFFORT,t.AWT_NEAR_REAL_TIME=o.AWT_NEAR_REAL_TIME,t.AWT_REAL_TIME=o.AWT_REAL_TIME;var s=i(5);t.AWTEventProperties=s.default;var a=i(13);t.AWTLogger=a.default;var u=i(11);t.AWTLogManager=u.default;var d=i(29);t.AWTTransmissionManager=d.default;var c=i(9);t.AWTSerializer=c.default;var l=i(8);t.AWTSemanticContext=l.default,t.AWT_COLLECTOR_URL_UNITED_STATES="https://us.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_GERMANY="https://de.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_JAPAN="https://jp.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_AUSTRALIA="https://au.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_EUROPE="https://eu.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_USGOV_DOD="https://pf.pipe.aria.microsoft.com/Collector/3.0",t.AWT_COLLECTOR_URL_USGOV_DOJ="https://tb.pipe.aria.microsoft.com/Collector/3.0"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e._BT_STOP=0]="_BT_STOP",e[e._BT_STOP_BASE=1]="_BT_STOP_BASE",e[e._BT_BOOL=2]="_BT_BOOL",e[e._BT_DOUBLE=8]="_BT_DOUBLE",e[e._BT_STRING=9]="_BT_STRING",e[e._BT_STRUCT=10]="_BT_STRUCT",e[e._BT_LIST=11]="_BT_LIST",e[e._BT_MAP=13]="_BT_MAP",e[e._BT_INT32=16]="_BT_INT32",e[e._BT_INT64=17]="_BT_INT64"}(t._BondDataType||(t._BondDataType={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(4),r=i(19),o=i(22);t._Utf8_GetBytes=function(e){for(var t=[],i=0;i>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++i)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t},t._Base64_GetString=function(e){for(var t,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=[],r=e.length%3,o=0,s=e.length-r;o>18&63),i.charAt(t>>12&63),i.charAt(t>>6&63),i.charAt(63&t)].join(""))}switch(r){case 1:a=e[e.length-1],n.push(i.charAt(a>>2)),n.push(i.charAt(a<<4&63)),n.push("==");break;case 2:var u=(e[e.length-2]<<8)+e[e.length-1];n.push(i.charAt(u>>10)),n.push(i.charAt(u>>4&63)),n.push(i.charAt(u<<2&63)),n.push("=")}return n.join("")},t._Varint_GetBytes=function(e){for(var t=[];4294967168&e;)t.push(127&e|128),e>>>=7;return t.push(127&e),t},t._Varint64_GetBytes=function(e){for(var t=e.low,i=e.high,n=[];i||4294967168&t;)n.push(127&t|128),t=(127&i)<<25|t>>>7,i>>>=7;return n.push(127&t),n},t._Double_GetBytes=function(e){if(o.BrowserChecker._IsDataViewSupport()){var t=new DataView(new ArrayBuffer(8));t.setFloat64(0,e,!0);for(var i=[],n=0;n<8;++n)i.push(t.getUint8(n));return i}return r.FloatUtils._ConvertNumberToArray(e,!0)},t._Zigzag_EncodeZigzag32=function(e){return(e=n.Number._ToInt32(e))<<1^e>>31},t._Zigzag_EncodeZigzag64=function(e){var t=e.low,i=e.high,r=i<<1|t>>>31,o=t<<1;2147483648&i&&(r=~r,o=~o);var s=new n.UInt64("0");return s.low=o,s.high=r,s}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e._ConvertNumberToArray=function(e,t){if(!e)return t?this._doubleZero:this._floatZero;var i=t?52:23,n=(1<<(t?11:8)-1)-1,r=1-n,o=n,s=e<0?1:0;e=Math.abs(e);for(var a=Math.floor(e),u=e-a,d=2*(n+2)+i,c=new Array(d),l=0;l0;)(u*=2)>=1?(c[++l]=1,--u):c[++l]=0;for(var _=0;__&&(c[l]=1-c[l],!c);--l);l===_&&++p}if(p>o||a)return s?t?this._doubleNegInifinity:this._floatNegInifinity:t?this._doubleInifinity:this._floatInifinity;if(p>8&255,v>>16&255,v>>>24,255&(f=s<<31|2147483647&(f|=p+n<<20)),f>>8&255,f>>16&255,f>>>24]}var y=0;for(l=0;l<23;++l)y=y<<1|c[++_];return[255&(y=s<<31|2147483647&(y|=p+n<<23)),y>>8&255,y>>16&255,y>>>24]},e._floatZero=[0,0,0,0],e._doubleZero=[0,0,0,0,0,0,0,0],e._floatInifinity=[0,0,128,127],e._floatNegInifinity=[0,0,128,255],e._doubleInifinity=[0,0,0,0,0,0,240,127],e._doubleNegInifinity=[0,0,0,0,0,0,240,255],e}();t.FloatUtils=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(4),r=function(){function e(){this._buffer=[]}return e.prototype._WriteByte=function(e){this._buffer.push(n.Number._ToByte(e))},e.prototype._Write=function(e,t,i){for(;i--;)this._WriteByte(e[t++])},e.prototype._GetBuffer=function(){return this._buffer},e}();t.MemoryStream=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(17);t._BondDataType=n._BondDataType;var r=i(18);t._Encoding=r;var o=i(20);t.IO=o;var s=i(4);t.Int64=s.Int64,t.UInt64=s.UInt64,t.Number=s.Number;var a=function(){function e(e){this._stream=e}return e.prototype._WriteBlob=function(e){this._stream._Write(e,0,e.length)},e.prototype._WriteBool=function(e){this._stream._WriteByte(e?1:0)},e.prototype._WriteContainerBegin=function(e,t){this._WriteUInt8(t),this._WriteUInt32(e)},e.prototype._WriteMapContainerBegin=function(e,t,i){this._WriteUInt8(t),this._WriteUInt8(i),this._WriteUInt32(e)},e.prototype._WriteDouble=function(e){var t=r._Double_GetBytes(e);this._stream._Write(t,0,t.length)},e.prototype._WriteFieldBegin=function(e,t,i){t<=5?this._stream._WriteByte(e|t<<5):t<=255?(this._stream._WriteByte(192|e),this._stream._WriteByte(t)):(this._stream._WriteByte(224|e),this._stream._WriteByte(t),this._stream._WriteByte(t>>8))},e.prototype._WriteInt32=function(e){e=r._Zigzag_EncodeZigzag32(e),this._WriteUInt32(e)},e.prototype._WriteInt64=function(e){this._WriteUInt64(r._Zigzag_EncodeZigzag64(e))},e.prototype._WriteString=function(e){if(""===e)this._WriteUInt32(0);else{var t=r._Utf8_GetBytes(e);this._WriteUInt32(t.length),this._stream._Write(t,0,t.length)}},e.prototype._WriteStructEnd=function(e){this._WriteUInt8(e?n._BondDataType._BT_STOP_BASE:n._BondDataType._BT_STOP)},e.prototype._WriteUInt32=function(e){var t=r._Varint_GetBytes(s.Number._ToUInt32(e));this._stream._Write(t,0,t.length)},e.prototype._WriteUInt64=function(e){var t=r._Varint64_GetBytes(e);this._stream._Write(t,0,t.length)},e.prototype._WriteUInt8=function(e){this._stream._WriteByte(s.Number._ToUInt8(e))},e}();t.CompactBinaryProtocolWriter=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e._IsDataViewSupport=function(){return"undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},e}();t.BrowserChecker=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.clockSkewRefreshDurationInMins=e,this._reset()}return e.prototype.allowRequestSending=function(){return this._isFirstRequest&&!this._clockSkewSet?(this._isFirstRequest=!1,this._allowRequestSending=!1,!0):this._allowRequestSending},e.prototype.shouldAddClockSkewHeaders=function(){return this._shouldAddClockSkewHeaders},e.prototype.getClockSkewHeaderValue=function(){return this._clockSkewHeaderValue},e.prototype.setClockSkew=function(e){this._clockSkewSet||(e?this._clockSkewHeaderValue=e:this._shouldAddClockSkewHeaders=!1,this._clockSkewSet=!0,this._allowRequestSending=!0)},e.prototype._reset=function(){var e=this;this._isFirstRequest=!0,this._clockSkewSet=!1,this._allowRequestSending=!0,this._shouldAddClockSkewHeaders=!0,this._clockSkewHeaderValue="use-collector-delta",this.clockSkewRefreshDurationInMins>0&&setTimeout((function(){return e._reset()}),6e4*this.clockSkewRefreshDurationInMins)},e}();t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this._killedTokenDictionary={}}return e.prototype.setKillSwitchTenants=function(e,t){if(e&&t)try{var i=e.split(",");if("this-request-only"===t)return i;for(var n=1e3*parseInt(t,10),r=0;rDate.now()||(delete this._killedTokenDictionary[e],!1)},e}();t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=function(){function e(e,t){this._outboundQueue=e,this._maxNumberOfEvents=t,this._currentBatch={},this._currentNumEventsInBatch=0}return e.prototype.addEventToBatch=function(e){if(e.priority===n.AWTEventPriority.Immediate_sync){var t={};return t[e.apiKey]=[e],t}return this._currentNumEventsInBatch>=this._maxNumberOfEvents&&this.flushBatch(),void 0===this._currentBatch[e.apiKey]&&(this._currentBatch[e.apiKey]=[]),this._currentBatch[e.apiKey].push(e),this._currentNumEventsInBatch++,null},e.prototype.flushBatch=function(){this._currentNumEventsInBatch>0&&(this._outboundQueue.push(this._currentBatch),this._currentBatch={},this._currentNumEventsInBatch=0)},e.prototype.hasBatch=function(){return this._currentNumEventsInBatch>0},e}();t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.shouldRetryForStatus=function(e){return!(e>=300&&e<500&&408!==e||501===e||505===e)},e.getMillisToBackoffForRetry=function(e){var t,i=Math.floor(1200*Math.random())+2400;return t=Math.pow(4,e)*i,Math.min(t,12e4)},e}();t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(9),o=i(26),s=i(24),a=i(23),u=i(15),d=i(1),c=i(2),l=i(3),_="POST",p=function(){function e(e,t,i,n,r){var o=this;this._requestQueue=e,this._queueManager=i,this._httpInterface=n,this._urlString="?qsp=true&content-type=application%2Fbond-compact-binary&client-id=NO_AUTH&sdk-version="+u.FullVersionString,this._killSwitch=new s.default,this._paused=!1,this._useBeacons=!1,this._activeConnections=0,this._clockSkewManager=new a.default(r),d.isUint8ArrayAvailable()||(this._urlString+="&content-encoding=base64"),this._urlString=t+this._urlString,this._httpInterface||(this._useBeacons=!d.isReactNative(),this._httpInterface={sendPOST:function(e,t,i,n,r,s){try{if(d.useXDomainRequest()){var a=new XDomainRequest;a.open(_,e),a.onload=function(){r(200,null)},a.onerror=function(){n(400,null)},a.ontimeout=function(){i(500,null)},a.send(t)}else if(d.isReactNative())fetch(e,{body:t,method:_}).then((function(e){var t={};e.headers&&e.headers.forEach((function(e,i){t[i]=e})),r(e.status,t)})).catch((function(e){n(0,{})}));else{var u=new XMLHttpRequest;u.open(_,e,!s),u.onload=function(){r(u.status,o._convertAllHeadersToMap(u.getAllResponseHeaders()))},u.onerror=function(){n(u.status,o._convertAllHeadersToMap(u.getAllResponseHeaders()))},u.ontimeout=function(){i(u.status,o._convertAllHeadersToMap(u.getAllResponseHeaders()))},u.send(t)}}catch(c){n(400,null)}}})}return e.prototype.hasIdleConnection=function(){return this._activeConnections<2},e.prototype.sendQueuedRequests=function(){for(;this.hasIdleConnection()&&!this._paused&&this._requestQueue.length>0&&this._clockSkewManager.allowRequestSending();)this._activeConnections++,this._sendRequest(this._requestQueue.shift(),0,!1);this.hasIdleConnection()&&l.default.scheduleTimer()},e.prototype.isCompletelyIdle=function(){return 0===this._activeConnections},e.prototype.teardown=function(){for(;this._requestQueue.length>0;)this._sendRequest(this._requestQueue.shift(),0,!0)},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1,this.sendQueuedRequests()},e.prototype.removeQueuedRequests=function(){this._requestQueue.length=0},e.prototype.sendSynchronousRequest=function(e,t){this._paused&&(e[t][0].priority=n.AWTEventPriority.High),this._activeConnections++,this._sendRequest(e,0,!1,!0)},e.prototype._sendRequest=function(e,t,i,o){var s=this;void 0===o&&(o=!1);try{if(this._paused)return this._activeConnections--,void this._queueManager.addBackRequest(e);var a=0,u="";for(var l in e)e.hasOwnProperty(l)&&(this._killSwitch.isTenantKilled(l)?(c.default.eventsRejected(e[l],n.AWTEventsRejectedReason.KillSwitch),delete e[l]):(u.length>0&&(u+=","),u+=l,a++));if(a>0){var _=r.default.getPayloadBlob(e,a);_.remainingRequest&&this._requestQueue.push(_.remainingRequest);var p=this._urlString+"&x-apikey="+u+"&client-time-epoch-millis="+Date.now().toString();this._clockSkewManager.shouldAddClockSkewHeaders()&&(p=p+"&time-delta-to-apply-millis="+this._clockSkewManager.getClockSkewHeaderValue());var h=void 0;for(var l in h=d.isUint8ArrayAvailable()?new Uint8Array(_.payloadBlob):r.default.base64Encode(_.payloadBlob),e)if(e.hasOwnProperty(l))for(var f=0;f0?e[l][f].sendAttempt++:e[l][f].sendAttempt=1;if(this._useBeacons&&i&&d.isBeaconsSupported()&&navigator.sendBeacon(p,h))return;this._httpInterface.sendPOST(p,h,(function(n,r){s._retryRequestIfNeeded(n,r,e,a,u,t,i,o)}),(function(n,r){s._retryRequestIfNeeded(n,r,e,a,u,t,i,o)}),(function(n,r){s._retryRequestIfNeeded(n,r,e,a,u,t,i,o)}),i||o)}else i||this._handleRequestFinished(!1,{},i,o)}catch(v){this._handleRequestFinished(!1,{},i,o)}},e.prototype._retryRequestIfNeeded=function(e,t,i,r,s,a,u,d){var _=this,p=!0;if("undefined"!==typeof e){if(t){var h=this._killSwitch.setKillSwitchTenants(t["kill-tokens"],t["kill-duration-seconds"]);this._clockSkewManager.setClockSkew(t["time-delta-millis"]);for(var f=0;f0||this._inboundQueues[n.AWTEventPriority.Normal][0].length>0||this._inboundQueues[n.AWTEventPriority.Low][0].length>0||this._batcher.hasBatch())&&this._httpManager.hasIdleConnection()},e.prototype.addBackRequest=function(e){if(!this._paused||!this._shouldDropEventsOnPause){for(var t in e)if(e.hasOwnProperty(t))for(var i=0;i0)return a.default.eventsDropped([this._inboundQueues[t][this._inboundQueues[t].length-1].shift()],n.AWTEventsDroppedReason.QueueFull),!0;t++}return!1},e.prototype._batchEvents=function(e){for(var t=n.AWTEventPriority.High;t>=e;){for(;this._inboundQueues[t][0].length>0;){var i=this._inboundQueues[t][0].pop();this._queueSize--,this._batcher.addEventToBatch(i)}t--}this._batcher.flushBatch()},e.prototype._uploadNow=function(e){var t=this;this.hasEvents()&&this.sendEventsForPriorityAndAbove(n.AWTEventPriority.Low),this._checkOutboundQueueEmptyAndSent((function(){t._removeFirstQueues(),null!==e&&void 0!==e&&e(),t._uploadNowQueue.length>0?setTimeout((function(){return t._uploadNow(t._uploadNowQueue.shift())}),0):(t._isCurrentlyUploadingNow=!1,t.hasEvents()&&o.default.scheduleTimer())}))},e.prototype._checkOutboundQueueEmptyAndSent=function(e){var t=this;this._httpManager.isCompletelyIdle()?e():setTimeout((function(){return t._checkOutboundQueueEmptyAndSent(e)}),250)},e}();t.default=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(3),r=function(){function e(){}return e.setEventsHandler=function(e){n.default.setEventsHandler(e)},e.getEventsHandler=function(){return n.default.getEventsHandler()},e.scheduleTimer=function(){n.default.scheduleTimer()},e}();t.default=r},function(e,t,i){e.exports=i(16)}])},e.exports=n()},OLIE:function(e,t,i){"use strict";var n;!function(e){e.Installed="Installed",e.Browser="Browser",e.Unknown="Unknown"}(n||(n={})),t.a=n},cH6d:function(e,t,i){"use strict";i.d(t,"c",(function(){return n})),i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return o}));var n=function(e){var t,i;null===(t=window)||void 0===t||null===(i=t.ReactNativeWebView)||void 0===i||i.postMessage(e)},r=function(e){n(JSON.stringify({type:"Log",logData:e}))},o=function(e){n(JSON.stringify({type:"Clipboard_Copy",data:e}))}},eF4C:function(e,t,i){"use strict";var n,r;i.d(t,"c",(function(){return s})),i.d(t,"b",(function(){return u})),i.d(t,"d",(function(){return d})),i.d(t,"a",(function(){return r})),i.d(t,"e",(function(){return n})),function(e){e.Windows="Windows",e.WindowsPhone="WindowsPhone",e.WinRT="WinRT",e.Mac="Mac",e.IPhone="iPhone",e.IPad="iPad",e.Android="Android",e.Unknown="Unknown"}(n||(n={})),function(e){e.MSIE="MSIE",e.CHROME="Chrome",e.FIREFOX="Firefox",e.SAFARI="Safari",e.EDGE="Edge",e.ELECTRON="Electron",e.SKYPE_SHELL="SkypeShell",e.PHANTOMJS="PhantomJS",e.OPERA="Opera",e.UNKNOWN="Unknown"}(r||(r={}));var o={WIN:/(windows|win32)/i,WINRT:/ arm;/i,WINPHONE:/windows\sphone\s\d+\.\d+/i,OSX:/(macintosh|mac os x)/i,IPAD:/(iPad)(?=.*like Mac OS X)/i,IPHONE_IPOD:/(iPhone|iPod)(?=.*like Mac OS X)/i,ANDROID:/android/i},s=function(e){return e||(e="undefined"!==typeof navigator&&navigator.userAgent||""),e?o.WINPHONE.exec(e)?n.WindowsPhone:o.WINRT.exec(e)?n.WinRT:o.IPAD.exec(e)?n.IPad:o.IPHONE_IPOD.exec(e)?n.IPhone:o.ANDROID.exec(e)?n.Android:o.OSX.exec(e)?n.Mac:o.WIN.exec(e)?n.Windows:n.Unknown:n.Unknown},a=function(e,t){return t.indexOf(e)>-1},u=function(e){return e||(e="undefined"!==typeof navigator&&navigator.userAgent||""),e?a("OPR/",e)?r.OPERA:a(r.PHANTOMJS,e)?r.PHANTOMJS:a(r.EDGE,e)||a("Edg/",e)?r.EDGE:a(r.ELECTRON,e)?r.ELECTRON:a(r.CHROME,e)?r.CHROME:a("Trident",e)?r.MSIE:a(r.FIREFOX,e)?r.FIREFOX:a(r.SAFARI,e)?r.SAFARI:a(r.SKYPE_SHELL,e)?r.SKYPE_SHELL:r.UNKNOWN:r.UNKNOWN},d=function(e){return e===n.Android||e===n.IPad||e===n.IPhone||e===n.WindowsPhone||e===n.WinRT}}}]);