(window.webpackJsonp=window.webpackJsonp||[]).push([[37,5],{"9Xg1":function(e,t,n){"use strict";n.r(t);var r=n("nfbA"),o=n("O94r"),a=n.n(o),s=n("+Kbs"),i=n("s8DI"),l=n("TDUE"),c=n("ERkP"),u=n.n(c),p=n("ADGC"),d=n("oFTC"),f=(n("bXQI"),function ToggleTip(e){var t,n,r,o=e.content,a=e.toggle,s=e.showOnClick,f=void 0!==s&&s,v=e.trackContentExposed,g=(e.className,e.showOnMouseEnter),m=void 0===g||g,b=e.showOnMouseLeave,h=void 0!==b&&b,y=e.ariaLabel,w=e.id,M=Object(c.useState)(!1),A=Object(i.a)(M,2),E=A[0],O=A[1],C=Object(c.useRef)(null),x=Object(c.useRef)(null),j=null===x||void 0===x?void 0:null===(t=x.current)||void 0===t?void 0:t.getBoundingClientRect(),I=null===(n=window)||void 0===n?void 0:n.innerWidth,P=(null===(r=window)||void 0===r?void 0:r.innerHeight)-(null===j||void 0===j?void 0:j.bottom)<186,k=function handleEscape(e){C.current&&"Escape"===e.key&&(C.current.style.opacity=0,O(!1))};Object(d.a)(C,function(e){C.current.style.opacity=0,O(!1)}),Object(c.useEffect)(function(){return document.addEventListener("keydown",k),function(){document.removeEventListener("keydown",k)}},[]);var L=function shouldShowContent(e){O(e),E&&v&&Object(l.d)(v,{messageId:w})},_="transparent transparent white transparent",T="calc(100% - 20px)";return P&&(_="white transparent transparent transparent",T="calc(100% - 11px)"),u.a.createElement("button",{className:"toggletip",ref:x,onClick:function onClick(){return L(f)},onMouseEnter:function onMouseEnter(){return Object(p.d)(!0)?null:L(m)},tabIndex:0,"aria-live":"polite","aria-label":y,"aria-roledescription":""},a,u.a.createElement("div",{className:"toggletip-arrow",style:{display:E?"block":"none",borderColor:_,bottom:T}}),E?function renderToggleTooltip(){if(x.current){var e="50%",t=130-j.left,n=j.right+130-I;return t>0&&(e="calc(100% + "+(t+20)+"px)"),n>0&&(e="calc(100% - "+(n+20)+"px)"),u.a.createElement("div",{className:"toggletip-content",ref:C,onBlur:function onBlur(){return O(!1)},onMouseLeave:function onMouseLeave(){return L(h)},role:"presentation",style:{top:P?"":"17px",left:e}},o)}}():null)}),v=n("58kB"),g=n("4bA0"),m=n.n(g),b=n("da4L"),h=n("LVcX"),y=n("oPI6"),w=n("uDfI"),M=n("PjZB"),A=n("gG69"),E=n("y0on"),O=n("0lfv"),C=n("EQxi"),x=function renderToggletipContent(e){var t=e.sourceType,n=e.sourceUrl,r=e.sourceTitle,o=e.id,a={pdf:s.q,docx:s.l}[t]||s.t;return u.a.createElement(u.a.Fragment,null,function getSourceLinkContent(e){e.sourceType;var t=e.sourceUrl,n=e.sourceTitle,r=e.Icon,o=e.id;if(!t&&!n)return null;var a="The hyperlink title is ".concat(n||t," click to open in a new tab");return u.a.createElement("a",{"aria-label":a,href:t,target:"_blank",rel:"noopener noreferrer",className:"drift-widget-message--source-link",style:{display:"flex",alignItems:"center",gap:"4px",width:"100%",overflow:"hidden",whiteSpace:"normal",wordWrap:"break-word",fontWeight:"bold",fontFamily:"Arial",color:"#105CAE",textDecoration:"none",fontSize:"small"},onClick:function trackLinkClick(){Object(l.d)(A.c.BIONIC_SOURCE_LINK_CLICKED,{messageId:o})}},u.a.createElement("div",{className:"drift-widget-message--source",style:{display:"flex",alignItems:"flex-start"}},u.a.createElement(r,{width:"18px",height:"18px"}),u.a.createElement("span",{className:"drift-widget-message--source-title",style:{overflow:"hidden",textOverflow:"ellipsis",marginLeft:"4px",flex:"1"}},n||t)))}({sourceType:t,sourceUrl:n,sourceTitle:r,Icon:a,id:o}),n&&u.a.createElement("span",{className:"drift-widget-message--source-url",style:{color:"#606E78",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginLeft:"23px",fontFamily:"Arial",fontSize:"small",lineHeight:"1",display:"block"}},n))},j=/[/.](gif)$/i,I=function HtmlMessage(e){var t,n=e.body,o=e.attributes,i=e.isLastMessage,l=e.authorId,p=e.isLastGroup,d=e.style,b=void 0===d?{}:d,I=e.resolveMessageHeight,P=void 0===I?function(){}:I,k=e.className,L=e.viewerRecipientStatus,_=e.authorType,T=e.id;Object(c.useLayoutEffect)(function(){P()},[P,n]);var R=Object(c.useRef)(null),S=Object(O.n)(),N=Object(v.a)(l).recipient,D=Object(c.useMemo)(function(){return{parsedBody:m()(n,{replace:function replace(e){if("img"===e.name){var t,n,o,a,s=null!==(t=null===(n=e.attribs)||void 0===n?void 0:n.alt)&&void 0!==t?t:"",i=null!==(o=null===(a=e.attribs)||void 0===a?void 0:a.src)&&void 0!==o?o:"",l=new RegExp(j).test(i),p=Object(r.a)(Object(r.a)({},Object(g.attributesToProps)(e.attribs)),{},{onLoad:P});return l&&(p["data-giffer"]=i,p["data-giffer-alt"]=s),u.a.createElement("img",p)}if("text"===e.type){var d,f;if(e.parentNode&&"a"!==e.parentNode.name){var v=Object(C.e)(e.data);return u.a.createElement(u.a.Fragment,null,m()(v))}var b=null!==(d=null===(f=e.data)||void 0===f?void 0:f.split(/[\r\n]+/))&&void 0!==d?d:[];if(b.length>1)return u.a.createElement(u.a.Fragment,null,b.filter(Boolean).map(function(e,t){return u.a.createElement(c.Fragment,{key:t},e,u.a.createElement("br",null))}))}else if("a"===e.name){var h={href:e.attribs.href,target:"_blank",rel:"noopener noreferrer"};return u.a.createElement("a",h,Object(g.domToReact)(e.children))}}})}},[n,P]).parsedBody,U=i&&p&&_===M.b.USER&&L!==M.f.READ,W=U?Object(E.a)(N.name,o&&""!==o.preview?o.preview:n):null,B=Object(w.c)(function(e){return Object(h.a)(!1,["embed","configuration","theme","sendBionicSourceEnabled"],e)}),F=(null===o||void 0===o?void 0:o.bionicSources)&&o.bionicSources.length>0,G=F?o.bionicSources[0]:null,z=null===G||void 0===G?void 0:G.title,H=null===G||void 0===G?void 0:G.source_url,Q=null===G||void 0===G?void 0:G.source_type,V=B&&F&&G&&(z||H);return u.a.createElement("div",{className:a()("drift-widget-message--box drift-widget-message--HTML",k),style:b},U&&u.a.createElement(y.b,{message:W,"aria-live":"polite"}),u.a.createElement("span",{tabIndex:S?0:-1,ref:R},D),V&&u.a.createElement(f,{toggle:u.a.createElement(s.c,{width:23,height:15}),content:x({sourceType:Q,sourceUrl:H,sourceTitle:z,id:T}),trackContentExposed:A.c.BIONIC_SOURCE_TOGGLE_CLICKED,id:T,showOnClick:!0,showOnMouseEnter:!0,showOnMouseLeave:!1,maxContentWidth:null===R||void 0===R?void 0:null===(t=R.current)||void 0===t?void 0:t.offsetWidth,ariaLabel:"This message cites the sources of the generated message. Press enter and then tab to view the source."}))};t.default=function(e){return Object(b.h)(e.body)?null:u.a.createElement(I,e)}},QkDh:function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function whatwgRNG(){return n(r),r}}else{var o=new Array(16);e.exports=function mathRNG(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},"W+sf":function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function bytesToUuid(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},Wkzb:function(e,t,n){},bXQI:function(e,t,n){},gf09:function(e,t,n){var r=n("QkDh"),o=n("W+sf");e.exports=function v4(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var i=0;i<16;++i)t[a+i]=s[i];return t||o(s)}},oPI6:function(e,t,n){"use strict";var r=n("ERkP"),o=n.n(r),a=(n("aWzz"),{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"}),s=function MessageBlock(e){var t=e.message,n=e["aria-live"];return o.a.createElement("div",{style:a,role:"log","aria-live":n},t||"")};s.propTypes={};var i=s;function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function Announcer(){var t,n;!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Announcer);for(var r=arguments.length,o=Array(r),a=0;a