!function(e){function t(t){for(var n,r,i=t[0],a=t[1],c=0,u=[];c=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function s(){for(var e=[],t=0;t)/gi,'$1 target="_blank" $2$3')}function f(e,t,n){return e.some((function(e){return t(e)}))?e.map((function(e){return t(e)?n(e):e})):e}function d(e){switch(e.type){case"answers":return"answers-".concat(e.assignAnswers);case"form":return"form-".concat(e.customForm);case"chat":return"online";case"bot":return"bot";default:return e.type}}function l(){return Object(i.b)("getMetadata").then((function(e){return!e.url||"https://"!==e.url.substr(0,8)&&"http://localhost"!==e.url.substr(0,16)?Promise.resolve({audio:!1,video:!1}):new Promise((function(e,t){var n=!1;setTimeout((function(){n||e({audio:!1,video:!1})}),2e3),o.a.load((function(){n=!0;var t=o.a.isWebRTCSupported&&o.a.hasMicrophone,r=o.a.isWebRTCSupported&&o.a.hasWebcam;e({audio:t,video:r})}))}))}))}function p(e,t){return t>1?e+"s":e}function h(e){if(e<60){var t=Math.floor(e%60);return r="".concat(t," ").concat(p("sec",t))}if(e/60<60){var n=Math.floor(e/60),r="".concat(n," ").concat(p("min",n)),o=Math.floor(e-60*n);return o>0&&(r+=" ".concat(o," ").concat(p("sec",o))),r}if(e/60*60){var i=Math.floor(e/3600),a=(r="".concat(i," ").concat(p("hr",i)),Math.floor(e/60-60*i));a>0&&(r+=" ".concat(a," ").concat(p("min",a)));var c=Math.floor(e-3600*i-60*a);return c>0&&(r+=" ".concat(c," ").concat(p("sec",c))),r}}function g(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function v(){return/Android/i.test(navigator.userAgent)&&/Chrome/i.test(navigator.userAgent)}},function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"i",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return f})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return p})),n.d(t,"e",(function(){return h}));var r=n(48),o=n(126),i=n(20),a=function(e){return e.hub},c=Object(r.a)([function(e){return e.hub},function(e){return e.widget}],(function(e,t){var n=t.hiddenServices;return e.filter((function(e){return!n.some((function(t){return t===e.type}))}))})),u=function(e){var t=e.navigation.activeStackId;if(t)return e.hub.find((function(e){return e.id===t}))},s=Object(r.a)([a,function(e){return e.notification}],(function(e,t){return e.find((function(e){return"answers"===t.type?e.type===t.type&&e.assignAnswers===t.formId:e.type===t.type}))})),f=Object(r.a)([a,i.f],(function(e,t){var n=e.find((function(e){return e.id===t.activeStackId}));return n&&Number(n.answersWidgetID)})),d=(Object(r.a)([a,i.f],(function(e,t){var n=e.find((function(e){return e.id===t.activeStackId}));return n&&Number(n.customFormWidgetID)})),Object(r.a)([a,i.f],(function(e,t){var n=e.find((function(e){return e.id===t.activeStackId}));return n&&Number(n.assignAnswers)}))),l=Object(r.a)([a,i.f],(function(e,t){var n=e.find((function(e){return e.id===t.activeStackId}));return n&&Number(n.customForm)})),p=Object(r.a)([a,i.f],(function(e,t){var n,r=e.find((function(e){return e.id===t.activeStackId}));return null!==(n=r&&r.faqAPIVersion)&&void 0!==n?n:0})),h=Object(r.a)([a,i.f,o.a,function(e){return e.localization.language},function(e){return e.host.language}],(function(e,t,n,r,o){var i,a=e.find((function(e){return e.id===t.activeStackId&&"answers"===e.type}));if(a){var c=a.languageCodes;return c.includes(r)?r:c.includes(o)?o:null!==(i=n(a.assignAnswers))&&void 0!==i?i:a.languageCode}return null!=o?o:"en"}))},function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return i})),n.d(t,"i",(function(){return a})),n.d(t,"h",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return d})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return p}));var r=n(148),o=(n(77),{});function i(){return Object(r.b)()?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function a(){var e=i(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function c(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function u(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||""}return e.event_id||""}function s(e){var t=i();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}function f(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function d(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function l(){try{return document.location.href}catch(e){return""}}function p(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}}).call(this,n(61))},function(e,t,n){e.exports=n(374)},,,,,,,function(e,t,n){"use strict";n.d(t,"f",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return s}));var r=n(48),o=function(e){return e.navigation},i=function(e){return e.navigation.activeStackId},a=Object(r.a)([o],(function(e){var t=e.navigationStacks[e.activeStackId];return t&&void 0!==t.currentIndex&&t.history[t.currentIndex]&&t.history[t.currentIndex].params})),c=function(e){return e.navigation.navigationStacks[e.navigation.activeStackId]},u=Object(r.a)([o],(function(e){var t=e.navigationStacks[e.activeStackId];return t&&void 0!==t.currentIndex&&t.history[t.currentIndex]})),s=Object(r.a)([o],(function(e){var t=e.navigationStacks[e.activeStackId];return t&&void 0!==t.currentIndex&&t.history?t.history.slice(0,t.currentIndex+1):[]}));Object(r.a)([o],(function(e){var t=e.navigationStacks[e.activeStackId];return t&&t.currentIndex}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return Jn}));var r=n(63),o=n(107),i=n(38),a=n(261),c=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function s(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function p(e){for(var t=1;t299&&t.reqId===e.reqId})));var o="Timeout waiting for response to ".concat(e.header),i=this.waitUntilReceived(t,r,o);return this.sendMsg(e),i},e.prototype.generateMessage=function(e,t){return{type:e,msg:t}},e.prototype.validateMessage=function(e){var t=!(void 0===e.sid&&void 0===e.userId||"undefined"===e.sid&&"undefined"===e.userId),n=void 0!==e.channel;return t&&n},e}()),A=n(3),j=function(e){return{type:"LIVE_MESSAGE",payload:{liveMessage:e}}},x=n(6);var N=n(20),k=n(13),P=n.n(k);function R(e,t,n){var r=Object(N.b)(n()),o=n().hub.find((function(e){return e.type===r.module}));if(o){var i=void 0,a=void 0;"form"===r.module?i=o.customForm:"answers"===r.module?i=o.assignAnswers:"online"===r.module&&(a=Number(o.agentID)),t(function(e,t,n,r){return function(o,i,a){a.conn;var c=i().widget.userId,u=i().widget.channelId,s=i().widget.visitorUuid,f=i().host.url,d=i().host.deviceType,l=A.a+"message/widgetAnalytics/".concat(c,"/").concat(u);o({type:"TRACK_WIDGET_ACTION_FETCH"});var p="online"===t.type?"chat":"form"===t.type?"forms":t.type;P.a.post(l,{agent_id:n,form_id:r,hub_item:p,hub_item_text:t.name,actionType:e,url:f,device:d,uid:s}).then((function(){o({type:"TRACK_WIDGET_ACTION_SUCCESS"})}),(function(e){o({type:"TRACK_WIDGET_ACTION_FAILED",reason:e})}))}}(e,o,a,i))}}function D(e,t,n){var r,o=Object(N.b)(n()),i=n().hub.find((function(e){return e.type===o.module}));if(i){"form"===o.module?i.customForm:"answers"===o.module?i.assignAnswers:"online"===o.module&&Number(i.agentID),t((r=i,function(e,t,n){n.conn;var o=t().widget.userId,i=t().widget.channelId;t().widget.visitorUuid,t().host.url,t().host.deviceType,A.a,"message/proactive/".concat(o,"/").concat(i),e({type:"TRACK_WIDGET_PROACTIVE_ACTION_FETCH"}),"online"===r.type||"form"===r.type||r.type}))}}var M=n(106),L=n(88),U=n(9),F=n(24),W=n(32),B=n(76),z=n(28),H=n(22),G=n(2),q=n(191),V=n(8),Y=n(123),K=n(36),J=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},$=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]r,i=n.chatSeenAt&&n.chatSeenAt>r,a=n.chatStartedAt&&n.chatStartedAt>r,c=a?Number(n.chattedWith):0;t.dispatch(function(e,t,n,r,o,i,a,c){return function(u,s){return new Promise((function(f,d){var l=s().widget.userId,p=s().widget.channelId,h=s().host.url;if(!c.transactionId)return d(new Error("Cannot insert a transaction without a transaction ID"));var g={channelId:p,userId:l,chattedWith:r,currentUrl:h,data:c,hasHadChat:Boolean(e),hasSeenChat:Boolean(n),hasSeenFAQ:Boolean(t),chatStartedAt:o,chatSeenAt:i,answersSeenAt:a},v="".concat(A.a,"api/insertEcommerce");u({type:"INSERT_TRANSACTION_FETCH"}),fetch(v,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)}).then((function(e){u({type:"INSERT_TRANSACTION_SUCCESS"}),f(e)})).catch((function(e){u({type:"INSERT_TRANSACTION_FAILED",payload:e.message}),d(new Error("Error inserting transaction, url: ".concat(v,". Reason: ").concat(e.message)))}))}))}}(a,o,i,isNaN(c)?0:c,n.chatStartedAt&&new Date(n.chatStartedAt).toISOString(),n.chatSeenAt&&new Date(n.chatSeenAt).toISOString(),n.answersSeenAt&&new Date(n.answersSeenAt).toISOString(),e))}})).catch((function(e){console.warn(e)}))},e.prototype.reset=function(e){this.dispatch({type:"RESTART",reason:e[0]}),Object(G.a)("hideAll"),this.setupPromises()},e.prototype.start=function(e){var t=this;Object(G.b)("waitUntilConnected","launcher",A.d).then((function(){var n=new K.a;return t.dispatch(Object(B.a)(n,"api",e[0]))})).catch((function(e){return console.warn(e)}))},e.prototype.visibilityChange=function(e){this.dispatch({type:"VISIBILITY_CHANGE",visibility:e[0]})},e.prototype.historyApi=function(e){Object(Y.a)().disableHistoryHooks||("success"===this.getState().widget.triggerStatus?this.reset(e):console.debug("Blocked API call history API since trigger is already running"))},e.prototype.generateSubscribeId=function(){var e,t=this;do{e=Math.floor(1e4*Math.random())}while(Object.keys(this.listeners).some((function(n){return t.listeners[n].some((function(t){return t.id===e}))})));return e},e.prototype.registerListener=function(e,t){var n=this.generateSubscribeId();return this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].length>=100?(console.error(new Error("Maximum registered listeners (100) for ".concat(e," reached."))),-1):(this.listeners[e].push({id:n,callback:t}),n)},e.prototype.removeListener=function(e){for(var t in this.listeners)this.listeners[t]&&(this.listeners[t]=this.listeners[t].filter((function(t){return t.id!==e})))},e.prototype.setFormValue=function(e){this.dispatch(Object(q.b)(e))},e}(),X=n(11),Z=function(){return(Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&"message"===e.type&&"agent"===e.fromType})),o=t().activeConversation.isClosed;if(!r&&!o){var i=new H.e;i.systemMessageType="noresponse",i.formId=Number(n),e(Object(U.a)(i))}}function Ie(e,t){t({type:"SET_HUB_BADGE",hubItemType:"online",badgeCount:e}),Object(G.a)("setBadgeCount",e)}function Ce(e){return"bot"!==e().activeConversation.conversationType}function Te(e,t){if(e&&"form"===e.type)(n=new H.e).formId=Number(e.customForm),t(Object(U.a)(n));else if(e&&"rating"===e.type){(n=new H.d).ratingType=e.ratingType,n.text=e.text,t(Object(U.a)(n))}else{var n;(n=new H.d).ratingType="emoji",n.text=x.b.defaultRatingText,t(Object(U.a)(n))}}function Ae(e){if(!e)return null;for(var t=["message","bankid","file"],n=e.length-1;n>=0;n--)if(-1!==t.indexOf(e[n].type))return e[n];return null}function je(e,t,n,r){return ye(this,void 0,void 0,(function(){var o,i,a,c,u,s,f,d,l,p,h,g,v;return me(this,(function(y){switch(y.label){case 0:switch(e.type){case"CHAT_CONNECTED":return[3,1];case"BOT_CONNECTED":return[3,2];case"SOCKET_socket:end":return[3,3];case"SOCKET_transfer":return[3,4];case"SOCKET_botMessage":return[3,7];case"SOCKET_botMessages":case"SOCKET_botGreetingMessages":return[3,8];case"SOCKET_closeConversationResponse":return[3,9];case"SOCKET_chatEnded":return[3,10];case"SOCKET_redirect":return[3,11];case"SOCKET_ban":return[3,12];case"SOCKET_allAgentsAway":case"SOCKET_away":return[3,13];case"SOCKET_slotsFull":return[3,14];case"SOCKET_offline":return[3,15];case"CHAT_FAIL_CONNECT":return[3,16];case"VISIBILITY_CHANGE":return[3,17];case"SOCKET_socket:reconnected":return[3,18];case"RESTART":case"RESET":return[3,19]}return[3,20];case 1:return n().widget.onNoResponse&&!be&&Object(G.b)("getSessionData","onNoResponse").then((function(e){if(e){var r=e.timerEnd;if(e.channelId===Object(ge.a)(n())){var o=Math.max(new Date(r).getTime()-(new Date).getTime(),0);be=window.setTimeout((function(){Se(t,n)}),o)}}})).catch((function(e){console.warn(e)})),o=n().activeConversation.isActive,i=n().widget.hasOpenedOnce,(g=new H.f).systemMessageType="reconnected",g.text=x.b.formatString(x.b.agentReconnected,{agentName:e.agentName}),o?(a=n().messages.find((function(e){return"reconnected"===e.systemMessageType})),c=a&&a.text===g.text,t(Object(U.g)("unavailable")),a&&!c&&(t(Object(U.g)("reconnected")),t(Object(U.a)(g)))):(t(Object(ae.c)()),i&&(t(Object(U.g)("unavailable")),t(Object(U.a)(g)))),Object(G.b)("setSessionData","active-service","chat-online").catch(console.warn),function(e,t,n,r){var o=t.agentName,i=t.agentPicture,a=n().hub.find((function(t){return t.type===e}));if(a){var c=void 0,u=void 0;if(a.greetingMessage)c=a.greetingMessage;else{var s=n().widget.greetingMessage;c=s.text,u=s.options}if(c){var f=Object(H.g)({agentName:o,agentPicture:i,text:c,options:u}),d=n().messages.some((function(e){return"greetingMessage"===e.type}));n().messages.some((function(e){return"message"===e.type&&"visitor"===e.fromType}))||(d?d&&r(Object(U.l)(f)):r(Object(U.a)(f)))}}}("online",{agentName:e.agentName,agentPicture:e.agentPicture},n,t),[3,20];case 2:return Object(G.b)("setSessionData","active-service","chat-bot").catch(console.warn),[3,20];case 3:return clearInterval(we),[3,20];case 4:return(u=n().messageQueue.queue).length>0&&(clearTimeout(_e),_e=0,t(Object(U.b)(u)),t({type:"CLEAR_QUEUE"}),t(de(!1))),(g=new H.f).text=x.b.formatString(x.b.onlineTransfer,{agentName:e.payload.newAgentName}),t(Object(U.a)(g)),"bot"===n().activeConversation.conversationType&&Ee(n,r),e.payload.isExternal?[4,t(he(new K.a)).then((function(e){e.trigger&&(e.trigger.consent&&(x.b.setContent(te()(x.a,e.trigger.consent.localization||{})),t(Object(z.g)(e.trigger.consent.id))),e.trigger.companyName&&t(Object(z.f)(e.trigger.companyName)),e.trigger.instanceId!==r.instanceId&&(t({type:"SET_INSTANCE_ID",payload:{instanceId:e.trigger.instanceId}}),t({type:"RECONNECT_SOCKET"})),t(Object(z.h)(e.trigger.onNoResponse)),t(Object(z.c)(e.trigger.onChatEnd)),t(Object(z.b)(e.trigger.chatAwayForm)),t(Object(z.d)(e.trigger.chatOfflineForm)),t(Object(z.e)(e.trigger.chatSlotsFullForm)))}))]:[3,6];case 5:y.sent(),y.label=6;case 6:return[3,20];case 7:return t(le(Object(H.j)(e.payload))),[3,20];case 8:return e.payload.messages.map((function(n){return t(le(Object(H.j)(ve(ve({},e.payload),n))))})),[3,20];case 9:return s=n().widget.onChatEnd,n().activeConversation.isClosed||(t(Object(ae.b)()),t(Object(ne.b)(!0,!0)),t(Object(U.f)()),Te(s,t)),clearInterval(we),[3,20];case 10:return s=n().widget.onChatEnd,f=n().activeConversation.agentName,n().activeConversation.isClosed||(t(Object(ae.b)()),t(Object(ne.b)(!0,!1)),(g=new H.f).text=x.b.formatString(x.b.chatEnd,{agentName:f}),t(Object(U.a)(g)),Te(s,t)),clearInterval(we),[3,20];case 11:return(d=e.payload.location)&&Object(G.a)("redirect",d),[3,20];case 12:return Object(G.a)("ban"),t(Object(ae.d)()),[3,20];case 13:return Ce(n)&&(l=n().widget.chatAwayForm,function(e,t,n,r,o){var i=n().messages.some((function(e){return"message"===e.type&&"visitor"===e.fromType})),a=n().activeConversation.isActive,c=n().messages.some((function(e){return"unavailable"===e.systemMessageType})),u=n().widget.hasOpenedOnce;!i&&a&&(r(Object(ae.b)()),r(se()),clearInterval(we),r(Object(U.g)("reconnected")),!c&&u&&r(fe(t,e)))}(x.b.agentAway,l,n,t)),[3,20];case 14:return Ce(n)&&(p=n().widget.chatSlotsFullForm,t(ue(x.b.agentSlotsFull,p))),[3,20];case 15:return clearInterval(we),Ce(n)&&(h=n().widget.chatOfflineForm,t(ue(x.b.agentOffline,h))),[3,20];case 16:return"offline"===e.payload.reason&&((g=new H.f).systemMessageType="unavailable",g.text=x.b.agentOffline,t(Object(U.a)(g))),[3,20];case 17:return"visible"===e.visibility&&((v=new K.a).push((new Date).toISOString()),v.push("visibilityChange"),t(ce(v))),[3,20];case 18:return(v=new K.a).push((new Date).toISOString()),v.push("socket:reconnected"),t(ce(v)),[3,20];case 19:return r.disconnect(),[3,20];case 20:return[2]}}))}))}function xe(e,t,n,r){var o,i;switch(e.type){case"CHAT_CONNECTED":Ee(n,r);break;case"OPEN_WIDGET":var a=(f=Object(N.b)(n()))&&"online"===f.module,c=(g=n().messages)[g.length-1];if(a){Ie(0,t),c&&c.sourceId&&Object(G.a)("setSessionData","read",c.sourceId);var u=null===(o=Ae(g))||void 0===o?void 0:o.sourceId,s=n().activeConversation.lastReadMessage;u&&u!==s&&t(Object(U.e)(u))}break;case"BOT_CONNECTED":Ee(n,r);break;case"NAVIGATE_TO":case"NAVIGATE_BACK":case"NAVIGATE_TO_INDEX":case"REPLACE_NAVIGATION":case"CHANGE_NAVIGATION_STACK":case"SOCKET_hist":var f=Object(N.b)(n()),d=n().widget.isOpen;if(f&&"online"===f.module&&d){Ie(0,t);u=null===(i=Ae(g=n().messages))||void 0===i?void 0:i.sourceId,s=n().activeConversation.lastReadMessage;u&&u!==s&&t(Object(U.e)(u)),u&&Object(G.a)("setSessionData","read",u)}"SOCKET_hist"===e.type&&function(e,t,n){var r=t().widget.isOpen,o=Object(N.b)(t()),i=o&&"online"===o.module,a=t().messages,c=a[a.length-1];r&&i?(Ie(0,e),c&&c.sourceId&&Object(G.a)("setSessionData","read",c.sourceId)):Object(G.b)("getSessionData","read").then((function(n){var r=n||0,o=t().messages,i=t().activeConversation,a=i&&i.agentName;o&&Ie(o.filter((function(e){return e.id>r&&e.from===a})).length,e)}))}(t,n);break;case"SEND_MESSAGE_SUCCESS":if(!be){var l=n().widget.onNoResponse,p=1===n().messages.filter((function(e){return"visitor"===e.fromType})).length;if(l&&p){var h=1e3*Number(l.time);Object(G.a)("setSessionData","onNoResponse",{timerEnd:(new Date).getTime()+h,channelId:Object(ge.a)(n())}),be=window.setTimeout((function(){Se(t,n)}),h)}}Oe(t);break;case"SEND_TYPING_STOPPED_FETCH":Oe(t);break;case"SOCKET_bankidRequest":case"SOCKET_sendSurvey":case"SOCKET_sendFile":case"SOCKET_"+V.a.Type.MESSAGE:var g,v=Object(N.b)(n()),y=n().widget.isOpen,m=(a=v&&"online"===v.module,n().hub.find((function(e){return"online"===e.type}))),w=m&&m.badgeCount||0;c=Ae(g=n().messages);if(y&&a&&!document.hidden&&c&&c.sourceId&&t(Object(U.e)(c.sourceId)),y&&a)c&&c.sourceId&&Object(G.a)("setSessionData","read",c.sourceId);else Ie(w+1,t);break;case"ADD_TO_QUEUE":var b=function(e){0===_e&&(_e=window.setTimeout((function(){var n=e().messageQueue.queue[0];(_e=0,n)&&(t(Object(U.a)(n)),t({type:"REMOVE_FROM_QUEUE"}),t(de(!1)),e().messageQueue.queue.length>1&&(t(de(!0)),b(e)))}),1e3*Math.random()+500))};b(n);break;case"ADD_MESSAGES":case"ADD_MESSAGE":!function(e,t){var n=t().widget.isOpen,r="online"===Object(N.b)(t()).module,o=t().hub.find((function(e){return"online"===e.type})),i=o&&o.badgeCount||0,a=t().messages,c=a[a.length-1];!a.some((function(e){return"visitor"===e.fromType}))||n&&r?c&&c.sourceId&&Object(G.a)("setSessionData","read",c.sourceId):Ie(i+1,e)}(t,n)}}var Ne=n(121),ke=n(131),Pe=0,Re=0;var De=n(87);var Me=n(154),Le=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Ue=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=a.length&&(i=a.length-1),Je(Je({},t),((r={})[n]=Je(Je({},o),{currentIndex:i,history:a}),r))}),{})}):e}function Ze(e){return e?Object.keys(e).reduce((function(t,n){var r;return Je(Je({},t),((r={})[n]={status:"none",search:e[n].search,searchResultId:e[n].searchResultId,result:{results:[],search:e[n].result&&e[n].result.search}},r))}),{}):e}var et={};function tt(e){var t=e.play();t&&t.then&&t.catch((function(e){console.warn("could not play sound")}))}function nt(e){et[e]?tt(et[e]):(et[e]=function(e){var t=new Audio;try{t.canPlayType&&t.canPlayType('audio/ogg; codecs="vorbis"').replace(/no/,"")?t.src="https://files.imbox.io/app/static/".concat(e,".ogg"):t.canPlayType&&t.canPlayType("audio/mpeg;").replace(/no/,"")?t.src="https://files.imbox.io/app/static/".concat(e,".mp3"):t.canPlayType&&t.canPlayType('audio/mp4; codecs="mp4a.40.2"').replace(/no/,"")?t.src="https://files.imbox.io/app/static/".concat(e,".m4a"):t.src="https://files.imbox.io/app/static/".concat(e,".mp3")}catch(e){console.warn(e)}return t}(e),et[e].addEventListener("canplaythrough",(function(){tt(et[e])})))}var rt=new(function(){function e(){this.timeoutHandler=0}return e.prototype.startPolling=function(e,t){0===this.timeoutHandler&&this.poll(e,t)},e.prototype.stopPolling=function(){clearTimeout(this.timeoutHandler),this.timeoutHandler=0},e.prototype.poll=function(e,t){var n=this,r="interval-".concat(e,"-poll-").concat((new Date).toISOString());this.timeoutHandler=window.setTimeout((function(){r+="-callback-".concat((new Date).toISOString(),"-").concat(n.timeoutHandler),Promise.resolve(t(r)).then((function(){n.poll(e,t)}),(function(){n.poll(e,t)}))}),e)},e}());var ot=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0&&i[0]&&i[0].options&&i[0].options.length>0&&i[0].options[0].text),search:t.search}}),o));default:return e}},Dn=function(){return(Dn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){var t=e[e.length-1].sourceId;return Object(G.b)("setSessionData","conversation-end-message-id",t)}})).then((function(){t(Object(U.d)()),r.disconnect();var n=new K.a;n.push((new Date).toISOString()),n.push("change-navigation-stack");var i=l,a=i.agentName,c=i.department,p=i.agentPicture;return"bot"===e.stackId?t(Object(Ne.a)({userId:u,botId:Number(l.agentID),agentName:a,agentDepartment:c,agentPicture:p,channelId:s,visitorUuid:f,metadata:o,instanceId:d},n)):t(Object(ke.b)({userId:u,agentId:Number(l.agentID),agentName:a,agentDepartment:c,agentPicture:p,channelId:s,visitorUuid:f,metadata:o,instanceId:d},n))}))}}))})).catch(console.warn)}}(r,t.dispatch,t.getState,e),n(r)}}}}(T),function(e){return function(t){return function(n){return function(e,t,n){switch(e.type){case"TRIGGER_START_POLLING":rt.startPolling(1e4,(function(e){var r=new K.a;t(Object(B.a)(r,"polling-".concat(e),{showLauncher:n().widget.showLauncherOnTrigger},{isPolling:!0}))}));break;case"TRIGGER_STOP_POLLING":case"SOCKET_ban":case"OPEN_CHAT":rt.stopPolling();break;case"RESTART":var r=!0;if(Object(Y.a)().manualTrigger&&(r="none"!==n().widget.triggerStatus),rt.stopPolling(),r){var o={showLauncher:n().widget.showLauncherOnTrigger},i=new K.a;t(Object(B.a)(i,"reset",o,{resetFromVisibility:e.reason&&"visibility"===e.reason})).catch((function(e){return console.warn(e)}))}break;case"OPEN_WIDGET":Object(G.a)("setSessionData","hasOpenedOnce",!0);break;case"VISIBILITY_CHANGE":"hidden"===e.visibility&&rt.stopPolling()}}(n,e.dispatch,e.getState),t(n)}}},function(e){return function(t){return function(n){return function(e,t,n){switch(e.type){case"CLOSE":var r=n().notification;"launcher"===e.origin&&r.isOpen&&t(Object(W.b)("closeFromLauncher"));break;case"PRE_HIDE_NOTIFICATION":r=n().notification;var o="close"===e.reason||"closeFromLauncher"===e.reason;if(r&&o){var i=r.type;"online"===i&&(i="chat"),t(Object(W.c)(r.notificationId,i,"closed")),Ve(r.notificationId)}r&&"startChat"===e.reason&&(t(Object(W.c)(r.notificationId,"chat","clicked")),Ve(r.notificationId)),r&&"answersSearch"===e.reason&&(t(Object(W.c)(r.notificationId,"answers","clicked")),Ve(r.notificationId)),"close"===e.reason||"agentAway"===e.reason?t(Object(ae.a)("widget")).then((function(){t(Object(W.a)())})):t(Object(W.a)());break;case"SOCKET_closeConversationResponse":case"SOCKET_chatEnded":(r=n().notification)&&"online"===r.type&&(c=r.notificationId,Object(_.g)(ze.a,"interaction",(function(e){return e?Ge()(e,c):e})));break;case"SOCKET_away":case"SOCKET_offline":case"SOCKET_allAgentsAway":case"SOCKET_slotsFull":(r=n().notification)&&"online"===r.type&&r.isOpen&&(Ve(r.notificationId),t(Object(W.b)("agentAway")),t(Object(ae.a)()));break;case"OPEN_NOTIFICATION_ANSWERS":t(Object(W.c)(e.notificationId,"answers","view"));break;case"OPEN_NOTIFICATION_ONLINE":t(Object(W.c)(e.notificationId,"chat","view"));break;case"OPEN_WIDGET":var a=e.proactiveId;a&&Ve(a)}var c}(n,e.dispatch,e.getState),t(n)}}},function(e){return function(t){return function(n){return function(e,t,n){var r=n().widget.soundEnabled;switch(e.type){case"SOCKET_"+V.a.Type.MESSAGE:r&&nt("1_1");break;case"ADD_MESSAGES":case"ADD_MESSAGE":var o=n().messages.some((function(e){return"message"===e.type&&"visitor"===e.fromType}));r&&o&&nt("1_1")}}(n,e.dispatch,e.getState),t(n)}}},function(e){return function(t){return function(n){var r=t(n);return function(e,t,n){var r=[];-1!==$e.indexOf(e.type)&&r.push({key:"widget",value:Ke()(n().widget,["isOpen","inActiveConversation"])},{key:"navigation",value:Xe(n().navigation)},{key:"pendingMessages",value:n().pendingMessages},{key:"consent",value:Ke()(n().consent,["showConsent"])},{key:"notification",value:n().notification},{key:"search",value:Ze(n().search)},{key:"feedbackVotes",value:n().feedbackVotes},{key:"formValues",value:n().formValues});-1!==Qe.indexOf(e.type)&&r.push({key:"stream",value:Ke()(n().stream,["audioInputDeviceId","audioOutputDeviceId","videoInputDeviceId","isMuted"])});r.length>0&&Object(G.b)("multiSetSessionData",r).catch((function(e){console.warn("Could not set session state",e)}))}(n,e.dispatch,e.getState),r}}},function(e){return function(t){return function(n){var r=t(n);return function(e,t,n){switch(e.type){case"NAVIGATE_TO":case"NAVIGATE_MULTIPLE_TO":case"NAVIGATE_BACK":case"NAVIGATE_TO_INDEX":case"REPLACE_NAVIGATION":case"OPEN_CHAT":case"CLOSE":case"CHANGE_NAVIGATION_STACK":case"HIDE_NOTIFICATION":n().widget.isOpen&&Object(G.a)("setWidgetUIState",Object(De.a)(n));break;case"OPEN_WIDGET":var r=Object(De.a)(n);"proactive"===e.reason&&(r="widget-proactive"),Object(G.a)("openWidget",r,e.reason);break;case"REMOVE_HUB_ITEM":0===Object(X.f)(n()).length&&Object(G.a)("hideAll")}}(n,e.dispatch,e.getState),r}}},function(e){return function(t){return function(n){!function(e,t,n){switch(e.type){case"SET_LANGUAGE":n().localization.language&&!e.payload.override||x.b.setLanguage(e.payload.language)}}(n,e.dispatch,e.getState);var r=t(n);return We(n,e.dispatch,e.getState),r}}},function(e){return function(t){return function(n){!function(e,t,n){switch(e.type){case"CLOSE":n().notification.isOpen||R("closed",t,n)}}(n,e.dispatch,e.getState);var r=t(n);return function(e,t,n){switch(e.type){case"PRE_HIDE_NOTIFICATION":"startChat"!==(r=e.reason)&&"answersSearch"!==r||R("opened",t,n);break;case"OPEN_WIDGET":var r;"proactive"===(r=e.reason)?D("view",t,n):"launcher"===r&&R("opened",t,n);break;case"CLOSE":"proactive"===n().widget.openReason&&D("closed",t,n);break;case"CHANGE_NAVIGATION_STACK":R("opened",t,n);break;case"SEND_MESSAGE_SUCCESS":var o=n().messages.filter((function(e){return"visitor"===e.type}));o&&o.length;D("clicked",t,n);break;case"NAVIGATE_TO":"answers"===e.module&&"answers"!==e.name&&D("clicked",t,n);break;case"FORM_SUBMIT_SUCCESS":"online"!==Object(N.b)(n()).module&&D("clicked",t,n)}}(n,e.dispatch,e.getState),r}}},function(e){return function(t){return function(n){var r=t(n);return function(e,t,n){var r;switch(e.type){case"ADD_HUB_ITEMS":var o=n().navigation;(a=n().hub).some((function(e){return e.id===o.activeStackId}))||t(Object(F.b)(Object(_.b)(a[0])));break;case"HIDE_SERVICE":var i=n().navigation,a=Object(X.i)(n());if(0===(null===(r=String(i.activeStackId))||void 0===r?void 0:r.indexOf(e.payload.serviceName))){var c=a.filter((function(t){return t.type!==e.payload.serviceName}));c.length>0?t(Object(F.b)(Object(_.b)(c[0]))):(console.warn("Could not change widget navigation since no other services exists"),console.warn("Using hideService when only one service is visible is undefined behavior. Make sure to only use hideServie when multiple services are visible."))}}}(n,e.dispatch,e.getState),r}}},function(e){return function(t){return function(n){var r=t(n);return function(e,t,n){switch(e.type){case"SOCKET_message":var r=n().messages[n().messages.length-1].body,o=x.b.formatString(x.b.a11yAgentNewMessage,{message:r});t(j(o));break;case"ADD_MESSAGE":e.message.text&&t(j(e.message.text));break;case"SET_LANGUAGE":var i=document.querySelector("html");i&&i.setAttribute("lang",e.payload.language)}}(n,e.dispatch,e.getState),r}}},function(e){return function(e){return function(t){if("SOCKET_hist"!==t.type)return e(t);Object(G.b)("getSessionData","conversation-end-message-id").then((function(n){var r;if(n)return e(Be(Be({},t),{payload:Be(Be({},t.payload),{data:null===(r=t.payload.data)||void 0===r?void 0:r.filter((function(e){return e.id>n}))})}));e(t)})).catch((function(n){console.warn(n),e(t)}))}}}];r.e({dsn:"https://5fece4d33af54aafa796e774e4b2343d@glitchtip.imbox.io/3",release:A.f,ignoreErrors:[/SecurityError: SecurityError$/,/Object Not Found Matching Id:\d+, MethodName:\w+, ParamCount:\d+/],allowUrls:[/.*imbox.*/],beforeSend:function(e){var t,n;if(e.exception&&e.exception.values){var r=e.exception.values[0];if(r.stacktrace&&r.stacktrace.frames)for(var o=0,i=r.stacktrace.frames;o"}try{c.currentTarget=Object(i.c)(a.currentTarget)?Object(o.a)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(e){c.currentTarget=""}for(var r in"undefined"!=typeof CustomEvent&&Object(i.g)(e,CustomEvent)&&(c.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,r)&&(c[r]=a);return c}return e}function l(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function p(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=v(e,t);return l(r)>n?p(e,t-1,n):r}function h(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==e&&t===e?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":Object(i.l)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+Object(c.a)(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t}function g(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new a.a),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=h(e);return Object(i.i)(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var o=h(t,e);if(Object(i.i)(o))return o;var c=d(t),u=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var s in c)Object.prototype.hasOwnProperty.call(c,s)&&(u[s]=g(s,c[s],n-1,r));return r.unmemoize(t),u}function v(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return g(e,n,t)})))}catch(e){return"**non-serializable**"}}function y(e,t){void 0===t&&(t=40);var n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(u.d)(n[0],t);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:Object(u.d)(o,t)}return""}function m(e){var t,n;if(Object(i.h)(e)){var o=e,a={};try{for(var c=Object(r.f)(Object.keys(o)),u=c.next();!u.done;u=c.next()){var s=u.value;void 0!==o[s]&&(a[s]=m(o[s]))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return a}return Array.isArray(e)?e.map(m):e}}).call(this,n(61))},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return s}));var r=n(3),o=n(13),i=n.n(o),a=function(e){return{type:"PRE_HIDE_NOTIFICATION",reason:e}},c=function(){return{type:"HIDE_NOTIFICATION"}},u=function(e){return{type:"UPDATE_NOTIFICATION_MESSAGE",message:e}},s=function(e,t,n){return function(o,a,c){c.conn;var u=a().widget.userId,s=a().activeConversation.agentId,f=a().widget.channelId,d=a().widget.visitorUuid,l=a().host.url,p=a().host.deviceType,h=r.a+"message/notification/".concat(u,"/").concat(f);o({type:"TRACK_NOTIFICATION_VIEW_FETCH"}),i.a.post(h,{agent_id:s,uid:d,notification_id:e,type:t,url:l,device:p,actionType:n}).then((function(){o({type:"TRACK_NOTIFICATION_VIEW_SUCCESS"})}),(function(e){o({type:"TRACK_NOTIFICATION_VIEW_FAILED",reason:e})}))}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return y}));var r=n(0),o=n(12),i=n(693),a=n(49),c=n(148),u=n(124),s=n(715),f=n(29),d=function(){function e(e){this.errors=0,this.sid=Object(o.i)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=s.a.Ok,e&&this.update(e)}return e.prototype.update=function(e){void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Date.now(),e.sid&&(this.sid=32===e.sid.length?e.sid:Object(o.i)()),e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),"number"==typeof e.duration?this.duration=e.duration:this.duration=this.timestamp-this.started,e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===s.a.Ok?this.update({status:s.a.Exited}):this.update()},e.prototype.toJSON=function(){return Object(f.a)({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:Object(f.a)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),l=function(){function e(e,t,n){void 0===t&&(t=new u.a),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version=0?c(c({},e),{navigationStacks:c(c({},e.navigationStacks),(o={},o[e.activeStackId]=c(c({},e.navigationStacks[e.activeStackId]),{currentIndex:O}),o))}):e;case"INSERT_AT_BEGINNING":return(E=e.navigationStacks[e.activeStackId])?c(c({},e),{navigationStacks:c(c({},e.navigationStacks),(i={},i[e.activeStackId]=c(c({},e.navigationStacks[e.activeStackId]),{history:u([{module:t.module,name:t.name,params:t.params}],e.navigationStacks[e.activeStackId].history,!0)}),i))}):e;case"NAVIGATE_TO_AT":return(E=e.navigationStacks[e.activeStackId])?c(c({},e),{navigationStacks:c(c({},e.navigationStacks),(f={},f[e.activeStackId]=l(E,t.index,t.module,t.name,t.params),f))}):e;case"NAVIGATE_TO_INDEX":return(E=e.navigationStacks[e.activeStackId])?E.currentIndex===t.index?e:c(c({},e),{navigationStacks:c(c({},e.navigationStacks),(g={},g[e.activeStackId]=c(c({},E),{currentIndex:t.index}),g))}):e;case"REPLACE_AT_MODULE":if(E=e.navigationStacks[e.activeStackId]){var O;return-1!==(O=function(e,t){for(var n=0;n0}function f(){u+=1,setTimeout((function(){u-=1}))}function d(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var i=function(){var i=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var c=i.map((function(e){return d(e,t)}));return e.handleEvent?e.handleEvent.apply(this,c):e.apply(this,c)}catch(e){throw f(),Object(o.m)((function(n){n.addEventProcessor((function(e){var n=Object(r.a)({},e);return t.mechanism&&(Object(a.b)(n,void 0,void 0),Object(a.a)(n,t.mechanism)),n.extra=Object(r.a)(Object(r.a)({},n.extra),{arguments:i}),n})),Object(o.c)(e)})),e}};try{for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&(i[c]=e[c])}catch(e){}e.prototype=e.prototype||{},i.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:i}),Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return e.name}})}catch(e){}return i}function l(e){if(void 0===e&&(e={}),e.eventId)if(e.dsn){var t=document.createElement("script");t.async=!0,t.src=new i.a(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else c.a.error("Missing dsn option in showReportDialog call");else c.a.error("Missing eventId option in showReportDialog call")}},,,,function(e,t,n){"use strict";function r(e,t){return e===t}function o(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:r,n=null,i=null;return function(){return o(t,n,arguments)||(i=e.apply(null,arguments)),n=arguments,i}}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(12),o=Object(r.e)(),i="Sentry Logger ",a=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t0&&(a=i),n&&a.some((function(e){return Object(o.b)(e)===n}))?n:a[0]&&Object(o.b)(a[0])}function f(e,t){var n=e,o=t;return o.initialCategoryId&&(n=Object(r.d)(n,"answers","answersArticleList",{userId:o.answersWidgetID,answersId:o.assignAnswers,categoryId:o.initialCategoryId,categoryName:""})),o.initialCategoryId&&o.initialArticleId&&(n=Object(r.d)(n,"answers","answersArticleDetails",{userId:o.answersWidgetID,answersId:o.assignAnswers,categoryId:o.initialCategoryId,articleId:o.initialArticleId})),n}function d(e){var t,n=u(e),o="bot"===e.type?"online":e.type;return(t={})[e.id]=Object(r.d)(Object(r.a)(),o,o,n),t}function l(e,t,n){if(!t)return r.c;if(!e||!e.navigationStacks)return function(e,t){var n,o=1===e.length,a=e.length>1;if(o){var c=e[0],d="bot"===c.type?"online":c.type,l=u(c),p=r.c,h=Object(r.d)(Object(r.a)(),d,d,l);return"answers"===d&&(h=f(h,c)),i(i({},p),{activeStackId:c.id,navigationStacks:(n={},n[c.id]=h,n)})}if(a){p=r.c;return i(i({},p),{activeStackId:s(e,t),navigationStacks:e.reduce((function(e,t){var n,o=u(t),a="bot"===t.type?"online":t.type,c=Object(r.d)(Object(r.a)(),a,a,o);return"answers"===a&&(c=f(c,t)),i(i({},e),((n={})[t.id]=c,n))}),{})})}}(t,n().widget.hiddenServices);var o=i(i({},e),{activeStackId:s(t,n().widget.hiddenServices,e.activeStackId),navigationStacks:t.reduce((function(t,n){var o,a=e.navigationStacks[n.id];if(a){var c=a.history[0].module,s=a.history[0].params;if("answers"===c){var l=n.answersWidgetID,p=n.assignAnswers;if(s.userId!==l||s.formId!==p)return i(i({},t),d(n));if(n.initialCategoryId)return i(i({},t),function(e){var t,n=u(e),o=e.type;return(t={})[e.id]=f(Object(r.d)(Object(r.a)(),o,o,n),e),t}(n))}else if(a.history[0]&&"form"===a.history[0].module){l=n.customFormWidgetID,p=n.customForm;if(s.customFormWidgetID!==l||s.customForm!==p)return i(i({},t),d(n))}return i(i({},t),((o={})[n.id]=a,o))}return i(i({},t),d(n))}),{})});return o.navigationStacks[o.activeStackId]?o:i(i({},o),{activeStackId:s(t,n().widget.hiddenServices)})}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(273),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"e",(function(){return v})),n.d(t,"h",(function(){return y})),n.d(t,"f",(function(){return m})),n.d(t,"d",(function(){return w})),n.d(t,"g",(function(){return b})),n.d(t,"c",(function(){return _})),n.d(t,"a",(function(){return E})),n.d(t,"i",(function(){return O}));var r=n(41),o=n(259),i=n(34),a=n(12),c=n(56),u=n(190),s=n(44),f=n(253),d=n(255),l=n(256),p=n(257),h=n(258),g=[new r.a.InboundFilters,new r.a.FunctionToString,new f.a,new d.a,new l.a,new p.a,new h.a];function v(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=g),void 0===e.release){var t=Object(a.e)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!1),Object(o.a)(u.a,e),e.autoSessionTracking&&function(){var e=Object(a.e)(),t=Object(i.b)(),n="complete"===document.readyState,r=!1,o=function(){r&&n&&t.endSession()},c=function(){n=!0,o(),e.removeEventListener("load",c)};t.startSession(),n||e.addEventListener("load",c);try{var u=new PerformanceObserver((function(e,t){e.getEntries().forEach((function(e){"first-contentful-paint"===e.name&&e.startTime"}catch(e){return""}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e});var i=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,o(r,n.prototype),r}return Object(r.b)(t,e),t}(Error)},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return l}));var r=n(0),o=n(153),i=n(12),a=n(56),c=n(7),u=n(104),s=n(90);function f(e,t,n){var r=l(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return Object(i.a)(r,{handled:!0,type:"generic"}),r.level=o.a.Error,n&&n.event_id&&(r.event_id=n.event_id),a.a.resolve(r)}function d(e,t,n,r){void 0===n&&(n=o.a.Info);var i=p(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),a.a.resolve(i)}function l(e,t,n){var o;if(void 0===n&&(n={}),Object(c.e)(e)&&e.error)return e=e.error,o=Object(u.b)(Object(s.a)(e));if(Object(c.a)(e)||Object(c.b)(e)){var a=e,f=a.name||(Object(c.a)(a)?"DOMError":"DOMException"),d=a.message?f+": "+a.message:f;return o=p(d,t,n),Object(i.b)(o,d),"code"in a&&(o.tags=Object(r.a)(Object(r.a)({},o.tags),{"DOMException.code":""+a.code})),o}if(Object(c.d)(e))return o=Object(u.b)(Object(s.a)(e));if(Object(c.h)(e)||Object(c.f)(e)){var l=e;return o=Object(u.a)(l,t,n.rejection),Object(i.a)(o,{synthetic:!0}),o}return o=p(e,t,n),Object(i.b)(o,""+e,void 0),Object(i.a)(o,{synthetic:!0}),o}function p(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var o=Object(s.a)(t),i=Object(u.d)(o.stack);r.stacktrace={frames:i}}return r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var r=n(28),o=n(193),i=n(2),a=n(59),c=n(38),u=n(24),s=n(150),f=n(10),d=n(20),l=n(192),p=n(87),h=["online","bot"];function g(e,t,n){return(n.showLauncher?Object(i.b)("showLauncher"):Promise.resolve()).then((function(){return e?Object(i.b)("openWidget",t):Promise.resolve()})).catch((function(e){console.warn("Could not call showLauncher/openWidget",e)}))}function v(e,t,n,r,o,i){i.push("handleWidgetAction");var v=null==e?void 0:e.filter((function(e){return-1!==h.indexOf(e.type)})),y=1===e.length,m=Object(a.a)(r().navigation),w=r().widget.isOpen;if(n({type:"ADD_HUB_ITEMS",items:e}),1===(null==v?void 0:v.length)){var b=v[0];Object(l.a)(b,t.trigger,i).then((function(e){return n(e)})).then((function(e){"BOT_FAIL_CONNECT"!==e&&"CHAT_FAIL_CONNECT"!==e&&n({type:"TRIGGER_STOP_POLLING"});var t=r().widget.isOpen,i=Object(d.a)(r());return t&&!i&&n(Object(u.b)(Object(f.b)(b))),g(w,Object(p.a)(r),o)})).catch((function(e){console.error("Could not connect and show widget",e),c.c(e,{extra:{tracer:i.toString()}})}))}else(null==v?void 0:v.length)>1&&n({type:"TRIGGER_STOP_POLLING"});1===(null==v?void 0:v.length)&&y||1===(null==v?void 0:v.length)&&w&&"online"===m||g(w,Object(p.a)(r),o).catch((function(e){console.warn(e)})),w||Object(s.b)(e,t,n,r)}function y(e,t){var n,r=!!e.trigger.hub,o=e.trigger.language,a=e.trigger.launcherTitle,c=e.trigger.launcherIcon,u=!1;if(3===e.trigger.apiVersion){u=e.trigger.hideLauncherIcon;var s=e.trigger.useAgentPictureLauncherIcon;if(n=e.trigger.launcherIconSize,r)(f=e.trigger.hub.find((function(e){return"online"===e.type||"bot"===e.type})))&&s&&f.agentPicture&&(c=f.agentPicture,n=void 0)}else{var f,d=e.trigger.launcherIconOnline;if(r)(f=e.trigger.hub.find((function(e){return"online"===e.type||"bot"===e.type})))&&d?c=d:!c&&f&&!d&&f.agentPicture&&(c=f.agentPicture)}return Object(i.b)("setLauncherSettings",{position:e.trigger.widgetPosition,icon:c,iconSize:n,title:a,isOpen:t,hideIcon:u,language:o})}var m,w=n(86),b=n.n(w),_=n(6),E=n(88),O=n(310),S=n(92),I=function(){return(I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?Promise.all(o):Promise.resolve()}function T(e,t,n){var r=Object(i.b)("getSessionData","consent"),o=Object(i.b)("getCookie","imboxConsent");return Promise.all([r,o]).then((function(r){var o=r[0],i=r[1];o?n({type:"INITIAL_CONSENT",state:I(I({},o),{hasShownConsent:i&&i["approved:".concat(t)]&&i["approved:".concat(t)].channelId===e})}):i&&i["approved:".concat(t)]&&i["approved:".concat(t)].channelId===e&&n({type:"HAS_SHOWN_CONSENT"})}))}function A(e,t,n,r,o){return!(!e||n||!r)&&(o!==m.NoMatchingHubItemSessionNotificationWasOpen&&(o!==m.NoTriggerNotification||!t))}function j(e,t,n,r,o){o.push("handleFirstTrigger"),Object(i.a)("setCookie","imbox","imboxUid",e.trigger.imboxUid);var c=e.trigger.hub,u=(!c||!c.some((function(e){return"online"===e.type||"bot"===e.type})))&&e.trigger.shouldPoll;u&&t({type:"TRIGGER_RESULT_NO_AGENTS"}),u&&t(Object(S.a)());var s=!!c;!function(e,t){if((t.localization||t.consent.localization)&&_.b.setContent(b()(_.a,t.localization||{},t.consent.localization||{})),t.language)e(Object(E.a)(t.language,!1));else{var n=document.querySelector("html");n&&n.setAttribute("lang",_.b.getLanguage())}}(t,e.trigger),e.trigger.a11yMode?document.body.classList.remove("no-focus-outline"):document.body.classList.add("no-focus-outline");var f=Object(i.b)("multiGetSessionData",["widget","navigation","search","notification","pendingMessages","stream","feedbackVotes","formValues"]),d=e.trigger.launcherIcon;e.trigger.launcherTitle;if(s){var l=s&&1===e.trigger.hub.length&&("online"===e.trigger.hub[0].type||"bot"===e.trigger.hub[0].type);!d&&l&&c[0].agentPicture&&(d=c[0].agentPicture)}return Promise.all([f,C(e.trigger,t),T(e.trigger.channelId,e.trigger.userId,t)]).then((function(i){var u,f,d=i[0],l=d[0],p=d[1],h=d[2],g=d[3],w=d[4],b=d[5],E=d[6],O=d[7],S=!!l,C=l,T=function(e,t,n){if(!e)return[m.NoSessionNotification,void 0];if(!n)return[m.NoHub,void 0];if(!t)return[m.NoTriggerNotification,void 0];var r=e.type,o=n.find((function(e){return e.type===r}));if(o){var i=t.find((function(t){return t.id===e.notificationId&&t.type===e.type}));if(i){var a=_.b.formatString(i.message,{agentName:o.agentName});return[m.UpdateSessionNotification,I(I({},e),{message:a})]}return[m.UseSessionNotification,e]}return e.isOpen?[m.NoMatchingHubItemSessionNotificationWasOpen,void 0]:[m.NoMatching,void 0]}(g,e.trigger.notifications,c),j=T[0],x=T[1];if(S){var N="mobile"===e.metadata.deviceType;f=!!(C=I(I({},C),{userId:e.trigger.userId,agentId:e.trigger.agentId,channelId:e.trigger.channelId,token:e.trigger.token,isOpen:A(l.isOpen,null!==(u=null==g?void 0:g.isOpen)&&void 0!==u&&u,N,(null==c?void 0:c.length)>0,j),inActiveConversation:l.inActiveConversation})).isOpen}else f=!1;return s&&t({type:"ADD_HUB_ITEMS",items:c}),t({type:"INITIAL_STATE",navigation:Object(a.c)(p,c,n),widget:C,search:h,notification:x,pendingMessages:w,stream:b,feedbackVotes:E,formValues:O}),y(e,f).then((function(){return s?v(c,e,t,n,r,o):Promise.resolve()})).catch((function(e){console.warn(e)}))})).catch((function(i){return console.warn(i),y(e,!1).then((function(){return s?v(e.trigger.hub,e,t,n,r,o):Promise.resolve()}))})).catch((function(e){console.warn(e)}))}function x(e,t,n,r,o){o.push("handleTriggerResult");var i=!n().widget.userId;return t({type:"TRIGGER_RESULT",userId:e.trigger.userId,agentId:e.trigger.agentId,visitorUuid:e.trigger.imboxUid,channelId:e.trigger.channelId,token:e.trigger.token,metadata:e.metadata,onChatEnd:e.trigger.onChatEnd,chatAwayForm:e.trigger.chatAwayForm,chatOfflineForm:e.trigger.chatOfflineForm,chatSlotsFullForm:e.trigger.chatSlotsFullForm,onNoResponse:e.trigger.onNoResponse,noSearchResult:e.trigger.noSearchResult,companyName:e.trigger.companyName,consentId:e.trigger.consent&&e.trigger.consent.id,shouldPoll:e.trigger.shouldPoll,enableCloseConversation:e.trigger.enableCloseConversation,enableFileUploads:e.trigger.enableFileUploads,instanceId:e.trigger.instanceId,greetingMessage:e.trigger.greetingMessage,hash:e.trigger.hash}),i?j(e,t,n,r,o):function(e,t,n,r,o){return o.push("handleContinuedTrigger"),e.trigger.hub?(t({type:"MERGE_NAVIGATION_STACK",navigation:Object(a.c)(n().navigation,e.trigger.hub,n)}),y(e,n().widget.isOpen).then((function(){return v(e.trigger.hub,e,t,n,r,o)}))):Promise.resolve()}(e,t,n,r,o)}!function(e){e[e.UseSessionNotification=0]="UseSessionNotification",e[e.UpdateSessionNotification=1]="UpdateSessionNotification",e[e.NoSessionNotification=2]="NoSessionNotification",e[e.NoHub=3]="NoHub",e[e.NoTriggerNotification=4]="NoTriggerNotification",e[e.NoMatching=5]="NoMatching",e[e.NoMatchingHubItemSessionNotificationWasOpen=6]="NoMatchingHubItemSessionNotificationWasOpen"}(m||(m={}));var N=function(e,t,n,a){return function(c,u,s){var f=s.conn;c({type:"TRIGGER_FETCH"});var d=function(e){return{showLauncher:null==e||"boolean"!=typeof e.showLauncher||e.showLauncher}}(n);d.showLauncher||c(Object(r.i)(!1));var l=Object(o.a)(Object(i.c)("userId"),u().widget.visitorUuid,u().widget.inActiveConversation,u().activeConversation.agentId,t.includes("polling")?u().widget.hash:"",e,a).then((function(n){return e.push((new Date).toISOString()),e.push(t),e.push("connection-".concat(f.hasBeenSetup(),"-size-").concat(f.getBufferSize())),e.push("primusStateIsOpen-".concat(f.isOpen())),n.trigger?(e.push("trigger.uid-".concat(n.trigger.imboxUid)),e.push("trigger.channelId-".concat(n.trigger.channelId)),x(n,c,u,d,e.push("startTrigger")).then((function(){return c({type:"TRIGGER_SUCCESS"}),n}))):(e.push("trigger.no-content-204"),c({type:"TRIGGER_SUCCESS"}),n)}));return l.catch((function(e){console.warn("Error startTrigger:",e),c({type:"TRIGGER_FAILED"})})),l}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c}));var r=n(7);function o(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function i(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var o=Math.max(t-60,0);o<5&&(o=0);var i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n="'{snip} "+n),i|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,a=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/,s=/Minified React error #\d+;/i;function f(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:s.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=n.split("\n"),a=[],c=0;c eval")>-1&&(t=c.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==d||n[5]||void 0===e.columnNumber||(s[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func="?"),s.push(r)}if(!s.length)return null;return{message:l(e),name:e.name,stack:s}}(e))return d(t,n)}catch(e){}return{message:l(e),name:e&&e.name,stack:[],failed:!0}}function d(e,t){try{return Object(r.a)(Object(r.a)({},e),{stack:e.stack.slice(t)})}catch(t){return e}}function l(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return{type:"TRIGGER_START_POLLING"}}},function(e,t,n){var r=n(401),o=n(406);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r="sentry.javascript.browser",o="5.30.0"},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=n(0);function o(e,t){return{body:JSON.stringify({sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(e),type:"session",url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function i(e,t){var n=e.tags||{},o=n.__sentry_samplingMethod,i=n.__sentry_sampleRate,a=Object(r.d)(n,["__sentry_samplingMethod","__sentry_sampleRate"]);e.tags=a;var c="transaction"===e.type,u={body:JSON.stringify(e),type:e.type||"event",url:c?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(c){var s=JSON.stringify({event_id:e.event_id,sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:e.type,sample_rates:[{id:o,rate:i}]})+"\n"+u.body;u.body=s}return u}},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return s}));var r=n(7),o=n(29),i=n(90);function a(e){var t=s(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function c(e,t,n){var a={exception:{values:[{type:Object(r.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(o.b)(e)}]},extra:{__serialized__:Object(o.e)(e)}};if(t){var c=s(Object(i.a)(t).stack);a.stacktrace={frames:c}}return a}function u(e){return{exception:{values:[a(e)]}}}function s(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r,o=n(0),i=n(7),a=n(49),c=n(12),u=n(29),s=n(65),f=n(196),d=Object(c.e)(),l={},p={};function h(e){if(!p[e])switch(p[e]=!0,e){case"console":!function(){if(!("console"in d))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in d.console&&Object(u.c)(d.console,e,(function(t){return function(){for(var n=[],r=0;r2?t[2]:void 0;if(o){var i=r,a=String(o);r=a,v("history",{from:i,to:a})}return e.apply(this,t)}}d.onpopstate=function(){for(var t=[],n=0;n0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&n(!1)}),e);c.a.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),s=n(49),f=n(12),d=function(){function e(e){this.options=e,this._buffer=new u(30),this._rateLimits={},this._api=new o.a(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new a.a("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,o=e.resolve,a=e.reject,c=i.a.fromHttpCode(n.status);this._handleRateLimit(r)&&s.a.warn("Too many requests, backing off until: "+this._disabledUntil(t)),c!==i.a.Success?a(n):o({status:c})},e.prototype._disabledUntil=function(e){return this._rateLimits[e]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,o,i,a=Date.now(),c=e["x-sentry-rate-limits"],u=e["retry-after"];if(c){try{for(var s=Object(r.f)(c.trim().split(",")),d=s.next();!d.done;d=s.next()){var l=d.value.split(":",2),p=parseInt(l[0],10),h=1e3*(isNaN(p)?60:p);try{for(var g=(o=void 0,Object(r.f)(l[1].split(";"))),v=g.next();!v.done;v=g.next()){var y=v.value;this._rateLimits[y||"all"]=new Date(a+h)}}catch(e){o={error:e}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return!0}return!!u&&(this._rateLimits.all=new Date(a+Object(f.g)(a,u)),!0)},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2);function o(){var e=Object(r.c)("settings");return{manualTrigger:void 0!==e&&"boolean"==typeof e.manualTrigger&&e.manualTrigger,disableHistoryHooks:void 0!==e&&"boolean"==typeof e.disableHistoryHooks&&!0===e.disableHistoryHooks,showLauncher:void 0===e||"boolean"!=typeof e.showLauncher||e.showLauncher}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return f}));var r=n(0),o=n(7),i=n(693),a=n(56),c=n(12),u=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Object(r.e)(t._breadcrumbs),n._tags=Object(r.a)({},t._tags),n._extra=Object(r.a)({},t._extra),n._contexts=Object(r.a)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Object(r.e)(t._eventProcessors)),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.setTags=function(e){return this._tags=Object(r.a)(Object(r.a)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Object(r.a)(Object(r.a)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Object(r.a)(Object(r.a)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Object(r.a)(Object(r.a)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=Object(r.a)(Object(r.a)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,o=this.getSpan();return(null===(e=o)||void 0===e?void 0:e.transaction)?null===(t=o)||void 0===t?void 0:t.transaction:(null===(r=null===(n=o)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?o.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Object(r.a)(Object(r.a)({},this._tags),t._tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),t._extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):Object(o.h)(t)&&(t=t,this._tags=Object(r.a)(Object(r.a)({},this._tags),t.tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),t.extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=Object(r.a)({timestamp:Object(i.a)()},e);return this._breadcrumbs=void 0!==t&&t>=0?Object(r.e)(this._breadcrumbs,[n]).slice(-t):Object(r.e)(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=Object(r.a)(Object(r.a)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Object(r.a)(Object(r.a)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Object(r.a)(Object(r.a)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Object(r.a)(Object(r.a)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=Object(r.a)({trace:this._span.getTraceContext()},e.contexts);var o=null===(n=this._span.transaction)||void 0===n?void 0:n.name;o&&(e.tags=Object(r.a)({transaction:o},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Object(r.e)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(Object(r.e)(s(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,i){var c=this;return void 0===i&&(i=0),new a.a((function(a,u){var s=e[i];if(null===t||"function"!=typeof s)a(t);else{var f=s(Object(r.a)({},t),n);Object(o.m)(f)?f.then((function(t){return c._notifyEventProcessors(e,t,n,i+1).then(a)})).then(null,u):c._notifyEventProcessors(e,f,n,i+1).then(a).then(null,u)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function s(){var e=Object(c.e)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function f(e){s().push(e)}},function(e,t,n){"use strict";(function(n,r){var o;!function(){var i,a="Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";if(O="object"==typeof n&&"object"==typeof n.versions&&n.versions.node&&!n.browser){var c=n.versions.node.toString().replace("v","");a="Nodejs/"+c+" (NodeOS) AppleWebKit/"+c+" (KHTML, like Gecko) Nodejs/"+c+" Nodejs/"+c}i=void 0!==r?r:window,"undefined"==typeof window&&("undefined"==typeof window&&void 0!==r&&(r.navigator={userAgent:a,getUserMedia:function(){}},i.window=r),"undefined"==typeof location&&(i.location={protocol:"file:",href:"",hash:""}),"undefined"==typeof screen&&(i.screen={width:0,height:0}));var u=window.navigator;void 0!==u?(void 0!==u.webkitGetUserMedia&&(u.getUserMedia=u.webkitGetUserMedia),void 0!==u.mozGetUserMedia&&(u.getUserMedia=u.mozGetUserMedia)):u={getUserMedia:function(){},userAgent:a};var s=!!/Android|webOS|iPhone|iPad|iPod|BB10|BlackBerry|IEMobile|Opera Mini|Mobile|mobile/i.test(u.userAgent||""),f=!(-1===u.userAgent.indexOf("Edge")||!u.msSaveOrOpenBlob&&!u.msSaveBlob),d=!!window.opera||u.userAgent.indexOf(" OPR/")>=0,l=void 0!==window.InstallTrigger,p=/^((?!chrome|android).)*safari/i.test(u.userAgent),h=!!window.chrome&&!d,g="undefined"!=typeof document&&!!document.documentMode&&!f;function v(e,t){var n=0,r=!1,o=window.setInterval((function(){e()&&(window.clearInterval(o),t(r)),n++>50&&(window.clearInterval(o),t(r=!0))}),10)}var y={Android:function(){return u.userAgent.match(/Android/i)},BlackBerry:function(){return u.userAgent.match(/BlackBerry|BB10/i)},iOS:function(){return u.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return u.userAgent.match(/Opera Mini/i)},Windows:function(){return u.userAgent.match(/IEMobile/i)},any:function(){return y.Android()||y.BlackBerry()||y.iOS()||y.Opera()||y.Windows()},getOsName:function(){var e="Unknown OS";return y.Android()&&(e="Android"),y.BlackBerry()&&(e="BlackBerry"),y.iOS()&&(e="iOS"),y.Opera()&&(e="Opera Mini"),y.Windows()&&(e="Windows"),e}};var m="Unknown OS",w="Unknown OS Version";var b,_,E=function(){for(var e,t=u.appVersion,n=u.userAgent,r="-",o=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Windows Vista",r:/Windows NT 6.0/},{s:"Windows Server 2003",r:/Windows NT 5.2/},{s:"Windows XP",r:/(Windows NT 5.1|Windows XP)/},{s:"Windows 2000",r:/(Windows NT 5.0|Windows 2000)/},{s:"Windows ME",r:/(Win 9x 4.90|Windows ME)/},{s:"Windows 98",r:/(Windows 98|Win98)/},{s:"Windows 95",r:/(Windows 95|Win95|Windows_95)/},{s:"Windows NT 4.0",r:/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/},{s:"Windows CE",r:/Windows CE/},{s:"Windows 3.11",r:/Win16/},{s:"Android",r:/Android/},{s:"Open BSD",r:/OpenBSD/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:"QNX",r:/QNX/},{s:"UNIX",r:/UNIX/},{s:"BeOS",r:/BeOS/},{s:"OS/2",r:/OS\/2/},{s:"Search Bot",r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}],i=0;e=o[i];i++)if(e.r.test(n)){r=e.s;break}var a="-";switch(/Windows/.test(r)&&(/Windows (.*)/.test(r)&&(a=/Windows (.*)/.exec(r)[1]),r="Windows"),r){case"Mac OS X":/Mac OS X (10[\.\_\d]+)/.test(n)&&(a=/Mac OS X (10[\.\_\d]+)/.exec(n)[1]);break;case"Android":/Android ([\.\_\d]+)/.test(n)&&(a=/Android ([\.\_\d]+)/.exec(n)[1]);break;case"iOS":/OS (\d+)_(\d+)_?(\d+)?/.test(n)&&(a=(a=/OS (\d+)_(\d+)_?(\d+)?/.exec(t))[1]+"."+a[2]+"."+(0|a[3]))}return{osName:r,osVersion:a}}();E&&E.osName&&"-"!=E.osName?(m=E.osName,w=E.osVersion):y.any()&&"Android"==(m=y.getOsName())&&(w=!!(_=(b=(b||u.userAgent).toLowerCase()).match(/android\s([0-9\.]*)/))&&_[1]);var O="object"==typeof n&&"object"==typeof n.versions&&n.versions.node;"Unknown OS"===m&&O&&(m="Nodejs",w=n.versions.node.toString().replace("v",""));var S=!1,I=!1;["captureStream","mozCaptureStream","webkitCaptureStream"].forEach((function(e){"undefined"!=typeof document&&"function"==typeof document.createElement&&(!S&&e in document.createElement("canvas")&&(S=!0),!I&&e in document.createElement("video")&&(I=!0))}));var C=[],T=[],A=[],j=[];u.mediaDevices&&u.mediaDevices.enumerateDevices&&(u.enumerateDevices=function(e){var t=u.mediaDevices.enumerateDevices();t&&t.then?u.mediaDevices.enumerateDevices().then(e).catch((function(){e([])})):e([])});var x=!1;("undefined"!=typeof MediaStreamTrack&&"getSources"in MediaStreamTrack||u.mediaDevices&&u.mediaDevices.enumerateDevices)&&(x=!0);var N=!1,k=!1,P=!1,R=!1,D=!1;function M(e){if(x)if(!u.enumerateDevices&&window.MediaStreamTrack&&window.MediaStreamTrack.getSources&&(u.enumerateDevices=window.MediaStreamTrack.getSources.bind(window.MediaStreamTrack)),!u.enumerateDevices&&u.enumerateDevices&&(u.enumerateDevices=u.enumerateDevices.bind(u)),u.enumerateDevices){C=[],T=[],A=[],j=[],N=!1,k=!1,P=!1,R=!1,D=!1;var t={};u.enumerateDevices((function(n){n.forEach((function(e){var n={};for(var r in e)try{"function"!=typeof e[r]&&(n[r]=e[r])}catch(e){}t[n.deviceId+n.label+n.kind]||("audio"===n.kind&&(n.kind="audioinput"),"video"===n.kind&&(n.kind="videoinput"),n.deviceId||(n.deviceId=n.id),n.id||(n.id=n.deviceId),n.label?("videoinput"!==n.kind||D||(D=!0),"audioinput"!==n.kind||R||(R=!0)):(n.isCustomLabel=!0,"videoinput"===n.kind?n.label="Camera "+(j.length+1):"audioinput"===n.kind?n.label="Microphone "+(T.length+1):"audiooutput"===n.kind?n.label="Speaker "+(A.length+1):n.label="Please invoke getUserMedia once.",void 0!==L&&L.browser.isChrome&&L.browser.version>=46&&!/^(https:|chrome-extension:)$/g.test(location.protocol||"")&&"undefined"!=typeof document&&"string"==typeof document.domain&&document.domain.search&&-1===document.domain.search(/localhost|127.0./g)&&(n.label="HTTPs is required to get label of this "+n.kind+" device.")),"audioinput"===n.kind&&(N=!0,-1===T.indexOf(n)&&T.push(n)),"audiooutput"===n.kind&&(k=!0,-1===A.indexOf(n)&&A.push(n)),"videoinput"===n.kind&&(P=!0,-1===j.indexOf(n)&&j.push(n)),C.push(n),t[n.deviceId+n.label+n.kind]=n)})),void 0!==L&&(L.MediaDevices=C,L.hasMicrophone=N,L.hasSpeakers=k,L.hasWebcam=P,L.isWebsiteHasWebcamPermissions=D,L.isWebsiteHasMicrophonePermissions=R,L.audioInputDevices=T,L.audioOutputDevices=A,L.videoInputDevices=j),e&&e()}))}else e&&e();else e&&e()}var L=window.DetectRTC||{};L.browser=function(){u.appVersion;var e,t,n,r=u.userAgent,o=u.appName,i=""+parseFloat(u.appVersion),a=parseInt(u.appVersion,10);if(d){o="Opera";try{a=(i=u.userAgent.split("OPR/")[1].split(" ")[0]).split(".")[0]}catch(e){i="0.0.0.0",a=0}}else g?((t=r.indexOf("rv:"))>0?i=r.substring(t+3):(t=r.indexOf("MSIE"),i=r.substring(t+5)),o="IE"):h?(t=r.indexOf("Chrome"),o="Chrome",i=r.substring(t+7)):p?(t=r.indexOf("Safari"),o="Safari",i=r.substring(t+7),-1!==(t=r.indexOf("Version"))&&(i=r.substring(t+8)),-1!==u.userAgent.indexOf("Version/")&&(i=u.userAgent.split("Version/")[1].split(" ")[0])):l?(t=r.indexOf("Firefox"),o="Firefox",i=r.substring(t+8)):(e=r.lastIndexOf(" ")+1)<(t=r.lastIndexOf("/"))&&(o=r.substring(e,t),i=r.substring(t+1),o.toLowerCase()===o.toUpperCase()&&(o=u.appName));return f&&(o="Edge",i=u.userAgent.split("Edge/")[1]),-1!==(n=i.search(/[; \)]/))&&(i=i.substring(0,n)),a=parseInt(""+i,10),isNaN(a)&&(i=""+parseFloat(u.appVersion),a=parseInt(u.appVersion,10)),{fullVersion:i,version:a,name:o,isPrivateBrowsing:!1}}(),function(e){var t;try{if(window.webkitRequestFileSystem)window.webkitRequestFileSystem(window.TEMPORARY,1,(function(){t=!1}),(function(e){t=!0}));else if(window.indexedDB&&/Firefox/.test(window.navigator.userAgent)){var n;try{(n=window.indexedDB.open("test")).onerror=function(){return!0}}catch(e){t=!0}void 0===t&&v((function(){return"done"===n.readyState}),(function(e){e||(t=!n.result)}))}else if(function(e){var t=e.toLowerCase();if(0===t.indexOf("msie")&&0===t.indexOf("trident"))return!1;var n=/(?:msie|rv:)\s?([\d\.]+)/.exec(t);return!!(n&&parseInt(n[1],10)>=10)}(window.navigator.userAgent)){t=!1;try{window.indexedDB||(t=!0)}catch(e){t=!0}}else if(window.localStorage&&/Safari/.test(window.navigator.userAgent)){try{window.localStorage.setItem("test",1)}catch(e){t=!0}void 0===t&&(t=!1,window.localStorage.removeItem("test"))}}catch(e){t=!1}v((function(){return void 0!==t}),(function(n){e(t)}))}((function(e){L.browser.isPrivateBrowsing=!!e})),L.browser["is"+L.browser.name]=!0,L.osName=m,L.osVersion=w;"object"==typeof n&&"object"==typeof n.versions&&n.versions["node-webkit"];var U=!1;["RTCPeerConnection","webkitRTCPeerConnection","mozRTCPeerConnection","RTCIceGatherer"].forEach((function(e){U||e in window&&(U=!0)})),L.isWebRTCSupported=U,L.isORTCSupported="undefined"!=typeof RTCIceGatherer;var F=!1;((L.browser.isChrome&&L.browser.version>=35||L.browser.isFirefox&&L.browser.version>=34||L.browser.isEdge&&L.browser.version>=17||"Android"===L.osName&&L.browser.isChrome)&&(F=!0),/^(https:|chrome-extension:)$/g.test(location.protocol||""))||("undefined"!=typeof document&&"string"==typeof document.domain&&document.domain.search&&-1===document.domain.search(/localhost|127.0./g)&&(L.browser.isChrome||L.browser.isEdge||L.browser.isOpera)||L.browser.isFirefox)&&(F=!1);L.isScreenCapturingSupported=F;var W={isSupported:!1,isCreateMediaStreamSourceSupported:!1};["AudioContext","webkitAudioContext","mozAudioContext","msAudioContext"].forEach((function(e){W.isSupported||e in window&&(W.isSupported=!0,window[e]&&"createMediaStreamSource"in window[e].prototype&&(W.isCreateMediaStreamSourceSupported=!0))})),L.isAudioContextSupported=W.isSupported,L.isCreateMediaStreamSourceSupported=W.isCreateMediaStreamSourceSupported;var B=!1;L.browser.isChrome&&L.browser.version>31&&(B=!0),L.isRtpDataChannelsSupported=B;var z=!1;(L.browser.isFirefox&&L.browser.version>28||L.browser.isChrome&&L.browser.version>25||L.browser.isOpera&&L.browser.version>=11)&&(z=!0),L.isSctpDataChannelsSupported=z,L.isMobileDevice=s;var H=!1;(u.getUserMedia||u.mediaDevices&&u.mediaDevices.getUserMedia)&&(H=!0),L.browser.isChrome&&L.browser.version>=46&&!/^(https:|chrome-extension:)$/g.test(location.protocol||"")&&"undefined"!=typeof document&&"string"==typeof document.domain&&document.domain.search&&-1===document.domain.search(/localhost|127.0./g)&&(H="Requires HTTPs"),"Nodejs"===L.osName&&(H=!1),L.isGetUserMediaSupported=H;var G,q,V,Y="";screen.width&&(Y+=(screen.width?screen.width:"")+" x "+(screen.height?screen.height:""));L.displayResolution=Y,L.displayAspectRatio=(G=screen.width,q=screen.height,V=function e(t,n){return 0==n?t:e(n,t%n)}(G,q),G/V/(q/V)).toFixed(2),L.isCanvasSupportsStreamCapturing=S,L.isVideoSupportsStreamCapturing=I,"Chrome"==L.browser.name&&L.browser.version>=53&&(L.isCanvasSupportsStreamCapturing||(L.isCanvasSupportsStreamCapturing="Requires chrome flag: enable-experimental-web-platform-features"),L.isVideoSupportsStreamCapturing||(L.isVideoSupportsStreamCapturing="Requires chrome flag: enable-experimental-web-platform-features")),L.DetectLocalIPAddress=function(e,t){L.isWebRTCSupported&&function(e,t){if("undefined"==typeof document||"function"!=typeof document.getElementById)return;var n={},r=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection;if(!r){var o=document.getElementById("iframe");if(!o)return;var i=o.contentWindow;r=i.RTCPeerConnection||i.mozRTCPeerConnection||i.webkitRTCPeerConnection}if(!r)return;var a=null;"Chrome"===L.browser&&L.browser.version<58&&(a={optional:[{RtpDataChannels:!0}]});var c=new r({iceServers:[{urls:"stun:stun.l.google.com:19302"}]},a);t&&(c.addStream?c.addStream(t):c.addTrack&&t.getTracks()[0]&&c.addTrack(t.getTracks()[0],t));function u(t){var r=/([0-9]{1,3}(\.[0-9]{1,3}){3})/.exec(t);if(r){var o=r[1];void 0===n[o]&&e(o),n[o]=!0}}if(c.onicecandidate=function(e){e.candidate&&u(e.candidate.candidate)},!t)try{c.createDataChannel("sctp",{})}catch(e){}L.isPromisesSupported?c.createOffer().then((function(e){c.setLocalDescription(e).then(s)})):c.createOffer((function(e){c.setLocalDescription(e,s,(function(){}))}),(function(){}));function s(){c.localDescription.sdp.split("\n").forEach((function(e){0===e.indexOf("a=candidate:")&&u(e)}))}}((function(t){t.match(/^(192\.168\.|169\.254\.|10\.|172\.(1[6-9]|2\d|3[01]))/)?e("Local: "+t):e("Public: "+t)}),t)},L.isWebSocketsSupported="WebSocket"in window&&2===window.WebSocket.CLOSING,L.isWebSocketsBlocked=!L.isWebSocketsSupported,"Nodejs"===L.osName&&(L.isWebSocketsSupported=!0,L.isWebSocketsBlocked=!1),L.checkWebSocketsSupport=function(e){e=e||function(){};try{var t,n=new WebSocket("wss://echo.websocket.org:443/");n.onopen=function(){L.isWebSocketsBlocked=!1,t=(new Date).getTime(),n.send("ping")},n.onmessage=function(){L.WebsocketLatency=(new Date).getTime()-t+"ms",e(),n.close(),n=null},n.onerror=function(){L.isWebSocketsBlocked=!0,e()}}catch(t){L.isWebSocketsBlocked=!0,e()}},L.load=function(e){M(e=e||function(){})},L.MediaDevices=void 0!==C?C:[],L.hasMicrophone=N,L.hasSpeakers=k,L.hasWebcam=P,L.isWebsiteHasWebcamPermissions=D,L.isWebsiteHasMicrophonePermissions=R,L.audioInputDevices=T,L.audioOutputDevices=A,L.videoInputDevices=j;var K=!1;"undefined"!=typeof document&&"function"==typeof document.createElement&&"setSinkId"in document.createElement("video")&&(K=!0),L.isSetSinkIdSupported=K;var J=!1;L.browser.isFirefox&&"undefined"!=typeof mozRTCPeerConnection?"getSenders"in mozRTCPeerConnection.prototype&&(J=!0):L.browser.isChrome&&"undefined"!=typeof webkitRTCPeerConnection&&"getSenders"in webkitRTCPeerConnection.prototype&&(J=!0),L.isRTPSenderReplaceTracksSupported=J;var $=!1;L.browser.isFirefox&&L.browser.version>38&&($=!0),L.isRemoteStreamProcessingSupported=$;var Q=!1;"undefined"!=typeof MediaStreamTrack&&"applyConstraints"in MediaStreamTrack.prototype&&(Q=!0),L.isApplyConstraintsSupported=Q;var X=!1;L.browser.isFirefox&&L.browser.version>=43&&(X=!0),L.isMultiMonitorScreenCapturingSupported=X,L.isPromisesSupported=!!("Promise"in window),L.version="1.3.6",void 0===L&&(window.DetectRTC={});var Z=window.MediaStream;void 0===Z&&"undefined"!=typeof webkitMediaStream&&(Z=webkitMediaStream),L.MediaStream=void 0!==Z&&"function"==typeof Z&&Object.keys(Z.prototype),"undefined"!=typeof MediaStreamTrack?L.MediaStreamTrack=Object.keys(MediaStreamTrack.prototype):L.MediaStreamTrack=!1;var ee=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection;L.RTCPeerConnection=void 0!==ee&&Object.keys(ee.prototype),window.DetectRTC=L,e.exports=L,void 0===(o=function(){return L}.apply(t,[]))||(e.exports=o)}()}).call(this,n(127),n(61))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var r=function(e,t){return e.forms[t]},o=function(e,t){var n;return null===(n=e.forms[t])||void 0===n?void 0:n.versionId},i=function(e){return function(t){var n;return null===(n=e.forms[t])||void 0===n?void 0:n.languageCode}}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],f=!1,d=-1;function l(){f&&u&&(f=!1,u.length?s=u.concat(s):d=-1,s.length&&p())}function p(){if(!f){var e=c(l);f=!0;for(var t=s.length;t;){for(u=s,s=[];++d1)for(var n=1;n1),t})),c(e,f(e),n),s&&(n=o(n,7,u));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return f}));var r=n(24),o=n(87),i=n(59),a=n(10),c=n(2),u=n(6),s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;nc.getTime())&&i()&&a()}))}),n)}function l(e){switch(e){case"online":return 1;case"bot":return 2;case"answers":return 3;case"forms":return 4;default:return 5}}function p(e,t,n){for(var r=0;r0&&i[0];if(c){d({groupId:c.id,timer:1e3*Number(c.time),closeTime:Number(c.closeTime),cookieName:f,condition:function(){var e=o().widget.isOpen,t=o().widget.inActiveConversation,n=o().hub.some((function(e){return e.type===c.matchingHubItem.type}));return!e&&!t&&n},action:function(){n(Object(r.b)(Object(a.b)(c.matchingHubItem))),n({type:"OPEN_WIDGET",reason:"proactive",proactiveId:c.id})}})}}(e,m,n,h):y&&function(e,t,n,r){var o=t.sort((function(e,t){return l(e.type)-l(t.type)})).map((function(t){return s(s({},t),{matchingHubItem:p(e.sort((function(e,t){return e.order-t.order})),t.type,!0)})})).filter((function(e){return e.matchingHubItem})),i=o.length>0&&o[0];if(i){d({groupId:i.id,timer:1e3*Number(i.time),closeTime:Number(i.closeTime),cookieName:f,condition:function(){var e=r().widget.isOpen,t=r().widget.inActiveConversation,n=r().hub.some((function(e){return e.type===i.matchingHubItem.type})),o=r().widget.hasOpenedOnce,a="online"!==i.matchingHubItem.type||r().activeConversation.isActive,c="bot"!==i.matchingHubItem.type||r().activeConversation.isActive;return!o&&!e&&!t&&n&&a&&c},action:function(){if("answers"===i.type)n({type:"OPEN_NOTIFICATION_ANSWERS",notificationId:i.id,userId:i.matchingHubItem.answersWidgetID,formId:i.matchingHubItem.assignAnswers,message:i.message}),Object(c.b)("openWidget","notification","timer").catch((function(e){n({type:"HIDE_NOTIFICATION"}),n({type:"CLOSE"}),console.warn("Could not open widget as notification",e)}));else if("online"===i.type){var e=u.b.formatString(i.message,{agentName:i.matchingHubItem.agentName});n({type:"OPEN_NOTIFICATION_ONLINE",notificationId:i.id,message:e,agentName:i.matchingHubItem.agentName,agentPicture:i.matchingHubItem.agentPicture,department:i.matchingHubItem.department}),Object(c.b)("openWidget","notification","timer").catch((function(e){n({type:"HIDE_NOTIFICATION"}),n({type:"CLOSE"}),console.warn("Could not open widget as notification",e)}))}}})}}(e,y,n,h)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=function(e,t,n,r){return{type:"SET_FORM_VALUE",instanceId:e,formId:t,id:n,value:r}},o=function(e,t,n){return{type:"SET_FORM_PREFILL_VALUE",payload:{formId:e,id:t,value:n}}},i=function(e,t){return{type:"REMOVE_FORM_PREFILL_VALUE",payload:{formId:e,id:t}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(7);function o(e){try{for(var t=e,n=[],r=0,o=0,a=" > ".length,c=void 0;t&&r++<5&&!("html"===(c=i(t))||r>1&&o+n.length*a+c.length>=80);)n.push(c),o+=c.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return""}}function i(e){var t,n,o,i,a,c=e,u=[];if(!c||!c.tagName)return"";if(u.push(c.tagName.toLowerCase()),c.id&&u.push("#"+c.id),(t=c.className)&&Object(r.k)(t))for(n=t.split(/\s+/),a=0;a0?y+w.map((function(e){return"".concat(m,"=").concat(encodeURIComponent(e))})).join("&"):"")),l&&(_+="&dataid="+l),p&&(_+="&articleVersion="+p),h&&(_+="&articleLanguageCode="+h),u&&(_+="&consentId="+u+"&lang="+d),a()(_,{},(function(t,n){if(t)return v(t);e(n)}))}))}var m=function(e,t,n,r,i,a,u,s){return function(d,l,p){p.conn;var h,g=encodeURIComponent(l().host.url),m=l().widget.visitorUuid,w=Object(f.b)(l(),n),b=l().host.language;return h=w.versionId?o.a.post(c.a+"api/submitForm",{userId:e,formId:n,data:v(w.form,a),fileTokens:s,consentId:u,curl:g,visitorUUid:m,language:b,versionId:w.versionId,channel:i,agentId:r}).then((function(e){return e.data})):y({userId:e,formId:n,form:w.form,values:a,fileTokens:s,consentId:u,currentUrl:g,visitorUUid:m,language:b}),d({type:"FORM_SUBMIT_FETCH",formId:n}),h.then((function(e){d({type:"FORM_SUBMIT_SUCCESS",thankyouText:e.msg,instanceId:t,formId:n})})).catch((function(e){d({type:"FORM_SUBMIT_FAILED",instanceId:t,formId:n})})),h}},w=function(e,t,n,r,i,a,u,s,d){return function(l,p,h){h.conn;var g,m=p().widget.visitorUuid,w=encodeURIComponent(p().host.url),b=p().host.language,_=Object(f.b)(p(),n);return g=_.versionId?o.a.post(c.a+"api/submitForm",{userId:e,formId:n,data:v(_.form,u),consentId:s,currentUrl:w,visitorUUid:m,language:b,versionId:_.versionId,articleId:r,articleVersion:i,articleLanguageCode:a,fileTokens:d}).then((function(e){return e.data})):y({userId:e,formId:String(n),form:_.form,values:u,consentId:s,currentUrl:w,visitorUUid:m,language:b,articleId:r,articleVersion:i,articleLanguageCode:a,fileTokens:d}),l({type:"FORM_SUBMIT_FETCH",formId:n}),g.then((function(e){l({type:"FORM_SUBMIT_SUCCESS",thankyouText:e.msg,instanceId:t,formId:n})})).catch((function(e){l({type:"FORM_SUBMIT_FAILED",instanceId:t,formId:n})})),g}},b=function(e){return Object(l.c)("form","formThankYou",{formId:e})},_=function(e,t,n,r){return void 0===r&&(r="form"),function(i,a,f){f.conn;return new Promise((function(f,l){var h=a(),g=Object(d.e)(h),v=new URLSearchParams(p({sid:String(e),aid:String(t),nid:String(n),channel:null,lang:g},"faq"===r?{isFAQ:String(!0)}:{})),y="".concat(c.a,"api/form?").concat(v);i({type:"FORM_FETCH",formId:n}),o.a.get(y).then((function(e){var t,o="form"===r?null!==(t=e.data.flow)&&void 0!==t?t:{}:function(e){for(var t={"new-form":{isRoot:!0,bottomChildren:[],rightChildren:[],variant:"new-form",data:{trigger:{}}}},n=0;n-1&&e%1==0&&e0&&i?r.forEach((function(e){return t(Object(o.c)("form-".concat(n),n,e,i))})):t(Object(o.b)(n,a,i))}))}},c=function(e,t){return function(n,r){r().formPrefillValues.filter((function(t){return Number(t.formId)===Number(e)})).map((function(e){var n=e.id,r=e.value,o=e.formId;return i(t,n).map((function(e){return{formId:o,id:e,value:r}}))})).reduce((function(e,t){return e.concat(t)}),[]).forEach((function(e){var t=e.formId,r=e.id,i=e.value;n(Object(o.c)("form-".concat(t),t,r,i)),n(Object(o.a)(t,r))}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(121),o=n(131),i=n(2);function a(e,t,n){return n.push("getActionForConnectingSocket"),Object(i.b)("getMetadata").then((function(i){var a,c=t.userId,u=t.channelId,s=t.imboxUid,f=t.instanceId;if("bot"===e.type){var d=parseInt(e.agentID),l=e.agentName,p=e.agentPicture,h=e.department;a=Object(r.a)({userId:c,botId:d,agentName:l,agentPicture:p,agentDepartment:h,channelId:u,visitorUuid:s,instanceId:f,metadata:i},n)}else{var g=parseInt(e.agentID);l=e.agentName,p=e.agentPicture,h=e.department;a=Object(o.b)({userId:c,agentId:g,agentName:l,agentPicture:p,agentDepartment:h,channelId:u,visitorUuid:s,instanceId:f,metadata:i},n)}return a}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var r=n(38),o=n(2),i=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},a=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&(t.en=t[n[0]])}return{id:e.id,localization:t}}var _=/\$(\{[\s\S]*\})/;function E(e){var t=null,n=e&&e.match(_);return n&&(t=w(n[1]),e=e.replace(_,"").trim()),g({text:e},t)}var O=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},S=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(273),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c}).call(this,n(199)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(431),o=n(280),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=c},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n"}0!==t.length&&Object(o.b)().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,i=t.status_code,a=t.body;Object(o.b)().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},type:"http"},{xhr:e.xhr,input:a})}else;},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?Object(o.b)().addBreadcrumb({category:"fetch",data:e.fetchData,level:i.a.Error,type:"http"},{data:e.error,input:e.args}):Object(o.b)().addBreadcrumb({category:"fetch",data:Object(r.a)(Object(r.a)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=Object(a.e)(),n=e.from,r=e.to,i=Object(a.h)(t.location.href),c=Object(a.h)(n),u=Object(a.h)(r);c.path||(c=i),i.protocol===u.protocol&&i.host===u.host&&(r=u.relative),i.protocol===c.protocol&&i.host===c.host&&(n=c.relative),Object(o.b)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),o=n(34),i=n(153),a=n(49),c=n(105),u=n(7),s=n(12),f=n(75),d=n(44),l=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=Object(r.a)({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(a.a.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(a.a.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(Object(c.a)({callback:function(n){var r=n.error,i=Object(o.b)(),a=i.getIntegration(e),c=r&&!0===r.__sentry_own_request__;if(a&&!Object(d.b)()&&!c){var l=i.getClient(),p=Object(u.i)(r)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(Object(f.c)(r,void 0,{attachStacktrace:l&&l.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);Object(s.a)(p,{handled:!1,type:"onerror"}),i.captureEvent(p,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(Object(c.a)({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var a=Object(o.b)(),c=a.getIntegration(e),l=r&&!0===r.__sentry_own_request__;if(!c||Object(d.b)()||l)return!0;var p=a.getClient(),h=Object(u.i)(r)?t._eventFromRejectionWithPrimitive(r):Object(f.c)(r,void 0,{attachStacktrace:p&&p.getOptions().attachStacktrace,rejection:!0});h.level=i.a.Error,Object(s.a)(h,{handled:!1,type:"onunhandledrejection"}),a.captureEvent(h,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var o,i=Object(u.e)(e)?e.message:e;if(Object(u.k)(i)){var a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(o=a[1],i=a[2])}var c={exception:{values:[{type:o||"Error",value:i}]}};return this._enhanceEventWithInitialFrame(c,t,n,r)},e.prototype._eventFromRejectionWithPrimitive=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(e)}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var o=isNaN(parseInt(r,10))?void 0:r,i=isNaN(parseInt(n,10))?void 0:n,a=Object(u.k)(t)&&t.length>0?t:Object(s.f)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:o,filename:a,function:"?",in_app:!0,lineno:i}),e},e.id="GlobalHandlers",e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),o=n(124),i=n(34),a=n(7),c=n(104),u=n(90),s=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){Object(o.b)((function(t,n){var r=Object(i.b)().getIntegration(e);return r?r._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Object(a.g)(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=Object(r.e)(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Object(a.g)(e[t],Error)||n.length+1>=this._limit)return n;var o=Object(u.a)(e[t]),i=Object(c.c)(o);return this._walkErrorTree(e[t],t,Object(r.e)([i],n))},e.id="LinkedErrors",e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),o=n(124),i=n(34),a=n(12),c=Object(a.e)(),u=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Object(o.b)((function(t){var n,o,a;if(Object(i.b)().getIntegration(e)){if(!c.navigator&&!c.location&&!c.document)return t;var u=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(o=c.location)||void 0===o?void 0:o.href),s=(c.document||{}).referrer,f=(c.navigator||{}).userAgent,d=Object(r.a)(Object(r.a)(Object(r.a)({},null===(a=t.request)||void 0===a?void 0:a.headers),s&&{Referer:s}),f&&{"User-Agent":f}),l=Object(r.a)(Object(r.a)({},u&&{url:u}),{headers:d});return Object(r.a)(Object(r.a)({},t),{request:l})}return t}))},e.id="UserAgent",e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(34),o=n(49);function i(e,t){!0===t.debug&&o.a.enable();var n=Object(r.b)(),i=new e(t);n.bindClient(i)}},function(e){e.exports=JSON.parse('{"contactFormHeader":"Contact","formUnknownError":"Something went wrong, please try again later.","emailTranscriptSend":"Send","emailTranscriptClose":"Close","emailTranscriptCancel":"Cancel","minimizeWindow":"Minimize window","headerSettingsMenu":"Settings","headerCallMenu":"Go to call","rateConversation":"Rate your conversation","rateConversationThankYou":"Thanks for your vote!","agentAway":"Unfortunately there\'s no agents available at the moment. Please try again later.","agentOffline":"Unfortunately there\'s no agents available at the moment. Please try again later.","agentSlotsFull":"Unfortunately there\'s no agents available at the moment. Please try again later.","agentReconnected":"{agentName} joined the conversation.","chatEnd":"{agentName} has ended the conversation","defaultRatingText":"Please rate your conversation","chatMessagePlaceholder":"Write to {agentName} here...","answersSearchPlaceholder":"Type your search word here","answersNotificationSearchPlaceholder":"Type your search word here","emailConversation":"Please provide your email address to receive a copy of this chat.","emailConversationSent":"Thank you, you will recieve the transcript shortly.","emailConversationNamePlaceholder":"Your name","emailConversationEmailPlaceholder":"Your email address","emailConversationNameValidationError":"Name is mandatory","emailConversationEmailValidationError":"Enter a valid email address","emailConversationSendButton":"Send","connectionEnd":"Cannot reconnect to service, please check your internet connection","connectionReconnect":"Reconnecting to service","answersBreadcrumbHome":"Start","answersBreadcrumbSearchResults":"Search results","answersSearchResultsFound":"Search results for","answersNoSearchResultsFound":"No results for \'{search}\'.","answersNoSearchResultsFoundDidYouMean":"Did you mean {suggestion}?","answersArticleDetails":"Article","answersDetailsCategory":"In category:","answersDetailsAuthor":"Written by:","answersVoteThankYou":"Thanks for your feedback!","answersBackToStart":"Search among articles","answersFeedbackTextYes":"Yes","answersFeedbackTextNo":"No","answersFeedbackYesThankYou":"Thank you for your feedback!","answersFeedbackNoThankYou":"Thank you for your feedback!","answersFeedbackPhoneText":"Call us","answersFeedbackChatText":"Chat with us","answersFeedbackTitle":"Was this article helpful?","defaultHubChatName":"Chat with us","defaultHubAnswersName":"FAQ","defaultHubFormName":"Contact us","searchNoResultChat":"Chat with me!","searchNoResultFeedbackFormTitle":"Send feedback","onlineTransfer":"You have been transferred to {agentName}","brandingText":"","brandingPageOnline":"\\"ImBox\\"

This chat was created by ImBox, which offers all the tools needed to provide world-class service.

","brandingPageAnswers":"\\"ImBox\\"

This FAQ was created by ImBox, which offers all the tools needed to provide world-class service.

","brandingPageVisitButton":"Read more about ImBox products","brandingPageOnlineBackButton":"Back to chat","brandingPageAnswersBackButton":"Back to FAQ","brandingLink":"https://imbox.se/","incomingCall":"wants to start a voice call...","incomingVideoCall":"wants to start a video call...","incomingCallAccept":"Accept","incomingCallReject":"Reject","incomingCallFooter":"No charge or software to install","callError":"Something went wrong 😔","callErrorCloseButton":"close","unmute":"Unmute","mute":"Mute","fullScreen":"Full screen","settings":"Settings","hangUp":"Hang up","callSettingsHeader":"Settings","videoDevicesHeader":"Camera","audioInputDevicesHeader":"Microphone","audioOutputDevicesHeader":"Speakers","fileUploadError":"An error occurred while uploading file, please try again","bankidPersonalNumber":"Personal number","bankidOpenThisDevice":"Open BankID on this device","bankidOpenThisDeviceFallback":"If your BankID app doesn\'t start you may need to open the app manually","bankidOpen":"Start your BankID app","bankidPersonalNumberPlaceholder":"YYYYMMDDSSSS","bankidPersonalNumberInvalidPersonalNumber":"Please enter a valid swedish personal number","bankidPersonalNumberWrongLength":"Please enter 12 digits","bankidSignFailed":"Identification failed","bankidSuccess":"Identification success","bankidButtonSign":"Identify","bankidImboxBranding":"BankID via ImBox","a11yAgentNewMessage":"New message from agent {message}","a11yHeaderClose":"Close","a11yHeaderBack":"Go back","a11yNotificationClose":"Close","a11yRadioThumbsUp":"Thumb up","a11yRadioThumbsDown":"Thumbs down","a11yChatSendMessage":"Send","a11yChatEmailConversation":"Email conversation","a11yFAQCategory":"FAQ category {categoryId}","a11yEmojiRating":"Select {number}","a11yStarsRating":"Select {number}","a11yChatUploadFile":"Upload file","closeConversationTooltip":"End conversation","closeConversationButton":"End conversation","endConversationDialogTitle":"Are you sure you want to end the conversation?","answersBreadcrumbArticle":"Article","customFormSubmitSuccess":"Your post has been submitted","endConversationDialogCancel":"Cancel","chatFailRegister":"Failed to connect, please try again.","answersDetailsFetchFailedHeader":"Something went wrong","answersDetailsFetchFailedContent":"An error occured when trying to fetch article, please try again.","answersDetailsNotFoundHeader":"Not found","answersDetailsNotFoundContent":"Article not found.","headerAgentDepartment":"{agentDepartment}","brandingPageForms":"\\"ImBox\\"

This form was created by ImBox, which offers all the tools needed to provide world-class service.

","brandingPageFormsBackButton":"Return to the form","changeConversationTitle":"Changing conversations will close the current conversation","changeConversationCancel":"Cancel","changeConversationOk":"Change","incomingCallAcceptOnlyAudio":"Accept audio only","a11ySearch":"Search","a11yInsertEmoji":"Insert emoji","a11yTurnMicOff":"Turn mic off","a11yTurnMicOn":"Turn mic on","a11yEndCall":"End call","a11yToggleFullscreen":"Toggle fullscreen","a11yCallSettings":"Call settings","a11yRemove":"Remove","a11yShowMore":"Show more","emailConversationName":"Name","emailConversationEmail":"Email","changedConversation":"Changed conversation to {agentName}","a11yMessageFromAgent":"Message from agent","a11yMessageFromMe":"Message from me","videoCall":"Video call","a11yToggleChat":"Toggle chat","a11yToggleVideo":"Toggle video","openChat":"Open chat","openVideo":"Open video","a11yCloseSettings":"Close","bankidScanQR":"Start the BankID app on your phone or tablet and press \\"Scan QR code\\"","bankidStart":"Start identification","bankidTryAgain":"Try again","openMenu":"Open menu","a11yOpenMenu":"Open menu"}')},function(e,t,n){"use strict";(function(e,r){var o,i=n(364);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(i.a)(o);t.a=a}).call(this,n(61),n(202)(e))},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d}));var r=n(9),o=n(3),i=n(13),a=n.n(i),c=n(2),u=n(147),s=function(){return{type:"SHOW_CONSENT"}},f=function(e){return function(t,n,i){i.conn;var s=n(),f=s.widget,d=s.host,l=f.userId,p=f.visitorUuid,h=f.channelId,g=d.url,v=d.language;t({type:"ACCEPT_CONSENT_FETCH"}),a.a.post("".concat(o.a,"api/consent/").concat(l),{uid:p,channel:h,consentId:e,lang:v,url:g}).then((function(){var e=n().activeConversation.isActive,o=n().pendingMessages;if(e)Object(c.a)("setCookie","imboxConsent","approved:".concat(l),{channelId:h}),t({type:"ACCEPT_CONSENT_SUCCESS"}),o.forEach((function(e){t(Object(r.h)(e))})),t({type:"CLEAR_ALL_PENDING_MESSAGES"});else{var i=o&&o.length>0&&o[0];i&&t(Object(u.a)(i)),t({type:"HIDE_CONSENT"}),t({type:"CLEAR_ALL_PENDING_MESSAGES"})}})).catch((function(){t({type:"ACCEPT_CONSENT_FAILED"})}))}},d=function(){return{type:"CLEAR_CONSENT"}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return u}));var r=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0?(o=n.shift(),[4,[i=e[o],o]]):[3,3];case 2:return(a=r.sent())?a.bottom?n=i.bottomChildren.concat(n):a.right&&(n=i.rightChildren.concat(n)):n=i.rightChildren.concat(i.bottomChildren,n),[3,1];case 3:return[2]}}))}function i(e,t){var n=e[t.refBlockKey];if(!n)return{right:!1,bottom:!0};return function(){switch(t.type){case"contains":return n.includes(t.value);case"equal":return n===t.value;case"notContains":return!n.includes(t.value);case"notEqual":return n!==t.value;case"regex":return new RegExp(t.value).test(n)}return!1}()?{right:!0,bottom:!1}:{right:!1,bottom:!0}}function a(e,t,n){var r=t.refBlockKey,o=e[r];if(o){var i=o.data.trigger;if(!n[r]&&i.defaultOption)return n[r]=i.defaultOption,n}return n}var c="new-form";function u(e,t,n){var r,u,s,f;if(void 0===t&&(t={}),e[c])for(var d,l,p,h,g,v=o(e,c),y=v.next();!y.done;){var m=y.value,w=m[0],b=m[1];if(["match-form-selection","match-form-input"].includes(w.variant)){var _=null;"match-form-selection"===w.variant?(d=a(e,w.data.trigger,t),l=null!==(u=null===(r=w.data)||void 0===r?void 0:r.trigger)&&void 0!==u?u:{},p=void 0,h=void 0,g=void 0,p=d[l.refBlockKey],h=l.refValue,_=(g=Array.isArray(p)?p.includes(h):p===h)&&"hide"===l.action?{right:!1,bottom:!0}:g||"hide"!==l.action?g?{right:!0,bottom:!1}:{right:!1,bottom:!0}:{right:!0,bottom:!1}):"match-form-input"===w.variant&&(_=i(t,null!==(f=null===(s=w.data)||void 0===s?void 0:s.trigger)&&void 0!==f?f:{})),y=v.next(_)}else[c].includes(w.variant)||n(w,b),y=v.next()}}},function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var r=n(370),o=n(371),i=n(372);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(e).length;default:if(r)return W(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,o){var i,a=1,c=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,c/=2,u/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var f=-1;for(i=n;ic&&(n=c-u),i=n;i>=0;i--){for(var d=!0,l=0;lo&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:s>223?3:s>191?2:1;if(o+d<=n)switch(d){case 1:s<128&&(f=s);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&s)<<6|63&i)>127&&(f=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&s)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:i=e[o+1],a=e[o+2],c=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(u=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&u<1114112&&(f=u)}null===f?(f=65533,d=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(i,a),s=this.slice(r,o),f=e.slice(t,n),d=0;do)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function D(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,i){return i||D(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,i){return i||D(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||k(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);k(this,e,t,n,o-1,-o)}var i=0,a=1,c=0;for(this[t]=255&e;++i>0)-c&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);k(this,e,t,n,o-1,-o)}var i=n-1,a=1,c=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===c&&0!==this[t+i+1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function B(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(61))},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(i)})),e.exports=u}).call(this,n(127))},function(e,t,n){"use strict";var r=n(50),o=n(381),i=n(266),a=n(383),c=n(384),u=n(270);e.exports=function(e){return new Promise((function(t,s){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var l=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",h=e.auth.password||"";d.Authorization="Basic "+btoa(p+":"+h)}if(l.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,l.onreadystatechange=function(){if(l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in l?a(l.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l};o(t,s,r),l=null}},l.onabort=function(){l&&(s(u("Request aborted",e,"ECONNABORTED",l)),l=null)},l.onerror=function(){s(u("Network Error",e,null,l)),l=null},l.ontimeout=function(){s(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",l)),l=null},r.isStandardBrowserEnv()){var g=n(385),v=(e.withCredentials||c(e.url))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}if("setRequestHeader"in l&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:l.setRequestHeader(t,e)})),e.withCredentials&&(l.withCredentials=!0),e.responseType)try{l.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){l&&(l.abort(),s(e),l=null)})),void 0===f&&(f=null),l.send(f)}))}},function(e,t,n){"use strict";var r=n(382);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";var r=n(50);e.exports=function(e,t){t=t||{};var n={};return r.forEach(["url","method","params","data"],(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(["headers","auth","proxy"],(function(o){r.isObject(t[o])?n[o]=r.deepMerge(e[o],t[o]):void 0!==t[o]?n[o]=t[o]:r.isObject(e[o])?n[o]=r.deepMerge(e[o]):void 0!==e[o]&&(n[o]=e[o])})),r.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(61))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(93),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(421),o=n(161),i=n(58),a=n(162),c=n(163),u=n(209),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),f=!n&&o(e),d=!n&&!f&&a(e),l=!n&&!f&&!d&&u(e),p=n||f||d||l,h=p?r(e.length,String):[],g=h.length;for(var v in e)!t&&!s.call(e,v)||p&&("length"==v||d&&("offset"==v||"parent"==v)||l&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||c(v,g))||h.push(v);return h}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){(function(e){var r=n(62),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(199)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0&&i(f)?n>1?e(f,n-1,i,a,c):r(c,f):a||(c[c.length]=f)}return c}},function(e,t,n){var r=n(457),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,c=o(i.length-t,0),u=Array(c);++af))return!1;var l=u.get(e),p=u.get(t);if(l&&p)return l==t&&p==e;var h=-1,g=!0,v=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h1?t-1:0),i=1;i=200){var g=t?null:c(e);if(g)return u(g);l=!1,f=a,h=new r}else h=t?[]:p;e:for(;++s=e&&(clearInterval(o),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var i=this,a=this.getOptions().normalizeDepth,c=void 0===a?3:a,u=Object(r.a)(Object(r.a)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:Object(f.i)()),timestamp:e.timestamp||Object(d.a)()});this._applyClientOptions(u),this._applyIntegrationsMetadata(u);var l=t;n&&n.captureContext&&(l=o.a.clone(l).update(n.captureContext));var p=s.a.resolve(u);return l&&(p=l.applyToEvent(u,n)),p.then((function(e){return"number"==typeof c&&c>0?i._normalizeEvent(e,c):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return Object(r.a)(Object(r.a)({},e),e.data&&{data:Object(l.d)(e.data,t)})}))}),e.user&&{user:Object(l.d)(e.user,t)}),e.contexts&&{contexts:Object(l.d)(e.contexts,t)}),e.extra&&{extra:Object(l.d)(e.extra,t)});return e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace),n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,o=t.dist,i=t.maxValueLength,a=void 0===i?250:i;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=Object(p.d)(e.message,a));var c=e.exception&&e.exception.values&&e.exception.values[0];c&&c.value&&(c.value=Object(p.d)(c.value,a));var u=e.request;u&&u.url&&(u.url=Object(p.d)(u.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=e.sdk,n=Object.keys(this._integrations);t&&n.length>0&&(t.integrations=n)},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){u.a.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,o=this.getOptions(),i=o.beforeSend,a=o.sampleRate;if(!this._isEnabled())return s.a.reject(new h.a("SDK not enabled, will not send event."));var u="transaction"===e.type;return!u&&"number"==typeof a&&Math.random()>a?s.a.reject(new h.a("Discarding event because it's not included in the random sample (sampling rate = "+a+")")):this._prepareEvent(e,n,t).then((function(e){if(null===e)throw new h.a("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||u||!i)return e;var n=i(e,t);if(void 0===n)throw new h.a("`beforeSend` method has to return `null` or a valid event.");return Object(c.m)(n)?n.then((function(e){return e}),(function(e){throw new h.a("beforeSend rejected with "+e)})):n})).then((function(e){if(null===e)throw new h.a("`beforeSend` returned `null`, will not send event.");var t=n&&n.getSession&&n.getSession();return!u&&t&&r._updateSessionFromEvent(t,e),r._sendEvent(e),e})).then(null,(function(e){if(e instanceof h.a)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new h.a("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._processing+=1,e.then((function(e){return t._processing-=1,e}),(function(e){return t._processing-=1,e}))},e}()},function(e,t,n){(function(t){t&&Object({NODE_ENV:"production",ZOID_FRAME_ONLY:!0,PRIMUS_PATH:"https://widget.imbox.io"})?(e.exports=n(369),e.exports.default=e.exports):(e.exports=n(373),e.exports.default=e.exports)}).call(this,n(127))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{},u=c.breadcrumbDataFromAction,s=void 0===u?o:u,f=c.breadcrumbMessageFromAction,d=void 0===f?a:f,l=c.actionTransformer,p=void 0===l?r:l,h=c.stateTransformer,g=void 0===h?r:h,v=c.breadcrumbCategory,y=void 0===v?"redux-action":v,m=c.filterBreadcrumbActions,w=void 0===m?i:m,b=c.getUserContext,_=c.getTags;return function(r){var o;return e.configureScope((function(e){e.addEventProcessor((function(e,i){var a=r.getState();if(e.extra=n({},e.extra,{lastAction:p(o),state:g(a)}),b&&(e.user=n({},e.user,b(a))),_){var c=_(a);Object.keys(c).forEach((function(r){e.tags=n({},e.tags,t({},r,c[r]))}))}return e}))})),function(t){return function(n){return w(n)&&e.addBreadcrumb({category:y,message:d(n),level:"info",data:s(n)}),o=n,t(n)}}}}}()},function(e,t,n){var r=n(167),o=n(494),i=n(495);e.exports=function(e,t){return i(e,o(r(t)))}},function(e,t,n){var r=n(167),o=n(306);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},function(e,t,n){var r=n(291),o=n(167),i=n(300),a=n(306),c=n(298),u=n(288),s=i((function(e){var t=u(e);return c(t)&&(t=void 0),a(r(e,1,c,!0),o(t,2))}));e.exports=s},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";e.exports=n(475)},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,c,u=a(e),s=1;s>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,t={};return Object.freeze(t),e.set(t,"__testvalue__"),"__testvalue__"===e.get(t)}catch(e){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var t=e.prototype;return t._cleanupClosedWindows=function(){for(var e=this.weakmap,t=this.keys,n=0;n=3)return"stringifyError stack overflow";try{if(!e)return"";if("string"==typeof e)return e;if(e instanceof Error){var n=e&&e.stack,r=e&&e.message;if(n&&r)return-1!==n.indexOf(r)?n:r+"\n"+n;if(n)return n;if(r)return r}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(e){return"Error while stringifying error: "+he(e,t+1)}}function ge(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function ve(e,t){if(!t)return e;if(Object.assign)return Object.assign(e,t);for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function ye(e){return e}function me(e,t){var n;return function r(){n=setTimeout((function(){e(),r()}),t)}(),{cancel:function(){clearTimeout(n)}}}function we(e){return[].slice.call(e)}function be(e){return null!=e}function _e(e){return"[object RegExp]"==={}.toString.call(e)}function Ee(e,t,n){if(e.hasOwnProperty(t))return e[t];var r=n();return e[t]=r,r}function Oe(e){var t,n=[],r=!1,o={set:function(t,n){return r||(e[t]=n,o.register((function(){delete e[t]}))),n},register:function(e){var o=pe((function(){return e(t)}));return r?e(t):n.push(o),{cancel:function(){var e=n.indexOf(o);-1!==e&&n.splice(e,1)}}},all:function(e){t=e;var o=[];for(r=!0;n.length;){var i=n.shift();o.push(i())}return g.all(o).then(le)}};return o}function Se(e,t){if(null==t)throw new Error("Expected "+e+" to be present");return t}fe.clear=function(){se=ue},fe((function(e){if(Object.values)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}));var Ie=function(e){function t(t){var n;return(n=e.call(this,t)||this).name=n.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),n.constructor):n.stack=new Error(t).stack,n}return i(t,e),t}(ee(Error));function Ce(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function Te(){return Boolean(document.body)&&"complete"===document.readyState}function Ae(){return Boolean(document.body)&&"interactive"===document.readyState}function je(e){return encodeURIComponent(e)}function xe(e){return function(t,n,r){void 0===r&&(r=[]);var o=t.__inline_memoize_cache__=t.__inline_memoize_cache__||{},i=ae(r);return o.hasOwnProperty(i)?o[i]:o[i]=function(){var t={};if(!e)return t;if(-1===e.indexOf("="))return t;for(var n=0,r=e.split("&");n { ... }":"<"+typeof e+">"})).join(", ")+") failed\n\n")+e.stack),e}))})).then((function(e){return{result:e,id:o,name:i}}))}))}));var u=n.__id__||ie();e=wt.unwrap(e);var s=n.__name__||n.name||r;return"string"==typeof s&&"function"==typeof s.indexOf&&0===s.indexOf("anonymous::")&&(s=s.replace("anonymous::",r+"::")),wt.isProxyWindow(e)?(bt(u,n,s,e,t),e.awaitWindow().then((function(e){bt(u,n,s,e,t)}))):bt(u,n,s,e,t),dt("cross_domain_function",{id:u,name:s})}function Ot(e,t,n,r){var o,i=r.on,a=r.send;return function(e,t){void 0===t&&(t=ht);var n=JSON.stringify(e,(function(e){var n=this[e];if(st(this))return n;var r=ft(n);if(!r)return n;var o=t[r]||pt[r];return o?o(n,e):n}));return void 0===n?"undefined":n}(n,((o={}).promise=function(n,r){return function(e,t,n,r,o){return dt("cross_domain_zalgo_promise",{then:Et(e,t,(function(e,t){return n.then(e,t)}),r,{on:o.on,send:o.send})})}(e,t,n,r,{on:i,send:a})},o.function=function(n,r){return Et(e,t,n,r,{on:i,send:a})},o.object=function(e){return q(e)||wt.isProxyWindow(e)?dt("cross_domain_window",wt.serialize(e,{send:a})):e},o))}function St(e,t,n,r){var o,i=r.send;return function(e,t){if(void 0===t&&(t=vt),"undefined"!==e)return JSON.parse(e,(function(e,n){if(st(this))return n;var r,o;if(st(n)?(r=n.__type__,o=n.__val__):(r=ft(n),o=n),!r)return o;var i=t[r]||gt[r];return i?i(o,e):o}))}(n,((o={}).cross_domain_zalgo_promise=function(e){return function(e,t,n){return new g(n.then)}(0,0,e)},o.cross_domain_function=function(n){return function(e,t,n,r){var o=n.id,i=n.name,a=r.send,c=function(n){function r(){var c=arguments;return wt.toProxyWindow(e,{send:a}).awaitWindow().then((function(e){var u=_t(e,o);if(u&&u.val!==r)return u.val.apply({source:window,origin:C()},c);var s=[].slice.call(c);return n.fireAndForget?a(e,"postrobot_method",{id:o,name:i,args:s},{domain:t,fireAndForget:!0}):a(e,"postrobot_method",{id:o,name:i,args:s},{domain:t,fireAndForget:!1}).then((function(e){return e.data.result}))})).catch((function(e){throw e}))}return void 0===n&&(n={}),r.__name__=i,r.__origin__=t,r.__source__=e,r.__id__=o,r.origin=t,r},u=c();return u.fireAndForget=c({fireAndForget:!0}),u}(e,t,n,{send:i})},o.cross_domain_window=function(e){return wt.deserialize(e,{send:i})},o))}var It={};function Ct(e,t,n,r){var o=r.on,i=r.send;return g.try((function(){var r=rt().getOrSet(e,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(n),r.flush=r.flush||g.flush().then((function(){if(M(e))throw new Error("Window is closed");var n,a=Ot(e,t,((n={}).__post_robot_11_0_0__=r.buffer||[],n),{on:o,send:i});delete r.buffer;for(var c=Object.keys(It),u=[],s=0;s1?t-1:0),o=1;o1?n-1:0),i=1;i iframe {\n display: inline-block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: opacity .2s ease-in-out;\n }\n\n #"+t+" > iframe.zoid-invisible {\n opacity: 0;\n }\n\n #"+t+" > iframe.zoid-visible {\n opacity: 1;\n }\n ")),f.appendChild(n),f.appendChild(r),f.appendChild(d),r.classList.add("zoid-visible"),n.classList.add("zoid-invisible"),a.on(Kt.RENDERED,(function(){r.classList.remove("zoid-visible"),r.classList.add("zoid-invisible"),n.classList.remove("zoid-invisible"),n.classList.add("zoid-visible"),setTimeout((function(){ze(r)}),1)})),a.on(Kt.RESIZE,(function(e){var t=e.width,n=e.height;"number"==typeof t&&(f.style.width=$e(t)),"number"==typeof n&&(f.style.height=$e(n))})),f}}var fn=Oe(),dn=Oe(),ln=function(e){var t,n,r,o;Qe().initialized||(Qe().initialized=!0,n=(t={on:Dt,send:Mt}).on,r=t.send,(o=Qe()).receiveMessage=o.receiveMessage||function(e){return Rt(e,{on:n,send:r})},function(e){var t=e.on,n=e.send;Ze().getOrSet("postMessageListener",(function(){return Fe(window,"message",(function(e){!function(e,t){var n=t.on,r=t.send;g.try((function(){var t=e.source||e.sourceElement,o=e.origin||e.originalEvent&&e.originalEvent.origin,i=e.data;if("null"===o&&(o="file://"),t){if(!o)throw new Error("Post message did not have origin domain");Rt({source:t,origin:o,data:i},{on:n,send:r})}}))}(e,{on:t,send:n})}))}))}({on:Dt,send:Mt}),function(e){var t=e.on,n=e.send;Ze("builtinListeners").getOrSet("helloListener",(function(){var e=t("postrobot_hello",{domain:"*"},(function(e){return it(e.source,{domain:e.origin}),{instanceID:ot()}})),r=U();return r&&at(r,{send:n}).catch((function(e){})),e}))}({on:Dt,send:Mt}));var i=function(e){var t,n,r=function(e){var t=e.tag,n=e.url,r=e.domain,o=e.bridgeUrl,i=e.props,c=void 0===i?{}:i,u=e.dimensions,s=void 0===u?{}:u,f=e.autoResize,d=void 0===f?{}:f,l=e.allowedParentDomains,p=void 0===l?"*":l,h=e.attributes,g=void 0===h?{}:h,v=e.defaultContext,y=void 0===v?Yt.IFRAME:v,m=e.containerTemplate,w=void 0===m?sn:m,b=e.prerenderTemplate,_=void 0===b?null:b,E=e.validate,O=e.eligible,S=void 0===O?function(){return{eligible:!0}}:O,I=e.logger,C=void 0===I?{info:le}:I,A=e.exports,j=void 0===A?le:A,x=e.method,N=e.children,k=void 0===N?function(){return{}}:N,P=t.replace(/-/g,"_"),R=a({},{window:{type:qt.OBJECT,sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var t=e.value;if(!q(t)&&!wt.isProxyWindow(t))throw new Error("Expected Window or ProxyWindow");if(q(t)){if(M(t))throw new Error("Window is closed");if(!T(t))throw new Error("Window is not same domain")}},decorate:function(e){return Lt(e.value)}},timeout:{type:qt.NUMBER,required:!1,sendToChild:!1},cspNonce:{type:qt.STRING,required:!1},onDisplay:{type:qt.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:rn,decorate:on},onRendered:{type:qt.FUNCTION,required:!1,sendToChild:!1,default:rn,decorate:on},onRender:{type:qt.FUNCTION,required:!1,sendToChild:!1,default:rn,decorate:on},onClose:{type:qt.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:rn,decorate:on},onDestroy:{type:qt.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:rn,decorate:on},onResize:{type:qt.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:rn},onFocus:{type:qt.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:rn},close:{type:qt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.close}},focus:{type:qt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.focus}},resize:{type:qt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.resize}},uid:{type:qt.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.uid}},tag:{type:qt.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.tag}},getParent:{type:qt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParent}},getParentDomain:{type:qt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParentDomain}},show:{type:qt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.show}},hide:{type:qt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.hide}},export:{type:qt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.export}},onError:{type:qt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onError}},onProps:{type:qt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onProps}},getSiblings:{type:qt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getSiblings}}},c);if(!w)throw new Error("Container template required");return{name:P,tag:t,url:n,domain:r,bridgeUrl:o,method:x,propsDef:R,dimensions:s,autoResize:d,allowedParentDomains:p,attributes:g,defaultContext:y,containerTemplate:w,prerenderTemplate:_,validate:E,logger:C,eligible:S,children:k,exports:"function"==typeof j?j:function(e){for(var t=e.getExports,n={},r=function(e,r){var o=r[e],i=j[o].type,a=t().then((function(e){return e[o]}));n[o]=i===qt.FUNCTION?function(){for(var e=arguments.length,t=new Array(e),n=0;n0?a-4:a;for(n=0;n>16&255,u[f++]=t>>8&255,u[f++]=255&t;2===c&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,u[f++]=255&t);1===c&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,u[f++]=t>>8&255,u[f++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,c=n-o;ac?c:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,u=a.length;c0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function f(e,t,n){for(var o,i,a=[],c=t;c>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ t.read=function(e,t,n,r,o){var i,a,c=8*o-r-1,u=(1<>1,f=-7,d=n?o-1:0,l=n?-1:1,p=e[t+d];for(d+=l,i=p&(1<<-f)-1,p>>=-f,f+=c;f>0;i=256*i+e[t+d],d+=l,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=r;f>0;a=256*a+e[t+d],d+=l,f-=8);if(0===i)i=1-s;else{if(i===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=s}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,c,u,s=8*i-o-1,f=(1<>1,l=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?l/u:l*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=f?(c=0,a=f):a+d>=1?(c=(t*u-1)*Math.pow(2,o),a+=d):(c=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&c,p+=h,c/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,s-=8);e[n+p-h]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(t){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return{}.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,n,r){"use strict";function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function a(){return(a=Object.assign||function(e){for(var t=1;t>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,t={};return Object.freeze(t),e.set(t,"__testvalue__"),"__testvalue__"===e.get(t)}catch(e){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var t=e.prototype;return t._cleanupClosedWindows=function(){for(var e=this.weakmap,t=this.keys,n=0;n=3)return"stringifyError stack overflow";try{if(!e)return"";if("string"==typeof e)return e;if(e instanceof Error){var n=e&&e.stack,r=e&&e.message;if(n&&r)return-1!==n.indexOf(r)?n:r+"\n"+n;if(n)return n;if(r)return r}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(e){return"Error while stringifying error: "+ye(e,t+1)}}function me(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function we(e,t){if(!t)return e;if(Object.assign)return Object.assign(e,t);for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function be(e){return e}function _e(e,t){var n;return function r(){n=setTimeout((function(){e(),r()}),t)}(),{cancel:function(){clearTimeout(n)}}}function Ee(e){return[].slice.call(e)}function Oe(e){return null!=e}function Se(e){return"[object RegExp]"==={}.toString.call(e)}function Ie(e,t,n){if(e.hasOwnProperty(t))return e[t];var r=n();return e[t]=r,r}function Ce(e){var t,n=[],r=!1,o={set:function(t,n){return r||(e[t]=n,o.register((function(){delete e[t]}))),n},register:function(e){var o=ve((function(){return e(t)}));return r?e(t):n.push(o),{cancel:function(){var e=n.indexOf(o);-1!==e&&n.splice(e,1)}}},all:function(e){t=e;var o=[];for(r=!0;n.length;){var i=n.shift();o.push(i())}return g.all(o).then(ge)}};return o}function Te(e,t){if(null==t)throw new Error("Expected "+e+" to be present");return t}pe.clear=function(){le=de},pe((function(e){if(Object.values)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}));var Ae=function(e){function t(t){var n;return(n=e.call(this,t)||this).name=n.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),n.constructor):n.stack=new Error(t).stack,n}return i(t,e),t}(re(Error));function je(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function xe(){return Boolean(document.body)&&"complete"===document.readyState}function Ne(){return Boolean(document.body)&&"interactive"===document.readyState}function ke(e){return encodeURIComponent(e)}function Pe(e){return function(t,n,r){void 0===r&&(r=[]);var o=t.__inline_memoize_cache__=t.__inline_memoize_cache__||{},i=se(r);return o.hasOwnProperty(i)?o[i]:o[i]=function(){var t={};if(!e)return t;if(-1===e.indexOf("="))return t;for(var n=0,r=e.split("&");n { ... }":"<"+typeof e+">"})).join(", ")+") failed\n\n")+e.stack),e}))})).then((function(e){return{result:e,id:o,name:i}}))}))}));var u=n.__id__||ue();e=Ft.unwrap(e);var s=n.__name__||n.name||r;return"string"==typeof s&&"function"==typeof s.indexOf&&0===s.indexOf("anonymous::")&&(s=s.replace("anonymous::",r+"::")),Ft.isProxyWindow(e)?(Wt(u,n,s,e,t),e.awaitWindow().then((function(e){Wt(u,n,s,e,t)}))):Wt(u,n,s,e,t),mt("cross_domain_function",{id:u,name:s})}function Ht(e,t,n,r){var o,i=r.on,a=r.send;return function(e,t){void 0===t&&(t=_t);var n=JSON.stringify(e,(function(e){var n=this[e];if(vt(this))return n;var r=yt(n);if(!r)return n;var o=t[r]||bt[r];return o?o(n,e):n}));return void 0===n?"undefined":n}(n,((o={}).promise=function(n,r){return function(e,t,n,r,o){return mt("cross_domain_zalgo_promise",{then:zt(e,t,(function(e,t){return n.then(e,t)}),r,{on:o.on,send:o.send})})}(e,t,n,r,{on:i,send:a})},o.function=function(n,r){return zt(e,t,n,r,{on:i,send:a})},o.object=function(e){return Y(e)||Ft.isProxyWindow(e)?mt("cross_domain_window",Ft.serialize(e,{send:a})):e},o))}function Gt(e,t,n,r){var o,i=r.send;return function(e,t){if(void 0===t&&(t=Ot),"undefined"!==e)return JSON.parse(e,(function(e,n){if(vt(this))return n;var r,o;if(vt(n)?(r=n.__type__,o=n.__val__):(r=yt(n),o=n),!r)return o;var i=t[r]||Et[r];return i?i(o,e):o}))}(n,((o={}).cross_domain_zalgo_promise=function(e){return function(e,t,n){return new g(n.then)}(0,0,e)},o.cross_domain_function=function(n){return function(e,t,n,r){var o=n.id,i=n.name,a=r.send,c=function(n){function r(){var c=arguments;return Ft.toProxyWindow(e,{send:a}).awaitWindow().then((function(e){var u=Bt(e,o);if(u&&u.val!==r)return u.val.apply({source:window,origin:C()},c);var s=[].slice.call(c);return n.fireAndForget?a(e,"postrobot_method",{id:o,name:i,args:s},{domain:t,fireAndForget:!0}):a(e,"postrobot_method",{id:o,name:i,args:s},{domain:t,fireAndForget:!1}).then((function(e){return e.data.result}))})).catch((function(e){throw e}))}return void 0===n&&(n={}),r.__name__=i,r.__origin__=t,r.__source__=e,r.__id__=o,r.origin=t,r},u=c();return u.fireAndForget=c({fireAndForget:!0}),u}(e,t,n,{send:i})},o.cross_domain_window=function(e){return Ft.deserialize(e,{send:i})},o))}var qt={};function Vt(e,t,n,r){var o=r.on,i=r.send;return g.try((function(){var r=st().getOrSet(e,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(n),r.flush=r.flush||g.flush().then((function(){if(M(e))throw new Error("Window is closed");var n,a=Ht(e,t,((n={}).__post_robot_11_0_0__=r.buffer||[],n),{on:o,send:i});delete r.buffer;for(var c=Object.keys(qt),u=[],s=0;s1?t-1:0),o=1;o1?n-1:0),i=1;i iframe {\n display: inline-block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: opacity .2s ease-in-out;\n }\n\n #"+t+" > iframe.zoid-invisible {\n opacity: 0;\n }\n\n #"+t+" > iframe.zoid-visible {\n opacity: 1;\n }\n ")),f.appendChild(n),f.appendChild(r),f.appendChild(d),r.classList.add("zoid-visible"),n.classList.add("zoid-invisible"),a.on(yn.RENDERED,(function(){r.classList.remove("zoid-visible"),r.classList.add("zoid-invisible"),n.classList.remove("zoid-invisible"),n.classList.add("zoid-visible"),setTimeout((function(){qe(r)}),1)})),a.on(yn.RESIZE,(function(e){var t=e.width,n=e.height;"number"==typeof t&&(f.style.width=tt(t)),"number"==typeof n&&(f.style.height=tt(n))})),f}}function kn(e){var t=e.doc,n=e.props,r=t.createElement("html"),o=t.createElement("body"),i=t.createElement("style"),a=t.createElement("div");return a.classList.add("spinner"),n.cspNonce&&i.setAttribute("nonce",n.cspNonce),r.appendChild(o),o.appendChild(a),o.appendChild(i),i.appendChild(t.createTextNode("\n html, body {\n width: 100%;\n height: 100%;\n }\n\n .spinner {\n position: fixed;\n max-height: 60vmin;\n max-width: 60vmin;\n height: 40px;\n width: 40px;\n top: 50%;\n left: 50%;\n box-sizing: border-box;\n border: 3px solid rgba(0, 0, 0, .2);\n border-top-color: rgba(33, 128, 192, 0.8);\n border-radius: 100%;\n animation: rotation .7s infinite linear;\n }\n\n @keyframes rotation {\n from {\n transform: translateX(-50%) translateY(-50%) rotate(0deg);\n }\n to {\n transform: translateX(-50%) translateY(-50%) rotate(359deg);\n }\n }\n ")),r}var Pn=Ce(),Rn=Ce(),Dn=function(e){var t,n,r,o;rt().initialized||(rt().initialized=!0,n=(t={on:tn,send:rn}).on,r=t.send,(o=rt()).receiveMessage=o.receiveMessage||function(e){return en(e,{on:n,send:r})},function(e){var t=e.on,n=e.send;it().getOrSet("postMessageListener",(function(){return ze(window,"message",(function(e){!function(e,t){var n=t.on,r=t.send;g.try((function(){var t=e.source||e.sourceElement,o=e.origin||e.originalEvent&&e.originalEvent.origin,i=e.data;if("null"===o&&(o="file://"),t){if(!o)throw new Error("Post message did not have origin domain");en({source:t,origin:o,data:i},{on:n,send:r})}}))}(e,{on:t,send:n})}))}))}({on:tn,send:rn}),Mt({on:tn,send:rn,receiveMessage:en}),function(e){var t=e.on,n=e.send;it("builtinListeners").getOrSet("helloListener",(function(){var e=t("postrobot_hello",{domain:"*"},(function(e){return dt(e.source,{domain:e.origin}),{instanceID:ft()}})),r=W();return r&<(r,{send:n}).catch((function(e){})),e}))}({on:tn,send:rn}));var i=function(e){var t,n,r=function(e){var t=e.tag,n=e.url,r=e.domain,o=e.bridgeUrl,i=e.props,c=void 0===i?{}:i,u=e.dimensions,s=void 0===u?{}:u,f=e.autoResize,d=void 0===f?{}:f,l=e.allowedParentDomains,p=void 0===l?"*":l,h=e.attributes,g=void 0===h?{}:h,v=e.defaultContext,y=void 0===v?vn.IFRAME:v,m=e.containerTemplate,w=void 0===m?Nn:m,b=e.prerenderTemplate,_=void 0===b?kn:b,E=e.validate,O=e.eligible,S=void 0===O?function(){return{eligible:!0}}:O,I=e.logger,C=void 0===I?{info:ge}:I,A=e.exports,j=void 0===A?ge:A,x=e.method,N=e.children,k=void 0===N?function(){return{}}:N,P=t.replace(/-/g,"_"),R=a({},{window:{type:hn.OBJECT,sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var t=e.value;if(!Y(t)&&!Ft.isProxyWindow(t))throw new Error("Expected Window or ProxyWindow");if(Y(t)){if(M(t))throw new Error("Window is closed");if(!T(t))throw new Error("Window is not same domain")}},decorate:function(e){return on(e.value)}},timeout:{type:hn.NUMBER,required:!1,sendToChild:!1},cspNonce:{type:hn.STRING,required:!1},onDisplay:{type:hn.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:Cn,decorate:Tn},onRendered:{type:hn.FUNCTION,required:!1,sendToChild:!1,default:Cn,decorate:Tn},onRender:{type:hn.FUNCTION,required:!1,sendToChild:!1,default:Cn,decorate:Tn},onClose:{type:hn.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:Cn,decorate:Tn},onDestroy:{type:hn.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:Cn,decorate:Tn},onResize:{type:hn.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:Cn},onFocus:{type:hn.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:Cn},close:{type:hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.close}},focus:{type:hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.focus}},resize:{type:hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.resize}},uid:{type:hn.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.uid}},tag:{type:hn.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.tag}},getParent:{type:hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParent}},getParentDomain:{type:hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParentDomain}},show:{type:hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.show}},hide:{type:hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.hide}},export:{type:hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.export}},onError:{type:hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onError}},onProps:{type:hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onProps}},getSiblings:{type:hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getSiblings}}},c);if(!w)throw new Error("Container template required");return{name:P,tag:t,url:n,domain:r,bridgeUrl:o,method:x,propsDef:R,dimensions:s,autoResize:d,allowedParentDomains:p,attributes:g,defaultContext:y,containerTemplate:w,prerenderTemplate:_,validate:E,logger:C,eligible:S,children:k,exports:"function"==typeof j?j:function(e){for(var t=e.getExports,n={},r=function(e,r){var o=r[e],i=j[o].type,a=t().then((function(e){return e[o]}));n[o]=i===hn.FUNCTION?function(){for(var e=arguments.length,t=new Array(e),n=0;n * @license MIT */ e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var r=n(50),o=n(266),i=n(377),a=n(378),c=n(271);function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=c(this.defaults,e)).method=e.method?e.method.toLowerCase():"get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=c(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,o){return this.request(r.merge(o||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(50);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(50),o=n(379),i=n(267),a=n(268),c=n(386),u=n(387);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.baseURL&&!c(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(50);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(50);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(270);e.exports=function(e,t,n){var o=n.config.validateStatus;!o||o(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(50),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(50);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(50);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var c=[];c.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(272);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){var r=n(155),o=n(419),i=n(207),a=n(420),c=n(427),u=n(278),s=n(279),f=n(430),d=n(432),l=n(282),p=n(217),h=n(165),g=n(436),v=n(437),y=n(287),m=n(58),w=n(162),b=n(442),_=n(60),E=n(444),O=n(160),S=n(130),I={};I["[object Arguments]"]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I["[object Object]"]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I["[object Function]"]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,C,T,A,j){var x,N=1&n,k=2&n,P=4&n;if(C&&(x=A?C(t,T,A,j):C(t)),void 0!==x)return x;if(!_(t))return t;var R=m(t);if(R){if(x=g(t),!N)return s(t,x)}else{var D=h(t),M="[object Function]"==D||"[object GeneratorFunction]"==D;if(w(t))return u(t,N);if("[object Object]"==D||"[object Arguments]"==D||M&&!A){if(x=k||M?{}:y(t),!N)return k?d(t,c(x,t)):f(t,a(x,t))}else{if(!I[D])return A?t:{};x=v(t,D,N)}}j||(j=new r);var L=j.get(t);if(L)return L;j.set(t,x),E(t)?t.forEach((function(r){x.add(e(r,n,C,r,t,j))})):b(t)&&t.forEach((function(r,o){x.set(o,e(r,n,C,o,t,j))}));var U=R?void 0:(P?k?p:l:k?S:O)(t);return o(U||t,(function(r,o){U&&(r=t[o=r]),i(x,o,e(r,n,C,o,t,j))})),x}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(157),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(157);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(157);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(157);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(156);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(156),o=n(204),i=n(206);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(205),o=n(404),i=n(60),a=n(274),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,f=u.toString,d=s.hasOwnProperty,l=RegExp("^"+f.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?l:c).test(a(e))}},function(e,t,n){var r=n(109),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,o=n(405),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(62)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(408),o=n(156),i=n(204);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(409),o=n(410),i=n(411),a=n(412),c=n(413);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++to?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(155),o=n(294),i=n(465),a=n(467),c=n(165),u=n(58),s=n(162),f=n(209),d="[object Object]",l=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,p,h,g){var v=u(e),y=u(t),m=v?"[object Array]":c(e),w=y?"[object Array]":c(t),b=(m="[object Arguments]"==m?d:m)==d,_=(w="[object Arguments]"==w?d:w)==d,E=m==w;if(E&&s(e)){if(!s(t))return!1;v=!0,b=!1}if(E&&!b)return g||(g=new r),v||f(e)?o(e,t,n,p,h,g):i(e,t,m,n,p,h,g);if(!(1&n)){var O=b&&l.call(e,"__wrapped__"),S=_&&l.call(t,"__wrapped__");if(O||S){var I=O?e.value():e,C=S?t.value():t;return g||(g=new r),h(I,C,n,p,g)}}return!!E&&(g||(g=new r),a(e,t,n,p,h,g))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n1?n[i-1]:void 0,c=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,c&&o(n[0],n[1],c)&&(a=i<3?void 0:a,i=1),t=Object(t);++r1&&void 0!==arguments[1])||arguments[1],r=Object.keys(e),i=o(r,1),a=i[0];this._defaultLanguage=a,this._defaultLanguageFirstLevelKeys=[],this._props=e,c.validateTranslationKeys(Object.keys(e[this._defaultLanguage])),Object.keys(this._props[this._defaultLanguage]).forEach((function(e){"string"==typeof t._props[t._defaultLanguage][e]&&t._defaultLanguageFirstLevelKeys.push(e)})),n&&this.setLanguage(this._interfaceLanguage),this._opts.pseudo&&this._pseudoAllValues(this._props)}},{key:"_pseudoAllValues",value:function(e){var t=this;Object.keys(e).forEach((function(n){if("object"===r(e[n]))t._pseudoAllValues(e[n]);else if("string"==typeof e[n]){if(0===e[n].indexOf("[")&&e[n].lastIndexOf("]")===e[n].length-1)return;for(var o=e[n].split(" "),i=0;i1&&void 0!==arguments[1])||arguments[1],r=c.getBestMatchingLanguage(e,this._props,n?this._opts.loadLanguage:null),o=Object.keys(this._props)[0];if(this._language=r,this._props[r]){for(var a=0;a1?n-1:0),o=1;o2&&void 0!==arguments[2]&&arguments[2];try{for(var r=this._props[t||this._language],o=e.split("."),i=0;i=0?e.substring(0,r):e,i=t[o]?o:Object.keys(t)[0];"function"==typeof n&&n(o);return i},t.validateTranslationKeys=function(e){var t=["_interfaceLanguage","_language","_defaultLanguage","_defaultLanguageFirstLevelKeys","_props"];e.forEach((function(e){if(-1!==t.indexOf(e))throw new Error(e+" cannot be used as a key. It is a reserved word.")}))},t.randomPseudo=function(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())}).call(this,n(127))},function(e,t,n){var r;function o(e){function n(){if(n.enabled){var e=n,o=+new Date,i=o-(r||o);e.diff=i,e.prev=r,e.curr=o,r=o;for(var a=new Array(arguments.length),c=0;c0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var a=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===u&&!1===isNaN(e))return t.long?a(c=e,i,"day")||a(c,o,"hour")||a(c,r,"minute")||a(c,n,"second")||c+" ms":function(e){if(e>=i)return Math.round(e/i)+"d";if(e>=o)return Math.round(e/o)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){var r=n(302),o=n(303);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},function(e,t,n){var r=n(207),o=n(111),i=n(163),a=n(60),c=n(112);e.exports=function(e,t,n,u){if(!a(e))return e;for(var s=-1,f=(t=o(t,e)).length,d=f-1,l=e;null!=l&&++s-1}},function(e,t,n){var r=n(498),o=n(499),i=n(500);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i1&&(p=g.slice(0,-1).join("/"),h=g.pop()),h){var v=h.match(/^\d+/);v&&(h=v[0])}this._fromComponents({host:f,pass:s,path:p,projectId:h,port:l,protocol:a,user:c})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new o.a("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new o.a("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new o.a("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new o.a("Invalid Dsn: Invalid port "+this.port)},e}()},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(r||(r={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(r||(r={}))},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(r||(r={}))}]); //# sourceMappingURL=client.bundle.599408c1ab92070879a6.js.map