var Purs_EntryPoints_DataLab_EmailContentOptimizer=(()=>{var Q3=Object.create;var Vf=Object.defineProperty;var K3=Object.getOwnPropertyDescriptor;var Y3=Object.getOwnPropertyNames;var X3=Object.getPrototypeOf,Z3=Object.prototype.hasOwnProperty;var t4=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ca=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),J1=(t,e)=>{for(var n in e)Vf(t,n,{get:e[n],enumerable:!0})},z1=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Y3(e))!Z3.call(t,a)&&a!==n&&Vf(t,a,{get:()=>e[a],enumerable:!(r=K3(e,a))||r.enumerable});return t};var Ad=(t,e,n)=>(n=t!=null?Q3(X3(t)):{},z1(e||!t||!t.__esModule?Vf(n,"default",{value:t,enumerable:!0}):n,t)),xd=t=>z1(Vf({},"__esModule",{value:!0}),t);var lm={};J1(lm,{Children:()=>k6,Component:()=>G6,Fragment:()=>Q6,PureComponent:()=>Z6,Suspense:()=>tI,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>q6,cloneElement:()=>B6,createContext:()=>J6,createElement:()=>z6,createRef:()=>j6,default:()=>va,forwardRef:()=>V6,isValidElement:()=>K6,lazy:()=>Y6,memo:()=>X6,useCallback:()=>eI,useContext:()=>nI,useDebugValue:()=>rI,useEffect:()=>aI,useImperativeHandle:()=>oI,useLayoutEffect:()=>uI,useMemo:()=>iI,useReducer:()=>lI,useRef:()=>cI,useState:()=>fI,version:()=>sI});var va,q6,k6,B6,G6,J6,z6,j6,V6,Q6,K6,Y6,X6,Z6,tI,eI,nI,rI,aI,oI,uI,iI,lI,cI,fI,sI,pu=t4(()=>{va=window.React,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:q6,Children:k6,cloneElement:B6,Component:G6,createContext:J6,createElement:z6,createRef:j6,forwardRef:V6,Fragment:Q6,isValidElement:K6,lazy:Y6,memo:X6,PureComponent:Z6,Suspense:tI,useCallback:eI,useContext:nI,useDebugValue:rI,useEffect:aI,useImperativeHandle:oI,useLayoutEffect:uI,useMemo:iI,useReducer:lI,useRef:cI,useState:fI,version:sI}=window.React});var Fy=Ca((qZ,Cy)=>{"use strict";var Ty=Object.getOwnPropertySymbols,pI=Object.prototype.hasOwnProperty,vI=Object.prototype.propertyIsEnumerable;function dI(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function _I(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(l){return e[l]});if(r.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(l){a[l]=l}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}Cy.exports=_I()?Object.assign:function(t,e){for(var n,r=dI(t),a,l=1;l{"use strict";var da=Fy(),Co=(pu(),xd(lm));function Ge(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;nHc;Hc++)Pn[Hc]=Hc+1;var Pn,Hc;Pn[15]=0;var gI=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ey=Object.prototype.hasOwnProperty,My={},Sy={};function By(t){return Ey.call(Sy,t)?!0:Ey.call(My,t)?!1:gI.test(t)?Sy[t]=!0:(My[t]=!0,!1)}function DI(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function yI(t,e,n,r){if(e===null||typeof e>"u"||DI(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function or(t,e,n,r,a,l,f){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=l,this.removeEmptyString=f}var On={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){On[t]=new or(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];On[e]=new or(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){On[t]=new or(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){On[t]=new or(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){On[t]=new or(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){On[t]=new or(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){On[t]=new or(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){On[t]=new or(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){On[t]=new or(t,5,!1,t.toLowerCase(),null,!1,!1)});var ym=/[\-:]([a-z])/g;function bm(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(ym,bm);On[e]=new or(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(ym,bm);On[e]=new or(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(ym,bm);On[e]=new or(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){On[t]=new or(t,1,!1,t.toLowerCase(),null,!1,!1)});On.xlinkHref=new or("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){On[t]=new or(t,1,!1,t.toLowerCase(),null,!0,!0)});var bI=/["'&<>]/;function si(t){if(typeof t=="boolean"||typeof t=="number")return""+t;t=""+t;var e=bI.exec(t);if(e){var n="",r,a=0;for(r=e.index;rfp))throw Error(Ge(301));if(t===Ba)if(cp=!0,t={action:n,next:null},du===null&&(du=new Map),n=du.get(e),n===void 0)du.set(e,t);else{for(e=n;e.next!==null;)e=e.next;e.next=t}}function cm(){}var vi=null,FI={readContext:function(t){var e=vi.threadID;return Gc(t,e),t[e]},useContext:function(t){pi();var e=vi.threadID;return Gc(t,e),t[e]},useMemo:Ay,useReducer:Ly,useRef:function(t){Ba=pi(),Me=wm();var e=Me.memoizedState;return e===null?(t={current:t},Me.memoizedState=t):e},useState:function(t){return Ly(zy,t)},useLayoutEffect:function(){},useCallback:function(t,e){return Ay(function(){return t},e)},useImperativeHandle:cm,useEffect:cm,useDebugValue:cm,useDeferredValue:function(t){return pi(),t},useTransition:function(){return pi(),[function(t){t()},!1]},useOpaqueIdentifier:function(){return(vi.identifierPrefix||"")+"R:"+(vi.uniqueID++).toString(36)},useMutableSource:function(t,e){return pi(),e(t._source)}},xy={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Ny(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var jy={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},EI=da({menuitem:!0},jy),Bc={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},MI=["Webkit","ms","Moz","O"];Object.keys(Bc).forEach(function(t){MI.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Bc[e]=Bc[t]})});var SI=/([A-Z])/g,II=/^ms-/,vu=Co.Children.toArray,fm=mI.ReactCurrentDispatcher,LI={listing:!0,pre:!0,textarea:!0},AI=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Py={},sm={};function xI(t){if(t==null)return t;var e="";return Co.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}var NI=Object.prototype.hasOwnProperty,PI={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Oy(t,e){if(t===void 0)throw Error(Ge(152,kc(e)||"Component"))}function OI(t,e,n){function r(f,p){var v=p.prototype&&p.prototype.isReactComponent,g=hI(p,e,n,v),d=[],D=!1,C={isMounted:function(){return!1},enqueueForceUpdate:function(){if(d===null)return null},enqueueReplaceState:function(ie,ne){D=!0,d=[ne]},enqueueSetState:function(ie,ne){if(d===null)return null;d.push(ne)}};if(v){if(v=new p(f.props,g,C),typeof p.getDerivedStateFromProps=="function"){var b=p.getDerivedStateFromProps.call(null,f.props,v.state);b!=null&&(v.state=da({},v.state,b))}}else if(Ba={},v=p(f.props,g,C),v=Gy(p,f.props,v,g),v==null||v.render==null){t=v,Oy(t,p);return}if(v.props=f.props,v.context=g,v.updater=C,C=v.state,C===void 0&&(v.state=C=null),typeof v.UNSAFE_componentWillMount=="function"||typeof v.componentWillMount=="function")if(typeof v.componentWillMount=="function"&&typeof p.getDerivedStateFromProps!="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&typeof p.getDerivedStateFromProps!="function"&&v.UNSAFE_componentWillMount(),d.length){C=d;var T=D;if(d=null,D=!1,T&&C.length===1)v.state=C[0];else{b=T?C[0]:v.state;var M=!0;for(T=T?1:0;T=p))throw Error(Ge(304));var v=new Uint16Array(p);for(v.set(f),Pn=v,Pn[0]=l+1,f=l;f=v.children.length){var g=v.footer;if(g!==""&&(this.previousWasTextNode=!1),this.stack.pop(),v.type==="select")this.currentSelectValue=null;else if(v.type!=null&&v.type.type!=null&&v.type.type.$$typeof===ip)this.popProvider(v.type);else if(v.type===lp){this.suspenseDepth--;var d=l.pop();if(f){f=!1;var D=v.fallbackFrame;if(!D)throw Error(Ge(303));this.stack.push(D),l[this.suspenseDepth]+="";continue}else l[this.suspenseDepth]+=d}l[this.suspenseDepth]+=g}else{var C=v.children[v.childIndex++],b="";try{b+=this.render(C,v.context,v.domNamespace)}catch(T){throw T!=null&&typeof T.then=="function"?Error(Ge(294)):T}l.length<=this.suspenseDepth&&l.push(""),l[this.suspenseDepth]+=b}}return l[0]}finally{fm.current=a,vi=r,Jy()}},e.render=function(n,r,a){if(typeof n=="string"||typeof n=="number")return a=""+n,a===""?"":this.makeStaticMarkup?si(a):this.previousWasTextNode?""+si(a):(this.previousWasTextNode=!0,si(a));if(r=OI(n,r,this.threadID),n=r.child,r=r.context,n===null||n===!1)return"";if(!Co.isValidElement(n)){if(n!=null&&n.$$typeof!=null)throw a=n.$$typeof,Error(a===pm?Ge(257):Ge(258,a.toString()));return n=vu(n),this.stack.push({type:null,domNamespace:a,children:n,childIndex:0,context:r,footer:""}),""}var l=n.type;if(typeof l=="string")return this.renderDOM(n,r,a);switch(l){case qy:case Hy:case vm:case dm:case hm:case up:return n=vu(n.props.children),this.stack.push({type:null,domNamespace:a,children:n,childIndex:0,context:r,footer:""}),"";case lp:throw Error(Ge(294));case Wy:throw Error(Ge(343))}if(typeof l=="object"&&l!==null)switch(l.$$typeof){case mm:Ba={};var f=l.render(n.props,n.ref);return f=Gy(l.render,n.props,f,n.ref),f=vu(f),this.stack.push({type:null,domNamespace:a,children:f,childIndex:0,context:r,footer:""}),"";case gm:return n=[Co.createElement(l.type,da({ref:n.ref},n.props))],this.stack.push({type:null,domNamespace:a,children:n,childIndex:0,context:r,footer:""}),"";case ip:return l=vu(n.props.children),a={type:n,domNamespace:a,children:l,childIndex:0,context:r,footer:""},this.pushProvider(n),this.stack.push(a),"";case _m:l=n.type,f=n.props;var p=this.threadID;return Gc(l,p),l=vu(f.children(l[p])),this.stack.push({type:n,domNamespace:a,children:l,childIndex:0,context:r,footer:""}),"";case $y:throw Error(Ge(338));case Dm:return l=n.type,f=l._init,l=f(l._payload),n=[Co.createElement(l,da({ref:n.ref},n.props))],this.stack.push({type:null,domNamespace:a,children:n,childIndex:0,context:r,footer:""}),""}throw Error(Ge(130,l==null?l:typeof l,""))},e.renderDOM=function(n,r,a){var l=n.type.toLowerCase();if(a===xy.html&&Ny(l),!Py.hasOwnProperty(l)){if(!AI.test(l))throw Error(Ge(65,l));Py[l]=!0}var f=n.props;if(l==="input")f=da({type:void 0},f,{defaultChecked:void 0,defaultValue:void 0,value:f.value!=null?f.value:f.defaultValue,checked:f.checked!=null?f.checked:f.defaultChecked});else if(l==="textarea"){var p=f.value;if(p==null){p=f.defaultValue;var v=f.children;if(v!=null){if(p!=null)throw Error(Ge(92));if(Array.isArray(v)){if(!(1>=v.length))throw Error(Ge(93));v=v[0]}p=""+v}p==null&&(p="")}f=da({},f,{value:void 0,children:""+p})}else if(l==="select")this.currentSelectValue=f.value!=null?f.value:f.defaultValue,f=da({},f,{value:void 0});else if(l==="option"){v=this.currentSelectValue;var g=xI(f.children);if(v!=null){var d=f.value!=null?f.value+"":g;if(p=!1,Array.isArray(v)){for(var D=0;D":(ne+=">",p="");t:{if(v=f.dangerouslySetInnerHTML,v!=null){if(v.__html!=null){v=v.__html;break t}}else if(v=f.children,typeof v=="string"||typeof v=="number"){v=si(v);break t}v=null}return v!=null?(f=[],LI.hasOwnProperty(l)&&v.charAt(0)===` `&&(ne+=` `),ne+=v):f=vu(f.children),n=n.type,a=a==null||a==="http://www.w3.org/1999/xhtml"?Ny(n):a==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":a,this.stack.push({domNamespace:a,type:l,children:f,childIndex:0,context:r,footer:p}),this.previousWasTextNode=!1,ne},t})();vl.renderToNodeStream=function(){throw Error(Ge(207))};vl.renderToStaticMarkup=function(t,e){t=new Vy(t,!0,e);try{return t.read(1/0)}finally{t.destroy()}};vl.renderToStaticNodeStream=function(){throw Error(Ge(208))};vl.renderToString=function(t,e){t=new Vy(t,!1,e);try{return t.read(1/0)}finally{t.destroy()}};vl.version="17.0.2"});var Yy=Ca((BZ,Ky)=>{"use strict";Ky.exports=Qy()});var nT=Ca((Xnt,eT)=>{"use strict";var YL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";eT.exports=YL});var uT=Ca((Znt,oT)=>{"use strict";var XL=nT();function rT(){}function aT(){}aT.resetWarningCache=rT;oT.exports=function(){function t(r,a,l,f,p,v){if(v!==XL){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:aT,resetWarningCache:rT};return n.PropTypes=n,n}});var lT=Ca((nrt,iT)=>{iT.exports=uT()();var trt,ert});var Uh=Ca(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var fT=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Rv=fT.join(","),sT=typeof Element>"u",Ti=sT?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ph=!sT&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},pT=function(e,n,r){var a=Array.prototype.slice.apply(e.querySelectorAll(Rv));return n&&Ti.call(e,Rv)&&a.unshift(e),a=a.filter(r),a},vT=function t(e,n,r){for(var a=[],l=Array.from(e);l.length;){var f=l.shift();if(f.tagName==="SLOT"){var p=f.assignedElements(),v=p.length?p:f.children,g=t(v,!0,r);r.flatten?a.push.apply(a,g):a.push({scope:f,candidates:g})}else{var d=Ti.call(f,Rv);d&&r.filter(f)&&(n||!e.includes(f))&&a.push(f);var D=f.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(f),C=!r.shadowRootFilter||r.shadowRootFilter(f);if(D&&C){var b=t(D===!0?f.children:D.children,!0,r);r.flatten?a.push.apply(a,b):a.push({scope:f,candidates:b})}else l.unshift.apply(l,f.children)}}return a},dT=function(e,n){return e.tabIndex<0&&(n||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},ZL=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},_T=function(e){return e.tagName==="INPUT"},tA=function(e){return _T(e)&&e.type==="hidden"},eA=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},nA=function(e,n){for(var r=0;rsummary:first-of-type"),f=l?e.parentElement:e;if(Ti.call(f,"details:not([open]) *"))return!0;var p=Ph(e).host,v=(p==null?void 0:p.ownerDocument.contains(p))||e.ownerDocument.contains(e);if(!r||r==="full"){if(typeof a=="function"){for(var g=e;e;){var d=e.parentElement,D=Ph(e);if(d&&!d.shadowRoot&&a(d)===!0)return cT(e);e.assignedSlot?e=e.assignedSlot:!d&&D!==e.ownerDocument?e=D.host:e=d}e=g}if(v)return!e.getClientRects().length}else if(r==="non-zero-area")return cT(e);return!1},iA=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},cA=function t(e){var n=[],r=[];return e.forEach(function(a,l){var f=!!a.scope,p=f?a.scope:a,v=dT(p,f),g=f?t(a.candidates):p;v===0?f?n.push.apply(n,g):n.push(p):r.push({documentOrder:l,tabIndex:v,item:a,isScope:f,content:g})}),r.sort(ZL).reduce(function(a,l){return l.isScope?a.push.apply(a,l.content):a.push(l.content),a},[]).concat(n)},fA=function(e,n){n=n||{};var r;return n.getShadowRoot?r=vT([e],n.includeContainer,{filter:Oh.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:lA}):r=pT(e,n.includeContainer,Oh.bind(null,n)),cA(r)},sA=function(e,n){n=n||{};var r;return n.getShadowRoot?r=vT([e],n.includeContainer,{filter:Tv.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=pT(e,n.includeContainer,Tv.bind(null,n)),r},pA=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return Ti.call(e,Rv)===!1?!1:Oh(n,e)},vA=fT.concat("iframe").join(","),dA=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return Ti.call(e,vA)===!1?!1:Tv(n,e)};Il.focusable=sA;Il.isFocusable=dA;Il.isTabbable=pA;Il.tabbable=fA});var bT=Ca($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});var Ao=Uh();function mT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function hT(t){for(var e=1;e0){var r=t[t.length-1];r!==n&&r.pause()}var a=t.indexOf(n);a===-1||t.splice(a,1),t.push(n)},deactivateTrap:function(n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&t[t.length-1].unpause()}}})(),mA=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},hA=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},gA=function(e){return e.key==="Tab"||e.keyCode===9},DT=function(e){return setTimeout(e,0)},yT=function(e,n){var r=-1;return e.every(function(a,l){return n(a)?(r=l,!1):!0}),r},wf=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a1?It-1:0),fe=1;fe=0)x=r.activeElement;else{var k=l.tabbableGroups[0],It=k&&k.firstTabbableNode;x=It||g("fallbackFocus")}if(!x)throw new Error("Your focus-trap needs to have at least one focusable element");return x},D=function(){if(l.containerGroups=l.containers.map(function(x){var k=Ao.tabbable(x,a.tabbableOptions),It=Ao.focusable(x,a.tabbableOptions);return{container:x,tabbableNodes:k,focusableNodes:It,firstTabbableNode:k.length>0?k[0]:null,lastTabbableNode:k.length>0?k[k.length-1]:null,nextTabbableNode:function(fe){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,mr=It.findIndex(function(re){return re===fe});if(!(mr<0))return je?It.slice(mr+1).find(function(re){return Ao.isTabbable(re,a.tabbableOptions)}):It.slice(0,mr).reverse().find(function(re){return Ao.isTabbable(re,a.tabbableOptions)})}}}),l.tabbableGroups=l.containerGroups.filter(function(x){return x.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!g("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},C=function J(x){if(x!==!1&&x!==r.activeElement){if(!x||!x.focus){J(d());return}x.focus({preventScroll:!!a.preventScroll}),l.mostRecentlyFocusedNode=x,mA(x)&&x.select()}},b=function(x){var k=g("setReturnFocus",x);return k||(k===!1?!1:x)},T=function(x){var k=Cv(x);if(!(v(k)>=0)){if(wf(a.clickOutsideDeactivates,x)){f.deactivate({returnFocus:a.returnFocusOnDeactivate&&!Ao.isFocusable(k,a.tabbableOptions)});return}wf(a.allowOutsideClick,x)||x.preventDefault()}},M=function(x){var k=Cv(x),It=v(k)>=0;It||k instanceof Document?It&&(l.mostRecentlyFocusedNode=k):(x.stopImmediatePropagation(),C(l.mostRecentlyFocusedNode||d()))},G=function(x){var k=Cv(x);D();var It=null;if(l.tabbableGroups.length>0){var He=v(k),fe=He>=0?l.containerGroups[He]:void 0;if(He<0)x.shiftKey?It=l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:It=l.tabbableGroups[0].firstTabbableNode;else if(x.shiftKey){var je=yT(l.tabbableGroups,function(Dn){var rn=Dn.firstTabbableNode;return k===rn});if(je<0&&(fe.container===k||Ao.isFocusable(k,a.tabbableOptions)&&!Ao.isTabbable(k,a.tabbableOptions)&&!fe.nextTabbableNode(k,!1))&&(je=He),je>=0){var mr=je===0?l.tabbableGroups.length-1:je-1,re=l.tabbableGroups[mr];It=re.lastTabbableNode}}else{var Qt=yT(l.tabbableGroups,function(Dn){var rn=Dn.lastTabbableNode;return k===rn});if(Qt<0&&(fe.container===k||Ao.isFocusable(k,a.tabbableOptions)&&!Ao.isTabbable(k,a.tabbableOptions)&&!fe.nextTabbableNode(k))&&(Qt=He),Qt>=0){var Oo=Qt===l.tabbableGroups.length-1?0:Qt+1,oo=l.tabbableGroups[Oo];It=oo.firstTabbableNode}}}else It=g("fallbackFocus");It&&(x.preventDefault(),C(It))},ct=function(x){if(hA(x)&&wf(a.escapeDeactivates,x)!==!1){x.preventDefault(),f.deactivate();return}if(gA(x)){G(x);return}},ft=function(x){var k=Cv(x);v(k)>=0||wf(a.clickOutsideDeactivates,x)||wf(a.allowOutsideClick,x)||(x.preventDefault(),x.stopImmediatePropagation())},ie=function(){if(l.active)return gT.activateTrap(f),l.delayInitialFocusTimer=a.delayInitialFocus?DT(function(){C(d())}):C(d()),r.addEventListener("focusin",M,!0),r.addEventListener("mousedown",T,{capture:!0,passive:!1}),r.addEventListener("touchstart",T,{capture:!0,passive:!1}),r.addEventListener("click",ft,{capture:!0,passive:!1}),r.addEventListener("keydown",ct,{capture:!0,passive:!1}),f},ne=function(){if(l.active)return r.removeEventListener("focusin",M,!0),r.removeEventListener("mousedown",T,!0),r.removeEventListener("touchstart",T,!0),r.removeEventListener("click",ft,!0),r.removeEventListener("keydown",ct,!0),f};return f={get active(){return l.active},get paused(){return l.paused},activate:function(x){if(l.active)return this;var k=p(x,"onActivate"),It=p(x,"onPostActivate"),He=p(x,"checkCanFocusTrap");He||D(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=r.activeElement,k&&k();var fe=function(){He&&D(),ie(),It&&It()};return He?(He(l.containers.concat()).then(fe,fe),this):(fe(),this)},deactivate:function(x){if(!l.active)return this;var k=hT({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},x);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,ne(),l.active=!1,l.paused=!1,gT.deactivateTrap(f);var It=p(k,"onDeactivate"),He=p(k,"onPostDeactivate"),fe=p(k,"checkCanReturnFocus"),je=p(k,"returnFocus","returnFocusOnDeactivate");It&&It();var mr=function(){DT(function(){je&&C(b(l.nodeFocusedBeforeActivation)),He&&He()})};return je&&fe?(fe(b(l.nodeFocusedBeforeActivation)).then(mr,mr),this):(mr(),this)},pause:function(){return l.paused||!l.active?this:(l.paused=!0,ne(),this)},unpause:function(){return!l.paused||!l.active?this:(l.paused=!1,D(),ie(),this)},updateContainerElements:function(x){var k=[].concat(x).filter(Boolean);return l.containers=k.map(function(It){return typeof It=="string"?r.querySelector(It):It}),l.active&&D(),this}},f.updateContainerElements(e),f};$h.createFocusTrap=DA});var TT=Ca((ort,RT)=>{"use strict";function Wh(t){"@babel/helpers - typeof";return Wh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wh(t)}function yA(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wT(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ev(t){return Ev=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ev(t)}function FA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fv=(pu(),xd(lm)),xt=lT(),EA=bT(),MA=EA.createFocusTrap,SA=Uh(),IA=SA.isFocusable,qh=(function(t){wA(n,t);var e=RA(n);function n(r){var a;yA(this,n),a=e.call(this,r),FA(Tf(a),"getNodeForOption",function(p){var v,g=(v=this.internalOptions[p])!==null&&v!==void 0?v:this.originalOptions[p];if(typeof g=="function"){for(var d=arguments.length,D=new Array(d>1?d-1:0),C=1;C element.");var f=function(g){var d=a.props.containerElements;l&&(typeof l.ref=="function"?l.ref(g):l.ref&&(l.ref.current=g)),a.focusTrapElements=d||[g]},p=Fv.cloneElement(l,{ref:f});return p}return null}}]),n})(Fv.Component),Rf=typeof Element>"u"?Function:Element;qh.propTypes={active:xt.bool,paused:xt.bool,focusTrapOptions:xt.shape({document:xt.object,onActivate:xt.func,onPostActivate:xt.func,checkCanFocusTrap:xt.func,onDeactivate:xt.func,onPostDeactivate:xt.func,checkCanReturnFocus:xt.func,initialFocus:xt.oneOfType([xt.instanceOf(Rf),xt.string,xt.bool,xt.func]),fallbackFocus:xt.oneOfType([xt.instanceOf(Rf),xt.string,xt.func]),escapeDeactivates:xt.oneOfType([xt.bool,xt.func]),clickOutsideDeactivates:xt.oneOfType([xt.bool,xt.func]),returnFocusOnDeactivate:xt.bool,setReturnFocus:xt.oneOfType([xt.instanceOf(Rf),xt.string,xt.bool,xt.func]),allowOutsideClick:xt.oneOfType([xt.bool,xt.func]),preventScroll:xt.bool,tabbableOptions:xt.shape({displayCheck:xt.oneOf(["full","non-zero-area","none"]),getShadowRoot:xt.oneOfType([xt.bool,xt.func])})}),containerElements:xt.arrayOf(xt.instanceOf(Rf)),children:xt.oneOfType([xt.element,xt.instanceOf(Rf)])};qh.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:MA};RT.exports=qh});var wF=Ca((zv,hg)=>{(function(e,n){typeof zv=="object"&&typeof hg=="object"?hg.exports=n():typeof define=="function"&&define.amd?define([],n):typeof zv=="object"?zv.Pusher=n():e.Pusher=n()})(window,function(){return(function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(r,a,l){n.o(r,a)||Object.defineProperty(r,a,{enumerable:!0,get:l})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,a){if(a&1&&(r=n(r)),a&8||a&4&&typeof r=="object"&&r&&r.__esModule)return r;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:r}),a&2&&typeof r!="string")for(var f in r)n.d(l,f,function(p){return r[p]}.bind(null,f));return l},n.n=function(r){var a=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(a,"a",a),a},n.o=function(r,a){return Object.prototype.hasOwnProperty.call(r,a)},n.p="",n(n.s=2)})([(function(t,e,n){"use strict";var r=this&&this.__extends||(function(){var b=function(T,M){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,ct){G.__proto__=ct}||function(G,ct){for(var ft in ct)ct.hasOwnProperty(ft)&&(G[ft]=ct[ft])},b(T,M)};return function(T,M){b(T,M);function G(){this.constructor=T}T.prototype=M===null?Object.create(M):(G.prototype=M.prototype,new G)}})();Object.defineProperty(e,"__esModule",{value:!0});var a=256,l=(function(){function b(T){T===void 0&&(T="="),this._paddingCharacter=T}return b.prototype.encodedLength=function(T){return this._paddingCharacter?(T+2)/3*4|0:(T*8+5)/6|0},b.prototype.encode=function(T){for(var M="",G=0;G>>18&63),M+=this._encodeByte(ct>>>12&63),M+=this._encodeByte(ct>>>6&63),M+=this._encodeByte(ct>>>0&63)}var ft=T.length-G;if(ft>0){var ct=T[G]<<16|(ft===2?T[G+1]<<8:0);M+=this._encodeByte(ct>>>18&63),M+=this._encodeByte(ct>>>12&63),ft===2?M+=this._encodeByte(ct>>>6&63):M+=this._paddingCharacter||"",M+=this._paddingCharacter||""}return M},b.prototype.maxDecodedLength=function(T){return this._paddingCharacter?T/4*3|0:(T*6+7)/8|0},b.prototype.decodedLength=function(T){return this.maxDecodedLength(T.length-this._getPaddingLength(T))},b.prototype.decode=function(T){if(T.length===0)return new Uint8Array(0);for(var M=this._getPaddingLength(T),G=T.length-M,ct=new Uint8Array(this.maxDecodedLength(G)),ft=0,ie=0,ne=0,J=0,x=0,k=0,It=0;ie>>4,ct[ft++]=x<<4|k>>>2,ct[ft++]=k<<6|It,ne|=J&a,ne|=x&a,ne|=k&a,ne|=It&a;if(ie>>4,ne|=J&a,ne|=x&a),ie>>2,ne|=k&a),ie>>8&6,M+=51-T>>>8&-75,M+=61-T>>>8&-15,M+=62-T>>>8&3,String.fromCharCode(M)},b.prototype._decodeChar=function(T){var M=a;return M+=(42-T&T-44)>>>8&-a+T-43+62,M+=(46-T&T-48)>>>8&-a+T-47+63,M+=(47-T&T-58)>>>8&-a+T-48+52,M+=(64-T&T-91)>>>8&-a+T-65+0,M+=(96-T&T-123)>>>8&-a+T-97+26,M},b.prototype._getPaddingLength=function(T){var M=0;if(this._paddingCharacter){for(var G=T.length-1;G>=0&&T[G]===this._paddingCharacter;G--)M++;if(T.length<4||M>2)throw new Error("Base64Coder: incorrect padding")}return M},b})();e.Coder=l;var f=new l;function p(b){return f.encode(b)}e.encode=p;function v(b){return f.decode(b)}e.decode=v;var g=(function(b){r(T,b);function T(){return b!==null&&b.apply(this,arguments)||this}return T.prototype._encodeByte=function(M){var G=M;return G+=65,G+=25-M>>>8&6,G+=51-M>>>8&-75,G+=61-M>>>8&-13,G+=62-M>>>8&49,String.fromCharCode(G)},T.prototype._decodeChar=function(M){var G=a;return G+=(44-M&M-46)>>>8&-a+M-45+62,G+=(94-M&M-96)>>>8&-a+M-95+63,G+=(47-M&M-58)>>>8&-a+M-48+52,G+=(64-M&M-91)>>>8&-a+M-65+0,G+=(96-M&M-123)>>>8&-a+M-97+26,G},T})(l);e.URLSafeCoder=g;var d=new g;function D(b){return d.encode(b)}e.encodeURLSafe=D;function C(b){return d.decode(b)}e.decodeURLSafe=C,e.encodedLength=function(b){return f.encodedLength(b)},e.maxDecodedLength=function(b){return f.maxDecodedLength(b)},e.decodedLength=function(b){return f.decodedLength(b)}}),(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="utf8: invalid string",a="utf8: invalid source encoding";function l(v){for(var g=new Uint8Array(f(v)),d=0,D=0;D>6,g[d++]=128|C&63):C<55296?(g[d++]=224|C>>12,g[d++]=128|C>>6&63,g[d++]=128|C&63):(D++,C=(C&1023)<<10,C|=v.charCodeAt(D)&1023,C+=65536,g[d++]=240|C>>18,g[d++]=128|C>>12&63,g[d++]=128|C>>6&63,g[d++]=128|C&63)}return g}e.encode=l;function f(v){for(var g=0,d=0;d=v.length-1)throw new Error(r);d++,g+=4}else throw new Error(r)}return g}e.encodedLength=f;function p(v){for(var g=[],d=0;d=v.length)throw new Error(a);var b=v[++d];if((b&192)!==128)throw new Error(a);D=(D&31)<<6|b&63,C=128}else if(D<240){if(d>=v.length-1)throw new Error(a);var b=v[++d],T=v[++d];if((b&192)!==128||(T&192)!==128)throw new Error(a);D=(D&15)<<12|(b&63)<<6|T&63,C=2048}else if(D<248){if(d>=v.length-2)throw new Error(a);var b=v[++d],T=v[++d],M=v[++d];if((b&192)!==128||(T&192)!==128||(M&192)!==128)throw new Error(a);D=(D&15)<<18|(b&63)<<12|(T&63)<<6|M&63,C=65536}else throw new Error(a);if(D=55296&&D<=57343)throw new Error(a);if(D>=65536){if(D>1114111)throw new Error(a);D-=65536,g.push(String.fromCharCode(55296|D>>10)),D=56320|D&1023}}g.push(String.fromCharCode(D))}return g.join("")}e.decode=p}),(function(t,e,n){t.exports=n(3).default}),(function(t,e,n){"use strict";n.r(e);var r=(function(){function u(o,i){this.lastId=0,this.prefix=o,this.name=i}return u.prototype.create=function(o){this.lastId++;var i=this.lastId,c=this.prefix+i,s=this.name+"["+i+"]",m=!1,E=function(){m||(o.apply(null,arguments),m=!0)};return this[i]=E,{number:i,id:c,name:s,callback:E}},u.prototype.remove=function(o){delete this[o.number]},u})(),a=new r("_pusher_script_","Pusher.ScriptReceivers"),l={VERSION:"6.0.3",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,cluster:"mt1",cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},f=l,p=(function(){function u(o){this.options=o,this.receivers=o.receivers||a,this.loading={}}return u.prototype.load=function(o,i,c){var s=this;if(s.loading[o]&&s.loading[o].length>0)s.loading[o].push(c);else{s.loading[o]=[c];var m=Vt.createScriptRequest(s.getPath(o,i)),E=s.receivers.create(function(z){if(s.receivers.remove(E),s.loading[o]){var Tt=s.loading[o];delete s.loading[o];for(var se=function(Qn){Qn||m.cleanup()},pn=0;pn>>6)+C(128|o&63):C(224|o>>>12&15)+C(128|o>>>6&63)+C(128|o&63)},ft=function(u){return u.replace(/[^\x00-\x7F]/g,ct)},ie=function(u){var o=[0,2,1][u.length%3],i=u.charCodeAt(0)<<16|(u.length>1?u.charCodeAt(1):0)<<8|(u.length>2?u.charCodeAt(2):0),c=[b.charAt(i>>>18),b.charAt(i>>>12&63),o>=2?"=":b.charAt(i>>>6&63),o>=1?"=":b.charAt(i&63)];return c.join("")},ne=window.btoa||function(u){return u.replace(/[\s\S]{1,3}/g,ie)},J=(function(){function u(o,i,c,s){var m=this;this.clear=i,this.timer=o(function(){m.timer&&(m.timer=s(m.timer))},c)}return u.prototype.isRunning=function(){return this.timer!==null},u.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},u})(),x=J,k=(function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var m in s)s.hasOwnProperty(m)&&(c[m]=s[m])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}})();function It(u){window.clearTimeout(u)}function He(u){window.clearInterval(u)}var fe=(function(u){k(o,u);function o(i,c){return u.call(this,setTimeout,It,i,function(s){return c(),null})||this}return o})(x),je=(function(u){k(o,u);function o(i,c){return u.call(this,setInterval,He,i,function(s){return c(),s})||this}return o})(x),mr={now:function(){return Date.now?Date.now():new Date().valueOf()},defer:function(u){return new fe(0,u)},method:function(u){for(var o=[],i=1;i0)for(var s=0;s=1002&&u.code<=1004?"backoff":null:u.code===4e3?"tls_only":u.code<4100?"refused":u.code<4200?"backoff":u.code<4300?"retry":"refused"},getCloseError:function(u){return u.code!==1e3&&u.code!==1001?{type:"PusherError",data:{code:u.code,message:u.reason||u.message}}:null}},Mu=T1,cM=(function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var m in s)s.hasOwnProperty(m)&&(c[m]=s[m])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}})(),fM=(function(u){cM(o,u);function o(i,c){var s=u.call(this)||this;return s.id=i,s.transport=c,s.activityTimeout=c.activityTimeout,s.bindListeners(),s}return o.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},o.prototype.send=function(i){return this.transport.send(i)},o.prototype.send_event=function(i,c,s){var m={event:i,data:c};return s&&(m.channel=s),wt.debug("Event sent",m),this.send(Mu.encodeMessage(m))},o.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},o.prototype.close=function(){this.transport.close()},o.prototype.bindListeners=function(){var i=this,c={message:function(m){var E;try{E=Mu.decodeMessage(m)}catch(z){i.emit("error",{type:"MessageParseError",error:z,data:m.data})}if(E!==void 0){switch(wt.debug("Event recd",E),E.event){case"pusher:error":i.emit("error",{type:"PusherError",data:E.data});break;case"pusher:ping":i.emit("ping");break;case"pusher:pong":i.emit("pong");break}i.emit("message",E)}},activity:function(){i.emit("activity")},error:function(m){i.emit("error",{type:"WebSocketError",error:m})},closed:function(m){s(),m&&m.code&&i.handleCloseEvent(m),i.transport=null,i.emit("closed")}},s=function(){Dn(c,function(m,E){i.transport.unbind(E,m)})};Dn(c,function(m,E){i.transport.bind(E,m)})},o.prototype.handleCloseEvent=function(i){var c=Mu.getCloseAction(i),s=Mu.getCloseError(i);s&&this.emit("error",s),c&&this.emit(c,{action:c,error:s})},o})(Eu),sM=fM,pM=(function(){function u(o,i){this.transport=o,this.callback=i,this.bindListeners()}return u.prototype.close=function(){this.unbindListeners(),this.transport.close()},u.prototype.bindListeners=function(){var o=this;this.onMessage=function(i){o.unbindListeners();var c;try{c=Mu.processHandshake(i)}catch(s){o.finish("error",{error:s}),o.transport.close();return}c.action==="connected"?o.finish("connected",{connection:new sM(c.id,o.transport),activityTimeout:c.activityTimeout}):(o.finish(c.action,{error:c.error}),o.transport.close())},this.onClosed=function(i){o.unbindListeners();var c=Mu.getCloseAction(i)||"backoff",s=Mu.getCloseError(i);o.finish(c,{error:s})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},u.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},u.prototype.finish=function(o,i){this.callback(Qt({transport:this.transport,action:o},i))},u})(),vM=pM,dM=(function(){function u(o,i){this.channel=o;var c=i.authTransport;if(typeof Vt.getAuthorizers()[c]>"u")throw"'"+c+"' is not a recognized auth transport";this.type=c,this.options=i,this.authOptions=i.auth||{}}return u.prototype.composeQuery=function(o){var i="socket_id="+encodeURIComponent(o)+"&channel_name="+encodeURIComponent(this.channel.name);for(var c in this.authOptions.params)i+="&"+encodeURIComponent(c)+"="+encodeURIComponent(this.authOptions.params[c]);return i},u.prototype.authorize=function(o,i){u.authorizers=u.authorizers||Vt.getAuthorizers(),u.authorizers[this.type].call(this,Vt,o,i)},u})(),_M=dM,mM=(function(){function u(o,i){this.timeline=o,this.options=i||{}}return u.prototype.send=function(o,i){this.timeline.isEmpty()||this.timeline.send(Vt.TimelineTransport.getAgent(this,o),i)},u})(),hM=mM,Su=(function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var m in s)s.hasOwnProperty(m)&&(c[m]=s[m])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}})(),gM=(function(u){Su(o,u);function o(i){var c=this.constructor,s=u.call(this,i)||this;return Object.setPrototypeOf(s,c.prototype),s}return o})(Error),DM=(function(u){Su(o,u);function o(i){var c=this.constructor,s=u.call(this,i)||this;return Object.setPrototypeOf(s,c.prototype),s}return o})(Error),yM=(function(u){Su(o,u);function o(i){var c=this.constructor,s=u.call(this,i)||this;return Object.setPrototypeOf(s,c.prototype),s}return o})(Error),bM=(function(u){Su(o,u);function o(i){var c=this.constructor,s=u.call(this,i)||this;return Object.setPrototypeOf(s,c.prototype),s}return o})(Error),C1=(function(u){Su(o,u);function o(i){var c=this.constructor,s=u.call(this,i)||this;return Object.setPrototypeOf(s,c.prototype),s}return o})(Error),wM=(function(u){Su(o,u);function o(i){var c=this.constructor,s=u.call(this,i)||this;return Object.setPrototypeOf(s,c.prototype),s}return o})(Error),F1=(function(u){Su(o,u);function o(i){var c=this.constructor,s=u.call(this,i)||this;return Object.setPrototypeOf(s,c.prototype),s}return o})(Error),RM=(function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var m in s)s.hasOwnProperty(m)&&(c[m]=s[m])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}})(),TM=(function(u){RM(o,u);function o(i,c){var s=u.call(this,function(m,E){wt.debug("No callbacks on "+i+" for "+m)})||this;return s.name=i,s.pusher=c,s.subscribed=!1,s.subscriptionPending=!1,s.subscriptionCancelled=!1,s}return o.prototype.authorize=function(i,c){return c(!1,{auth:""})},o.prototype.trigger=function(i,c){if(i.indexOf("client-")!==0)throw new gM("Event '"+i+"' does not start with 'client-'");if(!this.subscribed){var s=yn.buildLogSuffix("triggeringClientEvents");wt.warn("Client event triggered before channel 'subscription_succeeded' event . "+s)}return this.pusher.send_event(i,c,this.name)},o.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},o.prototype.handleEvent=function(i){var c=i.event,s=i.data;if(c==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(i);else if(c.indexOf("pusher_internal:")!==0){var m={};this.emit(c,s,m)}},o.prototype.handleSubscriptionSucceededEvent=function(i){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",i.data)},o.prototype.subscribe=function(){var i=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,function(c,s){c?(wt.error(s),i.emit("pusher:subscription_error",s)):(s=s,i.pusher.send_event("pusher:subscribe",{auth:s.auth,channel_data:s.channel_data,channel:i.name}))}))},o.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},o.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},o.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},o})(Eu),E1=TM,CM=(function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var m in s)s.hasOwnProperty(m)&&(c[m]=s[m])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}})(),FM=(function(u){CM(o,u);function o(){return u!==null&&u.apply(this,arguments)||this}return o.prototype.authorize=function(i,c){var s=Ra.createAuthorizer(this,this.pusher.config);return s.authorize(i,c)},o})(E1),Rd=FM,EM=(function(){function u(){this.reset()}return u.prototype.get=function(o){return Object.prototype.hasOwnProperty.call(this.members,o)?{id:o,info:this.members[o]}:null},u.prototype.each=function(o){var i=this;Dn(this.members,function(c,s){o(i.get(s))})},u.prototype.setMyID=function(o){this.myID=o},u.prototype.onSubscription=function(o){this.members=o.presence.hash,this.count=o.presence.count,this.me=this.get(this.myID)},u.prototype.addMember=function(o){return this.get(o.user_id)===null&&this.count++,this.members[o.user_id]=o.user_info,this.get(o.user_id)},u.prototype.removeMember=function(o){var i=this.get(o.user_id);return i&&(delete this.members[o.user_id],this.count--),i},u.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},u})(),MM=EM,SM=(function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var m in s)s.hasOwnProperty(m)&&(c[m]=s[m])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}})(),IM=(function(u){SM(o,u);function o(i,c){var s=u.call(this,i,c)||this;return s.members=new MM,s}return o.prototype.authorize=function(i,c){var s=this;u.prototype.authorize.call(this,i,function(m,E){if(!m){if(E=E,E.channel_data===void 0){var z=yn.buildLogSuffix("authenticationEndpoint");wt.error("Invalid auth response for channel '"+s.name+"',"+("expected 'channel_data' field. "+z)),c("Invalid auth response");return}var Tt=JSON.parse(E.channel_data);s.members.setMyID(Tt.user_id)}c(m,E)})},o.prototype.handleEvent=function(i){var c=i.event;if(c.indexOf("pusher_internal:")===0)this.handleInternalEvent(i);else{var s=i.data,m={};i.user_id&&(m.user_id=i.user_id),this.emit(c,s,m)}},o.prototype.handleInternalEvent=function(i){var c=i.event,s=i.data;switch(c){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(i);break;case"pusher_internal:member_added":var m=this.members.addMember(s);this.emit("pusher:member_added",m);break;case"pusher_internal:member_removed":var E=this.members.removeMember(s);E&&this.emit("pusher:member_removed",E);break}},o.prototype.handleSubscriptionSucceededEvent=function(i){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(i.data),this.emit("pusher:subscription_succeeded",this.members))},o.prototype.disconnect=function(){this.members.reset(),u.prototype.disconnect.call(this)},o})(Rd),LM=IM,M1=n(1),Td=n(0),AM=(function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var m in s)s.hasOwnProperty(m)&&(c[m]=s[m])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}})(),xM=(function(u){AM(o,u);function o(i,c,s){var m=u.call(this,i,c)||this;return m.key=null,m.nacl=s,m}return o.prototype.authorize=function(i,c){var s=this;u.prototype.authorize.call(this,i,function(m,E){if(m){c(!0,E);return}var z=E.shared_secret;if(!z){var Tt="No shared_secret key in auth payload for encrypted channel: "+s.name;c(!0,Tt);return}s.key=Object(Td.decode)(z),delete E.shared_secret,c(!1,E)})},o.prototype.trigger=function(i,c){throw new C1("Client events are not currently supported for encrypted channels")},o.prototype.handleEvent=function(i){var c=i.event,s=i.data;if(c.indexOf("pusher_internal:")===0||c.indexOf("pusher:")===0){u.prototype.handleEvent.call(this,i);return}this.handleEncryptedEvent(c,s)},o.prototype.handleEncryptedEvent=function(i,c){var s=this;if(!this.key){wt.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!c.ciphertext||!c.nonce){wt.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+c);return}var m=Object(Td.decode)(c.ciphertext);if(m.length0&&this.emit("connecting_in",Math.round(i/1e3)),this.retryTimer=new fe(i||0,function(){c.disconnectInternally(),c.connect()})},o.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},o.prototype.setUnavailableTimer=function(){var i=this;this.unavailableTimer=new fe(this.options.unavailableTimeout,function(){i.updateState("unavailable")})},o.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},o.prototype.sendActivityCheck=function(){var i=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new fe(this.options.pongTimeout,function(){i.timeline.error({pong_timed_out:i.options.pongTimeout}),i.retryIn(0)})},o.prototype.resetActivityCheck=function(){var i=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new fe(this.activityTimeout,function(){i.sendActivityCheck()}))},o.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},o.prototype.buildConnectionCallbacks=function(i){var c=this;return Qt({},i,{message:function(s){c.resetActivityCheck(),c.emit("message",s)},ping:function(){c.send_event("pusher:pong",{})},activity:function(){c.resetActivityCheck()},error:function(s){c.emit("error",{type:"WebSocketError",error:s})},closed:function(){c.abandonConnection(),c.shouldRetry()&&c.retryIn(1e3)}})},o.prototype.buildHandshakeCallbacks=function(i){var c=this;return Qt({},i,{connected:function(s){c.activityTimeout=Math.min(c.options.activityTimeout,s.activityTimeout,s.connection.activityTimeout||1/0),c.clearUnavailableTimer(),c.setConnection(s.connection),c.socket_id=c.connection.id,c.updateState("connected",{socket_id:c.socket_id})}})},o.prototype.buildErrorCallbacks=function(){var i=this,c=function(s){return function(m){m.error&&i.emit("error",{type:"WebSocketError",error:m.error}),s(m)}};return{tls_only:c(function(){i.usingTLS=!0,i.updateStrategy(),i.retryIn(0)}),refused:c(function(){i.disconnect()}),backoff:c(function(){i.retryIn(1e3)}),retry:c(function(){i.retryIn(0)})}},o.prototype.setConnection=function(i){this.connection=i;for(var c in this.connectionCallbacks)this.connection.bind(c,this.connectionCallbacks[c]);this.resetActivityCheck()},o.prototype.abandonConnection=function(){if(this.connection){this.stopActivityCheck();for(var i in this.connectionCallbacks)this.connection.unbind(i,this.connectionCallbacks[i]);var c=this.connection;return this.connection=null,c}},o.prototype.updateState=function(i,c){var s=this.state;if(this.state=i,s!==i){var m=i;m==="connected"&&(m+=" with new socket ID "+c.socket_id),wt.debug("State changed",s+" -> "+m),this.timeline.info({state:i,params:c}),this.emit("state_change",{previous:s,current:i}),this.emit(i,c)}},o.prototype.shouldRetry=function(){return this.state==="connecting"||this.state==="connected"},o})(Eu),UM=OM,$M=(function(){function u(){this.channels={}}return u.prototype.add=function(o,i){return this.channels[o]||(this.channels[o]=HM(o,i)),this.channels[o]},u.prototype.all=function(){return Fu(this.channels)},u.prototype.find=function(o){return this.channels[o]},u.prototype.remove=function(o){var i=this.channels[o];return delete this.channels[o],i},u.prototype.disconnect=function(){Dn(this.channels,function(o){o.disconnect()})},u})(),WM=$M;function HM(u,o){if(u.indexOf("private-encrypted-")===0){if(o.config.nacl)return Ra.createEncryptedChannel(u,o,o.config.nacl);var i="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",c=yn.buildLogSuffix("encryptedChannelSupport");throw new C1(i+". "+c)}else return u.indexOf("private-")===0?Ra.createPrivateChannel(u,o):u.indexOf("presence-")===0?Ra.createPresenceChannel(u,o):Ra.createChannel(u,o)}var qM={createChannels:function(){return new WM},createConnectionManager:function(u,o){return new UM(u,o)},createChannel:function(u,o){return new E1(u,o)},createPrivateChannel:function(u,o){return new Rd(u,o)},createPresenceChannel:function(u,o){return new LM(u,o)},createEncryptedChannel:function(u,o,i){return new NM(u,o,i)},createTimelineSender:function(u,o){return new hM(u,o)},createAuthorizer:function(u,o){return o.authorizer?o.authorizer(u,o):new _M(u,o)},createHandshake:function(u,o){return new vM(u,o)},createAssistantToTheTransportManager:function(u,o,i){return new lM(u,o,i)}},Ra=qM,kM=(function(){function u(o){this.options=o||{},this.livesLeft=this.options.lives||1/0}return u.prototype.getAssistant=function(o){return Ra.createAssistantToTheTransportManager(this,o,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},u.prototype.isAlive=function(){return this.livesLeft>0},u.prototype.reportDeath=function(){this.livesLeft-=1},u})(),S1=kM,BM=(function(){function u(o,i){this.strategies=o,this.loop=!!i.loop,this.failFast=!!i.failFast,this.timeout=i.timeout,this.timeoutLimit=i.timeoutLimit}return u.prototype.isSupported=function(){return Xt(this.strategies,re.method("isSupported"))},u.prototype.connect=function(o,i){var c=this,s=this.strategies,m=0,E=this.timeout,z=null,Tt=function(se,pn){pn?i(null,pn):(m=m+1,c.loop&&(m=m%s.length),m0&&(m=new fe(c.timeout,function(){E.abort(),s(!0)})),E=o.connect(i,function(z,Tt){z&&m&&m.isRunning()&&!c.failFast||(m&&m.ensureAborted(),s(z,Tt))}),{abort:function(){m&&m.ensureAborted(),E.abort()},forceMinPriority:function(z){E.forceMinPriority(z)}}},u})(),Iu=BM,GM=(function(){function u(o){this.strategies=o}return u.prototype.isSupported=function(){return Xt(this.strategies,re.method("isSupported"))},u.prototype.connect=function(o,i){return JM(this.strategies,o,function(c,s){return function(m,E){if(s[c].error=m,m){zM(s)&&i(!0);return}uo(s,function(z){z.forceMinPriority(E.transport.priority)}),i(null,E)}})},u})(),Cd=GM;function JM(u,o,i){var c=Gf(u,function(s,m,E,z){return s.connect(o,i(m,z))});return{abort:function(){uo(c,jM)},forceMinPriority:function(s){uo(c,function(m){m.forceMinPriority(s)})}}}function zM(u){return _t(u,function(o){return!!o.error})}function jM(u){!u.error&&!u.aborted&&(u.abort(),u.aborted=!0)}var VM=(function(){function u(o,i,c){this.strategy=o,this.transports=i,this.ttl=c.ttl||1800*1e3,this.usingTLS=c.useTLS,this.timeline=c.timeline}return u.prototype.isSupported=function(){return this.strategy.isSupported()},u.prototype.connect=function(o,i){var c=this.usingTLS,s=KM(c),m=[this.strategy];if(s&&s.timestamp+this.ttl>=re.now()){var E=this.transports[s.transport];E&&(this.timeline.info({cached:!0,transport:s.transport,latency:s.latency}),m.push(new Iu([E],{timeout:s.latency*2+1e3,failFast:!0})))}var z=re.now(),Tt=m.pop().connect(o,function se(pn,Qn){pn?(I1(c),m.length>0?(z=re.now(),Tt=m.pop().connect(o,se)):i(pn)):(YM(c,Qn.transport.name,re.now()-z),i(null,Qn))});return{abort:function(){Tt.abort()},forceMinPriority:function(se){o=se,Tt&&Tt.forceMinPriority(se)}}},u})(),QM=VM;function Fd(u){return"pusherTransport"+(u?"TLS":"NonTLS")}function KM(u){var o=Vt.getLocalStorage();if(o)try{var i=o[Fd(u)];if(i)return JSON.parse(i)}catch{I1(u)}return null}function YM(u,o,i){var c=Vt.getLocalStorage();if(c)try{c[Fd(u)]=pe({timestamp:re.now(),transport:o,latency:i})}catch{}}function I1(u){var o=Vt.getLocalStorage();if(o)try{delete o[Fd(u)]}catch{}}var XM=(function(){function u(o,i){var c=i.delay;this.strategy=o,this.options={delay:c}}return u.prototype.isSupported=function(){return this.strategy.isSupported()},u.prototype.connect=function(o,i){var c=this.strategy,s,m=new fe(this.options.delay,function(){s=c.connect(o,i)});return{abort:function(){m.ensureAborted(),s&&s.abort()},forceMinPriority:function(E){o=E,s&&s.forceMinPriority(E)}}},u})(),zf=XM,ZM=(function(){function u(o,i,c){this.test=o,this.trueBranch=i,this.falseBranch=c}return u.prototype.isSupported=function(){var o=this.test()?this.trueBranch:this.falseBranch;return o.isSupported()},u.prototype.connect=function(o,i){var c=this.test()?this.trueBranch:this.falseBranch;return c.connect(o,i)},u})(),Ql=ZM,t3=(function(){function u(o){this.strategy=o}return u.prototype.isSupported=function(){return this.strategy.isSupported()},u.prototype.connect=function(o,i){var c=this.strategy.connect(o,function(s,m){m&&c.abort(),i(s,m)});return c},u})(),e3=t3;function Kl(u){return function(){return u.isSupported()}}var n3=function(u,o,i){var c={};function s(B1,J3,z3,j3,V3){var G1=i(u,B1,J3,z3,j3,V3);return c[B1]=G1,G1}var m=Object.assign({},o,{hostNonTLS:u.wsHost+":"+u.wsPort,hostTLS:u.wsHost+":"+u.wssPort,httpPath:u.wsPath}),E=Object.assign({},m,{useTLS:!0}),z=Object.assign({},o,{hostNonTLS:u.httpHost+":"+u.httpPort,hostTLS:u.httpHost+":"+u.httpsPort,httpPath:u.httpPath}),Tt={loop:!0,timeout:15e3,timeoutLimit:6e4},se=new S1({lives:2,minPingDelay:1e4,maxPingDelay:u.activityTimeout}),pn=new S1({lives:2,minPingDelay:1e4,maxPingDelay:u.activityTimeout}),Qn=s("ws","ws",3,m,se),Ta=s("wss","ws",3,E,se),H3=s("sockjs","sockjs",1,z),U1=s("xhr_streaming","xhr_streaming",1,z,pn),q3=s("xdr_streaming","xdr_streaming",1,z,pn),$1=s("xhr_polling","xhr_polling",1,z),k3=s("xdr_polling","xdr_polling",1,z),W1=new Iu([Qn],Tt),B3=new Iu([Ta],Tt),G3=new Iu([H3],Tt),H1=new Iu([new Ql(Kl(U1),U1,q3)],Tt),q1=new Iu([new Ql(Kl($1),$1,k3)],Tt),k1=new Iu([new Ql(Kl(H1),new Cd([H1,new zf(q1,{delay:4e3})]),q1)],Tt),Id=new Ql(Kl(k1),k1,G3),Ld;return o.useTLS?Ld=new Cd([W1,new zf(Id,{delay:2e3})]):Ld=new Cd([W1,new zf(B3,{delay:2e3}),new zf(Id,{delay:5e3})]),new QM(new e3(new Ql(Kl(Qn),Ld,Id)),c,{ttl:18e5,timeline:o.timeline,useTLS:o.useTLS})},r3=n3,a3=(function(){var u=this;u.timeline.info(u.buildTimelineMessage({transport:u.name+(u.options.useTLS?"s":"")})),u.hooks.isInitialized()?u.changeState("initialized"):u.hooks.file?(u.changeState("initializing"),d.load(u.hooks.file,{useTLS:u.options.useTLS},function(o,i){u.hooks.isInitialized()?(u.changeState("initialized"),i(!0)):(o&&u.onError(o),u.onClose(),i(!1))})):u.onClose()}),o3={getRequest:function(u){var o=new window.XDomainRequest;return o.ontimeout=function(){u.emit("error",new DM),u.close()},o.onerror=function(i){u.emit("error",i),u.close()},o.onprogress=function(){o.responseText&&o.responseText.length>0&&u.onChunk(200,o.responseText)},o.onload=function(){o.responseText&&o.responseText.length>0&&u.onChunk(200,o.responseText),u.emit("finished",200),u.close()},o},abortRequest:function(u){u.ontimeout=u.onerror=u.onprogress=u.onload=null,u.abort()}},u3=o3,i3=(function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var m in s)s.hasOwnProperty(m)&&(c[m]=s[m])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}})(),l3=256*1024,c3=(function(u){i3(o,u);function o(i,c,s){var m=u.call(this)||this;return m.hooks=i,m.method=c,m.url=s,m}return o.prototype.start=function(i){var c=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){c.close()},Vt.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(i)},o.prototype.close=function(){this.unloader&&(Vt.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},o.prototype.onChunk=function(i,c){for(;;){var s=this.advanceBuffer(c);if(s)this.emit("chunk",{status:i,data:s});else break}this.isBufferTooLong(c)&&this.emit("buffer_too_long")},o.prototype.advanceBuffer=function(i){var c=i.slice(this.position),s=c.indexOf(` `);return s!==-1?(this.position+=s+1,c.slice(0,s)):null},o.prototype.isBufferTooLong=function(i){return this.position===i.length&&i.length>l3},o})(Eu),f3=c3,Ed;(function(u){u[u.CONNECTING=0]="CONNECTING",u[u.OPEN=1]="OPEN",u[u.CLOSED=3]="CLOSED"})(Ed||(Ed={}));var Lu=Ed,s3=1,p3=(function(){function u(o,i){this.hooks=o,this.session=A1(1e3)+"/"+m3(8),this.location=v3(i),this.readyState=Lu.CONNECTING,this.openStream()}return u.prototype.send=function(o){return this.sendRaw(JSON.stringify([o]))},u.prototype.ping=function(){this.hooks.sendHeartbeat(this)},u.prototype.close=function(o,i){this.onClose(o,i,!0)},u.prototype.sendRaw=function(o){if(this.readyState===Lu.OPEN)try{return Vt.createSocketRequest("POST",L1(d3(this.location,this.session))).start(o),!0}catch{return!1}else return!1},u.prototype.reconnect=function(){this.closeStream(),this.openStream()},u.prototype.onClose=function(o,i,c){this.closeStream(),this.readyState=Lu.CLOSED,this.onclose&&this.onclose({code:o,reason:i,wasClean:c})},u.prototype.onChunk=function(o){if(o.status===200){this.readyState===Lu.OPEN&&this.onActivity();var i,c=o.data.slice(0,1);switch(c){case"o":i=JSON.parse(o.data.slice(1)||"{}"),this.onOpen(i);break;case"a":i=JSON.parse(o.data.slice(1)||"[]");for(var s=0;s0&&u.onChunk(i.status,i.responseText);break;case 4:i.responseText&&i.responseText.length>0&&u.onChunk(i.status,i.responseText),u.emit("finished",i.status),u.close();break}},i},abortRequest:function(u){u.onreadystatechange=null,u.abort()}},R3=w3,T3={createStreamingSocket:function(u){return this.createSocket(D3,u)},createPollingSocket:function(u){return this.createSocket(b3,u)},createSocket:function(u,o){return new h3(u,o)},createXHR:function(u,o){return this.createRequest(R3,u,o)},createRequest:function(u,o,i){return new f3(u,o,i)}},x1=T3;x1.createXDR=function(u,o){return this.createRequest(u3,u,o)};var C3=x1,F3={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:a,DependenciesReceivers:g,getDefaultStrategy:r3,Transports:rM,transportConnectionInitializer:a3,HTTPFactory:C3,TimelineTransport:sn,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(u){var o=this;window.Pusher=u;var i=function(){o.onDocumentBody(u.ready)};window.JSON?i():d.load("json2",{},i)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:wa,jsonp:yt}},onDocumentBody:function(u){var o=this;document.body?u():setTimeout(function(){o.onDocumentBody(u)},0)},createJSONPRequest:function(u,o){return new Bt(u,o)},createScriptRequest:function(u){return new mt(u)},getLocalStorage:function(){try{return window.localStorage}catch{return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){var u=this.getXHRAPI();return new u},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return uM},createWebSocket:function(u){var o=this.getWebSocketAPI();return new o(u)},createSocketRequest:function(u,o){if(this.isXHRSupported())return this.HTTPFactory.createXHR(u,o);if(this.isXDRSupported(o.indexOf("https:")===0))return this.HTTPFactory.createXDR(u,o);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var u=this.getXHRAPI();return!!u&&new u().withCredentials!==void 0},isXDRSupported:function(u){var o=u?"https:":"http:",i=this.getProtocol();return!!window.XDomainRequest&&i===o},addUnloadListener:function(u){window.addEventListener!==void 0?window.addEventListener("unload",u,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",u)},removeUnloadListener:function(u){window.addEventListener!==void 0?window.removeEventListener("unload",u,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",u)}},Vt=F3,Md;(function(u){u[u.ERROR=3]="ERROR",u[u.INFO=6]="INFO",u[u.DEBUG=7]="DEBUG"})(Md||(Md={}));var jf=Md,E3=(function(){function u(o,i,c){this.key=o,this.session=i,this.events=[],this.options=c||{},this.sent=0,this.uniqueID=0}return u.prototype.log=function(o,i){o<=this.options.level&&(this.events.push(Qt({},i,{timestamp:re.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},u.prototype.error=function(o){this.log(jf.ERROR,o)},u.prototype.info=function(o){this.log(jf.INFO,o)},u.prototype.debug=function(o){this.log(jf.DEBUG,o)},u.prototype.isEmpty=function(){return this.events.length===0},u.prototype.send=function(o,i){var c=this,s=Qt({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],o(s,function(m,E){m||c.sent++,i&&i(m,E)}),!0},u.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},u})(),M3=E3,S3=(function(){function u(o,i,c,s){this.name=o,this.priority=i,this.transport=c,this.options=s||{}}return u.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},u.prototype.connect=function(o,i){var c=this;if(this.isSupported()){if(this.priorityiJ});var j1=function(t){return function(e){for(var n=e.length,r=new Array(n),a=0;a="0"&&t[a]<="9"?"\\&":"";return"\\"+n.charCodeAt(0).toString(10)+l})+'"'};var Ve={show:vD};var ae={show:pD};var S=function(t){return t.show};var ve=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),Ct=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})();var wn=(function(){function t(){}return t.value=new t,t})(),rc=function(t){return t};var ac=function(t){return t.to};var Yf=function(t){return t.from};var w4=K(Z),h=(function(){function t(){}return t.value=new t,t})(),_=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})();var Mt=function(t){return function(e){return function(n){if(n instanceof h)return t;if(n instanceof _)return e(n.value0);throw new Error("Failed pattern match at Data.Maybe (line 237, column 1 - line 237, column 51): "+[t.constructor.name,e.constructor.name,n.constructor.name])}}},na=Mt(!0)(tt(!1)),ra=Mt(!1)(tt(!0));var st={map:function(t){return function(e){return e instanceof _?new _(t(e.value0)):h.value}}},R4=y(st);var Ft=function(t){return Mt(t)(w4)},Te=function(){return function(t){if(t instanceof _)return t.value0;throw new Error("Failed pattern match at Data.Maybe (line 288, column 1 - line 288, column 46): "+[t.constructor.name])}};var Xn={apply:function(t){return function(e){if(t instanceof _)return R4(t.value0)(e);if(t instanceof h)return h.value;throw new Error("Failed pattern match at Data.Maybe (line 67, column 1 - line 69, column 30): "+[t.constructor.name,e.constructor.name])}},Functor0:function(){return st}};var _e={bind:function(t){return function(e){if(t instanceof _)return e(t.value0);if(t instanceof h)return h.value;throw new Error("Failed pattern match at Data.Maybe (line 125, column 1 - line 127, column 28): "+[t.constructor.name,e.constructor.name])}},Apply0:function(){return Xn}};var _n=(function(){return{pure:_.create,Apply0:function(){return Xn}}})();var dD={alt:function(t){return function(e){return t instanceof h?e:t}},Functor0:function(){return st}},T4=(function(){return{empty:h.value,Alt0:function(){return dD}}})(),Wd={Applicative0:function(){return _n},Plus1:function(){return T4}};function _D(t,e,n){return t==null?e:n(t)}function Hd(t){return t}var gr=Mt(null)(Hd),qt=function(t){return _D(t,h.value,_.create)};var Rn=function(t){return t.empty};var Zf=function(t){var e=F(t.Applicative0()),n=Rn(t.Plus1());return function(r){if(r)return e(void 0);if(!r)return n;throw new Error("Failed pattern match at Control.Alternative (line 48, column 1 - line 48, column 54): "+[r.constructor.name])}};var E4=typeof Array.prototype.flatMap=="function"?function(t){return function(e){return t.flatMap(e)}}:function(t){return function(e){for(var n=[],r=t.length,a=0;a=n.length?e:t(n[r])};var SD=function(t,e){return e.filter(t)};var ID=(function(){function t(e,n,r,a,l,f){var p,v,g,d,D,C,b;for(p=l+(f-l>>1),p-l>1&&t(e,n,a,r,l,p),f-p>1&&t(e,n,a,r,p,f),v=l,g=p,d=l;v0?(r[d++]=C,++g):(r[d++]=D,++v);for(;v=0;l--)r=t(n[l])(r);return r}}},XD=function(t){return function(e){return function(n){for(var r=e,a=n.length,l=0;l=0&&p=hn(ey))return ey;if(t<=hn(ny))return ny;if(ut)return Ft(0)(ri(t));throw new Error("Failed pattern match at Data.Int (line 72, column 1 - line 72, column 29): "+[t.constructor.name])},Do=function(t){return FS(Os(t))};var ay=function(t){return(t&1)===0};var tn=(function(){function t(){}return t.value=new t,t})(),Yt=(function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t})(),Us=function(t){return t},WS=function(t){return new Yt(t.value0,t.value1)};var HS=function(t){var e=function(n){return function(r){var a=n,l=!1,f;function p(v,g){if(g instanceof Yt&&g.value1 instanceof Yt&&g.value1.value1 instanceof Yt){a=new Yt(g,v),r=g.value1.value1.value1;return}var d=function(C){return C instanceof Yt&&C.value1 instanceof Yt&&C.value1.value1 instanceof tn?new Yt(t(C.value0),new Yt(t(C.value1.value0),tn.value)):C instanceof Yt&&C.value1 instanceof tn?new Yt(t(C.value0),tn.value):tn.value},D=function(C){return function(b){var T=C,M=!1,G;function ct(ft,ie){if(ft instanceof Yt&&ft.value0 instanceof Yt&&ft.value0.value1 instanceof Yt&&ft.value0.value1.value1 instanceof Yt){T=ft.value1,b=new Yt(t(ft.value0.value0),new Yt(t(ft.value0.value1.value0),new Yt(t(ft.value0.value1.value1.value0),ie)));return}return M=!0,ie}for(;!M;)G=ct(T,b);return G}};return l=!0,D(v)(d(g))}for(;!l;)f=p(a,r);return f}};return e(tn.value)},oy={map:HS};var Gr={foldr:function(t){return function(e){var n=(function(){var a=function(l){return function(f){var p=l,v=!1,g;function d(D,C){if(C instanceof tn)return v=!0,D;if(C instanceof Yt){p=new Yt(C.value0,D),f=C.value1;return}throw new Error("Failed pattern match at Data.List.Types (line 107, column 7 - line 107, column 23): "+[D.constructor.name,C.constructor.name])}for(;!v;)g=d(p,f);return g}};return a(tn.value)})(),r=we(Gr)(Ot(t))(e);return function(a){return r(n(a))}}},foldl:function(t){var e=function(n){return function(r){var a=n,l=!1,f;function p(v,g){if(g instanceof tn)return l=!0,v;if(g instanceof Yt){a=t(v)(g.value0),r=g.value1;return}throw new Error("Failed pattern match at Data.List.Types (line 111, column 12 - line 113, column 30): "+[g.constructor.name])}for(;!l;)f=p(a,r);return f}};return e},foldMap:function(t){var e=Y(t.Semigroup0()),n=Gt(t);return function(r){return we(Gr)(function(a){var l=e(a);return function(f){return l(r(f))}})(n)}}};var qS=Ee(Gr);var $s={append:function(t){return function(e){return qS(Yt.create)(e)(t)}}},uy=Y($s);var G_={append:function(t){return function(e){return new Ua(t.value0,uy(t.value1)(WS(e)))}}};var iy={alt:uy,Functor0:function(){return oy}},J_=(function(){return{empty:tn.value,Alt0:function(){return iy}}})();var ou=function(t){return t.length};var Ws=function(t){return function(e){return{before:e.substring(0,t),after:e.substring(t)}}};var yo=function(t){return function(e){var n=Ws(ou(t))(e),r=n.before===t;return r?new _(n.after):h.value}};var Wa=function(t){return function(e){return e.split(t)}};var wr=function(t){return function(e){return e.join(t)}};var Ha=function(t){return t.tell};var fl={liftEffect:K(Z),Monad0:function(){return Jo}},kt=function(t){return t.liftEffect};var Vs=typeof CV<"u"&&CV.assetsRoot||typeof global<"u"&&global.CV&&global.CV.assetsRoot||"/";function Ac(t){return Object.prototype.toString.call(t).slice(8,-1)}function ci(t){return t===null}function lu(t){return t===void 0}var Qs=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};var C6=y(ln);var Ks=function(t){return t};var xc=function(t){return t};var Ys=function(t){return function(e){return t(e)}},Xs=function(t){var e=y(t);return{map:function(n){return Ys(e(C6(n)))}}};var gy=function(t){return{Applicative0:function(){return ka(t)},Bind1:function(){return Ro(t)}}},Ro=function(t){var e=L(t.Bind1()),n=F(t.Applicative0());return{bind:function(r){return function(a){return e(r)(Fe(function(l){return n(U.create(l))})(function(l){var f=a(l);return f}))}},Apply0:function(){return Zs(t)}}},Zs=function(t){var e=Xs(t.Bind1().Apply0().Functor0());return{apply:cr(gy(t)),Functor0:function(){return e}}},ka=function(t){return{pure:(function(){var e=F(t.Applicative0());return function(n){return Ks(e(P.create(n)))}})(),Apply0:function(){return Zs(t)}}};var tp=function(t){var e=gy(t);return{throwError:(function(){var n=F(t.Applicative0());return function(r){return Ks(n(U.create(r)))}})(),Monad0:function(){return e}}};var rm=function(t){var e=Y(t);return function(n){var r=n.Bind1(),a=L(r),l=F(n.Applicative0()),f=Xs(r.Apply0().Functor0());return{alt:function(p){return function(v){return a(p)(function(g){if(g instanceof P)return l(new P(g.value0));if(g instanceof U)return a(v)(function(d){if(d instanceof P)return l(new P(d.value0));if(d instanceof U)return l(new U(e(g.value0)(d.value0)));throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 87, column 9 - line 89, column 49): "+[d.constructor.name])});throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 83, column 5 - line 89, column 49): "+[g.constructor.name])})}},Functor0:function(){return f}}}};var Dy=function(t){return t()};var yy=function(t){throw new Error(t)};var by=function(){return yy};var S6=by(),I6=Dy,zr=function(t){return I6(function(){return S6(t)})};var ep=(function(){var t=xs(J_);return function(e){return Us(t(e))}})();var wy=function(t){return t.value0};var $6=S(Ve),W6=S(ae);var Oc=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),rp=(function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t})(),om=(function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t})(),um=(function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t})(),gn=A,cu=A;var Pc=function(t){if(t instanceof Oc)return t.value0;if(t instanceof om)return"Error at array index "+(W6(t.value0)+(": "+Pc(t.value1)));if(t instanceof um)return"Error at property "+($6(t.value0)+(": "+Pc(t.value1)));if(t instanceof rp)return"Type mismatch: expected "+(t.value0+(", found "+t.value1));throw new Error("Failed pattern match at Foreign (line 78, column 1 - line 78, column 45): "+[t.constructor.name])};var Uc=function(t){var e=cn(tp(t));return function(n){return e(ep(n))}};var im=function(t){var e=F(ka(t)),n=Uc(t);return function(r){return function(a){if(Ac(a)===r)return e(cu(a));if(ut)return n(new rp(r,Ac(a)));throw new Error("Failed pattern match at Foreign (line 123, column 1 - line 123, column 104): "+[r.constructor.name,a.constructor.name])}}};var H6=A;var Ry=function(t){return lu(t)};var fu=function(t){var e=Ry(t);return e?h.value:new _(H6(t))};var en=function(t){return function(e){var n=Ry(t);return n?e:t}};var su=function(){return A};pu();var ap=window.ReactDOM,{createPortal:OZ,findDOMNode:UZ,flushSync:$Z,unstable_batchedUpdates:WZ}=window.ReactDOM;var Rm=Ad(Yy(),1);function Xy(t){return t.state&&t.state.s}function Zy(t,e,n){return t.setState({s:e},n)}function tb(t,e){return t.state={s:e}}var eb=ap.render,nb=ap.hydrate,Tm=Rm.default&&Rm.default.renderToString||(t=>""),UI=ap.unmountComponentAtNode,rb=va.Fragment;function ab(t,e,n){return va.createElement.apply(null,[t,$I(t,e)].concat(n))}function $I(t,e){if(typeof t!="string"||e._data==null)return e;var n={_data:void 0};for(var r in e._data){var a=e._data[r];n["data-"+r]=a}return Object.assign({},e,n)}var di=function(e){return function(n){return e(n)()}};var _i=function(e){return function(n){return function(){return e(n)}}},_u=function(e){return function(n){return function(r){return function(){return e(n,r)}}}},mi=function(e){return function(n){return function(r){return function(a){return function(){return e(n,r,a)}}}}};var oe={asReactChildren:function(t){return[t]}},Je={asReactChildren:function(t){return[t]}},Se={asReactChildren:K(Z)};var ze=A,Cm=mi(Zy),lb=_u(eb),cb=_u(nb),fb=_i(Xy),sr=!1;var sb=_u(tb),pb=function(t){return t.asReactChildren},_a=function(){return function(t){var e=pb(t);return function(n){return function(r){return function(a){return ab(n,r,e(a))}}}}},vb=_a()(Se),sp=function(){return function(t){return function(e){return vb(t)(e)([])}}},Un=vb(rb)({});var pp={};function vp(t){return t()}function db(t,e,n,r){return n in r?e(r[n]):t}function Fm(t){return function(e){var n=[];for(var r in e)hasOwnProperty.call(e,r)&&n.push(t(r)(e[r]));return n}}var r9=Object.keys||Fm(function(t){return function(){return t}});var dp=function(){return{}};function _p(t){return function(e){return function(n){return function(){return n[t]=e,n}}}}var f9=Ce(uc);var s9=De(Bu);var Em=function(t){return function(e){return vp(f9(_p(t)(e))(dp))}};var zc=(function(){return vc(db)(h.value)(_.create)})();var Mm=function(){return A};var Sm=function(t){var e=rl(t);return function(n){return vp(function(){var a=dp();return os(e(n))(function(l){return s9(_p(l.value0)(l.value1)(a))})(),a})}};var mb=sp(),Im=_a(),hb=nu()();var jc=A;var Lm=function(t){var e=Im(t);return function(n){return function(r){return e(jc(n))(r)}}},Vc=function(t){var e=Im(t);return function(n){return function(r){return function(a){return e(jc(n))(hb(a)({className:r}))}}}},dl=function(t){return function(e){return function(n){return mb(jc(t))(hb(n)({className:e}))}}},Am=function(t){return function(e){return mb(jc(t))({className:e})}},ma=function(t){return function(e){var n=Im(e);return function(r){return function(a){return n(jc(t))({className:r})(a)}}}};var hi=A;var mp=function(t){return ma("tr")(t)};var hp=function(){return function(){return dl("textarea")}};var gp=function(t){return ma("td")(t)};var Dp=function(t){return ma("tbody")(t)};var yp=function(t){return ma("table")(t)},bp=function(t){var e=Vc(t);return function(){return function(){return e("svg")}}};var Ga=function(t){return ma("strong")(t)};var mu=function(t){return ma("span")(t)};var Ja=function(t){return ma("p")(t)};var wp=function(){return function(){return dl("input")}};var Rp=function(){return function(){return dl("img")}};var Tp=function(t){return ma("i")(t)};var _l=Am("hr");var jr=function(t){return ma("h2")(t)};var Eo=function(t){var e=Vc(t);return function(){return function(){return e("div")}}},We=function(t){return ma("div")(t)};var Cp=Am("br");var p9=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),ml=(function(){function t(){}return t.value=new t,t})();var gb=function(t){if(t instanceof p9)return t.value0;if(t instanceof ml)return"";throw new Error("Failed pattern match at Utils.HTML.Img.Alt (line 23, column 15 - line 25, column 19): "+[t.constructor.name])};var v9=(function(){function t(){}return t.value=new t,t})(),d9=(function(){function t(){}return t.value=new t,t})();var Db=function(t){if(t instanceof v9)return"eager";if(t instanceof d9)return"lazy";throw new Error("Failed pattern match at Utils.HTML.Img.Loading (line 18, column 15 - line 20, column 17): "+[t.constructor.name])};var Nm=kr(Ju(Cn)),m9=su(),h9=Et(st),g9=Rp()(),Fp=function(t){var e=yo(t);return function(n){return ra(e(n))}},yb=function(t){if(Nm(Fp("http://"))(Nm(Fp("https://"))(Nm(Fp("//"))(Fp("blob:"))))(t))return t;if(ut)return Vs+Ft(t)(yo("/")(t));throw new Error("Failed pattern match at Utils.AppAssets (line 68, column 1 - line 68, column 30): "+[t.constructor.name])},Kc=function(){return function(t){return function(e){var n=m9(e),r={alt:gb(n.alt),height:en(n.height)(void 0),loading:Ft(void 0)(h9(fu(n.loading))(Db)),onClick:en(n.onClick)(void 0),src:yb(n.src),style:en(n.style)(void 0),width:en(n.width)(void 0)};return g9(t)(r)}}};var D9=Sm(At),y9=Et(Ht),b9=Xu(A_),Ep=function(t){return function(e){var n=D9(y9(e)(function(r){return new et(t(r),r)}));return function(r){return zc(r)(n)}}},wb=function(t){var e=S0(t),n=T0(t);return function(r){var a=e(r);return function(l){return function(f){return b9(function(p){return new et(p,a(p))})(n(f))}}}},Mp=function(t){var e=wb(t);return function(n){var r=e(n);return function(a){var l=r(a);return function(f){return fa(l(f))}}}};function Tb(t){return typeof t=="string"}function Cb(t){return typeof t=="number"}function Fb(t){return typeof t=="boolean"}function Eb(t){return t instanceof Object}function Mb(t){return t instanceof Function}function Yc(t){return t===null?"":t===void 0?"":t instanceof Date?t.toString():typeof Blob<"u"&&t instanceof Blob?"file["+t.name+"]":JSON.stringify(t)}var R9=Ju(Cn),T9=qr(R9),C9=O0(wc),F9=S(ae),E9=R0(Zn),Qr=(function(){function t(){}return t.value=new t,t})(),Kr=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),jn={validateJsRecord:function(t){return Qr.value}},Pm={validateForeignType:function(t){return Qr.value}};var Sp=function(t){return function(e){return function(n){var r=e(n);return r?Qr.value:new Kr({path:"",got:n,expected:t})}}};var Xc={validateForeignType:Sp("Boolean")(Fb)},Sb={validateForeignType:Sp("Function")(Mb)};var hl={validateForeignType:Sp("Number")(Cb)};var Ie={validateForeignType:Sp("String")(Tb)},Ib=function(t){return t.validateJsRecord},za=function(){return function(t){var e=Ib(t);return{validateForeignType:function(n){if(Eb(n))return e(n);if(ut)return new Kr({path:"",expected:"Object",got:n});throw new Error("Failed pattern match at Elmish.Foreign (line 209, column 1 - line 212, column 69): "+[n.constructor.name])}}}},gl=function(t){return t.validateForeignType},Zc=function(t){var e=gl(t);return{validateForeignType:function(n){if(T9(Qs)(n))return new Kr({path:"",expected:"Array",got:n});if(ut){var r=function(l){return function(f){var p=e(f);if(p instanceof Qr)return h.value;if(p instanceof Kr)return new _({idx:l,invalid:p.value0});throw new Error("Failed pattern match at Elmish.Foreign (line 186, column 29 - line 188, column 51): "+[p.constructor.name])}},a=C9(r)(cu(n));if(a instanceof h)return Qr.value;if(a instanceof _)return new Kr({expected:a.value0.invalid.expected,got:a.value0.invalid.got,path:"["+(F9(a.value0.idx)+("]"+a.value0.invalid.path))});throw new Error("Failed pattern match at Elmish.Foreign (line 182, column 21 - line 184, column 101): "+[a.constructor.name])}throw new Error("Failed pattern match at Elmish.Foreign (line 179, column 6 - line 188, column 51): "+[n.constructor.name])}}},hu=function(t){var e=gl(t);return{validateForeignType:function(n){if(ci(n)||lu(n))return Qr.value;if(ut){var r=e(n);if(r instanceof Qr)return Qr.value;if(r instanceof Kr)return new Kr({path:r.value0.path,got:r.value0.got,expected:(function(){var a=r.value0.path==="";return a?"Nullable "+r.value0.expected:r.value0.expected})()});throw new Error("Failed pattern match at Elmish.Foreign (line 196, column 11 - line 198, column 123): "+[r.constructor.name])}throw new Error("Failed pattern match at Elmish.Foreign (line 192, column 1 - line 198, column 123): "+[n.constructor.name])}}};var ue=function(t){var e=de(t);return function(n){var r=gl(n);return function(a){var l=Ib(a);return{validateJsRecord:function(f){var p=e(te.value),v=In(p)(cu(f)),g=r(v);if(g instanceof Kr)return new Kr({expected:g.value0.expected,got:g.value0.got,path:"."+(p+g.value0.path)});if(g instanceof Qr)return l(f);throw new Error("Failed pattern match at Elmish.Foreign (line 235, column 9 - line 237, column 43): "+[g.constructor.name])}}}}},ja=function(t){var e=gl(t);return function(n){var r=e(n);if(r instanceof Qr)return new P(cu(n));if(r instanceof Kr)return new U(E9([r.value0.path,(function(){var a=r.value0.path==="";return a?"Expected ":": expected "})(),r.value0.expected," but got: ",Yc(r.value0.got)]));throw new Error("Failed pattern match at Elmish.Foreign (line 255, column 18 - line 263, column 6): "+[r.constructor.name])}},Dl=function(t){var e=ja(t);return function(n){return Ma(e(n))}};var M9={info:"info",warning:"warn",error:"error"},Mo=t=>e=>n=>r=>{let a=M9[t];if(typeof console<"u"&&console[a]&&console[a](e,n),typeof window<"u"){let l=new Error(e);typeof window.Sentry<"u"&&window.Sentry.captureException(l,{extra:n})}return r()},Lb=(t,e)=>(e.__sentryFingerprint=t,e);var Ab=function(t){return ia(Lb)(t)};var gu="error";var Lp={parseOrPanic:function(t){return function(e){var n=t.parse(e);if(n instanceof P)return n.value0;if(n instanceof U)return Mo(gu)("Failed to parse "+t.diagnosticName)({error:n.value0,value:e})(function(r){return t.default});throw new Error("Failed pattern match at Utils.Parse (line 49, column 5 - line 57, column 24): "+[n.constructor.name])}}},gi=function(t){return t.parseOrPanic},I9=gi(Lp),Ap=function(t){var e=gi(t);return function(n){var r=y(n);return function(a){return e({parse:function(l){return r(_.create)(a.parse(l))},default:h.value,diagnosticName:a.diagnosticName})}}},L9=Ap(Lp)(ln),Om=function(t){var e=ja(t);return function(n){return L9({parse:e,diagnosticName:n})}},xp={parseOrPanic:function(t){return I9({default:t.default,diagnosticName:t.diagnosticName,parse:(function(){var e=Mt(new U(""))(P.create);return function(n){return e(t.parse(n))}})()})}};var Pb=C_(T_),ef=R_(Pb)(v_(s_)),Ob=__(d_),nf=m_(Ob),Ub=M_(E_),rf=F_(Ub),A9=Kc(),x9=nu()(),yl=(function(){function t(){}return t.value=new t,t})(),af=(function(){function t(){}return t.value=new t,t})(),of=(function(){function t(){}return t.value=new t,t})(),uf=(function(){function t(){}return t.value=new t,t})(),lf=(function(){function t(){}return t.value=new t,t})(),cf=(function(){function t(){}return t.value=new t,t})(),N9={to:function(t){if(t instanceof ve)return yl.value;if(t instanceof Ct&&t.value0 instanceof ve)return af.value;if(t instanceof Ct&&t.value0 instanceof Ct&&t.value0.value0 instanceof ve)return of.value;if(t instanceof Ct&&t.value0 instanceof Ct&&t.value0.value0 instanceof Ct&&t.value0.value0.value0 instanceof ve)return uf.value;if(t instanceof Ct&&t.value0 instanceof Ct&&t.value0.value0 instanceof Ct&&t.value0.value0.value0 instanceof Ct&&t.value0.value0.value0.value0 instanceof ve)return lf.value;if(t instanceof Ct&&t.value0 instanceof Ct&&t.value0.value0 instanceof Ct&&t.value0.value0.value0 instanceof Ct&&t.value0.value0.value0.value0 instanceof Ct)return cf.value;throw new Error("Failed pattern match at Common.ProfilePersona (line 30, column 1 - line 30, column 34): "+[t.constructor.name])},from:function(t){if(t instanceof yl)return new ve(wn.value);if(t instanceof af)return new Ct(new ve(wn.value));if(t instanceof of)return new Ct(new Ct(new ve(wn.value)));if(t instanceof uf)return new Ct(new Ct(new Ct(new ve(wn.value))));if(t instanceof lf)return new Ct(new Ct(new Ct(new Ct(new ve(wn.value)))));if(t instanceof cf)return new Ct(new Ct(new Ct(new Ct(new Ct(wn.value)))));throw new Error("Failed pattern match at Common.ProfilePersona (line 30, column 1 - line 30, column 34): "+[t.constructor.name])}};var P9=function(t){if(t instanceof yl)return"activist";if(t instanceof af)return"connector";if(t instanceof of)return"explorer";if(t instanceof uf)return"learner";if(t instanceof lf)return"pragmatist";if(t instanceof cf)return"striver";throw new Error("Failed pattern match at Common.ProfilePersona (line 38, column 13 - line 44, column 23): "+[t.constructor.name])},$b=(function(){return gi(xp)({parse:Ep(P9)(Mp(N9)(ef(ef(ef(ef(ef(Pb)(Ob))(nf))(nf))(nf))(nf))(rf(rf(rf(rf(rf(Ub))))))(nf)),diagnosticName:"Common.ProfilePersona",default:yl.value})})();var Wb=function(t){if(t instanceof yl)return"Activist";if(t instanceof af)return"Connector";if(t instanceof of)return"Explorer";if(t instanceof uf)return"Learner";if(t instanceof lf)return"Pragmatist";if(t instanceof cf)return"Striver";throw new Error("Failed pattern match at Common.ProfilePersona (line 54, column 9 - line 60, column 23): "+[t.constructor.name])},Hb=function(t){return function(e){var n="/img/illustrations/profile/personas/"+(function(){if(t instanceof yl)return"activist.png";if(t instanceof af)return"connector.png";if(t instanceof of)return"explorer.png";if(t instanceof uf)return"learner.png";if(t instanceof lf)return"pragmatist.png";if(t instanceof cf)return"striver.png";throw new Error("Failed pattern match at Common.ProfilePersona (line 141, column 5 - line 147, column 31): "+[t.constructor.name])})();return A9("")(x9(e)({src:n}))}};var O9=y(Ht);var Um=(function(){function t(){}return t.value=new t,t})(),$m=(function(){function t(){}return t.value=new t,t})(),Op=(function(){function t(){}return t.value=new t,t})(),Du=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})();var kb={show:be()},Bb=Ie;var Gb=function(t){return{email:t.email,free_form_school_name:gr(t.schoolName),name:t.name,title:gr(t.title)}},Jb=function(t){return{categories:qt(t.categories),overall:{body:qt(t.overall.body),subject:qt(t.overall.subject)},rankedPersonas:O9($b)(t.ranked_personas)}},Up=function(t){return{email:t.email,name:t.name,schoolName:qt(t.free_form_school_name),title:qt(t.title)}};var pr=(function(){var t={},e="Pure",n="Throw",r="Catch",a="Sync",l="Async",f="Bind",p="Bracket",v="Fork",g="Sequential",d="Map",D="Apply",C="Alt",b="Cons",T="Resume",M="Release",G="Finalizer",ct="Finalized",ft="Forked",ie="Fiber",ne="Thunk";function J(rt,zt,Le,Xt){this.tag=rt,this._1=zt,this._2=Le,this._3=Xt}function x(rt){var zt=function(Le,Xt,_t){return new J(rt,Le,Xt,_t)};return zt.tag=rt,zt}function k(rt){return new J(e,void 0)}function It(rt){try{rt()}catch(zt){setTimeout(function(){throw zt},0)}}function He(rt,zt,Le){try{return zt(Le())}catch(Xt){return rt(Xt)}}function fe(rt,zt,Le){try{return zt(Le)()}catch(Xt){return Le(rt(Xt))(),k}}var je=(function(){var rt=1024,zt=0,Le=0,Xt=new Array(rt),_t=!1;function j(){var Zt;for(_t=!0;zt!==0;)zt--,Zt=Xt[Le],Xt[Le]=void 0,Le=(Le+1)%rt,Zt();_t=!1}return{isDraining:function(){return _t},enqueue:function(Zt){var Nt,pe;zt===rt&&(pe=_t,j(),_t=pe),Xt[(Le+zt)%rt]=Zt,zt++,_t||j()}}})();function mr(rt){var zt={},Le=0,Xt=0;return{register:function(_t){var j=Le++;_t.onComplete({rethrow:!0,handler:function(Zt){return function(){Xt--,delete zt[j]}}})(),zt[j]=_t,Xt++},isEmpty:function(){return Xt===0},killAll:function(_t,j){return function(){if(Xt===0)return j();var Zt=0,Nt={};function pe(wt){Nt[wt]=zt[wt].kill(_t,function(Ae){return function(){delete Nt[wt],Zt--,rt.isLeft(Ae)&&rt.fromLeft(Ae)&&setTimeout(function(){throw rt.fromLeft(Ae)},0),Zt===0&&j()}})()}for(var an in zt)zt.hasOwnProperty(an)&&(Zt++,pe(an));return zt={},Le=0,Xt=0,function(wt){return new J(a,function(){for(var Ae in Nt)Nt.hasOwnProperty(Ae)&&Nt[Ae]()})}}}}}var re=0,Qt=1,Oo=2,oo=3,Dn=4,rn=5,Fu=6;function uo(rt,zt,Le){var Xt=0,_t=re,j=Le,Zt=null,Nt=null,pe=null,an=null,wt=null,Ae=0,io=0,yn=null,ba=!0;function wa(mt){for(var gt,Bt,jt;;)switch(gt=null,Bt=null,jt=null,_t){case Oo:_t=Qt;try{j=pe(j),an===null?pe=null:(pe=an._1,an=an._2)}catch(sn){_t=rn,Zt=rt.left(sn),j=null}break;case oo:rt.isLeft(j)?(_t=rn,Zt=j,j=null):pe===null?_t=rn:(_t=Oo,j=rt.fromRight(j));break;case Qt:switch(j.tag){case f:pe&&(an=new J(b,pe,an)),pe=j._2,_t=Qt,j=j._1;break;case e:pe===null?(_t=rn,j=rt.right(j._1)):(_t=Oo,j=j._1);break;case a:_t=oo,j=He(rt.left,rt.right,j._1);break;case l:_t=Dn,j=fe(rt.left,j._1,function(sn){return function(){Xt===mt&&(Xt++,je.enqueue(function(){Xt===mt+1&&(_t=oo,j=sn,wa(Xt))}))}});return;case n:_t=rn,Zt=rt.left(j._1),j=null;break;case r:pe===null?wt=new J(b,j,wt,Nt):wt=new J(b,j,new J(b,new J(T,pe,an),wt,Nt),Nt),pe=null,an=null,_t=Qt,j=j._1;break;case p:Ae++,pe===null?wt=new J(b,j,wt,Nt):wt=new J(b,j,new J(b,new J(T,pe,an),wt,Nt),Nt),pe=null,an=null,_t=Qt,j=j._1;break;case v:_t=oo,gt=uo(rt,zt,j._2),zt&&zt.register(gt),j._1&>.run(),j=rt.right(gt);break;case g:_t=Qt,j=bd(rt,zt,j._1);break}break;case rn:if(pe=null,an=null,wt===null)_t=Fu,j=Nt||Zt||j;else switch(gt=wt._3,jt=wt._1,wt=wt._2,jt.tag){case r:Nt&&Nt!==gt&&Ae===0?_t=rn:Zt&&(_t=Qt,j=jt._2(rt.fromLeft(Zt)),Zt=null);break;case T:Nt&&Nt!==gt&&Ae===0||Zt?_t=rn:(pe=jt._1,an=jt._2,_t=Oo,j=rt.fromRight(j));break;case p:Ae--,Zt===null&&(Bt=rt.fromRight(j),wt=new J(b,new J(M,jt._2,Bt),wt,gt),(Nt===gt||Ae>0)&&(_t=Qt,j=jt._3(Bt)));break;case M:wt=new J(b,new J(ct,j,Zt),wt,Nt),_t=Qt,Nt&&Nt!==gt&&Ae===0?j=jt._1.killed(rt.fromLeft(Nt))(jt._2):Zt?j=jt._1.failed(rt.fromLeft(Zt))(jt._2):j=jt._1.completed(rt.fromRight(j))(jt._2),Zt=null,Ae++;break;case G:Ae++,wt=new J(b,new J(ct,j,Zt),wt,Nt),_t=Qt,j=jt._1;break;case ct:Ae--,_t=rn,j=jt._1,Zt=jt._2;break}break;case Fu:for(var Ne in yn)yn.hasOwnProperty(Ne)&&(ba=ba&&yn[Ne].rethrow,It(yn[Ne].handler(j)));yn=null,Nt&&Zt?setTimeout(function(){throw rt.fromLeft(Zt)},0):rt.isLeft(j)&&ba&&setTimeout(function(){if(ba)throw rt.fromLeft(j)},0);return;case re:_t=Qt;break;case Dn:return}}function xe(mt){return function(){if(_t===Fu)return ba=ba&&mt.rethrow,mt.handler(j)(),function(){};var gt=io++;return yn=yn||{},yn[gt]=mt,function(){yn!==null&&delete yn[gt]}}}function yt(mt,gt){return function(){if(_t===Fu)return gt(rt.right(void 0))(),function(){};var Bt=xe({rethrow:!1,handler:function(){return gt(rt.right(void 0))}})();switch(_t){case re:Nt=rt.left(mt),_t=Fu,j=Nt,wa(Xt);break;case Dn:Nt===null&&(Nt=rt.left(mt)),Ae===0&&(_t===Dn&&(wt=new J(b,new J(G,j(mt)),wt,Nt)),_t=rn,j=null,Zt=null,wa(++Xt));break;default:Nt===null&&(Nt=rt.left(mt)),Ae===0&&(_t=rn,j=null,Zt=null)}return Bt}}function Pt(mt){return function(){var gt=xe({rethrow:!1,handler:mt})();return _t===re&&wa(Xt),gt}}return{kill:yt,join:Pt,onComplete:xe,isSuspended:function(){return _t===re},run:function(){_t===re&&(je.isDraining()?wa(Xt):je.enqueue(function(){wa(Xt)}))}}}function Gf(rt,zt,Le,Xt){var _t=0,j={},Zt=0,Nt={},pe=new Error("[ParAff] Early exit"),an=null,wt=t;function Ae(xe,yt,Pt){var mt=yt,gt=null,Bt=null,jt=0,Ne={},sn,lo;t:for(;;)switch(sn=null,mt.tag){case ft:if(mt._3===t&&(sn=j[mt._1],Ne[jt++]=sn.kill(xe,function(Vl){return function(){jt--,jt===0&&Pt(Vl)()}})),gt===null)break t;mt=gt._2,Bt===null?gt=null:(gt=Bt._1,Bt=Bt._2);break;case d:mt=mt._2;break;case D:case C:gt&&(Bt=new J(b,gt,Bt)),gt=mt,mt=mt._1;break}if(jt===0)Pt(rt.right(void 0))();else for(lo=0,sn=jt;lonull);function gw(t,e){let n=typeof CV<"u"&&CV.apiEndpoint||typeof global<"u"&&global.CV&&global.CV.apiEndpoint;return n||console.error("Missing `CV.apiEndpoint` function"),n&&n(t,e)}function Dw(t,e,n,r,a){return function(l,f){var p=t.newXHR(),v=t.fixupUrl(a.url,p);if(p.open(a.method||"GET",v,!0,a.username,a.password),a.headers)try{for(var g=0,d;(d=a.headers[g])!=null;g++)p.setRequestHeader(d.field,d.value)}catch(C){l(C)}var D=function(C){return function(){l(new Error(C))}};return p.onerror=D(n),p.ontimeout=D(e),p.onload=function(){f({status:p.status,statusText:p.statusText,headers:p.getAllResponseHeaders().split(`\r `).filter(function(C){return C.length>0}).map(function(C){var b=C.indexOf(":");return r(C.substring(0,b))(C.substring(b+2))}),body:p.response})},p.responseType=a.responseType,p.withCredentials=a.withCredentials,p.timeout=a.timeout,p.send(a.content),function(C,b,T){try{p.abort()}catch(M){return b(M)}return T()}}}var Qp="application/json",yw="application/x-www-form-urlencoded";var ww=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),Rw=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),Tw=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),Cw=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),Fw=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),km=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),Kp=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),Ew=function(t){return t instanceof km?new _(yw):t instanceof Kp?new _(Qp):h.value};var Mw=(function(){return Kp.create})();var Iw=be();var Yp=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),Xp=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),Di=(function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t})(),Lw=function(t){if(t instanceof Yp||t instanceof Xp)return Iw(t.value0);if(t instanceof Di)return t.value1;throw new Error("Failed pattern match at Affjax.RequestHeader (line 26, column 1 - line 26, column 33): "+[t.constructor.name])};var Bm=function(t){if(t instanceof Yp)return"Accept";if(t instanceof Xp)return"Content-Type";if(t instanceof Di)return t.value0;throw new Error("Failed pattern match at Affjax.RequestHeader (line 21, column 1 - line 21, column 32): "+[t.constructor.name])};var xw=K(Z),Gm=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),Jm=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),zm=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),Zp=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),tv=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),ev=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),Nw=function(t){if(t instanceof Gm)return"arraybuffer";if(t instanceof Jm)return"blob";if(t instanceof zm)return"document";if(t instanceof Zp||t instanceof tv)return"text";if(t instanceof ev)return"";throw new Error("Failed pattern match at Affjax.ResponseFormat (line 44, column 3 - line 50, column 19): "+[t.constructor.name])},Pw=function(t){return t instanceof Zp?new _(Qp):h.value},Ow=(function(){return new tv(xw)})();var Uw=(function(){return new ev(xw)})();var Ww=(function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t})();var o5=be();var rv=function(t){return o5(xc(t))};function Vm(t){return JSON.stringify(t)}var Hw=pp;function qw(t,e,n){try{return e(JSON.parse(n))}catch(r){return t(r.message)}}var av=function(t){return qw(U.create,P.create,t)};function c5(t){return t.replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16)})}function Bw(t,e,n){try{return e(c5(encodeURIComponent(n)).replace(/%20/g,"+"))}catch(r){return t(r)}}var ov=(function(){return Zi(Bw)(tt(h.value))(_.create)})();var p5=Rt(Xn),Jw=y(st),v5=zn(Pa)(_n);var d5=function(t){return t};var zw=(function(){var t=function(r){if(r.value1 instanceof h)return ov(r.value0);if(r.value1 instanceof _)return p5(Jw(function(a){return function(l){return a+("="+l)}})(ov(r.value0)))(ov(r.value1.value0));throw new Error("Failed pattern match at Data.FormURLEncoded (line 37, column 16 - line 39, column 114): "+[r.constructor.name])},e=Jw(wr("&")),n=v5(t);return function(r){return e(n(d5(r)))}})();var Qm=(function(){function t(){}return t.value=new t,t})(),yi=(function(){function t(){}return t.value=new t,t})(),Km=(function(){function t(){}return t.value=new t,t})(),Tl=(function(){function t(){}return t.value=new t,t})(),iv=(function(){function t(){}return t.value=new t,t})(),df=(function(){function t(){}return t.value=new t,t})(),Ym=(function(){function t(){}return t.value=new t,t})(),Xm=(function(){function t(){}return t.value=new t,t})(),Zm=(function(){function t(){}return t.value=new t,t})(),th=(function(){function t(){}return t.value=new t,t})(),eh=(function(){function t(){}return t.value=new t,t})(),nh=(function(){function t(){}return t.value=new t,t})(),rh=(function(){function t(){}return t.value=new t,t})(),ah=(function(){function t(){}return t.value=new t,t})(),oh=(function(){function t(){}return t.value=new t,t})(),lv=(function(){function t(){}return t.value=new t,t})();var m5=function(t){return t},h5={show:function(t){if(t instanceof Qm)return"OPTIONS";if(t instanceof yi)return"GET";if(t instanceof Km)return"HEAD";if(t instanceof Tl)return"POST";if(t instanceof iv)return"PUT";if(t instanceof df)return"DELETE";if(t instanceof Ym)return"TRACE";if(t instanceof Xm)return"CONNECT";if(t instanceof Zm)return"PROPFIND";if(t instanceof th)return"PROPPATCH";if(t instanceof eh)return"MKCOL";if(t instanceof nh)return"COPY";if(t instanceof rh)return"MOVE";if(t instanceof ah)return"LOCK";if(t instanceof oh)return"UNLOCK";if(t instanceof lv)return"PATCH";throw new Error("Failed pattern match at Data.HTTP.Method (line 43, column 1 - line 59, column 23): "+[t.constructor.name])}};var jw=Fe(S(h5))(m5);var Vw={eq:function(t){return function(e){return t instanceof Qm&&e instanceof Qm||t instanceof yi&&e instanceof yi||t instanceof Km&&e instanceof Km||t instanceof Tl&&e instanceof Tl||t instanceof iv&&e instanceof iv||t instanceof df&&e instanceof df||t instanceof Ym&&e instanceof Ym||t instanceof Xm&&e instanceof Xm||t instanceof Zm&&e instanceof Zm||t instanceof th&&e instanceof th||t instanceof eh&&e instanceof eh||t instanceof nh&&e instanceof nh||t instanceof rh&&e instanceof rh||t instanceof ah&&e instanceof ah||t instanceof oh&&e instanceof oh||t instanceof lv&&e instanceof lv}}};var Kw=function(t){return wl(function(e){return function(){var r=t(function(a){return e(U.create(a))()},function(a){return e(P.create(a))()});return function(a){return wl(function(l){return function(){return r(a,function(p){return l(U.create(p))()},function(p){return l(P.create(p))()}),hw}})}}})};var uh=F(ka(mn)),D5=Uc(mn),bi=im(mn),Yw=ye(rm(G_)(mn)),y5=Bo(Ro(mn)),cv=y(st),b5=ua(At)(Cn),w5=Q(vn),R5=Ce(_e),T5=y(Ht),C5=Et(So),F5=jo(vf),E5=F(vr);var fv=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),sv=(function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t})(),pv=(function(){function t(){}return t.value=new t,t})(),vv=(function(){function t(){}return t.value=new t,t})(),dv=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),Xw=function(t){return function(e){var n=function(d){return d===""?uh(Hw):Fe(function(D){return D5(Oc.create(D))})(uh)(av(d))},r=(function(){if(e.responseFormat instanceof Gm)return bi("ArrayBuffer");if(e.responseFormat instanceof Jm)return bi("Blob");if(e.responseFormat instanceof zm)return function(d){return Yw(bi("Document")(d))(Yw(bi("XMLDocument")(d))(bi("HTMLDocument")(d)))};if(e.responseFormat instanceof Zp)return y5(function(d){return e.responseFormat.value0(n(d))})(bi("String"));if(e.responseFormat instanceof tv)return bi("String");if(e.responseFormat instanceof ev)return tt(e.responseFormat.value0(uh(void 0)));throw new Error("Failed pattern match at Affjax (line 274, column 18 - line 283, column 57): "+[e.responseFormat.constructor.name])})(),a=function(d){if(d instanceof ww)return new P(d.value0(gn));if(d instanceof Rw)return new P(gn(d.value0));if(d instanceof Tw)return new P(gn(d.value0));if(d instanceof Cw)return new P(gn(d.value0));if(d instanceof Fw)return new P(gn(d.value0));if(d instanceof km)return Ea("Body contains values that cannot be encoded as application/x-www-form-urlencoded")(cv(gn)(zw(d.value0)));if(d instanceof Kp)return new P(gn(Vm(d.value0)));throw new Error("Failed pattern match at Affjax (line 235, column 20 - line 250, column 69): "+[d.constructor.name])},l=function(d){return function(D){return d instanceof _&&!b5(Yl(w5)(Bm)(d.value0))(D)?el(D)(d.value0):D}},f=function(d){return l(cv(Xp.create)(R5(Ew)(d)))(l(cv(Yp.create)(Pw(e.responseFormat)))(e.headers))},p=function(d){return{method:jw(e.method),url:e.url,headers:T5(function(D){return{field:Bm(D),value:Lw(D)}})(f(e.content)),content:d,responseType:Nw(e.responseFormat),username:gr(e.username),password:gr(e.password),withCredentials:e.withCredentials,timeout:Ft(0)(cv(function(D){return D})(e.timeout))}},v=function(d){return C5(F5(Kw(Dw(t,"AffjaxTimeoutErrorMessageIdent","AffjaxRequestFailedMessageIdent",Ww.create,p(d)))))(function(D){if(D instanceof P){var C=rv(r(D.value0.body));if(C instanceof U)return new U(new sv(wy(C.value0),D.value0));if(C instanceof P)return new P({headers:D.value0.headers,status:D.value0.status,statusText:D.value0.statusText,body:C.value0});throw new Error("Failed pattern match at Affjax (line 209, column 9 - line 211, column 52): "+[C.constructor.name])}if(D instanceof U)return new U((function(){var b=fo(D.value0),T=b==="AffjaxTimeoutErrorMessageIdent";if(T)return pv.value;var M=b==="AffjaxRequestFailedMessageIdent";return M?vv.value:new dv(D.value0)})());throw new Error("Failed pattern match at Affjax (line 207, column 144 - line 219, column 28): "+[D.constructor.name])})};if(e.content instanceof h)return v(gr(h.value));if(e.content instanceof _){var g=a(e.content.value0);if(g instanceof P)return v(gr(new _(g.value0)));if(g instanceof U)return E5(new U(new fv(g.value0)));throw new Error("Failed pattern match at Affjax (line 199, column 7 - line 203, column 48): "+[g.constructor.name])}throw new Error("Failed pattern match at Affjax (line 195, column 3 - line 203, column 48): "+[e.content.constructor.name])}};var Cl=(function(){return{method:new U(yi.value),url:"/",headers:[],content:h.value,username:h.value,password:h.value,withCredentials:!1,responseFormat:Uw,timeout:h.value}})();var tR={eq:function(t){return function(e){return t===e}}};var ih={newXHR:function(){return new XMLHttpRequest},fixupUrl:function(t){return t||"/"}};var eR=Xw(ih);var snt=typeof Symbol<"u"&&Symbol!=null&&typeof Symbol.iterator<"u"&&typeof String.prototype[Symbol.iterator]=="function",pnt=typeof String.prototype.fromCodePoint=="function",vnt=typeof String.prototype.codePointAt=="function";function TR(t){return Buffer.from(t).toString("base64")}function CR(t,e,n){let r;try{r=e(btoa(n))}catch(a){r=t(a)}return r}var gh=typeof btoa=="function";function FR(t){let n=[];for(let r=0;r=90)return Eh.value;if(t>=70)return Mh.value;if(ut)return bf.value;throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.Utils (line 21, column 1 - line 21, column 30): "+[t.constructor.name])},Ri=function(t){return HL("mx-auto")(qL("spinner spinner-border text-primary "+Ft("")(t.extraClass))(""))},bv={subject:"",body:""},Ih=function(t){if(t instanceof Du)return t.value0;if(t instanceof Op)return bv;throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.Utils (line 34, column 20 - line 36, column 23): "+[t.constructor.name])};var Cr=(function(){function t(){}return t.value=new t,t})(),Qa=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),Yr=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})();var KR=function(t){if(t instanceof Cr)return new Yr(h.value);if(t instanceof Qa)return new Yr(new _(t.value0));if(t instanceof Yr)return new Yr(t.value0);throw new Error("Failed pattern match at Utils.Loadable (line 63, column 13 - line 66, column 25): "+[t.constructor.name])},Ah=function(t){if(t instanceof Cr)return h.value;if(t instanceof Qa)return new _(t.value0);if(t instanceof Yr)return t.value0;throw new Error("Failed pattern match at Utils.Loadable (line 48, column 11 - line 51, column 17): "+[t.constructor.name])};var kL=mp(Se),YR=gp(Je),XR=mu(oe),BL=S(ae),GL=yp(Je),JL=Dp(Se),wv=Et(st),ZR=function(t){var e=function(g){return function(d){return kL("d-flex align-items-center justify-content-between my-2")([YR("font-weight-bold fw-bold")(ze(g)),YR("")(d)])}},n=e("School Perception"),r=e("Quality"),a=e("Readability"),l=e("Spam Factor"),f=Ri({extraClass:h.value}),p=XR("text-secondary")("--"),v=Mt(p)((function(){var g=XR("font-weight-bold fw-bold");return function(d){return g(BL(Do(d)))}})());return GL("w-100")(JL("")((function(){if(t.scores instanceof Qa)return[l(v(wv(t.scores.value0.categories)(function(g){return g.spam}))),n(v(wv(t.scores.value0.categories)(function(g){return g.perception}))),r(v(wv(t.scores.value0.categories)(function(g){return g.quality}))),a(v(wv(t.scores.value0.categories)(function(g){return g.readability})))];if(t.scores instanceof Yr)return[l(f),n(f),r(f),a(f)];if(t.scores instanceof Cr)return[l(p),n(p),r(p),a(p)];throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.CategoryScores (line 16, column 16 - line 34, column 10): "+[t.scores.constructor.name])})()))};var jL=(function(){function t(){}return t.value=new t,t})(),Nh=(function(){function t(){}return t.value=new t,t})(),VL=(function(){function t(){}return t.value=new t,t})(),QL=(function(){function t(){}return t.value=new t,t})(),tT=function(t){if(t instanceof jL)return"modal-sm";if(t instanceof Nh)return"";if(t instanceof VL)return"modal-lg";if(t instanceof QL)return"modal-xl";throw new Error("Failed pattern match at Bootstrap.Modal.Size (line 14, column 13 - line 18, column 27): "+[t.constructor.name])};var CT=Ad(TT(),1),FT=CT.default;var AA=_a(),ET=function(t){var e=AA(t);return function(){return function(){return e(FT)}}};var Cf="";function MT(t){var e=t.split(` `);return e.reduce(function(n,r){var a=OA(r)||$A(r)||qA(r)||JA(r)||BA(r);return a&&n.push(a),n},[])}var NA=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,PA=/\((\S*)(?::(\d+))(?::(\d+))\)/;function OA(t){var e=NA.exec(t);if(!e)return null;var n=e[2]&&e[2].indexOf("native")===0,r=e[2]&&e[2].indexOf("eval")===0,a=PA.exec(e[2]);return r&&a!=null&&(e[2]=a[1],e[3]=a[2],e[4]=a[3]),{file:n?null:e[2],methodName:e[1]||Cf,arguments:n?[e[2]]:[],lineNumber:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}var UA=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function $A(t){var e=UA.exec(t);return e?{file:e[2],methodName:e[1]||Cf,arguments:[],lineNumber:+e[3],column:e[4]?+e[4]:null}:null}var WA=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,HA=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function qA(t){var e=WA.exec(t);if(!e)return null;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=HA.exec(e[3]);return n&&r!=null&&(e[3]=r[1],e[4]=r[2],e[5]=null),{file:e[3],methodName:e[1]||Cf,arguments:e[2]?e[2].split(","):[],lineNumber:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}var kA=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function BA(t){var e=kA.exec(t);return e?{file:e[3],methodName:e[1]||Cf,arguments:[],lineNumber:+e[4],column:e[5]?+e[5]:null}:null}var GA=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function JA(t){var e=GA.exec(t);return e?{file:e[2],methodName:e[1]||Cf,arguments:[],lineNumber:+e[3],column:e[4]?+e[4]:null}:null}function IT({skipFrames:t,prefix:e}){let n=new Error().stack,a=MT(n)[t],l=ST(a.file.replace(/^(http(s?):\/\/)?[^\/]+/,"")),f=ST(a.methodName);return`${e}_${l}_${f}_${a.lineNumber}_${a.column}`}var ST=t=>t.replace(/[^\d\w]+/g,"_").replace(/(^_|_$)/g,"");pu();var LT=(function(){let t={};return function(e,n){let r=t[e]||(t[e]=NT(e));return n(r)}})();function AT(t){return t(NT())}var xT=va.createElement,Ff=t=>()=>t.props.def;function NT(t){class e extends va.Component{constructor(r){super(r),r.init&&r.init(this)()}render(){return this.props.render(this)()}componentDidMount(){this.props.componentDidMount(this)()}componentWillUnmount(){this.props.componentWillUnmount(this)()}}return e.displayName=t?"Elmish_"+t:"ElmishRoot",e}var Mv=typeof module>"u"?void 0:module.require,irt=(function(){try{return Mv===void 0?void 0:Mv("util")}catch{return}})();var lrt=(function(){var t;if(typeof performance<"u")t=performance;else if(Mv)try{t=Mv("perf_hooks").performance}catch{}return(function(){return(t||Date).now()})})();var PT=(t,e)=>e[t],OT=(t,e,n)=>n[t]=e;var XA=Et(Ut),Ef=(function(){function t(){}return t.value=new t,t})(),UT=function(){return function(t){var e=de(t);return function(n){return mi(OT)(e(te.value))}}},kh=function(t){var e=Dl(t);return function(n){var r=de(n);return function(a){return function(l){return XA(function(){return PT(r(te.value),l)})(e)}}}};var Bh=y(Ut),tx=F(Xe),$T=function(t){return{initialize:function(e){return sb(e)(t.initialState)},getState:function(e){return function(){var r=Bh(qt)(fb(e))();return Ft(t.initialState)(r)}},setState:Cm}},WT=(function(){var t=function(e){return function(n){return{initialize:function(r){return so(new _(n.initialState))(e)},getState:function(r){return Bh(Ft(n.initialState))(Qo(e))},setState:function(r){return function(a){return function(l){return function(){return so(new _(a))(e)(),Cm(r)(a)(tx(void 0))(),l()}}}}}}};return Bh(t)(ku(h.value))})();var kT=Et(Ht),BT=Y(on);var GT=UT(),JT={reflectSymbol:function(){return"__unmounted"}},nx=GT(JT),zT={reflectSymbol:function(){return"__subscriptions"}},rx=GT(zT),Sv=Et(Ut),ax=kh(Xc)(JT),HT=y(Ut),ox=kh(Zc(Sb))(zT),ux=ke(Be),ix=Ce(Dr),lx=vs(Xe)(At),cx=ux(Wn),jT=kt(fl),fx=ns(Jo),sx=Y(Od(rs(Zl))),Gh=function(t){return t},bu=(function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t})(),px={map:function(t){return function(e){return new bu(t(e.value0),e.value1)}}},VT=function(t){return{bimap:function(e){return function(n){return function(r){return new bu(n(r.value0),kT(r.value1)(function(a){return function(l){return a({dispatch:function(f){return l.dispatch(e(f))},onStop:l.onStop})}}))}}}}},QT={apply:function(t){return function(e){return new bu(t.value0(e.value0),BT(t.value1)(e.value1))}},Functor0:function(){return px}},xo={bind:function(t){return function(e){var n=e(t.value0);return new bu(n.value0,BT(t.value1)(n.value1))}},Apply0:function(){return QT}},ur={pure:function(t){return new bu(t,[])},Apply0:function(){return QT}};var KT=function(t){var e=L(t);return function(n){var r=kt(n);return function(a){return function(l){return new bu(a,kT(l)(function(f){return function(p){return e(f)(function(v){return r(p.dispatch(v))})}}))}}}};var Ci=function(t){return new bu(void 0,[t])},Xr=function(t){return Ci(tt(t))};var Ll=function(t){var e=KT(t.Monad0().Bind1())(t);return function(n){return e(void 0)([n])}},YT=function(t){return function(e){var n=nx(Ef.value),r=rx(Ef.value),a=function(b){return function(T){return function(M){return function(){var ct=Sv(Ff(b))(function(ft){return ft.init})();return e({initialState:ct.value0}).setState(b)(T)(M)()}}}},l=(function(){var b=HT(Ft(!1)),T=ax(Ef.value);return function(M){return b(T(M))}})(),f=(function(){var b=HT(Ft([])),T=ox(Ef.value);return function(M){return b(T(M))}})(),p=function(b){return function(){return ix(lx)(f(b))(),r([])(b)()}},v=function(b){return function(){var M=Sv(Ff(b))(function(G){return G.init})();return e({initialState:M.value0}).getState(b)()}},g=function(b){return function(T){return function(){var G=f(b)();return r(go(zp(T))(G))(b)()}}},d=function(b){return function(T){var M=function(G){return zp(cx(Io(0))(function(){return G({dispatch:(function(){var ct=D(T);return function(ft){return jT(ct(ft))}})(),onStop:g(T)})}))};return Gd(b)(M)}},D=function(b){return function(T){return fx(l(b))(function(){var G=v(b)(),ct=Sv(Ff(b))(function(ie){return ie.update})(),ft=ct(G)(T);return a(b)(ft.value0)(d(ft.value1)(b))()})}},C=function(b){return function(){var M=v(b)(),G=Sv(Ff(b))(function(ct){return ct.view})();return G(M)(D(b))}};return function(b){return xT(t,{def:b,init:e({initialState:b.init.value0}).initialize,render:C,componentDidMount:d(b.init.value1),componentWillUnmount:sx(n(!0))(p)})}}},Jh=function(t){return function(){var n=jT(WT)();return AT(function(r){return YT(r)(n)(t)})}},Mf=function(t){return function(e){return LT(t,function(n){var r=YT(n)($T);return function(a){return r(e(a))}})}};var vx=F(ur),dx=K(Z),Iv=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),_x={map:function(t){return function(e){return new Iv(function(n){return e.value0(function(r){return n(t(r))})})}}},mx=y(_x);var XT=function(t){return Gh(IT(t))},Sf=function(t){return new Iv(function(e){return e(t)})},Al=function(t){return function(e){return new Iv(function(n){return Mf(t)(e)(n)})}},ZT=function(t){return function(e){return Mf(t)(function(n){return{init:vx(void 0),update:tt($o),view:tt(tt(e.value0(dx)))}})(void 0)}},tC=function(t){var e=XT({skipFrames:3,prefix:"WithHook"});return function(n){return ZT(e)(mx(n)(t))}};var Lv=function(t){var e=XT({skipFrames:3,prefix:"HooksComponent"});return ZT(e)(t)},Av=function(){return function(t){return function(e){return new Iv(function(n){return t.value0(function(r){var a=e(r);return a.value0(n)})})}}},hx=Av(),xv=function(t){return function(){return hx}};var eC=pf(kp);var nC={map:function(t){return function(e){return eC(eC(t))(e)}}},gx=Et(nC),Dx=function(t){var e=L(t.Monad0().Bind1()),n=kt(t);return function(r){return Ci(function(a){return e(r(a.dispatch))(function(l){return n(a.onStop(l))})})}},Nv=function(t){var e=Dx(t);return function(n){return function(r){return e(gx(r)(n))}}};var aC=ke(Be)(xo),yx=Nv(nn),bx=K(Z),oC=F(ur),zh=function(t){return function(e){return Al("UseSubscription")(function(n){return{init:aC(yx(bx)(t))(function(){return oC(void 0)}),update:function(r){return function(a){return aC(Xr(e(a)))(function(){return oC(void 0)})}},view:function(r){return function(a){return n(void 0)}}}})}};var Rx=function(t){return t},Ka=gn(null);var jh=function(t){return Rx(gn(t))};function Vh(t){return function(){return function(e){return t(e)()}}}function Qh(t){return function(e){return function(n){return function(r){return function(){return r.addEventListener(t,e,n)}}}}}function Kh(t){return function(e){return function(n){return function(r){return function(){return r.removeEventListener(t,e,n)}}}}}var Ei=function(){return window};var Yh=A;var uC=A;function xl(t){return function(){return t.document}}var lC=A;var cC="message";var fC="hashchange";var sC="popstate";var pC="keyup",vC="keydown";var dC="mouseup";var _C="mousemove";var mC=kt(nn),hC=y(Ut),vN=Ce(Dr),gC=(function(){var t=function(r){return function(a){return function(l){return mC(function(){var p=a(),v=Vh(function(g){return l(g)})();return Qh(r)(v)(!1)(p)(),mC(Kh(r)(v)(!1)(p))})}}},e=function(r){return t(r)(hC(lC)(Ei))},n=function(r){return t(r)(hC(uC)(vN(xl)(Ei)))};return{hashchange:e(fC),mousemove:e(_C),mouseup:e(dC),popstate:e(sC),resize:e("resize"),message:e(cC),keydown:n(vC),keyup:n(pC),selectionchange:n("selectionchange"),visibilitychange:n("visibilitychange")}})();var _N=F(Xe),mN=vo(),DC=function(t){return{handleMaybe:function(e){return function(n){return di((function(){var r=Mt(_N(void 0))(e);return function(a){return r(mN(n(a)))}})())}}}};var yC={handleEffect:function(t){return di(t)}},bC={handleEffect:function(t){return di(tt(t))}};var eg=function(t){return t.handleMaybe},If=function(t){return t.handleEffect};var wC=function(t){var e=Lm(t);return function(){return function(){return e("button")}}};var RC=function(t){var e=Lm(t);return function(){return function(){return e("a")}}};var m$=If(yC),FC=nu()(),wu=function(t){return m$(t)},Mi=function(t){var e=wC(t)()();return function(){return function(){return function(n){return function(r){return function(a){return function(l){return e(FC(a)({className:n,"aria-label":r}))(l)}}}}}}};var Uv=function(t){var e=RC(t)()();return function(){return function(){return function(n){return function(r){return function(a){return function(l){return e(FC(a)({className:n,"aria-label":r}))(l)}}}}}}};pu();var EC=va.Fragment;function IC(t){return function(e){return function(){return e.getElementById(t)}}}var T$=y(Ut),ag=function(t){var e=T$(qt),n=IC(t);return function(r){return e(n(r))}};var Wv=function(t){return function(e){return function(){return e[t]}}},C$=Wv("children"),F$=Wv("firstElementChild"),E$=Wv("lastElementChild"),M$=Wv("childElementCount");var A$=y(Ht);var ha=Ot(Mt(sr));var xC=function(t){return function(e){if(t)return e(void 0);if(ut)return sr;throw new Error("Failed pattern match at Utils.HTML (line 100, column 1 - line 100, column 61): "+[t.constructor.name,e.constructor.name])}},og=function(t){return function(e){return xC(t)(tt(e))}};var x$=_a()(Se)(EC),N$=function(t){return function(e){return x$({key:t.key})(mc(Cp(""))(A$(ze)(Wa(` `)(e))))}},ug=N$({key:""});var NC=function(){return A};var qv=We(Je),lg=su(),O$=ET(Je)()(),ig=Eo(Je)()(),U$=Eo(Se)()(),$$=We(Se),W$=Mi(oe)()(),H$=Or(vr),q$=kt(nn),PC=NC(),cg=function(){return function(t){var e=qv("modal-backdrop fade show")(sr),n=lg(t),r=n.id+"-description",a=fu(n.footer),l=fu(n.header),f=n.id+"-label",p={style:en(n.dialogStyle)(hi({})),role:"dialog","aria-modal":"true","aria-labelledby":(function(){if(l instanceof _)return f;if(l instanceof h)return"";throw new Error("Failed pattern match at Bootstrap.Modal (line 71, column 9 - line 73, column 24): "+[l.constructor.name])})(),"aria-describedby":r},v=en(n.size)(Nh.value),g=wr(" ")([(function(){var D=en(n.scrollable)(!0);return D?"modal-dialog-scrollable":""})(),(function(){var D=en(n.centered)(!0);return D?"modal-dialog-centered":""})(),tT(v),en(n.dialogClass)("")]),d=O$({focusTrapOptions:{escapeDeactivates:!1,fallbackFocus:".modal-content",allowOutsideClick:!0}})(qv("modal fade show d-block")(ig("modal-dialog "+g)(p)(U$("modal-content "+en(n.contentClass)(""))({style:en(n.contentStyle)(hi({}))})([ha(l)(ig("modal-header "+en(n.headerClass)(""))({id:f})),ig("modal-body "+en(n.bodyClass)(""))({id:r})(n.body),ha(a)(qv("modal-footer "+en(n.footerClass)("")))]))));return Un([d,e])}},OC=cg(),UC=function(){return function(t){var e=lg(t),n=$$("d-flex w-100 justify-content-between align-items-center")([qv("mr-4")(en(e.title)(sr)),W$("btn btn-link large mr-n3 py-0 fe fe-x t--close "+en(e.dismissButtonClass)("text-body"))(jh("Close"))({type:"button",onClick:wu(function(a){return e.onDismiss})})("")]),r=function(a){return H$(a.key==="Escape")(q$(e.onDismiss))};return tC(zh(gC.keyup)(r))(function(a){var l=en(e.bodyScrollable)(!1);return OC(l?(function(){var f=lg(PC(e));return{body:f.body,bodyClass:f.bodyClass,centered:f.centered,contentClass:f.contentClass,contentStyle:f.contentStyle,dialogClass:f.dialogClass,dialogStyle:f.dialogStyle,footer:f.footer,footerClass:f.footerClass,headerClass:f.headerClass,id:f.id,scrollable:f.scrollable,size:f.size,header:n}})():PC({bodyClass:e.bodyClass,bodyScrollable:e.bodyScrollable,centered:e.centered,contentClass:e.contentClass,contentStyle:e.contentStyle,dialogClass:e.dialogClass,dialogStyle:e.dialogStyle,dismissButtonClass:e.dismissButtonClass,footer:e.footer,footerClass:e.footerClass,headerClass:e.headerClass,id:e.id,onDismiss:e.onDismiss,scrollable:e.scrollable,size:e.size,title:e.title,body:Un([n,e.body])}))})}};function $C({containerSelector:t,onSubmit:e}){return function(){let n=document.createElement("script");n.setAttribute("charset","utf-8"),n.setAttribute("type","text/javascript"),n.src="//js.hsforms.net/forms/embed/v2.js",n.onload=function(){hbspt.forms.create({region:"na1",portalId:"24165363",formId:"3d13cd67-9301-4d68-b35e-3794438af95a",target:t,onFormSubmitted:((r,a)=>{let l=a.submissionValues,f={email:l.email,name:`${l.firstname} ${l.lastname}`.trim(),free_form_school_name:l.company,title:l.jobtitle};e(f)()})})},document.querySelector(t).appendChild(n)}}var WC=function(t){return $C({containerSelector:t.containerSelector,onSubmit:function(e){return t.onSubmit(Up(e))}})};pu();var fg=class extends va.Component{componentDidUpdate(e){this.props.componentDidUpdate(e.deps)}render(){return this.props.children}},HC=fg;var z$=Te();var qC=function(t){return"ref:"+de(t)(te.value)},kC=function(t){var e=qC(t);return function(n){return z$(zc(e)(n))}},BC=function(t){var e=qC(t);return function(n){return Em(e)(n)}};var V$=_a(),GC=ke(Be)(xo),JC=F(ur),Q$=eg(DC(rw)),jC={reflectSymbol:function(){return"deps"}},K$=kC(jC),Y$=BC(jC),X$=K(Z);var Z$=function(t){var e=V$(t);return function(){return function(){return e(HC)}}},tW=Z$(Je)()(),eW=function(t){var e=Uu(t);return function(n){return function(r){return function(a){return function(l){return Al(n)(function(f){return r({init:GC(Xr(l(a)))(function(){return JC(a)}),update:function(p){return function(v){return GC(Xr(l(v)))(function(){return JC(v)})}},view:function(p){return function(v){return tW({componentDidUpdate:Q$(v)(function(g){var d=e(K$(g))(a);return d?new _(a):h.value}),deps:Y$(a)})(f(void 0))}}})})}}}}},nW=eW(tc);var sg=function(t){return nW("UseEffect")(X$)(void 0)(tt(t))};var Nl=We(Se),QC=Kc(),KC=jr(oe),YC=mu(oe),rW=Et(Ht),aW=Ja(Se),oW=Ga(oe),uW=Uv(oe)()(),iW=Mi(oe)()(),lW=If(bC),cW=UC(),pg=We(oe),fW=Eo(Je)()(),sW=xv(Be)(),pW=kt(nn),vW=cg(),XC=function(t){var e=Nl("d-flex align-items-center")([QC("")({src:"/img/data_lab/email_content_optimizer/sage-branding.svg",alt:ml.value,height:"48",width:"48"}),Nl("d-flex flex-column ml-3")([KC("mb-2")("Report methodology"),YC("text-secondary")("Powered by Sage")])]),n=[{label:"How these scores are generated",description:` The ratings in this report are built from a dataset of more than 20,000 student ratings of real college emails. They reflect a projection of how students will react to your marketing emails. `},{label:"Overall score",description:"How engaging will this email be for high school students."},{label:"Subject line score",description:"Will students open this email? A higher score = a higher likelihood of opening this email."},{label:"Spam Factor",description:"How spammy the email feels to student readers (lower score = more spammy)."},{label:"School Perception",description:"The impact of this email on a student\u2019s perception of your school."},{label:"Quality",description:"The strength of your email for a student audience."},{label:"Readability",description:"How easy the email is to read."}],r=Nl("mt-4")([Un(rW(n)(function(a){return aW("")([oW("")(a.label+": "),ze(a.description)])})),Nl("mt-4 d-flex align-items-center justify-content-between")([uW("")(Ka)({href:"https://go.collegevine.com/hubfs/Email%20Content%20Optimizer%20(ECO)%20Methodology.pdf",target:"_blank"})("Full methodology"),iW("btn btn-dark w-25")(Ka)({onClick:lW(t.onDismiss)})("Ok")])]);return cW({id:"report-methodology-modal",title:e,onDismiss:t.onDismiss,body:r})},ZC=function(t){var e=Un([Nl("d-flex align-items-center")([QC("")({src:"/img/data_lab/email_content_optimizer/sage-branding.svg",alt:ml.value,height:"48",width:"48"}),Nl("d-flex flex-column ml-3")([KC("mb-2")("Email Content Optimizer"),YC("text-secondary")("Powered by Sage")])]),pg("mt-4")("AI-powered benchmarks for your marketing emails"),pg("mt-2")("Built from a dataset of 20,000+ student ratings"),pg("mt-2")("Targeted suggestions for improvement based on real student feedback"),fW("mt-4")({id:"t--eco-registration-modal"})(Lv(sW(sg(pW(WC({containerSelector:"#t--eco-registration-modal",onSubmit:t.onSubmit}))))(function(){return Sf(sr)})))]);return vW({id:"eco-registration-modal",body:e})};var _W=S(ae),mW=br(At)(Zn),tF=function(t){var e=Vc(t);return function(){return function(){return e("text")}}};var hW=function(){return function(){return dl("path")}},gW=hW()();var eF=function(t){var e=function(p){return _W(Do(p))},n=function(p){return function(v){return e(p*v.x)+(" "+e(p*v.y))}},r=function(p){return{x:t.center.x+W_(p),y:t.center.y-H_(p)}},a=r(t.angle1),l=r(t.angle0),f=(function(){var p=t.angle1-t.angle0>ul;return p?"1":"0"})();return gW("")({d:mW([" M ",n(t.outerRadius)(l)," A ",e(t.outerRadius)," ",e(t.outerRadius)," 0 ",f," 0 ",n(t.outerRadius)(a)," L ",n(t.innerRadius)(a)," A ",e(t.innerRadius)," ",e(t.innerRadius)," 0 ",f," 1 ",n(t.innerRadius)(l)," Z"]),fill:t.fill,stroke:t.stroke.color,strokeWidth:t.stroke.width})};var yW=tF(oe)()(),bW=su(),wW=bp(Se)()(),nF=function(){return function(t){var e=function(v){return eF({center:{x:0,y:0},angle0:v.start,angle1:v.end,innerRadius:v.innerRadius,outerRadius:v.outerRadius,fill:v.fill,stroke:{color:"",width:0}})},n=function(v){return yW("")({x:"0",y:"0",dominantBaseline:"middle",textAnchor:"middle",fontSize:v.fontSize})(v.text)},r=ul*1.02/2,a=ul*2.48,l=e({start:r,end:a,fill:"#D2DDEC",innerRadius:80,outerRadius:85}),f=bW(t),p=e({start:r+(a-r)*(1-hn(Do(f.progress*100))/100),end:ul*2.48,fill:zR(f.fillColor),innerRadius:75,outerRadius:90});return wW("")({viewBox:"-100 -100 200 200"})([og(f.completeCircle)(l),p,ha(fu(f.centerLabel))(n)])}};var aF=We(Se),vg=We(Je),TW=Eo(Je)()(),CW=nF(),FW=jr(oe),EW=Ja(Se),MW=Ga(oe),rF=function(t){return function(e){return aF("text-center flex-grow-1 "+t.extraClass)([ze(t.label),vg("mt-2")(e)])}},oF=function(t){var e=rF({label:"Subject Line score",extraClass:""}),n=rF({label:"Overall score",extraClass:"border-right"}),r=function(a){return TW("mx-auto")({style:hi({height:"80px",width:"80px"})})(CW({progress:Mt(0)(function(l){return l/100})(a),completeCircle:!0,fillColor:Mt(bf.value)(VR)(a),centerLabel:{text:jR(a),fontSize:"40px"}}))};return Un([FW("mb-2")("Email performance scores"),EW("text-secondary")([ze("Powered by AI and "),MW("")("20,000+ student ratings"),ze(" of real college emails.")]),aF("row mt-4")((function(){if(t.scores instanceof Qa)return[n(r(t.scores.value0.overall.body)),e(r(t.scores.value0.overall.subject))];if(t.scores instanceof Yr)return[n(vg("pt-3")(Ri({extraClass:new _("spinner-xl")}))),e(vg("pt-3")(Ri({extraClass:new _("spinner-xl")})))];if(t.scores instanceof Cr)return[n(r(h.value)),e(r(h.value))];throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.OverallScores (line 23, column 24 - line 39, column 12): "+[t.scores.constructor.name])})())])};var IW=S(kb),uF=function(t){return function(e){return t.ecoBaseUrl+("?uid="+IW(e))}},iF="https://partners.collegevine.com/#contact-form";var LW=jr(oe),AW=Ja(Se),xW=Uv(Je)()(),NW=Ga(oe),cF=We(Se),PW=Na(Ku),OW=We(Je),UW=We(oe),$W=S(ae),dg=function(t){if(t instanceof h)return sr;if(t instanceof _)return Un([LW("")("Student persona breakdown"),AW("text-secondary")([ze(` The performance of this email is impacted by how well it lines up with a student\u2019s college goals and preferences. The table below shows a ranking of how this email will perform with students based on their CollegeVine persona. `),xW("")(Ka)({href:iF,target:"_blank"})(NW("text-success")(" Schedule a demo")),ze(" to learn how you can make your existing marketing content more effective by adding student personas to your CRM.")]),cF("row mt-4")(PW(function(e){return function(n){return cF("col-4 col-md text-center mt-2 mt-md-0")([OW("mb-0")(Hb(n)({height:"71",width:"50",alt:ml.value})),UW("text-secondary mt-3")($W(e+1|0)+(". "+Wb(n)))])}})(t.value0.rankedPersonas))]);throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.PersonaBreakdown (line 13, column 1 - line 13, column 37): "+[t.constructor.name])};var HW=mu(oe),qW=jr(oe),kW=Ja(Se),BW=Ga(oe),GW=We(Je),kv=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),_g=(function(){function t(){}return t.value=new t,t})(),Pl=function(t){var e=ha(t)(function(n){if(n instanceof kv)return ug(n.value0);if(n instanceof _g)return HW("text-danger")("Something went wrong. Please refresh the page and contact support if the problem persists.");throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.Suggestions (line 25, column 32 - line 28, column 99): "+[n.constructor.name])});return Un([qW("mb-3")("Top suggestions"),kW("text-secondary")([ze("Suggestions are based on a model trained by "),BW("")("real student feedback"),ze(".")]),GW("mt-3")(e)])};var jW=za();var fF=L(_e),sF=Dl(jW(ue({reflectSymbol:function(){return"value"}})(Ie)(jn))),pF=F(_n);var vF=function(t){return Ft("")(fF(sF(gn(t.target)))(function(e){return pF(e.value)}))};var dF=function(t){return Ft("")(fF(sF(gn(t.target)))(function(e){return pF(e.value)}))};var Bv=t=>()=>{try{navigator.clipboard.writeText(t)}catch(e){KW(e),QW(t)}},QW=t=>{var e=document.createElement("textarea");document.body.appendChild(e),e.value=t,e.select(),document.execCommand("copy"),document.body.removeChild(e)},KW=t=>{if(typeof window<"u"){let e=new Error("Unable to write text to clipboard using Clipboard API. Falling back to execCommand.");typeof window.Sentry<"u"&&window.Sentry.captureException(e,{extra:t})}};var mF=JSON.stringify;var hF=function(){return mF};function DF(t,e){typeof CV<"u"&&CV.tracking&&CV.tracking.event(t,e)}var cH=Mm();var fH=function(t){var e=kt(t);return function(n){return function(r){return e(function(){return DF(n,r)})}}},bF=function(t){var e=fH(t);return function(){return function(n){return function(r){return e(n)(cH(r))}}}};pu();var RF=Ad(wF(),1),Ya=typeof CV<"u"&&CV.pusherConfig||typeof global<"u"&&global.CV&&global.CV.pusherConfig,{acquireConnection:vH,releaseConnection:dH}=(()=>{let t=null,e=0,n=()=>{if(!Ya||!Ya.key)return Ya||console.error("Pusher config is missing in global context"),new _H;let r={auth:{headers:{"X-CSRF-Token":Ya.authToken}},authEndpoint:Ya.authPath,cluster:Ya.cluster};return Ya.dev&&Object.assign(r,{wsHost:Ya.dev.wsHost,wsPort:Ya.dev.wsPort,enabledTransports:["ws"],forceTLS:!1,disableStats:!0}),new RF.default(Ya.key,r)};return{acquireConnection:()=>(t||(t=n(),e=0),e++,t),releaseConnection:()=>{--e<=0&&(t&&t.disconnect(),t=null)}}})(),TF=t=>{let e=vH().subscribe(t.channel);return e.bind(t.event,t.handler),()=>{e.unbind(t.event,t.handler),dH()}};function _H(){typeof document<"u"&&(document.mockPusher=this),this.localObject={},this.channels=[],this.disconnect=function(){document.mockPusher=null},this.subscribe=function(t){let e=this.channels.find(r=>r.name===t);if(e)return e;let n=new mH(t);return this.channels.push(n),n},this.channelNames=function(){return this.channels.map(t=>t.name)}}function mH(t){this.name=t,this.handlers={},this.triggered=[],this.disconnect=()=>{},this.bind=function(e,n){this.handlers[e]=n},this.unbind=function(e,n){this.handlers[e]===n&&(this.handlers[e]=null)},this.trigger=function(e,n){this.triggered.push({eventName:e,eventData:n})}}var EF=function(t,e,n){var r=0,a;return function(l){if(r===2)return a;if(r===1)throw new ReferenceError(t+" was needed before it finished initializing (module "+e+", line "+l+")",e,l);return r=1,a=n(),r=2,a}};var qn=(function(){function t(){}return t.value=new t,t})(),Hn=(function(){function t(e,n,r,a,l,f){this.value0=e,this.value1=n,this.value2=r,this.value3=a,this.value4=l,this.value5=f}return t.create=function(e){return function(n){return function(r){return function(a){return function(l){return function(f){return new t(e,n,r,a,l,f)}}}}}},t})(),MF=(function(){function t(){}return t.value=new t,t})(),gg=(function(){function t(e,n,r){this.value0=e,this.value1=n,this.value2=r}return t.create=function(e){return function(n){return function(r){return new t(e,n,r)}}},t})(),bg=(function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t})();var jv=(function(){function t(e,n,r){this.value0=e,this.value1=n,this.value2=r}return t.create=function(e){return function(n){return function(r){return new t(e,n,r)}}},t})();var Zr=function(t,e,n,r){if(n instanceof qn){if(r instanceof qn)return new Hn(1,1,t,e,n,r);if(r instanceof Hn)return new Hn(1+r.value0|0,1+r.value1|0,t,e,n,r);throw new Error("Failed pattern match at Data.Map.Internal (line 702, column 5 - line 706, column 39): "+[r.constructor.name])}if(n instanceof Hn){if(r instanceof qn)return new Hn(1+n.value0|0,1+n.value1|0,t,e,n,r);if(r instanceof Hn)return new Hn(1+(function(){var a=n.value0>r.value0;return a?n.value0:r.value0})()|0,(1+n.value1|0)+r.value1|0,t,e,n,r);throw new Error("Failed pattern match at Data.Map.Internal (line 708, column 5 - line 712, column 68): "+[r.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 700, column 32 - line 712, column 68): "+[n.constructor.name])},SF=(function(){return Ot(bg.create)(MF.value)})(),DH=function(t){return function(e){return function(n){var r=function(a){var l=!1,f;function p(v){if(v instanceof MF)return l=!0,n(void 0);if(v instanceof gg)return l=!0,e(v.value0,v.value1,v.value2);if(v instanceof bg){a=t(v.value1)(v.value0);return}throw new Error("Failed pattern match at Data.Map.Internal (line 940, column 8 - line 946, column 20): "+[v.constructor.name])}for(;!l;)f=p(a);return f};return r}}};var Lf=function(t){return function(e){return new Hn(1,1,t,e,qn.value,qn.value)}},Vv=(function(){var t=function(r){if(r instanceof qn)return 0;if(r instanceof Hn)return r.value0;throw new Error("Failed pattern match at Data.Map.Internal (line 757, column 12 - line 759, column 26): "+[r.constructor.name])},e=function(r,a,l,f,p,v,g){return v instanceof Hn&&v.value0>t(g)?Zr(v.value2,v.value3,Zr(r,a,l,v.value4),Zr(f,p,v.value5,g)):Zr(f,p,Zr(r,a,l,v),g)},n=function(r,a,l,f,p,v,g){return v instanceof Hn&&t(p)<=v.value0?Zr(v.value2,v.value3,Zr(l,f,p,v.value4),Zr(r,a,v.value5,g)):Zr(l,f,p,Zr(r,a,v,g))};return function(r,a,l,f){if(l instanceof qn)return f instanceof qn?Lf(r)(a):f instanceof Hn&&f.value0>1?e(r,a,l,f.value2,f.value3,f.value4,f.value5):Zr(r,a,l,f);if(l instanceof Hn){if(f instanceof Hn){if(f.value0>(l.value0+1|0))return e(r,a,l,f.value2,f.value3,f.value4,f.value5);if(l.value0>(f.value0+1|0))return n(r,a,l.value2,l.value3,l.value4,l.value5,f)}return f instanceof qn&&l.value0>1?n(r,a,l.value2,l.value3,l.value4,l.value5,f):Zr(r,a,l,f)}throw new Error("Failed pattern match at Data.Map.Internal (line 717, column 40 - line 738, column 34): "+[l.constructor.name])}})(),Dg=EF("unsafeSplit","Data.Map.Internal",function(){return function(t,e,n){if(n instanceof qn)return new jv(h.value,qn.value,qn.value);if(n instanceof Hn){var r=t(e)(n.value2);if(r instanceof B){var a=Dg(793)(t,e,n.value4);return new jv(a.value0,a.value1,Vv(n.value2,n.value3,a.value2,n.value5))}if(r instanceof W){var a=Dg(796)(t,e,n.value5);return new jv(a.value0,Vv(n.value2,n.value3,n.value4,a.value1),a.value2)}if(r instanceof dt)return new jv(new _(n.value3),n.value4,n.value5);throw new Error("Failed pattern match at Data.Map.Internal (line 791, column 5 - line 799, column 30): "+[r.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 787, column 34 - line 799, column 30): "+[n.constructor.name])}}),yH=Dg(786);var yg=EF("unsafeUnionWith","Data.Map.Internal",function(){return function(t,e,n,r){if(n instanceof qn)return r;if(r instanceof qn)return n;if(r instanceof Hn){var a=yH(t,r.value2,n),l=yg(809)(t,e,a.value1,r.value4),f=yg(810)(t,e,a.value2,r.value5);if(a.value0 instanceof _)return Vv(r.value2,e(a.value0.value0)(r.value3),l,f);if(a.value0 instanceof h)return Vv(r.value2,r.value3,l,f);throw new Error("Failed pattern match at Data.Map.Internal (line 811, column 5 - line 815, column 46): "+[a.value0.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 804, column 42 - line 815, column 46): "+[n.constructor.name,r.constructor.name])}}),bH=yg(803),wg=function(t){var e=V(t);return function(n){return function(r){return function(a){return bH(e,n,r,a)}}}},Qv=function(t){return wg(t)(tt)};var wH=(function(){var t=function(e){return function(n){var r=e,a=!1,l;function f(p,v){if(v instanceof qn)return a=!0,p;if(v instanceof Hn){if(v.value5 instanceof qn){r=new gg(v.value2,v.value3,p),n=v.value4;return}r=new gg(v.value2,v.value3,new bg(v.value5,p)),n=v.value4;return}throw new Error("Failed pattern match at Data.Map.Internal (line 951, column 13 - line 958, column 48): "+[v.constructor.name])}for(;!a;)l=f(r,n);return l}};return t})(),IF=DH(wH);var RH=(function(){var t=function(e,n,r){return new _(new et(new et(e,n),r))};return IF(t)(function(e){return h.value})})(),Si=function(t){var e=la(t)(RH);return function(n){return e(SF(n))}};var Ii=(function(){return qn.value})();var FH=function(t,e,n){var r=new Date(Date.UTC(t,e,n));return t>=0&&t<100&&r.setUTCFullYear(t),r};function LF(t,e,n,r){var a=FH(e,n-1,r);return t(a.getUTCFullYear())(a.getUTCMonth()+1)(a.getUTCDate())}var Tg=function(t,e,n){var r=0,a;return function(l){if(r===2)return a;if(r===1)throw new ReferenceError(t+" was needed before it finished initializing (module "+e+", line "+l+")",e,l);return r=1,a=n(),r=2,a}};var dr=(function(){function t(){}return t.value=new t,t})(),Fr=(function(){function t(){}return t.value=new t,t})(),Er=(function(){function t(){}return t.value=new t,t})(),Mr=(function(){function t(){}return t.value=new t,t})(),Sr=(function(){function t(){}return t.value=new t,t})(),Ir=(function(){function t(){}return t.value=new t,t})(),Lr=(function(){function t(){}return t.value=new t,t})(),Ar=(function(){function t(){}return t.value=new t,t})(),xr=(function(){function t(){}return t.value=new t,t})(),Nr=(function(){function t(){}return t.value=new t,t})(),Pr=(function(){function t(){}return t.value=new t,t})(),ta=(function(){function t(){}return t.value=new t,t})();var Yv=le,Xv=le,AF=ir;var Cg={eq:function(t){return function(e){return t instanceof dr&&e instanceof dr||t instanceof Fr&&e instanceof Fr||t instanceof Er&&e instanceof Er||t instanceof Mr&&e instanceof Mr||t instanceof Sr&&e instanceof Sr||t instanceof Ir&&e instanceof Ir||t instanceof Lr&&e instanceof Lr||t instanceof Ar&&e instanceof Ar||t instanceof xr&&e instanceof xr||t instanceof Nr&&e instanceof Nr||t instanceof Pr&&e instanceof Pr||t instanceof ta&&e instanceof ta}}},Zv={compare:function(t){return function(e){if(t instanceof dr&&e instanceof dr)return dt.value;if(t instanceof dr)return B.value;if(e instanceof dr)return W.value;if(t instanceof Fr&&e instanceof Fr)return dt.value;if(t instanceof Fr)return B.value;if(e instanceof Fr)return W.value;if(t instanceof Er&&e instanceof Er)return dt.value;if(t instanceof Er)return B.value;if(e instanceof Er)return W.value;if(t instanceof Mr&&e instanceof Mr)return dt.value;if(t instanceof Mr)return B.value;if(e instanceof Mr)return W.value;if(t instanceof Sr&&e instanceof Sr)return dt.value;if(t instanceof Sr)return B.value;if(e instanceof Sr)return W.value;if(t instanceof Ir&&e instanceof Ir)return dt.value;if(t instanceof Ir)return B.value;if(e instanceof Ir)return W.value;if(t instanceof Lr&&e instanceof Lr)return dt.value;if(t instanceof Lr)return B.value;if(e instanceof Lr)return W.value;if(t instanceof Ar&&e instanceof Ar)return dt.value;if(t instanceof Ar)return B.value;if(e instanceof Ar)return W.value;if(t instanceof xr&&e instanceof xr)return dt.value;if(t instanceof xr)return B.value;if(e instanceof xr)return W.value;if(t instanceof Nr&&e instanceof Nr)return dt.value;if(t instanceof Nr)return B.value;if(e instanceof Nr)return W.value;if(t instanceof Pr&&e instanceof Pr)return dt.value;if(t instanceof Pr)return B.value;if(e instanceof Pr)return W.value;if(t instanceof ta&&e instanceof ta)return dt.value;throw new Error("Failed pattern match at Data.Date.Component (line 0, column 0 - line 0, column 0): "+[t.constructor.name,e.constructor.name])}},Eq0:function(){return Cg}},xF=ir,NF=(function(){return{bottom:-271820,top:275759,Ord0:function(){return Yv}}})();var PF=(function(){return{bottom:dr.value,top:ta.value,Ord0:function(){return Zv}}})(),ga={cardinality:547580,toEnum:function(t){if(t>=-271820&&t<=275759)return new _(t);if(ut)return h.value;throw new Error("Failed pattern match at Data.Date.Component (line 35, column 1 - line 40, column 24): "+[t.constructor.name])},fromEnum:function(t){return t},Bounded0:function(){return NF},Enum1:function(){return MH(0)}},MH=Tg("enumYear","Data.Date.Component",function(){return{succ:(function(){var t=Jt(ga),e=Kt(ga);return function(n){return t((function(r){return r+1|0})(e(n)))}})(),pred:(function(){var t=Jt(ga),e=Kt(ga);return function(n){return t((function(r){return r-1|0})(e(n)))}})(),Ord0:function(){return Yv}}});var _r={cardinality:12,toEnum:function(t){return t===1?new _(dr.value):t===2?new _(Fr.value):t===3?new _(Er.value):t===4?new _(Mr.value):t===5?new _(Sr.value):t===6?new _(Ir.value):t===7?new _(Lr.value):t===8?new _(Ar.value):t===9?new _(xr.value):t===10?new _(Nr.value):t===11?new _(Pr.value):t===12?new _(ta.value):h.value},fromEnum:function(t){if(t instanceof dr)return 1;if(t instanceof Fr)return 2;if(t instanceof Er)return 3;if(t instanceof Mr)return 4;if(t instanceof Sr)return 5;if(t instanceof Ir)return 6;if(t instanceof Lr)return 7;if(t instanceof Ar)return 8;if(t instanceof xr)return 9;if(t instanceof Nr)return 10;if(t instanceof Pr)return 11;if(t instanceof ta)return 12;throw new Error("Failed pattern match at Data.Date.Component (line 87, column 14 - line 99, column 19): "+[t.constructor.name])},Bounded0:function(){return PF},Enum1:function(){return SH(0)}},SH=Tg("enumMonth","Data.Date.Component",function(){return{succ:(function(){var t=Jt(_r),e=Kt(_r);return function(n){return t((function(r){return r+1|0})(e(n)))}})(),pred:(function(){var t=Jt(_r),e=Kt(_r);return function(n){return t((function(r){return r-1|0})(e(n)))}})(),Ord0:function(){return Zv}}});var Fg={bottom:1,top:31,Ord0:function(){return Xv}},Za={cardinality:31,toEnum:function(t){if(t>=1&&t<=31)return new _(t);if(ut)return h.value;throw new Error("Failed pattern match at Data.Date.Component (line 133, column 1 - line 138, column 23): "+[t.constructor.name])},fromEnum:function(t){return t},Bounded0:function(){return Fg},Enum1:function(){return IH(0)}},IH=Tg("enumDay","Data.Date.Component",function(){return{succ:(function(){var t=Jt(Za),e=Kt(Za);return function(n){return t((function(r){return r+1|0})(e(n)))}})(),pred:(function(){var t=Jt(Za),e=Kt(Za);return function(n){return t((function(r){return r-1|0})(e(n)))}})(),Ord0:function(){return Xv}}});var xH=Kt(_r),NH=Te();var PH=Q(AF),OH=Q(Cg),UH=Q(xF),$H=V(Yv),WH=V(Zv),HH=V(Xv);var qH=Jt(_r);var kH=(function(){function t(e,n,r){this.value0=e,this.value1=n,this.value2=r}return t.create=function(e){return function(n){return function(r){return new t(e,n,r)}}},t})();var Mg={eq:function(t){return function(e){return PH(t.value0)(e.value0)&&OH(t.value1)(e.value1)&&UH(t.value2)(e.value2)}}};var BF={compare:function(t){return function(e){var n=$H(t.value0)(e.value0);if(n instanceof B)return B.value;if(n instanceof W)return W.value;var r=WH(t.value1)(e.value1);return r instanceof B?B.value:r instanceof W?W.value:HH(t.value2)(e.value2)}},Eq0:function(){return Mg}};var Ol=function(t){return function(e){return function(n){var r=function(a){return function(l){return function(f){return new kH(a,NH(qH(l)),f)}}};return LF(r,t,xH(e),n)}}};var td=function(t,e,n){var r=0,a;return function(l){if(r===2)return a;if(r===1)throw new ReferenceError(t+" was needed before it finished initializing (module "+e+", line "+l+")",e,l);return r=1,a=n(),r=2,a}};var ed=le,nd=le,rd=le,ad=le,GF=ir,JF=ir,zF=ir,jF=ir,Sg={bottom:0,top:59,Ord0:function(){return ed}},Ig={bottom:0,top:59,Ord0:function(){return nd}},Lg={bottom:0,top:999,Ord0:function(){return rd}},Ag={bottom:0,top:23,Ord0:function(){return ad}},to={cardinality:60,toEnum:function(t){if(t>=0&&t<=59)return new _(t);if(ut)return h.value;throw new Error("Failed pattern match at Data.Time.Component (line 90, column 1 - line 95, column 26): "+[t.constructor.name])},fromEnum:function(t){return t},Bounded0:function(){return Sg},Enum1:function(){return GH(0)}},GH=td("enumSecond","Data.Time.Component",function(){return{succ:(function(){var t=Jt(to),e=Kt(to);return function(n){return t((function(r){return r+1|0})(e(n)))}})(),pred:(function(){var t=Jt(to),e=Kt(to);return function(n){return t((function(r){return r-1|0})(e(n)))}})(),Ord0:function(){return ed}}});var eo={cardinality:60,toEnum:function(t){if(t>=0&&t<=59)return new _(t);if(ut)return h.value;throw new Error("Failed pattern match at Data.Time.Component (line 61, column 1 - line 66, column 26): "+[t.constructor.name])},fromEnum:function(t){return t},Bounded0:function(){return Ig},Enum1:function(){return JH(0)}},JH=td("enumMinute","Data.Time.Component",function(){return{succ:(function(){var t=Jt(eo),e=Kt(eo);return function(n){return t((function(r){return r+1|0})(e(n)))}})(),pred:(function(){var t=Jt(eo),e=Kt(eo);return function(n){return t((function(r){return r-1|0})(e(n)))}})(),Ord0:function(){return nd}}});var no={cardinality:1e3,toEnum:function(t){if(t>=0&&t<=999)return new _(t);if(ut)return h.value;throw new Error("Failed pattern match at Data.Time.Component (line 120, column 1 - line 125, column 31): "+[t.constructor.name])},fromEnum:function(t){return t},Bounded0:function(){return Lg},Enum1:function(){return zH(0)}},zH=td("enumMillisecond","Data.Time.Component",function(){return{succ:(function(){var t=Jt(no),e=Kt(no);return function(n){return t((function(r){return r+1|0})(e(n)))}})(),pred:(function(){var t=Jt(no),e=Kt(no);return function(n){return t((function(r){return r-1|0})(e(n)))}})(),Ord0:function(){return rd}}});var ro={cardinality:24,toEnum:function(t){if(t>=0&&t<=23)return new _(t);if(ut)return h.value;throw new Error("Failed pattern match at Data.Time.Component (line 32, column 1 - line 37, column 24): "+[t.constructor.name])},fromEnum:function(t){return t},Bounded0:function(){return Ag},Enum1:function(){return jH(0)}},jH=td("enumHour","Data.Time.Component",function(){return{succ:(function(){var t=Jt(ro),e=Kt(ro);return function(n){return t((function(r){return r+1|0})(e(n)))}})(),pred:(function(){var t=Jt(ro),e=Kt(ro);return function(n){return t((function(r){return r-1|0})(e(n)))}})(),Ord0:function(){return ad}}});var ZH=Q(jF),tq=Q(JF),eq=Q(GF),nq=Q(zF),rq=V(ad),aq=V(nd),oq=V(ed),uq=V(rd);var $l=(function(){function t(e,n,r,a){this.value0=e,this.value1=n,this.value2=r,this.value3=a}return t.create=function(e){return function(n){return function(r){return function(a){return new t(e,n,r,a)}}}},t})();var xg={eq:function(t){return function(e){return ZH(t.value0)(e.value0)&&tq(t.value1)(e.value1)&&eq(t.value2)(e.value2)&&nq(t.value3)(e.value3)}}},VF={compare:function(t){return function(e){var n=rq(t.value0)(e.value0);if(n instanceof B)return B.value;if(n instanceof W)return W.value;var r=aq(t.value1)(e.value1);if(r instanceof B)return B.value;if(r instanceof W)return W.value;var a=oq(t.value2)(e.value2);return a instanceof B?B.value:a instanceof W?W.value:uq(t.value3)(e.value3)}},Eq0:function(){return xg}};var cq=Q(Mg),fq=Q(xg),sq=V(BF),pq=V(VF);var xi=(function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t})();var KF={eq:function(t){return function(e){return cq(t.value0)(e.value0)&&fq(t.value1)(e.value1)}}},YF={compare:function(t){return function(e){var n=sq(t.value0)(e.value0);return n instanceof B?B.value:n instanceof W?W.value:pq(t.value1)(e.value1)}},Eq0:function(){return KF}};var cd=function(t){return function(){console.error(t)}};var yE=function(t){var e=kt(t);return function(n){return e(cd(n))}};var Dk=F(Xe),bE=L(Dr),yk=y(Ut),bk=yE(fl),Gg=function(t){var e=function(r){var a=t(r);return Tm(a.view(a.init.value0)(tt(Dk(void 0))))},n=function(r){return function(a){return function(l){return function(){var p=bE(bE(Ei)((function(){var g=yk(Yh);return function(d){return g(xl(d))}})()))(ag(a))();if(p instanceof h)return bk("Element #"+(a+" not found"))();if(p instanceof _){var v=Jh(t(l))();return r(v)(p.value0)()}throw new Error("Failed pattern match at Elmish.Boot (line 117, column 11 - line 122, column 21): "+[p.constructor.name])}}}};return{mount:n(lb),renderToString:e,hydrate:n(cb)}};var CE=F(ur),Mk=gi(Lp),Sk=L(Sa);var Ik={init:CE(void 0),update:function(t){return function(e){return CE(void 0)}},view:function(t){return function(e){return sr}}},Jg=function(t){var e=ja(t);return function(n){return Gg(Mk({parse:function(r){return Sk(e(r))(function(a){return Mt(new U("Component construction failed"))(P.create)(n.def(a))})},diagnosticName:"Props for "+n.diagnosticName,default:Ik}))}};var FE=({just:t,nothing:e})=>n=>{try{let r=new Date(n);return isNaN(r.getTime())?e:t(r)}catch{return e}},zg=t=>({year:t.getFullYear(),month:t.getMonth(),day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}),EE=()=>new Date;var xk=(()=>{let t=new Date().toString(),e=(t.match(/\(([\w\s]+)\)$/)||[])[1];return e?/\s/.test(e)?(e.match(/\b(\w)/g)||[]).join(""):e:(e=(t.match(/(\w{3,4})\s\d{4}$/)||[])[1],e||(e=(t.match(/(UTC[\+\-]\d+)/)||[])[1],e)||(e=(t.match(/(GMT[\+\-]\d+)/)||[])[1],e)?e:"")})();var MEt=(function(){function t(){this.head=null,this.last=null,this.size=0}function e(d,D){this.queue=d,this.value=D,this.next=null,this.prev=null}function n(d){this.draining=!1,this.error=null,this.value=d,this.takes=new t,this.reads=new t,this.puts=new t}var r={};function a(d){try{d()}catch(D){setTimeout(function(){throw D},0)}}function l(d,D){var C=new e(d,D);switch(d.size){case 0:d.head=C;break;case 1:C.prev=d.head,d.head.next=C,d.last=C;break;default:C.prev=d.last,d.last.next=C,d.last=C}return d.size++,C}function f(d){var D;switch(d.size){case 0:return null;case 1:D=d.head,d.head=null;break;case 2:D=d.last,d.head.next=null,d.last=null;break;default:D=d.last,d.last=D.prev,d.last.next=null}return D.prev=null,D.queue=null,d.size--,D.value}function p(d){var D;switch(d.size){case 0:return null;case 1:D=d.head,d.head=null;break;case 2:D=d.head,d.last.prev=null,d.head=d.last,d.last=null;break;default:D=d.head,d.head=D.next,d.head.prev=null}return D.next=null,D.queue=null,d.size--,D.value}function v(d){if(d.queue!==null){if(d.queue.last===d){f(d.queue);return}if(d.queue.head===d){p(d.queue);return}d.prev&&(d.prev.next=d.next),d.next&&(d.next.prev=d.prev),d.queue.size--,d.queue=null,d.value=null,d.next=null,d.prev=null}}function g(d,D){if(!D.draining){var C=D.puts,b=D.takes,T=D.reads,M,G,ct,ft,ie;for(D.draining=!0;;){if(M=null,G=null,ct=null,ft=D.value,ie=T.size,D.error!==null){for(ft=d.left(D.error);M=p(C);)a(M.cb(ft));for(;G=p(T);)a(G(ft));for(;ct=p(b);)a(ct(ft));break}if(ft===r&&(M=p(C))&&(D.value=ft=M.value),ft!==r){for(ct=p(b);ie--&&(G=p(T));)a(G(d.right(ft)));ct!==null&&(D.value=r,a(ct(d.right(ft))))}if(M!==null&&a(M.cb(d.right(void 0))),D.value===r&&C.size===0||D.value!==r&&b.size===0)break}D.draining=!1}}return n.EMPTY=r,n.putLast=l,n.takeLast=f,n.takeHead=p,n.deleteCell=v,n.drainVar=g,n})();var pB=F(Xe),Tu=L(_e),vB=Jt(ga),dB=Jt(_r),_B=Jt(Za),mB=Jt(ro),hB=Jt(eo),gB=Jt(to),DB=Jt(no),yB=F(_n),bB=Ce(Dr),wB=Et(st);var AE=function(t){return Tu(vB(t.year))(function(e){return Tu(dB(t.month+1|0))(function(n){return Tu(_B(t.day))(function(r){return Tu(mB(t.hour))(function(a){return Tu(hB(t.minute))(function(l){return Tu(gB(t.second))(function(f){return Tu(DB(t.millisecond))(function(p){return yB(new xi(Ol(e)(n)(r),new $l(a,l,f,p)))})})})})})})})},RB=function(t){var e=CD("Failed to obtain current time. This should never happen.");return Mt(e)(pB)(AE(zg(t)))},Hf=bB(RB)(EE);var Gl=function(t){return Tu(wB(FE({just:_.create,nothing:h.value})(t))(zg))(AE)};var G2t=new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:"short",maximumFractionDigits:2});var eG=br(At)(Zn),nG=Br(Xe)(Yo);var rG={show:function(t){return t}},aG=S(rG);var Yg=Ie;var YE=function(t){var e=Om(t);return function(n){return function(r){return function(a){var l=eG(["Pusher event ",r," over channel ",aG(n)]),f=function(p){return nG(e(l)(p))(a)()};return function(){return TF({channel:n,event:r,handler:f})}}}}};var Zg=Ie;var dd=(function(){function t(){}return t.value=new t,t})(),Ui=(function(){function t(){}return t.value=new t,t})(),ZE={eq:function(t){return function(e){return t instanceof dd&&e instanceof dd||t instanceof Ui&&e instanceof Ui}}};var uG=yv(Dv(gv)),iG=L(Wn),lG=za(),cG=yf(lG(ue({reflectSymbol:function(){return"failureReason"}})(Ie)(ue({reflectSymbol:function(){return"success"}})(Xc)(jn))));var e1=uG("vinai_send_chatbot_message_path")(function(t){return function(e){return iG(t({conversationId:e.conversationId,message:e.message,presetTopic:gr(e.presetTopic)}))(Sl(cG("Vinai.API: sendChatbotMessage")))}});var fG=be();var sG=function(t){return fG(Wp(t))};var n2=function(t){return Qe(sG(t))};var vG=Qv(Oe),dG=Si(ho),_G=L(Dr),r2=kt(fl),a2=F(Xe),mG=tl(Xe)(Pa),hG=YE(Pm),gG=K(Z),DG=br(At)(jd(Jd)),yG=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),_d=(function(){function t(){}return t.value=new t,t})(),md=(function(){function t(){}return t.value=new t,t})();var n1={append:function(t){return function(e){return vG(e)(t)}}},bG={mempty:Ii,Semigroup0:function(){return n1}},wG=Ha(qp(bG)(mn)),o2=function(t){return t.value0.disconnect},u2=function(t){return function(e){var n=n2(e),r=dG(n);return function(){var l=r2(ku(a2(void 0)))(),f=mG(r)(function(v){return hG(t)(v.value0)(function(g){return function(){var D=v.value1(g)();if(D instanceof _d)return void 0;if(D instanceof md)return _G(Qo(l))(gG)();throw new Error("Failed pattern match at Utils.Pusher.ListenMany (line 81, column 23 - line 83, column 66): "+[D.constructor.name])}})})(),p=DG(f);return r2(so(p)(l))(),new yG({disconnect:p})}}},hd=function(t){var e=ja(t);return function(n){return function(r){return wG(Lf(n)(function(a){var l=e(a);if(l instanceof P)return r(l.value0);if(l instanceof U)return Mo(gu)("Error parsing Pusher event")({error:l.value0,event:n,value:a})(function(f){return a2(_d.value)});throw new Error("Failed pattern match at Utils.Pusher.ListenMany (line 41, column 65 - line 44, column 29): "+[l.constructor.name])}))}}};var TG=(function(){function t(){}return t.value=new t,t})(),CG=(function(){function t(){}return t.value=new t,t})(),FG=(function(){function t(){}return t.value=new t,t})();var r1=function(t){return t==="moderation_failure"?TG.value:t==="llm_failure"?CG.value:FG.value};var MG={reflectSymbol:function(){return"timestamp"}};var i1=ke(Be),kf=i1(xo),a1=L(Wn),qf=kt(nn),i2=i1(sf(n1)(Qd)),l1=za(),c2=ue({reflectSymbol:function(){return"id"}})(Ie),SG=hd(l1(ue({reflectSymbol:function(){return"delta"}})(Ie)(c2(ue(MG)(Ie)(jn))))),IG=hd(l1(ue({reflectSymbol:function(){return"body"}})(Ie)(c2(jn)))),LG=hd(l1(ue({reflectSymbol:function(){return"reason"}})(Ie)(jn))),o1=i1(Wn),gd=F(vr),c1=Ll(nn),AG=f_(Zn),xG=En(q0)(Zn),Da=F(ur),l2=Y(on),NG=Z0(YF),PG=Br(ur)(Yo),$i=(function(){function t(){}return t.value=new t,t})(),jl=(function(){function t(){}return t.value=new t,t})(),Jl=(function(){function t(){}return t.value=new t,t})(),ao=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),zl=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),f1=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),f2=(function(){function t(){}return t.value=new t,t})(),u1=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),s1=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),s2=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),p2=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),v2=(function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t})(),OG=(function(){function t(){}return t.value=new t,t})();var UG=function(t){return{delta:t.delta,id:t.id,timestamp:Gl(t.timestamp)}},d2=function(t){return function(e){var n=function(r){return function(a){return{body:a.body,sender:Ui.value,sentAt:r,id:new _(a.id)}}};return kf(Ci(function(r){return a1(qf(u2(t.receiveChannelName)(i2(SG("chat-completion-chunk")(function(a){return function(){var f=Hf();return r.dispatch(new v2(f,UG(a)))(),_d.value}}))(function(){return i2(IG("chat-completion-message-received")(function(a){return function(){var f=Hf();return r.dispatch(new s1(n(f)(a)))(),md.value}}))(function(){return LG("chat-completion-failed")(function(a){return function(){return r.dispatch(new u1(new _(r1(a.reason))))(),md.value}})})}))))(function(a){return o1(qf(r.dispatch(new p2(a))))(function(){return a1(t.sendMessage(e))(function(l){return l.success?gd(void 0):qf(r.dispatch(new u1(new _(r1(l.failureReason)))))})})})}))(function(){return c1(o1(Io(200))(function(){return gd(f2.value)}))})}},$G=function(t){return function(e){return kf(c1(a1(qf(Hf))(function(n){return gd(new s2({sender:dd.value,body:e,sentAt:n,id:h.value}))})))(function(){return d2(t)(e)})}},p1=function(t){var e=function(n){var r=Wa("$$")(n),a=ay(Bn(r));return a?AG("$$")(c_(0)(Bn(r)-1|0)(r)):n};return{sender:Ui.value,body:e(xG(function(n){return n.content})(t.deltas)),sentAt:Ns(t.deltas).timestamp,id:new _(t.id)}},WG=function(t){if(t.receivingResponse instanceof h)return Da(void 0);if(t.receivingResponse instanceof _)return t.sendingState instanceof ao?c1(o1(qf(o2(t.receivingResponse.value0)))(function(){return gd(new s1(p1(t.sendingState.value0)))})):Da(void 0);throw new Error("Failed pattern match at Vinai.Chatbot (line 297, column 1 - line 297, column 51): "+[t.constructor.name])},_2=function(t){return function(e){if(e instanceof f1)return kf($G(t)(e.value0))(function(){return Da(t)});if(e instanceof f2)return Da({messages:t.messages,receiveChannelName:t.receiveChannelName,receivingResponse:t.receivingResponse,sendMessage:t.sendMessage,sendingState:(function(){if(t.sendingState instanceof $i)return $i.value;if(t.sendingState instanceof jl||t.sendingState instanceof Jl)return Jl.value;if(t.sendingState instanceof ao)return new ao(t.sendingState.value0);if(t.sendingState instanceof zl)return new zl(t.sendingState.value0);throw new Error("Failed pattern match at Vinai.Chatbot (line 160, column 9 - line 165, column 59): "+[t.sendingState.constructor.name])})()});if(e instanceof u1)return Da({messages:t.messages,receiveChannelName:t.receiveChannelName,sendMessage:t.sendMessage,sendingState:new zl(e.value0),receivingResponse:h.value});if(e instanceof s1)return Da({receiveChannelName:t.receiveChannelName,sendMessage:t.sendMessage,messages:l2(t.messages)([e.value0]),sendingState:$i.value,receivingResponse:h.value});if(e instanceof s2)return Da({receiveChannelName:t.receiveChannelName,receivingResponse:t.receivingResponse,sendMessage:t.sendMessage,messages:l2(t.messages)([e.value0]),sendingState:jl.value});if(e instanceof p2)return Da({messages:t.messages,receiveChannelName:t.receiveChannelName,sendMessage:t.sendMessage,sendingState:t.sendingState,receivingResponse:new _(e.value0)});if(e instanceof v2)return Da({messages:t.messages,receiveChannelName:t.receiveChannelName,receivingResponse:t.receivingResponse,sendMessage:t.sendMessage,sendingState:(function(){if(t.sendingState instanceof ao&&e.value1.id===t.sendingState.value0.id)return new ao({id:t.sendingState.value0.id,deltas:NG(function(n){return n.timestamp})(X0(t.sendingState.value0.deltas)({content:e.value1.delta,timestamp:Ft(e.value0)(e.value1.timestamp)}))});if(t.sendingState instanceof ao)return t.sendingState;if(t.sendingState instanceof Jl)return new ao({deltas:$_({content:e.value1.delta,timestamp:Ft(e.value0)(e.value1.timestamp)}),id:e.value1.id});if(t.sendingState instanceof jl)return new ao({deltas:$_({content:e.value1.delta,timestamp:Ft(e.value0)(e.value1.timestamp)}),id:e.value1.id});if(t.sendingState instanceof $i||t.sendingState instanceof zl)return t.sendingState;throw new Error("Failed pattern match at Vinai.Chatbot (line 181, column 22 - line 206, column 29): "+[t.sendingState.constructor.name])})()});if(e instanceof OG)return kf(WG(t))(function(){return Da(t)});throw new Error("Failed pattern match at Vinai.Chatbot (line 153, column 1 - line 153, column 55): "+[t.constructor.name,e.constructor.name])}},m2=function(t){var e={messages:t.messages,receivingResponse:h.value,receiveChannelName:t.receiveChannelName,sendingState:(function(){if(t.initialMessageBody instanceof h)return $i.value;if(t.initialMessageBody instanceof _)return jl.value;throw new Error("Failed pattern match at Vinai.Chatbot (line 147, column 21 - line 149, column 26): "+[t.initialMessageBody.constructor.name])})(),sendMessage:t.sendMessage};return kf(PG(t.initialMessageBody)(d2(e)))(function(){return Da(e)})};var h2=We(oe),ya=We(Je),g2=Mi(Se)()(),D2=Tp(oe),qG=Et(st),kG=Q(ZE),Cu=We(Se),BG=wp()(),GG=hp()(),JG=jr(oe),zG=Mi(oe)()(),jG=Q(Ou()(Wo(Wo(Pu)()({reflectSymbol:function(){return"subject"}})(vn))()({reflectSymbol:function(){return"body"}})(vn))),yd=L(_e),VG=y(st),y2=Br(ur)(Yo),F2=bF(nn)(),E2=ke(Be),Po=E2(xo),b2=ea(Xn),Bf=Ll(nn),v1=F(vr),Vn=F(ur),QG=Zf(Wd),KG=Et(So),YG=jo(vf),XG=hF(),M2=VT(So),ZG=yr(M2),tJ=kt(nn),eJ=E2(Wn),nJ=y(So),d1=L(xo),S2=nu()(),rJ=nr(M2),h1=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),Dd=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),w2=(function(){function t(){}return t.value=new t,t})(),R2=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),I2=(function(){function t(){}return t.value=new t,t})(),L2=(function(){function t(){}return t.value=new t,t})(),T2=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),C2=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),_1=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),m1=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),aJ=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),A2=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),x2=(function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t})(),N2=function(t){return function(e){var n=(function(){if(t.sharing.url instanceof Qa)return h2("text-primary text-center mx-4")("Link copied!");if(t.sharing.url instanceof Yr)return ya("text-center")(Ri({extraClass:h.value}));if(t.sharing.url instanceof Cr)return g2("btn btn-dark text-nowrap w-100 d-flex align-items-center justify-content-center")(Ka)({disabled:!t.sharing.isAllowed,onClick:wu(function(v){return e(L2.value)})})([D2("fe fe-link-2 mr-2")(""),ze("Share report")]);throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.EmailContentOptimizer (line 186, column 23 - line 197, column 10): "+[t.sharing.url.constructor.name])})(),r=qG(Es(ti((function(){var v=kG(Ui.value);return function(g){return v((function(d){return d.sender})(g))}})())(t.suggestionBot.messages)))(function(v){return v.body}),a=Ih(t.email),l=Cu("t--eco-subject")([ze("Subject line"),BG("form-control mt-2")({type:"text",placeholder:"Subject",autoFocus:!0,value:a.subject,onChange:wu(function(v){return e(new _1(dF(v)))})})]),f=Cu("t--eco-body")([ze("Body"),GG("form-control mt-2")({placeholder:"Type or paste body of email",value:a.body,onChange:wu(function(v){return e(new m1(vF(v)))}),rows:15})]),p=Cu("mt-2 mt-md-0 d-flex flex-row align-items-center")([ya("mr-1 w-100")(n),ya("ml-1 w-100")(g2("btn btn-outline-dark d-flex align-items-center justify-content-center text-nowrap w-100")(Ka)({onClick:wu(function(v){return e(new A2(Um.value))})})([D2("fe fe-info mr-2")(""),ze("Report methodology")]))]);return Un([Cu("row align-items-center")([ya("col-12 col-md-7")(JG("mb-0")("Email content")),ya("col d-none d-md-block")(p)]),Cu("row mt-4")([Cu("col-12 col-md-7")([l,ya("mt-4")(f),zG("btn btn-dark mt-4")(Ka)({onClick:wu(function(v){return e(new h1(a))}),disabled:jG(a)(bv)})("Analyze email"),ha(es(t.scores))(h2("text-danger mt-2")),ya("d-none d-md-block mt-5")(dg(yd(Ma(t.scores))(Ah)))]),Cu("col")([ya("mt-4 mt-md-2")(oF({scores:ts(Cr.value)(t.scores)})),_l("hr"),ya("mt-4")(ZR({scores:ts(Cr.value)(t.scores)})),_l("hr"),ya("mt-4")((function(){if(t.suggestionBot.sendingState instanceof Jl)return Pl(h.value);if(t.suggestionBot.sendingState instanceof ao){var v=p1(t.suggestionBot.sendingState.value0);return Pl(new _(new kv(v.body)))}if(t.suggestionBot.sendingState instanceof jl)return Pl(h.value);if(t.suggestionBot.sendingState instanceof $i)return Pl(VG(kv.create)(r));if(t.suggestionBot.sendingState instanceof zl)return Pl(new _(_g.value));throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.EmailContentOptimizer (line 134, column 28 - line 145, column 60): "+[t.suggestionBot.sendingState.constructor.name])})()),Cu("mt-4 d-md-none")([_l(""),p]),ya("d-md-none mt-4")(dg(yd(Ma(t.scores))(Ah)))])]),ha(t.modal)(function(v){if(v instanceof Um)return XC({onDismiss:e(I2.value)});if(v instanceof $m)return ZC({onSubmit:function(g){return e(x2.create(g))}});throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.EmailContentOptimizer (line 155, column 29 - line 157, column 93): "+[v.constructor.name])})])}},P2=function(t){var e=y2(t.registration)(function(n){return Xr(F2("Email Content Optimizer: User registered")({email:n.email,name:n.name,school_name:Ft("")(n.schoolName),title:Ft("")(n.title)}))});return Po(y2(b2(t.registration)(t.email))(function(n){return Bf(v1(h1.create(n)))}))(function(){return Po(e)(function(){return Vn({registration:t.registration,modal:b2(QG(na(t.registration)))(new _($m.value)),email:(function(){var n=ra(t.registration);return n?new Du(Ft(bv)(t.email)):Op.value})()})})})},O2=function(t){return function(e){var n=function(a){return Xr(F2("Email Content Optimizer: Email submitted")({email_subject:a.subject,email_body:a.body,registration_email:Mt("")(function(l){return l.email})(e.registration),name:Mt("")(function(l){return l.name})(e.registration),school_name:Ft("")(yd(e.registration)(function(l){return l.schoolName})),title:Ft("")(yd(e.registration)(function(l){return l.title}))}))},r=uF(t);return function(a){if(a instanceof h1)return Po(Bf(KG(YG(JR(a.value0)))(Fe(C2.create)(T2.create))))(function(){return Po(Bf(v1(new Dd(new f1(XG({email:a.value0}))))))(function(){return Po(n(a.value0))(function(){return Vn({email:e.email,modal:e.modal,registration:e.registration,selectedPersona:e.selectedPersona,suggestionBot:e.suggestionBot,sharing:{url:e.sharing.url,isAllowed:!0},scores:new P(new Yr(h.value))})})})});if(a instanceof Dd)return ZG(Dd.create)(function(f){return{email:e.email,modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:f}})(_2(e.suggestionBot)(a.value0));if(a instanceof w2)return Vn({email:e.email,modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,suggestionBot:e.suggestionBot,sharing:{isAllowed:e.sharing.isAllowed,url:Cr.value}});if(a instanceof R2)return Po(Xr(tJ(Bv(r(a.value0)))))(function(){return Po(Bf(eJ(Io(3e3))(function(){return v1(w2.value)})))(function(){return Vn({email:e.email,modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,suggestionBot:e.suggestionBot,sharing:{isAllowed:e.sharing.isAllowed,url:new Qa(r(a.value0))}})})});if(a instanceof L2)return Po(Bf(nJ(R2.create)(BR(Ih(e.email)))))(function(){return Vn({email:e.email,modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,suggestionBot:e.suggestionBot,sharing:{isAllowed:e.sharing.isAllowed,url:KR(e.sharing.url)}})});if(a instanceof I2)return Vn({email:e.email,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,modal:h.value});if(a instanceof C2)return Mo(gu)("Email Content Optimizer: "+fo(a.value0))({})(function(f){return Vn({email:e.email,modal:e.modal,registration:e.registration,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,scores:new U("Something went wrong loading scores. Please refresh the page, and contact support if the problem continues")})});var l=function(f){if(a instanceof _1&&ut)return Vn(e);var p=function(v){if(a instanceof m1&&ut)return Vn(e);if(a instanceof aJ)return Vn({email:e.email,modal:e.modal,registration:e.registration,scores:e.scores,sharing:e.sharing,suggestionBot:e.suggestionBot,selectedPersona:a.value0});if(a instanceof A2)return Vn({email:e.email,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,modal:new _(a.value0)});if(a instanceof T2)return Vn({email:e.email,modal:e.modal,registration:e.registration,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,scores:new P(new Qa(a.value0))});if(a instanceof x2)return Po(Xr(GR(a.value0)))(function(){return d1(P2({conversationId:t.conversationId,ecoBaseUrl:t.ecoBaseUrl,email:t.email,receiveChannelName:t.receiveChannelName,registration:new _(a.value0)}))(function(g){return Vn(S2(g)(e))})});throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.EmailContentOptimizer (line 215, column 1 - line 215, column 64): "+[a.constructor.name])};return a instanceof m1&&e.email instanceof Du?Vn({modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,email:new Du({subject:e.email.value0.subject,body:a.value0})}):p(!0)};return a instanceof _1&&e.email instanceof Du?Vn({modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,email:new Du({body:e.email.value0.body,subject:a.value0})}):l(!0)}}},U2=function(t){var e={initialMessageBody:h.value,messages:[],receiveChannelName:t.receiveChannelName,sendMessage:function(n){return e1({conversationId:t.conversationId,message:n,presetTopic:h.value})}};return d1(rJ(Dd.create)(m2(e)))(function(n){return d1(P2(t))(function(r){return Vn(S2({scores:new P(Cr.value),suggestionBot:n,selectedPersona:h.value,sharing:{isAllowed:!1,url:Cr.value}})(r))})})};var uJ=y(st),g1=za(),$2=ue({reflectSymbol:function(){return"email"}}),W2=hu(Ie),iJ=(function(){var t=function(n){return{conversationId:n.conversationId,ecoBaseUrl:n.ecoBaseUrl,receiveChannelName:n.receiveChannelName,email:qt(n.email),registration:uJ(Up)(qt(n.registration))}},e=function(n){return{init:U2(n),view:N2,update:O2(n)}};return Jg(g1(ue({reflectSymbol:function(){return"conversationId"}})(Zg)(ue({reflectSymbol:function(){return"ecoBaseUrl"}})(Ie)($2(hu(g1(ue({reflectSymbol:function(){return"body"}})(Ie)(ue({reflectSymbol:function(){return"subject"}})(Ie)(jn)))))(ue({reflectSymbol:function(){return"receiveChannelName"}})(Yg)(ue({reflectSymbol:function(){return"registration"}})(hu(g1($2(Ie)(ue({reflectSymbol:function(){return"free_form_school_name"}})(W2)(ue({reflectSymbol:function(){return"name"}})(Ie)(ue({reflectSymbol:function(){return"title"}})(W2)(jn)))))))(jn)))))))({def:function(n){return _.create(e(t(n)))},diagnosticName:"EntryPoints.DataLab.EmailContentOptimizer"})})();return xd(lJ);})(); /*! Bundled license information: object-assign/index.js: (* object-assign (c) Sindre Sorhus @license MIT *) react-dom/cjs/react-dom-server.browser.production.min.js: (** @license React v17.0.2 * react-dom-server.browser.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) tabbable/dist/index.js: (*! * tabbable 5.3.3 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE *) focus-trap/dist/focus-trap.js: (*! * focus-trap 6.9.4 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE *) pusher-js/dist/web/pusher.js: (*! * Pusher JavaScript Library v6.0.3 * https://pusher.com/ * * Copyright 2020, Pusher * Released under the MIT licence. *) */