!function(){var e=[,function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.startOnceReady=b;var n=i(3),a=i(92),o=i(95),r=i(122),c=i(41),l=i(34),d=i(35),u=s(i(44)),h=i(42),p=s(i(43)),g=i(123),m=i(104);const f=()=>{console.warn(`loadImmediately is set to false and widget.load() has not been called on window.${d.GLOBAL_VARIABLE} yet. Please call widget.load() first or set loadImmediately on window.${d.SETTINGS_VARIABLE} to true.`)};function E({eventEmitter:e,logError:t}){const i=(0,o.createEmbedScriptContext)(),s=new n.WidgetShell(i,t,e);if(window.hubspot_live_messages_running)console.warn("duplicate instance of live chat exists on page");else{window.hubspot_live_messages_running=!0;s.start()}return s}function _(e){(0,a.loadWidgetCss)(document);if((0,l.getExternalApiSettings)().loadImmediately)E({logError:e});else{const t=new u.default,i=new p.default;(0,c.setupExternalApi)({debug:f,on:t.on,off:t.off,clear:f,resetAndReloadWidget:f,widget:{load:()=>{E({eventEmitter:t,logError:e}).loadWidget()},remove:f,open:f,close:f,refresh:f,status:()=>({loaded:!1,pending:!1}),setInputText:f,updateEntryUrlMetadata:f,openToKnowledgeBase:f,openToCategory:f}});(0,h.flushOnReadyCallbacks)({logger:i})}}function b(){if((0,r.hasRequiredFeatures)(window)){if(!new RegExp("^/_hcms/(livechat/embedded-content|customer-agent-embed)$","i").test(window.location.pathname)){const e=new g.ErrorLogger;(0,m.getIsLocal)()?_():e.captureErrors((()=>{_(e)}))}}}},function(e){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.WidgetShell=void 0;var n=i(4),a=i(7),o=i(8),r=i(9),c=i(10),l=s(i(14)),d=i(16),u=i(17),h=i(19),p=s(i(18)),g=i(20),m=i(23),f=i(24),E=i(25),_=i(26),b=i(27),v=i(31),T=i(40),I=i(41),O=i(42),S=s(i(43)),A=s(i(44)),y=i(50),R=i(51),L=i(53),P=i(54),C=i(55),N=i(33),D=s(i(58)),M=s(i(62)),w=i(63),k=i(65),x=i(67),U=i(68),H=i(22),W=i(70),G=i(71),j=i(73),F=i(75),B=i(76),q=i(77),$=i(78),z=i(82),K=i(83),V=i(84),Y=i(87),X=i(88),Q=i(21),Z=i(49),J=i(34),ee=i(89),te=i(90),ie=i(91);const se="help-widget",ne=()=>{};class ae{constructor(e,t,i){this.handleDragStart=e=>{const t=document.getElementById(T.PARENT_ID);this.isDragging=!0;const i="RIGHT_ALIGNED"===this.widgetData[x.WIDGET_LOCATION];this.offsetX=i?t.getBoundingClientRect().right-e.clientX:e.clientX-t.getBoundingClientRect().left;this.offsetY=t.getBoundingClientRect().bottom-e.clientY;this.dragOverlayEl instanceof HTMLDivElement&&this.dragOverlayEl.style.setProperty("display","block");this.dragHandleEl instanceof HTMLDivElement&&this.dragHandleEl.style.setProperty("cursor","grabbing")};this.handleDragEnd=()=>{if(!this.dragHandleEl||!this.isDragging)return;this.iframeMessage.post(r.TRACK_WIDGET_DRAGGED,{timeOnPage:performance&&Math.round(performance.now()/1e3),isOpen:this.isOpen||!1});this.dragHandleEl.style.setProperty("cursor","grab");this.dragOverlayEl instanceof HTMLDivElement&&this.dragOverlayEl.style.setProperty("display","none");this.isDragging=!1;const e=this.widgetData?"RIGHT_ALIGNED"===this.widgetData[x.WIDGET_LOCATION]:"RIGHT_ALIGNED",t=e?"right":"left",i=`${h.cookies.WIDGET_POSITION}_${t}`,s=document.getElementById(T.PARENT_ID),n=window.getComputedStyle(s),a=parseInt(n.bottom,10),o=e?parseInt(n.right,10):parseInt(n.left,10);if(o||a)(0,u.setCookie)(i,JSON.stringify({bottom:a,horizontal:o}),p.default.THIRTY_MINUTES);else{s.style.removeProperty(t);s.style.removeProperty("bottom");(0,Q.deleteCookie)(i)}};this.handleDrag=e=>{if(!this.isDragging)return;const t=document.getElementById(T.PARENT_ID),i=this.widgetData?"RIGHT_ALIGNED"===this.widgetData[x.WIDGET_LOCATION]:"RIGHT_ALIGNED",s=i?"right":"left",n=i?window.innerWidth-e.clientX-this.offsetX:e.clientX-this.offsetX,a=window.innerHeight-e.clientY-this.offsetY;t.style.setProperty(s,`${Math.min(Math.max(0,n),window.innerWidth-t.clientWidth)}px`,"important");t.style.setProperty("bottom",`${Math.min(Math.max(0,a),window.innerHeight-t.clientHeight)}px`,"important");t.style.setProperty("position","fixed","!important")};this.unintializeDrag=()=>{if(this.dragHandleEl){this.dragHandleEl.removeEventListener("mousedown",this.handleDragStart);window.removeEventListener("mousemove",this.handleDrag);window.removeEventListener("mouseup",this.handleDragEnd);window.removeEventListener("mouseleave",this.handleDragEnd);this.dragHandleEl.remove()}};this.initalizeDrag=()=>{const{draggable:e}=this.widgetData;if(!e||(0,n.isAnyMobile)()||(0,J.getExternalApiSettings)().isFullscreen)return;this.dragHandleEl=document.createElement("div");this.dragHandleEl.classList.add("hs-drag-handle");this.dragHandleEl.title="Drag";this.dragHandleEl.style.setProperty("color",te.NEUTRAL_800);this.dragHandleEl.innerHTML=`\n \n `;this.dragOverlayEl=document.createElement("div");this.dragOverlayEl.classList.add("hs-drag-overlay");const t=document.getElementById(T.PARENT_ID);t.appendChild(this.dragOverlayEl);t.appendChild(this.dragHandleEl);t.style.setProperty("user-select","none");this.dragHandleEl.addEventListener("mousedown",this.handleDragStart);window.addEventListener("mousemove",this.handleDrag);window.addEventListener("mouseup",this.handleDragEnd);window.addEventListener("mouseleave",this.handleDragEnd)};this.getDefaultSize=()=>({width:100,height:96});this.getStartPosition=()=>{if(!this.widgetData.draggable||(0,n.isAnyMobile)()||(0,J.getExternalApiSettings)().isFullscreen)return null;const e=(this.widgetData?"RIGHT_ALIGNED"===this.widgetData[x.WIDGET_LOCATION]:"RIGHT_ALIGNED")?"right":"left",t=`${h.cookies.WIDGET_POSITION}_${e}`,i=(0,u.getCookie)(t);if(!i)return null;try{return JSON.parse(i)}catch(e){console.error("Error parsing cookie",e);return null}};this.loadIFrame=()=>{var e;(0,n.isAnyMobile)()&&document.documentElement.classList.add(m.MOBILE);const t=document.createElement("iframe");this.iframeSrc=this.embedScriptContext.getIFrameSrc();t.src=this.iframeSrc;t.id=T.IFRAME_ID;t.title="Chat Widget";t.allowFullscreen=!0;t.setAttribute("data-test-id","chat-widget-iframe");t.addEventListener("load",this.handleIframeLoad);const i=document.createElement("div");i.role="region";i.ariaLabel="Chat Widget";null!==(e=this.widgetData.gates)&&void 0!==e&&e[a.COLOR_SCHEME_ISOLATION_GATE]&&(i.style.colorScheme="light");if((0,N.shouldEmbedInline)()){const e=document.querySelector((0,N.getInlineEmbedSelector)());if(!e){this.devLogger.error(`cannot embed widget - element at \`${(0,N.getInlineEmbedSelector)()}\` cannot be found`);return}i.id=T.INLINE_PARENT_ID;t.id=T.INLINE_IFRAME_ID;this.iframe=i.appendChild(t);e.appendChild(i);return}if(document.getElementById(T.PARENT_ID)){console.warn(`Element with id ${T.PARENT_ID} already exists. Unable to load HubSpot Conversations Widget.`);return}i.id=T.PARENT_ID;const s=this.getStartPosition();if(s){const e="RIGHT_ALIGNED"===this.widgetData[x.WIDGET_LOCATION]?"right":"left";i.style.setProperty(e,`${s.horizontal}px`,"important");i.style.setProperty("bottom",`${s.bottom}px`,"important")}const{height:o,width:r}=this.getDefaultSize();i.style.minHeight=`${o}px`;i.style.minWidth=`${r}px`;const c=document.createElement("div");c.className=m.SHADOW_CONTAINER;const l=(0,_.isEmbeddedInProduct)(this.embedScriptContext);if(l){i.classList.add(m.INTERNAL);c.classList.add(m.INTERNAL)}i.appendChild(c);l&&(t.id=se);this.iframe=i.appendChild(t);document.body.appendChild(i);this.initalizeDrag();this.setFrameClass()};this.handleI18nLabels=({data:e})=>{if(!this.iframe||!e)return;const t=e["conversations-visitor-ui.visitorExperienceAriaLabels.chatWidget"],i=e["conversations-visitor-experience-components.visitorExperienceAriaLabels.drag"],s=document.getElementById((0,N.shouldEmbedInline)()?T.INLINE_PARENT_ID:T.PARENT_ID);if(t){this.iframe.setAttribute("title",t);s&&(s.ariaLabel=t)}i&&this.dragHandleEl&&this.dragHandleEl.setAttribute("title",i)};this.clampPosition=()=>{var e;if(null===(e=this.widgetData)||void 0===e||!e.draggable||(0,n.isAnyMobile)()||(0,J.getExternalApiSettings)().isFullscreen)return;let t=!1;const i=document.getElementById(T.PARENT_ID),s="RIGHT_ALIGNED"===this.widgetData[x.WIDGET_LOCATION];if(!i||!i.getBoundingClientRect)return;const{top:a,left:o,right:r}=i.getBoundingClientRect(),{innerWidth:c,innerHeight:l}=window,{clientWidth:d,clientHeight:u}=i;if(a<0){t=!0;i.style.setProperty("bottom",`${Math.max(l-u,0)}px`,"important")}if(s&&o<0){t=!0;i.style.setProperty("right",`${Math.max(c-d,0)}px`,"important")}if(!s&&c-r<0){t=!0;i.style.setProperty("left",`${Math.max(c-d,0)}px`,"important")}t&&this.handleDragEnd()};this.setWidgetData=e=>{this.widgetData=e;this.setFrameClass()};this.embedScriptContext=e;this.dragHandleEl=null;this.dragOverlayEl=null;this.isDragging=!1;this.offsetX=0;this.offsetY=0;this.isOpen=(0,v.shouldWidgetStartOpen)();this.iframe=null;this.iframeSrc=null;this.hasLoadedIframe=!1;this.isLoadingIframe=!1;this.requestWidgetOpen=this.requestWidgetOpen.bind(this);this.requestWidgetClose=this.requestWidgetClose.bind(this);this.requestWidgetRefresh=(0,P.throttle)(this.requestWidgetRefresh.bind(this),1e3);this.requestSetInputText=this.requestSetInputText.bind(this);this.handleWindowResize=this.handleWindowResize.bind(this);this.handleIframeLoad=this.handleIframeLoad.bind(this);this.handleResizeMessage=this.handleResizeMessage.bind(this);this.handleOpenChange=this.handleOpenChange.bind(this);this.handleStoreMessagesCookie=this.handleStoreMessagesCookie.bind(this);this.handleRequestWidget=this.handleRequestWidget.bind(this);this.handleWidgetRefresh=this.handleWidgetRefresh.bind(this);this.setWidgetNotLoaded=this.setWidgetNotLoaded.bind(this);this.removeIframe=this.removeIframe.bind(this);this.handleExternalApiEventMessage=this.handleExternalApiEventMessage.bind(this);this.loadWidget=(0,P.throttle)(this.loadWidget.bind(this),1e3);this.resetAndReloadWidget=this.resetAndReloadWidget.bind(this);this.setWidgetOpenCookie=this.setWidgetOpenCookie.bind(this);this.getStatus=this.getStatus.bind(this);this.handleScroll=this.handleScroll.bind(this);this.handleExitIntent=this.handleExitIntent.bind(this);this.extendedClearCookiesFunction=this.extendedClearCookiesFunction.bind(this);this.openToNewThread=this.openToNewThread.bind(this);this.handleDragHandlePositionChange=this.handleDragHandlePositionChange.bind(this);this.handleInputTextChanged=this.handleInputTextChanged.bind(this);this.handleRestoreSavedLauncherPosition=this.handleRestoreSavedLauncherPosition.bind(this);this.handleResetToDefaultLauncherPosition=this.handleResetToDefaultLauncherPosition.bind(this);this.devLogger=new S.default;this.eventEmitter=i||new A.default;this.logError=t?t.logError:ne;this.scrollPercentageTracker=new D.default({onScroll:this.handleScroll});this.exitIntentTracker=new M.default({onExitIntent:this.handleExitIntent});this.screenCapturePlugin=new ee.ScreenCapturePlugin(this);this.iframeMessage=(0,$.iframeMessagePool)({iframeSrc:this.embedScriptContext.getIFrameSrc()});this.apiUsageTracker=new W.ApiUsageTracker({postMessageToIframe:this.iframeMessage.post});const s=new G.PostMessageApiClient(this.iframeMessage.post);this.pageTitleNotifications=new l.default;this.postMessageReceiver=new c.PostMessageReceiver({[o.SHOW_PAGE_TITLE_NOTIFICATION]:this.pageTitleNotifications.handleShow,[o.CLEAR_PAGE_TITLE_NOTIFICATION]:this.pageTitleNotifications.handleClear,[o.REQUEST_WIDGET]:this.handleRequestWidget,[r.REFRESH_WIDGET_DATA]:this.requestWidgetRefresh,[o.IFRAME_RESIZE]:this.handleResizeMessage,[o.OPEN_CHANGE]:this.handleOpenChange,[o.CLOSED_WELCOME_MESSAGE]:z.hideWelcomeMessage,[o.STORE_MESSAGES_COOKIE]:this.handleStoreMessagesCookie,[o.EXTERNAL_API_EVENT]:this.handleExternalApiEventMessage,[o.API_REQUEST]:s.makeApiRequest,[o.I18N_LABELS]:this.handleI18nLabels,[o.SCREEN_CAPTURE_REQUEST]:this.screenCapturePlugin.handleScreenCaptureRequest,[o.DRAG_HANDLE_POSITION_CHANGE]:this.handleDragHandlePositionChange,[o.INPUT_TEXT_CHANGED]:this.handleInputTextChanged,[o.RESTORE_SAVED_LAUNCHER_POSITION]:this.handleRestoreSavedLauncherPosition,[o.RESET_TO_DEFAULT_LAUNCHER_POSITION]:this.handleResetToDefaultLauncherPosition},{allowedOrigin:this.embedScriptContext.getIFrameDomain(),iframeUuid:this.embedScriptContext.iframeUuid});this.exitIntentTracker.registerPostMessageReceivers(this.postMessageReceiver);this.scrollPercentageTracker.registerPostMessageReceivers(this.postMessageReceiver)}handleExternalApiEventMessage(e){(0,y.handleExternalApiEventMessage)(e,{eventEmitter:this.eventEmitter})}handleScroll({scrollPercentage:e}){this.iframeMessage.post(r.SCROLL_PERCENTAGE_CHANGE,{scrollPercentage:e})}handleExitIntent(){this.iframeMessage.post(r.EXIT_INTENT)}getStatus(){return{loaded:this.hasLoadedIframe,pending:this.isLoadingIframe}}handleIframeLoad(){setTimeout((()=>this.eventEmitter.trigger("widgetLoaded",{message:"widget has loaded"})));this.handleWindowResize();this.hasLoadedIframe=!0;this.isLoadingIframe=!1;(0,w.markEndPostDelay)();this.postPerfAttributes(this.embedScriptContext.getPerfAttributes())}postPerfAttributes(e){Math.random()<.5&&this.iframeMessage.post(r.PERF_ATTRIBUTES,{perfAttributes:e})}resetAndReloadWidget(){this.removeIframe();(0,U.resetAndLaunchWidget)()}removeIframe(){this.unintializeDrag();const e=(0,N.shouldEmbedInline)()?document.getElementById(T.INLINE_PARENT_ID):document.getElementById(T.PARENT_ID);e&&e.remove();this.iframeSrc=null;this.hasLoadedIframe=!1;this.isLoadingIframe=!1}handleResizeMessage({data:{height:e,width:t}={}}){(0,K.resizeWidgetIframe)({height:e,width:t});this.clampPosition()}setWidgetOpenCookie({isOpen:e}){(0,u.setCookie)(h.cookies.IS_OPEN,e,p.default.THIRTY_MINUTES)}handleOpenChange({data:{isOpen:e,isUser:t}}){const i=document.documentElement,s=document.getElementById(T.PARENT_ID).getElementsByClassName(m.SHADOW_CONTAINER)[0];this.isOpen=e;t&&this.setWidgetOpenCookie({isOpen:this.isOpen});if(this.isOpen){i.classList.add(m.ACTIVE);s.classList.add("active")}else{i.classList.remove(m.ACTIVE);s.classList.remove("active")}}handleDragHandlePositionChange({data:{dragHandleState:e}}){const{draggable:t,routingRuleDefinitionAI:i,message:s,systemChatflow:a}=this.widgetData,o=(null==s?void 0:s.launcherType)||ie.DEFAULT,r=Boolean(i),c=Boolean(a),l=(r||c)&&(o===ie.PILL||o===ie.DEFAULT);if(!t||(0,n.isAnyMobile)()||(0,J.getExternalApiSettings)().isFullscreen)return;const d="RIGHT_ALIGNED"===this.widgetData[x.WIDGET_LOCATION]?"right":"left",u=()=>{this.dragHandleEl&&Array.from(this.dragHandleEl.classList).forEach((e=>{if(e.startsWith("hs-drag-handle--")){var t;null===(t=this.dragHandleEl)||void 0===t||t.classList.remove(e)}}))};if(this.dragHandleEl){u();"hidden"===e?this.dragHandleEl.style.setProperty("display","none"):this.dragHandleEl.style.setProperty("display","flex");l?this.dragHandleEl.classList.add(`hs-drag-handle--v2--${e}--${d}`):this.dragHandleEl.classList.add(`hs-drag-handle--v1--${d}`)}}handleInputTextChanged({data:{text:e}}){this.eventEmitter.trigger(Z.INPUT_TEXT_CHANGED,{text:e})}handleRestoreSavedLauncherPosition(){var e;if(null===(e=this.widgetData)||void 0===e||!e.draggable||(0,n.isAnyMobile)()||(0,J.getExternalApiSettings)().isFullscreen)return;const t=document.getElementById(T.PARENT_ID);if(!t)return;const i=this.getStartPosition();if(i){const e="RIGHT_ALIGNED"===this.widgetData[x.WIDGET_LOCATION]?"right":"left";t.style.setProperty(e,`${i.horizontal}px`,"important");t.style.setProperty("bottom",`${i.bottom}px`,"important")}}handleResetToDefaultLauncherPosition(){const e=document.getElementById(T.PARENT_ID);if(e){e.style.removeProperty("right");e.style.removeProperty("left");e.style.removeProperty("bottom")}}handleRequestWidget({source:e}){(0,j.sendWidgetDataToIframe)({source:e,widgetData:this.widgetData,embedScriptContext:this.embedScriptContext,apiUsageTracker:this.apiUsageTracker})}handleStoreMessagesCookie({data:e}){this.iframeMessage.post(r.FIRST_VISITOR_SESSION,{isFirstVisitorSession:!1});"yes"===(0,Y.getGlobalCookieOptOut)()&&this.widgetData.gdprConsentOptions.cookieConsentPrompt!==X.NEVER&&window._hsp.push(["showBanner"]);(0,E.setMessagesUtk)(e)}requestWidgetOpen(){this.isOpen?this.devLogger.log("cannot open the widget, it is already open."):this.iframeMessage.post(r.REQUEST_OPEN)}requestWidgetClose(){this.isOpen?this.iframeMessage.post(r.REQUEST_CLOSE):this.devLogger.log("cannot close the widget, it is already closed")}requestOpenToKBContent(e){var t;this.hasLoadedIframe?null!==(t=this.widgetData.message)&&void 0!==t&&t.knowledgeBaseEnabled?this.iframeMessage.post(r.OPEN_TO_KB_CONTENT,e):this.devLogger.log("cannot open to knowledge base, knowledge base is not enabled"):this.devLogger.log("cannot open to knowledge base, widget is not loaded")}requestSetInputText(e,t){this.iframe?this.iframeMessage.post(r.SET_INPUT_TEXT,{text:e,sendMessage:t}):this.devLogger.log("cannot set input text, widget is not loaded")}handleWindowResize(){const e={height:window.innerHeight,width:window.innerWidth};this.iframeMessage.post(r.BROWSER_WINDOW_RESIZE,e);this.clampPosition()}requestWidgetRefresh({openToNewThread:e,setIdentification:t=!1}={}){const{portalId:i}=this.embedScriptContext;if(this.hasLoadedIframe||!this.isLoadingIframe)if(this.hasLoadedIframe){const s=this.embedScriptContext.getInitialRequestUrl(t);t&&this.postVisitorIdentificationAttributes();(0,R.fetchWidgetData)({requestUrl:s,portalId:i},(t=>{this.handleWidgetRefresh(t);e&&this.openToNewThread()}))}else{this.loadWidget();e&&this.openToNewThread()}else this.devLogger.log("Cannot refresh the widget - it is currently loading.")}openToNewThread(){this.iframeMessage.post(r.OPEN_TO_NEW_THREAD)}extendedClearCookiesFunction(e){e&&e[H.RESET_WIDGET]&&this.removeIframe();(0,g.clearCookies)(e)}handleWidgetRefresh(e){this.setWidgetData(e);(0,d.getWidgetDataResponseType)(this.widgetData)===f.HIDE_WIDGET?this.removeIframe():this.iframeMessage.post(r.REFRESH_WIDGET_DATA,Object.assign({},this.widgetData,(0,C.getIframeQueryParams)(this.embedScriptContext)))}setWidgetNotLoaded({reason:e,description:t}){this.hasLoadedIframe=!1;this.isLoadingIframe=!1;(e||t)&&this.eventEmitter.trigger(Z.WIDGET_HIDDEN,{reason:e,description:t})}loadWidget(e={}){const{portalId:t}=this.embedScriptContext;if(this.isLoadingIframe)this.devLogger.log("Cannot load the widget - The widget is already being loaded.");else if(this.hasLoadedIframe)this.devLogger.log("Cannot load the widget - the widget has already loaded.");else{this.isLoadingIframe=!0;e.widgetOpen&&this.setWidgetOpenCookie({isOpen:!0});(0,R.fetchWidgetData)({requestUrl:this.embedScriptContext.getInitialRequestUrl(),portalId:t},(0,V.handleTargetingAndDelay)(this.setWidgetData,this.loadIFrame,this.setWidgetNotLoaded),(()=>{L.EVENTS.messagesInitialized({messageWillRender:!1})}))}}start(){const{shouldRender:e}=(0,b.shouldRenderWidget)(this.embedScriptContext);if(e){(0,I.setupExternalApi)({debug:this.devLogger.debug,on:(e,t)=>{this.eventEmitter.on(e,t);this.apiUsageTracker.trackEventListener(e)},off:this.eventEmitter.off,clear:e=>{this.extendedClearCookiesFunction(e);this.apiUsageTracker.trackMethod("clear")},resetAndReloadWidget:this.resetAndReloadWidget,widget:{load:(...e)=>{this.loadWidget(...e);this.apiUsageTracker.trackMethod("load")},remove:()=>{this.removeIframe();this.apiUsageTracker.trackMethod("remove")},open:()=>{this.requestWidgetOpen();this.apiUsageTracker.trackMethod("open")},close:()=>{this.requestWidgetClose();this.apiUsageTracker.trackMethod("close")},refresh:(...e)=>{this.requestWidgetRefresh(...e);this.apiUsageTracker.trackMethod("refresh")},status:()=>{this.apiUsageTracker.trackMethod("status");return this.getStatus()},updateEntryUrlMetadata:e=>{this.postEntryUrlMetadata(e);this.apiUsageTracker.trackMethod("updateEntryUrlMetadata")},setInputText:(e,t)=>{this.requestSetInputText(e,t);this.apiUsageTracker.trackMethod("setInputText")},openToKnowledgeBase:()=>{this.requestOpenToKBContent({type:"knowledge-base"});this.apiUsageTracker.trackMethod("openToKnowledgeBase")},openToCategory:e=>{this.requestOpenToKBContent({type:"category",categoryId:e});this.apiUsageTracker.trackMethod("openToCategory")}}});(0,O.flushOnReadyCallbacks)({logger:this.devLogger,trackCallback:this.apiUsageTracker.trackOnReady});(0,B.registerHashChangeListener)({requestWidgetOpen:this.requestWidgetOpen,isOpen:this.isOpen});(0,q.registerWindowResizeListener)({resizeCallbackFn:this.handleWindowResize});(0,F.registerCookieListeners)({postMessageToIframe:this.iframeMessage.post});(0,N.shouldLoadImmediately)()&&this.loadWidget();this.postVisitorIdentificationAttributes();this.postEntryUrlMetadata();this.registerEntryUrlMetadataObserver()}else try{L.EVENTS.messagesInitialized({messageWillRender:!1})}catch(e){this.devLogger.log("widget load aborted")}}postVisitorIdentificationAttributes(){const{identificationEmail:e,identificationToken:t}=this.embedScriptContext;this.iframeMessage.post(r.VISITOR_IDENTIFICATION_ATTRIBUTES,{identificationEmail:e,identificationToken:t})}postEntryUrlMetadata(e){var t;const i="string"==typeof(null==e?void 0:e.title)?e.title:document.title,s="string"==typeof(null==e?void 0:e.description)?e.description:(null===(t=document.querySelector('meta[name="description"]'))||void 0===t?void 0:t.getAttribute("content"))||"";this.iframeMessage.post(r.ENTRY_URL_METADATA,{title:i,description:s})}registerEntryUrlMetadataObserver(){const e=document.querySelector("title"),t=document.querySelector('meta[name="description"]'),i=new MutationObserver((e=>{this.pageTitleNotifications.notificationIntervalIsRunning()||e.forEach((()=>{setTimeout((()=>{this.postEntryUrlMetadata()}),0)}))}));e&&i.observe(e,{childList:!0});t&&i.observe(t,{attributes:!0})}setFrameClass(){const e=document.getElementById(T.PARENT_ID);if(!e)return;const t=this.widgetData[x.WIDGET_LOCATION];(0,k.setClassInClassList)({widgetLocation:t,classList:e.classList})}}t.WidgetShell=ae},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.getMobileState=r;t.isAnyMobile=c;t.isIOSMobile=u;t.isMobileSafari=l;t.isWindowsMobile=d;var n=s(i(5));const a=/WebKit/i;function o(e,t){return e.test(t)}function r(e=window.navigator.userAgent){let t=e,i=t.split("[FBAN");void 0!==i[1]&&(t=i[0]);i=t.split("Twitter");void 0!==i[1]&&(t=i[0]);const s=new n.default(t);s.other.webkit=o(a,t);s.safari=s.apple.device&&s.other.webkit&&!s.other.opera&&!s.other.chrome;return s}function c(){const e=r();return e.any&&!e.tablet}function l(){return r().safari}function d(){return r().windows.phone}function u(){return r().apple.phone}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}});var n=o(i(6));Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(a=function(e){return e?i:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=a(t);if(i&&i.has(e))return i.get(e);var s={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var r=n?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(s,o,r):s[o]=e[o]}s.default=e;i&&i.set(e,s);return s}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=b;var i=/iPhone/i,s=/iPod/i,n=/iPad/i,a=/\biOS-universal(?:.+)Mac\b/i,o=/\bAndroid(?:.+)Mobile\b/i,r=/Android/i,c=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,l=/Silk/i,d=/Windows Phone/i,u=/\bWindows(?:.+)ARM\b/i,h=/BlackBerry/i,p=/BB10/i,g=/Opera Mini/i,m=/\b(CriOS|Chrome)(?:.+)Mobile/i,f=/Mobile(?:.+)Firefox\b/i,E=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream};function _(e){return function(t){return t.test(e)}}function b(e){var t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var b=t.userAgent,v=b.split("[FBAN");void 0!==v[1]&&(b=v[0]);void 0!==(v=b.split("Twitter"))[1]&&(b=v[0]);var T=_(b),I={apple:{phone:T(i)&&!T(d),ipod:T(s),tablet:!T(i)&&(T(n)||E(t))&&!T(d),universal:T(a),device:(T(i)||T(s)||T(n)||T(a)||E(t))&&!T(d)},amazon:{phone:T(c),tablet:!T(c)&&T(l),device:T(c)||T(l)},android:{phone:!T(d)&&T(c)||!T(d)&&T(o),tablet:!T(d)&&!T(c)&&!T(o)&&(T(l)||T(r)),device:!T(d)&&(T(c)||T(l)||T(o)||T(r))||T(/\bokhttp\b/i)},windows:{phone:T(d),tablet:T(u),device:T(d)||T(u)},other:{blackberry:T(h),blackberry10:T(p),opera:T(g),firefox:T(f),chrome:T(m),device:T(h)||T(p)||T(g)||T(f)||T(m)},any:!1,phone:!1,tablet:!1};I.any=I.apple.device||I.android.device||I.windows.device||I.other.device;I.phone=I.apple.phone||I.android.phone||I.windows.phone;I.tablet=I.apple.tablet||I.android.tablet||I.windows.tablet;return I}e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.COLOR_SCHEME_ISOLATION_GATE=void 0;t.COLOR_SCHEME_ISOLATION_GATE="LiveChat:ColorSchemeIsolation"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.STORE_MESSAGES_COOKIE=t.STOP_TRACK_SCROLL_PERCENTAGE=t.STOP_TRACK_EXIT_INTENT=t.START_TRACK_SCROLL_PERCENTAGE=t.START_TRACK_EXIT_INTENT=t.SHOW_PAGE_TITLE_NOTIFICATION=t.SCREEN_CAPTURE_REQUEST=t.RESTORE_SAVED_LAUNCHER_POSITION=t.RESET_TO_DEFAULT_LAUNCHER_POSITION=t.REQUEST_WIDGET=t.REFRESH_WIDGET_DATA=t.OPEN_CHANGE=t.INPUT_TEXT_CHANGED=t.IFRAME_RESIZE=t.I18N_LABELS=t.EXTERNAL_API_EVENT=t.DRAG_HANDLE_POSITION_CHANGE=t.CLOSED_WELCOME_MESSAGE=t.CLEAR_PAGE_TITLE_NOTIFICATION=t.API_REQUEST=void 0;t.SHOW_PAGE_TITLE_NOTIFICATION="show-page-title-notification",t.CLEAR_PAGE_TITLE_NOTIFICATION="clear-page-title-notification",t.IFRAME_RESIZE="iframe-resize",t.OPEN_CHANGE="open-change",t.CLOSED_WELCOME_MESSAGE="closed-welcome-message",t.REQUEST_WIDGET="request-widget",t.STORE_MESSAGES_COOKIE="store-messages-cookie",t.EXTERNAL_API_EVENT="external-api-event",t.START_TRACK_SCROLL_PERCENTAGE="start-track-scroll-percentage",t.STOP_TRACK_SCROLL_PERCENTAGE="stop-track-scroll-percentage",t.START_TRACK_EXIT_INTENT="start-track-exit-intent",t.STOP_TRACK_EXIT_INTENT="stop-track-exit-intent",t.API_REQUEST="api-request",t.I18N_LABELS="i18n-labels",t.REFRESH_WIDGET_DATA="refresh-widget-data",t.SCREEN_CAPTURE_REQUEST="screen-capture-request",t.DRAG_HANDLE_POSITION_CHANGE="drag-handle-position-change",t.INPUT_TEXT_CHANGED="input-text-changed",t.RESTORE_SAVED_LAUNCHER_POSITION="restore-saved-launcher-position",t.RESET_TO_DEFAULT_LAUNCHER_POSITION="reset-to-default-launcher-position"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WIDGET_DATA=t.VISITOR_IDENTIFICATION_ATTRIBUTES=t.TRACK_WIDGET_DRAGGED=t.TRACK_API_USAGE=t.SET_INPUT_TEXT=t.SCROLL_PERCENTAGE_CHANGE=t.SCREEN_CAPTURE_BLOB=t.REQUEST_OPEN=t.REQUEST_CLOSE=t.REFRESH_WIDGET_DATA=t.PERF_ATTRIBUTES=t.OPEN_TO_NEW_THREAD=t.OPEN_TO_KB_CONTENT=t.HUBSPOT_UTK=t.GLOBAL_COOKIE_OPT_OUT=t.FIRST_VISITOR_SESSION=t.EXIT_INTENT=t.ENTRY_URL_METADATA=t.BROWSER_WINDOW_RESIZE=t.API_REQUEST_RESULT=void 0;t.WIDGET_DATA="widget-data",t.HUBSPOT_UTK="hubspot-utk",t.GLOBAL_COOKIE_OPT_OUT="global-cookie-opt-out",t.FIRST_VISITOR_SESSION="first-visitor-session",t.REFRESH_WIDGET_DATA="refresh-widget-data",t.REQUEST_OPEN="request-open",t.REQUEST_CLOSE="request-close",t.BROWSER_WINDOW_RESIZE="browser-window-resize",t.SCROLL_PERCENTAGE_CHANGE="scroll-percentage-change",t.EXIT_INTENT="exit-intent",t.PERF_ATTRIBUTES="perf-attributes",t.TRACK_API_USAGE="track-api-usage",t.TRACK_WIDGET_DRAGGED="track-widget-dragged",t.SCREEN_CAPTURE_BLOB="screen-capture-blob",t.OPEN_TO_NEW_THREAD="open-to-new-thread",t.API_REQUEST_RESULT="api-request-result",t.VISITOR_IDENTIFICATION_ATTRIBUTES="visitor-identification-attributes",t.ENTRY_URL_METADATA="entry-url-metadata",t.SET_INPUT_TEXT="set-input-text",t.OPEN_TO_KB_CONTENT="open-to-kb-content"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PostMessageReceiver=void 0;var s=i(11),n=i(13);class a{constructor(e,{allowedOrigin:t,iframeUuid:i}){(0,n.objectInvariant)(e);(0,s.stringInvariant)(t);(0,s.stringInvariant)(i);this.allowedOrigin=t;this.iframeUuid=i;this._handlers=e;this.handleMessage=this.handleMessage.bind(this);window.addEventListener("message",this.handleMessage)}isOriginAllowed(e){return e===this.allowedOrigin}handleMessage(e){const{data:t,origin:i,source:s}=e;if(this.isOriginAllowed(i))try{const e=JSON.parse(t);if(e.uuid!==this.iframeUuid)return;const{type:i,data:n}=e,a=this._handlers[i];"function"==typeof a&&a({data:n,source:s})}catch(e){return}}register(e,t){this._handlers[e]=t}}t.PostMessageReceiver=a},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.stringInvariant=void 0;var n=s(i(12));const a=(e,t="")=>(0,n.default)("string"==typeof e,"Expected %s to be a string, not a %s",t||e,typeof e);t.stringInvariant=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;const i=(e,t,...i)=>{if(e)return;let s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let e=0;s=new Error(`Invariant Violation: ${t.replace(/%s/g,(()=>i[e++]))}`)}throw s};t.default=i;e.exports=t.default},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.objectInvariant=void 0;var n=s(i(12));const a=(e,t="")=>(0,n.default)("object"==typeof e&&null!==e,"Expected %s to be an object",t||e);t.objectInvariant=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var s=i(11),n=i(15);class a{constructor(){this.handleShow=this.handleShow.bind(this);this.handleClear=this.handleClear.bind(this);this.notificationIntervalId=0;this.notificationMessageIsInPageTitle=!1;this.cachedOriginalDocumentTitle=document.title}clearNotificationInterval(){clearInterval(this.notificationIntervalId)}notificationIntervalIsRunning(){return Boolean(this.notificationIntervalId)}start({title:e}){if(!this.notificationIntervalIsRunning()){this.cachedOriginalDocumentTitle=document.title;this.togglePageTitle({notificationTitle:e});this.notificationIntervalId=setInterval((()=>{this.togglePageTitle({notificationTitle:e})}),n.NOTIFICATION_INTERVAL_MS)}}stop(){if(this.notificationIntervalIsRunning()){this.clearNotificationInterval();this.updatePageTitle(this.cachedOriginalDocumentTitle);this.notificationIntervalId=0;this.notificationMessageIsInPageTitle=!1;this.cachedOriginalDocumentTitle=""}}togglePageTitle({notificationTitle:e}){if(this.notificationMessageIsInPageTitle){this.updatePageTitle(this.cachedOriginalDocumentTitle);this.notificationMessageIsInPageTitle=!1}else{this.updatePageTitle(e);this.notificationMessageIsInPageTitle=!0}}handleShow({data:e}){this.start({title:e.title})}handleClear(){this.stop()}updatePageTitle(e){(0,s.stringInvariant)(e);document.title=e}}t.default=a;e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.NOTIFICATION_INTERVAL_MS=void 0;t.NOTIFICATION_INTERVAL_MS=1250},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getWidgetDataResponseType=void 0;const i="@type",s=e=>null==e?void 0:e[i];t.getWidgetDataResponseType=s},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.getCookie=o;t.getHostnameWithoutWww=r;t.setCookie=c;var n=s(i(18));let a=!1;function o(e){let t="";if(document.cookie&&""!==document.cookie){const i=document.cookie.split(";");for(let s=0;s-1)s.push("Secure");else if(!a){console.warn("HubSpot Conversations: You are using conversations on a non-https site! Not using https puts your visitor's data at risk, please enforce using https.");a=!0}const o=s.join(";");document.cookie=o}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;const i=864e5,s={TWO_MINUTES:12e4,THIRTY_MINUTES:18e5,ONE_DAY:i,SIX_MONTHS:30*i*6};t.default=s;e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.cookies=t.cookieValues=void 0;t.cookies={HUBSPOT:"hubspotutk",MESSAGES:"messagesUtk",IS_OPEN:"hs-messages-is-open",HIDE_WELCOME_MESSAGE:"hs-messages-hide-welcome-message",WIDGET_POSITION:"hs-messages-widget-position",HUBSPOT_API_CSRF:"hubspotapi-csrf",HSTC:"__hstc",HSSC:"__hssc",GLOBAL_COOKIE_OPT_OUT:"__hs_opt_out"},t.cookieValues={GLOBAL_COOKIE_OPT_OUT_YES:"yes",GLOBAL_COOKIE_OPT_OUT_NO:"no"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.clearCookies=r;var s=i(19),n=i(21),a=i(1),o=i(22);function r(e){(0,n.deleteCookie)(s.cookies.MESSAGES);(0,n.deleteCookie)(s.cookies.IS_OPEN);(0,n.deleteCookie)(s.cookies.HIDE_WELCOME_MESSAGE);(0,n.deleteCookie)(`${s.cookies.WIDGET_POSITION}_right`);(0,n.deleteCookie)(`${s.cookies.WIDGET_POSITION}_left`);if(null!=e&&e[o.RESET_WIDGET]){window.hubspot_live_messages_running=!1;(0,a.startOnceReady)()}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.deleteCookie=n;var s=i(17);function n(e){(0,s.setCookie)(e,"",-1)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.RESET_WIDGET=void 0;t.RESET_WIDGET="resetWidget"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SHADOW_CONTAINER=t.MOBILE=t.INTERNAL=t.ALIGNED_RIGHT_CLASS=t.ALIGNED_LEFT_CLASS=t.ACTIVE=void 0;t.ACTIVE="hs-messages-widget-open",t.MOBILE="hs-messages-mobile",t.SHADOW_CONTAINER="hs-shadow-container",t.INTERNAL="internal",t.ALIGNED_LEFT_CLASS="widget-align-left",t.ALIGNED_RIGHT_CLASS="widget-align-right"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.V1=t.HIDE_WIDGET=void 0;t.V1="V1",t.HIDE_WIDGET="HIDE_WIDGET"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.setMessagesUtk=a;var s=i(17),n=i(19);function a(e){(0,s.setCookie)(n.cookies.MESSAGES,e)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isEmbeddedInProduct=l;const i=53,s=99535353,n=100048175,a=/^(?:app|local)\.hubspot(?:qa)?\.com$/,o=/(?:pricing)\/[0-9]+/,r=/signup-hubspot/,c="pricing";function l({portalId:e,hostname:t=window.location.hostname,pathname:l=window.location.pathname}){const d=-1!==l.indexOf(c)&&!o.test(l),u=r.test(l);return!(!a.test(t)||d||u)&&(-1!==t.indexOf("qa")?e===i||e===s||e===n:e===i)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.shouldRenderWidget=void 0;var s=i(4),n=i(26),a=i(28),o=i(29);const r=({portalId:e})=>{var t;const i=!!(0,a.getPortalIdFromPath)(window.location.pathname),r=(0,n.isEmbeddedInProduct)({portalId:e})&&!i,c=null===(t=window)||void 0===t||null===(t=t.disabledHsPopups)||void 0===t?void 0:t.includes("LIVE_CHAT");return(0,s.isWindowsMobile)()?{shouldRender:!1,reason:"WINDOWS_PHONE"}:(0,o.isUsingUnsupportedFramework)()?{shouldRender:!1,reason:"UNSUPPORTED_FRAMEWORK"}:r?{shouldRender:!1,reason:"MISSING_PORTAL_ID"}:c?{shouldRender:!1,reason:"IS_EMBEDDED_MEETINGS"}:{shouldRender:!0}};t.shouldRenderWidget=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getPortalIdFromPath=s;const i=/^\/(?:[A-Za-z0-9-_]*)\/(\d+)(?:\/|$)/;function s(e){try{return i.exec(e)[1]}catch(e){return""}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isUsingUnsupportedFramework=void 0;var s=i(30);const n=()=>{const e=s.METHODS.filter((e=>!!e)).length;return Boolean(e)};t.isUsingUnsupportedFramework=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.METHODS=void 0;t.METHODS=[Object.prototype.toJSON,Array.prototype.toJSON,String.prototype.toJSON]},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.shouldWidgetStartOpen=l;var s=i(32),n=i(17),a=i(33),o=i(19),r=i(38),c=i(39);function l(){const e=(0,a.shouldEmbedInline)();if(!e&&(0,s.cookieIsSet)(o.cookies.IS_OPEN)){const e=(0,n.getCookie)(o.cookies.IS_OPEN);return(0,c.stringToBoolean)(e)}return e||(0,r.urlHasHsChatHashLink)(window.location.href)||void 0}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.cookieIsSet=void 0;var s=i(17);const n=e=>Boolean((0,s.getCookie)(e));t.cookieIsSet=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.shouldLoadImmediately=t.shouldHideScrollToButton=t.shouldHideNewThreadLink=t.shouldEmbedInline=t.shouldDisableInitialInputFocus=t.shouldDisableAttachment=t.shouldBeFullscreen=t.getInlineEmbedSelector=t.getIdentificationToken=t.getIdentificationEmail=t.getEnableWidgetCookieBanner=void 0;var s=i(34);const n=()=>!!(0,s.getExternalApiSettings)().loadImmediately;t.shouldLoadImmediately=n;const a=()=>!!(0,s.getExternalApiSettings)().isFullscreen;t.shouldBeFullscreen=a;const o=()=>(0,s.getExternalApiSettings)().inlineEmbedSelector;t.getInlineEmbedSelector=o;const r=()=>!!(0,s.getExternalApiSettings)().inlineEmbedSelector;t.shouldEmbedInline=r;const c=()=>!!(0,s.getExternalApiSettings)().disableAttachment;t.shouldDisableAttachment=c;const l=()=>!!(0,s.getExternalApiSettings)().disableInitialInputFocus;t.shouldDisableInitialInputFocus=l;const d=()=>(0,s.getExternalApiSettings)().enableWidgetCookieBanner;t.getEnableWidgetCookieBanner=d;const u=()=>(0,s.getExternalApiSettings)().identificationEmail;t.getIdentificationEmail=u;const h=()=>(0,s.getExternalApiSettings)().identificationToken;t.getIdentificationToken=h;const p=()=>(0,s.getExternalApiSettings)().hideScrollToButton;t.shouldHideScrollToButton=p;const g=()=>(0,s.getExternalApiSettings)().hideNewThreadLink;t.shouldHideNewThreadLink=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultSettings=void 0;t.getExternalApiSettings=l;var s=i(35),n=i(36),a=i(11),o=i(37);const r=t.defaultSettings={loadImmediately:!0,isFullscreen:!1,inlineEmbedSelector:"",disableAttachment:!1,enableWidgetCookieBanner:!1,identificationEmail:"",identificationToken:"",disableInitialInputFocus:!1,hideScrollToButton:!0,hideNewThreadLink:!1};function c(e){return Object.fromEntries(Object.entries(e).filter((([e,t])=>void 0!==t)))}function l(){const e=window[s.SETTINGS_VARIABLE],t=Object.assign({},r,c(e||{}));(0,n.booleanInvariant)(t.loadImmediately,"mergedSettings.loadImmediately");(0,n.booleanInvariant)(t.isFullscreen,"mergedSettings.isFullscreen");(0,n.booleanInvariant)(t.disableAttachment,"mergedSettings.disableAttachment");(0,n.booleanInvariant)(t.disableInitialInputFocus,"mergedSettings.disableInitialInputFocus");(0,n.booleanInvariant)(t.hideNewThreadLink,"mergedSettings.hideNewThreadLink");(0,o.oneOfListInvariant)(t.enableWidgetCookieBanner,"mergedSettings.enableWidgetCookieBanner",[!1,!0,s.ON_WIDGET_LOAD,s.ON_EXIT_INTENT]);(0,a.stringInvariant)(t.inlineEmbedSelector,"mergedSettings.inlineEmbedSelector");(0,a.stringInvariant)(t.identificationEmail,"mergedSettings.identificationEmail");(0,a.stringInvariant)(t.identificationToken,"mergedSettings.identificationToken");return t}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SETTINGS_VARIABLE=t.ON_WIDGET_LOAD=t.ON_READY_CALLBACKS=t.ON_EXIT_INTENT=t.GLOBAL_VARIABLE=void 0;t.GLOBAL_VARIABLE="HubSpotConversations",t.ON_READY_CALLBACKS="hsConversationsOnReady",t.SETTINGS_VARIABLE="hsConversationsSettings",t.ON_EXIT_INTENT="ON_EXIT_INTENT",t.ON_WIDGET_LOAD="ON_WIDGET_LOAD"},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.booleanInvariant=void 0;var n=s(i(12));const a=(e,t)=>(0,n.default)(!0===e||!1===e,"Expected %s to be a boolean but received a %s",t||e,typeof e);t.booleanInvariant=a},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.oneOfListInvariant=a;var n=s(i(12));function a(e,t,i){(0,n.default)(i.indexOf(e)>-1,`Expected %s to be one of ${i.toString()} but got %s`,t,e)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.urlHasHsChatHashLink=void 0;const i=new RegExp("#hs-chat-open","i"),s=e=>i.test(e);t.urlHasHsChatHashLink=s},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.stringToBoolean=void 0;const i=e=>"true"===e;t.stringToBoolean=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PARENT_ID=t.INLINE_PARENT_ID=t.INLINE_IFRAME_ID=t.IFRAME_ID=void 0;t.PARENT_ID="hubspot-messages-iframe-container",t.INLINE_PARENT_ID="hubspot-conversations-inline-parent",t.INLINE_IFRAME_ID="hubspot-conversations-inline-iframe",t.IFRAME_ID="hubspot-conversations-iframe"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.setupExternalApi=n;var s=i(35);function n(e){window[s.GLOBAL_VARIABLE]=e}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.flushOnReadyCallbacks=n;var s=i(35);function n(e){let{logger:t,trackCallback:i}=e;const n=window[s.ON_READY_CALLBACKS];if(Array.isArray(n)){i&&i();n.forEach((e=>{try{e()}catch(e){e instanceof Error&&t.error(e.message)}}))}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;class i{constructor({debug:e}={}){this._debug=Boolean(e);this.debug=this.debug.bind(this)}_isDebugMode(){return this._debug}debug(e){this._debug=e}log(e){this._isDebugMode()&&console.log(`${i.LOGGING_PREFIX} ${e}`)}error(e){this._isDebugMode()&&console.error(`${i.LOGGING_PREFIX} ${e}`)}}i.LOGGING_PREFIX="HubSpot Conversations log:";t.default=i;e.exports=t.default},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var n=s(i(45)),a=i(11),o=i(46),r=i(47),c=i(48);class l{constructor(){this._eventEmitter=new n.default;this._namespacedEventType=this._namespacedEventType.bind(this);this.on=this.on.bind(this);this.off=this.off.bind(this);this.trigger=this.trigger.bind(this)}_namespacedEventType(e){return`${r.EVENT_NAMESPACE}:${e}`}on(e,t){(0,a.stringInvariant)(e);(0,o.functionInvariant)(t);if(!e.length)return;const i=this._namespacedEventType(e);this._eventEmitter.addListener(i,t)}off(e,t){(0,a.stringInvariant)(e);(0,o.functionInvariant)(t);if(!e.length)return;const i=this._namespacedEventType(e);this._eventEmitter.removeListener(i,t)}trigger(e,t){(0,c.eventTypeInvariant)(e);const i=this._namespacedEventType(e);this._eventEmitter.emit(i,t)}}t.default=l;e.exports=t.default},function(e){"use strict";t=function(){return function e(t,i,s){function n(o,r){if(!i[o]){if(!t[o]){0;if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=i[o]={exports:{}};t[o][0].call(l.exports,(function(e){return n(t[o][1][e]||e)}),l,l.exports,e,t,i,s)}return i[o].exports}for(var a=void 0,o=0;o(0,n.default)("function"==typeof e&&null!==e,"Expected %s to be a function",e);t.functionInvariant=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.EVENT_NAMESPACE=void 0;t.EVENT_NAMESPACE="HubSpotConversations"},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.eventTypeInvariant=void 0;var n=s(i(12)),a=r(i(49));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(o=function(e){return e?i:t})(e)}function r(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=o(t);if(i&&i.has(e))return i.get(e);var s={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var r=n?Object.getOwnPropertyDescriptor(e,a):null;r&&(r.get||r.set)?Object.defineProperty(s,a,r):s[a]=e[a]}s.default=e;i&&i.set(e,s);return s}const c=Object.values(a),l=e=>(0,n.default)(-1!==c.indexOf(e),"Expected a valid event type but received %s. Valid event types include %s.",e,c);t.eventTypeInvariant=l},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WIDGET_LOADED=t.WIDGET_HIDDEN=t.WIDGET_CLOSED=t.USER_SELECTED_THREAD=t.USER_INTERACTED_WITH_WIDGET=t.UNREAD_CONVERSATION_COUNT_CHANGED=t.SDK_CLOSE_BUTTON_CLICK=t.QUICK_REPLY_BUTTON_CLICK=t.QUICK_LINK_BUTTON_CLICK=t.MESSAGE_INPUT_STATE_CHANGED=t.INPUT_TEXT_CHANGED=t.INPUT_STAGING=t.CONVERSATION_STARTED=t.CONVERSATION_CLOSED=t.CONTACT_ASSOCIATED=void 0;t.CONVERSATION_STARTED="conversationStarted",t.CONVERSATION_CLOSED="conversationClosed",t.UNREAD_CONVERSATION_COUNT_CHANGED="unreadConversationCountChanged",t.INPUT_STAGING="inputStaging",t.CONTACT_ASSOCIATED="contactAssociated",t.USER_INTERACTED_WITH_WIDGET="userInteractedWithWidget",t.QUICK_REPLY_BUTTON_CLICK="quickReplyButtonClick",t.QUICK_LINK_BUTTON_CLICK="quickLinkButtonClick",t.WIDGET_LOADED="widgetLoaded",t.WIDGET_CLOSED="widgetClosed",t.USER_SELECTED_THREAD="userSelectedThread",t.WIDGET_HIDDEN="widgetHidden",t.SDK_CLOSE_BUTTON_CLICK="sdkCloseButtonClick",t.MESSAGE_INPUT_STATE_CHANGED="messageInputStateChanged",t.INPUT_TEXT_CHANGED="inputTextChanged"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.handleExternalApiEventMessage=void 0;var s=i(13),n=i(11);const a=({data:e},{eventEmitter:t})=>{(0,n.stringInvariant)(e.eventType);(0,s.objectInvariant)(e.payload);t.trigger(e.eventType,e.payload)};t.handleExternalApiEventMessage=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WIDGET_WILL_LOAD_CODES=t.EXPECTED_WIDGET_WILL_NOT_LOAD_CODES=void 0;t.fetchWidgetData=h;var s=i(26),n=i(52);const a="X-HubSpot-Messages-Uri",o=4,r=t.WIDGET_WILL_LOAD_CODES=[200,304],c=t.EXPECTED_WIDGET_WILL_NOT_LOAD_CODES=[204,404],l=e=>r.indexOf(e)>-1,d=e=>!l(e)&&c.indexOf(e)<0,u=()=>{};function h({requestUrl:e,portalId:t},i,r=u){var c;const h=new XMLHttpRequest;h.addEventListener("readystatechange",(()=>{if(h.readyState===o)if(l(h.status))try{const e=JSON.parse(h.responseText);i(e)}catch(e){console.warn("Initial messages API response is invalid");r()}else{d(h.status)&&console.warn("Initial messages API call failed");r()}}));h.open("GET",e);const p=null===(c=window)||void 0===c||null===(c=c.messagesConfig)||void 0===c?void 0:c.messagesPageUri;let g;g=p||("about:srcdoc"===window.location.href?window.top.location.href:window.location.href);h.setRequestHeader(a,g);(0,s.isEmbeddedInProduct)({portalId:t})&&(0,n.addAuthToRequest)(h);h.send()}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.addCsrfHeader=t.addAuthToRequest=void 0;var s=i(17),n=i(19);const a=e=>{e.setRequestHeader("X-HubSpot-CSRF-hubspotapi",(0,s.getCookie)(n.cookies.HUBSPOT_API_CSRF))};t.addCsrfHeader=a;const o=e=>{a(e);e.withCredentials=!0};t.addAuthToRequest=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.EVENTS=void 0;t.triggerEvent=s;const i="hubspot:messages:";function s(e,t){let s;const n=`${i}${e}`;if("function"==typeof window.Event)s=Object.assign(new Event(n),t);else{s=Object.assign(document.createEvent("Event"),t);s.initEvent(n,!0,!0)}window.dispatchEvent(s)}t.EVENTS={messagesInitialized:({messageWillRender:e,reason:t})=>{s("initialized",{messageWillRender:e,reason:t})}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.throttle=i;function i(e,t){let i=!1,s=null;return(...n)=>{if(i)s=()=>{e(...n)};else{i=!0;e(...n);setTimeout((()=>{i=!1;"function"==typeof s&&s();s=null}),t)}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getIframeQueryParams=d;var s=i(17),n=i(4),a=i(26),o=i(56),r=i(31),c=i(33),l=i(57);function d({messagesUtk:e,hubspotUtk:t,portalId:i,iframeUuid:d,globalCookieOptOut:u,isFirstVisitorSession:h,hstc:p}){const g=(0,n.isAnyMobile)(),m=(0,c.shouldEmbedInline)(),f=(0,r.shouldWidgetStartOpen)(),E=(0,c.shouldDisableInitialInputFocus)(),_=(0,c.shouldHideNewThreadLink)(),b=m&&E;!m&&E&&console.warn("hsConversationsSettings: the `disableInitialInputFocus` object is only enabled for use when an `inlineEmbedSelector` object is also set");const v={uuid:d,mobile:g,mobileSafari:(0,n.isMobileSafari)(),hideWelcomeMessage:(0,o.shouldHideWelcomeMessage)(),hstc:p,domain:(0,s.getHostnameWithoutWww)(),inApp53:(0,a.isEmbeddedInProduct)({portalId:i}),messagesUtk:e,url:window.location.href,inline:m,isFullscreen:(0,c.shouldBeFullscreen)(),globalCookieOptOut:u,isFirstVisitorSession:h,isAttachmentDisabled:(0,c.shouldDisableAttachment)(),isInitialInputFocusDisabled:b,enableWidgetCookieBanner:(0,c.getEnableWidgetCookieBanner)(),isInCMS:(0,l.isInCMS)(),hideScrollToButton:(0,c.shouldHideScrollToButton)(),isIOSMobile:(0,n.isIOSMobile)()};void 0!==f&&(v.startOpen=f);t&&(v.hubspotUtk=t);_&&(v.hideNewThreadLink=!0);return v}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.shouldHideWelcomeMessage=a;var s=i(17),n=i(19);function a(){return!!(0,s.getCookie)(n.cookies.HIDE_WELCOME_MESSAGE)||!1}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isInCMS=void 0;const i=()=>void 0!==window.hsVars;t.isInCMS=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var s=i(59),n=i(60),a=i(61),o=i(8);class r{constructor({onScroll:e}){this._onScroll=e;this._handleScroll=this._handleScroll.bind(this);this.add=this.add.bind(this);this.remove=this.remove.bind(this)}_handleScroll(){const e=(0,a.getPageHeight)()-(0,n.getViewportHeight)();if(0===e)return;const t=100*(0,s.getBodyScrollTop)()/e;this._onScroll({scrollPercentage:t})}_add(){window.addEventListener("scroll",this._handleScroll,{capture:!0,passive:!0})}add(){this.remove();this._add()}remove(){window.removeEventListener("scroll",this._handleScroll,{capture:!0})}registerPostMessageReceivers(e){e.register(o.START_TRACK_SCROLL_PERCENTAGE,this.add);e.register(o.STOP_TRACK_SCROLL_PERCENTAGE,this.remove)}}t.default=r;e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getBodyScrollTop=void 0;const i=()=>document.body.scrollTop||document.documentElement.scrollTop;t.getBodyScrollTop=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getViewportHeight=void 0;const i=()=>Math.max(window.innerHeight||0,document.documentElement.clientHeight);t.getViewportHeight=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getPageHeight=void 0;const i=()=>Math.max(document.body.offsetHeight,document.body.scrollHeight);t.getPageHeight=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var s=i(8);class n{constructor({onExitIntent:e}){this._onExitIntent=e;this._handleMouseOut=this._handleMouseOut.bind(this);this._isExitIntent=this._isExitIntent.bind(this);this.add=this.add.bind(this);this.remove=this.remove.bind(this)}_isExitIntent(e){if(!e)return!1;const t=e.relatedTarget||e.toElement;return(!t||"HTML"===t.nodeName)&&e.clientY<100}_handleMouseOut(e){this._isExitIntent(e)&&this._onExitIntent()}_add(){window.document.addEventListener("mouseout",this._handleMouseOut)}add(){this.remove();this._add()}remove(){window.document.removeEventListener("mouseout",this._handleMouseOut)}addExitIntentTracker(){this.add()}removeExitIntentTracker(){this.remove()}registerPostMessageReceivers(e){e.register(s.START_TRACK_EXIT_INTENT,this.add);e.register(s.STOP_TRACK_EXIT_INTENT,this.remove)}}t.default=n;e.exports=t.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.markEndPostDelay=n;t.markEndPreDelay=a;var s=i(64);function n(){try{performance.mark(s.END_MARK_POST_DELAY)}catch(e){}}function a(){try{performance.mark(s.END_MARK_PRE_DELAY)}catch(e){}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.START_MARK_PRE_DELAY=t.START_MARK_POST_DELAY=t.EXECUTION_MEASUREMENT_PRE_DELAY=t.EXECUTION_MEASUREMENT_POST_DELAY=t.END_MARK_PRE_DELAY=t.END_MARK_POST_DELAY=void 0;t.START_MARK_PRE_DELAY="embed-script-start-pre-delay",t.END_MARK_PRE_DELAY="embed-script-end-pre-delay",t.START_MARK_POST_DELAY="embed-script-start-post-delay",t.END_MARK_POST_DELAY="embed-script-end-post-delay",t.EXECUTION_MEASUREMENT_POST_DELAY="embed-script-load-time-post-delay",t.EXECUTION_MEASUREMENT_PRE_DELAY="embed-script-load-time-pre-delay"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.setClassInClassList=void 0;var s=i(66),n=i(23);const a={[s.LEFT_ALIGNED]:n.ALIGNED_LEFT_CLASS,[s.RIGHT_ALIGNED]:n.ALIGNED_RIGHT_CLASS},o=({widgetLocation:e,classList:t})=>{const i=a[e];if(t.contains(i))return;Object.keys(a).filter((t=>t!==e)).forEach((e=>{t.remove(e)}));t.add(i)};t.setClassInClassList=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.RIGHT_ALIGNED=t.LEFT_ALIGNED=void 0;t.LEFT_ALIGNED="LEFT_ALIGNED",t.RIGHT_ALIGNED="RIGHT_ALIGNED"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WIDGET_LOCATION=void 0;t.WIDGET_LOCATION="widgetLocation"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.resetAndLaunchWidget=void 0;var s=i(20),n=i(1),a=i(69);const o=()=>{(0,s.clearCookies)();window[a.USER_TOKEN_KEY]="";window.hubspot_live_messages_running=!1;(0,n.startOnceReady)()};t.resetAndLaunchWidget=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.USER_TOKEN_KEY=void 0;t.USER_TOKEN_KEY="__hsUserToken"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ApiUsageTracker=void 0;var s=i(9);class n{constructor({postMessageToIframe:e}){if("function"!=typeof e)throw new TypeError("ApiUsageTracker: postMessageToIframe was not a function");this._postMessageToIframe=e;this.sendEventToTracker=this.sendEventToTracker.bind(this);this.trackSettingsUsed=this.trackSettingsUsed.bind(this);this.trackMethod=this.trackMethod.bind(this);this.trackEventListener=this.trackEventListener.bind(this);this.trackOnReady=this.trackOnReady.bind(this)}sendEventToTracker(e,t={}){this._postMessageToIframe(s.TRACK_API_USAGE,{eventName:e,properties:t})}trackSettingsUsed(e){const t={};!1===e.loadImmediately&&(t.loadImmediately=!0);e.inlineEmbedSelector&&(t.inlineEmbedSelector=!0);e.enableWidgetCookieBanner&&(t.enableWidgetCookieBanner=!0);e.disableAttachment&&(t.disableAttachment=!0);e.disableInitialInputFocus&&(t.disableInitialInputFocus=!0);Object.keys(t).length>0&&this.sendEventToTracker("HubspotConversations-hsConversationsSettings-used",t)}trackMethod(e){this.sendEventToTracker("HubspotConversations-api-method-used",{method:e})}trackEventListener(e){this.sendEventToTracker("HubspotConversations-api-event-listener-registered",{event:e})}trackOnReady(){this.sendEventToTracker("HubspotConversations-hsConversationsOnReady-used",{method:"hsConversationsOnReady"})}}t.ApiUsageTracker=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PostMessageApiClient=void 0;var s=i(72),n=i(9);class a{constructor(e){this.makeApiRequest=({data:e})=>{const{type:t,url:i,data:a}=e,o=`/_hcms${i}`;this.currentRequest&&this.currentRequest.readyState!==s.DONE_STATE&&this.abortCurrentApiRequest();this.currentRequest=(0,s.doRequest)(t)(o,a)(((e,t)=>{t?this.postMessage(n.API_REQUEST_RESULT,{result:"failed",data:t,url:i}):this.postMessage(n.API_REQUEST_RESULT,{result:"succeeded",data:e,url:i})}))};this.postMessage=e;this.currentRequest=null}abortCurrentApiRequest(){this.currentRequest&&this.currentRequest.abort()}}t.PostMessageApiClient=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.put=t.post=t.get=t.doRequest=t.DONE_STATE=void 0;const i=t.DONE_STATE=4,s=e=>e>=300,n=e=>(t,n)=>a=>{const o=new XMLHttpRequest;o.addEventListener("readystatechange",(()=>{if(o.readyState===i)try{const e=JSON.parse(o.responseText);s(o.status)?a(null,e):a(e)}catch(e){a(null,"Invalid api response")}}));o.open(e,t);o.send(n);return o};t.doRequest=n;t.get=n("GET"),t.post=n("POST"),t.put=n("PUT")},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.sendWidgetDataToIframe=void 0;var s=i(74),n=i(34),a=i(55),o=i(9);const r=({source:e,widgetData:t,embedScriptContext:i,apiUsageTracker:r})=>{const{notificationAudio:c}=(0,n.getExternalApiSettings)();e.postMessage(JSON.stringify({type:o.WIDGET_DATA,data:Object.assign({},t,(0,a.getIframeQueryParams)(i),{notificationAudio:c})}),"*");(0,s.throttleInProductInitialMessagePopups)(i);r.trackSettingsUsed((0,n.getExternalApiSettings)())};t.sendWidgetDataToIframe=r},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.throttleInProductInitialMessagePopups=l;var n=i(17),a=i(19),o=s(i(18)),r=i(26),c=i(56);function l({portalId:e}){(0,r.isEmbeddedInProduct)({portalId:e})&&!(0,c.shouldHideWelcomeMessage)()&&(0,n.setCookie)(a.cookies.HIDE_WELCOME_MESSAGE,!0,o.default.ONE_DAY)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.registerCookieListeners=void 0;var s=i(9),n=i(19),a=i(21);const o=({postMessageToIframe:e})=>{const t=t=>{const i=t.categories?t.categories.functionality:t.allowed,o=i?n.cookieValues.GLOBAL_COOKIE_OPT_OUT_NO:n.cookieValues.GLOBAL_COOKIE_OPT_OUT_YES;e(s.GLOBAL_COOKIE_OPT_OUT,{globalCookieOptOut:o});i||(0,a.deleteCookie)(n.cookies.MESSAGES)};window._hsq=window._hsq||[];window._hsq.push(["addPrivacyConsentListener",t]);window._hsq.push(["addUserTokenListener",t=>e(s.HUBSPOT_UTK,{utk:t})])};t.registerCookieListeners=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.registerHashChangeListener=void 0;var s=i(38);const n=({requestWidgetOpen:e,isOpen:t})=>{window.addEventListener("hashchange",(()=>{(0,s.urlHasHsChatHashLink)(window.location.href)&&!t&&e()}))};t.registerHashChangeListener=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.registerWindowResizeListener=void 0;const i=({resizeCallbackFn:e})=>{window.addEventListener("resize",e,{passive:!0})};t.registerWindowResizeListener=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.iframeMessagePool=t.createQueue=void 0;var s=i(79),n=i(80),a=i(81);const o=()=>{const e=[];return{enqueue:t=>e.unshift(t),dequeue:()=>e.shift(),peek:()=>e[0]}};t.createQueue=o;const r=({iframeSrc:e})=>{const t=o();return{post:(i,o={})=>{var r;const c=(0,s.getIframeFromDocumentQuery)(),l="about:blank"===(null==c||null===(r=c.contentDocument)||void 0===r?void 0:r.URL);if(!c||l)t.enqueue({type:i,data:o});else{(0,n.postMessageToIframe)({iframe:c,iframeSrc:e,type:i,data:o});(0,a.executeAllIframeMessageQueueEvents)({iframe:c,iframeSrc:e,eventQueue:t})}}}};t.iframeMessagePool=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getIframeFromDocumentQuery=void 0;var s=i(33),n=i(40);const a=()=>{const e=(0,s.shouldEmbedInline)()?(0,s.getInlineEmbedSelector)():`#${n.PARENT_ID}`;return document.querySelector(`${e} iframe`)};t.getIframeFromDocumentQuery=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.postMessageToIframe=void 0;const i=({iframe:e,iframeSrc:t,type:i,data:s})=>{var n;let a;try{a=null==e?void 0:e.contentWindow}catch(t){a=null==e?void 0:e.contentWindow}return null===(n=a)||void 0===n?void 0:n.postMessage(JSON.stringify({type:i,data:s}),t)};t.postMessageToIframe=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.executeAllIframeMessageQueueEvents=void 0;var s=i(80);const n=({iframe:e,iframeSrc:t,eventQueue:i})=>{do{const n=i.dequeue();if(n){const{type:i,data:a}=n;(0,s.postMessageToIframe)({iframe:e,iframeSrc:t,type:i,data:a})}}while(i.peek()&&0!==Object.keys(i.peek()).length)};t.executeAllIframeMessageQueueEvents=n},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.hideWelcomeMessage=void 0;var n=i(19),a=i(17),o=s(i(18));const r=()=>{(0,a.setCookie)(n.cookies.HIDE_WELCOME_MESSAGE,!0,o.default.ONE_DAY)};t.hideWelcomeMessage=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.resizeWidgetIframe=void 0;var s=i(40);const n=({height:e,width:t})=>{const i=document.getElementById(s.PARENT_ID);if(i&&t&&e){i.style.width=`${t}px`;i.style.height=`${e}px`}};t.resizeWidgetIframe=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.handleTargetingAndDelay=void 0;var s=i(4),n=i(16),a=i(24),o=i(85),r=i(53),c=i(63),l=i(86);const d=(e,t,i)=>d=>{const u=!((0,n.getWidgetDataResponseType)(d)===a.HIDE_WIDGET)&&!!d.sessionId;if(u){const{shouldDelayLoadingIframe:i,timeDelay:n}=(0,o.getDelayLoadingWidgetIframe)(d,(0,s.isAnyMobile)());(0,c.markEndPreDelay)();if(i)setTimeout((()=>{e(d);(0,l.markStartPostDelay)();t()}),n);else{e(d);(0,l.markStartPostDelay)();t()}}else{const{description:e,reason:t}=d.metadata||{};i({description:e,reason:t})}r.EVENTS.messagesInitialized({messageWillRender:u})};t.handleTargetingAndDelay=d},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getDelayLoadingWidgetIframe=void 0;const i=(e,t)=>{const{message:i}=e,{popOpenWelcomeMessage:s,popOpenWidget:n,popMessageOnSmallScreens:a,clientTriggers:o}=i,{displayOnTimeDelay:r}=o,{enabled:c,timeDelaySeconds:l}=r,d=1e3*l;return t?{shouldDelayLoadingIframe:!a&&c&&!window.ONLY_53_DISPLAY_LAUNCHER_ON_MOBILE,timeDelay:d}:{shouldDelayLoadingIframe:!n&&!s&&c,timeDelay:d}};t.getDelayLoadingWidgetIframe=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.markStartPostDelay=a;t.markStartPreDelay=n;var s=i(64);function n(){try{performance.mark(s.START_MARK_PRE_DELAY)}catch(e){}}function a(){try{performance.mark(s.START_MARK_POST_DELAY)}catch(e){}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getGlobalCookieOptOut=a;var s=i(17),n=i(19);function a(){return(0,s.getCookie)(n.cookies.GLOBAL_COOKIE_OPT_OUT)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ON_WIDGET_LOAD=t.ON_EXIT_INTENT=t.NEVER=void 0;t.NEVER="NEVER",t.ON_WIDGET_LOAD="ON_WIDGET_LOAD",t.ON_EXIT_INTENT="ON_EXIT_INTENT"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ScreenCapturePlugin=void 0;var s=i(40),n=i(9),a=i(90);const o=10485760;class r{constructor(e){this.setWidgetVisibility=e=>{const t=document.getElementById(s.PARENT_ID);t&&t.style.setProperty("opacity",e?"1":"0")};this.wrapText=(e,t,i)=>{const s=[];let n="";for(const a of t){const t=n+a;if(e.measureText(t).width>i&&n.length>0){s.push(n);n=a}else n=t}n&&s.push(n);return s};this.addUrlToImage=(e,t)=>{const i=e.getContext("2d"),s=Math.max(12,.018*e.height),n=`500 ${s}px ui-monospace, SFMono-Regular, Menlo, Consolas, Liberation Mono, monospace`;i.font=n;const o=16,r=this.wrapText(i,t,e.width-2*o),c=s+6,l=r.length*c+o,d=i.getImageData(0,0,e.width,e.height),u=e.height;e.height=u+l;i.putImageData(d,0,0);i.font=n;i.fillStyle=a.NEUTRAL_1600;i.fillRect(0,u,e.width,l);i.fillStyle=a.WHITE;i.textBaseline="top";const h=u+(l-r.length*c)/2;r.forEach(((e,t)=>{i.fillText(e,o,h+t*c)}))};this.estimateDataUrlBytes=e=>{const t=e.slice(e.indexOf(",")+1);return Math.ceil(3*t.length/4)};this.captureScreenshot=async()=>{try{const e=await navigator.mediaDevices.getDisplayMedia({preferCurrentTab:!0,video:{displaySurface:"browser"}}),t=document.createElement("video");t.srcObject=e;await t.play();const i=5184e3,s=t.videoWidth*t.videoHeight;let n,a;if(s>i){const e=Math.sqrt(i/s);n=Math.round(t.videoWidth*e);a=Math.round(t.videoHeight*e)}else{n=t.videoWidth;a=t.videoHeight}const r=document.createElement("canvas"),c=(e,i)=>{r.width=e;r.height=i;const s=r.getContext("2d");if(s){s.drawImage(t,0,0,e,i);this.addUrlToImage(r,window.location.href)}};c(n,a);e.getTracks().forEach((e=>e.stop()));let l=r.toDataURL("image/png");this.estimateDataUrlBytes(l)>o&&(l=r.toDataURL("image/jpeg",.85));if(this.estimateDataUrlBytes(l)>o){const e=o/this.estimateDataUrlBytes(l),t=Math.sqrt(e);c(Math.round(n*t),Math.round(a*t));l=r.toDataURL("image/jpeg",.85)}const d=this.estimateDataUrlBytes(l);if(d>o){const e=`Screenshot exceeds maximum file size and could not be compressed (${n}x${a}px, ~${Math.round(d/1024)}KB)`;this.widgetShell.devLogger.error(e);this.widgetShell.logError(e)}return l}catch(e){this.widgetShell.devLogger.error(e instanceof Error?e.message:"Unknown error")}};this.handleScreenCaptureRequest=async()=>{this.setWidgetVisibility(!1);const e=await this.captureScreenshot();if(e){const t=e.startsWith("data:image/jpeg")?"jpg":"png",i=`${document.title}-${Date.now()}.${t}`;this.widgetShell.iframeMessage.post(n.SCREEN_CAPTURE_BLOB,{dataUrl:e,fileName:i})}this.setWidgetVisibility(!0)};this.widgetShell=e}}t.ScreenCapturePlugin=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WHITE=t.THUNDERDOME_MEDIUM=t.THUNDERDOME_LIGHT=t.THUNDERDOME_DARK=t.THUNDERDOME=t.SLINKY=t.PANTERA=t.OZ_MEDIUM=t.OZ_LIGHT=t.OZ_DARK=t.OZ=t.OLAF=t.OBSIDIAN=t.NORMAN_MEDIUM=t.NORMAN_LIGHT=t.NORMAN_DARK=t.NORMAN=t.NEUTRAL_900=t.NEUTRAL_800=t.NEUTRAL_700=t.NEUTRAL_600=t.NEUTRAL_500=t.NEUTRAL_400=t.NEUTRAL_300=t.NEUTRAL_200=t.NEUTRAL_1600=t.NEUTRAL_1500=t.NEUTRAL_1400=t.NEUTRAL_1300=t.NEUTRAL_1200=t.NEUTRAL_1100=t.NEUTRAL_1000=t.NEUTRAL_100=t.MARIGOLD_MEDIUM=t.MARIGOLD_LIGHT=t.MARIGOLD_DARK=t.MARIGOLD=t.KOALA=t.HEFFALUMP=t.GYPSUM=t.GREAT_WHITE=t.FLINT=t.EERIE=t.CIRRUS=t.CHART_RED=t.CHART_ORANGE=t.CHART_GREEN=t.CANDY_APPLE=t.CALYPSO_MEDIUM=t.CALYPSO_LIGHT=t.CALYPSO_DARK=t.CALYPSO=t.BUTTON_DISABLED_TEXT=t.BATTLESHIP=void 0;t.OLAF="#ffffff",t.GYPSUM="#f5f8fa",t.KOALA="#eaf0f6",t.GREAT_WHITE="#dfe3eb";const i=t.BATTLESHIP="#cbd6e2";t.FLINT="#99acc2",t.EERIE="#7c98b6",t.SLINKY="#516f90",t.HEFFALUMP="#425b76",t.PANTERA="#2d3e50",t.CALYPSO="#00a4bd",t.CALYPSO_DARK="#0091ae",t.CALYPSO_MEDIUM="#7fd1de",t.CALYPSO_LIGHT="#e5f5f8",t.OBSIDIAN="#33475b",t.CIRRUS="#f2f5f8",t.NORMAN="#f2547d",t.NORMAN_DARK="#d94c71",t.NORMAN_MEDIUM="#f9aabe",t.NORMAN_LIGHT="#fdedf2",t.CANDY_APPLE="#f2545b",t.OZ="#00bda5",t.OZ_DARK="#00a38d",t.OZ_MEDIUM="#7fded2",t.OZ_LIGHT="#e5f8f6",t.BUTTON_DISABLED_TEXT=i,t.CHART_GREEN="#a2d28f",t.CHART_ORANGE="#fea58e",t.CHART_RED="#ea90b1",t.MARIGOLD="#f5c26b",t.MARIGOLD_DARK="#dbae60",t.MARIGOLD_MEDIUM="#fae0b5",t.MARIGOLD_LIGHT="#fef8f0",t.THUNDERDOME="#6a78d1",t.THUNDERDOME_DARK="#5e6ab8",t.THUNDERDOME_MEDIUM="#b4bbe8",t.THUNDERDOME_LIGHT="#f0f1fa",t.WHITE="#ffffff",t.NEUTRAL_100="#f8f7f6",t.NEUTRAL_200="#f5f3f2",t.NEUTRAL_300="#efedeb",t.NEUTRAL_400="#e7e5e4",t.NEUTRAL_500="#cfcccb",t.NEUTRAL_600="#b6b1af",t.NEUTRAL_700="#9b9897",t.NEUTRAL_800="#676565",t.NEUTRAL_900="#4d4c4c",t.NEUTRAL_1000="#333333",t.NEUTRAL_1100="#292929",t.NEUTRAL_1200="#242424",t.NEUTRAL_1300="#1f1f1f",t.NEUTRAL_1400="#1c1c1c",t.NEUTRAL_1500="#171717",t.NEUTRAL_1600="#141414"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PILL=t.ICON=t.DEFAULT=void 0;t.PILL="PILL",t.ICON="ICON",t.DEFAULT="DEFAULT"},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.loadWidgetCss=a;var n=s(i(93));function a(e){const{hsConversationsSettings:t}=window;if(null!=t&&t.avoidInlineStyles){const t=e.createElement("link");t.setAttribute("rel","stylesheet");t.setAttribute("type","text/css");t.setAttribute("href",n.default.replace(".sass",".css"));e.head.appendChild(t);return}const s=i(94),a=e.createElement("style");a.setAttribute("type","text/css");const o=document.createTextNode(s);a.appendChild(o);e.head.appendChild(a)}},function(e,t){e.exports="//static.hsappstatic.net/conversations-embed/static-1.26071/sass/messagesWidgetShell.sass"},function(e){e.exports='html.hs-messages-widget-open.hs-messages-mobile,html.hs-messages-widget-open.hs-messages-mobile body{overflow:hidden!important;position:relative!important}html.hs-messages-widget-open.hs-messages-mobile body{height:100%!important;margin:0!important}#hubspot-messages-iframe-container{display:initial!important;z-index:2147483647;position:fixed!important;bottom:0!important}#hubspot-messages-iframe-container:hover .hs-drag-handle--v2--widget-open--left,#hubspot-messages-iframe-container:hover .hs-drag-handle--v2--widget-open--right{display:flex!important}#hubspot-messages-iframe-container.widget-align-left{left:0!important}#hubspot-messages-iframe-container.widget-align-right{right:0!important}#hubspot-messages-iframe-container.internal{z-index:1016}#hubspot-messages-iframe-container.internal iframe{min-width:108px}#hubspot-messages-iframe-container .hs-shadow-container{display:initial!important;z-index:-1;position:absolute;width:0;height:0;bottom:0;content:""}#hubspot-messages-iframe-container .hs-shadow-container.internal{display:none!important}#hubspot-messages-iframe-container .hs-shadow-container.active{width:400px;height:400px}#hubspot-messages-iframe-container iframe{display:initial!important;width:100%!important;height:100%!important;border:none!important;position:absolute!important;bottom:0!important;right:0!important;background:transparent!important}#hubspot-messages-iframe-container .hs-drag-handle--v2--widget-open--right{bottom:20px;left:-5px;display:none!important}#hubspot-messages-iframe-container .hs-drag-handle--v2--widget-open--left{bottom:20px;right:-5px;display:none!important}.hs-drag-handle{position:absolute;cursor:grab;height:60px;display:none;align-items:center;transition:opacity .5s ease;transition-delay:.5s;opacity:1}.hs-drag-handle--v1--right{right:82px;bottom:12px}.hs-drag-handle--v1--left{left:82px;bottom:12px}.hs-drag-handle--v2--pill-launcher--right{bottom:20px;left:10px}.hs-drag-handle--v2--pill-launcher--left{bottom:20px;right:10px}.hs-drag-handle--v2--hidden--left,.hs-drag-handle--v2--hidden--right{opacity:0!important;pointer-events:none!important;transition:none!important}.hs-drag-overlay{position:absolute;top:0;left:0;right:0;bottom:0;user-select:none;z-index:999;display:none}'},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.createEmbedScriptContext=l;var n=i(96),a=i(97),o=i(104),r=s(i(105)),c=i(33);function l(){var e;const{messagesEnv:t,portalId:i,messagesHublet:s}=(0,o.getScriptEnvParams)();let l=!1;try{l=localStorage&&"true"===localStorage["live-chat-local-toggle"]}catch(e){}const d=(null===(e=window)||void 0===e||null===(e=e.messagesConfig)||void 0===e?void 0:e.iFrameDomain)||"",u=(0,n.getUuid)(),h=encodeURIComponent(document.referrer),{messagesUtk:p,hubspotUtk:g,hstc:m,hssc:f,globalCookieOptOut:E,isFirstVisitorSession:_}=(0,a.prepareVisitorIdentifiers)();return new r.default({messagesHublet:s,globalCookieOptOut:E,hubspotUtk:g,hstc:m,hssc:f,iFrameDomainOverride:d,iframeUuid:u,isFirstVisitorSession:_,messagesEnv:t,messagesUtk:p,referrer:h,portalId:i,useLocalBuild:l,identificationEmail:(0,c.getIdentificationEmail)(),identificationToken:(0,c.getIdentificationToken)()})}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getUuid=n;function i(){let e=(new Date).getTime();return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(t=>{const i=(e+16*Math.random())%16|0;e=Math.floor(e/16);return("x"===t?i:3&i|8).toString(16)}))}function s(){const e=window.crypto||window.msCrypto,t=new Uint16Array(8);e.getRandomValues(t);const i=e=>{let t=e.toString(16);for(;t.length<4;)t=`0${t}`;return t};return i(t[0])+i(t[1])+i(t[2])+i(t[3])+i(t[4])+i(t[5])+i(t[6])+i(t[7])}function n(){var e;const t=window.crypto||window.msCrypto;return null==t||!t.getRandomValues||null!==(e=window)&&void 0!==e&&e.Uint16Array?i():s()}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.prepareVisitorIdentifiers=void 0;var s=i(98),n=i(99),a=i(101),o=i(87),r=i(102),c=i(103),l=i(25);const d=()=>{const e=(0,n.getMessagesUtkFromCookie)();e&&(0,l.setMessagesUtk)(e);const t=(0,a.getHubSpotUtkFromCookie)(),i=(0,r.getHstcFromCookie)(),d=(0,c.getHsscFromCookie)(),u=(0,o.getGlobalCookieOptOut)(),{messagesUtk:h,isFirstVisitorSession:p}=(0,s.chooseMessagesUtk)({existingMessagesUtk:e});return{messagesUtk:h,hubspotUtk:t,hstc:i,hssc:d,globalCookieOptOut:u,isFirstVisitorSession:p}};t.prepareVisitorIdentifiers=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.chooseMessagesUtk=n;var s=i(96);function n({existingMessagesUtk:e}={}){let t,i=!1;if(e)t=e;else{i=!0;t=(0,s.getUuid)()}return{messagesUtk:t,isFirstVisitorSession:i}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getMessagesUtkFromCookie=o;var s=i(17),n=i(100),a=i(19);function o(){const e=(0,s.getCookie)(a.cookies.MESSAGES);return(0,n.isUtk)(e)?e:void 0}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.UTK_REGEX=void 0;t.isUtk=s;const i=t.UTK_REGEX=/[a-zA-Z\d]{32}/;function s(e){return i.test(e)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getHubSpotUtkFromCookie=a;var s=i(19),n=i(17);function a(){return(0,n.getCookie)(s.cookies.HUBSPOT)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getHstcFromCookie=a;var s=i(19),n=i(17);function a(){return(0,n.getCookie)(s.cookies.HSTC)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getHsscFromCookie=a;var s=i(19),n=i(17);function a(){return(0,n.getCookie)(s.cookies.HSSC)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getPortalId=t.getMessagesHublet=t.getMessagesEnv=t.getIsLocal=void 0;t.getScriptEnvParams=o;const i=()=>{const e=document.getElementById("hubspot-messages-loader");return parseInt(e.getAttribute("data-hsjs-portal"),10)};t.getPortalId=i;const s=()=>document.getElementById("hubspot-messages-loader").getAttribute("data-hsjs-env");t.getMessagesEnv=s;const n=()=>document.getElementById("hubspot-messages-loader").getAttribute("data-hsjs-hublet");t.getMessagesHublet=n;const a=()=>"true"===document.getElementById("hubspot-messages-loader").getAttribute("data-hsjs-local");t.getIsLocal=a;function o(){return{ungatedFor:document.getElementById("hubspot-messages-loader").getAttribute("ungated-for"),portalId:i(),messagesEnv:s(),messagesHublet:n(),isLocal:a()}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=t.EmbedScriptContext=void 0;var s=i(106),n=i(11),a=i(26),o=i(107),r=i(116),c=i(55),l=i(57),d=i(117),u=i(33),h=i(121),p=i(108),g=i(112);class m{constructor(e){const{globalCookieOptOut:t,hubspotUtk:i,hstc:a,hssc:o,iFrameDomainOverride:r,iframeUuid:c,isFirstVisitorSession:l,messagesEnv:d,messagesUtk:u,referrer:h,portalId:p,useLocalBuild:m,identificationEmail:f,identificationToken:E,messagesHublet:_}=e;(0,n.stringInvariant)(c,"iframeUuid");(0,n.stringInvariant)(d,"messagesEnv");(0,n.stringInvariant)(u,"messagesUtk");(0,s.numberInvariant)(p,"portalId");this.globalCookieOptOut=t;this.hubspotUtk=i;this.hstc=a;this.hssc=o;this.iFrameDomainOverride=r;this.iframeUuid=c;this.isFirstVisitorSession=l;this.messagesEnv=d;this.messagesUtk=u;this.referrer=h;this.portalId=p;this.useLocalBuild=m;this.identificationEmail=f;this.identificationToken=E;this.messagesHublet=_||g.na1;this.getIFrameDomain=this.getIFrameDomain.bind(this);this.getIFrameSrc=this.getIFrameSrc.bind(this);this.getInitialRequestUrl=this.getInitialRequestUrl.bind(this)}getIFrameDomain(){return this.iFrameDomainOverride?this.iFrameDomainOverride:(0,p.getFullUrl)(this.useLocalBuild?"local":"app",{envOverride:this.messagesEnv,hubletOverride:this.messagesHublet})}getIFrameSrc(){const e=(0,r.serializeQueryParameters)((0,c.getIframeQueryParams)({messagesUtk:this.messagesUtk,hubspotUtk:this.hubspotUtk,portalId:this.portalId,iframeUuid:this.iframeUuid,globalCookieOptOut:this.globalCookieOptOut,isFirstVisitorSession:this.isFirstVisitorSession,hstc:this.hstc}));return`${this.getIFrameDomain()}/conversations-visitor/${this.portalId}/threads/utk/${this.messagesUtk}?${e}`}getEncodedIdentificationEmail(){let e=this.identificationEmail;e.includes("@")||(e=decodeURIComponent(e));return encodeURIComponent(e)}getInitialRequestUrl(e){if(e){this.identificationEmail=(0,u.getIdentificationEmail)();this.identificationToken=(0,u.getIdentificationToken)()}if((0,l.isInCMS)())return(0,o.getCMSRequestUrl)({messagesUtk:this.messagesUtk,hubspotUtk:this.hubspotUtk,portalId:this.portalId,referrer:this.referrer,hstc:this.hstc,hssc:this.hssc,email:this.identificationEmail&&this.getEncodedIdentificationEmail(),identificationToken:this.identificationToken});if((0,a.isEmbeddedInProduct)({portalId:this.portalId}))return(0,o.getInternalRequestUrl)({messagesHublet:this.messagesHublet,messagesEnv:this.messagesEnv,messagesUtk:this.messagesUtk,portalId:this.portalId});return((0,h.isInSDK)()?o.getPublicRequestUrlForMobileSDK:o.getPublicRequestUrl)({messagesHublet:this.messagesHublet,messagesEnv:this.messagesEnv,messagesUtk:this.messagesUtk,hubspotUtk:this.hubspotUtk,portalId:this.portalId,referrer:this.referrer,hstc:this.hstc,hssc:this.hssc,email:this.identificationEmail&&this.getEncodedIdentificationEmail(),identificationToken:this.identificationToken})}getPerfAttributes(){const e=(0,d.getPerfAttributes)({portalId:this.portalId,messagesEnv:this.messagesEnv});if((0,u.shouldLoadImmediately)()&&e)return e}}t.EmbedScriptContext=m;t.default=m},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.numberInvariant=void 0;var n=s(i(12));const a=(e,t="")=>(0,n.default)("number"==typeof e,"Expected %s to be a number, not a %s",t||e,typeof e);t.numberInvariant=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getCMSRequestUrl=d;t.getInternalRequestUrl=c;t.getPublicRequestUrl=u;t.getPublicRequestUrlForMobileSDK=h;var s=i(108),n=i(114),a=i(115),o=i(28),r=i(4);function c({messagesEnv:e,portalId:t,messagesUtk:i,messagesHublet:n}){const a=(0,o.getPortalIdFromPath)(window.location.pathname);return`${(0,s.getFullUrl)("api",{envOverride:e,hubletOverride:n})}/livechat/v1/message/public/hubspot-app?portalId=${a}&mobile=${(0,r.isAnyMobile)()}&embeddedPortalId=${t}&traceId=${i}`}function l({messagesUtk:e,hubspotUtk:t,portalId:i,referrer:s,hstc:a,hssc:o,email:c,identificationToken:l}){let d=`?portalId=${i}&${n.bender.project}=${n.bender.depVersions[n.bender.project]}&mobile=${(0,r.isAnyMobile)()}`;e&&(d=`${d}&messagesUtk=${e}&traceId=${e}`);t&&(d=`${d}&hubspotUtk=${t}`);a&&(d=`${d}&__hstc=${a}`);o&&(d=`${d}&__hssc=${o}`);s&&(d=`${d}&referrer=${s}`);l&&(d=`${d}&identificationToken=${l}`);c&&(d=`${d}&email=${c}`);return d}function d({messagesUtk:e,hubspotUtk:t,portalId:i,referrer:s,hstc:n,hssc:a,email:o,identificationToken:r}){return`/_hcms/livechat/widget${l({messagesUtk:e,hubspotUtk:t,portalId:i,referrer:s,hstc:n,hssc:a,email:o,identificationToken:r})}`}function u({messagesHublet:e,messagesEnv:t,messagesUtk:i,hubspotUtk:n,portalId:a,referrer:o,hstc:r,hssc:c,email:d,identificationToken:u}){return`${(0,s.getFullUrl)("api",{envOverride:t,hubletOverride:e})}/livechat-public/v1/message/public${l({messagesUtk:i,hubspotUtk:n,portalId:a,referrer:o,hstc:r,hssc:c,email:d,identificationToken:u})}`}function h({messagesHublet:e,messagesEnv:t,messagesUtk:i,hubspotUtk:n,portalId:o,referrer:r,hstc:c,hssc:d,email:u,identificationToken:h}){return`${(0,s.getFullUrl)("api",{envOverride:t,hubletOverride:e})}/livechat-public/v1/message/public/mobile${l({messagesUtk:i,hubspotUtk:n,portalId:o,referrer:r,hstc:c,hssc:d,email:u,identificationToken:h})}&chatflow=${(0,a.getChatflowTagFromQueryParams)()}`}},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.getFullUrl=o;t.getFullUrlWithCurrentSubDomain=r;var n=s(i(109)),a=i(110);function o(e,t){return`https://${(0,a.getSubDomain)(e,t)}.${(0,a.getDomain)(t)}.${(0,a.getTld)(t)}${(0,a.getPathPrefix)(e)}`}function r(e=window.location.hostname){const t=n.default.deployed()?"app":"local";if(!e)return o(t);const i=e.match(/^(.+)\.(hubspot(?:qa)?|hubteam(?:qa)?)\..+$/);if(!i)return o(t);const s=i[1],a=i[2].startsWith("hubteam")?"hubteam":"hubspot",r=n.default.getHublet(),c="na1"===r?"":`-${r}`;return o(c&&s.endsWith(c)?s.slice(0,-c.length):s,"hubspot"!==a?{domainOverride:a}:{})}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;const i=["api","local","app","private","platform","tools","meetings","payments","mcp"],s=["hubspotstarter","hubspotfree","hubspotemail"],n=["growth"],a={com:["hubspot","hubteam","grader","getsignals","getsidekick","gettally","hubspotemail","customer-hub","hubspotservicehub","hubspotquote","hubspotdocuments","hs-data-privacy"].join("|"),net:s.join("|"),org:n.join("|")},o=function e(t){const s=new RegExp(`^(?!local|test|selenium)(.*\\.)?(${Object.entries(a).map((([e,t])=>`(?:${t})(qa)?\\.${e}`)).join("|")}|(?:connect)\\.com|(?:connect)(qa)\\.co|wthubspot\\.(com|de|es|fr|jp))$`),n=new RegExp("^(?:[^.]+)\\.(?:preview).app(-[a-z]+[0-9])?\\.hubspotqa\\.com"),o=new RegExp("^(?:[^.]+)\\.(?:local)\\.(app|tools|private)(-[a-z]+[0-9])?\\.(hubspot|hubteam)(qa)?\\.com"),r=new RegExp("^(?:[^.]+)\\.local(-[a-z]+[0-9])?\\.(hubspot|hubteam)(qa)?\\.com"),c=s.test(t.hostname),l=o.test(t.hostname)||r.test(t.hostname),d=n.test(t.hostname),u=c&&!l||d,h=new RegExp(`${Object.entries(a).map((([e,t])=>`(?:${t})qa\\.${e}`)).join("|")}|(?:connect)qa\\.co|wthubspot\\.(com|de|es|fr|jp)|hsqa-sales(?:crm)?-sub\\.com|(?:hubspotstarter|hubspotfree|hubspotemail)(qa)(?:-.*)\\.net|(?:hubspotemail)(qa)(?:-.*)\\.com`),p=[new RegExp(`^(?:${i.join("|")})-(.*).(?:hubspot|hubteam)(?:qa)?.com`),new RegExp("^(.*).(?:hubspotquote)(?:qa)?.com"),new RegExp("^app-(.*).(?:hubspotdocuments)(?:qa)?.com"),new RegExp("^(?:[0-9]+).(.*).hs(?:qa)?-sales(?:crm)?-sub.com"),new RegExp("^(?:[a-zA-Z0-9-]+)\\.([a-z0-9]+)\\.hs(?:qa)?-sales(?:crm)?-sub\\.com"),new RegExp("^hs-(?:[0-9]+).s.(?:hubspotfree|hubspotstarter|hubspotemail)(?:qa)?-(.*).net"),new RegExp("^hs-(?:[0-9]+).s.(?:hubspotemail)(?:qa)?-(.*).com"),new RegExp("^t.sidekickopen(?:\\d)+-([a-z]+[0-9]).com"),new RegExp("^([a-z]+[0-9]).hs-data-privacy(?:qa)?.com"),new RegExp("^(?:[^.]+)\\.(?:preview|local)\\.app-([a-z]+[0-9])\\.hubspot(qa)?\\.com"),new RegExp("^(?:[^.]+)\\.local-([a-z]+[0-9])\\.(hubspot|hubteam)(qa)?\\.com")],g="ENV",m="Enviro error: the default argument for .get and .getShort is no longer supported",f=e=>{let t=window[e];if(null==t)try{t=window.sessionStorage.getItem(e)}catch(e){}if(null==t)try{t=window.localStorage.getItem(e)}catch(e){}return t},E=()=>{const e=f(g);return e||(h.test(t.host)?"qa":"prod")},_=(e,t)=>{window[e]=t;return t},b={prod:"production",qa:"development"},v=e=>{if("string"==typeof e){const t=e.toLowerCase();return b[t]||t}return e},T=e=>{e="string"==typeof e?e.toLowerCase():void 0;return Object.keys(b).find((t=>e===b[t]))||e},I=(e,t)=>{if(null!=t)throw new Error(m);let i=null;if(e){const t=e.split(".").reverse();for(let e=0;e{if(null!=t)throw new Error(m);return T(I(e))},A=S,y=e=>"prod"===A(e),R=e=>"qa"===A(e),L=()=>{const e=f("HUBLET");if(e)return e;for(const e of p)if(e.test(t.hostname))return e.exec(t.hostname)[1];return"na1"};function P({isNa1:e,isNonNa1:t},i){i||(i=L());return"na1"===i?"function"==typeof e?e(i):void 0:"function"==typeof t?t(i):void 0}return{createEnviro:e,debug:(e,t=!1)=>{let i;"string"==typeof e&&(i=f(`${e.toUpperCase()}_DEBUG`));null==i&&(i=f("DEBUG"));return null==i?t:i},denormalize:T,deployed:e=>{let t;"string"==typeof e&&(t=f(`${e.toUpperCase()}_DEPLOYED`));null==t&&(t=f("DEPLOYED"));return null==t?u:!!t},enabled:(e,t=!1)=>{let i=f(`${e.toUpperCase()}_ENABLED`);null==i&&(i=JSON.stringify(t));return"true"===`${i}`.toLowerCase()},get:I,getHublet:L,getInternal:S,getShort:A,isProd:y,isQa:R,ifHublet:P,normalize:v,set:O,setDebug:(e,t=!0)=>{if("string"==typeof e)try{t?localStorage.setItem(`${e.toUpperCase()}_DEBUG`,JSON.stringify(!0)):localStorage.removeItem(`${e.toUpperCase()}_DEBUG`)}catch(i){_(`${e.toUpperCase()}_DEBUG`,t||void 0)}else{t=null==e||e;try{t?localStorage.setItem("DEBUG",JSON.stringify(t)):localStorage.removeItem("DEBUG")}catch(e){_("DEBUG",t||void 0)}}}}};t.default=o(document.location);e.exports=t.default},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.getDomain=h;t.getDomainPrefix=g;t.getEnvPostfix=p;t.getHubletDomainPostfix=m;t.getHubletPostfix=d;t.getPathPrefix=E;t.getSubDomain=u;t.getTld=f;var n=s(i(109)),a=r(i(111));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(o=function(e){return e?i:t})(e)}function r(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=o(t);if(i&&i.has(e))return i.get(e);var s={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var r=n?Object.getOwnPropertyDescriptor(e,a):null;r&&(r.get||r.set)?Object.defineProperty(s,a,r):s[a]=e[a]}s.default=e;i&&i.set(e,s);return s}function c(e){return e&&e.hubletOverride?e.hubletOverride:n.default.getHublet()}function l(e){return e&&e.envOverride?e.envOverride:n.default.getShort()}function d(e){const t=c(e);return a.getHubletPostfix(t,e)}function u(e,t){const i=c(t);return a.getSubDomain(i,e,t)}function h(e){const t=c(e),i=l(e);return a.getDomain(t,i,e)}function p(e){const t=l(e);return a.getEnvPostfix(t,e)}function g(e){return a.getDomainPrefix(e)}function m(e){const t=c(e);return a.getHubletDomainPostfix(t,e)}function f(e){return a.getTld(e)}function E(e){return a.getPathPrefix(e)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getDomain=l;t.getDomainPrefix=u;t.getEnvPostfix=d;t.getHubletDomainPostfix=h;t.getHubletPostfix=r;t.getPathPrefix=g;t.getSubDomain=c;t.getTld=p;var s=o(i(112)),n=i(113);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(a=function(e){return e?i:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=a(t);if(i&&i.has(e))return i.get(e);var s={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var r=n?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(s,o,r):s[o]=e[o]}s.default=e;i&&i.set(e,s);return s}function r(e,t){const i=t&&t.hubletOverride?t.hubletOverride:e,n=t&&!0===t.hubletizeNa1;return i!==s.na1||n?`-${i}`:""}function c(e,t,i){if(i&&i.hubletPostfixLocation&&"domain"===i.hubletPostfixLocation)return t;t===n.Subdomains.APP_API&&(t=n.Subdomains.APP);return`${t}${r(e,i)}`}function l(e,t,i){return`${u(i)}${d(t,i)}${h(e,i)}`}function d(e,t){return"qa"===(t&&t.envOverride?t.envOverride:e)?"qa":""}function u(e){return e&&e.domainOverride?e.domainOverride:"hubspot"}function h(e,t){return t&&t.hubletPostfixLocation&&"domain"===t.hubletPostfixLocation?r(e,t):""}function p(e){return e&&e.tldOverride?e.tldOverride:"com"}function g(e){return e===n.Subdomains.APP_API?"/api":""}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.test2=t.na1=t.eu1=void 0;t.na1="na1",t.test2="test2",t.eu1="eu1"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Subdomains=void 0;t.Subdomains={APP:"app",APP_API:"app-api"}},function(e){"use strict";e.exports={mode:"compressed",staticDomainPrefix:"//static.hsappstatic.net",bender:{depVersions:{"conversations-embed":"static-1.26071","conversations-internal-schema":"static-1.12585","head-dlb":"static-1.4884","hs-test-utils":"static-1.7862","hubspot-url-utils":"static-1.4009",HubStyleTokens:"static-2.11298",I18n:"static-7.1587","jasmine-runner":"static-1.6326",quartz:"static-1.6806",react:"static-7.182",sinon:"static-1.9",StyleGuideUI:"static-3.485","webpack-env":"static-1.54","visitor-ui-component-library":"static-1.5988",enviro:"static-4.416","hs-promise-rejection-tracking":"static-1.5433",PortalIdParser:"static-2.377",raven:"static-3.5768","raven-hubspot":"static-1.6075","bend-plugin-trellis-migration":"static-1.3282",moment:"static-3.26","customer-data-email":"static-1.17771","cv-backend-services":"static-1.1519","hub-http":"static-1.6073",immutable:"static-2.19","immutable-less":"static-1.4510","quartz-config":"static-1.584","quartz-core":"static-1.6025",transmute:"static-2.85",HeadJS:"static-2.723","react-dom":"static-7.85","foundations-components":"static-1.7631","framer-motion":"static-1.68","hs-test-utils-bend-plugin":"static-1.2973",msw:"static-1.39","react-redux":"static-7.68",redux:"static-4.16","testing-library":"static-1.148","foundations-theming":"static-1.4267","i18n-data":"static-1.218","metrics-js":"static-1.9495","moment-timezone":"static-5.79","react-utils":"static-2.5227",jasmine:"static-4.4182",csstype:"static-1.50","hoist-non-react-statics":"static-3.9",PatternValidationJS:"static-1.437","react-aria":"static-1.62","styled-components":"static-2.86",UIComponents:"static-3.8245","visitor-ui-component-library-icons":"static-1.5799","bender-build-tools":"static-1.3005","apollo-dlb":"static-3.80","apollo-link-hub-http":"static-2.4507","apollo-stack-hubspot":"static-3.82",classnames:"static-2.10",cssUtils:"static-1.752","customer-data-objects":"static-1.7507","customer-data-ui-utilities":"static-1.9680","data-fetching-client":"static-1.9533",FileManagerCore:"static-1.38582",FileManagerLib:"static-1.38723","foundations-assets":"static-1.4697",graphql:"static-1.78","hs-promise-utils":"static-1.5449","hubspot-apollo-client":"static-1.4735",icons:"static-2.630","react-immutable-proptypes":"static-2.8","react-immutable-render-mixin":"static-1.9","react-input-autosize":"static-2.17","react-select-plus":"static-1.65","react-virtualized":"static-2.95","rpc-client-utils":"static-1.4497",salesImages:"static-1.522","timezone-utils":"static-2.5100","ui-gdpr-components":"static-1.10204","ts-schema":"static-1.3957","hs-lodash":"static-4.45",immer:"static-1.33",dispatcher:"static-1.133","general-store":"static-6.20","hub-http-janus":"static-1.808","hubspotter-http":"static-1.4530","mobile-manifest-mixins":"static-1.498","module-federation":"static-1.19","quartz-auth":"static-1.481","quartz-head":"static-1.471","quartz-i18n":"static-1.481","quartz-routing":"static-1.236","quartz-test":"static-1.481","quartz-tracking":"static-1.185","quick-fetch":"static-1.3790","react-rhumb":"static-1.16506","ui-fonts":"static-1.560","usage-tracker-container":"static-1.7181","usage-tracker-core":"static-1.7041","bend-plugin-foundations-components":"static-1.3900","floating-ui":"static-1.52","foundations-theming-specialty":"static-1.1983","hs-story-utils":"static-1.9282","tanstack-table":"static-1.51","trellis-assets":"static-1.1361","ui-images":"static-2.1112","bend-plugin-foundations-theming":"static-1.2750","foundations-theming-base":"static-1.3252",stylex:"static-1.28",HubStyle:"static-2.11606",sassPrefix:"static-1.153","inbound-db-properties-service-client":"static-1.3723","property-translator":"static-1.5266","react-dnd-compat":"static-1.4476","fast-json-stable-stringify":"static-1.4","ai-components-ui-library":"static-1.8523","audio-components":"static-1.5692",cropperjs:"static-1.10","file-manager-components":"static-1.23083",FileManagerImages:"static-1.36234","foundations-components-legacy":"static-1.656",immerable:"static-1.4010","redux-toolkit":"static-1.7",reselect:"static-2.16","ui-universal-auth":"static-1.8777",urlinator:"static-1.4387","video-components":"static-1.12761","video-data-lib":"static-1.34416","video-embed":"static-1.35250","redux-thunk":"static-2.43","hubspot-apollo-cache":"static-1.194","hub-http-shared-msw-handlers":"static-1.9618","hubspotter-http-shared-msw-handlers":"static-1.9616",history:"static-4.47","react-router-dom":"static-5.26","usage-tracker-session-replay":"static-1.4877","react-dnd":"static-5.6","react-dnd-html5-backend":"static-5.6",autolinker:"static-3.11","chatspot-core":"static-1.20566","chirp-fetch":"static-1.1739",ContentUtils:"static-1.67801","copilot-toolkit":"static-1.10684",sanitize:"static-1.4330","sanitize-text":"static-1.8001","content-assistance-lib":"static-1.7528","usage-tracker":"static-1.7191","ui-addon-iframeable":"static-1.8903","video-components-external":"static-1.10758","unified-auth-core-lib":"static-1.572","content-icons-ui":"static-1.2176","social-insights-client-types":"static-1.21543",SharedI18nStrings:"static-1.180",outpost:"static-1.4056","amplitude-session-replay-browser":"static-1.56","markdown-it":"static-1.6","cms-field-types":"static-1.4665","integrations-lib":"static-1.15610",underscore:"static-1.8","magpie-lib":"static-1.5450","magpie-types":"static-1.4910","simple-logging-lib":"static-1.2906",superstore:"static-1.4625","ui-addon-video-player":"static-1.8552","ui-coaching-tips":"static-1.28099","navigation-messaging":"static-1.6785","content-media-composition-data-lib":"static-1.11687","content-media-compositions":"static-2.15694","idb-keyval":"static-1.40","media-bridge-lib":"static-1.18666",fsm:"static-1.3586","flux-actions":"static-1.316","frontend-preferences-client":"static-1.7780","integrations-error-boundary-lib":"static-1.13025","integrations-tracking-lib":"static-1.5446","laboratory-lib":"static-3.7015","native-integrations-shared-strings":"static-1.7643","redux-observable":"static-1.11",ReduxMessenger:"static-2.10230",rxjs:"static-5.10","ui-addon-i18n":"static-1.11000","ui-shepherd-react":"static-3.10002","reactive-lib":"static-1.581","growth-onboarding-feedback-components":"static-1.6437","hls.js":"static-1.35","js-cookie":"static-1.18","universal-page-editor-lib":"static-1.2857","foundations-components-test-utils":"static-1.5114","react-dlb":"static-1.74","crm-record-cards-service-types":"static-1.3494","framework-data-schema-resolvers":"static-1.6729","location-customization-utils-lib":"static-1.8747","batch-promise":"static-1.1407","conditional-properties-service-client":"static-1.3675","crm-pipelines-api-client-types":"static-1.4017","framework-builder-read-service-client":"static-1.3885","framework-data-schema-quick-fetch":"static-1.6634","inbound-db-meta-service-client":"static-1.3472","multi-currency-client-types":"static-1.3567","persist-promise":"static-1.3564"},depPathPrefixes:{"conversations-embed":"/conversations-embed/static-1.26071","conversations-internal-schema":"/conversations-internal-schema/static-1.12585","head-dlb":"/head-dlb/static-1.4884","hs-test-utils":"/hs-test-utils/static-1.7862","hubspot-url-utils":"/hubspot-url-utils/static-1.4009",HubStyleTokens:"/HubStyleTokens/static-2.11298",I18n:"/I18n/static-7.1587","jasmine-runner":"/jasmine-runner/static-1.6326",quartz:"/quartz/static-1.6806",react:"/react/static-7.182",sinon:"/sinon/static-1.9",StyleGuideUI:"/StyleGuideUI/static-3.485","webpack-env":"/webpack-env/static-1.54","visitor-ui-component-library":"/visitor-ui-component-library/static-1.5988",enviro:"/enviro/static-4.416","hs-promise-rejection-tracking":"/hs-promise-rejection-tracking/static-1.5433",PortalIdParser:"/PortalIdParser/static-2.377",raven:"/raven/static-3.5768","raven-hubspot":"/raven-hubspot/static-1.6075","bend-plugin-trellis-migration":"/bend-plugin-trellis-migration/static-1.3282",moment:"/moment/static-3.26","customer-data-email":"/customer-data-email/static-1.17771","cv-backend-services":"/cv-backend-services/static-1.1519","hub-http":"/hub-http/static-1.6073",immutable:"/immutable/static-2.19","immutable-less":"/immutable-less/static-1.4510","quartz-config":"/quartz-config/static-1.584","quartz-core":"/quartz-core/static-1.6025",transmute:"/transmute/static-2.85",HeadJS:"/HeadJS/static-2.723","react-dom":"/react-dom/static-7.85","foundations-components":"/foundations-components/static-1.7631","framer-motion":"/framer-motion/static-1.68","hs-test-utils-bend-plugin":"/hs-test-utils-bend-plugin/static-1.2973",msw:"/msw/static-1.39","react-redux":"/react-redux/static-7.68",redux:"/redux/static-4.16","testing-library":"/testing-library/static-1.148","foundations-theming":"/foundations-theming/static-1.4267","i18n-data":"/i18n-data/static-1.218","metrics-js":"/metrics-js/static-1.9495","moment-timezone":"/moment-timezone/static-5.79","react-utils":"/react-utils/static-2.5227",jasmine:"/jasmine/static-4.4182",csstype:"/csstype/static-1.50","hoist-non-react-statics":"/hoist-non-react-statics/static-3.9",PatternValidationJS:"/PatternValidationJS/static-1.437","react-aria":"/react-aria/static-1.62","styled-components":"/styled-components/static-2.86",UIComponents:"/UIComponents/static-3.8245","visitor-ui-component-library-icons":"/visitor-ui-component-library-icons/static-1.5799","bender-build-tools":"/bender-build-tools/static-1.3005","apollo-dlb":"/apollo-dlb/static-3.80","apollo-link-hub-http":"/apollo-link-hub-http/static-2.4507","apollo-stack-hubspot":"/apollo-stack-hubspot/static-3.82",classnames:"/classnames/static-2.10",cssUtils:"/cssUtils/static-1.752","customer-data-objects":"/customer-data-objects/static-1.7507","customer-data-ui-utilities":"/customer-data-ui-utilities/static-1.9680","data-fetching-client":"/data-fetching-client/static-1.9533",FileManagerCore:"/FileManagerCore/static-1.38582",FileManagerLib:"/FileManagerLib/static-1.38723","foundations-assets":"/foundations-assets/static-1.4697",graphql:"/graphql/static-1.78","hs-promise-utils":"/hs-promise-utils/static-1.5449","hubspot-apollo-client":"/hubspot-apollo-client/static-1.4735",icons:"/icons/static-2.630","react-immutable-proptypes":"/react-immutable-proptypes/static-2.8","react-immutable-render-mixin":"/react-immutable-render-mixin/static-1.9","react-input-autosize":"/react-input-autosize/static-2.17","react-select-plus":"/react-select-plus/static-1.65","react-virtualized":"/react-virtualized/static-2.95","rpc-client-utils":"/rpc-client-utils/static-1.4497",salesImages:"/salesImages/static-1.522","timezone-utils":"/timezone-utils/static-2.5100","ui-gdpr-components":"/ui-gdpr-components/static-1.10204","ts-schema":"/ts-schema/static-1.3957","hs-lodash":"/hs-lodash/static-4.45",immer:"/immer/static-1.33",dispatcher:"/dispatcher/static-1.133","general-store":"/general-store/static-6.20","hub-http-janus":"/hub-http-janus/static-1.808","hubspotter-http":"/hubspotter-http/static-1.4530","mobile-manifest-mixins":"/mobile-manifest-mixins/static-1.498","module-federation":"/module-federation/static-1.19","quartz-auth":"/quartz-auth/static-1.481","quartz-head":"/quartz-head/static-1.471","quartz-i18n":"/quartz-i18n/static-1.481","quartz-routing":"/quartz-routing/static-1.236","quartz-test":"/quartz-test/static-1.481","quartz-tracking":"/quartz-tracking/static-1.185","quick-fetch":"/quick-fetch/static-1.3790","react-rhumb":"/react-rhumb/static-1.16506","ui-fonts":"/ui-fonts/static-1.560","usage-tracker-container":"/usage-tracker-container/static-1.7181","usage-tracker-core":"/usage-tracker-core/static-1.7041","bend-plugin-foundations-components":"/bend-plugin-foundations-components/static-1.3900","floating-ui":"/floating-ui/static-1.52","foundations-theming-specialty":"/foundations-theming-specialty/static-1.1983","hs-story-utils":"/hs-story-utils/static-1.9282","tanstack-table":"/tanstack-table/static-1.51","trellis-assets":"/trellis-assets/static-1.1361","ui-images":"/ui-images/static-2.1112","bend-plugin-foundations-theming":"/bend-plugin-foundations-theming/static-1.2750","foundations-theming-base":"/foundations-theming-base/static-1.3252",stylex:"/stylex/static-1.28",HubStyle:"/HubStyle/static-2.11606",sassPrefix:"/sassPrefix/static-1.153","inbound-db-properties-service-client":"/inbound-db-properties-service-client/static-1.3723","property-translator":"/property-translator/static-1.5266","react-dnd-compat":"/react-dnd-compat/static-1.4476","fast-json-stable-stringify":"/fast-json-stable-stringify/static-1.4","ai-components-ui-library":"/ai-components-ui-library/static-1.8523","audio-components":"/audio-components/static-1.5692",cropperjs:"/cropperjs/static-1.10","file-manager-components":"/file-manager-components/static-1.23083",FileManagerImages:"/FileManagerImages/static-1.36234","foundations-components-legacy":"/foundations-components-legacy/static-1.656",immerable:"/immerable/static-1.4010","redux-toolkit":"/redux-toolkit/static-1.7",reselect:"/reselect/static-2.16","ui-universal-auth":"/ui-universal-auth/static-1.8777",urlinator:"/urlinator/static-1.4387","video-components":"/video-components/static-1.12761","video-data-lib":"/video-data-lib/static-1.34416","video-embed":"/video-embed/static-1.35250","redux-thunk":"/redux-thunk/static-2.43","hubspot-apollo-cache":"/hubspot-apollo-cache/static-1.194","hub-http-shared-msw-handlers":"/hub-http-shared-msw-handlers/static-1.9618","hubspotter-http-shared-msw-handlers":"/hubspotter-http-shared-msw-handlers/static-1.9616",history:"/history/static-4.47","react-router-dom":"/react-router-dom/static-5.26","usage-tracker-session-replay":"/usage-tracker-session-replay/static-1.4877","react-dnd":"/react-dnd/static-5.6","react-dnd-html5-backend":"/react-dnd-html5-backend/static-5.6",autolinker:"/autolinker/static-3.11","chatspot-core":"/chatspot-core/static-1.20566","chirp-fetch":"/chirp-fetch/static-1.1739",ContentUtils:"/ContentUtils/static-1.67801","copilot-toolkit":"/copilot-toolkit/static-1.10684",sanitize:"/sanitize/static-1.4330","sanitize-text":"/sanitize-text/static-1.8001","content-assistance-lib":"/content-assistance-lib/static-1.7528","usage-tracker":"/usage-tracker/static-1.7191","ui-addon-iframeable":"/ui-addon-iframeable/static-1.8903","video-components-external":"/video-components-external/static-1.10758","unified-auth-core-lib":"/unified-auth-core-lib/static-1.572","content-icons-ui":"/content-icons-ui/static-1.2176","social-insights-client-types":"/social-insights-client-types/static-1.21543",SharedI18nStrings:"/SharedI18nStrings/static-1.180",outpost:"/outpost/static-1.4056","amplitude-session-replay-browser":"/amplitude-session-replay-browser/static-1.56","markdown-it":"/markdown-it/static-1.6","cms-field-types":"/cms-field-types/static-1.4665","integrations-lib":"/integrations-lib/static-1.15610",underscore:"/underscore/static-1.8","magpie-lib":"/magpie-lib/static-1.5450","magpie-types":"/magpie-types/static-1.4910","simple-logging-lib":"/simple-logging-lib/static-1.2906",superstore:"/superstore/static-1.4625","ui-addon-video-player":"/ui-addon-video-player/static-1.8552","ui-coaching-tips":"/ui-coaching-tips/static-1.28099","navigation-messaging":"/navigation-messaging/static-1.6785","content-media-composition-data-lib":"/content-media-composition-data-lib/static-1.11687","content-media-compositions":"/content-media-compositions/static-2.15694","idb-keyval":"/idb-keyval/static-1.40","media-bridge-lib":"/media-bridge-lib/static-1.18666",fsm:"/fsm/static-1.3586","flux-actions":"/flux-actions/static-1.316","frontend-preferences-client":"/frontend-preferences-client/static-1.7780","integrations-error-boundary-lib":"/integrations-error-boundary-lib/static-1.13025","integrations-tracking-lib":"/integrations-tracking-lib/static-1.5446","laboratory-lib":"/laboratory-lib/static-3.7015","native-integrations-shared-strings":"/native-integrations-shared-strings/static-1.7643","redux-observable":"/redux-observable/static-1.11",ReduxMessenger:"/ReduxMessenger/static-2.10230",rxjs:"/rxjs/static-5.10","ui-addon-i18n":"/ui-addon-i18n/static-1.11000","ui-shepherd-react":"/ui-shepherd-react/static-3.10002","reactive-lib":"/reactive-lib/static-1.581","growth-onboarding-feedback-components":"/growth-onboarding-feedback-components/static-1.6437","hls.js":"/hls.js/static-1.35","js-cookie":"/js-cookie/static-1.18","universal-page-editor-lib":"/universal-page-editor-lib/static-1.2857","foundations-components-test-utils":"/foundations-components-test-utils/static-1.5114","react-dlb":"/react-dlb/static-1.74","crm-record-cards-service-types":"/crm-record-cards-service-types/static-1.3494","framework-data-schema-resolvers":"/framework-data-schema-resolvers/static-1.6729","location-customization-utils-lib":"/location-customization-utils-lib/static-1.8747","batch-promise":"/batch-promise/static-1.1407","conditional-properties-service-client":"/conditional-properties-service-client/static-1.3675","crm-pipelines-api-client-types":"/crm-pipelines-api-client-types/static-1.4017","framework-builder-read-service-client":"/framework-builder-read-service-client/static-1.3885","framework-data-schema-quick-fetch":"/framework-data-schema-quick-fetch/static-1.6634","inbound-db-meta-service-client":"/inbound-db-meta-service-client/static-1.3472","multi-currency-client-types":"/multi-currency-client-types/static-1.3567","persist-promise":"/persist-promise/static-1.3564"},bundlingPackage:"conversations-embed",bundlingPackageVersion:"static-1.26071",project:"conversations-embed",staticDomain:"//static.hsappstatic.net",staticDomainPrefix:"//static.hsappstatic.net"}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getChatflowTagFromQueryParams=i;function i(){return new URL(window.location.href).searchParams.get("chatflow")||""}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.withValuesConvertedToString=t.serializeQueryParameters=void 0;const i=e=>Object.keys(e).map((t=>[t,`${e[t]}`]));t.withValuesConvertedToString=i;const s=e=>new URLSearchParams(i(e)).toString();t.serializeQueryParameters=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getPerfAttributes=r;var s=i(64),n=i(118),a=i(119),o=i(120);function r({portalId:e,messagesEnv:t}){try{const i="qa"===t?"qa":"",r=(0,o.buildNonCmsScriptLoaderPath)({env:i,portalId:e}),c=(0,n.buildCmsScriptLoaderSrc)({portalId:e}),l=(0,a.buildCmsScriptLoaderPath)({portalId:e}),d=`https://js.usemessages${i}.com/conversations-embed.js`,u=performance.getEntries().map((({name:e})=>e)),h=u.find((e=>e.includes(r)))||r,p=u.find((e=>e.includes(l)))||l,g=Boolean(document.querySelector(`script[src^="${c}"]`));performance.measure(s.EXECUTION_MEASUREMENT_PRE_DELAY,s.START_MARK_PRE_DELAY,s.END_MARK_PRE_DELAY);performance.measure(s.EXECUTION_MEASUREMENT_POST_DELAY,s.START_MARK_POST_DELAY,s.END_MARK_POST_DELAY);const m=performance.getEntriesByName(s.EXECUTION_MEASUREMENT_PRE_DELAY)[0],f=performance.getEntriesByName(s.EXECUTION_MEASUREMENT_POST_DELAY)[0],E=m.duration+f.duration,_=performance.getEntriesByName(h)[0],b=performance.getEntriesByName(p)[0],v=(g?b:_).duration,T=performance.getEntriesByName(d)[0].duration;if(E&&v&&T)return{iframeLoadTime:E,scriptLoaderScriptTime:v,embedScriptTime:T}}catch(e){}return null}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.buildCmsScriptLoaderSrc=void 0;const i=({portalId:e})=>`/hs/scriptloader/${e}.js`;t.buildCmsScriptLoaderSrc=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.buildCmsScriptLoaderPath=void 0;var s=i(118);const n=({portalId:e})=>{const t=(0,s.buildCmsScriptLoaderSrc)({portalId:e});return`${document.location.origin}${t}`};t.buildCmsScriptLoaderPath=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.buildNonCmsScriptLoaderPath=void 0;const i=({env:e="",portalId:t})=>`${document.location.protocol}//js.hs-scripts${e}.com/${t}.js`;t.buildNonCmsScriptLoaderPath=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isInSDK=t.hasMinimumMobileSdkVersion=t.SDK_USER_AGENT_REGEX=void 0;const i=t.SDK_USER_AGENT_REGEX=/Hub[sS]pot ?Mobile ?SDK/,s=/\/(\d+\.\d+\.\d+)/,n=new RegExp(i.source+s.source),a=()=>i.test(window.navigator.userAgent);t.isInSDK=a;const o=({minMajor:e,minMinor:t,minPatch:i})=>{const s=window.navigator.userAgent.match(n);if(!s)return!1;const[,a]=s,[o,r,c]=a.split(".").map(Number);return o>e||o===e&&r>t||o===e&&r===t&&c>=i};t.hasMinimumMobileSdkVersion=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.hasRequiredFeatures=s;function i(){function e(){}try{e.toString=function(){};return!0}catch(e){return!1}}function s(e){return["function"==typeof e.WeakMap,"function"==typeof e.requestAnimationFrame,"function"==typeof e.URLSearchParams,"function"==typeof Object.fromEntries,i()].every((e=>e))}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ErrorLogger=void 0;var s=i(124),n=i(104),a=i(112);const o="7ab6425e7a7c4b01b71fdb51e76514bf",r=4;function c(){return Date.now()/1e3}function l(){const e=window.crypto||window.msCrypto;if(void 0!==typeof e&&e.getRandomValues){const t=new Uint16Array(8);e.getRandomValues(t);t[3]=4095&t[3]|16384;t[4]=16383&t[4]|32768;const i=function(e){let t=e.toString(16);for(;t.length<4;)t=`0${t}`;return t};return i(t[0])+i(t[1])+i(t[2])+i(t[3])+i(t[4])+i(t[5])+i(t[6])+i(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function d(e,t){const i=new XMLHttpRequest;i.addEventListener("readystatechange",(()=>{i.readyState===r&&i.status>=300&&console.warn("Failed logging HSConversations error")}));i.open("POST",e);i.setRequestHeader("Content-Type","text/plain;charset=UTF-8");i.send(JSON.stringify(t))}class u{constructor(){const e=(0,n.getMessagesEnv)(),t=(0,n.getMessagesHublet)();this.config={environment:e,tags:{portalId:(0,n.getPortalId)(),env:e,project:"conversations-embed"},logger:"javascript",platform:"javascript",request:{headers:{"User-Agent":navigator.userAgent},url:window.location.href}};const i=null==t||t===a.na1?"":`-${t}`,s=null==e||"prod"===e?"":"qa",r=`sentry_version=7&sentry_client=raven-js%2F3.19.1&sentry_key=${o}`;this.sentryUrl=`https://exceptions${i}.hubspot${s}.com/v2/api/store/?${r}`;this.logError=this.logError.bind(this)}logError(e){const t=c();d(this.sentryUrl,Object.assign({},this.config,{event_id:l(),transaction:"conversations embed error",level:"error",exception:{values:[{mechanism:{handled:!0,type:"generic"},type:e,value:e}]},timestamp:t}))}captureErrors(e){try{e()}catch(e){const t=c();if(e instanceof Error&&"Aborting: redirection in progress"!==e.message){const i=(0,s.computeStackTrace)(e);d(this.sentryUrl,Object.assign({},this.config,{event_id:l(),transaction:i.stack[0].filename,level:"error",exception:{values:[{mechanism:{handled:!0,type:"generic"},type:i.name,value:i.message,stacktrace:{frames:i.stack.reverse()}}]},timestamp:t}))}throw e}}}t.ErrorLogger=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.computeStackTrace=c;const i="?";function s(){return"undefined"==typeof document||null==document.location?"":document.location.href}function n(){return"undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:`${document.location.protocol}//${document.location.hostname}${document.location.port?`:${document.location.port}`:""}`}function a(e){if(void 0===e.stack||!e.stack)return null;const t=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack||[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,r=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,l=e.stack.split("\n"),d=[];let u,h,p;for(let s=0,g=l.length;s eval")>-1&&(u=r.exec(h[3]))){h[3]=u[1];h[4]=u[2];h[5]=null}else 0!==s||h[5]||void 0===e.columnNumber||(d[0].column=e.columnNumber+1);p={filename:h[3],function:h[1]||i,args:h[2]?h[2].split(","):[],lineno:h[4]?+h[4]:null,colno:h[5]?+h[5]:null}}!p.function&&p.line&&(p.function=i);if(p.filename&&"blob:"===p.filename.substr(0,5)){const e=new XMLHttpRequest;e.open("GET",p.filename,!1);e.send(null);if(200===e.status){let t=e.responseText||"";t=t.slice(-300);const i=t.match(/\/\/# sourceMappingURL=(.*)$/);if(i){let e=i[1];"~"===e.charAt(0)&&(e=n()+e.slice(1));p.url=e.slice(0,-4)}}}d.push(p)}return d.length?{name:e.name,message:e.message,url:s(),stack:d}:null}function o(e,t,s){const n={filename:t,lineno:s};if(n.filename&&n.lineno){e.incomplete=!1;n.function||(n.function=i);if(e.stack.length>0&&e.stack[0].filename===n.filename){if(e.stack[0].lineno===n.lineno)return!1;if(!e.stack[0].lineno&&e.stack[0].function===n.function){e.stack[0].lineno=n.lineno;return!1}}e.stack.unshift(n);e.partial=!0;return!0}e.incomplete=!0;return!1}function r(e,t){const n=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,a=[],l={};let d,u,h=!1;for(let e=r.caller;e&&!h;e=e.caller)if(e!==c){u={filename:null,function:i,lineno:null,colno:null};e.name?u.function=e.name:(d=n.exec(e.toString()))&&(u.function=d[1]);if(void 0===u.function)try{u.function=d.input.substring(0,d.input.indexOf("{"))}catch(e){}l[`${e}`]?h=!0:l[`${e}`]=!0;a.push(u)}t&&a.splice(0,t);const p={name:e.name,message:e.message,filename:s(),stack:a};o(p,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description);return p}function c(e,t){let i=null;t=null==t?0:+t;try{i=a(e);if(i)return i}catch(e){}try{i=r(e,t+1);if(i)return i}catch(e){}return{name:e.name,message:e.message,filename:s()}}}],t={};function i(s){var n=t[s];if(void 0!==n)return n.exports;var a=t[s]={exports:{}};e[s].call(a.exports,a,a.exports,i);return a.exports}!function(){"use strict";var e=i(1);(0,i(86).markStartPreDelay)();const t=()=>{(0,e.startOnceReady)();document.removeEventListener("DOMContentLoaded",t)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):(0,e.startOnceReady)()}()}();
//# sourceMappingURL=//static.hsappstatic.net/conversations-embed/static-1.26071/bundles/project.js.map