var Purs_EntryPoints_DataLab_EmailContentOptimizer=(()=>{var bF=Object.create;var Ol=Object.defineProperty;var CF=Object.getOwnPropertyDescriptor;var RF=Object.getOwnPropertyNames;var TF=Object.getPrototypeOf,wF=Object.prototype.hasOwnProperty;var k_=t=>Ol(t,"__esModule",{value:!0});var EF=(t,e)=>()=>(t&&(e=t(t=0)),e);var $n=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),B_=(t,e)=>{k_(t);for(var n in e)Ol(t,n,{get:e[n],enumerable:!0})},FF=(t,e,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of RF(e))!wF.call(t,r)&&r!=="default"&&Ol(t,r,{get:()=>e[r],enumerable:!(n=CF(e,r))||n.enumerable});return t},Qs=t=>FF(k_(Ol(t!=null?bF(TF(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var i1={};B_(i1,{Children:()=>i3,Component:()=>c3,Fragment:()=>v3,PureComponent:()=>g3,Suspense:()=>D3,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>u3,cloneElement:()=>l3,createContext:()=>f3,createElement:()=>s3,createRef:()=>d3,default:()=>ia,forwardRef:()=>p3,isValidElement:()=>m3,lazy:()=>_3,memo:()=>h3,useCallback:()=>y3,useContext:()=>b3,useEffect:()=>C3,useImperativeHandle:()=>R3,useLayoutEffect:()=>T3,useMemo:()=>w3,useReducer:()=>E3,useRef:()=>F3,useState:()=>M3,version:()=>x3});var ia,u3,i3,l3,c3,f3,s3,d3,p3,v3,m3,_3,h3,g3,D3,y3,b3,C3,R3,T3,w3,E3,F3,M3,x3,mu=EF(()=>{ia=window.React,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:u3,Children:i3,cloneElement:l3,Component:c3,createContext:f3,createElement:s3,createRef:d3,forwardRef:p3,Fragment:v3,isValidElement:m3,lazy:_3,memo:h3,PureComponent:g3,Suspense:D3,useCallback:y3,useContext:b3,useEffect:C3,useImperativeHandle:R3,useLayoutEffect:T3,useMemo:w3,useReducer:E3,useRef:F3,useState:M3,version:x3}=window.React});var ip=$n((Vlt,c1)=>{"use strict";var l1=Object.getOwnPropertySymbols,S3=Object.prototype.hasOwnProperty,I3=Object.prototype.propertyIsEnumerable;function L3(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function j3(){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}}c1.exports=j3()?Object.assign:function(t,e){for(var n,r=L3(t),a,l=1;l{"use strict";var lp=ip(),_u=60103,f1=60106;At.Fragment=60107;At.StrictMode=60108;At.Profiler=60114;var s1=60109,d1=60110,p1=60112;At.Suspense=60113;var v1=60115,m1=60116;typeof Symbol=="function"&&Symbol.for&&(Qn=Symbol.for,_u=Qn("react.element"),f1=Qn("react.portal"),At.Fragment=Qn("react.fragment"),At.StrictMode=Qn("react.strict_mode"),At.Profiler=Qn("react.profiler"),s1=Qn("react.provider"),d1=Qn("react.context"),p1=Qn("react.forward_ref"),At.Suspense=Qn("react.suspense"),v1=Qn("react.memo"),m1=Qn("react.lazy"));var Qn,_1=typeof Symbol=="function"&&Symbol.iterator;function A3(t){return t===null||typeof t!="object"?null:(t=_1&&t[_1]||t["@@iterator"],typeof t=="function"?t:null)}function ji(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n{"use strict";E1.exports=w1()});var K1=$n(gu=>{"use strict";var vr=ip(),ca=F1();function pe(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;nPi;Pi++)ze[Pi]=Pi+1;var ze,Pi;ze[15]=0;var $3=/^[: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]*$/,A1=Object.prototype.hasOwnProperty,N1={},P1={};function O1(t){return A1.call(P1,t)?!0:A1.call(N1,t)?!1:$3.test(t)?P1[t]=!0:(N1[t]=!0,!1)}function q3(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 k3(t,e,n,r){if(e===null||typeof e=="undefined"||q3(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 dn(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 Ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ve[t]=new dn(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ve[e]=new dn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ve[t]=new dn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ve[t]=new dn(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){Ve[t]=new dn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Ve[t]=new dn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Ve[t]=new dn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Ve[t]=new dn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Ve[t]=new dn(t,5,!1,t.toLowerCase(),null,!1,!1)});var Cp=/[\-:]([a-z])/g;function Rp(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(Cp,Rp);Ve[e]=new dn(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(Cp,Rp);Ve[e]=new dn(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(Cp,Rp);Ve[e]=new dn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Ve[t]=new dn(t,1,!1,t.toLowerCase(),null,!1,!1)});Ve.xlinkHref=new dn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Ve[t]=new dn(t,1,!1,t.toLowerCase(),null,!0,!0)});var B3=/["'&<>]/;function Ro(t){if(typeof t=="boolean"||typeof t=="number")return""+t;t=""+t;var e=B3.exec(t);if(e){var n="",r,a=0;for(r=e.index;rHc))throw Error(pe(301));if(t===Ar)if(Wc=!0,t={action:n,next:null},La===null&&(La=new Map),n=La.get(e),n===void 0)La.set(e,t);else{for(e=n;e.next!==null;)e=e.next;e.next=t}}function wp(){}var wo=null,Q3={readContext:function(t){var e=wo.threadID;return Ni(t,e),t[e]},useContext:function(t){To();var e=wo.threadID;return Ni(t,e),t[e]},useMemo:k1,useReducer:q1,useRef:function(t){Ar=To(),Yt=Tp();var e=Yt.memoizedState;return e===null?(t={current:t},Yt.memoizedState=t):e},useState:function(t){return q1($1,t)},useLayoutEffect:function(){},useCallback:function(t,e){return k1(function(){return t},e)},useImperativeHandle:wp,useEffect:wp,useDebugValue:wp,useDeferredValue:function(t){return To(),t},useTransition:function(){return To(),[function(t){t()},!1]},useOpaqueIdentifier:function(){return(wo.identifierPrefix||"")+"R:"+(wo.uniqueID++).toString(36)},useMutableSource:function(t,e){return To(),e(t._source)}},B1={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function G1(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 J1={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},K3=vr({menuitem:!0},J1),Ui={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},Y3=["Webkit","ms","Moz","O"];Object.keys(Ui).forEach(function(t){Y3.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Ui[e]=Ui[t]})});var X3=/([A-Z])/g,Z3=/^ms-/,ja=ca.Children.toArray,Ep=W3.ReactCurrentDispatcher,t4={listing:!0,pre:!0,textarea:!0},e4=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,z1={},Fp={};function n4(t){if(t==null)return t;var e="";return ca.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}var r4=Object.prototype.hasOwnProperty,a4={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function V1(t,e){if(t===void 0)throw Error(pe(152,Ai(e)||"Component"))}function o4(t,e,n){function r(f,d){var p=d.prototype&&d.prototype.isReactComponent,m=H3(d,e,n,p),v=[],D=!1,C={isMounted:function(){return!1},enqueueForceUpdate:function(){if(v===null)return null},enqueueReplaceState:function(Wt,Nt){D=!0,v=[Nt]},enqueueSetState:function(Wt,Nt){if(v===null)return null;v.push(Nt)}};if(p){if(p=new d(f.props,m,C),typeof d.getDerivedStateFromProps=="function"){var b=d.getDerivedStateFromProps.call(null,f.props,p.state);b!=null&&(p.state=vr({},p.state,b))}}else if(Ar={},p=d(f.props,m,C),p=W1(d,f.props,p,m),p==null||p.render==null){t=p,V1(t,d);return}if(p.props=f.props,p.context=m,p.updater=C,C=p.state,C===void 0&&(p.state=C=null),typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")if(typeof p.componentWillMount=="function"&&typeof d.getDerivedStateFromProps!="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&typeof d.getDerivedStateFromProps!="function"&&p.UNSAFE_componentWillMount(),v.length){C=v;var R=D;if(v=null,D=!1,R&&C.length===1)p.state=C[0];else{b=R?C[0]:p.state;var E=!0;for(R=R?1:0;R=d))throw Error(pe(304));var p=new Uint16Array(d);for(p.set(f),ze=p,ze[0]=l+1,f=l;f=p.children.length){var m=p.footer;if(m!==""&&(this.previousWasTextNode=!1),this.stack.pop(),p.type==="select")this.currentSelectValue=null;else if(p.type!=null&&p.type.type!=null&&p.type.type.$$typeof===Pc)this.popProvider(p.type);else if(p.type===Oc){this.suspenseDepth--;var v=l.pop();if(f){f=!1;var D=p.fallbackFrame;if(!D)throw Error(pe(303));this.stack.push(D),l[this.suspenseDepth]+="";continue}else l[this.suspenseDepth]+=v}l[this.suspenseDepth]+=m}else{var C=p.children[p.childIndex++],b="";try{b+=this.render(C,p.context,p.domNamespace)}catch(R){throw R!=null&&typeof R.then=="function"?Error(pe(294)):R}finally{}l.length<=this.suspenseDepth&&l.push(""),l[this.suspenseDepth]+=b}}return l[0]}finally{Ep.current=a,wo=r,H1()}},e.render=function(n,r,a){if(typeof n=="string"||typeof n=="number")return a=""+n,a===""?"":this.makeStaticMarkup?Ro(a):this.previousWasTextNode?""+Ro(a):(this.previousWasTextNode=!0,Ro(a));if(r=o4(n,r,this.threadID),n=r.child,r=r.context,n===null||n===!1)return"";if(!ca.isValidElement(n)){if(n!=null&&n.$$typeof!=null)throw a=n.$$typeof,Error(a===vp?pe(257):pe(258,a.toString()));return n=ja(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 L1:case I1:case mp:case _p:case Dp:case Nc:return n=ja(n.props.children),this.stack.push({type:null,domNamespace:a,children:n,childIndex:0,context:r,footer:""}),"";case Oc:throw Error(pe(294));case S1:throw Error(pe(343))}if(typeof l=="object"&&l!==null)switch(l.$$typeof){case gp:Ar={};var f=l.render(n.props,n.ref);return f=W1(l.render,n.props,f,n.ref),f=ja(f),this.stack.push({type:null,domNamespace:a,children:f,childIndex:0,context:r,footer:""}),"";case yp:return n=[ca.createElement(l.type,vr({ref:n.ref},n.props))],this.stack.push({type:null,domNamespace:a,children:n,childIndex:0,context:r,footer:""}),"";case Pc:return l=ja(n.props.children),a={type:n,domNamespace:a,children:l,childIndex:0,context:r,footer:""},this.pushProvider(n),this.stack.push(a),"";case hp:l=n.type,f=n.props;var d=this.threadID;return Ni(l,d),l=ja(f.children(l[d])),this.stack.push({type:n,domNamespace:a,children:l,childIndex:0,context:r,footer:""}),"";case x1:throw Error(pe(338));case bp:return l=n.type,f=l._init,l=f(l._payload),n=[ca.createElement(l,vr({ref:n.ref},n.props))],this.stack.push({type:null,domNamespace:a,children:n,childIndex:0,context:r,footer:""}),""}throw Error(pe(130,l==null?l:typeof l,""))},e.renderDOM=function(n,r,a){var l=n.type.toLowerCase();if(a===B1.html&&G1(l),!z1.hasOwnProperty(l)){if(!e4.test(l))throw Error(pe(65,l));z1[l]=!0}var f=n.props;if(l==="input")f=vr({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 d=f.value;if(d==null){d=f.defaultValue;var p=f.children;if(p!=null){if(d!=null)throw Error(pe(92));if(Array.isArray(p)){if(!(1>=p.length))throw Error(pe(93));p=p[0]}d=""+p}d==null&&(d="")}f=vr({},f,{value:void 0,children:""+d})}else if(l==="select")this.currentSelectValue=f.value!=null?f.value:f.defaultValue,f=vr({},f,{value:void 0});else if(l==="option"){p=this.currentSelectValue;var m=n4(f.children);if(p!=null){var v=f.value!=null?f.value+"":m;if(d=!1,Array.isArray(p)){for(var D=0;D":(Nt+=">",d="");t:{if(p=f.dangerouslySetInnerHTML,p!=null){if(p.__html!=null){p=p.__html;break t}}else if(p=f.children,typeof p=="string"||typeof p=="number"){p=Ro(p);break t}p=null}return p!=null?(f=[],t4.hasOwnProperty(l)&&p.charAt(0)===` `&&(Nt+=` `),Nt+=p):f=ja(f.children),n=n.type,a=a==null||a==="http://www.w3.org/1999/xhtml"?G1(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:d}),this.previousWasTextNode=!1,Nt},t}();gu.renderToNodeStream=function(){throw Error(pe(207))};gu.renderToStaticMarkup=function(t,e){t=new Q1(t,!0,e);try{return t.read(1/0)}finally{t.destroy()}};gu.renderToStaticNodeStream=function(){throw Error(pe(208))};gu.renderToString=function(t,e){t=new Q1(t,!1,e);try{return t.read(1/0)}finally{t.destroy()}};gu.version="17.0.2"});var X1=$n((Xlt,Y1)=>{"use strict";Y1.exports=K1()});var Gy=$n((fRt,By)=>{"use strict";var P7="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";By.exports=P7});var Qy=$n((sRt,Vy)=>{"use strict";var O7=Gy();function Jy(){}function zy(){}zy.resetWarningCache=Jy;Vy.exports=function(){function t(r,a,l,f,d,p){if(p!==O7){var m=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 m.name="Invariant Violation",m}}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:zy,resetWarningCache:Jy};return n.PropTypes=n,n}});var Yy=$n((vRt,Ky)=>{Ky.exports=Qy()();var dRt,pRt});var Jv=$n(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});var Xy=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Jf=Xy.join(","),Zy=typeof Element=="undefined",Ao=Zy?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Bv=!Zy&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},tb=function(e,n,r){var a=Array.prototype.slice.apply(e.querySelectorAll(Jf));return n&&Ao.call(e,Jf)&&a.unshift(e),a=a.filter(r),a},eb=function t(e,n,r){for(var a=[],l=Array.from(e);l.length;){var f=l.shift();if(f.tagName==="SLOT"){var d=f.assignedElements(),p=d.length?d:f.children,m=t(p,!0,r);r.flatten?a.push.apply(a,m):a.push({scope:f,candidates:m})}else{var v=Ao.call(f,Jf);v&&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},nb=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},U7=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},rb=function(e){return e.tagName==="INPUT"},W7=function(e){return rb(e)&&e.type==="hidden"},H7=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},$7=function(e,n){for(var r=0;rsummary:first-of-type"),f=l?e.parentElement:e;if(Ao.call(f,"details:not([open]) *"))return!0;var d=Bv(e).host,p=(d==null?void 0:d.ownerDocument.contains(d))||e.ownerDocument.contains(e);if(!r||r==="full"){if(typeof a=="function"){for(var m=e;e;){var v=e.parentElement,D=Bv(e);if(v&&!v.shadowRoot&&a(v)===!0)return ab(e);e.assignedSlot?e=e.assignedSlot:!v&&D!==e.ownerDocument?e=D.host:e=v}e=m}if(p)return!e.getClientRects().length}else if(r==="non-zero-area")return ab(e);return!1},J7=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)},V7=function t(e){var n=[],r=[];return e.forEach(function(a,l){var f=!!a.scope,d=f?a.scope:a,p=nb(d,f),m=f?t(a.candidates):d;p===0?f?n.push.apply(n,m):n.push(d):r.push({documentOrder:l,tabIndex:p,item:a,isScope:f,content:m})}),r.sort(U7).reduce(function(a,l){return l.isScope?a.push.apply(a,l.content):a.push(l.content),a},[]).concat(n)},Q7=function(e,n){n=n||{};var r;return n.getShadowRoot?r=eb([e],n.includeContainer,{filter:Gv.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:z7}):r=tb(e,n.includeContainer,Gv.bind(null,n)),V7(r)},K7=function(e,n){n=n||{};var r;return n.getShadowRoot?r=eb([e],n.includeContainer,{filter:zf.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=tb(e,n.includeContainer,zf.bind(null,n)),r},Y7=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return Ao.call(e,Jf)===!1?!1:Gv(n,e)},X7=Xy.concat("iframe").join(","),Z7=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return Ao.call(e,X7)===!1?!1:zf(n,e)};Ou.focusable=K7;Ou.isFocusable=Z7;Ou.isTabbable=Y7;Ou.tabbable=Q7});var fb=$n(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});var ma=Jv();function ob(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 ub(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()}}}(),eS=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},nS=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},rS=function(e){return e.key==="Tab"||e.keyCode===9},lb=function(e){return setTimeout(e,0)},cb=function(e,n){var r=-1;return e.every(function(a,l){return n(a)?(r=l,!1):!0}),r},sl=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a1?ft-1:0),$t=1;$t=0)x=r.activeElement;else{var A=l.tabbableGroups[0],ft=A&&A.firstTabbableNode;x=ft||m("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 A=ma.tabbable(x,a.tabbableOptions),ft=ma.focusable(x,a.tabbableOptions);return{container:x,tabbableNodes:A,focusableNodes:ft,firstTabbableNode:A.length>0?A[0]:null,lastTabbableNode:A.length>0?A[A.length-1]:null,nextTabbableNode:function($t){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Cn=ft.findIndex(function(Pt){return Pt===$t});if(!(Cn<0))return _e?ft.slice(Cn+1).find(function(Pt){return ma.isTabbable(Pt,a.tabbableOptions)}):ft.slice(0,Cn).reverse().find(function(Pt){return ma.isTabbable(Pt,a.tabbableOptions)})}}}),l.tabbableGroups=l.containerGroups.filter(function(x){return x.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!m("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 P(x){if(x!==!1&&x!==r.activeElement){if(!x||!x.focus){P(v());return}x.focus({preventScroll:!!a.preventScroll}),l.mostRecentlyFocusedNode=x,eS(x)&&x.select()}},b=function(x){var A=m("setReturnFocus",x);return A||(A===!1?!1:x)},R=function(x){var A=Vf(x);if(!(p(A)>=0)){if(sl(a.clickOutsideDeactivates,x)){f.deactivate({returnFocus:a.returnFocusOnDeactivate&&!ma.isFocusable(A,a.tabbableOptions)});return}sl(a.allowOutsideClick,x)||x.preventDefault()}},E=function(x){var A=Vf(x),ft=p(A)>=0;ft||A instanceof Document?ft&&(l.mostRecentlyFocusedNode=A):(x.stopImmediatePropagation(),C(l.mostRecentlyFocusedNode||v()))},N=function(x){var A=Vf(x);D();var ft=null;if(l.tabbableGroups.length>0){var fe=p(A),$t=fe>=0?l.containerGroups[fe]:void 0;if(fe<0)x.shiftKey?ft=l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:ft=l.tabbableGroups[0].firstTabbableNode;else if(x.shiftKey){var _e=cb(l.tabbableGroups,function(Ae){var Ce=Ae.firstTabbableNode;return A===Ce});if(_e<0&&($t.container===A||ma.isFocusable(A,a.tabbableOptions)&&!ma.isTabbable(A,a.tabbableOptions)&&!$t.nextTabbableNode(A,!1))&&(_e=fe),_e>=0){var Cn=_e===0?l.tabbableGroups.length-1:_e-1,Pt=l.tabbableGroups[Cn];ft=Pt.lastTabbableNode}}else{var Mt=cb(l.tabbableGroups,function(Ae){var Ce=Ae.lastTabbableNode;return A===Ce});if(Mt<0&&($t.container===A||ma.isFocusable(A,a.tabbableOptions)&&!ma.isTabbable(A,a.tabbableOptions)&&!$t.nextTabbableNode(A))&&(Mt=fe),Mt>=0){var Da=Mt===l.tabbableGroups.length-1?0:Mt+1,Jr=l.tabbableGroups[Da];ft=Jr.firstTabbableNode}}}else ft=m("fallbackFocus");ft&&(x.preventDefault(),C(ft))},K=function(x){if(nS(x)&&sl(a.escapeDeactivates,x)!==!1){x.preventDefault(),f.deactivate();return}if(rS(x)){N(x);return}},Y=function(x){var A=Vf(x);p(A)>=0||sl(a.clickOutsideDeactivates,x)||sl(a.allowOutsideClick,x)||(x.preventDefault(),x.stopImmediatePropagation())},Wt=function(){if(!!l.active)return ib.activateTrap(f),l.delayInitialFocusTimer=a.delayInitialFocus?lb(function(){C(v())}):C(v()),r.addEventListener("focusin",E,!0),r.addEventListener("mousedown",R,{capture:!0,passive:!1}),r.addEventListener("touchstart",R,{capture:!0,passive:!1}),r.addEventListener("click",Y,{capture:!0,passive:!1}),r.addEventListener("keydown",K,{capture:!0,passive:!1}),f},Nt=function(){if(!!l.active)return r.removeEventListener("focusin",E,!0),r.removeEventListener("mousedown",R,!0),r.removeEventListener("touchstart",R,!0),r.removeEventListener("click",Y,!0),r.removeEventListener("keydown",K,!0),f};return f={get active(){return l.active},get paused(){return l.paused},activate:function(x){if(l.active)return this;var A=d(x,"onActivate"),ft=d(x,"onPostActivate"),fe=d(x,"checkCanFocusTrap");fe||D(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=r.activeElement,A&&A();var $t=function(){fe&&D(),Wt(),ft&&ft()};return fe?(fe(l.containers.concat()).then($t,$t),this):($t(),this)},deactivate:function(x){if(!l.active)return this;var A=ub({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},x);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,Nt(),l.active=!1,l.paused=!1,ib.deactivateTrap(f);var ft=d(A,"onDeactivate"),fe=d(A,"onPostDeactivate"),$t=d(A,"checkCanReturnFocus"),_e=d(A,"returnFocus","returnFocusOnDeactivate");ft&&ft();var Cn=function(){lb(function(){_e&&C(b(l.nodeFocusedBeforeActivation)),fe&&fe()})};return _e&&$t?($t(b(l.nodeFocusedBeforeActivation)).then(Cn,Cn),this):(Cn(),this)},pause:function(){return l.paused||!l.active?this:(l.paused=!0,Nt(),this)},unpause:function(){return!l.paused||!l.active?this:(l.paused=!1,D(),Wt(),this)},updateContainerElements:function(x){var A=[].concat(x).filter(Boolean);return l.containers=A.map(function(ft){return typeof ft=="string"?r.querySelector(ft):ft}),l.active&&D(),this}},f.updateContainerElements(e),f};zv.createFocusTrap=aS});var pb=$n((hRt,db)=>{"use strict";function Vv(t){return Vv=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},Vv(t)}function oS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sb(t,e){for(var n=0;n1?v-1:0),C=1;C element.");var f=function(m){var v=a.props.containerElements;l&&(typeof l.ref=="function"?l.ref(m):l.ref&&(l.ref.current=m)),a.focusTrapElements=v||[m]},d=Kf.cloneElement(l,{ref:f});return d}return null}}]),n}(Kf.Component),pl=typeof Element=="undefined"?Function:Element;Kv.propTypes={active:dt.bool,paused:dt.bool,focusTrapOptions:dt.shape({document:dt.object,onActivate:dt.func,onPostActivate:dt.func,checkCanFocusTrap:dt.func,onDeactivate:dt.func,onPostDeactivate:dt.func,checkCanReturnFocus:dt.func,initialFocus:dt.oneOfType([dt.instanceOf(pl),dt.string,dt.bool,dt.func]),fallbackFocus:dt.oneOfType([dt.instanceOf(pl),dt.string,dt.func]),escapeDeactivates:dt.oneOfType([dt.bool,dt.func]),clickOutsideDeactivates:dt.oneOfType([dt.bool,dt.func]),returnFocusOnDeactivate:dt.bool,setReturnFocus:dt.oneOfType([dt.instanceOf(pl),dt.string,dt.bool,dt.func]),allowOutsideClick:dt.oneOfType([dt.bool,dt.func]),preventScroll:dt.bool,tabbableOptions:dt.shape({displayCheck:dt.oneOf(["full","non-zero-area","none"]),getShadowRoot:dt.oneOfType([dt.bool,dt.func])})}),containerElements:dt.arrayOf(dt.instanceOf(pl)),children:dt.oneOfType([dt.element,dt.instanceOf(pl)])};Kv.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:pS};db.exports=Kv});var CT=$n((Ss,Qm)=>{(function(e,n){typeof Ss=="object"&&typeof Qm=="object"?Qm.exports=n():typeof define=="function"&&define.amd?define([],n):typeof Ss=="object"?Ss.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!="undefined"&&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(d){return r[d]}.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(R,E){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,K){N.__proto__=K}||function(N,K){for(var Y in K)K.hasOwnProperty(Y)&&(N[Y]=K[Y])},b(R,E)};return function(R,E){b(R,E);function N(){this.constructor=R}R.prototype=E===null?Object.create(E):(N.prototype=E.prototype,new N)}}();Object.defineProperty(e,"__esModule",{value:!0});var a=256,l=function(){function b(R){R===void 0&&(R="="),this._paddingCharacter=R}return b.prototype.encodedLength=function(R){return this._paddingCharacter?(R+2)/3*4|0:(R*8+5)/6|0},b.prototype.encode=function(R){for(var E="",N=0;N>>3*6&63),E+=this._encodeByte(K>>>2*6&63),E+=this._encodeByte(K>>>1*6&63),E+=this._encodeByte(K>>>0*6&63)}var Y=R.length-N;if(Y>0){var K=R[N]<<16|(Y===2?R[N+1]<<8:0);E+=this._encodeByte(K>>>3*6&63),E+=this._encodeByte(K>>>2*6&63),Y===2?E+=this._encodeByte(K>>>1*6&63):E+=this._paddingCharacter||"",E+=this._paddingCharacter||""}return E},b.prototype.maxDecodedLength=function(R){return this._paddingCharacter?R/4*3|0:(R*6+7)/8|0},b.prototype.decodedLength=function(R){return this.maxDecodedLength(R.length-this._getPaddingLength(R))},b.prototype.decode=function(R){if(R.length===0)return new Uint8Array(0);for(var E=this._getPaddingLength(R),N=R.length-E,K=new Uint8Array(this.maxDecodedLength(N)),Y=0,Wt=0,Nt=0,P=0,x=0,A=0,ft=0;Wt>>4,K[Y++]=x<<4|A>>>2,K[Y++]=A<<6|ft,Nt|=P&a,Nt|=x&a,Nt|=A&a,Nt|=ft&a;if(Wt>>4,Nt|=P&a,Nt|=x&a),Wt>>2,Nt|=A&a),Wt>>8&0-65-26+97,E+=51-R>>>8&26-97-52+48,E+=61-R>>>8&52-48-62+43,E+=62-R>>>8&62-43-63+47,String.fromCharCode(E)},b.prototype._decodeChar=function(R){var E=a;return E+=(42-R&R-44)>>>8&-a+R-43+62,E+=(46-R&R-48)>>>8&-a+R-47+63,E+=(47-R&R-58)>>>8&-a+R-48+52,E+=(64-R&R-91)>>>8&-a+R-65+0,E+=(96-R&R-123)>>>8&-a+R-97+26,E},b.prototype._getPaddingLength=function(R){var E=0;if(this._paddingCharacter){for(var N=R.length-1;N>=0&&R[N]===this._paddingCharacter;N--)E++;if(R.length<4||E>2)throw new Error("Base64Coder: incorrect padding")}return E},b}();e.Coder=l;var f=new l;function d(b){return f.encode(b)}e.encode=d;function p(b){return f.decode(b)}e.decode=p;var m=function(b){r(R,b);function R(){return b!==null&&b.apply(this,arguments)||this}return R.prototype._encodeByte=function(E){var N=E;return N+=65,N+=25-E>>>8&0-65-26+97,N+=51-E>>>8&26-97-52+48,N+=61-E>>>8&52-48-62+45,N+=62-E>>>8&62-45-63+95,String.fromCharCode(N)},R.prototype._decodeChar=function(E){var N=a;return N+=(44-E&E-46)>>>8&-a+E-45+62,N+=(94-E&E-96)>>>8&-a+E-95+63,N+=(47-E&E-58)>>>8&-a+E-48+52,N+=(64-E&E-91)>>>8&-a+E-65+0,N+=(96-E&E-123)>>>8&-a+E-97+26,N},R}(l);e.URLSafeCoder=m;var v=new m;function D(b){return v.encode(b)}e.encodeURLSafe=D;function C(b){return v.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(p){for(var m=new Uint8Array(f(p)),v=0,D=0;D>6,m[v++]=128|C&63):C<55296?(m[v++]=224|C>>12,m[v++]=128|C>>6&63,m[v++]=128|C&63):(D++,C=(C&1023)<<10,C|=p.charCodeAt(D)&1023,C+=65536,m[v++]=240|C>>18,m[v++]=128|C>>12&63,m[v++]=128|C>>6&63,m[v++]=128|C&63)}return m}e.encode=l;function f(p){for(var m=0,v=0;v=p.length-1)throw new Error(r);v++,m+=4}else throw new Error(r)}return m}e.encodedLength=f;function d(p){for(var m=[],v=0;v=p.length)throw new Error(a);var b=p[++v];if((b&192)!=128)throw new Error(a);D=(D&31)<<6|b&63,C=128}else if(D<240){if(v>=p.length-1)throw new Error(a);var b=p[++v],R=p[++v];if((b&192)!=128||(R&192)!=128)throw new Error(a);D=(D&15)<<12|(b&63)<<6|R&63,C=2048}else if(D<248){if(v>=p.length-2)throw new Error(a);var b=p[++v],R=p[++v],E=p[++v];if((b&192)!=128||(R&192)!=128||(E&192)!=128)throw new Error(a);D=(D&15)<<18|(b&63)<<12|(R&63)<<6|E&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,m.push(String.fromCharCode(55296|D>>10)),D=56320|D&1023}}m.push(String.fromCharCode(D))}return m.join("")}e.decode=d},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+"]",_=!1,w=function(){_||(o.apply(null,arguments),_=!0)};return this[i]=w,{number:i,id:c,name:s,callback:w}},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,d=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 _=Ft.createScriptRequest(s.getPath(o,i)),w=s.receivers.create(function(U){if(s.receivers.remove(w),s.loading[o]){var ut=s.loading[o];delete s.loading[o];for(var qt=function(an){an||_.cleanup()},xe=0;xe>>6)+C(128|o&63):C(224|o>>>12&15)+C(128|o>>>6&63)+C(128|o&63)},Y=function(u){return u.replace(/[^\x00-\x7F]/g,K)},Wt=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("")},Nt=window.btoa||function(u){return u.replace(/[\s\S]{1,3}/g,Wt)},P=function(){function u(o,i,c,s){var _=this;this.clear=i,this.timer=o(function(){_.timer&&(_.timer=s(_.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=P,A=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},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 ft(u){window.clearTimeout(u)}function fe(u){window.clearInterval(u)}var $t=function(u){A(o,u);function o(i,c){return u.call(this,setTimeout,ft,i,function(s){return c(),null})||this}return o}(x),_e=function(u){A(o,u);function o(i,c){return u.call(this,setInterval,fe,i,function(s){return c(),s})||this}return o}(x),Cn={now:function(){return Date.now?Date.now():new Date().valueOf()},defer:function(u){return new $t(0,u)},method:function(u){for(var o=[],i=1;i0)for(var s=0;s<_.length;s++)_[s].fn.apply(_[s].context||window,w);else this.failThrough&&this.failThrough(o,i);return this},u}(),Ga=hw,gw=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},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)}}(),Dw=function(u){gw(o,u);function o(i,c,s,_,w){var U=u.call(this)||this;return U.initialize=Ft.transportConnectionInitializer,U.hooks=i,U.name=c,U.priority=s,U.key=_,U.options=w,U.state="new",U.timeline=w.timeline,U.activityTimeout=w.activityTimeout,U.id=U.timeline.generateUniqueID(),U}return o.prototype.handlesActivityChecks=function(){return Boolean(this.hooks.handlesActivityChecks)},o.prototype.supportsPing=function(){return Boolean(this.hooks.supportsPing)},o.prototype.connect=function(){var i=this;if(this.socket||this.state!=="initialized")return!1;var c=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(c,this.options)}catch(s){return Pt.defer(function(){i.onError(s),i.changeState("closed")}),!1}return this.bindListeners(),ot.debug("Connecting",{transport:this.name,url:c}),this.changeState("connecting"),!0},o.prototype.close=function(){return this.socket?(this.socket.close(),!0):!1},o.prototype.send=function(i){var c=this;return this.state==="open"?(Pt.defer(function(){c.socket&&c.socket.send(i)}),!0):!1},o.prototype.ping=function(){this.state==="open"&&this.supportsPing()&&this.socket.ping()},o.prototype.onOpen=function(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0},o.prototype.onError=function(i){this.emit("error",{type:"WebSocketError",error:i}),this.timeline.error(this.buildTimelineMessage({error:i.toString()}))},o.prototype.onClose=function(i){i?this.changeState("closed",{code:i.code,reason:i.reason,wasClean:i.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0},o.prototype.onMessage=function(i){this.emit("message",i)},o.prototype.onActivity=function(){this.emit("activity")},o.prototype.bindListeners=function(){var i=this;this.socket.onopen=function(){i.onOpen()},this.socket.onerror=function(c){i.onError(c)},this.socket.onclose=function(c){i.onClose(c)},this.socket.onmessage=function(c){i.onMessage(c)},this.supportsPing()&&(this.socket.onactivity=function(){i.onActivity()})},o.prototype.unbindListeners=function(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))},o.prototype.changeState=function(i,c){this.state=i,this.timeline.info(this.buildTimelineMessage({state:i,params:c})),this.emit(i,c)},o.prototype.buildTimelineMessage=function(i){return Mt({cid:this.id},i)},o}(Ga),yw=Dw,bw=function(){function u(o){this.hooks=o}return u.prototype.isSupported=function(o){return this.hooks.isSupported(o)},u.prototype.createConnection=function(o,i,c,s){return new yw(this.hooks,o,i,c,s)},u}(),ko=bw,Cw=new ko({urls:dw,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return Boolean(Ft.getWebSocketAPI())},isSupported:function(){return Boolean(Ft.getWebSocketAPI())},getSocket:function(u){return Ft.createWebSocket(u)}}),h_={urls:pw,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},g_=Mt({getSocket:function(u){return Ft.HTTPFactory.createStreamingSocket(u)}},h_),D_=Mt({getSocket:function(u){return Ft.HTTPFactory.createPollingSocket(u)}},h_),y_={isSupported:function(){return Ft.isXHRSupported()}},Rw=new ko(Mt({},g_,y_)),Tw=new ko(Mt({},D_,y_)),ww={ws:Cw,xhr_streaming:Rw,xhr_polling:Tw},Al=ww,Ew=new ko({file:"sockjs",urls:vw,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(u,o){return new window.SockJS(u,null,{js_path:v.getPath("sockjs",{useTLS:o.useTLS}),ignore_null_origin:o.ignoreNullOrigin})},beforeOpen:function(u,o){u.send(JSON.stringify({path:o}))}}),b_={isSupported:function(u){var o=Ft.isXDRSupported(u.useTLS);return o}},Fw=new ko(Mt({},g_,b_)),Mw=new ko(Mt({},D_,b_));Al.xdr_streaming=Fw,Al.xdr_polling=Mw,Al.sockjs=Ew;var xw=Al,Sw=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},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)}}(),Iw=function(u){Sw(o,u);function o(){var i=u.call(this)||this,c=i;return window.addEventListener!==void 0&&(window.addEventListener("online",function(){c.emit("online")},!1),window.addEventListener("offline",function(){c.emit("offline")},!1)),i}return o.prototype.isOnline=function(){return window.navigator.onLine===void 0?!0:window.navigator.onLine},o}(Ga),Lw=new Iw,jw=function(){function u(o,i,c){this.manager=o,this.transport=i,this.minPingDelay=c.minPingDelay,this.maxPingDelay=c.maxPingDelay,this.pingDelay=void 0}return u.prototype.createConnection=function(o,i,c,s){var _=this;s=Mt({},s,{activityTimeout:this.pingDelay});var w=this.transport.createConnection(o,i,c,s),U=null,ut=function(){w.unbind("open",ut),w.bind("closed",qt),U=Pt.now()},qt=function(xe){if(w.unbind("closed",qt),xe.code===1002||xe.code===1003)_.manager.reportDeath();else if(!xe.wasClean&&U){var an=Pt.now()-U;an<2*_.maxPingDelay&&(_.manager.reportDeath(),_.pingDelay=Math.max(an/2,_.minPingDelay))}};return w.bind("open",ut),w},u.prototype.isSupported=function(o){return this.manager.isAlive()&&this.transport.isSupported(o)},u}(),Aw=jw,C_={decodeMessage:function(u){try{var o=JSON.parse(u.data),i=o.data;if(typeof i=="string")try{i=JSON.parse(o.data)}catch{}var c={event:o.event,channel:o.channel,data:i};return o.user_id&&(c.user_id=o.user_id),c}catch(s){throw{type:"MessageParseError",error:s,data:u.data}}},encodeMessage:function(u){return JSON.stringify(u)},processHandshake:function(u){var o=C_.decodeMessage(u);if(o.event==="pusher:connection_established"){if(!o.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:o.data.socket_id,activityTimeout:o.data.activity_timeout*1e3}}else{if(o.event==="pusher:error")return{action:this.getCloseAction(o.data),error:this.getCloseError(o.data)};throw"Invalid handshake"}},getCloseAction:function(u){return u.code<4e3?u.code>=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}},Ja=C_,Nw=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},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)}}(),Pw=function(u){Nw(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 _={event:i,data:c};return s&&(_.channel=s),ot.debug("Event sent",_),this.send(Ja.encodeMessage(_))},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(_){var w;try{w=Ja.decodeMessage(_)}catch(U){i.emit("error",{type:"MessageParseError",error:U,data:_.data})}if(w!==void 0){switch(ot.debug("Event recd",w),w.event){case"pusher:error":i.emit("error",{type:"PusherError",data:w.data});break;case"pusher:ping":i.emit("ping");break;case"pusher:pong":i.emit("pong");break}i.emit("message",w)}},activity:function(){i.emit("activity")},error:function(_){i.emit("error",{type:"WebSocketError",error:_})},closed:function(_){s(),_&&_.code&&i.handleCloseEvent(_),i.transport=null,i.emit("closed")}},s=function(){Ae(c,function(_,w){i.transport.unbind(w,_)})};Ae(c,function(_,w){i.transport.bind(w,_)})},o.prototype.handleCloseEvent=function(i){var c=Ja.getCloseAction(i),s=Ja.getCloseError(i);s&&this.emit("error",s),c&&this.emit(c,{action:c,error:s})},o}(Ga),Ow=Pw,Uw=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=Ja.processHandshake(i)}catch(s){o.finish("error",{error:s}),o.transport.close();return}c.action==="connected"?o.finish("connected",{connection:new Ow(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=Ja.getCloseAction(i)||"backoff",s=Ja.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(Mt({transport:this.transport,action:o},i))},u}(),Ww=Uw,Hw=function(){function u(o,i){this.channel=o;var c=i.authTransport;if(typeof Ft.getAuthorizers()[c]=="undefined")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||Ft.getAuthorizers(),u.authorizers[this.type].call(this,Ft,o,i)},u}(),$w=Hw,qw=function(){function u(o,i){this.timeline=o,this.options=i||{}}return u.prototype.send=function(o,i){this.timeline.isEmpty()||this.timeline.send(Ft.TimelineTransport.getAgent(this,o),i)},u}(),kw=qw,za=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},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)}}(),Bw=function(u){za(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),Gw=function(u){za(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),Jw=function(u){za(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),zw=function(u){za(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),R_=function(u){za(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),Vw=function(u){za(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),T_=function(u){za(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),Qw=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},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)}}(),Kw=function(u){Qw(o,u);function o(i,c){var s=u.call(this,function(_,w){ot.debug("No callbacks on "+i+" for "+_)})||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 Bw("Event '"+i+"' does not start with 'client-'");if(!this.subscribed){var s=Ne.buildLogSuffix("triggeringClientEvents");ot.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 _={};this.emit(c,s,_)}},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?(ot.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}(Ga),w_=Kw,Yw=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},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)}}(),Xw=function(u){Yw(o,u);function o(){return u!==null&&u.apply(this,arguments)||this}return o.prototype.authorize=function(i,c){var s=Rr.createAuthorizer(this,this.pusher.config);return s.authorize(i,c)},o}(w_),Hs=Xw,Zw=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;Ae(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}(),tE=Zw,eE=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},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)}}(),nE=function(u){eE(o,u);function o(i,c){var s=u.call(this,i,c)||this;return s.members=new tE,s}return o.prototype.authorize=function(i,c){var s=this;u.prototype.authorize.call(this,i,function(_,w){if(!_){if(w=w,w.channel_data===void 0){var U=Ne.buildLogSuffix("authenticationEndpoint");ot.error("Invalid auth response for channel '"+s.name+"',"+("expected 'channel_data' field. "+U)),c("Invalid auth response");return}var ut=JSON.parse(w.channel_data);s.members.setMyID(ut.user_id)}c(_,w)})},o.prototype.handleEvent=function(i){var c=i.event;if(c.indexOf("pusher_internal:")===0)this.handleInternalEvent(i);else{var s=i.data,_={};i.user_id&&(_.user_id=i.user_id),this.emit(c,s,_)}},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 _=this.members.addMember(s);this.emit("pusher:member_added",_);break;case"pusher_internal:member_removed":var w=this.members.removeMember(s);w&&this.emit("pusher:member_removed",w);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}(Hs),rE=nE,E_=n(1),$s=n(0),aE=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},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)}}(),oE=function(u){aE(o,u);function o(i,c,s){var _=u.call(this,i,c)||this;return _.key=null,_.nacl=s,_}return o.prototype.authorize=function(i,c){var s=this;u.prototype.authorize.call(this,i,function(_,w){if(_){c(!0,w);return}var U=w.shared_secret;if(!U){var ut="No shared_secret key in auth payload for encrypted channel: "+s.name;c(!0,ut);return}s.key=Object($s.decode)(U),delete w.shared_secret,c(!1,w)})},o.prototype.trigger=function(i,c){throw new R_("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){ot.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!c.ciphertext||!c.nonce){ot.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+c);return}var _=Object($s.decode)(c.ciphertext);if(_.length0&&this.emit("connecting_in",Math.round(i/1e3)),this.retryTimer=new $t(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 $t(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 $t(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 $t(this.activityTimeout,function(){i.sendActivityCheck()}))},o.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},o.prototype.buildConnectionCallbacks=function(i){var c=this;return Mt({},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 Mt({},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(_){_.error&&i.emit("error",{type:"WebSocketError",error:_.error}),s(_)}};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 _=i;_==="connected"&&(_+=" with new socket ID "+c.socket_id),ot.debug("State changed",s+" -> "+_),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}(Ga),cE=lE,fE=function(){function u(){this.channels={}}return u.prototype.add=function(o,i){return this.channels[o]||(this.channels[o]=dE(o,i)),this.channels[o]},u.prototype.all=function(){return Ba(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(){Ae(this.channels,function(o){o.disconnect()})},u}(),sE=fE;function dE(u,o){if(u.indexOf("private-encrypted-")===0){if(o.config.nacl)return Rr.createEncryptedChannel(u,o,o.config.nacl);var i="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",c=Ne.buildLogSuffix("encryptedChannelSupport");throw new R_(i+". "+c)}else return u.indexOf("private-")===0?Rr.createPrivateChannel(u,o):u.indexOf("presence-")===0?Rr.createPresenceChannel(u,o):Rr.createChannel(u,o)}var pE={createChannels:function(){return new sE},createConnectionManager:function(u,o){return new cE(u,o)},createChannel:function(u,o){return new w_(u,o)},createPrivateChannel:function(u,o){return new Hs(u,o)},createPresenceChannel:function(u,o){return new rE(u,o)},createEncryptedChannel:function(u,o,i){return new uE(u,o,i)},createTimelineSender:function(u,o){return new kw(u,o)},createAuthorizer:function(u,o){return o.authorizer?o.authorizer(u,o):new $w(u,o)},createHandshake:function(u,o){return new Ww(u,o)},createAssistantToTheTransportManager:function(u,o,i){return new Aw(u,o,i)}},Rr=pE,vE=function(){function u(o){this.options=o||{},this.livesLeft=this.options.lives||1/0}return u.prototype.getAssistant=function(o){return Rr.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}(),F_=vE,mE=function(){function u(o,i){this.strategies=o,this.loop=Boolean(i.loop),this.failFast=Boolean(i.failFast),this.timeout=i.timeout,this.timeoutLimit=i.timeoutLimit}return u.prototype.isSupported=function(){return xt(this.strategies,Pt.method("isSupported"))},u.prototype.connect=function(o,i){var c=this,s=this.strategies,_=0,w=this.timeout,U=null,ut=function(qt,xe){xe?i(null,xe):(_=_+1,c.loop&&(_=_%s.length),_0&&(_=new $t(c.timeout,function(){w.abort(),s(!0)})),w=o.connect(i,function(U,ut){U&&_&&_.isRunning()&&!c.failFast||(_&&_.ensureAborted(),s(U,ut))}),{abort:function(){_&&_.ensureAborted(),w.abort()},forceMinPriority:function(U){w.forceMinPriority(U)}}},u}(),Va=mE,_E=function(){function u(o){this.strategies=o}return u.prototype.isSupported=function(){return xt(this.strategies,Pt.method("isSupported"))},u.prototype.connect=function(o,i){return hE(this.strategies,o,function(c,s){return function(_,w){if(s[c].error=_,_){gE(s)&&i(!0);return}zr(s,function(U){U.forceMinPriority(w.transport.priority)}),i(null,w)}})},u}(),qs=_E;function hE(u,o,i){var c=jl(u,function(s,_,w,U){return s.connect(o,i(_,U))});return{abort:function(){zr(c,DE)},forceMinPriority:function(s){zr(c,function(_){_.forceMinPriority(s)})}}}function gE(u){return tt(u,function(o){return Boolean(o.error)})}function DE(u){!u.error&&!u.aborted&&(u.abort(),u.aborted=!0)}var yE=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=CE(c),_=[this.strategy];if(s&&s.timestamp+this.ttl>=Pt.now()){var w=this.transports[s.transport];w&&(this.timeline.info({cached:!0,transport:s.transport,latency:s.latency}),_.push(new Va([w],{timeout:s.latency*2+1e3,failFast:!0})))}var U=Pt.now(),ut=_.pop().connect(o,function qt(xe,an){xe?(M_(c),_.length>0?(U=Pt.now(),ut=_.pop().connect(o,qt)):i(xe)):(RE(c,an.transport.name,Pt.now()-U),i(null,an))});return{abort:function(){ut.abort()},forceMinPriority:function(qt){o=qt,ut&&ut.forceMinPriority(qt)}}},u}(),bE=yE;function ks(u){return"pusherTransport"+(u?"TLS":"NonTLS")}function CE(u){var o=Ft.getLocalStorage();if(o)try{var i=o[ks(u)];if(i)return JSON.parse(i)}catch{M_(u)}return null}function RE(u,o,i){var c=Ft.getLocalStorage();if(c)try{c[ks(u)]=Bt({timestamp:Pt.now(),transport:o,latency:i})}catch{}}function M_(u){var o=Ft.getLocalStorage();if(o)try{delete o[ks(u)]}catch{}}var TE=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,_=new $t(this.options.delay,function(){s=c.connect(o,i)});return{abort:function(){_.ensureAborted(),s&&s.abort()},forceMinPriority:function(w){o=w,s&&s.forceMinPriority(w)}}},u}(),Nl=TE,wE=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}(),ni=wE,EE=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,_){_&&c.abort(),i(s,_)});return c},u}(),FE=EE;function ri(u){return function(){return u.isSupported()}}var ME=function(u,o,i){var c={};function s($_,hF,gF,DF,yF){var q_=i(u,$_,hF,gF,DF,yF);return c[$_]=q_,q_}var _=Object.assign({},o,{hostNonTLS:u.wsHost+":"+u.wsPort,hostTLS:u.wsHost+":"+u.wssPort,httpPath:u.wsPath}),w=Object.assign({},_,{useTLS:!0}),U=Object.assign({},o,{hostNonTLS:u.httpHost+":"+u.httpPort,hostTLS:u.httpHost+":"+u.httpsPort,httpPath:u.httpPath}),ut={loop:!0,timeout:15e3,timeoutLimit:6e4},qt=new F_({lives:2,minPingDelay:1e4,maxPingDelay:u.activityTimeout}),xe=new F_({lives:2,minPingDelay:1e4,maxPingDelay:u.activityTimeout}),an=s("ws","ws",3,_,qt),Tr=s("wss","ws",3,w,qt),dF=s("sockjs","sockjs",1,U),N_=s("xhr_streaming","xhr_streaming",1,U,xe),pF=s("xdr_streaming","xdr_streaming",1,U,xe),P_=s("xhr_polling","xhr_polling",1,U),vF=s("xdr_polling","xdr_polling",1,U),O_=new Va([an],ut),mF=new Va([Tr],ut),_F=new Va([dF],ut),U_=new Va([new ni(ri(N_),N_,pF)],ut),W_=new Va([new ni(ri(P_),P_,vF)],ut),H_=new Va([new ni(ri(U_),new qs([U_,new Nl(W_,{delay:4e3})]),W_)],ut),zs=new ni(ri(H_),H_,_F),Vs;return o.useTLS?Vs=new qs([O_,new Nl(zs,{delay:2e3})]):Vs=new qs([O_,new Nl(mF,{delay:2e3}),new Nl(zs,{delay:5e3})]),new bE(new FE(new ni(ri(an),Vs,zs)),c,{ttl:18e5,timeline:o.timeline,useTLS:o.useTLS})},xE=ME,SE=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"),v.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()},IE={getRequest:function(u){var o=new window.XDomainRequest;return o.ontimeout=function(){u.emit("error",new Gw),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()}},LE=IE,jE=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},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)}}(),AE=256*1024,NE=function(u){jE(o,u);function o(i,c,s){var _=u.call(this)||this;return _.hooks=i,_.method=c,_.url=s,_}return o.prototype.start=function(i){var c=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){c.close()},Ft.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&&(Ft.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>AE},o}(Ga),PE=NE,Bs;(function(u){u[u.CONNECTING=0]="CONNECTING",u[u.OPEN=1]="OPEN",u[u.CLOSED=3]="CLOSED"})(Bs||(Bs={}));var Qa=Bs,OE=1,UE=function(){function u(o,i){this.hooks=o,this.session=S_(1e3)+"/"+qE(8),this.location=WE(i),this.readyState=Qa.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===Qa.OPEN)try{return Ft.createSocketRequest("POST",x_(HE(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=Qa.CLOSED,this.onclose&&this.onclose({code:o,reason:i,wasClean:c})},u.prototype.onChunk=function(o){if(o.status===200){this.readyState===Qa.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()}},QE=VE,KE={createStreamingSocket:function(u){return this.createSocket(GE,u)},createPollingSocket:function(u){return this.createSocket(zE,u)},createSocket:function(u,o){return new kE(u,o)},createXHR:function(u,o){return this.createRequest(QE,u,o)},createRequest:function(u,o,i){return new PE(u,o,i)}},I_=KE;I_.createXDR=function(u,o){return this.createRequest(LE,u,o)};var YE=I_,XE={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:a,DependenciesReceivers:m,getDefaultStrategy:xE,Transports:xw,transportConnectionInitializer:SE,HTTPFactory:YE,TimelineTransport:Me,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():v.load("json2",{},i)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:Cr,jsonp:rt}},onDocumentBody:function(u){var o=this;document.body?u():setTimeout(function(){o.onDocumentBody(u)},0)},createJSONPRequest:function(u,o){return new Dt(u,o)},createScriptRequest:function(u){return new et(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 Lw},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 Boolean(u)&&new u().withCredentials!==void 0},isXDRSupported:function(u){var o=u?"https:":"http:",i=this.getProtocol();return Boolean(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)}},Ft=XE,Gs;(function(u){u[u.ERROR=3]="ERROR",u[u.INFO=6]="INFO",u[u.DEBUG=7]="DEBUG"})(Gs||(Gs={}));var Pl=Gs,ZE=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(Mt({},i,{timestamp:Pt.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},u.prototype.error=function(o){this.log(Pl.ERROR,o)},u.prototype.info=function(o){this.log(Pl.INFO,o)},u.prototype.debug=function(o){this.log(Pl.DEBUG,o)},u.prototype.isEmpty=function(){return this.events.length===0},u.prototype.send=function(o,i){var c=this,s=Mt({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(_,w){_||c.sent++,i&&i(_,w)}),!0},u.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},u}(),tF=ZE,eF=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.prioritydO});var G_=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 we={show:fh};var Lt={show:ch};var M=function(t){return t.show};var Gt=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),lt=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}();var ke=function(){function t(){}return t.value=new t,t}(),si=function(t){return t};var di=function(t){return t.to};var Hl=function(t){return t.from};var kF=$(G),g=function(){function t(){}return t.value=new t,t}(),h=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}();var st=function(t){return function(e){return function(n){if(n instanceof g)return t;if(n instanceof h)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])}}},or=st(!0)(J(!1)),ur=st(!1)(J(!0));var Z={map:function(t){return function(e){return e instanceof h?new h(t(e.value0)):g.value}}},BF=y(Z);var ct=function(t){return st(t)(kF)},ae=function(){return function(t){if(t instanceof h)return t.value0;throw new Error("Failed pattern match at Data.Maybe (line 288, column 1 - line 288, column 46): "+[t.constructor.name])}};var ln={apply:function(t){return function(e){if(t instanceof h)return BF(t.value0)(e);if(t instanceof g)return g.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 Z}};var Jt={bind:function(t){return function(e){if(t instanceof h)return e(t.value0);if(t instanceof g)return g.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 ln}};var Ie=function(){return{pure:h.create,Apply0:function(){return ln}}}();var sh={alt:function(t){return function(e){return t instanceof g?e:t}},Functor0:function(){return Z}},GF=function(){return{empty:g.value,Alt0:function(){return sh}}}(),td={Applicative0:function(){return Ie},Plus1:function(){return GF}};var pi=null;function dh(t,e,n){return t==null?e:n(t)}function ed(t){return t}var Bn=st(pi)(ed),yt=function(t){return dh(t,g.value,h.create)};var Ze=function(t){return t.empty};var $l=function(t){var e=T(t.Applicative0()),n=Ze(t.Plus1());return function(r){if(r)return e(F);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 zF=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 Eh=function(t,e){return e.filter(t)};var Fh=function(){function t(e,n,r,a,l,f){var d,p,m,v,D,C,b;for(d=l+(f-l>>1),d-l>1&&t(e,n,a,r,l,d),f-d>1&&t(e,n,a,r,d,f),p=l,m=d,v=l;p0?(r[v++]=C,++m):(r[v++]=D,++p);for(;p>1),d-l>1&&t(e,n,a,r,l,d),f-d>1&&t(e,n,a,r,d,f),p=l,m=d,v=l;p0?(r[v++]=C,++m):(r[v++]=D,++p);for(;p=0;l--)r=t(n[l])(r);return r}}},Vh=function(t){return function(e){return function(n){for(var r=e,a=n.length,l=0;l=0&&d=Fe(kg))return kg;if(t<=Fe(Bg))return Bg;if(X)return ct(0)(go(t));throw new Error("Failed pattern match at Data.Int (line 72, column 1 - line 72, column 29): "+[t.constructor.name])},Lr=function(t){return Cx(bc(t))};var Gg=function(t){return(t&1)==0};var je=function(){function t(){}return t.value=new t,t}(),jt=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}(),Cc=function(t){return t},Ax=function(t){return new jt(t.value0,t.value1)};var Nx=function(t){var e=function(n){return function(r){var a=n,l=!1,f;function d(p,m){if(m instanceof jt&&m.value1 instanceof jt&&m.value1.value1 instanceof jt){a=new jt(m,p),r=m.value1.value1.value1;return}var v=function(C){return C instanceof jt&&C.value1 instanceof jt&&C.value1.value1 instanceof je?new jt(t(C.value0),new jt(t(C.value1.value0),je.value)):C instanceof jt&&C.value1 instanceof je?new jt(t(C.value0),je.value):je.value},D=function(C){return function(b){var R=C,E=!1,N;function K(Y,Wt){if(Y instanceof jt&&Y.value0 instanceof jt&&Y.value0.value1 instanceof jt&&Y.value0.value1.value1 instanceof jt){R=Y.value1,b=new jt(t(Y.value0.value0),new jt(t(Y.value0.value1.value0),new jt(t(Y.value0.value1.value1.value0),Wt)));return}return E=!0,Wt}for(;!E;)N=K(R,b);return N}};return l=!0,D(p)(v(m))}for(;!l;)f=d(a,r);return f}};return e(je.value)},Jg={map:Nx};var Vn={foldr:function(t){return function(e){var n=function(){var a=function(l){return function(f){var d=l,p=!1,m;function v(D,C){if(C instanceof je)return p=!0,D;if(C instanceof jt){d=new jt(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(;!p;)m=v(d,f);return m}};return a(je.value)}(),r=Kt(Vn)(Ct(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 d(p,m){if(m instanceof je)return l=!0,p;if(m instanceof jt){a=t(p)(m.value0),r=m.value1;return}throw new Error("Failed pattern match at Data.List.Types (line 111, column 12 - line 113, column 30): "+[m.constructor.name])}for(;!l;)f=d(a,r);return f}};return e},foldMap:function(t){var e=k(t.Semigroup0()),n=bt(t);return function(r){return Kt(Vn)(function(a){var l=e(a);return function(f){return l(r(f))}})(n)}}};var Px=Qt(Vn);var Rc={append:function(t){return function(e){return Px(jt.create)(e)(t)}}},zg=k(Rc);var Vg={append:function(t){return function(e){return new Sr(t.value0,zg(t.value1)(Ax(e)))}}};var Qg={alt:zg,Functor0:function(){return Jg}},Xd=function(){return{empty:je.value,Alt0:function(){return Qg}}}();var bo=function(t){return t.length};var Tc=function(t){return function(e){return{before:e.substring(0,t),after:e.substring(t)}}};var oa=function(t){return function(e){var n=Tc(bo(t))(e),r=n.before===t;return r?new h(n.after):g.value}};var ua=function(t){return function(e){return e.split(t)}};var xn=function(t){return function(e){return e.join(t)}};var jr=function(t){return t.tell};var du={liftEffect:$(G),Monad0:function(){return Ca}},gt=function(t){return t.liftEffect};var Ic=typeof CV!="undefined"&&CV.assetsRoot||typeof global!="undefined"&&global.CV&&global.CV.assetsRoot||"/";mu();var Lc=window.ReactDOM,{createPortal:klt,findDOMNode:Blt,flushSync:Glt,unstable_batchedUpdates:Jlt}=window.ReactDOM;var Mp=Qs(X1());function Z1(t){return t.state&&t.state.s}function tD(t,e,n){return t.setState({s:e},n)}function eD(t,e){return t.state={s:e}}var nD=Lc.render,rD=Lc.hydrate,xp=Mp.default&&Mp.default.renderToString||(t=>""),u4=Lc.unmountComponentAtNode,aD=ia.Fragment;function oD(t,e,n){return ia.createElement.apply(null,[t,i4(t,e)].concat(n))}function i4(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 Du=function(e){return function(n){return e(n)()}};var yu=function(e){return function(n){return function(){return e(n)}}},Aa=function(e){return function(n){return function(r){return function(){return e(n,r)}}}},Eo=function(e){return function(n){return function(r){return function(a){return function(){return e(n,r,a)}}}}};var Ot={asReactChildren:function(t){return[t]}},ve={asReactChildren:function(t){return[t]}},le={asReactChildren:$(G)};var me=I,Sp=Eo(tD),cD=Aa(nD),fD=Aa(rD),sD=yu(Z1),gn=!1;var dD=Aa(eD),pD=function(t){return t.asReactChildren},fa=function(){return function(t){var e=pD(t);return function(n){return function(r){return function(a){return oD(n,r,e(a))}}}}},vD=fa()(le),$c=function(){return function(t){return function(e){return vD(t)(e)([])}}},$e=vD(aD)({});function mD(t){return function(){var e={};for(var n in t)hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}}var qc={};function Wi(t){return t()}function _D(t,e,n,r){return n in r?e(r[n]):t}function Ip(t){return function(e){var n=[];for(var r in e)hasOwnProperty.call(e,r)&&n.push(t(r)(e[r]));return n}}var C4=Object.keys||Ip(function(t){return function(){return t}});var kc=function(){return{}};function Hi(t){return function(e){return function(n){return function(){return n[t]=e,n}}}}var E4=ie(mi);var F4=Vt(io);var M4=mD,Lp=function(t){return function(e){return Wi(E4(Hi(t)(e))(kc))}};var x4=function(t){return function(e){return Wi(function(){var r=M4(e)();return t(r)(),r})}};var $i=function(){return Di(_D)(g.value)(h.create)}();var gD=function(t){return function(e){return x4(Hi(t)(e))}};var jp=function(){return I};var Ap=function(t){var e=iu(t);return function(n){return Wi(function(){var a=kc();return zl(e(n))(function(l){return F4(Hi(l.value0)(l.value1)(a))})(),a})}};var Np=$c(),Pp=fa(),DD=_o()();var bu=I,yD=function(t){return function(e){return Np(bu(t))(e)}},Op=function(t){var e=Pp(t);return function(n){return function(r){return e(bu(n))(r)}}},qi=function(t){var e=Pp(t);return function(n){return function(r){return function(a){return e(bu(n))(DD(a)({className:r}))}}}},Cu=function(t){return function(e){return function(n){return Np(bu(t))(DD(n)({className:e}))}}},bD=function(t){return function(e){return Np(bu(t))({className:e})}},mr=function(t){return function(e){var n=Pp(e);return function(r){return function(a){return n(bu(t))({className:r})(a)}}}};var Fo=I;var Bc=function(t){return mr("tr")(t)};var Gc=function(){return function(){return Cu("textarea")}};var Jc=function(t){return mr("td")(t)};var zc=function(t){return mr("tbody")(t)};var Vc=function(t){return mr("table")(t)},Qc=function(t){var e=qi(t);return function(){return function(){return e("svg")}}};var Nr=function(t){return mr("strong")(t)};var Na=function(t){return mr("span")(t)};var Pr=function(t){return mr("p")(t)};var Kc=function(){return function(){return Cu("input")}};var Yc=function(){return function(){return Cu("img")}};var Xc=function(t){return mr("i")(t)};var Ru=bD("hr");var Kn=function(t){return mr("h2")(t)};var sa=function(t){var e=qi(t);return function(){return function(){return e("div")}}},ce=function(t){return mr("div")(t)};var Up=Jn(Zo(Ge)),S4=$(G),I4=Yc()(),Zc=function(t){var e=oa(t);return function(n){return ur(e(n))}},CD=function(t){if(Up(Zc("http://"))(Up(Zc("https://"))(Up(Zc("//"))(Zc("blob:"))))(t))return t;if(X)return Ic+ct(t)(oa("/")(t));throw new Error("Failed pattern match at Utils.AppAssets (line 47, column 1 - line 47, column 30): "+[t.constructor.name])},ki=function(){return function(){return function(t){return function(e){var n=function(a){return S4},r=n(e)(gD("src")(CD(e.src))(e));return I4(t)(r)}}}};var L4=Ap(_t),j4=pt(Rt),A4=vo(Hd),tf=function(t){return function(e){var n=L4(j4(e)(function(r){return new z(t(r),r)}));return function(r){return $i(r)(n)}}},RD=function(t){var e=gg(t),n=mg(t);return function(r){var a=e(r);return function(l){return function(f){return A4(function(d){return new z(d,a(d))})(n(f))}}}},ef=function(t){var e=RD(t);return function(n){var r=e(n);return function(a){var l=r(a);return function(f){return Ir(l(f))}}}};function TD(t){return typeof t=="string"}function wD(t){return typeof t=="number"}function ED(t){return typeof t=="boolean"}function FD(t){return t instanceof Object}function MD(t){return t instanceof Function}function Bi(t){return t===null?"":t===void 0?"":t instanceof Date?t.toString():typeof Blob!="undefined"&&t instanceof Blob?"file["+t.name+"]":JSON.stringify(t)}function nf(t){return Object.prototype.toString.call(t).slice(8,-1)}function rf(t){return t===null}function Tu(t){return t===void 0}var af=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};var N4=y(Le);var Wp=function(t){return t};var of=function(t){return t};var uf=function(t){return function(e){return t(e)}},Hp=function(t){var e=y(t);return{map:function(n){return uf(e(N4(n)))}}};var xD=function(t){return{Applicative0:function(){return Pa(t)},Bind1:function(){return wu(t)}}},wu=function(t){var e=S(t.Bind1()),n=T(t.Applicative0());return{bind:function(r){return function(a){return e(r)(oe(function(l){return n(j.create(l))})(function(l){var f=a(l);return f}))}},Apply0:function(){return lf(t)}}},lf=function(t){var e=Hp(t.Bind1().Apply0().Functor0());return{apply:mn(xD(t)),Functor0:function(){return e}}},Pa=function(t){return{pure:function(){var e=T(t.Applicative0());return function(n){return Wp(e(L.create(n)))}}(),Apply0:function(){return lf(t)}}};var $p=function(t){var e=xD(t);return{throwError:function(){var n=T(t.Applicative0());return function(r){return Wp(n(j.create(r)))}}(),Monad0:function(){return e}}};var SD=function(t){var e=k(t);return function(n){var r=n.Bind1(),a=S(r),l=T(n.Applicative0()),f=Hp(r.Apply0().Functor0());return{alt:function(d){return function(p){return a(d)(function(m){if(m instanceof L)return l(new L(m.value0));if(m instanceof j)return a(p)(function(v){if(v instanceof L)return l(new L(v.value0));if(v instanceof j)return l(new j(e(m.value0)(v.value0)));throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 87, column 9 - line 89, column 49): "+[v.constructor.name])});throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 83, column 5 - line 89, column 49): "+[m.constructor.name])})}},Functor0:function(){return f}}}};var ID=function(t){return t()};var LD=function(t){throw new Error(t)};var jD=function(){return LD};var P4=jD(),O4=ID,Oa=function(t){return O4(function(){return P4(t)})};var qp=function(){var t=hc(Xd);return function(e){return Cc(t(e))}}();var ND=function(t){return t.value0};var k4=M(we),B4=M(Lt);var kp=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),PD=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}(),G4=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}(),J4=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}(),qe=I,Mo=I;var Gi=function(t){if(t instanceof kp)return t.value0;if(t instanceof G4)return"Error at array index "+(B4(t.value0)+(": "+Gi(t.value1)));if(t instanceof J4)return"Error at property "+(k4(t.value0)+(": "+Gi(t.value1)));if(t instanceof PD)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 Bp=function(t){var e=Ee($p(t));return function(n){return e(qp(n))}};var Gp=function(t){var e=T(Pa(t)),n=Bp(t);return function(r){return function(a){if(nf(a)===r)return e(Mo(a));if(X)return n(new PD(r,nf(a)));throw new Error("Failed pattern match at Foreign (line 123, column 1 - line 123, column 104): "+[r.constructor.name,a.constructor.name])}}};var z4=Zo(Ge),V4=cr(z4),Q4=Rg(Fi),K4=M(Lt),Y4=vg(_n),Yn=function(){function t(){}return t.value=new t,t}(),Xn=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),en={validateJsRecord:function(t){return Yn.value}},Jp={validateForeignType:function(t){return Yn.value}};var ff=function(t){return function(e){return function(n){var r=e(n);return r?Yn.value:new Xn({path:"",got:n,expected:t})}}};var Ji={validateForeignType:ff("Boolean")(ED)},OD={validateForeignType:ff("Function")(MD)};var Eu={validateForeignType:ff("Number")(wD)};var Xt={validateForeignType:ff("String")(TD)},UD=function(t){return t.validateJsRecord},Or=function(){return function(t){var e=UD(t);return{validateForeignType:function(n){if(FD(n))return e(n);if(X)return new Xn({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])}}}},Fu=function(t){return t.validateForeignType},zi=function(t){var e=Fu(t);return{validateForeignType:function(n){if(V4(af)(n))return new Xn({path:"",expected:"Array",got:n});if(X){var r=function(l){return function(f){var d=e(f);if(d instanceof Yn)return g.value;if(d instanceof Xn)return new h({idx:l,invalid:d.value0});throw new Error("Failed pattern match at Elmish.Foreign (line 186, column 29 - line 188, column 51): "+[d.constructor.name])}},a=Q4(r)(Mo(n));if(a instanceof g)return Yn.value;if(a instanceof h)return new Xn({expected:a.value0.invalid.expected,got:a.value0.invalid.got,path:"["+(K4(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])}}},Ua=function(t){var e=Fu(t);return{validateForeignType:function(n){if(rf(n)||Tu(n))return Yn.value;if(X){var r=e(n);if(r instanceof Yn)return Yn.value;if(r instanceof Xn)return new Xn({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 Ut=function(t){var e=ue(t);return function(n){var r=Fu(n);return function(a){var l=UD(a);return{validateJsRecord:function(f){var d=e(Ht.value),p=on(d)(Mo(f)),m=r(p);if(m instanceof Xn)return new Xn({expected:m.value0.expected,got:m.value0.got,path:"."+(d+m.value0.path)});if(m instanceof Yn)return l(f);throw new Error("Failed pattern match at Elmish.Foreign (line 235, column 9 - line 237, column 43): "+[m.constructor.name])}}}}},Ur=function(t){var e=Fu(t);return function(n){var r=e(n);if(r instanceof Yn)return new L(Mo(n));if(r instanceof Xn)return new j(Y4([r.value0.path,function(){var a=r.value0.path==="";return a?"Expected ":": expected "}(),r.value0.expected," but got: ",Bi(r.value0.got)]));throw new Error("Failed pattern match at Elmish.Foreign (line 255, column 18 - line 263, column 6): "+[r.constructor.name])}},Mu=function(t){var e=Ur(t);return function(n){return Kr(e(n))}};var X4={info:"info",warning:"warn",error:"error"},da=t=>e=>n=>r=>{let a=X4[t];if(typeof console!="undefined"&&console[a]&&console[a](e,n),typeof window!="undefined"){let l=new Error(e);typeof window.Sentry!="undefined"&&window.Sentry.captureException(l,{extra:n})}return r()},WD=(t,e)=>(e.__sentryFingerprint=t,e);var HD=function(t){return sr(WD)(t)};var Wa="error";var sf={parseOrPanic:function(t){return function(e){var n=t.parse(e);if(n instanceof L)return n.value0;if(n instanceof j)return da(Wa)("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])}}},xo=function(t){return t.parseOrPanic},Z4=xo(sf),df=function(t){var e=xo(t);return function(n){var r=y(n);return function(a){return e({parse:function(l){return r(h.create)(a.parse(l))},default:g.value,diagnosticName:a.diagnosticName})}}},t8=df(sf)(Le),zp=function(t){var e=Ur(t);return function(n){return t8({parse:e,diagnosticName:n})}},pf={parseOrPanic:function(t){return Z4({default:t.default,diagnosticName:t.diagnosticName,parse:function(){var e=st(new j(""))(L.create);return function(n){return e(t.parse(n))}}()})}};var $D=Nd(Ad),Vi=jd($D)(Td(Cd)),qD=Ed(wd),Qi=Fd(qD),kD=Wd(Ud),Ki=Od(kD),r8=ki()();var xu=function(){function t(){}return t.value=new t,t}(),Yi=function(){function t(){}return t.value=new t,t}(),Xi=function(){function t(){}return t.value=new t,t}(),Zi=function(){function t(){}return t.value=new t,t}(),tl=function(){function t(){}return t.value=new t,t}(),el=function(){function t(){}return t.value=new t,t}(),a8={to:function(t){if(t instanceof Gt)return xu.value;if(t instanceof lt&&t.value0 instanceof Gt)return Yi.value;if(t instanceof lt&&t.value0 instanceof lt&&t.value0.value0 instanceof Gt)return Xi.value;if(t instanceof lt&&t.value0 instanceof lt&&t.value0.value0 instanceof lt&&t.value0.value0.value0 instanceof Gt)return Zi.value;if(t instanceof lt&&t.value0 instanceof lt&&t.value0.value0 instanceof lt&&t.value0.value0.value0 instanceof lt&&t.value0.value0.value0.value0 instanceof Gt)return tl.value;if(t instanceof lt&&t.value0 instanceof lt&&t.value0.value0 instanceof lt&&t.value0.value0.value0 instanceof lt&&t.value0.value0.value0.value0 instanceof lt)return el.value;throw new Error("Failed pattern match at Common.ProfilePersona (line 29, column 1 - line 29, column 34): "+[t.constructor.name])},from:function(t){if(t instanceof xu)return new Gt(ke.value);if(t instanceof Yi)return new lt(new Gt(ke.value));if(t instanceof Xi)return new lt(new lt(new Gt(ke.value)));if(t instanceof Zi)return new lt(new lt(new lt(new Gt(ke.value))));if(t instanceof tl)return new lt(new lt(new lt(new lt(new Gt(ke.value)))));if(t instanceof el)return new lt(new lt(new lt(new lt(new lt(ke.value)))));throw new Error("Failed pattern match at Common.ProfilePersona (line 29, column 1 - line 29, column 34): "+[t.constructor.name])}};var o8=function(t){if(t instanceof xu)return"activist";if(t instanceof Yi)return"connector";if(t instanceof Xi)return"explorer";if(t instanceof Zi)return"learner";if(t instanceof tl)return"pragmatist";if(t instanceof el)return"striver";throw new Error("Failed pattern match at Common.ProfilePersona (line 34, column 13 - line 40, column 23): "+[t.constructor.name])},BD=function(){return xo(pf)({parse:tf(o8)(ef(a8)(Vi(Vi(Vi(Vi(Vi($D)(qD))(Qi))(Qi))(Qi))(Qi))(Ki(Ki(Ki(Ki(Ki(kD))))))(Qi)),diagnosticName:"Common.ProfilePersona",default:xu.value})}();var Kp=function(t){if(t instanceof xu)return"Activist";if(t instanceof Yi)return"Connector";if(t instanceof Xi)return"Explorer";if(t instanceof Zi)return"Learner";if(t instanceof tl)return"Pragmatist";if(t instanceof el)return"Striver";throw new Error("Failed pattern match at Common.ProfilePersona (line 50, column 9 - line 56, column 23): "+[t.constructor.name])},GD=function(t){return function(e){var n="/img/illustrations/profile/personas/"+function(){if(t instanceof xu)return"activist.png";if(t instanceof Yi)return"connector.png";if(t instanceof Xi)return"explorer.png";if(t instanceof Zi)return"learner.png";if(t instanceof tl)return"pragmatist.png";if(t instanceof el)return"striver.png";throw new Error("Failed pattern match at Common.ProfilePersona (line 131, column 7 - line 137, column 33): "+[t.constructor.name])}();return r8("")({src:n,alt:Kp(t)+" icon",height:e.height,width:e.width})}};var u8=y(Rt);var Yp=function(){function t(){}return t.value=new t,t}(),Xp=function(){function t(){}return t.value=new t,t}(),vf=function(){function t(){}return t.value=new t,t}(),Ha=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}();var JD={show:zt()},zD=Xt;var VD=function(t){return{email:t.email,free_form_school_name:Bn(t.schoolName),name:t.name,title:Bn(t.title)}},QD=function(t){return{categories:yt(t.categories),overall:{body:yt(t.overall.body),subject:yt(t.overall.subject)},rankedPersonas:u8(BD)(t.ranked_personas)}},mf=function(t){return{email:t.email,name:t.name,schoolName:yt(t.free_form_school_name),title:yt(t.title)}};var Dn=function(){var t={},e="Pure",n="Throw",r="Catch",a="Sync",l="Async",f="Bind",d="Bracket",p="Fork",m="Sequential",v="Map",D="Apply",C="Alt",b="Cons",R="Resume",E="Release",N="Finalizer",K="Finalized",Y="Forked",Wt="Fiber",Nt="Thunk";function P(V,wt,Zt,xt){this.tag=V,this._1=wt,this._2=Zt,this._3=xt}function x(V){var wt=function(Zt,xt,tt){return new P(V,Zt,xt,tt)};return wt.tag=V,wt}function A(V){return new P(e,void 0)}function ft(V){try{V()}catch(wt){setTimeout(function(){throw wt},0)}}function fe(V,wt,Zt){try{return wt(Zt())}catch(xt){return V(xt)}}function $t(V,wt,Zt){try{return wt(Zt)()}catch(xt){return Zt(V(xt))(),A}}var _e=function(){var V=1024,wt=0,Zt=0,xt=new Array(V),tt=!1;function H(){var St;for(tt=!0;wt!==0;)wt--,St=xt[Zt],xt[Zt]=void 0,Zt=(Zt+1)%V,St();tt=!1}return{isDraining:function(){return tt},enqueue:function(St){var vt,Bt;wt===V&&(Bt=tt,H(),tt=Bt),xt[(Zt+wt)%V]=St,wt++,tt||H()}}}();function Cn(V){var wt={},Zt=0,xt=0;return{register:function(tt){var H=Zt++;tt.onComplete({rethrow:!0,handler:function(St){return function(){xt--,delete wt[H]}}})(),wt[H]=tt,xt++},isEmpty:function(){return xt===0},killAll:function(tt,H){return function(){if(xt===0)return H();var St=0,vt={};function Bt(ot){vt[ot]=wt[ot].kill(tt,function(te){return function(){delete vt[ot],St--,V.isLeft(te)&&V.fromLeft(te)&&setTimeout(function(){throw V.fromLeft(te)},0),St===0&&H()}})()}for(var Re in wt)wt.hasOwnProperty(Re)&&(St++,Bt(Re));return wt={},Zt=0,xt=0,function(ot){return new P(a,function(){for(var te in vt)vt.hasOwnProperty(te)&&vt[te]()})}}}}}var Pt=0,Mt=1,Da=2,Jr=3,Ae=4,Ce=5,Ba=6;function zr(V,wt,Zt){var xt=0,tt=Pt,H=Zt,St=null,vt=null,Bt=null,Re=null,ot=null,te=0,Vr=0,Ne=null,br=!0;function Cr(et){for(var nt,Dt,Et;;)switch(nt=null,Dt=null,Et=null,tt){case Da:tt=Mt;try{H=Bt(H),Re===null?Bt=null:(Bt=Re._1,Re=Re._2)}catch(Me){tt=Ce,St=V.left(Me),H=null}break;case Jr:V.isLeft(H)?(tt=Ce,St=H,H=null):Bt===null?tt=Ce:(tt=Da,H=V.fromRight(H));break;case Mt:switch(H.tag){case f:Bt&&(Re=new P(b,Bt,Re)),Bt=H._2,tt=Mt,H=H._1;break;case e:Bt===null?(tt=Ce,H=V.right(H._1)):(tt=Da,H=H._1);break;case a:tt=Jr,H=fe(V.left,V.right,H._1);break;case l:tt=Ae,H=$t(V.left,H._1,function(Me){return function(){xt===et&&(xt++,_e.enqueue(function(){xt===et+1&&(tt=Jr,H=Me,Cr(xt))}))}});return;case n:tt=Ce,St=V.left(H._1),H=null;break;case r:Bt===null?ot=new P(b,H,ot,vt):ot=new P(b,H,new P(b,new P(R,Bt,Re),ot,vt),vt),Bt=null,Re=null,tt=Mt,H=H._1;break;case d:te++,Bt===null?ot=new P(b,H,ot,vt):ot=new P(b,H,new P(b,new P(R,Bt,Re),ot,vt),vt),Bt=null,Re=null,tt=Mt,H=H._1;break;case p:tt=Jr,nt=zr(V,wt,H._2),wt&&wt.register(nt),H._1&&nt.run(),H=V.right(nt);break;case m:tt=Mt,H=Us(V,wt,H._1);break}break;case Ce:if(Bt=null,Re=null,ot===null)tt=Ba,H=vt||St||H;else switch(nt=ot._3,Et=ot._1,ot=ot._2,Et.tag){case r:vt&&vt!==nt&&te===0?tt=Ce:St&&(tt=Mt,H=Et._2(V.fromLeft(St)),St=null);break;case R:vt&&vt!==nt&&te===0||St?tt=Ce:(Bt=Et._1,Re=Et._2,tt=Da,H=V.fromRight(H));break;case d:te--,St===null&&(Dt=V.fromRight(H),ot=new P(b,new P(E,Et._2,Dt),ot,nt),(vt===nt||te>0)&&(tt=Mt,H=Et._3(Dt)));break;case E:ot=new P(b,new P(K,H,St),ot,vt),tt=Mt,vt&&vt!==nt&&te===0?H=Et._1.killed(V.fromLeft(vt))(Et._2):St?H=Et._1.failed(V.fromLeft(St))(Et._2):H=Et._1.completed(V.fromRight(H))(Et._2),St=null,te++;break;case N:te++,ot=new P(b,new P(K,H,St),ot,vt),tt=Mt,H=Et._1;break;case K:te--,tt=Ce,H=Et._1,St=Et._2;break}break;case Ba:for(var ne in Ne)Ne.hasOwnProperty(ne)&&(br=br&&Ne[ne].rethrow,ft(Ne[ne].handler(H)));Ne=null,vt&&St?setTimeout(function(){throw V.fromLeft(St)},0):V.isLeft(H)&&br&&setTimeout(function(){if(br)throw V.fromLeft(H)},0);return;case Pt:tt=Mt;break;case Ae:return}}function ee(et){return function(){if(tt===Ba)return br=br&&et.rethrow,et.handler(H)(),function(){};var nt=Vr++;return Ne=Ne||{},Ne[nt]=et,function(){Ne!==null&&delete Ne[nt]}}}function rt(et,nt){return function(){if(tt===Ba)return nt(V.right(void 0))(),function(){};var Dt=ee({rethrow:!1,handler:function(){return nt(V.right(void 0))}})();switch(tt){case Pt:vt=V.left(et),tt=Ba,H=vt,Cr(xt);break;case Ae:vt===null&&(vt=V.left(et)),te===0&&(tt===Ae&&(ot=new P(b,new P(N,H(et)),ot,vt)),tt=Ce,H=null,St=null,Cr(++xt));break;default:vt===null&&(vt=V.left(et)),te===0&&(tt=Ce,H=null,St=null)}return Dt}}function ht(et){return function(){var nt=ee({rethrow:!1,handler:et})();return tt===Pt&&Cr(xt),nt}}return{kill:rt,join:ht,onComplete:ee,isSuspended:function(){return tt===Pt},run:function(){tt===Pt&&(_e.isDraining()?Cr(xt):_e.enqueue(function(){Cr(xt)}))}}}function jl(V,wt,Zt,xt){var tt=0,H={},St=0,vt={},Bt=new Error("[ParAff] Early exit"),Re=null,ot=t;function te(ee,rt,ht){var et=rt,nt=null,Dt=null,Et=0,ne={},Me,Qr;t:for(;;)switch(Me=null,et.tag){case Y:if(et._3===t&&(Me=H[et._1],ne[Et++]=Me.kill(ee,function(ei){return function(){Et--,Et===0&&ht(ei)()}})),nt===null)break t;et=nt._2,Dt===null?nt=null:(nt=Dt._1,Dt=Dt._2);break;case v:et=et._2;break;case D:case C:nt&&(Dt=new P(b,nt,Dt)),nt=et,et=et._1;break}if(Et===0)ht(V.right(void 0))();else for(Qr=0,Me=Et;Qrnull);function g0(t,e){let n=typeof CV!="undefined"&&CV.apiEndpoint||typeof global!="undefined"&&global.CV&&global.CV.apiEndpoint;return n||console.error("Missing `CV.apiEndpoint` function"),n&&n(t,e)}function D0(t,e,n,r,a){return function(l,f){var d=t.newXHR(),p=t.fixupUrl(a.url,d);if(d.open(a.method||"GET",p,!0,a.username,a.password),a.headers)try{for(var m=0,v;(v=a.headers[m])!=null;m++)d.setRequestHeader(v.field,v.value)}catch(C){l(C)}var D=function(C){return function(){l(new Error(C))}};return d.onerror=D(n),d.ontimeout=D(e),d.onload=function(){f({status:d.status,statusText:d.statusText,headers:d.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:d.response})},d.responseType=a.responseType,d.withCredentials=a.withCredentials,d.timeout=a.timeout,d.send(a.content),function(C,b,R){try{d.abort()}catch(E){return b(E)}return R()}}}var Rf="application/json",y0="application/x-www-form-urlencoded";var b0=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),C0=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),R0=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),T0=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),w0=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),nv=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Tf=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),E0=function(t){return t instanceof nv?new h(y0):t instanceof Tf?new h(Rf):g.value};var F0=function(){return Tf.create}();var M0=zt();var wf=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Ef=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Iu=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}(),x0=function(t){if(t instanceof wf||t instanceof Ef)return M0(t.value0);if(t instanceof Iu)return t.value1;throw new Error("Failed pattern match at Affjax.RequestHeader (line 26, column 1 - line 26, column 33): "+[t.constructor.name])};var rv=function(t){if(t instanceof wf)return"Accept";if(t instanceof Ef)return"Content-Type";if(t instanceof Iu)return t.value0;throw new Error("Failed pattern match at Affjax.RequestHeader (line 21, column 1 - line 21, column 32): "+[t.constructor.name])};var S0=$(G),av=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),ov=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),uv=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Ff=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Mf=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),xf=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),I0=function(t){if(t instanceof av)return"arraybuffer";if(t instanceof ov)return"blob";if(t instanceof uv)return"document";if(t instanceof Ff||t instanceof Mf)return"text";if(t instanceof xf)return"";throw new Error("Failed pattern match at Affjax.ResponseFormat (line 44, column 3 - line 50, column 19): "+[t.constructor.name])},L0=function(t){return t instanceof Ff?new h(Rf):g.value},j0=function(){return new Mf(S0)}();var A0=function(){return new xf(S0)}();var N0=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 y8=zt();var lv=function(t){return y8(of(t))};function _r(t){return t}function cv(t){return JSON.stringify(t)}var P0=_r(qc);function O0(t,e,n){try{return e(JSON.parse(n))}catch(r){return t(r.message)}}var Sf=function(t){return O0(j.create,L.create,t)};function b8(t){return t.replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16)})}function U0(t,e,n){try{return e(b8(encodeURIComponent(n)).replace(/%20/g,"+"))}catch(r){return t(r)}}var If=function(){return au(U0)(J(g.value))(h.create)}();var R8=it(ln),W0=y(Z),T8=sn(xr)(Ie);var w8=function(t){return t};var H0=function(){var t=function(r){if(r.value1 instanceof g)return If(r.value0);if(r.value1 instanceof h)return R8(W0(function(a){return function(l){return a+("="+l)}})(If(r.value0)))(If(r.value1.value0));throw new Error("Failed pattern match at Data.FormURLEncoded (line 37, column 16 - line 39, column 114): "+[r.constructor.name])},e=W0(xn("&")),n=T8(t);return function(r){return e(n(w8(r)))}}();var fv=function(){function t(){}return t.value=new t,t}(),So=function(){function t(){}return t.value=new t,t}(),sv=function(){function t(){}return t.value=new t,t}(),Lu=function(){function t(){}return t.value=new t,t}(),jf=function(){function t(){}return t.value=new t,t}(),ul=function(){function t(){}return t.value=new t,t}(),dv=function(){function t(){}return t.value=new t,t}(),pv=function(){function t(){}return t.value=new t,t}(),vv=function(){function t(){}return t.value=new t,t}(),mv=function(){function t(){}return t.value=new t,t}(),_v=function(){function t(){}return t.value=new t,t}(),hv=function(){function t(){}return t.value=new t,t}(),gv=function(){function t(){}return t.value=new t,t}(),Dv=function(){function t(){}return t.value=new t,t}(),yv=function(){function t(){}return t.value=new t,t}(),Af=function(){function t(){}return t.value=new t,t}();var E8=function(t){return t},F8={show:function(t){if(t instanceof fv)return"OPTIONS";if(t instanceof So)return"GET";if(t instanceof sv)return"HEAD";if(t instanceof Lu)return"POST";if(t instanceof jf)return"PUT";if(t instanceof ul)return"DELETE";if(t instanceof dv)return"TRACE";if(t instanceof pv)return"CONNECT";if(t instanceof vv)return"PROPFIND";if(t instanceof mv)return"PROPPATCH";if(t instanceof _v)return"MKCOL";if(t instanceof hv)return"COPY";if(t instanceof gv)return"MOVE";if(t instanceof Dv)return"LOCK";if(t instanceof yv)return"UNLOCK";if(t instanceof Af)return"PATCH";throw new Error("Failed pattern match at Data.HTTP.Method (line 43, column 1 - line 59, column 23): "+[t.constructor.name])}};var $0=oe(M(F8))(E8);var q0={eq:function(t){return function(e){return t instanceof fv&&e instanceof fv||t instanceof So&&e instanceof So||t instanceof sv&&e instanceof sv||t instanceof Lu&&e instanceof Lu||t instanceof jf&&e instanceof jf||t instanceof ul&&e instanceof ul||t instanceof dv&&e instanceof dv||t instanceof pv&&e instanceof pv||t instanceof vv&&e instanceof vv||t instanceof mv&&e instanceof mv||t instanceof _v&&e instanceof _v||t instanceof hv&&e instanceof hv||t instanceof gv&&e instanceof gv||t instanceof Dv&&e instanceof Dv||t instanceof yv&&e instanceof yv||t instanceof Af&&e instanceof Af}}};var k0=function(t){return Su(function(e){return function(){var r=t(function(a){return e(j.create(a))()},function(a){return e(L.create(a))()});return function(a){return Su(function(l){return function(){return r(a,function(d){return l(j.create(d))()},function(d){return l(L.create(d))()}),h0}})}}})};var bv=T(Pa(Be)),M8=Bp(Be),Io=Gp(Be),B0=re(SD(Vg)(Be)),x8=ro(wu(Be)),Nf=y(Z),S8=fr(_t)(Ge),I8=q(Oe),L8=ie(Jt),j8=y(Rt),A8=pt(pa),N8=Ta(ol),P8=T(yn);var Pf=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Of=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}(),Uf=function(){function t(){}return t.value=new t,t}(),Wf=function(){function t(){}return t.value=new t,t}(),Hf=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),G0=function(t){return function(e){var n=function(v){return v===""?bv(P0):oe(function(D){return M8(kp.create(D))})(bv)(Sf(v))},r=function(){if(e.responseFormat instanceof av)return Io("ArrayBuffer");if(e.responseFormat instanceof ov)return Io("Blob");if(e.responseFormat instanceof uv)return function(v){return B0(Io("Document")(v))(B0(Io("XMLDocument")(v))(Io("HTMLDocument")(v)))};if(e.responseFormat instanceof Ff)return x8(function(v){return e.responseFormat.value0(n(v))})(Io("String"));if(e.responseFormat instanceof Mf)return Io("String");if(e.responseFormat instanceof xf)return J(e.responseFormat.value0(bv(F)));throw new Error("Failed pattern match at Affjax (line 274, column 18 - line 283, column 57): "+[e.responseFormat.constructor.name])}(),a=function(v){if(v instanceof b0)return new L(v.value0(qe));if(v instanceof C0)return new L(qe(v.value0));if(v instanceof R0)return new L(qe(v.value0));if(v instanceof T0)return new L(qe(v.value0));if(v instanceof w0)return new L(qe(v.value0));if(v instanceof nv)return ba("Body contains values that cannot be encoded as application/x-www-form-urlencoded")(Nf(qe)(H0(v.value0)));if(v instanceof Tf)return new L(qe(cv(v.value0)));throw new Error("Failed pattern match at Affjax (line 235, column 20 - line 250, column 69): "+[v.constructor.name])},l=function(v){return function(D){return v instanceof h&&!S8(ui(I8)(rv)(v.value0))(D)?uu(D)(v.value0):D}},f=function(v){return l(Nf(Ef.create)(L8(E0)(v)))(l(Nf(wf.create)(L0(e.responseFormat)))(e.headers))},d=function(v){return{method:$0(e.method),url:e.url,headers:j8(function(D){return{field:rv(D),value:x0(D)}})(f(e.content)),content:v,responseType:I0(e.responseFormat),username:Bn(e.username),password:Bn(e.password),withCredentials:e.withCredentials,timeout:ct(0)(Nf(function(D){return D})(e.timeout))}},p=function(v){return A8(N8(k0(D0(t,"AffjaxTimeoutErrorMessageIdent","AffjaxRequestFailedMessageIdent",N0.create,d(v)))))(function(D){if(D instanceof L){var C=lv(r(D.value0.body));if(C instanceof j)return new j(new Of(ND(C.value0),D.value0));if(C instanceof L)return new L({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 j)return new j(function(){var b=Ra(D.value0),R=b==="AffjaxTimeoutErrorMessageIdent";if(R)return Uf.value;var E=b==="AffjaxRequestFailedMessageIdent";return E?Wf.value:new Hf(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 g)return p(Bn(g.value));if(e.content instanceof h){var m=a(e.content.value0);if(m instanceof L)return p(Bn(new h(m.value0)));if(m instanceof j)return P8(new j(new Pf(m.value0)));throw new Error("Failed pattern match at Affjax (line 199, column 7 - line 203, column 48): "+[m.constructor.name])}throw new Error("Failed pattern match at Affjax (line 195, column 3 - line 203, column 48): "+[e.content.constructor.name])}};var ju=function(){return{method:new j(So.value),url:"/",headers:[],content:g.value,username:g.value,password:g.value,withCredentials:!1,responseFormat:A0,timeout:g.value}}();var J0={eq:function(t){return function(e){return t===e}}};var Cv={newXHR:function(){return new XMLHttpRequest},fixupUrl:function(t){return t||"/"}};var z0=G0(Cv);var z0t=typeof Array.from=="function",V0t=typeof Symbol!="undefined"&&Symbol!=null&&typeof Symbol.iterator!="undefined"&&typeof String.prototype[Symbol.iterator]=="function",Q0t=typeof String.prototype.fromCodePoint=="function",K0t=typeof String.prototype.codePointAt=="function";function my(t){return Buffer.from(t).toString("base64")}function _y(t,e,n){let r;try{r=e(btoa(n))}catch(a){r=t(a)}return r}var jv=typeof btoa=="function";function hy(t){let e=32768,n=[];for(let r=0;r=90)return Wv.value;if(t>=70)return Hv.value;if(X)return fl.value;throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.Utils (line 22, column 1 - line 22, column 30): "+[t.constructor.name])},jo=function(t){return F7("mx-auto")(M7("spinner spinner-border text-primary "+ct("")(t.extraClass))(""))},Bf={subject:"",body:""},$v=function(t){if(t instanceof Ha)return t.value0;if(t instanceof vf)return Bf;throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.Utils (line 35, column 20 - line 37, column 23): "+[t.constructor.name])};var Sn=function(){function t(){}return t.value=new t,t}(),Wr=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Zn=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}();var Wy=function(t){if(t instanceof Sn)return new Zn(g.value);if(t instanceof Wr)return new Zn(new h(t.value0));if(t instanceof Zn)return new Zn(t.value0);throw new Error("Failed pattern match at Utils.Loadable (line 63, column 13 - line 66, column 25): "+[t.constructor.name])},qv=function(t){if(t instanceof Sn)return g.value;if(t instanceof Wr)return new h(t.value0);if(t instanceof Zn)return t.value0;throw new Error("Failed pattern match at Utils.Loadable (line 48, column 11 - line 51, column 17): "+[t.constructor.name])};var x7=Bc(le),Hy=Jc(ve),$y=Na(Ot),S7=M(Lt),I7=Vc(ve),L7=zc(le),Gf=pt(Z),qy=function(t){var e=function(m){return function(v){return x7("d-flex align-items-center justify-content-between my-2")([Hy("font-weight-bold fw-bold")(me(m)),Hy("")(v)])}},n=e("School Perception"),r=e("Quality"),a=e("Readability"),l=e("Spam Factor"),f=jo({extraClass:g.value}),d=$y("text-secondary")("--"),p=st(d)(function(){var m=$y("font-weight-bold fw-bold");return function(v){return m(S7(Lr(v)))}}());return I7("w-100")(L7("")(function(){if(t.scores instanceof Wr)return[l(p(Gf(t.scores.value0.categories)(function(m){return m.spam}))),n(p(Gf(t.scores.value0.categories)(function(m){return m.perception}))),r(p(Gf(t.scores.value0.categories)(function(m){return m.quality}))),a(p(Gf(t.scores.value0.categories)(function(m){return m.readability})))];if(t.scores instanceof Zn)return[l(f),n(f),r(f),a(f)];if(t.scores instanceof Sn)return[l(d),n(d),r(d),a(d)];throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.CategoryScores (line 17, column 16 - line 35, column 10): "+[t.scores.constructor.name])}()))};var j7=function(){function t(){}return t.value=new t,t}(),kv=function(){function t(){}return t.value=new t,t}(),A7=function(){function t(){}return t.value=new t,t}(),N7=function(){function t(){}return t.value=new t,t}(),ky=function(t){if(t instanceof j7)return"modal-sm";if(t instanceof kv)return"";if(t instanceof A7)return"modal-lg";if(t instanceof N7)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 vb=Qs(pb()),mb=vb.default;var _S=fa(),_b=function(t){var e=_S(t);return function(){return function(){return e(mb)}}};var gS=I;var hb=function(t){return Tu(t)};var Uu=function(t){var e=hb(t);return e?g.value:new h(gS(t))};var nn=function(t){return function(e){var n=hb(t);return n?e:t}};var Wu=function(){return I};var DS=T(ye),yS=ea(),gb=function(t){return{handleMaybe:function(e){return function(n){return Du(function(){var r=st(DS(F))(e);return function(a){return r(yS(n(a)))}}())}}}};var Db={handle:function(t){return function(e){return function(n){return t(e(n))()}}}};var Yf={handleEffect:function(t){return Du(J(t))}},Yv={handle:function(t){return function(e){return function(n){return t(e)()}}}},Xv=function(t){return t.handleMaybe},vl=function(t){return t.handleEffect},ml=function(t){return t.handle};var _l="";function yb(t){var e=t.split(` `);return e.reduce(function(n,r){var a=RS(r)||wS(r)||MS(r)||LS(r)||SS(r);return a&&n.push(a),n},[])}var bS=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,CS=/\((\S*)(?::(\d+))(?::(\d+))\)/;function RS(t){var e=bS.exec(t);if(!e)return null;var n=e[2]&&e[2].indexOf("native")===0,r=e[2]&&e[2].indexOf("eval")===0,a=CS.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]||_l,arguments:n?[e[2]]:[],lineNumber:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}var TS=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function wS(t){var e=TS.exec(t);return e?{file:e[2],methodName:e[1]||_l,arguments:[],lineNumber:+e[3],column:e[4]?+e[4]:null}:null}var ES=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,FS=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function MS(t){var e=ES.exec(t);if(!e)return null;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=FS.exec(e[3]);return n&&r!=null&&(e[3]=r[1],e[4]=r[2],e[5]=null),{file:e[3],methodName:e[1]||_l,arguments:e[2]?e[2].split(","):[],lineNumber:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}var xS=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function SS(t){var e=xS.exec(t);return e?{file:e[3],methodName:e[1]||_l,arguments:[],lineNumber:+e[4],column:e[5]?+e[5]:null}:null}var IS=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function LS(t){var e=IS.exec(t);return e?{file:e[2],methodName:e[1]||_l,arguments:[],lineNumber:+e[3],column:e[4]?+e[4]:null}:null}function bb({skipFrames:t,prefix:e}){let n=new Error().stack,a=yb(n)[t],l=Cb(a.file.replace(/^(http(s?):\/\/)?[^\/]+/,"")),f=Cb(a.methodName);return`${e}_${l}_${f}_${a.lineNumber}_${a.column}`}var Cb=t=>t.replace(/[^\d\w]+/g,"_").replace(/(^_|_$)/g,"");mu();var Rb=function(){let t={};return function(e,n){let r=t[e]||(t[e]=Eb(e));return n(r)}}();function Tb(t){return t(Eb())}var wb=ia.createElement,hl=t=>()=>t.props.def;function Eb(t){class e extends ia.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 Xf=typeof module=="undefined"?void 0:module.require,QRt=function(){try{return Xf===void 0?void 0:Xf("util")}catch{return}}();var KRt=function(){var t;if(typeof performance!="undefined")t=performance;else if(Xf)try{t=Xf("perf_hooks").performance}catch{}return function(){return(t||Date).now()}}();var Fb=(t,e)=>e[t],Mb=(t,e,n)=>n[t]=e;var jS=pt(mt),gl=function(){function t(){}return t.value=new t,t}(),xb=function(){return function(t){var e=ue(t);return function(n){return Eo(Mb)(e(Ht.value))}}},Zv=function(t){var e=Mu(t);return function(n){var r=ue(n);return function(a){return function(l){return jS(function(){return Fb(r(Ht.value),l)})(e)}}}};var tm=y(mt),AS=T(ye),Sb=function(t){return{initialize:function(e){return dD(e)(t.initialState)},getState:function(e){return function(){var r=tm(yt)(sD(e))();return ct(t.initialState)(r)}},setState:Sp}},Ib=function(){var t=function(e){return function(n){return{initialize:function(r){return Xr(new h(n.initialState))(e)},getState:function(r){return tm(ct(n.initialState))(wa(e))},setState:function(r){return function(a){return function(l){return function(){return Xr(new h(a))(e)(),Sp(r)(a)(AS(F))(),l()}}}}}}};return tm(t)(uo(g.value))}();var jb=pt(Rt),Ab=k(Se);var Nb=xb(),Pb={reflectSymbol:function(){return"__unmounted"}},NS=Nb(Pb),Ob={reflectSymbol:function(){return"__subscriptions"}},PS=Nb(Ob),Zf=pt(mt),OS=Zv(Ji)(Pb),Ub=y(mt),US=Zv(zi(OD))(Ob),WS=se(de),HS=ie(wn),$S=tc(ye)(_t),qS=WS(Qe),Wb=gt(du),kS=Bl(Ca),BS=k(Ys(Gl(ii))),em=function(t){return t},$a=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}(),GS={map:function(t){return function(e){return new $a(t(e.value0),e.value1)}}},Hb=function(t){return{bimap:function(e){return function(n){return function(r){return new $a(n(r.value0),jb(r.value1)(function(a){return function(l){return a({dispatch:function(f){return l.dispatch(e(f))},onStop:l.onStop})}}))}}}}},$b={apply:function(t){return function(e){return new $a(t.value0(e.value0),Ab(t.value1)(e.value1))}},Functor0:function(){return GS}},_a={bind:function(t){return function(e){var n=e(t.value0);return new $a(n.value0,Ab(t.value1)(n.value1))}},Apply0:function(){return $b}},pn={pure:function(t){return new $a(t,[])},Apply0:function(){return $b}};var qb=function(t){var e=S(t);return function(n){var r=gt(n);return function(a){return function(l){return new $a(a,jb(l)(function(f){return function(d){return e(f)(function(p){return r(d.dispatch(p))})}}))}}}};var No=function(t){return new $a(F,[t])},tr=function(t){return No(J(t))};var Hu=function(t){var e=qb(t.Monad0().Bind1())(t);return function(n){return e(F)([n])}},kb=function(t){return function(e){var n=NS(gl.value),r=PS(gl.value),a=function(b){return function(R){return function(E){return function(){var K=Zf(hl(b))(function(Y){return Y.init})();return e({initialState:K.value0}).setState(b)(R)(E)()}}}},l=function(){var b=Ub(ct(!1)),R=OS(gl.value);return function(E){return b(R(E))}}(),f=function(){var b=Ub(ct([])),R=US(gl.value);return function(E){return b(R(E))}}(),d=function(b){return function(){return HS($S)(f(b))(),r([])(b)()}},p=function(b){return function(){var E=Zf(hl(b))(function(N){return N.init})();return e({initialState:E.value0}).getState(b)()}},m=function(b){return function(R){return function(){var N=f(b)();return r(aa(yf(R))(N))(b)()}}},v=function(b){return function(R){var E=function(N){return yf(qS(va(0))(function(){return N({dispatch:function(){var K=D(R);return function(Y){return Wb(K(Y))}}(),onStop:m(R)})}))};return ad(b)(E)}},D=function(b){return function(R){return kS(l(b))(function(){var N=p(b)(),K=Zf(hl(b))(function(Wt){return Wt.update})(),Y=K(N)(R);return a(b)(Y.value0)(v(Y.value1)(b))()})}},C=function(b){return function(){var E=p(b)(),N=Zf(hl(b))(function(K){return K.view})();return N(E)(D(b))}};return function(b){return wb(t,{def:b,init:e({initialState:b.init.value0}).initialize,render:C,componentDidMount:v(b.init.value1),componentWillUnmount:BS(n(!0))(d)})}}},nm=function(t){return function(){var n=Wb(Ib)();return Tb(function(r){return kb(r)(n)(t)})}},Dl=function(t){return function(e){return Rb(t,function(n){var r=kb(n)(Sb);return function(a){return r(e(a))}})}};var JS=T(pn),zS=$(G),ts=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),VS={map:function(t){return function(e){return new ts(function(n){return e.value0(function(r){return n(t(r))})})}}},QS=y(VS);var Bb=function(t){return em(bb(t))},yl=function(t){return new ts(function(e){return e(t)})},$u=function(t){return function(e){return new ts(function(n){return Dl(t)(e)(n)})}},Gb=function(t){return function(e){return Dl(t)(function(n){return{init:JS(F),update:J(ya),view:J(J(e.value0(zS)))}})(F)}},Jb=function(t){var e=Bb({skipFrames:3,prefix:"WithHook"});return function(n){return Gb(e)(QS(n)(t))}};var es=function(t){var e=Bb({skipFrames:3,prefix:"HooksComponent"});return Gb(e)(t)},ns=function(){return function(t){return function(e){return new ts(function(n){return t.value0(function(r){var a=e(r);return a.value0(n)})})}}},KS=ns(),rs=function(t){return function(){return KS}};var zb=al(Df);var Vb={map:function(t){return function(e){return zb(zb(t))(e)}}},YS=pt(Vb),XS=function(t){var e=S(t.Monad0().Bind1()),n=gt(t);return function(r){return No(function(a){return e(r(a.dispatch))(function(l){return n(a.onStop(l))})})}},as=function(t){var e=XS(t);return function(n){return function(r){return e(YS(r)(n))}}};var Qb=se(de)(_a),ZS=as(be),t6=$(G),Kb=T(pn),rm=function(t){return function(e){return $u("UseSubscription")(function(n){return{init:Qb(ZS(t6)(t))(function(){return Kb(F)}),update:function(r){return function(a){return Qb(tr(e(a)))(function(){return Kb(F)})}},view:function(r){return function(a){return n(F)}}}})}};function am(t){return function(){return function(e){return t(e)()}}}function om(t){return function(e){return function(n){return function(r){return function(){return r.addEventListener(t,e,n)}}}}}function um(t){return function(e){return function(n){return function(r){return function(){return r.removeEventListener(t,e,n)}}}}}var Po=function(){return window};var im=I;var Yb=I;function qu(t){return function(){return t.document}}var Xb=I;var Zb="message";var tC="hashchange";var eC="popstate";var nC="keyup",rC="keydown";var aC="mouseup";var oC="mousemove";var uC=gt(be),iC=y(mt),r6=ie(wn),lC=function(){var t=function(r){return function(a){return function(l){return uC(function(){var d=a(),p=am(function(m){return l(m)})();return om(r)(p)(!1)(d)(),uC(um(r)(p)(!1)(d))})}}},e=function(r){return t(r)(iC(Xb)(Po))},n=function(r){return t(r)(iC(Yb)(r6(qu)(Po)))};return{hashchange:e(tC),mousemove:e(oC),mouseup:e(aC),popstate:e(eC),resize:e("resize"),message:e(Zb),keydown:n(rC),keyup:n(nC),selectionchange:n("selectionchange"),visibilitychange:n("visibilitychange")}}();var cC=function(t){var e=Op(t);return function(){return function(){return e("button")}}},fC=function(){return function(){return yD("br")}};var sC=function(t){var e=Op(t);return function(){return function(){return e("a")}}};var dC=_o()(),oL=function(t){return t},ha=qe(pi),Oo=function(t){var e=cC(t)()();return function(){return function(){return function(n){return function(r){return function(a){return function(l){return e(dC(a)({className:n,"aria-label":r}))(l)}}}}}}};var pC=function(t){return oL(qe(t))},os=function(t){var e=sC(t)()();return function(){return function(){return function(n){return function(r){return function(a){return function(l){return e(dC(a)({className:n,"aria-label":r}))(l)}}}}}}};function mC(t){return function(e){return function(){return e.getElementById(t)}}}var cL=y(mt),cm=function(t){var e=cL(yt),n=mC(t);return function(r){return e(n(r))}};var us=function(t){return function(e){return function(){return e[t]}}},fL=us("children"),sL=us("firstElementChild"),dL=us("lastElementChild"),pL=us("childElementCount");var mL=y(Rt);var _L=fC()();var hr=Ct(st(gn));var hC=function(t){return function(e){if(t)return e(F);if(X)return gn;throw new Error("Failed pattern match at Utils.HTML (line 98, column 1 - line 98, column 61): "+[t.constructor.name,e.constructor.name])}},fm=function(t){return function(e){return hC(t)(J(e))}};var sm=function(t){return $e(bi(_L({}))(mL(me)(ua(` `)(t))))};var gC=function(){return I};var ku=ce(ve),dm=Wu(),hL=_b(ve)()(),gL=sa(ve)()(),DL=sa(le)()(),yL=ce(le),bL=Oo(Ot)()(),CL=vl(Yf),RL=qn(yn),TL=gt(be),DC=gC(),pm=function(){return function(t){var e=ku("modal-backdrop fade show")(gn),n=dm(t),r=Uu(n.footer),a=Uu(n.header),l=nn(n.size)(kv.value),f=xn(" ")([function(){var p=nn(n.scrollable)(!0);return p?"modal-dialog-scrollable":""}(),function(){var p=nn(n.centered)(!0);return p?"modal-dialog-centered":""}(),ky(l),nn(n.dialogClass)("")]),d=hL({focusTrapOptions:{escapeDeactivates:!1,fallbackFocus:".modal-content",allowOutsideClick:!0}})(ku("modal fade show d-block")(gL("modal-dialog "+f)({style:nn(n.dialogStyle)(Fo({}))})(DL("modal-content "+nn(n.contentClass)(""))({style:nn(n.contentStyle)(Fo({}))})([hr(a)(ku("modal-header "+nn(n.headerClass)(""))),ku("modal-body "+nn(n.bodyClass)(""))(n.body),hr(r)(ku("modal-footer "+nn(n.footerClass)("")))]))));return $e([d,e])}},yC=pm(),bC=function(){return function(t){var e=dm(t),n=yL("d-flex w-100 justify-content-between align-items-center")([ku("mr-4")(nn(e.title)(gn)),bL("btn btn-link large mr-n3 py-0 fe fe-x t--close "+nn(e.dismissButtonClass)("text-body"))(pC("Close"))({type:"button",onClick:CL(e.onDismiss)})("")]),r=function(a){return RL(a.key==="Escape")(TL(e.onDismiss))};return Jb(rm(lC.keyup)(r))(function(a){var l=nn(e.bodyScrollable)(!1);return yC(l?function(){var f=dm(DC(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,scrollable:f.scrollable,size:f.size,header:n}}():DC({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,onDismiss:e.onDismiss,scrollable:e.scrollable,size:e.size,title:e.title,body:$e([n,e.body])}))})}};function CC({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 RC=function(t){return CC({containerSelector:t.containerSelector,onSubmit:function(e){return t.onSubmit(mf(e))}})};mu();var TC=class extends ia.Component{componentDidUpdate(e){this.props.componentDidUpdate(e.deps)}render(){return this.props.children}},wC=TC;var wL=ae();var EC=function(t){return"ref:"+ue(t)(Ht.value)},FC=function(t){var e=EC(t);return function(n){return wL($i(e)(n))}},MC=function(t){var e=EC(t);return function(n){return Lp(e)(n)}};var EL=fa(),SC=se(de)(_a),IC=T(pn),FL=Xv(gb(o0)),LC={reflectSymbol:function(){return"deps"}},ML=FC(LC),xL=MC(LC),SL=$(G);var IL=function(t){var e=EL(t);return function(){return function(){return e(wC)}}},LL=IL(ve)()(),jL=function(t){var e=Za(t);return function(n){return function(r){return function(a){return function(l){return $u(n)(function(f){return r({init:SC(tr(l(a)))(function(){return IC(a)}),update:function(d){return function(p){return SC(tr(l(p)))(function(){return IC(p)})}},view:function(d){return function(p){return LL({componentDidUpdate:FL(p)(function(m){var v=e(ML(m))(a);return v?new h(a):g.value}),deps:xL(a)})(f(F))}}})})}}}}},AL=jL(li);var vm=function(t){return AL("UseEffect")(SL)(F)(J(t))};var Bu=ce(le),jC=ki()(),AC=Kn(Ot),NC=Na(Ot),NL=pt(Rt),PL=Pr(le),OL=Nr(Ot),UL=os(Ot)()(),WL=Oo(Ot)()(),HL=vl(Yf),$L=bC(),mm=ce(Ot),qL=sa(ve)()(),kL=rs(de)(),BL=gt(be),GL=pm(),PC=function(t){var e=Bu("d-flex align-items-center")([jC("")({src:"/img/data_lab/email_content_optimizer/sage-branding.svg",alt:"Purple circle with white stars in middle",height:"48",width:"48"}),Bu("d-flex flex-column ml-3")([AC("mb-2")("Report methodology"),NC("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=Bu("mt-4")([$e(NL(n)(function(a){return PL("")([OL("")(a.label+": "),me(a.description)])})),Bu("mt-4 d-flex align-items-center justify-content-between")([UL("")(ha)({href:"https://go.collegevine.com/hubfs/Email%20Content%20Optimizer%20(ECO)%20Methodology.pdf",target:"_blank"})("Full methodology"),WL("btn btn-dark w-25")(ha)({onClick:HL(t.onDismiss)})("Ok")])]);return $L({title:e,onDismiss:t.onDismiss,body:r})},OC=function(t){var e=$e([Bu("d-flex align-items-center")([jC("")({src:"/img/data_lab/email_content_optimizer/sage-branding.svg",alt:"Purple circle with white stars in middle",height:"48",width:"48"}),Bu("d-flex flex-column ml-3")([AC("mb-2")("Email Content Optimizer"),NC("text-secondary")("Powered by Sage")])]),mm("mt-4")("AI-powered benchmarks for your marketing emails"),mm("mt-2")("Built from a dataset of 20,000+ student ratings"),mm("mt-2")("Targeted suggestions for improvement based on real student feedback"),qL("mt-4")({id:"t--eco-registration-modal"})(es(kL(vm(BL(RC({containerSelector:"#t--eco-registration-modal",onSubmit:t.onSubmit}))))(function(){return yl(gn)})))]);return GL({body:e})};var JL=M(Lt),zL=Mn(_t)(_n),UC=function(t){var e=qi(t);return function(){return function(){return e("text")}}};var VL=function(){return function(){return Cu("path")}},QL=VL()();var WC=function(t){var e=function(d){return JL(Lr(d))},n=function(d){return function(p){return e(d*p.x)+(" "+e(d*p.y))}},r=function(d){return{x:t.center.x+zd(d),y:t.center.y-Vd(d)}},a=r(t.angle1),l=r(t.angle0),f=function(){var d=t.angle1-t.angle0>fu;return d?"1":"0"}();return QL("")({d:zL([" 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 KL=UC(Ot)()(),YL=Wu(),XL=Qc(le)()(),HC=function(){return function(t){var e=function(p){return WC({center:{x:0,y:0},angle0:p.start,angle1:p.end,innerRadius:p.innerRadius,outerRadius:p.outerRadius,fill:p.fill,stroke:{color:"",width:0}})},n=function(p){return KL("")({x:"0",y:"0",dominantBaseline:"middle",textAnchor:"middle",fontSize:p.fontSize})(p.text)},r=fu*1.02/2,a=fu*2.48,l=e({start:r,end:a,fill:"#D2DDEC",innerRadius:80,outerRadius:85}),f=YL(t),d=e({start:r+(a-r)*(1-Fe(Lr(f.progress*100))/100),end:fu*2.48,fill:Ny(f.fillColor),innerRadius:75,outerRadius:90});return XL("")({viewBox:"-100 -100 200 200"})([fm(f.completeCircle)(l),d,hr(Uu(f.centerLabel))(n)])}};var $C=ce(le),_m=ce(ve),ZL=sa(ve)()(),tj=HC(),ej=Kn(Ot),nj=Pr(le),rj=Nr(Ot),qC=function(t){return function(e){return $C("text-center flex-grow-1 "+t.extraClass)([me(t.label),_m("mt-2")(e)])}},kC=function(t){var e=qC({label:"Subject Line score",extraClass:""}),n=qC({label:"Overall score",extraClass:"border-right"}),r=function(a){return ZL("mx-auto")({style:Fo({height:"80px",width:"80px"})})(tj({progress:st(0)(function(l){return l/100})(a),completeCircle:!0,fillColor:st(fl.value)(Oy)(a),centerLabel:{text:Py(a),fontSize:"40px"}}))};return $e([ej("mb-2")("Email performance scores"),nj("text-secondary")([me("Powered by AI and "),rj("")("20,000+ student ratings"),me(" of real college emails.")]),$C("row mt-4")(function(){if(t.scores instanceof Wr)return[n(r(t.scores.value0.overall.body)),e(r(t.scores.value0.overall.subject))];if(t.scores instanceof Zn)return[n(_m("pt-3")(jo({extraClass:new h("spinner-xl")}))),e(_m("pt-3")(jo({extraClass:new h("spinner-xl")})))];if(t.scores instanceof Sn)return[n(r(g.value)),e(r(g.value))];throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.OverallScores (line 24, column 22 - line 38, column 10): "+[t.scores.constructor.name])}())])};var aj=M(JD),BC=function(t){return function(e){return t.ecoBaseUrl+("?uid="+aj(e))}},GC="https://partners.collegevine.com/#contact-form";var oj=Kn(Ot),uj=Pr(le),ij=os(ve)()(),lj=Nr(Ot),JC=ce(le),cj=Mr(so),fj=ce(ve),sj=ce(Ot),dj=M(Lt),hm=function(t){if(t instanceof g)return gn;if(t instanceof h)return $e([oj("")("Student persona breakdown"),uj("text-secondary")([me(` 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. `),ij("")(ha)({href:GC,target:"_blank"})(lj("text-success")(" Schedule a demo")),me(" to learn how you can make your existing marketing content more effective by adding student personas to your CRM.")]),JC("row mt-4")(cj(function(e){return function(n){return JC("col-4 col-md text-center mt-2 mt-md-0")([fj("mb-0")(GD(n)({height:"71",width:"50"})),sj("text-secondary mt-3")(dj(e+1|0)+(". "+Kp(n)))])}})(t.value0.rankedPersonas))]);throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.PersonaBreakdown (line 14, column 1 - line 14, column 37): "+[t.constructor.name])};var pj=Na(Ot),vj=Kn(Ot),mj=Pr(le),_j=Nr(Ot),hj=ce(ve),is=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),gm=function(){function t(){}return t.value=new t,t}(),Gu=function(t){var e=hr(t)(function(n){if(n instanceof is)return sm(n.value0);if(n instanceof gm)return pj("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 34 - line 27, column 129): "+[n.constructor.name])});return $e([vj("mb-3")("Top suggestions"),mj("text-secondary")([me("Suggestions are based on a model trained by "),_j("")("real student feedback"),me(".")]),hj("mt-3")(e)])};var gj=Or();var zC=S(Jt),VC=Mu(gj(Ut({reflectSymbol:function(){return"value"}})(Xt)(en))),QC=T(Ie);var KC=function(t){return ct("")(zC(VC(qe(t.target)))(function(e){return QC(e.value)}))};var YC=function(t){return ct("")(zC(VC(qe(t.target)))(function(e){return QC(e.value)}))};var ls=t=>()=>{try{navigator.clipboard.writeText(t)}catch(e){yj(e),Dj(t)}},Dj=t=>{var e=document.createElement("textarea");document.body.appendChild(e),e.value=t,e.select(),document.execCommand("copy"),document.body.removeChild(e)},yj=t=>{if(typeof window!="undefined"){let e=new Error("Unable to write text to clipboard using Clipboard API. Falling back to execCommand.");typeof window.Sentry!="undefined"&&window.Sentry.captureException(e,{extra:t})}};var XC=JSON.stringify;var eR=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 Ke=function(){function t(){}return t.value=new t,t}(),Ye=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}(),nR=function(){function t(){}return t.value=new t,t}(),ym=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}(),bm=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 cs=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 er=function(t,e,n,r){if(n instanceof Ke){if(r instanceof Ke)return new Ye(1,1,t,e,n,r);if(r instanceof Ye)return new Ye(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 Ye){if(r instanceof Ke)return new Ye(1+n.value0|0,1+n.value1|0,t,e,n,r);if(r instanceof Ye)return new Ye(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])},rR=function(){return Ct(bm.create)(nR.value)}(),Cj=function(t){return function(e){return function(n){var r=function(a){var l=!1,f;function d(p){if(p instanceof nR)return l=!0,n(F);if(p instanceof ym)return l=!0,e(p.value0,p.value1,p.value2);if(p instanceof bm){a=t(p.value1)(p.value0);return}throw new Error("Failed pattern match at Data.Map.Internal (line 940, column 8 - line 946, column 20): "+[p.constructor.name])}for(;!l;)f=d(a);return f};return r}}};var bl=function(t){return function(e){return new Ye(1,1,t,e,Ke.value,Ke.value)}},fs=function(){var t=function(r){if(r instanceof Ke)return 0;if(r instanceof Ye)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,d,p,m){return p instanceof Ye&&p.value0>t(m)?er(p.value2,p.value3,er(r,a,l,p.value4),er(f,d,p.value5,m)):er(f,d,er(r,a,l,p),m)},n=function(r,a,l,f,d,p,m){return p instanceof Ye&&t(d)<=p.value0?er(p.value2,p.value3,er(l,f,d,p.value4),er(r,a,p.value5,m)):er(l,f,d,er(r,a,p,m))};return function(r,a,l,f){if(l instanceof Ke)return f instanceof Ke?bl(r)(a):f instanceof Ye&&f.value0>1?e(r,a,l,f.value2,f.value3,f.value4,f.value5):er(r,a,l,f);if(l instanceof Ye){if(f instanceof Ye){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 Ke&&l.value0>1?n(r,a,l.value2,l.value3,l.value4,l.value5,f):er(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])}}(),Cm=eR("unsafeSplit","Data.Map.Internal",function(){return function(t,e,n){if(n instanceof Ke)return new cs(g.value,Ke.value,Ke.value);if(n instanceof Ye){var r=t(e)(n.value2);if(r instanceof W){var a=Cm(793)(t,e,n.value4);return new cs(a.value0,a.value1,fs(n.value2,n.value3,a.value2,n.value5))}if(r instanceof O){var a=Cm(796)(t,e,n.value5);return new cs(a.value0,fs(n.value2,n.value3,n.value4,a.value1),a.value2)}if(r instanceof at)return new cs(new h(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])}}),Rj=Cm(786);var Rm=eR("unsafeUnionWith","Data.Map.Internal",function(){return function(t,e,n,r){if(n instanceof Ke)return r;if(r instanceof Ke)return n;if(r instanceof Ye){var a=Rj(t,r.value2,n),l=Rm(809)(t,e,a.value1,r.value4),f=Rm(810)(t,e,a.value2,r.value5);if(a.value0 instanceof h)return fs(r.value2,e(a.value0.value0)(r.value3),l,f);if(a.value0 instanceof g)return fs(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])}}),Tj=Rm(803),Tm=function(t){var e=B(t);return function(n){return function(r){return function(a){return Tj(e,n,r,a)}}}},ss=function(t){return Tm(t)(J)};var wj=function(){var t=function(e){return function(n){var r=e,a=!1,l;function f(d,p){if(p instanceof Ke)return a=!0,d;if(p instanceof Ye){if(p.value5 instanceof Ke){r=new ym(p.value2,p.value3,d),n=p.value4;return}r=new ym(p.value2,p.value3,new bm(p.value5,d)),n=p.value4;return}throw new Error("Failed pattern match at Data.Map.Internal (line 951, column 13 - line 958, column 48): "+[p.constructor.name])}for(;!a;)l=f(r,n);return l}};return t}(),aR=Cj(wj);var Ej=function(){var t=function(e,n,r){return new h(new z(new z(e,n),r))};return aR(t)(function(e){return g.value})}(),Uo=function(t){var e=dr(t)(Ej);return function(n){return e(rR(n))}};var Wo=function(){return Ke.value}();var Mj=function(t,e,n){var r=new Date(Date.UTC(t,e,n));return t>=0&&t<100&&r.setUTCFullYear(t),r};function oR(t,e,n,r){var a=Mj(e,n-1,r);return t(a.getUTCFullYear())(a.getUTCMonth()+1)(a.getUTCDate())}var Fm=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 bn=function(){function t(){}return t.value=new t,t}(),In=function(){function t(){}return t.value=new t,t}(),Ln=function(){function t(){}return t.value=new t,t}(),jn=function(){function t(){}return t.value=new t,t}(),An=function(){function t(){}return t.value=new t,t}(),Nn=function(){function t(){}return t.value=new t,t}(),Pn=function(){function t(){}return t.value=new t,t}(),On=function(){function t(){}return t.value=new t,t}(),Un=function(){function t(){}return t.value=new t,t}(),Wn=function(){function t(){}return t.value=new t,t}(),Hn=function(){function t(){}return t.value=new t,t}(),nr=function(){function t(){}return t.value=new t,t}();var ds=kt,ps=kt,uR=Rn;var Mm={eq:function(t){return function(e){return t instanceof bn&&e instanceof bn||t instanceof In&&e instanceof In||t instanceof Ln&&e instanceof Ln||t instanceof jn&&e instanceof jn||t instanceof An&&e instanceof An||t instanceof Nn&&e instanceof Nn||t instanceof Pn&&e instanceof Pn||t instanceof On&&e instanceof On||t instanceof Un&&e instanceof Un||t instanceof Wn&&e instanceof Wn||t instanceof Hn&&e instanceof Hn||t instanceof nr&&e instanceof nr}}},vs={compare:function(t){return function(e){if(t instanceof bn&&e instanceof bn)return at.value;if(t instanceof bn)return W.value;if(e instanceof bn)return O.value;if(t instanceof In&&e instanceof In)return at.value;if(t instanceof In)return W.value;if(e instanceof In)return O.value;if(t instanceof Ln&&e instanceof Ln)return at.value;if(t instanceof Ln)return W.value;if(e instanceof Ln)return O.value;if(t instanceof jn&&e instanceof jn)return at.value;if(t instanceof jn)return W.value;if(e instanceof jn)return O.value;if(t instanceof An&&e instanceof An)return at.value;if(t instanceof An)return W.value;if(e instanceof An)return O.value;if(t instanceof Nn&&e instanceof Nn)return at.value;if(t instanceof Nn)return W.value;if(e instanceof Nn)return O.value;if(t instanceof Pn&&e instanceof Pn)return at.value;if(t instanceof Pn)return W.value;if(e instanceof Pn)return O.value;if(t instanceof On&&e instanceof On)return at.value;if(t instanceof On)return W.value;if(e instanceof On)return O.value;if(t instanceof Un&&e instanceof Un)return at.value;if(t instanceof Un)return W.value;if(e instanceof Un)return O.value;if(t instanceof Wn&&e instanceof Wn)return at.value;if(t instanceof Wn)return W.value;if(e instanceof Wn)return O.value;if(t instanceof Hn&&e instanceof Hn)return at.value;if(t instanceof Hn)return W.value;if(e instanceof Hn)return O.value;if(t instanceof nr&&e instanceof nr)return at.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 Mm}},iR=Rn,lR=function(){return{bottom:-271820|0,top:275759,Ord0:function(){return ds}}}();var cR=function(){return{bottom:bn.value,top:nr.value,Ord0:function(){return vs}}}(),rr={cardinality:547580,toEnum:function(t){if(t>=(-271820|0)&&t<=275759)return new h(t);if(X)return g.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 lR},Enum1:function(){return xj(0)}},xj=Fm("enumYear","Data.Date.Component",function(){return{succ:function(){var t=Tt(rr),e=It(rr);return function(n){return t(function(r){return r+1|0}(e(n)))}}(),pred:function(){var t=Tt(rr),e=It(rr);return function(n){return t(function(r){return r-1|0}(e(n)))}}(),Ord0:function(){return ds}}});var vn={cardinality:12,toEnum:function(t){return t===1?new h(bn.value):t===2?new h(In.value):t===3?new h(Ln.value):t===4?new h(jn.value):t===5?new h(An.value):t===6?new h(Nn.value):t===7?new h(Pn.value):t===8?new h(On.value):t===9?new h(Un.value):t===10?new h(Wn.value):t===11?new h(Hn.value):t===12?new h(nr.value):g.value},fromEnum:function(t){if(t instanceof bn)return 1;if(t instanceof In)return 2;if(t instanceof Ln)return 3;if(t instanceof jn)return 4;if(t instanceof An)return 5;if(t instanceof Nn)return 6;if(t instanceof Pn)return 7;if(t instanceof On)return 8;if(t instanceof Un)return 9;if(t instanceof Wn)return 10;if(t instanceof Hn)return 11;if(t instanceof nr)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 cR},Enum1:function(){return Sj(0)}},Sj=Fm("enumMonth","Data.Date.Component",function(){return{succ:function(){var t=Tt(vn),e=It(vn);return function(n){return t(function(r){return r+1|0}(e(n)))}}(),pred:function(){var t=Tt(vn),e=It(vn);return function(n){return t(function(r){return r-1|0}(e(n)))}}(),Ord0:function(){return vs}}});var xm={bottom:1,top:31,Ord0:function(){return ps}},gr={cardinality:31,toEnum:function(t){if(t>=1&&t<=31)return new h(t);if(X)return g.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 xm},Enum1:function(){return Ij(0)}},Ij=Fm("enumDay","Data.Date.Component",function(){return{succ:function(){var t=Tt(gr),e=It(gr);return function(n){return t(function(r){return r+1|0}(e(n)))}}(),pred:function(){var t=Tt(gr),e=It(gr);return function(n){return t(function(r){return r-1|0}(e(n)))}}(),Ord0:function(){return ps}}});var Aj=It(vn),Nj=ae();var Pj=q(uR),Oj=q(Mm),Uj=q(iR),Wj=B(ds),Hj=B(vs),$j=B(ps);var qj=Tt(vn);var kj=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 Sm={eq:function(t){return function(e){return Pj(t.value0)(e.value0)&&Oj(t.value1)(e.value1)&&Uj(t.value2)(e.value2)}}};var hR={compare:function(t){return function(e){var n=Wj(t.value0)(e.value0);if(n instanceof W)return W.value;if(n instanceof O)return O.value;var r=Hj(t.value1)(e.value1);return r instanceof W?W.value:r instanceof O?O.value:$j(t.value2)(e.value2)}},Eq0:function(){return Sm}};var Ju=function(t){return function(e){return function(n){var r=function(a){return function(l){return function(f){return new kj(a,Nj(qj(l)),f)}}};return oR(r,t,Aj(e),n)}}};var _s=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 hs=kt,gs=kt,Ds=kt,ys=kt,gR=Rn,DR=Rn,yR=Rn,bR=Rn,Im={bottom:0,top:59,Ord0:function(){return hs}},Lm={bottom:0,top:59,Ord0:function(){return gs}},jm={bottom:0,top:999,Ord0:function(){return Ds}},Am={bottom:0,top:23,Ord0:function(){return ys}},Hr={cardinality:60,toEnum:function(t){if(t>=0&&t<=59)return new h(t);if(X)return g.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 Im},Enum1:function(){return Bj(0)}},Bj=_s("enumSecond","Data.Time.Component",function(){return{succ:function(){var t=Tt(Hr),e=It(Hr);return function(n){return t(function(r){return r+1|0}(e(n)))}}(),pred:function(){var t=Tt(Hr),e=It(Hr);return function(n){return t(function(r){return r-1|0}(e(n)))}}(),Ord0:function(){return hs}}});var $r={cardinality:60,toEnum:function(t){if(t>=0&&t<=59)return new h(t);if(X)return g.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 Lm},Enum1:function(){return Gj(0)}},Gj=_s("enumMinute","Data.Time.Component",function(){return{succ:function(){var t=Tt($r),e=It($r);return function(n){return t(function(r){return r+1|0}(e(n)))}}(),pred:function(){var t=Tt($r),e=It($r);return function(n){return t(function(r){return r-1|0}(e(n)))}}(),Ord0:function(){return gs}}});var qr={cardinality:1e3,toEnum:function(t){if(t>=0&&t<=999)return new h(t);if(X)return g.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 jm},Enum1:function(){return Jj(0)}},Jj=_s("enumMillisecond","Data.Time.Component",function(){return{succ:function(){var t=Tt(qr),e=It(qr);return function(n){return t(function(r){return r+1|0}(e(n)))}}(),pred:function(){var t=Tt(qr),e=It(qr);return function(n){return t(function(r){return r-1|0}(e(n)))}}(),Ord0:function(){return Ds}}});var kr={cardinality:24,toEnum:function(t){if(t>=0&&t<=23)return new h(t);if(X)return g.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 Am},Enum1:function(){return zj(0)}},zj=_s("enumHour","Data.Time.Component",function(){return{succ:function(){var t=Tt(kr),e=It(kr);return function(n){return t(function(r){return r+1|0}(e(n)))}}(),pred:function(){var t=Tt(kr),e=It(kr);return function(n){return t(function(r){return r-1|0}(e(n)))}}(),Ord0:function(){return ys}}});var Xj=q(bR),Zj=q(DR),tA=q(gR),eA=q(yR),nA=B(ys),rA=B(gs),aA=B(hs),oA=B(Ds);var zu=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 Nm={eq:function(t){return function(e){return Xj(t.value0)(e.value0)&&Zj(t.value1)(e.value1)&&tA(t.value2)(e.value2)&&eA(t.value3)(e.value3)}}},RR={compare:function(t){return function(e){var n=nA(t.value0)(e.value0);if(n instanceof W)return W.value;if(n instanceof O)return O.value;var r=rA(t.value1)(e.value1);if(r instanceof W)return W.value;if(r instanceof O)return O.value;var a=aA(t.value2)(e.value2);return a instanceof W?W.value:a instanceof O?O.value:oA(t.value3)(e.value3)}},Eq0:function(){return Nm}};var lA=q(Sm),cA=q(Nm),fA=B(hR),sA=B(RR);var Ho=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 wR={eq:function(t){return function(e){return lA(t.value0)(e.value0)&&cA(t.value1)(e.value1)}}},ER={compare:function(t){return function(e){var n=fA(t.value0)(e.value0);return n instanceof W?W.value:n instanceof O?O.value:sA(t.value1)(e.value1)}},Eq0:function(){return wR}};var Es=function(t){return function(){console.error(t)}};var BR=function(t){var e=gt(t);return function(n){return e(Es(n))}};var dN=T(ye),GR=S(wn),pN=y(mt),vN=BR(du),qm=function(t){var e=function(r){var a=t(r);return xp(a.view(a.init.value0)(J(dN(F))))},n=function(r){return function(a){return function(l){return function(){var d=GR(GR(Po)(function(){var m=pN(im);return function(v){return m(qu(v))}}()))(cm(a))();if(d instanceof g)return vN("Element #"+(a+" not found"))();if(d instanceof h){var p=nm(t(l))();return r(p)(d.value0)()}throw new Error("Failed pattern match at Elmish.Boot (line 117, column 11 - line 122, column 21): "+[d.constructor.name])}}}};return{mount:n(cD),renderToString:e,hydrate:n(fD)}};var QR=T(pn),yN=xo(sf),bN=S(Er);var CN={init:QR(F),update:function(t){return function(e){return QR(F)}},view:function(t){return function(e){return gn}}},km=function(t){var e=Ur(t);return function(n){return qm(yN({parse:function(r){return bN(e(r))(function(a){return st(new j("Component construction failed"))(L.create)(n.def(a))})},diagnosticName:"Props for "+n.diagnosticName,default:CN}))}};var KR=({just:t,nothing:e})=>n=>{try{let r=new Date(n);return isNaN(r.getTime())?e:t(r)}catch{return e}},Bm=t=>({year:t.getFullYear(),month:t.getMonth(),day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}),YR=()=>new Date,RN=(()=>{let t=new Date;return typeof window!="undefined"?()=>t:()=>{let e=new Date;return e-t>1e3&&(t=e),t}})();var TN=(()=>{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 Qle=function(){function t(){this.head=null,this.last=null,this.size=0}function e(v,D){this.queue=v,this.value=D,this.next=null,this.prev=null}function n(v){this.draining=!1,this.error=null,this.value=v,this.takes=new t,this.reads=new t,this.puts=new t}var r={};function a(v){try{v()}catch(D){setTimeout(function(){throw D},0)}}function l(v,D){var C=new e(v,D);switch(v.size){case 0:v.head=C;break;case 1:C.prev=v.head,v.head.next=C,v.last=C;break;default:C.prev=v.last,v.last.next=C,v.last=C}return v.size++,C}function f(v){var D;switch(v.size){case 0:return null;case 1:D=v.head,v.head=null;break;case 2:D=v.last,v.head.next=null,v.last=null;break;default:D=v.last,v.last=D.prev,v.last.next=null}return D.prev=null,D.queue=null,v.size--,D.value}function d(v){var D;switch(v.size){case 0:return null;case 1:D=v.head,v.head=null;break;case 2:D=v.head,v.last.prev=null,v.head=v.last,v.last=null;break;default:D=v.head,v.head=D.next,v.head.prev=null}return D.next=null,D.queue=null,v.size--,D.value}function p(v){if(v.queue!==null){if(v.queue.last===v){f(v.queue);return}if(v.queue.head===v){d(v.queue);return}v.prev&&(v.prev.next=v.next),v.next&&(v.next.prev=v.prev),v.queue.size--,v.queue=null,v.value=null,v.next=null,v.prev=null}}function m(v,D){if(!D.draining){var C=D.puts,b=D.takes,R=D.reads,E,N,K,Y,Wt;for(D.draining=!0;;){if(E=null,N=null,K=null,Y=D.value,Wt=R.size,D.error!==null){for(Y=v.left(D.error);E=d(C);)a(E.cb(Y));for(;N=d(R);)a(N(Y));for(;K=d(b);)a(K(Y));break}if(Y===r&&(E=d(C))&&(D.value=Y=E.value),Y!==r){for(K=d(b);Wt--&&(N=d(R));)a(N(v.right(Y)));K!==null&&(D.value=r,a(K(v.right(Y))))}if(E!==null&&a(E.cb(v.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=d,n.deleteCell=p,n.drainVar=m,n}();var WN=T(ye),qa=S(Jt),HN=Tt(rr),$N=Tt(vn),qN=Tt(gr),kN=Tt(kr),BN=Tt($r),GN=Tt(Hr),JN=Tt(qr),zN=T(Ie),VN=ie(wn),QN=pt(Z);var eT=function(t){return qa(HN(t.year))(function(e){return qa($N(t.month+1|0))(function(n){return qa(qN(t.day))(function(r){return qa(kN(t.hour))(function(a){return qa(BN(t.minute))(function(l){return qa(GN(t.second))(function(f){return qa(JN(t.millisecond))(function(d){return zN(new Ho(Ju(e)(n)(r),new zu(a,l,f,d)))})})})})})})})},KN=function(t){var e=Ch("Failed to obtain current time. This should never happen.");return st(e)(WN)(eT(Bm(t)))},xl=VN(KN)(YR);var Yu=function(t){return qa(QN(KR({just:h.create,nothing:g.value})(t))(Bm))(eT)};var Mde=new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:"short",maximumFractionDigits:2});var DT=function(){return XC};function yT(t,e){typeof CV!="undefined"&&CV.tracking&&CV.tracking.event(t,e)}var uP=jp();var iP=function(t){var e=gt(t);return function(n){return function(r){return e(function(){return yT(n,r)})}}},bT=function(t){var e=iP(t);return function(){return function(n){return function(r){return e(n)(uP(r))}}}};mu();var RT=Qs(CT()),Br=typeof CV!="undefined"&&CV.pusherConfig||typeof global!="undefined"&&global.CV&&global.CV.pusherConfig,{acquireConnection:lP,releaseConnection:cP}=(()=>{let t=null,e=0,n=()=>{if(!Br||!Br.key)return Br||console.error("Pusher config is missing in global context"),new fP;let r={auth:{headers:{"X-CSRF-Token":Br.authToken}},authEndpoint:Br.authPath,cluster:Br.cluster};return Br.dev&&Object.assign(r,{wsHost:Br.dev.wsHost,wsPort:Br.dev.wsPort,enabledTransports:["ws"],forceTLS:!1,disableStats:!0}),new RT.default(Br.key,r)};return{acquireConnection:()=>(t||(t=n(),e=0),e++,t),releaseConnection:()=>{--e<=0&&(t&&t.disconnect(),t=null)}}})(),TT=t=>{let e=lP().subscribe(t.channel);return e.bind(t.event,t.handler),()=>{e.unbind(t.event,t.handler),cP()}};function fP(){typeof document!="undefined"&&(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 sP(t);return this.channels.push(n),n},this.channelNames=function(){return this.channels.map(t=>t.name)}}function sP(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 dP=Mn(_t)(_n),pP=zn(ye)(Fa);var vP={show:function(t){return t}},mP=M(vP);var Km=Xt;var wT=function(t){var e=zp(t);return function(n){return function(r){return function(a){var l=dP(["Pusher event ",r," over channel ",mP(n)]),f=function(d){return pP(e(l)(d))(a)()};return function(){return TT({channel:n,event:r,handler:f})}}}}};var Ym=Xt;var Is=function(){function t(){}return t.value=new t,t}(),$o=function(){function t(){}return t.value=new t,t}(),ET={eq:function(t){return function(e){return t instanceof Is&&e instanceof Is||t instanceof $o&&e instanceof $o}}};var _P=kf(qf($f)),hP=S(Qe),gP=Or(),DP=cl(gP(Ut({reflectSymbol:function(){return"failureReason"}})(Xt)(Ut({reflectSymbol:function(){return"success"}})(Ji)(en))));var Xm=_P("vinai_send_chatbot_message_path")(function(t){return function(e){return hP(t({conversationId:e.conversationId,message:e.message,presetTopic:Bn(e.presetTopic)}))(Pu(DP("Vinai.API: sendChatbotMessage")))}});var yP=zt();var bP=function(t){return yP(_f(t))};var FT=function(t){return ge(bP(t))};var CP=ss(he),RP=Uo(ra),TP=S(wn),MT=gt(du),xT=T(ye),wP=ou(ye)(xr),EP=wT(Jp),FP=$(G),MP=Mn(_t)(id(od)),xP=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Ls=function(){function t(){}return t.value=new t,t}(),js=function(){function t(){}return t.value=new t,t}();var Zm={append:function(t){return function(e){return CP(e)(t)}}},SP={mempty:Wo,Semigroup0:function(){return Zm}},IP=jr(gf(SP)(Be)),ST=function(t){return t.value0.disconnect},IT=function(t){return function(e){var n=FT(e),r=RP(n);return function(){var l=MT(uo(xT(F)))(),f=wP(r)(function(p){return EP(t)(p.value0)(function(m){return function(){var D=p.value1(m)();if(D instanceof Ls)return F;if(D instanceof js)return TP(wa(l))(FP)();throw new Error("Failed pattern match at Utils.Pusher.ListenMany (line 73, column 23 - line 75, column 66): "+[D.constructor.name])}})})(),d=MP(f);return MT(Xr(d)(l))(),new xP({disconnect:d})}}},As=function(t){var e=Ur(t);return function(n){return function(r){return IP(bl(n)(function(a){var l=e(a);if(l instanceof L)return r(l.value0);if(l instanceof j)return da(Wa)("Error parsing Pusher event")({error:l.value0,event:n,value:a})(function(f){return xT(Ls.value)});throw new Error("Failed pattern match at Utils.Pusher.ListenMany (line 35, column 65 - line 37, column 122): "+[l.constructor.name])}))}}};var LP=function(){function t(){}return t.value=new t,t}(),jP=function(){function t(){}return t.value=new t,t}(),AP=function(){function t(){}return t.value=new t,t}();var t_=function(t){return t==="moderation_failure"?LP.value:t==="llm_failure"?jP.value:AP.value};var NP={reflectSymbol:function(){return"timestamp"}};var e_=se(de),Sl=e_(_a),n_=S(Qe),Il=gt(be),LT=e_(rl(Zm)(cd)),r_=Or(),jT=Ut({reflectSymbol:function(){return"id"}})(Xt),PP=As(r_(Ut({reflectSymbol:function(){return"delta"}})(Xt)(jT(Ut(NP)(Xt)(en))))),OP=As(r_(Ut({reflectSymbol:function(){return"body"}})(Xt)(jT(en)))),UP=As(r_(Ut({reflectSymbol:function(){return"reason"}})(Xt)(en))),a_=e_(Qe),Ns=T(yn),o_=Hu(be),WP=bd(_n),HP=He(Mg)(_n),Dr=T(pn),AT=k(Se),$P=Hg(ER),qP=zn(pn)(Fa),qo=function(){function t(){}return t.value=new t,t}(),Xu=function(){function t(){}return t.value=new t,t}(),Zu=function(){function t(){}return t.value=new t,t}(),Gr=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),ti=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),u_=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),NT=function(){function t(){}return t.value=new t,t}(),i_=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),l_=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),PT=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),OT=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),UT=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}(),kP=function(){function t(){}return t.value=new t,t}();var BP=function(t){return{delta:t.delta,id:t.id,timestamp:Yu(t.timestamp)}},WT=function(t){return function(e){var n=function(r){return function(a){return{body:a.body,sender:$o.value,sentAt:r,id:new h(a.id)}}};return Sl(No(function(r){return n_(Il(IT(t.receiveChannelName)(LT(PP("chat-completion-chunk")(function(a){return function(){var f=xl();return r.dispatch(new UT(f,BP(a)))(),Ls.value}}))(function(){return LT(OP("chat-completion-message-received")(function(a){return function(){var f=xl();return r.dispatch(new l_(n(f)(a)))(),js.value}}))(function(){return UP("chat-completion-failed")(function(a){return function(){return r.dispatch(new i_(new h(t_(a.reason))))(),js.value}})})}))))(function(a){return a_(Il(r.dispatch(new OT(a))))(function(){return n_(t.sendMessage(e))(function(l){return l.success?Ns(F):Il(r.dispatch(new i_(new h(t_(l.failureReason)))))})})})}))(function(){return o_(a_(va(200))(function(){return Ns(NT.value)}))})}},GP=function(t){return function(e){return Sl(o_(n_(Il(xl))(function(n){return Ns(new PT({sender:Is.value,body:e,sentAt:n,id:g.value}))})))(function(){return WT(t)(e)})}},c_=function(t){var e=function(n){var r=ua("$$")(n),a=Gg(tn(r));return a?WP("$$")(yd(0)(tn(r)-1|0)(r)):n};return{sender:$o.value,body:e(HP(function(n){return n.content})(t.deltas)),sentAt:Dc(t.deltas).timestamp,id:new h(t.id)}},JP=function(t){if(t.receivingResponse instanceof g)return Dr(F);if(t.receivingResponse instanceof h)return t.sendingState instanceof Gr?o_(a_(Il(ST(t.receivingResponse.value0)))(function(){return Ns(new l_(c_(t.sendingState.value0)))})):Dr(F);throw new Error("Failed pattern match at Vinai.Chatbot (line 292, column 1 - line 292, column 51): "+[t.constructor.name])},HT=function(t){return function(e){if(e instanceof u_)return Sl(GP(t)(e.value0))(function(){return Dr(t)});if(e instanceof NT)return Dr({messages:t.messages,receiveChannelName:t.receiveChannelName,receivingResponse:t.receivingResponse,sendMessage:t.sendMessage,sendingState:function(){if(t.sendingState instanceof qo)return qo.value;if(t.sendingState instanceof Xu||t.sendingState instanceof Zu)return Zu.value;if(t.sendingState instanceof Gr)return new Gr(t.sendingState.value0);if(t.sendingState instanceof ti)return new ti(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 i_)return Dr({messages:t.messages,receiveChannelName:t.receiveChannelName,sendMessage:t.sendMessage,sendingState:new ti(e.value0),receivingResponse:g.value});if(e instanceof l_)return Dr({receiveChannelName:t.receiveChannelName,sendMessage:t.sendMessage,messages:AT(t.messages)([e.value0]),sendingState:qo.value,receivingResponse:g.value});if(e instanceof PT)return Dr({receiveChannelName:t.receiveChannelName,receivingResponse:t.receivingResponse,sendMessage:t.sendMessage,messages:AT(t.messages)([e.value0]),sendingState:Xu.value});if(e instanceof OT)return Dr({messages:t.messages,receiveChannelName:t.receiveChannelName,sendMessage:t.sendMessage,sendingState:t.sendingState,receivingResponse:new h(e.value0)});if(e instanceof UT)return Dr({messages:t.messages,receiveChannelName:t.receiveChannelName,receivingResponse:t.receivingResponse,sendMessage:t.sendMessage,sendingState:function(){if(t.sendingState instanceof Gr&&e.value1.id===t.sendingState.value0.id)return new Gr({id:t.sendingState.value0.id,deltas:$P(function(n){return n.timestamp})(Wg(t.sendingState.value0.deltas)({content:e.value1.delta,timestamp:ct(e.value0)(e.value1.timestamp)}))});if(t.sendingState instanceof Gr)return t.sendingState;if(t.sendingState instanceof Zu)return new Gr({deltas:Jd({content:e.value1.delta,timestamp:ct(e.value0)(e.value1.timestamp)}),id:e.value1.id});if(t.sendingState instanceof Xu)return new Gr({deltas:Jd({content:e.value1.delta,timestamp:ct(e.value0)(e.value1.timestamp)}),id:e.value1.id});if(t.sendingState instanceof qo||t.sendingState instanceof ti)return t.sendingState;throw new Error("Failed pattern match at Vinai.Chatbot (line 180, column 22 - line 202, column 29): "+[t.sendingState.constructor.name])}()});if(e instanceof kP)return Sl(JP(t))(function(){return Dr(t)});throw new Error("Failed pattern match at Vinai.Chatbot (line 153, column 1 - line 153, column 55): "+[t.constructor.name,e.constructor.name])}},$T=function(t){var e={messages:t.messages,receivingResponse:g.value,receiveChannelName:t.receiveChannelName,sendingState:function(){if(t.initialMessageBody instanceof g)return qo.value;if(t.initialMessageBody instanceof h)return Xu.value;throw new Error("Failed pattern match at Vinai.Chatbot (line 147, column 23 - line 149, column 28): "+[t.initialMessageBody.constructor.name])}(),sendMessage:t.sendMessage};return Sl(qP(t.initialMessageBody)(WT(e)))(function(){return Dr(e)})};var qT=ce(Ot),yr=ce(ve),kT=Oo(le)()(),f_=ml(Yv),BT=Xc(Ot),zP=pt(Z),VP=q(ET),ka=ce(le),QP=Kc()(),GT=ml(Db),KP=Gc()(),YP=Kn(Ot),XP=Oo(Ot)()(),ZP=q(Jo()(Xa(Xa(Go)()({reflectSymbol:function(){return"subject"}})(Oe))()({reflectSymbol:function(){return"body"}})(Oe))),Ps=S(Jt),tO=y(Z),JT=zn(pn)(Fa),zT=bT(be)(),VT=se(de),ga=VT(_a),QT=ar(ln),Ll=Hu(be),s_=T(yn),rn=T(pn),eO=$l(td),nO=pt(pa),rO=Ta(ol),aO=DT(),KT=Hb(pa),oO=En(KT),uO=gt(be),iO=VT(Qe),lO=y(pa),d_=S(_a),YT=_o()(),cO=Fn(KT),p_=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Os=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),XT=function(){function t(){}return t.value=new t,t}(),ZT=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),tw=function(){function t(){}return t.value=new t,t}(),ew=function(){function t(){}return t.value=new t,t}(),nw=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}(),v_=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),m_=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),fO=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),aw=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),ow=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),uw=function(t){return function(e){var n=function(){if(t.sharing.url instanceof Wr)return qT("text-primary text-center mx-4")("Link copied!");if(t.sharing.url instanceof Zn)return yr("text-center")(jo({extraClass:g.value}));if(t.sharing.url instanceof Sn)return kT("btn btn-dark text-nowrap w-100 d-flex align-items-center justify-content-center")(ha)({disabled:!t.sharing.isAllowed,onClick:f_(e)(ew.value)})([BT("fe fe-link-2 mr-2")(""),me("Share report")]);throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.EmailContentOptimizer (line 177, column 25 - line 187, column 10): "+[t.sharing.url.constructor.name])}(),r=zP(fc(lu(function(){var p=VP($o.value);return function(m){return p(function(v){return v.sender}(m))}}())(t.suggestionBot.messages)))(function(p){return p.body}),a=$v(t.email),l=ka("t--eco-subject")([me("Subject line"),QP("form-control mt-2")({type:"text",placeholder:"Subject",autoFocus:!0,value:a.subject,onChange:GT(e)(function(p){return v_.create(YC(p))})})]),f=ka("t--eco-body")([me("Body"),KP("form-control mt-2")({placeholder:"Type or paste body of email",value:a.body,onChange:GT(e)(function(p){return m_.create(KC(p))}),rows:15})]),d=ka("mt-2 mt-md-0 d-flex flex-row align-items-center")([yr("mr-1 w-100")(n),yr("ml-1 w-100")(kT("btn btn-outline-dark d-flex align-items-center justify-content-center text-nowrap w-100")(ha)({onClick:f_(e)(new aw(Yp.value))})([BT("fe fe-info mr-2")(""),me("Report methodology")]))]);return $e([ka("row align-items-center")([yr("col-12 col-md-7")(YP("mb-0")("Email content")),yr("col d-none d-md-block")(d)]),ka("row mt-4")([ka("col-12 col-md-7")([l,yr("mt-4")(f),XP("btn btn-dark mt-4")(ha)({onClick:f_(e)(new p_(a)),disabled:ZP(a)(Bf)})("Analyze email"),hr(kl(t.scores))(qT("text-danger mt-2")),yr("d-none d-md-block mt-5")(hm(Ps(Kr(t.scores))(qv)))]),ka("col")([yr("mt-4 mt-md-2")(kC({scores:ql(Sn.value)(t.scores)})),Ru("hr"),yr("mt-4")(qy({scores:ql(Sn.value)(t.scores)})),Ru("hr"),yr("mt-4")(function(){if(t.suggestionBot.sendingState instanceof Zu)return Gu(g.value);if(t.suggestionBot.sendingState instanceof Gr){var p=c_(t.suggestionBot.sendingState.value0);return Gu(new h(new is(p.body)))}if(t.suggestionBot.sendingState instanceof Xu)return Gu(g.value);if(t.suggestionBot.sendingState instanceof qo)return Gu(tO(is.create)(r));if(t.suggestionBot.sendingState instanceof ti)return Gu(new h(gm.value));throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.EmailContentOptimizer (line 126, column 22 - line 137, column 54): "+[t.suggestionBot.sendingState.constructor.name])}()),ka("mt-4 d-md-none")([Ru(""),d]),yr("d-md-none mt-4")(hm(Ps(Kr(t.scores))(qv)))])]),hr(t.modal)(function(p){if(p instanceof Yp)return PC({onDismiss:e(tw.value)});if(p instanceof Xp)return OC({onSubmit:function(m){return e(ow.create(m))}});throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.EmailContentOptimizer (line 146, column 27 - line 148, column 91): "+[p.constructor.name])})])}},iw=function(t){var e=JT(t.registration)(function(n){return tr(zT("Email Content Optimizer: User registered")({email:n.email,name:n.name,school_name:ct("")(n.schoolName),title:ct("")(n.title)}))});return ga(JT(QT(t.registration)(t.email))(function(n){return Ll(s_(p_.create(n)))}))(function(){return ga(e)(function(){return rn({registration:t.registration,modal:QT(eO(or(t.registration)))(new h(Xp.value)),email:function(){var n=ur(t.registration);return n?new Ha(ct(Bf)(t.email)):vf.value}()})})})},lw=function(t){return function(e){var n=function(a){return tr(zT("Email Content Optimizer: Email submitted")({email_subject:a.subject,email_body:a.body,registration_email:st("")(function(l){return l.email})(e.registration),name:st("")(function(l){return l.name})(e.registration),school_name:ct("")(Ps(e.registration)(function(l){return l.schoolName})),title:ct("")(Ps(e.registration)(function(l){return l.title}))}))},r=BC(t);return function(a){if(a instanceof p_)return ga(Ll(nO(rO(Ay(a.value0)))(oe(rw.create)(nw.create))))(function(){return ga(Ll(s_(new Os(new u_(aO({email:a.value0}))))))(function(){return ga(n(a.value0))(function(){return rn({email:e.email,modal:e.modal,registration:e.registration,selectedPersona:e.selectedPersona,suggestionBot:e.suggestionBot,sharing:{url:e.sharing.url,isAllowed:!0},scores:new L(new Zn(g.value))})})})});if(a instanceof Os)return oO(Os.create)(function(f){return{email:e.email,modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:f}})(HT(e.suggestionBot)(a.value0));if(a instanceof XT)return rn({email:e.email,modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,suggestionBot:e.suggestionBot,sharing:{isAllowed:e.sharing.isAllowed,url:Sn.value}});if(a instanceof ZT)return ga(tr(uO(ls(r(a.value0)))))(function(){return ga(Ll(iO(va(3e3))(function(){return s_(XT.value)})))(function(){return rn({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 Wr(r(a.value0))}})})});if(a instanceof ew)return ga(Ll(lO(ZT.create)(Ly($v(e.email)))))(function(){return rn({email:e.email,modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,suggestionBot:e.suggestionBot,sharing:{isAllowed:e.sharing.isAllowed,url:Wy(e.sharing.url)}})});if(a instanceof tw)return rn({email:e.email,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,modal:g.value});if(a instanceof rw)return da(Wa)("Email Content Optimizer: "+Ra(a.value0))({})(function(f){return rn({email:e.email,modal:e.modal,registration:e.registration,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,scores:new j("Something went wrong loading scores. Please refresh the page, and contact support if the problem continues")})});var l=function(f){if(a instanceof v_&&X)return rn(e);var d=function(p){if(a instanceof m_&&X)return rn(e);if(a instanceof fO)return rn({email:e.email,modal:e.modal,registration:e.registration,scores:e.scores,sharing:e.sharing,suggestionBot:e.suggestionBot,selectedPersona:a.value0});if(a instanceof aw)return rn({email:e.email,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,modal:new h(a.value0)});if(a instanceof nw)return rn({email:e.email,modal:e.modal,registration:e.registration,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,scores:new L(new Wr(a.value0))});if(a instanceof ow)return ga(tr(jy(a.value0)))(function(){return d_(iw({conversationId:t.conversationId,ecoBaseUrl:t.ecoBaseUrl,email:t.email,receiveChannelName:t.receiveChannelName,registration:new h(a.value0)}))(function(m){return rn(YT(m)(e))})});throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.EmailContentOptimizer (line 203, column 1 - line 203, column 64): "+[a.constructor.name])};return a instanceof m_&&e.email instanceof Ha?rn({modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,email:new Ha({subject:e.email.value0.subject,body:a.value0})}):d(!0)};return a instanceof v_&&e.email instanceof Ha?rn({modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,email:new Ha({body:e.email.value0.body,subject:a.value0})}):l(!0)}}},cw=function(t){var e={initialMessageBody:g.value,messages:[],receiveChannelName:t.receiveChannelName,sendMessage:function(n){return Xm({conversationId:t.conversationId,message:n,presetTopic:g.value})}};return d_(cO(Os.create)($T(e)))(function(n){return d_(iw(t))(function(r){return rn(YT({scores:new L(Sn.value),suggestionBot:n,selectedPersona:g.value,sharing:{isAllowed:!1,url:Sn.value}})(r))})})};var sO=y(Z),__=Or(),fw=Ut({reflectSymbol:function(){return"email"}}),sw=Ua(Xt),dO=function(){var t=function(n){return{conversationId:n.conversationId,ecoBaseUrl:n.ecoBaseUrl,receiveChannelName:n.receiveChannelName,email:yt(n.email),registration:sO(mf)(yt(n.registration))}},e=function(n){return{init:cw(n),view:uw,update:lw(n)}};return km(__(Ut({reflectSymbol:function(){return"conversationId"}})(Ym)(Ut({reflectSymbol:function(){return"ecoBaseUrl"}})(Xt)(fw(Ua(__(Ut({reflectSymbol:function(){return"body"}})(Xt)(Ut({reflectSymbol:function(){return"subject"}})(Xt)(en)))))(Ut({reflectSymbol:function(){return"receiveChannelName"}})(Km)(Ut({reflectSymbol:function(){return"registration"}})(Ua(__(fw(Xt)(Ut({reflectSymbol:function(){return"free_form_school_name"}})(sw)(Ut({reflectSymbol:function(){return"name"}})(Xt)(Ut({reflectSymbol:function(){return"title"}})(sw)(en)))))))(en)))))))({def:function(n){return h.create(e(t(n)))},diagnosticName:"EntryPoints.DataLab.EmailContentOptimizer"})}();return pO;})(); /* object-assign (c) Sindre Sorhus @license MIT */ /*! * Pusher JavaScript Library v6.0.3 * https://pusher.com/ * * Copyright 2020, Pusher * Released under the MIT licence. */ /*! * focus-trap 6.9.4 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE */ /*! * tabbable 5.3.3 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */ /** @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. */ /** @license React v17.0.2 * react.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. */