var Purs_EntryPoints_Livestream_Livestream=(()=>{var TY=Object.create;var bg=Object.defineProperty;var SY=Object.getOwnPropertyDescriptor;var CY=Object.getOwnPropertyNames;var FY=Object.getPrototypeOf,GY=Object.prototype.hasOwnProperty;var UL=e=>bg(e,"__esModule",{value:!0});var MY=(e,n)=>()=>(e&&(n=e(e=0)),n);var Oe=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),kL=(e,n)=>{UL(e);for(var a in n)bg(e,a,{get:n[a],enumerable:!0})},AY=(e,n,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of CY(n))!GY.call(e,t)&&t!=="default"&&bg(e,t,{get:()=>n[t],enumerable:!(a=SY(n,t))||a.enumerable});return e},Fu=e=>AY(UL(bg(e!=null?TY(FY(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var GT={};kL(GT,{Children:()=>Uf,Component:()=>kf,Fragment:()=>CT,Suspense:()=>Jne,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Hne,cloneElement:()=>Im,createContext:()=>ST,createElement:()=>vt,createRef:()=>NR,default:()=>ka,forwardRef:()=>gi,isValidElement:()=>FT,lazy:()=>qne,useCallback:()=>Tm,useContext:()=>Wne,useEffect:()=>Gt,useImperativeHandle:()=>rs,useLayoutEffect:()=>Sm,useMemo:()=>Cm,useReducer:()=>$ne,useRef:()=>it,useState:()=>Pl,version:()=>zne});var ka,Hne,Uf,Im,kf,ST,vt,NR,gi,CT,FT,qne,Jne,Tm,Wne,Gt,rs,Sm,Cm,$ne,it,Pl,zne,$a=MY(()=>{ka=window.React,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Hne,Children:Uf,cloneElement:Im,Component:kf,createContext:ST,createElement:vt,createRef:NR,forwardRef:gi,Fragment:CT,isValidElement:FT,lazy:qne,Suspense:Jne,useCallback:Tm,useContext:Wne,useEffect:Gt,useImperativeHandle:rs,useLayoutEffect:Sm,useMemo:Cm,useReducer:$ne,useRef:it,useState:Pl,version:zne}=window.React});var MT=Oe((bVe,xx)=>{"use strict";var Px=Object.getOwnPropertySymbols,Vne=Object.prototype.hasOwnProperty,Qne=Object.prototype.propertyIsEnumerable;function Kne(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Yne(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var n={},a=0;a<10;a++)n["_"+String.fromCharCode(a)]=a;var t=Object.getOwnPropertyNames(n).map(function(u){return n[u]});if(t.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(u){o[u]=u}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}xx.exports=Yne()?Object.assign:function(e,n){for(var a,t=Kne(e),o,u=1;u{"use strict";var AT=MT(),J0=60103,Nx=60106;mt.Fragment=60107;mt.StrictMode=60108;mt.Profiler=60114;var jx=60109,Ox=60110,Ux=60112;mt.Suspense=60113;var kx=60115,Bx=60116;typeof Symbol=="function"&&Symbol.for&&(nl=Symbol.for,J0=nl("react.element"),Nx=nl("react.portal"),mt.Fragment=nl("react.fragment"),mt.StrictMode=nl("react.strict_mode"),mt.Profiler=nl("react.profiler"),jx=nl("react.provider"),Ox=nl("react.context"),Ux=nl("react.forward_ref"),mt.Suspense=nl("react.suspense"),kx=nl("react.memo"),Bx=nl("react.lazy"));var nl,Hx=typeof Symbol=="function"&&Symbol.iterator;function Xne(e){return e===null||typeof e!="object"?null:(e=Hx&&e[Hx]||e["@@iterator"],typeof e=="function"?e:null)}function Gm(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a{"use strict";Xx.exports=Yx()});var yN=Oe($0=>{"use strict";var xl=MT(),us=OT();function _r(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;aLm;Lm++)Go[Lm]=Lm+1;var Go,Lm;Go[15]=0;var oae=/^[: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]*$/,oN=Object.prototype.hasOwnProperty,uN={},iN={};function lN(e){return oN.call(iN,e)?!0:oN.call(uN,e)?!1:oae.test(e)?iN[e]=!0:(uN[e]=!0,!1)}function uae(e,n,a,t){if(a!==null&&a.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return t?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function iae(e,n,a,t){if(n===null||typeof n=="undefined"||uae(e,n,a,t))return!0;if(t)return!1;if(a!==null)switch(a.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function mu(e,n,a,t,o,u,i){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=t,this.attributeNamespace=o,this.mustUseProperty=a,this.propertyName=e,this.type=n,this.sanitizeURL=u,this.removeEmptyString=i}var Mo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Mo[e]=new mu(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];Mo[n]=new mu(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Mo[e]=new mu(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Mo[e]=new mu(e,2,!1,e,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(e){Mo[e]=new mu(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Mo[e]=new mu(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Mo[e]=new mu(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Mo[e]=new mu(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Mo[e]=new mu(e,5,!1,e.toLowerCase(),null,!1,!1)});var zT=/[\-:]([a-z])/g;function VT(e){return e[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(e){var n=e.replace(zT,VT);Mo[n]=new mu(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(zT,VT);Mo[n]=new mu(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(zT,VT);Mo[n]=new mu(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Mo[e]=new mu(e,1,!1,e.toLowerCase(),null,!1,!1)});Mo.xlinkHref=new mu("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Mo[e]=new mu(e,1,!1,e.toLowerCase(),null,!0,!0)});var lae=/["'&<>]/;function Bf(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var n=lae.exec(e);if(n){var a="",t,o=0;for(t=n.index;tWR))throw Error(_r(301));if(e===fc)if(JR=!0,e={action:a,next:null},_v===null&&(_v=new Map),a=_v.get(n),a===void 0)_v.set(n,e);else{for(n=a;n.next!==null;)n=n.next;n.next=e}}function KT(){}var qf=null,_ae={readContext:function(e){var n=qf.threadID;return Am(e,n),e[n]},useContext:function(e){Hf();var n=qf.threadID;return Am(e,n),e[n]},useMemo:pN,useReducer:_N,useRef:function(e){fc=Hf(),Zt=QT();var n=Zt.memoizedState;return n===null?(e={current:e},Zt.memoizedState=e):n},useState:function(e){return _N(fN,e)},useLayoutEffect:function(){},useCallback:function(e,n){return pN(function(){return e},n)},useImperativeHandle:KT,useEffect:KT,useDebugValue:KT,useDeferredValue:function(e){return Hf(),e},useTransition:function(){return Hf(),[function(e){e()},!1]},useOpaqueIdentifier:function(){return(qf.identifierPrefix||"")+"R:"+(qf.uniqueID++).toString(36)},useMutableSource:function(e,n){return Hf(),n(e._source)}},dN={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function mN(e){switch(e){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 hN={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},pae=xl({menuitem:!0},hN),xm={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},dae=["Webkit","ms","Moz","O"];Object.keys(xm).forEach(function(e){dae.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),xm[n]=xm[e]})});var mae=/([A-Z])/g,hae=/^ms-/,pv=us.Children.toArray,YT=tae.ReactCurrentDispatcher,Dae={listing:!0,pre:!0,textarea:!0},gae=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,DN={},XT={};function Rae(e){if(e==null)return e;var n="";return us.Children.forEach(e,function(a){a!=null&&(n+=a)}),n}var yae=Object.prototype.hasOwnProperty,wae={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function gN(e,n){if(e===void 0)throw Error(_r(152,Mm(n)||"Component"))}function bae(e,n,a){function t(i,l){var s=l.prototype&&l.prototype.isReactComponent,R=rae(l,n,a,s),d=[],y=!1,I={isMounted:function(){return!1},enqueueForceUpdate:function(){if(d===null)return null},enqueueReplaceState:function(X,oe){y=!0,d=[oe]},enqueueSetState:function(X,oe){if(d===null)return null;d.push(oe)}};if(s){if(s=new l(i.props,R,I),typeof l.getDerivedStateFromProps=="function"){var b=l.getDerivedStateFromProps.call(null,i.props,s.state);b!=null&&(s.state=xl({},s.state,b))}}else if(fc={},s=l(i.props,R,I),s=sN(l,i.props,s,R),s==null||s.render==null){e=s,gN(e,l);return}if(s.props=i.props,s.context=R,s.updater=I,I=s.state,I===void 0&&(s.state=I=null),typeof s.UNSAFE_componentWillMount=="function"||typeof s.componentWillMount=="function")if(typeof s.componentWillMount=="function"&&typeof l.getDerivedStateFromProps!="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&typeof l.getDerivedStateFromProps!="function"&&s.UNSAFE_componentWillMount(),d.length){I=d;var S=y;if(d=null,y=!1,S&&I.length===1)s.state=I[0];else{b=S?I[0]:s.state;var L=!0;for(S=S?1:0;S=l))throw Error(_r(304));var s=new Uint16Array(l);for(s.set(i),Go=s,Go[0]=u+1,i=u;i=s.children.length){var R=s.footer;if(R!==""&&(this.previousWasTextNode=!1),this.stack.pop(),s.type==="select")this.currentSelectValue=null;else if(s.type!=null&&s.type.type!=null&&s.type.type.$$typeof===BR)this.popProvider(s.type);else if(s.type===HR){this.suspenseDepth--;var d=u.pop();if(i){i=!1;var y=s.fallbackFrame;if(!y)throw Error(_r(303));this.stack.push(y),u[this.suspenseDepth]+="";continue}else u[this.suspenseDepth]+=d}u[this.suspenseDepth]+=R}else{var I=s.children[s.childIndex++],b="";try{b+=this.render(I,s.context,s.domNamespace)}catch(S){throw S!=null&&typeof S.then=="function"?Error(_r(294)):S}finally{}u.length<=this.suspenseDepth&&u.push(""),u[this.suspenseDepth]+=b}}return u[0]}finally{YT.current=o,qf=t,vN()}},n.render=function(a,t,o){if(typeof a=="string"||typeof a=="number")return o=""+a,o===""?"":this.makeStaticMarkup?Bf(o):this.previousWasTextNode?""+Bf(o):(this.previousWasTextNode=!0,Bf(o));if(t=bae(a,t,this.threadID),a=t.child,t=t.context,a===null||a===!1)return"";if(!us.isValidElement(a)){if(a!=null&&a.$$typeof!=null)throw o=a.$$typeof,Error(o===UT?_r(257):_r(258,o.toString()));return a=pv(a),this.stack.push({type:null,domNamespace:o,children:a,childIndex:0,context:t,footer:""}),""}var u=a.type;if(typeof u=="string")return this.renderDOM(a,t,o);switch(u){case tN:case aN:case kT:case BT:case JT:case kR:return a=pv(a.props.children),this.stack.push({type:null,domNamespace:o,children:a,childIndex:0,context:t,footer:""}),"";case HR:throw Error(_r(294));case nN:throw Error(_r(343))}if(typeof u=="object"&&u!==null)switch(u.$$typeof){case qT:fc={};var i=u.render(a.props,a.ref);return i=sN(u.render,a.props,i,a.ref),i=pv(i),this.stack.push({type:null,domNamespace:o,children:i,childIndex:0,context:t,footer:""}),"";case WT:return a=[us.createElement(u.type,xl({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:o,children:a,childIndex:0,context:t,footer:""}),"";case BR:return u=pv(a.props.children),o={type:a,domNamespace:o,children:u,childIndex:0,context:t,footer:""},this.pushProvider(a),this.stack.push(o),"";case HT:u=a.type,i=a.props;var l=this.threadID;return Am(u,l),u=pv(i.children(u[l])),this.stack.push({type:a,domNamespace:o,children:u,childIndex:0,context:t,footer:""}),"";case eN:throw Error(_r(338));case $T:return u=a.type,i=u._init,u=i(u._payload),a=[us.createElement(u,xl({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:o,children:a,childIndex:0,context:t,footer:""}),""}throw Error(_r(130,u==null?u:typeof u,""))},n.renderDOM=function(a,t,o){var u=a.type.toLowerCase();if(o===dN.html&&mN(u),!DN.hasOwnProperty(u)){if(!gae.test(u))throw Error(_r(65,u));DN[u]=!0}var i=a.props;if(u==="input")i=xl({type:void 0},i,{defaultChecked:void 0,defaultValue:void 0,value:i.value!=null?i.value:i.defaultValue,checked:i.checked!=null?i.checked:i.defaultChecked});else if(u==="textarea"){var l=i.value;if(l==null){l=i.defaultValue;var s=i.children;if(s!=null){if(l!=null)throw Error(_r(92));if(Array.isArray(s)){if(!(1>=s.length))throw Error(_r(93));s=s[0]}l=""+s}l==null&&(l="")}i=xl({},i,{value:void 0,children:""+l})}else if(u==="select")this.currentSelectValue=i.value!=null?i.value:i.defaultValue,i=xl({},i,{value:void 0});else if(u==="option"){s=this.currentSelectValue;var R=Rae(i.children);if(s!=null){var d=i.value!=null?i.value+"":R;if(l=!1,Array.isArray(s)){for(var y=0;y":(oe+=">",l="");e:{if(s=i.dangerouslySetInnerHTML,s!=null){if(s.__html!=null){s=s.__html;break e}}else if(s=i.children,typeof s=="string"||typeof s=="number"){s=Bf(s);break e}s=null}return s!=null?(i=[],Dae.hasOwnProperty(u)&&s.charAt(0)===` `&&(oe+=` `),oe+=s):i=pv(i.children),a=a.type,o=o==null||o==="http://www.w3.org/1999/xhtml"?mN(a):o==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":o,this.stack.push({domNamespace:o,type:u,children:i,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,oe},e}();$0.renderToNodeStream=function(){throw Error(_r(207))};$0.renderToStaticMarkup=function(e,n){e=new RN(e,!0,n);try{return e.read(1/0)}finally{e.destroy()}};$0.renderToStaticNodeStream=function(){throw Error(_r(208))};$0.renderToString=function(e,n){e=new RN(e,!1,n);try{return e.read(1/0)}finally{e.destroy()}};$0.version="17.0.2"});var bN=Oe((SVe,wN)=>{"use strict";wN.exports=yN()});var TO=Oe((ew,kC)=>{(function(n,a){typeof ew=="object"&&typeof kC=="object"?kC.exports=a():typeof define=="function"&&define.amd?define([],a):typeof ew=="object"?ew.Pusher=a():n.Pusher=a()})(window,function(){return function(e){var n={};function a(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=e,a.c=n,a.d=function(t,o,u){a.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:u})},a.r=function(t){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,o){if(o&1&&(t=a(t)),o&8||o&4&&typeof t=="object"&&t&&t.__esModule)return t;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:t}),o&2&&typeof t!="string")for(var i in t)a.d(u,i,function(l){return t[l]}.bind(null,i));return u},a.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(o,"a",o),o},a.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},a.p="",a(a.s=2)}([function(e,n,a){"use strict";var t=this&&this.__extends||function(){var b=function(S,L){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,$){O.__proto__=$}||function(O,$){for(var z in $)$.hasOwnProperty(z)&&(O[z]=$[z])},b(S,L)};return function(S,L){b(S,L);function O(){this.constructor=S}S.prototype=L===null?Object.create(L):(O.prototype=L.prototype,new O)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=256,u=function(){function b(S){S===void 0&&(S="="),this._paddingCharacter=S}return b.prototype.encodedLength=function(S){return this._paddingCharacter?(S+2)/3*4|0:(S*8+5)/6|0},b.prototype.encode=function(S){for(var L="",O=0;O>>3*6&63),L+=this._encodeByte($>>>2*6&63),L+=this._encodeByte($>>>1*6&63),L+=this._encodeByte($>>>0*6&63)}var z=S.length-O;if(z>0){var $=S[O]<<16|(z===2?S[O+1]<<8:0);L+=this._encodeByte($>>>3*6&63),L+=this._encodeByte($>>>2*6&63),z===2?L+=this._encodeByte($>>>1*6&63):L+=this._paddingCharacter||"",L+=this._paddingCharacter||""}return L},b.prototype.maxDecodedLength=function(S){return this._paddingCharacter?S/4*3|0:(S*6+7)/8|0},b.prototype.decodedLength=function(S){return this.maxDecodedLength(S.length-this._getPaddingLength(S))},b.prototype.decode=function(S){if(S.length===0)return new Uint8Array(0);for(var L=this._getPaddingLength(S),O=S.length-L,$=new Uint8Array(this.maxDecodedLength(O)),z=0,X=0,oe=0,te=0,ve=0,we=0,an=0;X>>4,$[z++]=ve<<4|we>>>2,$[z++]=we<<6|an,oe|=te&o,oe|=ve&o,oe|=we&o,oe|=an&o;if(X>>4,oe|=te&o,oe|=ve&o),X>>2,oe|=we&o),X>>8&0-65-26+97,L+=51-S>>>8&26-97-52+48,L+=61-S>>>8&52-48-62+43,L+=62-S>>>8&62-43-63+47,String.fromCharCode(L)},b.prototype._decodeChar=function(S){var L=o;return L+=(42-S&S-44)>>>8&-o+S-43+62,L+=(46-S&S-48)>>>8&-o+S-47+63,L+=(47-S&S-58)>>>8&-o+S-48+52,L+=(64-S&S-91)>>>8&-o+S-65+0,L+=(96-S&S-123)>>>8&-o+S-97+26,L},b.prototype._getPaddingLength=function(S){var L=0;if(this._paddingCharacter){for(var O=S.length-1;O>=0&&S[O]===this._paddingCharacter;O--)L++;if(S.length<4||L>2)throw new Error("Base64Coder: incorrect padding")}return L},b}();n.Coder=u;var i=new u;function l(b){return i.encode(b)}n.encode=l;function s(b){return i.decode(b)}n.decode=s;var R=function(b){t(S,b);function S(){return b!==null&&b.apply(this,arguments)||this}return S.prototype._encodeByte=function(L){var O=L;return O+=65,O+=25-L>>>8&0-65-26+97,O+=51-L>>>8&26-97-52+48,O+=61-L>>>8&52-48-62+45,O+=62-L>>>8&62-45-63+95,String.fromCharCode(O)},S.prototype._decodeChar=function(L){var O=o;return O+=(44-L&L-46)>>>8&-o+L-45+62,O+=(94-L&L-96)>>>8&-o+L-95+63,O+=(47-L&L-58)>>>8&-o+L-48+52,O+=(64-L&L-91)>>>8&-o+L-65+0,O+=(96-L&L-123)>>>8&-o+L-97+26,O},S}(u);n.URLSafeCoder=R;var d=new R;function y(b){return d.encode(b)}n.encodeURLSafe=y;function I(b){return d.decode(b)}n.decodeURLSafe=I,n.encodedLength=function(b){return i.encodedLength(b)},n.maxDecodedLength=function(b){return i.maxDecodedLength(b)},n.decodedLength=function(b){return i.decodedLength(b)}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t="utf8: invalid string",o="utf8: invalid source encoding";function u(s){for(var R=new Uint8Array(i(s)),d=0,y=0;y>6,R[d++]=128|I&63):I<55296?(R[d++]=224|I>>12,R[d++]=128|I>>6&63,R[d++]=128|I&63):(y++,I=(I&1023)<<10,I|=s.charCodeAt(y)&1023,I+=65536,R[d++]=240|I>>18,R[d++]=128|I>>12&63,R[d++]=128|I>>6&63,R[d++]=128|I&63)}return R}n.encode=u;function i(s){for(var R=0,d=0;d=s.length-1)throw new Error(t);d++,R+=4}else throw new Error(t)}return R}n.encodedLength=i;function l(s){for(var R=[],d=0;d=s.length)throw new Error(o);var b=s[++d];if((b&192)!=128)throw new Error(o);y=(y&31)<<6|b&63,I=128}else if(y<240){if(d>=s.length-1)throw new Error(o);var b=s[++d],S=s[++d];if((b&192)!=128||(S&192)!=128)throw new Error(o);y=(y&15)<<12|(b&63)<<6|S&63,I=2048}else if(y<248){if(d>=s.length-2)throw new Error(o);var b=s[++d],S=s[++d],L=s[++d];if((b&192)!=128||(S&192)!=128||(L&192)!=128)throw new Error(o);y=(y&15)<<18|(b&63)<<12|(S&63)<<6|L&63,I=65536}else throw new Error(o);if(y=55296&&y<=57343)throw new Error(o);if(y>=65536){if(y>1114111)throw new Error(o);y-=65536,R.push(String.fromCharCode(55296|y>>10)),y=56320|y&1023}}R.push(String.fromCharCode(y))}return R.join("")}n.decode=l},function(e,n,a){e.exports=a(3).default},function(e,n,a){"use strict";a.r(n);var t=function(){function m(p,D){this.lastId=0,this.prefix=p,this.name=D}return m.prototype.create=function(p){this.lastId++;var D=this.lastId,G=this.prefix+D,A=this.name+"["+D+"]",Q=!1,Ee=function(){Q||(p.apply(null,arguments),Q=!0)};return this[D]=Ee,{number:D,id:G,name:A,callback:Ee}},m.prototype.remove=function(p){delete this[p.number]},m}(),o=new t("_pusher_script_","Pusher.ScriptReceivers"),u={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:""},i=u,l=function(){function m(p){this.options=p,this.receivers=p.receivers||o,this.loading={}}return m.prototype.load=function(p,D,G){var A=this;if(A.loading[p]&&A.loading[p].length>0)A.loading[p].push(G);else{A.loading[p]=[G];var Q=Ja.createScriptRequest(A.getPath(p,D)),Ee=A.receivers.create(function(_n){if(A.receivers.remove(Ee),A.loading[p]){var ha=A.loading[p];delete A.loading[p];for(var gt=function(bo){bo||Q.cleanup()},Kt=0;Kt>>6)+I(128|p&63):I(224|p>>>12&15)+I(128|p>>>6&63)+I(128|p&63)},z=function(m){return m.replace(/[^\x00-\x7F]/g,$)},X=function(m){var p=[0,2,1][m.length%3],D=m.charCodeAt(0)<<16|(m.length>1?m.charCodeAt(1):0)<<8|(m.length>2?m.charCodeAt(2):0),G=[b.charAt(D>>>18),b.charAt(D>>>12&63),p>=2?"=":b.charAt(D>>>6&63),p>=1?"=":b.charAt(D&63)];return G.join("")},oe=window.btoa||function(m){return m.replace(/[\s\S]{1,3}/g,X)},te=function(){function m(p,D,G,A){var Q=this;this.clear=D,this.timer=p(function(){Q.timer&&(Q.timer=A(Q.timer))},G)}return m.prototype.isRunning=function(){return this.timer!==null},m.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},m}(),ve=te,we=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}();function an(m){window.clearTimeout(m)}function cn(m){window.clearInterval(m)}var ce=function(m){we(p,m);function p(D,G){return m.call(this,setTimeout,an,D,function(A){return G(),null})||this}return p}(ve),le=function(m){we(p,m);function p(D,G){return m.call(this,setInterval,cn,D,function(A){return G(),A})||this}return p}(ve),je={now:function(){return Date.now?Date.now():new Date().valueOf()},defer:function(m){return new ce(0,m)},method:function(m){for(var p=[],D=1;D0)for(var A=0;A=1002&&m.code<=1004?"backoff":null:m.code===4e3?"tls_only":m.code<4100?"refused":m.code<4200?"backoff":m.code<4300?"retry":"refused"},getCloseError:function(m){return m.code!==1e3&&m.code!==1001?{type:"PusherError",data:{code:m.code,message:m.reason||m.message}}:null}},se=jc,wl=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}(),bl=function(m){wl(p,m);function p(D,G){var A=m.call(this)||this;return A.id=D,A.transport=G,A.activityTimeout=G.activityTimeout,A.bindListeners(),A}return p.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},p.prototype.send=function(D){return this.transport.send(D)},p.prototype.send_event=function(D,G,A){var Q={event:D,data:G};return A&&(Q.channel=A),sn.debug("Event sent",Q),this.send(se.encodeMessage(Q))},p.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},p.prototype.close=function(){this.transport.close()},p.prototype.bindListeners=function(){var D=this,G={message:function(Q){var Ee;try{Ee=se.decodeMessage(Q)}catch(_n){D.emit("error",{type:"MessageParseError",error:_n,data:Q.data})}if(Ee!==void 0){switch(sn.debug("Event recd",Ee),Ee.event){case"pusher:error":D.emit("error",{type:"PusherError",data:Ee.data});break;case"pusher:ping":D.emit("ping");break;case"pusher:pong":D.emit("pong");break}D.emit("message",Ee)}},activity:function(){D.emit("activity")},error:function(Q){D.emit("error",{type:"WebSocketError",error:Q})},closed:function(Q){A(),Q&&Q.code&&D.handleCloseEvent(Q),D.transport=null,D.emit("closed")}},A=function(){ra(G,function(Q,Ee){D.transport.unbind(Ee,Q)})};ra(G,function(Q,Ee){D.transport.bind(Ee,Q)})},p.prototype.handleCloseEvent=function(D){var G=se.getCloseAction(D),A=se.getCloseError(D);A&&this.emit("error",A),G&&this.emit(G,{action:G,error:A})},p}(pa),Oc=bl,El=function(){function m(p,D){this.transport=p,this.callback=D,this.bindListeners()}return m.prototype.close=function(){this.unbindListeners(),this.transport.close()},m.prototype.bindListeners=function(){var p=this;this.onMessage=function(D){p.unbindListeners();var G;try{G=se.processHandshake(D)}catch(A){p.finish("error",{error:A}),p.transport.close();return}G.action==="connected"?p.finish("connected",{connection:new Oc(G.id,p.transport),activityTimeout:G.activityTimeout}):(p.finish(G.action,{error:G.error}),p.transport.close())},this.onClosed=function(D){p.unbindListeners();var G=se.getCloseAction(D)||"backoff",A=se.getCloseError(D);p.finish(G,{error:A})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},m.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},m.prototype.finish=function(p,D){this.callback(He({transport:this.transport,action:p},D))},m}(),xi=El,dd=function(){function m(p,D){this.channel=p;var G=D.authTransport;if(typeof Ja.getAuthorizers()[G]=="undefined")throw"'"+G+"' is not a recognized auth transport";this.type=G,this.options=D,this.authOptions=D.auth||{}}return m.prototype.composeQuery=function(p){var D="socket_id="+encodeURIComponent(p)+"&channel_name="+encodeURIComponent(this.channel.name);for(var G in this.authOptions.params)D+="&"+encodeURIComponent(G)+"="+encodeURIComponent(this.authOptions.params[G]);return D},m.prototype.authorize=function(p,D){m.authorizers=m.authorizers||Ja.getAuthorizers(),m.authorizers[this.type].call(this,Ja,p,D)},m}(),ef=dd,W_=function(){function m(p,D){this.timeline=p,this.options=D||{}}return m.prototype.send=function(p,D){this.timeline.isEmpty()||this.timeline.send(Ja.TimelineTransport.getAgent(this,p),D)},m}(),$_=W_,Ni=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}(),tu=function(m){Ni(p,m);function p(D){var G=this.constructor,A=m.call(this,D)||this;return Object.setPrototypeOf(A,G.prototype),A}return p}(Error),Uc=function(m){Ni(p,m);function p(D){var G=this.constructor,A=m.call(this,D)||this;return Object.setPrototypeOf(A,G.prototype),A}return p}(Error),z_=function(m){Ni(p,m);function p(D){var G=this.constructor,A=m.call(this,D)||this;return Object.setPrototypeOf(A,G.prototype),A}return p}(Error),md=function(m){Ni(p,m);function p(D){var G=this.constructor,A=m.call(this,D)||this;return Object.setPrototypeOf(A,G.prototype),A}return p}(Error),V_=function(m){Ni(p,m);function p(D){var G=this.constructor,A=m.call(this,D)||this;return Object.setPrototypeOf(A,G.prototype),A}return p}(Error),JD=function(m){Ni(p,m);function p(D){var G=this.constructor,A=m.call(this,D)||this;return Object.setPrototypeOf(A,G.prototype),A}return p}(Error),Hs=function(m){Ni(p,m);function p(D){var G=this.constructor,A=m.call(this,D)||this;return Object.setPrototypeOf(A,G.prototype),A}return p}(Error),DE=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}(),gE=function(m){DE(p,m);function p(D,G){var A=m.call(this,function(Q,Ee){sn.debug("No callbacks on "+D+" for "+Q)})||this;return A.name=D,A.pusher=G,A.subscribed=!1,A.subscriptionPending=!1,A.subscriptionCancelled=!1,A}return p.prototype.authorize=function(D,G){return G(!1,{auth:""})},p.prototype.trigger=function(D,G){if(D.indexOf("client-")!==0)throw new tu("Event '"+D+"' does not start with 'client-'");if(!this.subscribed){var A=Da.buildLogSuffix("triggeringClientEvents");sn.warn("Client event triggered before channel 'subscription_succeeded' event . "+A)}return this.pusher.send_event(D,G,this.name)},p.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},p.prototype.handleEvent=function(D){var G=D.event,A=D.data;if(G==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(D);else if(G.indexOf("pusher_internal:")!==0){var Q={};this.emit(G,A,Q)}},p.prototype.handleSubscriptionSucceededEvent=function(D){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",D.data)},p.prototype.subscribe=function(){var D=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,function(G,A){G?(sn.error(A),D.emit("pusher:subscription_error",A)):(A=A,D.pusher.send_event("pusher:subscribe",{auth:A.auth,channel_data:A.channel_data,channel:D.name}))}))},p.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},p.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},p.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},p}(pa),WD=gE,RE=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}(),yE=function(m){RE(p,m);function p(){return m!==null&&m.apply(this,arguments)||this}return p.prototype.authorize=function(D,G){var A=ji.createAuthorizer(this,this.pusher.config);return A.authorize(D,G)},p}(WD),hd=yE,$D=function(){function m(){this.reset()}return m.prototype.get=function(p){return Object.prototype.hasOwnProperty.call(this.members,p)?{id:p,info:this.members[p]}:null},m.prototype.each=function(p){var D=this;ra(this.members,function(G,A){p(D.get(A))})},m.prototype.setMyID=function(p){this.myID=p},m.prototype.onSubscription=function(p){this.members=p.presence.hash,this.count=p.presence.count,this.me=this.get(this.myID)},m.prototype.addMember=function(p){return this.get(p.user_id)===null&&this.count++,this.members[p.user_id]=p.user_info,this.get(p.user_id)},m.prototype.removeMember=function(p){var D=this.get(p.user_id);return D&&(delete this.members[p.user_id],this.count--),D},m.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},m}(),wE=$D,bE=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}(),zD=function(m){bE(p,m);function p(D,G){var A=m.call(this,D,G)||this;return A.members=new wE,A}return p.prototype.authorize=function(D,G){var A=this;m.prototype.authorize.call(this,D,function(Q,Ee){if(!Q){if(Ee=Ee,Ee.channel_data===void 0){var _n=Da.buildLogSuffix("authenticationEndpoint");sn.error("Invalid auth response for channel '"+A.name+"',"+("expected 'channel_data' field. "+_n)),G("Invalid auth response");return}var ha=JSON.parse(Ee.channel_data);A.members.setMyID(ha.user_id)}G(Q,Ee)})},p.prototype.handleEvent=function(D){var G=D.event;if(G.indexOf("pusher_internal:")===0)this.handleInternalEvent(D);else{var A=D.data,Q={};D.user_id&&(Q.user_id=D.user_id),this.emit(G,A,Q)}},p.prototype.handleInternalEvent=function(D){var G=D.event,A=D.data;switch(G){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(D);break;case"pusher_internal:member_added":var Q=this.members.addMember(A);this.emit("pusher:member_added",Q);break;case"pusher_internal:member_removed":var Ee=this.members.removeMember(A);Ee&&this.emit("pusher:member_removed",Ee);break}},p.prototype.handleSubscriptionSucceededEvent=function(D){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(D.data),this.emit("pusher:subscription_succeeded",this.members))},p.prototype.disconnect=function(){this.members.reset(),m.prototype.disconnect.call(this)},p}(hd),EE=zD,VD=a(1),Dd=a(0),IE=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}(),TE=function(m){IE(p,m);function p(D,G,A){var Q=m.call(this,D,G)||this;return Q.key=null,Q.nacl=A,Q}return p.prototype.authorize=function(D,G){var A=this;m.prototype.authorize.call(this,D,function(Q,Ee){if(Q){G(!0,Ee);return}var _n=Ee.shared_secret;if(!_n){var ha="No shared_secret key in auth payload for encrypted channel: "+A.name;G(!0,ha);return}A.key=Object(Dd.decode)(_n),delete Ee.shared_secret,G(!1,Ee)})},p.prototype.trigger=function(D,G){throw new V_("Client events are not currently supported for encrypted channels")},p.prototype.handleEvent=function(D){var G=D.event,A=D.data;if(G.indexOf("pusher_internal:")===0||G.indexOf("pusher:")===0){m.prototype.handleEvent.call(this,D);return}this.handleEncryptedEvent(G,A)},p.prototype.handleEncryptedEvent=function(D,G){var A=this;if(!this.key){sn.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!G.ciphertext||!G.nonce){sn.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+G);return}var Q=Object(Dd.decode)(G.ciphertext);if(Q.length0&&this.emit("connecting_in",Math.round(D/1e3)),this.retryTimer=new ce(D||0,function(){G.disconnectInternally(),G.connect()})},p.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},p.prototype.setUnavailableTimer=function(){var D=this;this.unavailableTimer=new ce(this.options.unavailableTimeout,function(){D.updateState("unavailable")})},p.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},p.prototype.sendActivityCheck=function(){var D=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new ce(this.options.pongTimeout,function(){D.timeline.error({pong_timed_out:D.options.pongTimeout}),D.retryIn(0)})},p.prototype.resetActivityCheck=function(){var D=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new ce(this.activityTimeout,function(){D.sendActivityCheck()}))},p.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},p.prototype.buildConnectionCallbacks=function(D){var G=this;return He({},D,{message:function(A){G.resetActivityCheck(),G.emit("message",A)},ping:function(){G.send_event("pusher:pong",{})},activity:function(){G.resetActivityCheck()},error:function(A){G.emit("error",{type:"WebSocketError",error:A})},closed:function(){G.abandonConnection(),G.shouldRetry()&&G.retryIn(1e3)}})},p.prototype.buildHandshakeCallbacks=function(D){var G=this;return He({},D,{connected:function(A){G.activityTimeout=Math.min(G.options.activityTimeout,A.activityTimeout,A.connection.activityTimeout||1/0),G.clearUnavailableTimer(),G.setConnection(A.connection),G.socket_id=G.connection.id,G.updateState("connected",{socket_id:G.socket_id})}})},p.prototype.buildErrorCallbacks=function(){var D=this,G=function(A){return function(Q){Q.error&&D.emit("error",{type:"WebSocketError",error:Q.error}),A(Q)}};return{tls_only:G(function(){D.usingTLS=!0,D.updateStrategy(),D.retryIn(0)}),refused:G(function(){D.disconnect()}),backoff:G(function(){D.retryIn(1e3)}),retry:G(function(){D.retryIn(0)})}},p.prototype.setConnection=function(D){this.connection=D;for(var G in this.connectionCallbacks)this.connection.bind(G,this.connectionCallbacks[G]);this.resetActivityCheck()},p.prototype.abandonConnection=function(){if(!!this.connection){this.stopActivityCheck();for(var D in this.connectionCallbacks)this.connection.unbind(D,this.connectionCallbacks[D]);var G=this.connection;return this.connection=null,G}},p.prototype.updateState=function(D,G){var A=this.state;if(this.state=D,A!==D){var Q=D;Q==="connected"&&(Q+=" with new socket ID "+G.socket_id),sn.debug("State changed",A+" -> "+Q),this.timeline.info({state:D,params:G}),this.emit("state_change",{previous:A,current:D}),this.emit(D,G)}},p.prototype.shouldRetry=function(){return this.state==="connecting"||this.state==="connected"},p}(pa),QD=FE,GE=function(){function m(){this.channels={}}return m.prototype.add=function(p,D){return this.channels[p]||(this.channels[p]=KD(p,D)),this.channels[p]},m.prototype.all=function(){return qn(this.channels)},m.prototype.find=function(p){return this.channels[p]},m.prototype.remove=function(p){var D=this.channels[p];return delete this.channels[p],D},m.prototype.disconnect=function(){ra(this.channels,function(p){p.disconnect()})},m}(),ME=GE;function KD(m,p){if(m.indexOf("private-encrypted-")===0){if(p.config.nacl)return ji.createEncryptedChannel(m,p,p.config.nacl);var D="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",G=Da.buildLogSuffix("encryptedChannelSupport");throw new V_(D+". "+G)}else return m.indexOf("private-")===0?ji.createPrivateChannel(m,p):m.indexOf("presence-")===0?ji.createPresenceChannel(m,p):ji.createChannel(m,p)}var AE={createChannels:function(){return new ME},createConnectionManager:function(m,p){return new QD(m,p)},createChannel:function(m,p){return new WD(m,p)},createPrivateChannel:function(m,p){return new hd(m,p)},createPresenceChannel:function(m,p){return new EE(m,p)},createEncryptedChannel:function(m,p,D){return new SE(m,p,D)},createTimelineSender:function(m,p){return new $_(m,p)},createAuthorizer:function(m,p){return p.authorizer?p.authorizer(m,p):new ef(m,p)},createHandshake:function(m,p){return new xi(m,p)},createAssistantToTheTransportManager:function(m,p,D){return new Ql(m,p,D)}},ji=AE,LE=function(){function m(p){this.options=p||{},this.livesLeft=this.options.lives||1/0}return m.prototype.getAssistant=function(p){return ji.createAssistantToTheTransportManager(this,p,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},m.prototype.isAlive=function(){return this.livesLeft>0},m.prototype.reportDeath=function(){this.livesLeft-=1},m}(),YD=LE,PE=function(){function m(p,D){this.strategies=p,this.loop=Boolean(D.loop),this.failFast=Boolean(D.failFast),this.timeout=D.timeout,this.timeoutLimit=D.timeoutLimit}return m.prototype.isSupported=function(){return In(this.strategies,Ce.method("isSupported"))},m.prototype.connect=function(p,D){var G=this,A=this.strategies,Q=0,Ee=this.timeout,_n=null,ha=function(gt,Kt){Kt?D(null,Kt):(Q=Q+1,G.loop&&(Q=Q%A.length),Q0&&(Q=new ce(G.timeout,function(){Ee.abort(),A(!0)})),Ee=p.connect(D,function(_n,ha){_n&&Q&&Q.isRunning()&&!G.failFast||(Q&&Q.ensureAborted(),A(_n,ha))}),{abort:function(){Q&&Q.ensureAborted(),Ee.abort()},forceMinPriority:function(_n){Ee.forceMinPriority(_n)}}},m}(),kc=PE,xE=function(){function m(p){this.strategies=p}return m.prototype.isSupported=function(){return In(this.strategies,Ce.method("isSupported"))},m.prototype.connect=function(p,D){return NE(this.strategies,p,function(G,A){return function(Q,Ee){if(A[G].error=Q,Q){XD(A)&&D(!0);return}Kn(A,function(_n){_n.forceMinPriority(Ee.transport.priority)}),D(null,Ee)}})},m}(),gd=xE;function NE(m,p,D){var G=Jn(m,function(A,Q,Ee,_n){return A.connect(p,D(Q,_n))});return{abort:function(){Kn(G,Rd)},forceMinPriority:function(A){Kn(G,function(Q){Q.forceMinPriority(A)})}}}function XD(m){return gn(m,function(p){return Boolean(p.error)})}function Rd(m){!m.error&&!m.aborted&&(m.abort(),m.aborted=!0)}var jE=function(){function m(p,D,G){this.strategy=p,this.transports=D,this.ttl=G.ttl||1800*1e3,this.usingTLS=G.useTLS,this.timeline=G.timeline}return m.prototype.isSupported=function(){return this.strategy.isSupported()},m.prototype.connect=function(p,D){var G=this.usingTLS,A=ZD(G),Q=[this.strategy];if(A&&A.timestamp+this.ttl>=Ce.now()){var Ee=this.transports[A.transport];Ee&&(this.timeline.info({cached:!0,transport:A.transport,latency:A.latency}),Q.push(new kc([Ee],{timeout:A.latency*2+1e3,failFast:!0})))}var _n=Ce.now(),ha=Q.pop().connect(p,function gt(Kt,bo){Kt?(eg(G),Q.length>0?(_n=Ce.now(),ha=Q.pop().connect(p,gt)):D(Kt)):(UE(G,bo.transport.name,Ce.now()-_n),D(null,bo))});return{abort:function(){ha.abort()},forceMinPriority:function(gt){p=gt,ha&&ha.forceMinPriority(gt)}}},m}(),OE=jE;function yd(m){return"pusherTransport"+(m?"TLS":"NonTLS")}function ZD(m){var p=Ja.getLocalStorage();if(p)try{var D=p[yd(m)];if(D)return JSON.parse(D)}catch{eg(m)}return null}function UE(m,p,D){var G=Ja.getLocalStorage();if(G)try{G[yd(m)]=La({timestamp:Ce.now(),transport:p,latency:D})}catch{}}function eg(m){var p=Ja.getLocalStorage();if(p)try{delete p[yd(m)]}catch{}}var kE=function(){function m(p,D){var G=D.delay;this.strategy=p,this.options={delay:G}}return m.prototype.isSupported=function(){return this.strategy.isSupported()},m.prototype.connect=function(p,D){var G=this.strategy,A,Q=new ce(this.options.delay,function(){A=G.connect(p,D)});return{abort:function(){Q.ensureAborted(),A&&A.abort()},forceMinPriority:function(Ee){p=Ee,A&&A.forceMinPriority(Ee)}}},m}(),Q_=kE,ng=function(){function m(p,D,G){this.test=p,this.trueBranch=D,this.falseBranch=G}return m.prototype.isSupported=function(){var p=this.test()?this.trueBranch:this.falseBranch;return p.isSupported()},m.prototype.connect=function(p,D){var G=this.test()?this.trueBranch:this.falseBranch;return G.connect(p,D)},m}(),nf=ng,BE=function(){function m(p){this.strategy=p}return m.prototype.isSupported=function(){return this.strategy.isSupported()},m.prototype.connect=function(p,D){var G=this.strategy.connect(p,function(A,Q){Q&&G.abort(),D(A,Q)});return G},m}(),HE=BE;function Il(m){return function(){return m.isSupported()}}var ag=function(m,p,D){var G={};function A(Fr,Rg,yg,hI,wg){var w=D(m,Fr,Rg,yg,hI,wg);return G[Fr]=w,w}var Q=Object.assign({},p,{hostNonTLS:m.wsHost+":"+m.wsPort,hostTLS:m.wsHost+":"+m.wssPort,httpPath:m.wsPath}),Ee=Object.assign({},Q,{useTLS:!0}),_n=Object.assign({},p,{hostNonTLS:m.httpHost+":"+m.httpPort,hostTLS:m.httpHost+":"+m.httpsPort,httpPath:m.httpPath}),ha={loop:!0,timeout:15e3,timeoutLimit:6e4},gt=new YD({lives:2,minPingDelay:1e4,maxPingDelay:m.activityTimeout}),Kt=new YD({lives:2,minPingDelay:1e4,maxPingDelay:m.activityTimeout}),bo=A("ws","ws",3,Q,gt),ui=A("wss","ws",3,Ee,gt),_I=A("sockjs","sockjs",1,_n),_g=A("xhr_streaming","xhr_streaming",1,_n,Kt),pg=A("xdr_streaming","xdr_streaming",1,_n,Kt),dg=A("xhr_polling","xhr_polling",1,_n),pI=A("xdr_polling","xdr_polling",1,_n),mg=new kc([bo],ha),dI=new kc([ui],ha),mI=new kc([_I],ha),hg=new kc([new nf(Il(_g),_g,pg)],ha),Dg=new kc([new nf(Il(dg),dg,pI)],ha),gg=new kc([new nf(Il(hg),new gd([hg,new Q_(Dg,{delay:4e3})]),Dg)],ha),Sd=new nf(Il(gg),gg,mI),Cd;return p.useTLS?Cd=new gd([mg,new Q_(Sd,{delay:2e3})]):Cd=new gd([mg,new Q_(dI,{delay:2e3}),new Q_(Sd,{delay:5e3})]),new OE(new HE(new nf(Il(bo),Cd,Sd)),G,{ttl:18e5,timeline:p.timeline,useTLS:p.useTLS})},qE=ag,JE=function(){var m=this;m.timeline.info(m.buildTimelineMessage({transport:m.name+(m.options.useTLS?"s":"")})),m.hooks.isInitialized()?m.changeState("initialized"):m.hooks.file?(m.changeState("initializing"),d.load(m.hooks.file,{useTLS:m.options.useTLS},function(p,D){m.hooks.isInitialized()?(m.changeState("initialized"),D(!0)):(p&&m.onError(p),m.onClose(),D(!1))})):m.onClose()},tg={getRequest:function(m){var p=new window.XDomainRequest;return p.ontimeout=function(){m.emit("error",new Uc),m.close()},p.onerror=function(D){m.emit("error",D),m.close()},p.onprogress=function(){p.responseText&&p.responseText.length>0&&m.onChunk(200,p.responseText)},p.onload=function(){p.responseText&&p.responseText.length>0&&m.onChunk(200,p.responseText),m.emit("finished",200),m.close()},p},abortRequest:function(m){m.ontimeout=m.onerror=m.onprogress=m.onload=null,m.abort()}},WE=tg,rg=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}(),$E=256*1024,og=function(m){rg(p,m);function p(D,G,A){var Q=m.call(this)||this;return Q.hooks=D,Q.method=G,Q.url=A,Q}return p.prototype.start=function(D){var G=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){G.close()},Ja.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(D)},p.prototype.close=function(){this.unloader&&(Ja.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},p.prototype.onChunk=function(D,G){for(;;){var A=this.advanceBuffer(G);if(A)this.emit("chunk",{status:D,data:A});else break}this.isBufferTooLong(G)&&this.emit("buffer_too_long")},p.prototype.advanceBuffer=function(D){var G=D.slice(this.position),A=G.indexOf(` `);return A!==-1?(this.position+=A+1,G.slice(0,A)):null},p.prototype.isBufferTooLong=function(D){return this.position===D.length&&D.length>$E},p}(pa),ug=og,af;(function(m){m[m.CONNECTING=0]="CONNECTING",m[m.OPEN=1]="OPEN",m[m.CLOSED=3]="CLOSED"})(af||(af={}));var Oi=af,zE=1,ig=function(){function m(p,D){this.hooks=p,this.session=Su(1e3)+"/"+Tl(8),this.location=VE(D),this.readyState=Oi.CONNECTING,this.openStream()}return m.prototype.send=function(p){return this.sendRaw(JSON.stringify([p]))},m.prototype.ping=function(){this.hooks.sendHeartbeat(this)},m.prototype.close=function(p,D){this.onClose(p,D,!0)},m.prototype.sendRaw=function(p){if(this.readyState===Oi.OPEN)try{return Ja.createSocketRequest("POST",wd(QE(this.location,this.session))).start(p),!0}catch{return!1}else return!1},m.prototype.reconnect=function(){this.closeStream(),this.openStream()},m.prototype.onClose=function(p,D,G){this.closeStream(),this.readyState=Oi.CLOSED,this.onclose&&this.onclose({code:p,reason:D,wasClean:G})},m.prototype.onChunk=function(p){if(p.status===200){this.readyState===Oi.OPEN&&this.onActivity();var D,G=p.data.slice(0,1);switch(G){case"o":D=JSON.parse(p.data.slice(1)||"{}"),this.onOpen(D);break;case"a":D=JSON.parse(p.data.slice(1)||"[]");for(var A=0;A0&&m.onChunk(D.status,D.responseText);break;case 4:D.responseText&&D.responseText.length>0&&m.onChunk(D.status,D.responseText),m.emit("finished",D.status),m.close();break}},D},abortRequest:function(m){m.onreadystatechange=null,m.abort()}},qa=cg,Bc={createStreamingSocket:function(m){return this.createSocket(XE,m)},createPollingSocket:function(m){return this.createSocket(eI,m)},createSocket:function(m,p){return new KE(m,p)},createXHR:function(m,p){return this.createRequest(qa,m,p)},createRequest:function(m,p,D){return new ug(m,p,D)}},bd=Bc;bd.createXDR=function(m,p){return this.createRequest(WE,m,p)};var nI=bd,aI={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:o,DependenciesReceivers:R,getDefaultStrategy:qE,Transports:wo,transportConnectionInitializer:JE,HTTPFactory:nI,TimelineTransport:re,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(m){var p=this;window.Pusher=m;var D=function(){p.onDocumentBody(m.ready)};window.JSON?D():d.load("json2",{},D)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:q,jsonp:j}},onDocumentBody:function(m){var p=this;document.body?m():setTimeout(function(){p.onDocumentBody(m)},0)},createJSONPRequest:function(m,p){return new W(m,p)},createScriptRequest:function(m){return new P(m)},getLocalStorage:function(){try{return window.localStorage}catch{return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){var m=this.getXHRAPI();return new m},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return oi},createWebSocket:function(m){var p=this.getWebSocketAPI();return new p(m)},createSocketRequest:function(m,p){if(this.isXHRSupported())return this.HTTPFactory.createXHR(m,p);if(this.isXDRSupported(p.indexOf("https:")===0))return this.HTTPFactory.createXDR(m,p);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var m=this.getXHRAPI();return Boolean(m)&&new m().withCredentials!==void 0},isXDRSupported:function(m){var p=m?"https:":"http:",D=this.getProtocol();return Boolean(window.XDomainRequest)&&D===p},addUnloadListener:function(m){window.addEventListener!==void 0?window.addEventListener("unload",m,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",m)},removeUnloadListener:function(m){window.addEventListener!==void 0?window.removeEventListener("unload",m,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",m)}},Ja=aI,K_;(function(m){m[m.ERROR=3]="ERROR",m[m.INFO=6]="INFO",m[m.DEBUG=7]="DEBUG"})(K_||(K_={}));var Y_=K_,tI=function(){function m(p,D,G){this.key=p,this.session=D,this.events=[],this.options=G||{},this.sent=0,this.uniqueID=0}return m.prototype.log=function(p,D){p<=this.options.level&&(this.events.push(He({},D,{timestamp:Ce.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},m.prototype.error=function(p){this.log(Y_.ERROR,p)},m.prototype.info=function(p){this.log(Y_.INFO,p)},m.prototype.debug=function(p){this.log(Y_.DEBUG,p)},m.prototype.isEmpty=function(){return this.events.length===0},m.prototype.send=function(p,D){var G=this,A=He({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=[],p(A,function(Q,Ee){Q||G.sent++,D&&D(Q,Ee)}),!0},m.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},m}(),sg=tI,Ed=function(){function m(p,D,G,A){this.name=p,this.priority=D,this.transport=G,this.options=A||{}}return m.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},m.prototype.connect=function(p,D){var G=this;if(this.isSupported()){if(this.priority{"use strict";var Do=typeof Symbol=="function"&&Symbol.for,OF=Do?Symbol.for("react.element"):60103,UF=Do?Symbol.for("react.portal"):60106,yw=Do?Symbol.for("react.fragment"):60107,ww=Do?Symbol.for("react.strict_mode"):60108,bw=Do?Symbol.for("react.profiler"):60114,Ew=Do?Symbol.for("react.provider"):60109,Iw=Do?Symbol.for("react.context"):60110,kF=Do?Symbol.for("react.async_mode"):60111,Tw=Do?Symbol.for("react.concurrent_mode"):60111,Sw=Do?Symbol.for("react.forward_ref"):60112,Cw=Do?Symbol.for("react.suspense"):60113,yfe=Do?Symbol.for("react.suspense_list"):60120,Fw=Do?Symbol.for("react.memo"):60115,Gw=Do?Symbol.for("react.lazy"):60116,wfe=Do?Symbol.for("react.block"):60121,bfe=Do?Symbol.for("react.fundamental"):60117,Efe=Do?Symbol.for("react.responder"):60118,Ife=Do?Symbol.for("react.scope"):60119;function Ci(e){if(typeof e=="object"&&e!==null){var n=e.$$typeof;switch(n){case OF:switch(e=e.type,e){case kF:case Tw:case yw:case bw:case ww:case Cw:return e;default:switch(e=e&&e.$$typeof,e){case Iw:case Sw:case Gw:case Fw:case Ew:return e;default:return n}}case UF:return n}}}function s6(e){return Ci(e)===Tw}jt.AsyncMode=kF;jt.ConcurrentMode=Tw;jt.ContextConsumer=Iw;jt.ContextProvider=Ew;jt.Element=OF;jt.ForwardRef=Sw;jt.Fragment=yw;jt.Lazy=Gw;jt.Memo=Fw;jt.Portal=UF;jt.Profiler=bw;jt.StrictMode=ww;jt.Suspense=Cw;jt.isAsyncMode=function(e){return s6(e)||Ci(e)===kF};jt.isConcurrentMode=s6;jt.isContextConsumer=function(e){return Ci(e)===Iw};jt.isContextProvider=function(e){return Ci(e)===Ew};jt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===OF};jt.isForwardRef=function(e){return Ci(e)===Sw};jt.isFragment=function(e){return Ci(e)===yw};jt.isLazy=function(e){return Ci(e)===Gw};jt.isMemo=function(e){return Ci(e)===Fw};jt.isPortal=function(e){return Ci(e)===UF};jt.isProfiler=function(e){return Ci(e)===bw};jt.isStrictMode=function(e){return Ci(e)===ww};jt.isSuspense=function(e){return Ci(e)===Cw};jt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===yw||e===Tw||e===bw||e===ww||e===Cw||e===yfe||typeof e=="object"&&e!==null&&(e.$$typeof===Gw||e.$$typeof===Fw||e.$$typeof===Ew||e.$$typeof===Iw||e.$$typeof===Sw||e.$$typeof===bfe||e.$$typeof===Efe||e.$$typeof===Ife||e.$$typeof===wfe)};jt.typeOf=Ci});var _6=Oe((WFa,f6)=>{"use strict";f6.exports=v6()});var R_=Oe((oGa,Lw)=>{(function(){"use strict";var e={}.hasOwnProperty;function n(){for(var o="",u=0;u{function v_e(){this.__data__=[],this.size=0}r5.exports=v_e});var sG=Oe((QMa,u5)=>{function f_e(e,n){return e===n||e!==e&&n!==n}u5.exports=f_e});var wh=Oe((KMa,i5)=>{var __e=sG();function p_e(e,n){for(var a=e.length;a--;)if(__e(e[a][0],n))return a;return-1}i5.exports=p_e});var c5=Oe((YMa,l5)=>{var d_e=wh(),m_e=Array.prototype,h_e=m_e.splice;function D_e(e){var n=this.__data__,a=d_e(n,e);if(a<0)return!1;var t=n.length-1;return a==t?n.pop():h_e.call(n,a,1),--this.size,!0}l5.exports=D_e});var v5=Oe((XMa,s5)=>{var g_e=wh();function R_e(e){var n=this.__data__,a=g_e(n,e);return a<0?void 0:n[a][1]}s5.exports=R_e});var _5=Oe((ZMa,f5)=>{var y_e=wh();function w_e(e){return y_e(this.__data__,e)>-1}f5.exports=w_e});var d5=Oe((eAa,p5)=>{var b_e=wh();function E_e(e,n){var a=this.__data__,t=b_e(a,e);return t<0?(++this.size,a.push([e,n])):a[t][1]=n,this}p5.exports=E_e});var bh=Oe((nAa,m5)=>{var I_e=o5(),T_e=c5(),S_e=v5(),C_e=_5(),F_e=d5();function Sp(e){var n=-1,a=e==null?0:e.length;for(this.clear();++n{var G_e=bh();function M_e(){this.__data__=new G_e,this.size=0}h5.exports=M_e});var R5=Oe((tAa,g5)=>{function A_e(e){var n=this.__data__,a=n.delete(e);return this.size=n.size,a}g5.exports=A_e});var w5=Oe((rAa,y5)=>{function L_e(e){return this.__data__.get(e)}y5.exports=L_e});var E5=Oe((oAa,b5)=>{function P_e(e){return this.__data__.has(e)}b5.exports=P_e});var vG=Oe((uAa,I5)=>{var x_e=typeof global=="object"&&global&&global.Object===Object&&global;I5.exports=x_e});var Sc=Oe((iAa,T5)=>{var N_e=vG(),j_e=typeof self=="object"&&self&&self.Object===Object&&self,O_e=N_e||j_e||Function("return this")();T5.exports=O_e});var nb=Oe((lAa,S5)=>{var U_e=Sc(),k_e=U_e.Symbol;S5.exports=k_e});var M5=Oe((cAa,G5)=>{var C5=nb(),F5=Object.prototype,B_e=F5.hasOwnProperty,H_e=F5.toString,Eh=C5?C5.toStringTag:void 0;function q_e(e){var n=B_e.call(e,Eh),a=e[Eh];try{e[Eh]=void 0;var t=!0}catch{}var o=H_e.call(e);return t&&(n?e[Eh]=a:delete e[Eh]),o}G5.exports=q_e});var L5=Oe((sAa,A5)=>{var J_e=Object.prototype,W_e=J_e.toString;function $_e(e){return W_e.call(e)}A5.exports=$_e});var Ih=Oe((vAa,N5)=>{var P5=nb(),z_e=M5(),V_e=L5(),Q_e="[object Null]",K_e="[object Undefined]",x5=P5?P5.toStringTag:void 0;function Y_e(e){return e==null?e===void 0?K_e:Q_e:x5&&x5 in Object(e)?z_e(e):V_e(e)}N5.exports=Y_e});var fG=Oe((fAa,j5)=>{function X_e(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}j5.exports=X_e});var _G=Oe((_Aa,O5)=>{var Z_e=Ih(),e0e=fG(),n0e="[object AsyncFunction]",a0e="[object Function]",t0e="[object GeneratorFunction]",r0e="[object Proxy]";function o0e(e){if(!e0e(e))return!1;var n=Z_e(e);return n==a0e||n==t0e||n==n0e||n==r0e}O5.exports=o0e});var k5=Oe((pAa,U5)=>{var u0e=Sc(),i0e=u0e["__core-js_shared__"];U5.exports=i0e});var q5=Oe((dAa,H5)=>{var pG=k5(),B5=function(){var e=/[^.]+$/.exec(pG&&pG.keys&&pG.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function l0e(e){return!!B5&&B5 in e}H5.exports=l0e});var dG=Oe((mAa,J5)=>{var c0e=Function.prototype,s0e=c0e.toString;function v0e(e){if(e!=null){try{return s0e.call(e)}catch{}try{return e+""}catch{}}return""}J5.exports=v0e});var $5=Oe((hAa,W5)=>{var f0e=_G(),_0e=q5(),p0e=fG(),d0e=dG(),m0e=/[\\^$.*+?()[\]{}|]/g,h0e=/^\[object .+?Constructor\]$/,D0e=Function.prototype,g0e=Object.prototype,R0e=D0e.toString,y0e=g0e.hasOwnProperty,w0e=RegExp("^"+R0e.call(y0e).replace(m0e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b0e(e){if(!p0e(e)||_0e(e))return!1;var n=f0e(e)?w0e:h0e;return n.test(d0e(e))}W5.exports=b0e});var V5=Oe((DAa,z5)=>{function E0e(e,n){return e==null?void 0:e[n]}z5.exports=E0e});var w_=Oe((gAa,Q5)=>{var I0e=$5(),T0e=V5();function S0e(e,n){var a=T0e(e,n);return I0e(a)?a:void 0}Q5.exports=S0e});var ab=Oe((RAa,K5)=>{var C0e=w_(),F0e=Sc(),G0e=C0e(F0e,"Map");K5.exports=G0e});var Th=Oe((yAa,Y5)=>{var M0e=w_(),A0e=M0e(Object,"create");Y5.exports=A0e});var e9=Oe((wAa,Z5)=>{var X5=Th();function L0e(){this.__data__=X5?X5(null):{},this.size=0}Z5.exports=L0e});var a9=Oe((bAa,n9)=>{function P0e(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}n9.exports=P0e});var r9=Oe((EAa,t9)=>{var x0e=Th(),N0e="__lodash_hash_undefined__",j0e=Object.prototype,O0e=j0e.hasOwnProperty;function U0e(e){var n=this.__data__;if(x0e){var a=n[e];return a===N0e?void 0:a}return O0e.call(n,e)?n[e]:void 0}t9.exports=U0e});var u9=Oe((IAa,o9)=>{var k0e=Th(),B0e=Object.prototype,H0e=B0e.hasOwnProperty;function q0e(e){var n=this.__data__;return k0e?n[e]!==void 0:H0e.call(n,e)}o9.exports=q0e});var l9=Oe((TAa,i9)=>{var J0e=Th(),W0e="__lodash_hash_undefined__";function $0e(e,n){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=J0e&&n===void 0?W0e:n,this}i9.exports=$0e});var s9=Oe((SAa,c9)=>{var z0e=e9(),V0e=a9(),Q0e=r9(),K0e=u9(),Y0e=l9();function Cp(e){var n=-1,a=e==null?0:e.length;for(this.clear();++n{var v9=s9(),X0e=bh(),Z0e=ab();function epe(){this.size=0,this.__data__={hash:new v9,map:new(Z0e||X0e),string:new v9}}f9.exports=epe});var d9=Oe((FAa,p9)=>{function npe(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}p9.exports=npe});var Sh=Oe((GAa,m9)=>{var ape=d9();function tpe(e,n){var a=e.__data__;return ape(n)?a[typeof n=="string"?"string":"hash"]:a.map}m9.exports=tpe});var D9=Oe((MAa,h9)=>{var rpe=Sh();function ope(e){var n=rpe(this,e).delete(e);return this.size-=n?1:0,n}h9.exports=ope});var R9=Oe((AAa,g9)=>{var upe=Sh();function ipe(e){return upe(this,e).get(e)}g9.exports=ipe});var w9=Oe((LAa,y9)=>{var lpe=Sh();function cpe(e){return lpe(this,e).has(e)}y9.exports=cpe});var E9=Oe((PAa,b9)=>{var spe=Sh();function vpe(e,n){var a=spe(this,e),t=a.size;return a.set(e,n),this.size+=a.size==t?0:1,this}b9.exports=vpe});var mG=Oe((xAa,I9)=>{var fpe=_9(),_pe=D9(),ppe=R9(),dpe=w9(),mpe=E9();function Fp(e){var n=-1,a=e==null?0:e.length;for(this.clear();++n{var hpe=bh(),Dpe=ab(),gpe=mG(),Rpe=200;function ype(e,n){var a=this.__data__;if(a instanceof hpe){var t=a.__data__;if(!Dpe||t.length{var wpe=bh(),bpe=D5(),Epe=R5(),Ipe=w5(),Tpe=E5(),Spe=S9();function Gp(e){var n=this.__data__=new wpe(e);this.size=n.size}Gp.prototype.clear=bpe;Gp.prototype.delete=Epe;Gp.prototype.get=Ipe;Gp.prototype.has=Tpe;Gp.prototype.set=Spe;C9.exports=Gp});var M9=Oe((OAa,G9)=>{var Cpe="__lodash_hash_undefined__";function Fpe(e){return this.__data__.set(e,Cpe),this}G9.exports=Fpe});var L9=Oe((UAa,A9)=>{function Gpe(e){return this.__data__.has(e)}A9.exports=Gpe});var x9=Oe((kAa,P9)=>{var Mpe=mG(),Ape=M9(),Lpe=L9();function tb(e){var n=-1,a=e==null?0:e.length;for(this.__data__=new Mpe;++n{function Ppe(e,n){for(var a=-1,t=e==null?0:e.length;++a{function xpe(e,n){return e.has(n)}O9.exports=xpe});var hG=Oe((qAa,k9)=>{var Npe=x9(),jpe=j9(),Ope=U9(),Upe=1,kpe=2;function Bpe(e,n,a,t,o,u){var i=a&Upe,l=e.length,s=n.length;if(l!=s&&!(i&&s>l))return!1;var R=u.get(e),d=u.get(n);if(R&&d)return R==n&&d==e;var y=-1,I=!0,b=a&kpe?new Npe:void 0;for(u.set(e,n),u.set(n,e);++y{var Hpe=Sc(),qpe=Hpe.Uint8Array;B9.exports=qpe});var J9=Oe((WAa,q9)=>{function Jpe(e){var n=-1,a=Array(e.size);return e.forEach(function(t,o){a[++n]=[o,t]}),a}q9.exports=Jpe});var $9=Oe(($Aa,W9)=>{function Wpe(e){var n=-1,a=Array(e.size);return e.forEach(function(t){a[++n]=t}),a}W9.exports=Wpe});var Y9=Oe((zAa,K9)=>{var z9=nb(),V9=H9(),$pe=sG(),zpe=hG(),Vpe=J9(),Qpe=$9(),Kpe=1,Ype=2,Xpe="[object Boolean]",Zpe="[object Date]",ede="[object Error]",nde="[object Map]",ade="[object Number]",tde="[object RegExp]",rde="[object Set]",ode="[object String]",ude="[object Symbol]",ide="[object ArrayBuffer]",lde="[object DataView]",Q9=z9?z9.prototype:void 0,DG=Q9?Q9.valueOf:void 0;function cde(e,n,a,t,o,u,i){switch(a){case lde:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case ide:return!(e.byteLength!=n.byteLength||!u(new V9(e),new V9(n)));case Xpe:case Zpe:case ade:return $pe(+e,+n);case ede:return e.name==n.name&&e.message==n.message;case tde:case ode:return e==n+"";case nde:var l=Vpe;case rde:var s=t&Kpe;if(l||(l=Qpe),e.size!=n.size&&!s)return!1;var R=i.get(e);if(R)return R==n;t|=Ype,i.set(e,n);var d=zpe(l(e),l(n),t,o,u,i);return i.delete(e),d;case ude:if(DG)return DG.call(e)==DG.call(n)}return!1}K9.exports=cde});var Z9=Oe((VAa,X9)=>{function sde(e,n){for(var a=-1,t=n.length,o=e.length;++a{var vde=Array.isArray;ek.exports=vde});var ak=Oe((KAa,nk)=>{var fde=Z9(),_de=rb();function pde(e,n,a){var t=n(e);return _de(e)?t:fde(t,a(e))}nk.exports=pde});var rk=Oe((YAa,tk)=>{function dde(e,n){for(var a=-1,t=e==null?0:e.length,o=0,u=[];++a{function mde(){return[]}ok.exports=mde});var ck=Oe((ZAa,lk)=>{var hde=rk(),Dde=uk(),gde=Object.prototype,Rde=gde.propertyIsEnumerable,ik=Object.getOwnPropertySymbols,yde=ik?function(e){return e==null?[]:(e=Object(e),hde(ik(e),function(n){return Rde.call(e,n)}))}:Dde;lk.exports=yde});var vk=Oe((eLa,sk)=>{function wde(e,n){for(var a=-1,t=Array(e);++a{function bde(e){return e!=null&&typeof e=="object"}fk.exports=bde});var pk=Oe((aLa,_k)=>{var Ede=Ih(),Ide=Ch(),Tde="[object Arguments]";function Sde(e){return Ide(e)&&Ede(e)==Tde}_k.exports=Sde});var Dk=Oe((tLa,hk)=>{var dk=pk(),Cde=Ch(),mk=Object.prototype,Fde=mk.hasOwnProperty,Gde=mk.propertyIsEnumerable,Mde=dk(function(){return arguments}())?dk:function(e){return Cde(e)&&Fde.call(e,"callee")&&!Gde.call(e,"callee")};hk.exports=Mde});var Rk=Oe((rLa,gk)=>{function Ade(){return!1}gk.exports=Ade});var gG=Oe((Fh,Mp)=>{var Lde=Sc(),Pde=Rk(),yk=typeof Fh=="object"&&Fh&&!Fh.nodeType&&Fh,wk=yk&&typeof Mp=="object"&&Mp&&!Mp.nodeType&&Mp,xde=wk&&wk.exports===yk,bk=xde?Lde.Buffer:void 0,Nde=bk?bk.isBuffer:void 0,jde=Nde||Pde;Mp.exports=jde});var Ik=Oe((oLa,Ek)=>{var Ode=9007199254740991,Ude=/^(?:0|[1-9]\d*)$/;function kde(e,n){var a=typeof e;return n=n==null?Ode:n,!!n&&(a=="number"||a!="symbol"&&Ude.test(e))&&e>-1&&e%1==0&&e{var Bde=9007199254740991;function Hde(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Bde}Tk.exports=Hde});var Ck=Oe((iLa,Sk)=>{var qde=Ih(),Jde=RG(),Wde=Ch(),$de="[object Arguments]",zde="[object Array]",Vde="[object Boolean]",Qde="[object Date]",Kde="[object Error]",Yde="[object Function]",Xde="[object Map]",Zde="[object Number]",eme="[object Object]",nme="[object RegExp]",ame="[object Set]",tme="[object String]",rme="[object WeakMap]",ome="[object ArrayBuffer]",ume="[object DataView]",ime="[object Float32Array]",lme="[object Float64Array]",cme="[object Int8Array]",sme="[object Int16Array]",vme="[object Int32Array]",fme="[object Uint8Array]",_me="[object Uint8ClampedArray]",pme="[object Uint16Array]",dme="[object Uint32Array]",ur={};ur[ime]=ur[lme]=ur[cme]=ur[sme]=ur[vme]=ur[fme]=ur[_me]=ur[pme]=ur[dme]=!0;ur[$de]=ur[zde]=ur[ome]=ur[Vde]=ur[ume]=ur[Qde]=ur[Kde]=ur[Yde]=ur[Xde]=ur[Zde]=ur[eme]=ur[nme]=ur[ame]=ur[tme]=ur[rme]=!1;function mme(e){return Wde(e)&&Jde(e.length)&&!!ur[qde(e)]}Sk.exports=mme});var Gk=Oe((lLa,Fk)=>{function hme(e){return function(n){return e(n)}}Fk.exports=hme});var Ak=Oe((Mh,Ap)=>{var Dme=vG(),Mk=typeof Mh=="object"&&Mh&&!Mh.nodeType&&Mh,Gh=Mk&&typeof Ap=="object"&&Ap&&!Ap.nodeType&&Ap,gme=Gh&&Gh.exports===Mk,yG=gme&&Dme.process,Rme=function(){try{var e=Gh&&Gh.require&&Gh.require("util").types;return e||yG&&yG.binding&&yG.binding("util")}catch{}}();Ap.exports=Rme});var wG=Oe((cLa,xk)=>{var yme=Ck(),wme=Gk(),Lk=Ak(),Pk=Lk&&Lk.isTypedArray,bme=Pk?wme(Pk):yme;xk.exports=bme});var jk=Oe((sLa,Nk)=>{var Eme=vk(),Ime=Dk(),Tme=rb(),Sme=gG(),Cme=Ik(),Fme=wG(),Gme=Object.prototype,Mme=Gme.hasOwnProperty;function Ame(e,n){var a=Tme(e),t=!a&&Ime(e),o=!a&&!t&&Sme(e),u=!a&&!t&&!o&&Fme(e),i=a||t||o||u,l=i?Eme(e.length,String):[],s=l.length;for(var R in e)(n||Mme.call(e,R))&&!(i&&(R=="length"||o&&(R=="offset"||R=="parent")||u&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||Cme(R,s)))&&l.push(R);return l}Nk.exports=Ame});var Uk=Oe((vLa,Ok)=>{var Lme=Object.prototype;function Pme(e){var n=e&&e.constructor,a=typeof n=="function"&&n.prototype||Lme;return e===a}Ok.exports=Pme});var Bk=Oe((fLa,kk)=>{function xme(e,n){return function(a){return e(n(a))}}kk.exports=xme});var qk=Oe((_La,Hk)=>{var Nme=Bk(),jme=Nme(Object.keys,Object);Hk.exports=jme});var Wk=Oe((pLa,Jk)=>{var Ome=Uk(),Ume=qk(),kme=Object.prototype,Bme=kme.hasOwnProperty;function Hme(e){if(!Ome(e))return Ume(e);var n=[];for(var a in Object(e))Bme.call(e,a)&&a!="constructor"&&n.push(a);return n}Jk.exports=Hme});var zk=Oe((dLa,$k)=>{var qme=_G(),Jme=RG();function Wme(e){return e!=null&&Jme(e.length)&&!qme(e)}$k.exports=Wme});var Qk=Oe((mLa,Vk)=>{var $me=jk(),zme=Wk(),Vme=zk();function Qme(e){return Vme(e)?$me(e):zme(e)}Vk.exports=Qme});var Yk=Oe((hLa,Kk)=>{var Kme=ak(),Yme=ck(),Xme=Qk();function Zme(e){return Kme(e,Xme,Yme)}Kk.exports=Zme});var eB=Oe((DLa,Zk)=>{var Xk=Yk(),ehe=1,nhe=Object.prototype,ahe=nhe.hasOwnProperty;function the(e,n,a,t,o,u){var i=a&ehe,l=Xk(e),s=l.length,R=Xk(n),d=R.length;if(s!=d&&!i)return!1;for(var y=s;y--;){var I=l[y];if(!(i?I in n:ahe.call(n,I)))return!1}var b=u.get(e),S=u.get(n);if(b&&S)return b==n&&S==e;var L=!0;u.set(e,n),u.set(n,e);for(var O=i;++y{var rhe=w_(),ohe=Sc(),uhe=rhe(ohe,"DataView");nB.exports=uhe});var rB=Oe((RLa,tB)=>{var ihe=w_(),lhe=Sc(),che=ihe(lhe,"Promise");tB.exports=che});var uB=Oe((yLa,oB)=>{var she=w_(),vhe=Sc(),fhe=she(vhe,"Set");oB.exports=fhe});var lB=Oe((wLa,iB)=>{var _he=w_(),phe=Sc(),dhe=_he(phe,"WeakMap");iB.exports=dhe});var mB=Oe((bLa,dB)=>{var bG=aB(),EG=ab(),IG=rB(),TG=uB(),SG=lB(),cB=Ih(),Lp=dG(),sB="[object Map]",mhe="[object Object]",vB="[object Promise]",fB="[object Set]",_B="[object WeakMap]",pB="[object DataView]",hhe=Lp(bG),Dhe=Lp(EG),ghe=Lp(IG),Rhe=Lp(TG),yhe=Lp(SG),b_=cB;(bG&&b_(new bG(new ArrayBuffer(1)))!=pB||EG&&b_(new EG)!=sB||IG&&b_(IG.resolve())!=vB||TG&&b_(new TG)!=fB||SG&&b_(new SG)!=_B)&&(b_=function(e){var n=cB(e),a=n==mhe?e.constructor:void 0,t=a?Lp(a):"";if(t)switch(t){case hhe:return pB;case Dhe:return sB;case ghe:return vB;case Rhe:return fB;case yhe:return _B}return n});dB.exports=b_});var EB=Oe((ELa,bB)=>{var CG=F9(),whe=hG(),bhe=Y9(),Ehe=eB(),hB=mB(),DB=rb(),gB=gG(),Ihe=wG(),The=1,RB="[object Arguments]",yB="[object Array]",ob="[object Object]",She=Object.prototype,wB=She.hasOwnProperty;function Che(e,n,a,t,o,u){var i=DB(e),l=DB(n),s=i?yB:hB(e),R=l?yB:hB(n);s=s==RB?ob:s,R=R==RB?ob:R;var d=s==ob,y=R==ob,I=s==R;if(I&&gB(e)){if(!gB(n))return!1;i=!0,d=!1}if(I&&!d)return u||(u=new CG),i||Ihe(e)?whe(e,n,a,t,o,u):bhe(e,n,s,a,t,o,u);if(!(a&The)){var b=d&&wB.call(e,"__wrapped__"),S=y&&wB.call(n,"__wrapped__");if(b||S){var L=b?e.value():e,O=S?n.value():n;return u||(u=new CG),o(L,O,a,t,u)}}return I?(u||(u=new CG),Ehe(e,n,a,t,o,u)):!1}bB.exports=Che});var CB=Oe((ILa,SB)=>{var Fhe=EB(),IB=Ch();function TB(e,n,a,t,o){return e===n?!0:e==null||n==null||!IB(e)&&!IB(n)?e!==e&&n!==n:Fhe(e,n,a,t,TB,o)}SB.exports=TB});var GB=Oe((TLa,FB)=>{var Ghe=CB();function Mhe(e,n){return Ghe(e,n)}FB.exports=Mhe});var vH=Oe((gPa,oDe)=>{oDe.exports=`.rc-tooltip.rc-tooltip-zoom-appear, .rc-tooltip.rc-tooltip-zoom-enter { opacity: 0; } .rc-tooltip.rc-tooltip-zoom-enter, .rc-tooltip.rc-tooltip-zoom-leave { display: block; } .rc-tooltip-zoom-enter, .rc-tooltip-zoom-appear { opacity: 0; animation-duration: 0.3s; animation-fill-mode: both; animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28); animation-play-state: paused; } .rc-tooltip-zoom-leave { animation-duration: 0.3s; animation-fill-mode: both; animation-timing-function: cubic-bezier(0.6, -0.3, 0.74, 0.05); animation-play-state: paused; } .rc-tooltip-zoom-enter.rc-tooltip-zoom-enter-active, .rc-tooltip-zoom-appear.rc-tooltip-zoom-appear-active { animation-name: rcToolTipZoomIn; animation-play-state: running; } .rc-tooltip-zoom-leave.rc-tooltip-zoom-leave-active { animation-name: rcToolTipZoomOut; animation-play-state: running; } @keyframes rcToolTipZoomIn { 0% { opacity: 0; transform-origin: 50% 50%; transform: scale(0, 0); } 100% { opacity: 1; transform-origin: 50% 50%; transform: scale(1, 1); } } @keyframes rcToolTipZoomOut { 0% { opacity: 1; transform-origin: 50% 50%; transform: scale(1, 1); } 100% { opacity: 0; transform-origin: 50% 50%; transform: scale(0, 0); } } .rc-tooltip { position: absolute; z-index: 1070; display: block; visibility: visible; line-height: 1.5; font-size: 12px; background-color: rgba(0, 0, 0, 0.05); padding: 1px; opacity: 0.9; } .rc-tooltip-hidden { display: none; } .rc-tooltip-inner { padding: 8px 10px; color: #333333; text-align: left; text-decoration: none; background-color: #ffffff; border-radius: 3px; min-height: 34px; border: 1px solid #b1b1b1; } .rc-tooltip-arrow, .rc-tooltip-arrow-inner { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .rc-tooltip-placement-top .rc-tooltip-arrow, .rc-tooltip-placement-topLeft .rc-tooltip-arrow, .rc-tooltip-placement-topRight .rc-tooltip-arrow { bottom: -5px; margin-left: -6px; border-width: 6px 6px 0; border-top-color: #b1b1b1; } .rc-tooltip-placement-top .rc-tooltip-arrow-inner, .rc-tooltip-placement-topLeft .rc-tooltip-arrow-inner, .rc-tooltip-placement-topRight .rc-tooltip-arrow-inner { bottom: 1px; margin-left: -6px; border-width: 6px 6px 0; border-top-color: #ffffff; } .rc-tooltip-placement-top .rc-tooltip-arrow { left: 50%; } .rc-tooltip-placement-topLeft .rc-tooltip-arrow { left: 15%; } .rc-tooltip-placement-topRight .rc-tooltip-arrow { right: 15%; } .rc-tooltip-placement-right .rc-tooltip-arrow, .rc-tooltip-placement-rightTop .rc-tooltip-arrow, .rc-tooltip-placement-rightBottom .rc-tooltip-arrow { left: -5px; margin-top: -6px; border-width: 6px 6px 6px 0; border-right-color: #b1b1b1; } .rc-tooltip-placement-right .rc-tooltip-arrow-inner, .rc-tooltip-placement-rightTop .rc-tooltip-arrow-inner, .rc-tooltip-placement-rightBottom .rc-tooltip-arrow-inner { left: 1px; margin-top: -6px; border-width: 6px 6px 6px 0; border-right-color: #ffffff; } .rc-tooltip-placement-right .rc-tooltip-arrow { top: 50%; } .rc-tooltip-placement-rightTop .rc-tooltip-arrow { top: 15%; margin-top: 0; } .rc-tooltip-placement-rightBottom .rc-tooltip-arrow { bottom: 15%; } .rc-tooltip-placement-left .rc-tooltip-arrow, .rc-tooltip-placement-leftTop .rc-tooltip-arrow, .rc-tooltip-placement-leftBottom .rc-tooltip-arrow { right: -5px; margin-top: -6px; border-width: 6px 0 6px 6px; border-left-color: #b1b1b1; } .rc-tooltip-placement-left .rc-tooltip-arrow-inner, .rc-tooltip-placement-leftTop .rc-tooltip-arrow-inner, .rc-tooltip-placement-leftBottom .rc-tooltip-arrow-inner { right: 1px; margin-top: -6px; border-width: 6px 0 6px 6px; border-left-color: #ffffff; } .rc-tooltip-placement-left .rc-tooltip-arrow { top: 50%; } .rc-tooltip-placement-leftTop .rc-tooltip-arrow { top: 15%; margin-top: 0; } .rc-tooltip-placement-leftBottom .rc-tooltip-arrow { bottom: 15%; } .rc-tooltip-placement-bottom .rc-tooltip-arrow, .rc-tooltip-placement-bottomLeft .rc-tooltip-arrow, .rc-tooltip-placement-bottomRight .rc-tooltip-arrow { top: -5px; margin-left: -6px; border-width: 0 6px 6px; border-bottom-color: #b1b1b1; } .rc-tooltip-placement-bottom .rc-tooltip-arrow-inner, .rc-tooltip-placement-bottomLeft .rc-tooltip-arrow-inner, .rc-tooltip-placement-bottomRight .rc-tooltip-arrow-inner { top: 1px; margin-left: -6px; border-width: 0 6px 6px; border-bottom-color: #ffffff; } .rc-tooltip-placement-bottom .rc-tooltip-arrow { left: 50%; } .rc-tooltip-placement-bottomLeft .rc-tooltip-arrow { left: 15%; } .rc-tooltip-placement-bottomRight .rc-tooltip-arrow { right: 15%; } `});var zz=Oe((RD,EA)=>{typeof window!="undefined"&&function(n,a){typeof RD=="object"&&typeof EA=="object"?EA.exports=a():typeof define=="function"&&define.amd?define([],a):typeof RD=="object"?RD.Hls=a():n.Hls=a()}(RD,function(){return function(e){var n={};function a(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=e,a.c=n,a.d=function(t,o,u){a.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:u})},a.r=function(t){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,o){if(o&1&&(t=a(t)),o&8||o&4&&typeof t=="object"&&t&&t.__esModule)return t;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:t}),o&2&&typeof t!="string")for(var i in t)a.d(u,i,function(l){return t[l]}.bind(null,i));return u},a.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(o,"a",o),o},a.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},a.p="/dist/",a(a.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(e,n,a){"use strict";var t=Object.prototype.hasOwnProperty,o="~";function u(){}Object.create&&(u.prototype=Object.create(null),new u().__proto__||(o=!1));function i(d,y,I){this.fn=d,this.context=y,this.once=I||!1}function l(d,y,I,b,S){if(typeof I!="function")throw new TypeError("The listener must be a function");var L=new i(I,b||d,S),O=o?o+y:y;return d._events[O]?d._events[O].fn?d._events[O]=[d._events[O],L]:d._events[O].push(L):(d._events[O]=L,d._eventsCount++),d}function s(d,y){--d._eventsCount==0?d._events=new u:delete d._events[y]}function R(){this._events=new u,this._eventsCount=0}R.prototype.eventNames=function(){var y=[],I,b;if(this._eventsCount===0)return y;for(b in I=this._events)t.call(I,b)&&y.push(o?b.slice(1):b);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(I)):y},R.prototype.listeners=function(y){var I=o?o+y:y,b=this._events[I];if(!b)return[];if(b.fn)return[b.fn];for(var S=0,L=b.length,O=new Array(L);S0},!1)}function d(y,I){for(var b={main:[I]},S={main:[]},L={main:{}};R(b);)for(var O=Object.keys(b),$=0;$>>8^qn&255^99,X[Cn]=qn,oe[qn]=Cn;var Kn=en[Cn],Jn=en[Kn],ft=en[Jn],Ue=en[qn]*257^qn*16843008;ve[Cn]=Ue<<24|Ue>>>8,we[Cn]=Ue<<16|Ue>>>16,an[Cn]=Ue<<8|Ue>>>24,cn[Cn]=Ue,Ue=ft*16843009^Jn*65537^Kn*257^Cn*16843008,le[qn]=Ue<<24|Ue>>>8,je[qn]=Ue<<16|Ue>>>16,Ce[qn]=Ue<<8|Ue>>>24,He[qn]=Ue,Cn?(Cn=Kn^en[en[en[ft^Kn]]],ra^=en[en[ra]]):Cn=ra=1}},$.expandKey=function(X){for(var oe=this.uint8ArrayToUint32Array_(X),te=!0,ve=0;ve>>6)+1,N=(K[j+2]&60)>>>2,N>Ie.length-1){q.trigger(t.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+N});return}return V=(K[j+2]&1)<<2,V|=(K[j+3]&192)>>>6,l.logger.log("manifest codec:"+E+",ADTS data:type:"+P+",sampleingIndex:"+N+"["+Ie[N]+"Hz],channelConfig:"+V),/firefox/i.test(re)?N>=6?(P=5,ue=new Array(4),W=N-3):(P=2,ue=new Array(2),W=N):re.indexOf("android")!==-1?(P=2,ue=new Array(2),W=N):(P=5,ue=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&N>=6?W=N-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(N>=6&&V===1||/vivaldi/i.test(re))||!E&&V===1)&&(P=2,ue=new Array(2)),W=N)),ue[0]=P<<3,ue[0]|=(N&14)>>1,ue[1]|=(N&1)<<7,ue[1]|=V<<3,P===5&&(ue[1]|=(W&14)>>1,ue[2]=(W&1)<<7,ue[2]|=2<<2,ue[3]=0),{config:ue,samplerate:Ie[N],channelCount:V,codec:"mp4a.40."+P,manifestCodec:he}}function d(q,K){return q[K]===255&&(q[K+1]&246)==240}function y(q,K){return q[K+1]&1?7:9}function I(q,K){return(q[K+3]&3)<<11|q[K+4]<<3|(q[K+5]&224)>>>5}function b(q,K){return!!(K+10&&K+N+W<=ue)return V=j+E*P,{headerLength:N,frameLength:W,stamp:V}}function z(q,K,j,E,P){var N=O(q.samplerate),W=$(K,j,E,P,N);if(W){var V=W.stamp,ue=W.headerLength,re=W.frameLength,he={unit:K.subarray(j+ue,j+ue+re),pts:V,dts:V};return q.samples.push(he),{sample:he,length:re+ue}}}var X=a("./src/demux/id3.js"),oe=function(){function q(j,E,P){this.observer=j,this.config=P,this.remuxer=E}var K=q.prototype;return K.resetInitSegment=function(E,P,N,W){this._audioTrack={container:"audio/adts",type:"audio",id:0,sequenceNumber:0,isAAC:!0,samples:[],len:0,manifestCodec:P,duration:W,inputTimeScale:9e4}},K.resetTimeStamp=function(){},q.probe=function(E){if(!E)return!1;for(var P=X.default.getID3Data(E,0)||[],N=P.length,W=E.length;Nj.length)){var W=this.parseHeader(j,E);if(W&&E+W.frameLength<=j.length){var V=W.samplesPerFrame*9e4/W.sampleRate,ue=P+N*V,re={unit:j.subarray(E,E+W.frameLength),pts:ue,dts:ue};return K.config=[],K.channelCount=W.channelCount,K.samplerate=W.sampleRate,K.samples.push(re),{sample:re,length:W.frameLength}}}},parseHeader:function(K,j){var E=K[j+1]>>3&3,P=K[j+1]>>1&3,N=K[j+2]>>4&15,W=K[j+2]>>2&3,V=K[j+2]>>1&1;if(E!==1&&N!==0&&N!==15&&W!==3){var ue=E===3?3-P:P===3?3:4,re=we.BitratesMap[ue*14+N-1]*1e3,he=E===3?0:E===2?1:2,Ie=we.SamplingRateMap[he*3+W],Fe=K[j+3]>>6==3?1:2,Ge=we.SamplesCoefficients[E][P],ln=we.BytesInSlot[P],mn=Ge*8*ln,xe=parseInt(Ge*re/Ie+V,10)*ln;return{sampleRate:Ie,channelCount:Fe,frameLength:xe,samplesPerFrame:mn}}},isHeaderPattern:function(K,j){return K[j]===255&&(K[j+1]&224)==224&&(K[j+1]&6)!=0},isHeader:function(K,j){return!!(j+1E?(this.word<<=E,this.bitsAvailable-=E):(E-=this.bitsAvailable,P=E>>3,E-=P>>3,this.bytesAvailable-=P,this.loadWord(),this.word<<=E,this.bitsAvailable-=E)},K.readBits=function(E){var P=Math.min(this.bitsAvailable,E),N=this.word>>>32-P;return E>32&&l.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=P,this.bitsAvailable>0?this.word<<=P:this.bytesAvailable>0&&this.loadWord(),P=E-P,P>0&&this.bitsAvailable?N<>>E)!=0)return this.word<<=E,this.bitsAvailable-=E,E;return this.loadWord(),E+this.skipLZ()},K.skipUEG=function(){this.skipBits(1+this.skipLZ())},K.skipEG=function(){this.skipBits(1+this.skipLZ())},K.readUEG=function(){var E=this.skipLZ();return this.readBits(E+1)-1},K.readEG=function(){var E=this.readUEG();return 1&E?1+E>>>1:-1*(E>>>1)},K.readBoolean=function(){return this.readBits(1)===1},K.readUByte=function(){return this.readBits(8)},K.readUShort=function(){return this.readBits(16)},K.readUInt=function(){return this.readBits(32)},K.skipScalingList=function(E){var P=8,N=8,W,V;for(W=0;W=E.length){N();return}if(!(E[P].unit.length<32)){var W=this.decrypter.isSync();if(this.decryptAacSample(E,P,N,W),!W)return}}},K.getAvcEncryptedData=function(E){for(var P=Math.floor((E.length-48)/160)*16+16,N=new Int8Array(P),W=0,V=32;V<=E.length-16;V+=160,W+=16)N.set(E.subarray(V,V+16),W);return N},K.getAvcDecryptedUnit=function(E,P){P=new Uint8Array(P);for(var N=0,W=32;W<=E.length-16;W+=160,N+=16)E.set(P.subarray(N,N+16),W);return E},K.decryptAvcSample=function(E,P,N,W,V,ue){var re=this.discardEPB(V.data),he=this.getAvcEncryptedData(re),Ie=this;this.decryptBuffer(he.buffer,function(Fe){V.data=Ie.getAvcDecryptedUnit(re,Fe),ue||Ie.decryptAvcSamples(E,P,N+1,W)})},K.decryptAvcSamples=function(E,P,N,W){for(;;P++,N=0){if(P>=E.length){W();return}for(var V=E[P].units;!(N>=V.length);N++){var ue=V[N];if(!(ue.length<=48||ue.type!==1&&ue.type!==5)){var re=this.decrypter.isSync();if(this.decryptAvcSample(E,P,N,W,ue,re),!re)return}}}},q}(),je=le,Ce={video:1,audio:2,id3:3,text:4},He=function(){function q(j,E,P,N){this.observer=j,this.config=P,this.typeSupported=N,this.remuxer=E,this.sampleAes=null}var K=q.prototype;return K.setDecryptData=function(E){E!=null&&E.key!=null&&E.method==="SAMPLE-AES"?this.sampleAes=new je(this.observer,this.config,E,this.discardEPB):this.sampleAes=null},q.probe=function(E){var P=q._syncOffset(E);return P<0?!1:(P&&l.logger.warn("MPEG2-TS detected but first sync word found @ offset "+P+", junk ahead ?"),!0)},q._syncOffset=function(E){for(var P=Math.min(1e3,E.length-3*188),N=0;N>4,Ie>1){if(Fe=V+5+E[V+4],Fe===V+188)continue}else Fe=V+4;switch(he){case pa:re&&(pt&&(Ge=ir(pt))&&Sr(Ge,!1),pt={data:[],size:0}),pt&&(pt.data.push(E.subarray(Fe,V+188)),pt.size+=V+188-Fe);break;case Za:re&&(Pa&&(Ge=ir(Pa))&&(wn.isAAC?ro(Ge):mr(Ge)),Pa={data:[],size:0}),Pa&&(Pa.data.push(E.subarray(Fe,V+188)),Pa.size+=V+188-Fe);break;case Lt:re&&(Ot&&(Ge=ir(Ot))&&jo(Ge),Ot={data:[],size:0}),Ot&&(Ot.data.push(E.subarray(Fe,V+188)),Ot.size+=V+188-Fe);break;case 0:re&&(Fe+=E[Fe]+1),ya=this._pmtId=Ha(E,Fe);break;case ya:re&&(Fe+=E[Fe]+1);var nr=It(E,Fe,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,this.sampleAes!=null);pa=nr.avc,pa>0&&(xe.pid=pa),Za=nr.audio,Za>0&&(wn.pid=Za,wn.isAAC=nr.isAAC),Lt=nr.id3,Lt>0&&(Qn.pid=Lt),ln&&!mn&&(l.logger.log("reparse from beginning"),ln=!1,V=Cr-188),mn=this.pmtParsed=!0;break;case 17:case 8191:break;default:ln=!0;break}}else this.observer.trigger(t.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});pt&&(Ge=ir(pt))?(Sr(Ge,!0),xe.pesData=null):xe.pesData=pt,Pa&&(Ge=ir(Pa))?(wn.isAAC?ro(Ge):mr(Ge),wn.pesData=null):(Pa&&Pa.size&&l.logger.log("last AAC PES packet truncated,might overlap between fragments"),wn.pesData=Pa),Ot&&(Ge=ir(Ot))?(jo(Ge),Qn.pesData=null):Qn.pesData=Ot,this.sampleAes==null?this.remuxer.remux(wn,xe,Qn,this._txtTrack,P,N,W):this.decryptAndRemux(wn,xe,Qn,this._txtTrack,P,N,W)},K.decryptAndRemux=function(E,P,N,W,V,ue,re){if(E.samples&&E.isAAC){var he=this;this.sampleAes.decryptAacSamples(E.samples,0,function(){he.decryptAndRemuxAvc(E,P,N,W,V,ue,re)})}else this.decryptAndRemuxAvc(E,P,N,W,V,ue,re)},K.decryptAndRemuxAvc=function(E,P,N,W,V,ue,re){if(P.samples){var he=this;this.sampleAes.decryptAvcSamples(P.samples,0,0,function(){he.remuxer.remux(E,P,N,W,V,ue,re)})}else this.remuxer.remux(E,P,N,W,V,ue,re)},K.destroy=function(){this._initPTS=this._initDTS=void 0,this._duration=0},K._parsePAT=function(E,P){return(E[P+10]&31)<<8|E[P+11]},K._parsePMT=function(E,P,N,W){var V,ue,re,he,Ie={audio:-1,avc:-1,id3:-1,isAAC:!0};for(V=(E[P+1]&15)<<8|E[P+2],ue=P+3+V-4,re=(E[P+10]&15)<<8|E[P+11],P+=12+re;P1;){var mn=new Uint8Array(ln[0].length+ln[1].length);mn.set(ln[0]),mn.set(ln[1],ln[0].length),ln[0]=mn,ln.splice(1,1)}if(N=ln[0],V=(N[0]<<16)+(N[1]<<8)+N[2],V===1){if(ue=(N[4]<<8)+N[5],ue&&ue>E.size-6||(W=N[7],W&192&&(Ie=(N[9]&14)*536870912+(N[10]&255)*4194304+(N[11]&254)*16384+(N[12]&255)*128+(N[13]&254)/2,Ie>4294967295&&(Ie-=8589934592),W&64?(Fe=(N[14]&14)*536870912+(N[15]&255)*4194304+(N[16]&254)*16384+(N[17]&255)*128+(N[18]&254)/2,Fe>4294967295&&(Fe-=8589934592),Ie-Fe>60*9e4&&(l.logger.warn(Math.round((Ie-Fe)/9e4)+"s delta between PTS and DTS, align them"),Ie=Fe)):Fe=Ie),re=N[8],Ge=re+9,E.size<=Ge))return null;E.size-=Ge,he=new Uint8Array(E.size);for(var xe=0,wn=ln.length;xeQn){Ge-=Qn;continue}else N=N.subarray(Ge),Qn-=Ge,Ge=0;he.set(N,P),P+=Qn}return ue&&(ue-=re+3),{data:he,pts:Ie,dts:Fe,len:ue}}else return null},K.pushAccesUnit=function(E,P){if(E.units.length&&E.frame){var N=P.samples,W=N.length;if(isNaN(E.pts))if(W){var V=N[W-1];E.pts=V.pts,E.dts=V.dts}else{P.dropped++;return}!this.config.forceKeyFrameOnDiscontinuity||E.key===!0||P.sps&&(W||this.contiguous)?(E.id=W,N.push(E)):P.dropped++}E.debug.length&&l.logger.log(E.pts+"/"+E.dts+":"+E.debug)},K._parseAVCPES=function(E,P){var N=this,W=this._avcTrack,V=this._parseAVCNALu(E.data),ue=!1,re,he=this.avcSample,Ie,Fe=!1,Ge,ln=this.pushAccesUnit.bind(this),mn=function(wn,Qn,pa,Za){return{key:wn,pts:Qn,dts:pa,units:[],debug:Za}};E.data=null,he&&V.length&&!W.audFound&&(ln(he,W),he=this.avcSample=mn(!1,E.pts,E.dts,"")),V.forEach(function(xe){switch(xe.type){case 1:Ie=!0,he||(he=N.avcSample=mn(!0,E.pts,E.dts,"")),ue&&(he.debug+="NDR "),he.frame=!0;var wn=xe.data;if(Fe&&wn.length>4){var Qn=new ce(wn).readSliceType();(Qn===2||Qn===4||Qn===7||Qn===9)&&(he.key=!0)}break;case 5:Ie=!0,he||(he=N.avcSample=mn(!0,E.pts,E.dts,"")),ue&&(he.debug+="IDR "),he.key=!0,he.frame=!0;break;case 6:Ie=!0,ue&&he&&(he.debug+="SEI "),re=new ce(N.discardEPB(xe.data)),re.readUByte();for(var pa=0,Za=0,Lt=!1,ya=0;!Lt&&re.bytesAvailable>1;){pa=0;do ya=re.readUByte(),pa+=ya;while(ya===255);Za=0;do ya=re.readUByte(),Za+=ya;while(ya===255);if(pa===4&&re.bytesAvailable!==0){Lt=!0;var pt=re.readUByte();if(pt===181){var Pa=re.readUShort();if(Pa===49){var Ot=re.readUInt();if(Ot===1195456820){var Ha=re.readUByte();if(Ha===3){var It=re.readUByte(),ir=re.readUByte(),Sr=31&It,ro=[It,ir];for(Ge=0;Ge16){var mr=[];for(Ge=0;Ge<16;Ge++)mr.push(re.readUByte().toString(16)),(Ge===3||Ge===5||Ge===7||Ge===9)&&mr.push("-");var jo=Za-16,Cr=new Uint8Array(jo);for(Ge=0;Ge0){if(P.pts>=E[N-1].pts)E.push(P);else for(var W=N-1;W>=0;W--)if(P.pts=0)Fe={data:E.subarray(ln,P-re-1),type:mn},Ie.push(Fe);else{var xe=this._getLastNalUnit();if(xe&&(he&&P<=4-he&&xe.state&&(xe.data=xe.data.subarray(0,xe.data.byteLength-he)),V=P-re-1,V>0)){var wn=new Uint8Array(xe.data.byteLength+V);wn.set(xe.data,0),wn.set(E.subarray(0,V),xe.data.byteLength),xe.data=wn}}P=0&&re>=0&&(Fe={data:E.subarray(ln,N),type:mn,state:re},Ie.push(Fe)),Ie.length===0){var Qn=this._getLastNalUnit();if(Qn){var pa=new Uint8Array(Qn.data.byteLength+E.byteLength);pa.set(Qn.data,0),pa.set(E,Qn.data.byteLength),Qn.data=pa}}return ue.naluState=re,Ie},K.discardEPB=function(E){for(var P=E.byteLength,N=[],W=1,V,ue;W1&&(l.logger.log("AAC: align PTS for overlapping frames by "+Math.round((Qn-W)/90)),W=Qn)}for(;Fe>24&255,V[1]=P>>16&255,V[2]=P>>8&255,V[3]=P&255,V.set(j,4),N=0,P=8;N>24&255,j>>16&255,j>>8&255,j&255,P>>24,P>>16&255,P>>8&255,P&255,N>>24,N>>16&255,N>>8&255,N&255,85,196,0,0]))},q.mdia=function(j){return q.box(q.types.mdia,q.mdhd(j.timescale,j.duration),q.hdlr(j.type),q.minf(j))},q.mfhd=function(j){return q.box(q.types.mfhd,new Uint8Array([0,0,0,0,j>>24,j>>16&255,j>>8&255,j&255]))},q.minf=function(j){return j.type==="audio"?q.box(q.types.minf,q.box(q.types.smhd,q.SMHD),q.DINF,q.stbl(j)):q.box(q.types.minf,q.box(q.types.vmhd,q.VMHD),q.DINF,q.stbl(j))},q.moof=function(j,E,P){return q.box(q.types.moof,q.mfhd(j),q.traf(P,E))},q.moov=function(j){for(var E=j.length,P=[];E--;)P[E]=q.trak(j[E]);return q.box.apply(null,[q.types.moov,q.mvhd(j[0].timescale,j[0].duration)].concat(P).concat(q.mvex(j)))},q.mvex=function(j){for(var E=j.length,P=[];E--;)P[E]=q.trex(j[E]);return q.box.apply(null,[q.types.mvex].concat(P))},q.mvhd=function(j,E){E*=j;var P=Math.floor(E/(Kn+1)),N=Math.floor(E%(Kn+1)),W=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,j>>24&255,j>>16&255,j>>8&255,j&255,P>>24,P>>16&255,P>>8&255,P&255,N>>24,N>>16&255,N>>8&255,N&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return q.box(q.types.mvhd,W)},q.sdtp=function(j){var E=j.samples||[],P=new Uint8Array(4+E.length),N,W;for(W=0;W>>8&255),E.push(V&255),E=E.concat(Array.prototype.slice.call(W));for(N=0;N>>8&255),P.push(V&255),P=P.concat(Array.prototype.slice.call(W));var ue=q.box(q.types.avcC,new Uint8Array([1,E[3],E[4],E[5],252|3,224|j.sps.length].concat(E).concat([j.pps.length]).concat(P))),re=j.width,he=j.height,Ie=j.pixelRatio[0],Fe=j.pixelRatio[1];return q.box(q.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,re>>8&255,re&255,he>>8&255,he&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),ue,q.box(q.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),q.box(q.types.pasp,new Uint8Array([Ie>>24,Ie>>16&255,Ie>>8&255,Ie&255,Fe>>24,Fe>>16&255,Fe>>8&255,Fe&255])))},q.esds=function(j){var E=j.config.length;return new Uint8Array([0,0,0,0,3,23+E,0,1,0,4,15+E,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([E]).concat(j.config).concat([6,1,2]))},q.mp4a=function(j){var E=j.samplerate;return q.box(q.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,j.channelCount,0,16,0,0,0,0,E>>8&255,E&255,0,0]),q.box(q.types.esds,q.esds(j)))},q.mp3=function(j){var E=j.samplerate;return q.box(q.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,j.channelCount,0,16,0,0,0,0,E>>8&255,E&255,0,0]))},q.stsd=function(j){return j.type==="audio"?!j.isAAC&&j.codec==="mp3"?q.box(q.types.stsd,q.STSD,q.mp3(j)):q.box(q.types.stsd,q.STSD,q.mp4a(j)):q.box(q.types.stsd,q.STSD,q.avc1(j))},q.tkhd=function(j){var E=j.id,P=j.duration*j.timescale,N=j.width,W=j.height,V=Math.floor(P/(Kn+1)),ue=Math.floor(P%(Kn+1));return q.box(q.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,E>>24&255,E>>16&255,E>>8&255,E&255,0,0,0,0,V>>24,V>>16&255,V>>8&255,V&255,ue>>24,ue>>16&255,ue>>8&255,ue&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,N>>8&255,N&255,0,0,W>>8&255,W&255,0,0]))},q.traf=function(j,E){var P=q.sdtp(j),N=j.id,W=Math.floor(E/(Kn+1)),V=Math.floor(E%(Kn+1));return q.box(q.types.traf,q.box(q.types.tfhd,new Uint8Array([0,0,0,0,N>>24,N>>16&255,N>>8&255,N&255])),q.box(q.types.tfdt,new Uint8Array([1,0,0,0,W>>24,W>>16&255,W>>8&255,W&255,V>>24,V>>16&255,V>>8&255,V&255])),q.trun(j,P.length+16+20+8+16+8+8),P)},q.trak=function(j){return j.duration=j.duration||4294967295,q.box(q.types.trak,q.tkhd(j),q.mdia(j))},q.trex=function(j){var E=j.id;return q.box(q.types.trex,new Uint8Array([0,0,0,0,E>>24,E>>16&255,E>>8&255,E&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},q.trun=function(j,E){var P=j.samples||[],N=P.length,W=12+16*N,V=new Uint8Array(W),ue,re,he,Ie,Fe,Ge;for(E+=8+W,V.set([0,0,15,1,N>>>24&255,N>>>16&255,N>>>8&255,N&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255],0),ue=0;ue>>24&255,he>>>16&255,he>>>8&255,he&255,Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255,Fe.isLeading<<2|Fe.dependsOn,Fe.isDependedOn<<6|Fe.hasRedundancy<<4|Fe.paddingValue<<1|Fe.isNonSync,Fe.degradPrio&240<<8,Fe.degradPrio&15,Ge>>>24&255,Ge>>>16&255,Ge>>>8&255,Ge&255],12+16*ue);return q.box(q.types.trun,V)},q.initSegment=function(j){q.types||q.init();var E=q.moov(j),P;return P=new Uint8Array(q.FTYP.byteLength+E.byteLength),P.set(q.FTYP),P.set(E,q.FTYP.byteLength),P},q}(),ft=Jn,Ue=9e4;function ia(q,K,j,E){return j===void 0&&(j=1),E===void 0&&(E=!1),Ta(q,K,1/j)}function Ta(q,K,j,E){j===void 0&&(j=1),E===void 0&&(E=!1);var P=q*K*j;return E?Math.round(P):P}function In(q,K){return K===void 0&&(K=!1),Ta(q,1e3,1/Ue,K)}function gn(q,K){return K===void 0&&(K=1),Ta(q,Ue,1/K)}var We=gn(10),na=gn(.2),fa=function(){function q(j,E,P,N){this.observer=j,this.config=E,this.typeSupported=P;var W=navigator.userAgent;this.isSafari=N&&N.indexOf("Apple")>-1&&W&&!W.match("CriOS"),this.ISGenerated=!1}var K=q.prototype;return K.destroy=function(){},K.resetTimeStamp=function(E){this._initPTS=this._initDTS=E},K.resetInitSegment=function(){this.ISGenerated=!1},K.remux=function(E,P,N,W,V,ue,re){if(this.ISGenerated||this.generateIS(E,P,V),this.ISGenerated){var he=E.samples.length,Ie=P.samples.length,Fe=V,Ge=V;if(he&&Ie){var ln=(E.samples[0].pts-P.samples[0].pts)/P.inputTimeScale;Fe+=Math.max(0,ln),Ge+=Math.max(0,-ln)}if(he){E.timescale||(l.logger.warn("regenerate InitSegment as audio detected"),this.generateIS(E,P,V));var mn=this.remuxAudio(E,Fe,ue,re);if(Ie){var xe;mn&&(xe=mn.endPTS-mn.startPTS),P.timescale||(l.logger.warn("regenerate InitSegment as video detected"),this.generateIS(E,P,V)),this.remuxVideo(P,Ge,ue,xe,re)}}else if(Ie){var wn=this.remuxVideo(P,Ge,ue,0,re);wn&&E.codec&&this.remuxEmptyAudio(E,Fe,ue,wn)}}N.samples.length&&this.remuxID3(N,V),W.samples.length&&this.remuxText(W,V),this.observer.trigger(t.default.FRAG_PARSED)},K.generateIS=function(E,P,N){var W=this.observer,V=E.samples,ue=P.samples,re=this.typeSupported,he="audio/mp4",Ie={},Fe={tracks:Ie},Ge=this._initPTS===void 0,ln,mn;if(Ge&&(ln=mn=1/0),E.config&&V.length&&(E.timescale=E.samplerate,l.logger.log("audio sampling rate : "+E.samplerate),E.isAAC||(re.mpeg?(he="audio/mpeg",E.codec=""):re.mp3&&(E.codec="mp3")),Ie.audio={container:he,codec:E.codec,initSegment:!E.isAAC&&re.mpeg?new Uint8Array:ft.initSegment([E]),metadata:{channelCount:E.channelCount}},Ge&&(ln=mn=V[0].pts-E.inputTimeScale*N)),P.sps&&P.pps&&ue.length){var xe=P.inputTimeScale;P.timescale=xe,Ie.video={container:"video/mp4",codec:P.codec,initSegment:ft.initSegment([P]),metadata:{width:P.width,height:P.height}},Ge&&(ln=Math.min(ln,ue[0].pts-xe*N),mn=Math.min(mn,ue[0].dts-xe*N),this.observer.trigger(t.default.INIT_PTS_FOUND,{initPTS:ln}))}Object.keys(Ie).length?(W.trigger(t.default.FRAG_PARSING_INIT_SEGMENT,Fe),this.ISGenerated=!0,Ge&&(this._initPTS=ln,this._initDTS=mn)):W.trigger(t.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"no audio/video samples found"})},K.remuxVideo=function(E,P,N,W,V){var ue=8,re,he,Ie,Fe,Ge,ln,mn,xe=E.timescale,wn=E.samples,Qn=[],pa=wn.length,Za=this._PTSNormalize,Lt=this._initPTS,ya=this.nextAvcDts,pt=this.isSafari;if(pa!==0){pt&&(N|=wn.length&&ya&&(V&&Math.abs(P-ya/xe)<.1||Math.abs(wn[0].pts-ya-Lt)1?l.logger.log("AVC: "+In(It,!0)+" ms hole between fragments detected,filling it"):It<-1&&l.logger.log("AVC: "+In(-It,!0)+" ms overlapping between fragments detected"),Ge=ya,wn[0].dts=Ge,Fe=Math.max(Fe-It,ya),wn[0].pts=Fe,l.logger.log("Video: PTS/DTS adjusted: "+In(Fe,!0)+"/"+In(Ge,!0)+", delta: "+In(It,!0)+" ms")),Ha=wn[wn.length-1],mn=Math.max(Ha.dts,0),ln=Math.max(Ha.pts,0,mn),pt&&(re=Math.round((mn-Ge)/(wn.length-1)));for(var ir=0,Sr=0,ro=0;ro0?wo-1:wo].dts;if(Oc.stretchShortVideoTrack){var xi=Oc.maxBufferHole,dd=Math.floor(xi*xe),ef=(W?Fe+W*xe:this.nextAudioPts)-Ur.pts;ef>dd?(re=ef-El,re<0&&(re=El),l.logger.log("It is approximately "+In(ef,!1)+" ms to the next segment; using duration "+In(re,!1)+" ms for the last video frame.")):re=El}else re=El}Pi=Math.round(Ur.pts-Ur.dts)}Qn.push({size:oi,duration:re,cts:Pi,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:Ur.key?2:1,isNonSync:Ur.key?0:1}})}this.nextAvcDts=mn+re;var W_=E.dropped;if(E.nbNalu=0,E.dropped=0,Qn.length&&navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var $_=Qn[0].flags;$_.dependsOn=2,$_.isNonSync=0}E.samples=Qn,Ie=ft.moof(E.sequenceNumber++,Ge,E),E.samples=[];var Ni={data1:Ie,data2:he,startPTS:Fe/xe,endPTS:(ln+re)/xe,startDTS:Ge/xe,endDTS:this.nextAvcDts/xe,type:"video",hasAudio:!1,hasVideo:!0,nb:Qn.length,dropped:W_};return this.observer.trigger(t.default.FRAG_PARSING_DATA,Ni),Ni}},K.remuxAudio=function(E,P,N,W){var V=E.inputTimeScale,ue=E.timescale,re=V/ue,he=E.isAAC?1024:1152,Ie=he*re,Fe=this._PTSNormalize,Ge=this._initPTS,ln=!E.isAAC&&this.typeSupported.mpeg,mn,xe,wn,Qn,pa,Za,Lt=ln?0:8,ya=E.samples,pt=[],Pa=this.nextAudioPts;if(N|=ya.length&&Pa&&(W&&Math.abs(P-Pa/V)<.1||Math.abs(ya[0].pts-Pa-Ge)<20*Ie),ya.forEach(function(xi){xi.pts=xi.dts=Fe(xi.pts-Ge,P*V)}),ya=ya.filter(function(xi){return xi.pts>=0}),ya.length!==0){if(N||(W?Pa=P*V:Pa=ya[0].pts),E.isAAC)for(var Ot=this.config.maxAudioFramesDrift,Ha=0,It=Pa;Ha=Ot*Ie&&Sr.1*Ie,ir.pts=ir.dts=It,It+=Ie,Ha++}for(var nr=ya.length,Or=0;nr--;)Or+=ya[nr].unit.byteLength;for(var nu=0,au=ya.length;nu0&&oi0&&(xe=qn.getSilentFrame(E.manifestCodec||E.codec,E.channelCount),xe||(xe=Ur.subarray()),Or+=Pi*xe.length);else if(oi<-12){l.logger.log("drop overlapping AAC sample, expected/parsed/delta: "+In(Pa,!0)+" ms / "+In(Tu,!0)+" ms / "+In(-oi,!0)+" ms"),Or-=Ur.byteLength;continue}Tu=Pa}if(pa=Tu,Or>0){Or+=Lt;try{wn=new Uint8Array(Or)}catch{this.observer.trigger(t.default.ERROR,{type:o.ErrorTypes.MUX_ERROR,details:o.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Or,reason:"fail allocating audio mdat "+Or});return}if(!ln){var Ql=new DataView(wn.buffer);Ql.setUint32(0,Or),wn.set(ft.types.mdat,4)}}else return;for(var jc=0;jc=2&&(wl=pt[nr-2].duration,mn.duration=wl),nr){this.nextAudioPts=Pa=Za+re*wl,E.samples=pt,ln?Qn=new Uint8Array:Qn=ft.moof(E.sequenceNumber++,pa/re,E),E.samples=[];var bl=pa/V,Oc=Pa/V,El={data1:Qn,data2:wn,startPTS:bl,endPTS:Oc,startDTS:bl,endDTS:Oc,type:"audio",hasAudio:!0,hasVideo:!1,nb:nr};return this.observer.trigger(t.default.FRAG_PARSING_DATA,El),El}return null}},K.remuxEmptyAudio=function(E,P,N,W){var V=E.inputTimeScale,ue=E.samplerate?E.samplerate:V,re=V/ue,he=this.nextAudioPts,Ie=(he!==void 0?he:W.startDTS*V)+this._initDTS,Fe=W.endDTS*V+this._initDTS,Ge=1024,ln=re*Ge,mn=Math.ceil((Fe-Ie)/ln),xe=qn.getSilentFrame(E.manifestCodec||E.codec,E.channelCount);if(l.logger.warn("remux empty Audio"),!xe){l.logger.trace("Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec!");return}for(var wn=[],Qn=0;Qn4294967296;)E+=N;return E},q}(),La=fa,_t=function(){function q(j){this.observer=j}var K=q.prototype;return K.destroy=function(){},K.resetTimeStamp=function(){},K.resetInitSegment=function(){},K.remux=function(E,P,N,W,V,ue,re,he){var Ie=this.observer,Fe="";E&&(Fe+="audio"),P&&(Fe+="video"),Ie.trigger(t.default.FRAG_PARSING_DATA,{data1:he,startPTS:V,startDTS:V,type:Fe,hasAudio:!!E,hasVideo:!!P,nb:1,dropped:0}),Ie.trigger(t.default.FRAG_PARSED)},q}(),sn=_t,la=Object(s.getSelfScope)(),Et;try{Et=la.performance.now.bind(la.performance)}catch{l.logger.debug("Unable to use Performance API on this environment"),Et=la.Date.now}var Da=function(){function q(j,E,P,N){this.observer=j,this.typeSupported=E,this.config=P,this.vendor=N}var K=q.prototype;return K.destroy=function(){var E=this.demuxer;E&&E.destroy()},K.push=function(E,P,N,W,V,ue,re,he,Ie,Fe,Ge,ln){var mn=this;if(E.byteLength>0&&P!=null&&P.key!=null&&P.method==="AES-128"){var xe=this.decrypter;xe==null&&(xe=this.decrypter=new u.default(this.observer,this.config));var wn=Et();xe.decrypt(E,P.key.buffer,P.iv.buffer,function(Qn){var pa=Et();mn.observer.trigger(t.default.FRAG_DECRYPTED,{stats:{tstart:wn,tdecrypt:pa}}),mn.pushDecrypted(new Uint8Array(Qn),P,new Uint8Array(N),W,V,ue,re,he,Ie,Fe,Ge,ln)})}else this.pushDecrypted(new Uint8Array(E),P,new Uint8Array(N),W,V,ue,re,he,Ie,Fe,Ge,ln)},K.pushDecrypted=function(E,P,N,W,V,ue,re,he,Ie,Fe,Ge,ln){var mn=this.demuxer;if(!mn||(re||he)&&!this.probe(E)){for(var xe=this.observer,wn=this.typeSupported,Qn=this.config,pa=[{demux:en,remux:La},{demux:ve.default,remux:sn},{demux:te,remux:La},{demux:ra,remux:La}],Za=0,Lt=pa.length;Za1?L-1:0),$=1;$1?L-1:0),$=1;$0)return d.subarray(I,I+b)},s._readSize=function(d,y){var I=0;return I=(d[y]&127)<<21,I|=(d[y+1]&127)<<14,I|=(d[y+2]&127)<<7,I|=d[y+3]&127,I},s.getTimeStamp=function(d){for(var y=s.getID3Frames(d),I=0;I>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:X+=String.fromCharCode(O);break;case 12:case 13:$=d[oe++],X+=String.fromCharCode((O&31)<<6|$&63);break;case 14:$=d[oe++],z=d[oe++],X+=String.fromCharCode((O&15)<<12|($&63)<<6|(z&63)<<0);break;default:}}return X},s}(),u;function i(){var s=Object(t.getSelfScope)();return!u&&typeof s.TextDecoder!="undefined"&&(u=new s.TextDecoder("utf-8")),u}var l=o._utf8ArrayToStr;n.default=o},"./src/demux/mp4demuxer.js":function(e,n,a){"use strict";a.r(n);var t=a("./src/utils/logger.js"),o=a("./src/events.js"),u=Math.pow(2,32)-1,i=function(){function l(R,d){this.observer=R,this.remuxer=d}var s=l.prototype;return s.resetTimeStamp=function(d){this.initPTS=d},s.resetInitSegment=function(d,y,I,b){if(d&&d.byteLength){var S=this.initData=l.parseInitSegment(d);y==null&&(y="mp4a.40.5"),I==null&&(I="avc1.42e01e");var L={};S.audio&&S.video?L.audiovideo={container:"video/mp4",codec:y+","+I,initSegment:b?d:null}:(S.audio&&(L.audio={container:"audio/mp4",codec:y,initSegment:b?d:null}),S.video&&(L.video={container:"video/mp4",codec:I,initSegment:b?d:null})),this.observer.trigger(o.default.FRAG_PARSING_INIT_SEGMENT,{tracks:L})}else y&&(this.audioCodec=y),I&&(this.videoCodec=I)},l.probe=function(d){return l.findBox({data:d,start:0,end:Math.min(d.length,16384)},["moof"]).length>0},l.bin2str=function(d){return String.fromCharCode.apply(null,d)},l.readUint16=function(d,y){d.data&&(y+=d.start,d=d.data);var I=d[y]<<8|d[y+1];return I<0?65536+I:I},l.readUint32=function(d,y){d.data&&(y+=d.start,d=d.data);var I=d[y]<<24|d[y+1]<<16|d[y+2]<<8|d[y+3];return I<0?4294967296+I:I},l.writeUint32=function(d,y,I){d.data&&(y+=d.start,d=d.data),d[y]=I>>24,d[y+1]=I>>16&255,d[y+2]=I>>8&255,d[y+3]=I&255},l.findBox=function(d,y){var I=[],b,S,L,O,$,z,X;if(d.data?(z=d.start,O=d.end,d=d.data):(z=0,O=d.byteLength),!y.length)return null;for(b=z;b1?b+S:O,L===y[0]&&(y.length===1?I.push({data:d,start:b+8,end:X}):($=l.findBox({data:d,start:b+8,end:X},y.slice(1)),$.length&&(I=I.concat($)))),b=X;return I},l.parseSegmentIndex=function(d){var y=l.findBox(d,["moov"])[0],I=y?y.end:null,b=0,S=l.findBox(d,["sidx"]),L;if(!S||!S[0])return null;L=[],S=S[0];var O=S.data[0];b=O===0?8:16;var $=l.readUint32(S,b);b+=4;var z=0,X=0;O===0?b+=8:b+=16,b+=2;var oe=S.end+X,te=l.readUint16(S,b);b+=2;for(var ve=0;ve>>31;if(ce===1){console.warn("SIDX has hierarchical references (not supported)");return}var le=l.readUint32(S,we);we+=4,L.push({referenceSize:cn,subsegmentDuration:le,info:{duration:le/$,start:oe,end:oe+cn-1}}),oe+=cn,we+=4,b=we}return{earliestPresentationTime:z,timescale:$,version:O,referencesCount:te,references:L,moovEndOffset:I}},l.parseInitSegment=function(d){var y=[],I=l.findBox(d,["moov","trak"]);return I.forEach(function(b){var S=l.findBox(b,["tkhd"])[0];if(S){var L=S.data[S.start],O=L===0?12:20,$=l.readUint32(S,O),z=l.findBox(b,["mdia","mdhd"])[0];if(z){L=z.data[z.start],O=L===0?12:20;var X=l.readUint32(z,O),oe=l.findBox(b,["mdia","hdlr"])[0];if(oe){var te=l.bin2str(oe.data.subarray(oe.start+8,oe.start+12)),ve={soun:"audio",vide:"video"}[te];if(ve){var we=l.findBox(b,["mdia","minf","stbl","stsd"]);if(we.length){we=we[0];var an=l.bin2str(we.data.subarray(we.start+12,we.start+16));t.logger.log("MP4Demuxer:"+ve+":"+an+" found")}y[$]={timescale:X,type:ve},y[ve]={timescale:X,id:$}}}}}}),y},l.getStartDTS=function(d,y){var I,b,S;return I=l.findBox(y,["moof","traf"]),b=[].concat.apply([],I.map(function(L){return l.findBox(L,["tfhd"]).map(function(O){var $,z,X;return $=l.readUint32(O,4),z=d[$].timescale||9e4,X=l.findBox(L,["tfdt"]).map(function(oe){var te,ve;return te=oe.data[oe.start],ve=l.readUint32(oe,4),te===1&&(ve*=Math.pow(2,32),ve+=l.readUint32(oe,8)),ve})[0],X/z})})),S=Math.min.apply(null,b),isFinite(S)?S:0},l.offsetStartDTS=function(d,y,I){l.findBox(y,["moof","traf"]).map(function(b){return l.findBox(b,["tfhd"]).map(function(S){var L=l.readUint32(S,4),O=d[L].timescale||9e4;l.findBox(b,["tfdt"]).map(function($){var z=$.data[$.start],X=l.readUint32($,4);if(z===0)l.writeUint32($,4,X-I*O);else{X*=Math.pow(2,32),X+=l.readUint32($,8),X-=I*O,X=Math.max(X,0);var oe=Math.floor(X/(u+1)),te=Math.floor(X%(u+1));l.writeUint32($,4,oe),l.writeUint32($,8,te)}})})})},s.append=function(d,y,I,b){var S=this.initData;S||(this.resetInitSegment(d,this.audioCodec,this.videoCodec,!1),S=this.initData);var L,O=this.initPTS;if(O===void 0){var $=l.getStartDTS(S,d);this.initPTS=O=$-y,this.observer.trigger(o.default.INIT_PTS_FOUND,{initPTS:O})}l.offsetStartDTS(S,d,O),L=l.getStartDTS(S,d),this.remuxer.remux(S.audio,S.video,null,null,L,I,b,d)},s.destroy=function(){},l}();n.default=i},"./src/errors.ts":function(e,n,a){"use strict";a.r(n),a.d(n,"ErrorTypes",function(){return t}),a.d(n,"ErrorDetails",function(){return o});var t;(function(u){u.NETWORK_ERROR="networkError",u.MEDIA_ERROR="mediaError",u.KEY_SYSTEM_ERROR="keySystemError",u.MUX_ERROR="muxError",u.OTHER_ERROR="otherError"})(t||(t={}));var o;(function(u){u.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",u.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",u.KEY_SYSTEM_NO_SESSION="keySystemNoSession",u.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",u.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",u.MANIFEST_LOAD_ERROR="manifestLoadError",u.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",u.MANIFEST_PARSING_ERROR="manifestParsingError",u.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",u.LEVEL_LOAD_ERROR="levelLoadError",u.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",u.LEVEL_SWITCH_ERROR="levelSwitchError",u.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",u.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",u.FRAG_LOAD_ERROR="fragLoadError",u.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",u.FRAG_DECRYPT_ERROR="fragDecryptError",u.FRAG_PARSING_ERROR="fragParsingError",u.REMUX_ALLOC_ERROR="remuxAllocError",u.KEY_LOAD_ERROR="keyLoadError",u.KEY_LOAD_TIMEOUT="keyLoadTimeOut",u.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",u.BUFFER_APPEND_ERROR="bufferAppendError",u.BUFFER_APPENDING_ERROR="bufferAppendingError",u.BUFFER_STALLED_ERROR="bufferStalledError",u.BUFFER_FULL_ERROR="bufferFullError",u.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",u.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",u.INTERNAL_EXCEPTION="internalException"})(o||(o={}))},"./src/events.js":function(e,n,a){"use strict";a.r(n);var t={MEDIA_ATTACHING:"hlsMediaAttaching",MEDIA_ATTACHED:"hlsMediaAttached",MEDIA_DETACHING:"hlsMediaDetaching",MEDIA_DETACHED:"hlsMediaDetached",BUFFER_RESET:"hlsBufferReset",BUFFER_CODECS:"hlsBufferCodecs",BUFFER_CREATED:"hlsBufferCreated",BUFFER_APPENDING:"hlsBufferAppending",BUFFER_APPENDED:"hlsBufferAppended",BUFFER_EOS:"hlsBufferEos",BUFFER_FLUSHING:"hlsBufferFlushing",BUFFER_FLUSHED:"hlsBufferFlushed",MANIFEST_LOADING:"hlsManifestLoading",MANIFEST_LOADED:"hlsManifestLoaded",MANIFEST_PARSED:"hlsManifestParsed",LEVEL_SWITCHING:"hlsLevelSwitching",LEVEL_SWITCHED:"hlsLevelSwitched",LEVEL_LOADING:"hlsLevelLoading",LEVEL_LOADED:"hlsLevelLoaded",LEVEL_UPDATED:"hlsLevelUpdated",LEVEL_PTS_UPDATED:"hlsLevelPtsUpdated",AUDIO_TRACKS_UPDATED:"hlsAudioTracksUpdated",AUDIO_TRACK_SWITCHING:"hlsAudioTrackSwitching",AUDIO_TRACK_SWITCHED:"hlsAudioTrackSwitched",AUDIO_TRACK_LOADING:"hlsAudioTrackLoading",AUDIO_TRACK_LOADED:"hlsAudioTrackLoaded",SUBTITLE_TRACKS_UPDATED:"hlsSubtitleTracksUpdated",SUBTITLE_TRACK_SWITCH:"hlsSubtitleTrackSwitch",SUBTITLE_TRACK_LOADING:"hlsSubtitleTrackLoading",SUBTITLE_TRACK_LOADED:"hlsSubtitleTrackLoaded",SUBTITLE_FRAG_PROCESSED:"hlsSubtitleFragProcessed",INIT_PTS_FOUND:"hlsInitPtsFound",FRAG_LOADING:"hlsFragLoading",FRAG_LOAD_PROGRESS:"hlsFragLoadProgress",FRAG_LOAD_EMERGENCY_ABORTED:"hlsFragLoadEmergencyAborted",FRAG_LOADED:"hlsFragLoaded",FRAG_DECRYPTED:"hlsFragDecrypted",FRAG_PARSING_INIT_SEGMENT:"hlsFragParsingInitSegment",FRAG_PARSING_USERDATA:"hlsFragParsingUserdata",FRAG_PARSING_METADATA:"hlsFragParsingMetadata",FRAG_PARSING_DATA:"hlsFragParsingData",FRAG_PARSED:"hlsFragParsed",FRAG_BUFFERED:"hlsFragBuffered",FRAG_CHANGED:"hlsFragChanged",FPS_DROP:"hlsFpsDrop",FPS_DROP_LEVEL_CAPPING:"hlsFpsDropLevelCapping",ERROR:"hlsError",DESTROYING:"hlsDestroying",KEY_LOADING:"hlsKeyLoading",KEY_LOADED:"hlsKeyLoaded",STREAM_STATE_TRANSITION:"hlsStreamStateTransition",LIVE_BACK_BUFFER_REACHED:"hlsLiveBackBufferReached"};n.default=t},"./src/hls.ts":function(e,n,a){"use strict";a.r(n);var t={};a.r(t),a.d(t,"newCue",function(){return QE});var o=a("./node_modules/url-toolkit/src/url-toolkit.js"),u=a("./src/errors.ts"),i=a("./src/polyfills/number-isFinite.js"),l=a("./src/events.js"),s=a("./src/utils/logger.js"),R={hlsEventGeneric:!0,hlsHandlerDestroying:!0,hlsHandlerDestroyed:!0},d=function(){function w(f){this.hls=void 0,this.handledEvents=void 0,this.useGenericHandler=void 0,this.hls=f,this.onEvent=this.onEvent.bind(this);for(var v=arguments.length,r=new Array(v>1?v-1:0),c=1;c>8*(15-c)&255;return r},h.setDecryptDataFromLevelKey=function(v,r){var c=v;return v&&v.method&&v.uri&&!v.iv&&(c=new $(v.baseuri,v.reluri),c.method=v.method,c.iv=this.createInitializationVector(r)),c},X(w,[{key:"url",get:function(){return!this._url&&this.relurl&&(this._url=Object(o.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},set:function(v){this._url=v}},{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var v=this.sn;typeof v!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&s.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),v=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,v)}return this._decryptdata}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null||!Object(i.isFiniteNumber)(this.programDateTime))return null;var v=Object(i.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+v*1e3}},{key:"encrypted",get:function(){return!!(this.decryptdata&&this.decryptdata.uri!==null&&this.decryptdata.key===null)}}]),w}();function ve(w,h){for(var f=0;fNumber.MAX_SAFE_INTEGER?1/0:r},h.hexadecimalInteger=function(v){if(this[v]){var r=(this[v]||"0x").slice(2);r=(r.length&1?"0":"")+r;for(var c=new Uint8Array(r.length/2),_=0;_Number.MAX_SAFE_INTEGER?1/0:r},h.decimalFloatingPoint=function(v){return parseFloat(this[v])},h.enumeratedString=function(v){return this[v]},h.decimalResolution=function(v){var r=cn.exec(this[v]);if(r!==null)return{width:parseInt(r[1],10),height:parseInt(r[2],10)}},w.parseAttrList=function(v){var r,c={};for(ce.lastIndex=0;(r=ce.exec(v))!==null;){var _=r[2],g='"';_.indexOf(g)===0&&_.lastIndexOf(g)===_.length-1&&(_=_.slice(1,-1)),c[r[1]]=_}return c},w}(),je=le,Ce={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0}};function He(w,h){var f=Ce[h];return!!f&&f[w.slice(0,4)]===!0}function en(w,h){return MediaSource.isTypeSupported((h||"video")+'/mp4;codecs="'+w+'"')}var Cn=/#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)/g,ra=/#EXT-X-MEDIA:(.*)/g,Bn=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)([\S+ ?]+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),qn=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)([^:]*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/,Kn=/\.(mp4|m4s|m4v|m4a)$/i,Jn=function(){function w(){}return w.findGroup=function(f,v){for(var r=0;r2?(r=v.shift()+".",r+=parseInt(v.shift()).toString(16),r+=("000"+parseInt(v.shift()).toString(16)).substr(-4)):r=f,r},w.resolve=function(f,v){return o.buildAbsoluteURL(v,f,{alwaysNormalize:!0})},w.parseMasterPlaylist=function(f,v){var r=[];Cn.lastIndex=0;function c(x,H){["video","audio"].forEach(function(k){var ee=x.filter(function($e){return He($e,k)});if(ee.length){var be=ee.filter(function($e){return $e.lastIndexOf("avc1",0)===0||$e.lastIndexOf("mp4a",0)===0});H[k+"Codec"]=be.length>0?be[0]:ee[0],x=x.filter(function($e){return ee.indexOf($e)===-1})}}),H.unknownCodecs=x}for(var _;(_=Cn.exec(f))!=null;){var g={},C=g.attrs=new je(_[1]);g.url=w.resolve(_[2],v);var F=C.decimalResolution("RESOLUTION");F&&(g.width=F.width,g.height=F.height),g.bitrate=C.decimalInteger("AVERAGE-BANDWIDTH")||C.decimalInteger("BANDWIDTH"),g.name=C.NAME,c([].concat((C.CODECS||"").split(/[ ,]+/)),g),g.videoCodec&&g.videoCodec.indexOf("avc1")!==-1&&(g.videoCodec=w.convertAVC1ToAVCOTI(g.videoCodec)),r.push(g)}return r},w.parseMasterPlaylistMedia=function(f,v,r,c){c===void 0&&(c=[]);var _,g=[],C=0;for(ra.lastIndex=0;(_=ra.exec(f))!==null;){var F=new je(_[1]);if(F.TYPE===r){var x={id:C++,groupId:F["GROUP-ID"],name:F.NAME||F.LANGUAGE,type:r,default:F.DEFAULT==="YES",autoselect:F.AUTOSELECT==="YES",forced:F.FORCED==="YES",lang:F.LANGUAGE};if(F.URI&&(x.url=w.resolve(F.URI,v)),c.length){var H=w.findGroup(c,x.groupId);x.audioCodec=H?H.codec:c[0].codec}g.push(x)}}return g},w.parseLevelPlaylist=function(f,v,r,c,_){var g=0,C=0,F=new an(v),x=0,H=null,k=new te,ee,be,$e,fn=null;for(Bn.lastIndex=0;(ee=Bn.exec(f))!==null;){var _a=ee[1];if(_a){k.duration=parseFloat(_a);var ea=(" "+ee[2]).slice(1);k.title=ea||null,k.tagList.push(ea?["INF",_a,ea]:["INF",_a])}else if(ee[3]){if(Object(i.isFiniteNumber)(k.duration)){var ca=g++;k.type=c,k.start=C,$e&&(k.levelkey=$e),k.sn=ca,k.level=r,k.cc=x,k.urlId=_,k.baseurl=v,k.relurl=(" "+ee[3]).slice(1),Ue(k,H),F.fragments.push(k),H=k,C+=k.duration,k=new te}}else if(ee[4]){var Ra=(" "+ee[4]).slice(1);H?k.setByteRange(Ra,H):k.setByteRange(Ra)}else if(ee[5])k.rawProgramDateTime=(" "+ee[5]).slice(1),k.tagList.push(["PROGRAM-DATE-TIME",k.rawProgramDateTime]),fn===null&&(fn=F.fragments.length);else{if(ee=ee[0].match(qn),!ee){s.logger.warn("No matches on slow regex match for level playlist!");continue}for(be=1;be=0&&($e.method=lt,$e.key=null,$e.iv=xa));break}case"START":{var Eo=new je(Oa),Z_=Eo.decimalFloatingPoint("TIME-OFFSET");Object(i.isFiniteNumber)(Z_)&&(F.startTimeOffset=Z_);break}case"MAP":{var e0=new je(Oa);k.relurl=e0.URI,e0.BYTERANGE&&k.setByteRange(e0.BYTERANGE),k.baseurl=v,k.level=r,k.type=c,k.sn="initSegment",F.initSegment=k,k=new te,k.rawProgramDateTime=F.initSegment.rawProgramDateTime;break}default:s.logger.warn("line parsed but not handled: "+ee);break}}}return k=H,k&&!k.relurl&&(F.fragments.pop(),C-=k.duration),F.totalduration=C,F.averagetargetduration=C/F.fragments.length,F.endSN=g-1,F.startCC=F.fragments[0]?F.fragments[0].cc:0,F.endCC=x,!F.initSegment&&F.fragments.length&&F.fragments.every(function(DI){return Kn.test(DI.relurl)})&&(s.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),k=new te,k.relurl=F.fragments[0].relurl,k.baseurl=v,k.level=r,k.type=c,k.sn="initSegment",F.initSegment=k,F.needSidxRanges=!0),fn&&ft(F.fragments,fn),F},w}();function ft(w,h){for(var f=w[h],v=h-1;v>=0;v--){var r=w[v];r.programDateTime=f.programDateTime-r.duration*1e3,f=r}}function Ue(w,h){w.rawProgramDateTime?w.programDateTime=Date.parse(w.rawProgramDateTime):h&&h.programDateTime&&(w.programDateTime=h.endProgramDateTime),Object(i.isFiniteNumber)(w.programDateTime)||(w.programDateTime=null,w.rawProgramDateTime=null)}function ia(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var Ta=window,In=Ta.performance,gn=function(w){ia(h,w);function h(v){var r;return r=w.call(this,v,l.default.MANIFEST_LOADING,l.default.LEVEL_LOADING,l.default.AUDIO_TRACK_LOADING,l.default.SUBTITLE_TRACK_LOADING)||this,r.loaders={},r}h.canHaveQualityLevels=function(r){return r!==I.AUDIO_TRACK&&r!==I.SUBTITLE_TRACK},h.mapContextToLevelType=function(r){var c=r.type;switch(c){case I.AUDIO_TRACK:return b.AUDIO;case I.SUBTITLE_TRACK:return b.SUBTITLE;default:return b.MAIN}},h.getResponseUrl=function(r,c){var _=r.url;return(_===void 0||_.indexOf("data:")===0)&&(_=c.url),_};var f=h.prototype;return f.createInternalLoader=function(r){var c=this.hls.config,_=c.pLoader,g=c.loader,C=_||g,F=new C(c);return r.loader=F,this.loaders[r.type]=F,F},f.getInternalLoader=function(r){return this.loaders[r.type]},f.resetInternalLoader=function(r){this.loaders[r]&&delete this.loaders[r]},f.destroyInternalLoaders=function(){for(var r in this.loaders){var c=this.loaders[r];c&&c.destroy(),this.resetInternalLoader(r)}},f.destroy=function(){this.destroyInternalLoaders(),w.prototype.destroy.call(this)},f.onManifestLoading=function(r){this.load({url:r.url,type:I.MANIFEST,level:0,id:null,responseType:"text"})},f.onLevelLoading=function(r){this.load({url:r.url,type:I.LEVEL,level:r.level,id:r.id,responseType:"text"})},f.onAudioTrackLoading=function(r){this.load({url:r.url,type:I.AUDIO_TRACK,level:null,id:r.id,responseType:"text"})},f.onSubtitleTrackLoading=function(r){this.load({url:r.url,type:I.SUBTITLE_TRACK,level:null,id:r.id,responseType:"text"})},f.load=function(r){var c=this.hls.config;s.logger.debug("Loading playlist of type "+r.type+", level: "+r.level+", id: "+r.id);var _=this.getInternalLoader(r);if(_){var g=_.context;if(g&&g.url===r.url)return s.logger.trace("playlist request ongoing"),!1;s.logger.warn("aborting previous loader for type: "+r.type),_.abort()}var C,F,x,H;switch(r.type){case I.MANIFEST:C=c.manifestLoadingMaxRetry,F=c.manifestLoadingTimeOut,x=c.manifestLoadingRetryDelay,H=c.manifestLoadingMaxRetryTimeout;break;case I.LEVEL:C=0,H=0,x=0,F=c.levelLoadingTimeOut;break;default:C=c.levelLoadingMaxRetry,F=c.levelLoadingTimeOut,x=c.levelLoadingRetryDelay,H=c.levelLoadingMaxRetryTimeout;break}_=this.createInternalLoader(r);var k={timeout:F,maxRetry:C,retryDelay:x,maxRetryDelay:H},ee={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};return s.logger.debug("Calling internal loader delegate for URL: "+r.url),_.load(r,k,ee),!0},f.loadsuccess=function(r,c,_,g){if(g===void 0&&(g=null),_.isSidxRequest){this._handleSidxRequest(r,_),this._handlePlaylistLoaded(r,c,_,g);return}if(this.resetInternalLoader(_.type),typeof r.data!="string")throw new Error('expected responseType of "text" for PlaylistLoader');var C=r.data;if(c.tload=In.now(),C.indexOf("#EXTM3U")!==0){this._handleManifestParsingError(r,_,"no EXTM3U delimiter",g);return}C.indexOf("#EXTINF:")>0||C.indexOf("#EXT-X-TARGETDURATION:")>0?this._handleTrackOrLevelPlaylist(r,c,_,g):this._handleMasterPlaylist(r,c,_,g)},f.loaderror=function(r,c,_){_===void 0&&(_=null),this._handleNetworkError(c,_,!1,r)},f.loadtimeout=function(r,c,_){_===void 0&&(_=null),this._handleNetworkError(c,_,!0)},f._handleMasterPlaylist=function(r,c,_,g){var C=this.hls,F=r.data,x=h.getResponseUrl(r,_),H=Jn.parseMasterPlaylist(F,x);if(!H.length){this._handleManifestParsingError(r,_,"no level found in manifest",g);return}var k=H.map(function(fn){return{id:fn.attrs.AUDIO,codec:fn.audioCodec}}),ee=Jn.parseMasterPlaylistMedia(F,x,"AUDIO",k),be=Jn.parseMasterPlaylistMedia(F,x,"SUBTITLES");if(ee.length){var $e=!1;ee.forEach(function(fn){fn.url||($e=!0)}),$e===!1&&H[0].audioCodec&&!H[0].attrs.AUDIO&&(s.logger.log("audio codec signaled in quality level, but no embedded audio track signaled, create one"),ee.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1}))}C.trigger(l.default.MANIFEST_LOADED,{levels:H,audioTracks:ee,subtitles:be,url:x,stats:c,networkDetails:g})},f._handleTrackOrLevelPlaylist=function(r,c,_,g){var C=this.hls,F=_.id,x=_.level,H=_.type,k=h.getResponseUrl(r,_),ee=Object(i.isFiniteNumber)(F)?F:0,be=Object(i.isFiniteNumber)(x)?x:ee,$e=h.mapContextToLevelType(_),fn=Jn.parseLevelPlaylist(r.data,k,be,$e,ee);if(fn.tload=c.tload,H===I.MANIFEST){var _a={url:k,details:fn};C.trigger(l.default.MANIFEST_LOADED,{levels:[_a],audioTracks:[],url:k,stats:c,networkDetails:g})}if(c.tparsed=In.now(),fn.needSidxRanges){var ea=fn.initSegment.url;this.load({url:ea,isSidxRequest:!0,type:H,level:x,levelDetails:fn,id:F,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer"});return}_.levelDetails=fn,this._handlePlaylistLoaded(r,c,_,g)},f._handleSidxRequest=function(r,c){if(typeof r.data=="string")throw new Error("sidx request must be made with responseType of array buffer");var _=S.default.parseSegmentIndex(new Uint8Array(r.data));if(!!_){var g=_.references,C=c.levelDetails;g.forEach(function(F,x){var H=F.info;if(!!C){var k=C.fragments[x];k.byteRange.length===0&&k.setByteRange(String(1+H.end-H.start)+"@"+String(H.start))}}),C&&C.initSegment.setByteRange(String(_.moovEndOffset)+"@0")}},f._handleManifestParsingError=function(r,c,_,g){this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.NETWORK_ERROR,details:u.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:!0,url:r.url,reason:_,networkDetails:g})},f._handleNetworkError=function(r,c,_,g){_===void 0&&(_=!1),g===void 0&&(g=null),s.logger.info("A network error occured while loading a "+r.type+"-type playlist");var C,F,x=this.getInternalLoader(r);switch(r.type){case I.MANIFEST:C=_?u.ErrorDetails.MANIFEST_LOAD_TIMEOUT:u.ErrorDetails.MANIFEST_LOAD_ERROR,F=!0;break;case I.LEVEL:C=_?u.ErrorDetails.LEVEL_LOAD_TIMEOUT:u.ErrorDetails.LEVEL_LOAD_ERROR,F=!1;break;case I.AUDIO_TRACK:C=_?u.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,F=!1;break;default:F=!1}x&&(x.abort(),this.resetInternalLoader(r.type));var H={type:u.ErrorTypes.NETWORK_ERROR,details:C,fatal:F,url:r.url,loader:x,context:r,networkDetails:c};g&&(H.response=g),this.hls.trigger(l.default.ERROR,H)},f._handlePlaylistLoaded=function(r,c,_,g){var C=_.type,F=_.level,x=_.id,H=_.levelDetails;if(!H||!H.targetduration){this._handleManifestParsingError(r,_,"invalid target duration",g);return}var k=h.canHaveQualityLevels(_.type);if(k)this.hls.trigger(l.default.LEVEL_LOADED,{details:H,level:F||0,id:x||0,stats:c,networkDetails:g});else switch(C){case I.AUDIO_TRACK:this.hls.trigger(l.default.AUDIO_TRACK_LOADED,{details:H,id:x,stats:c,networkDetails:g});break;case I.SUBTITLE_TRACK:this.hls.trigger(l.default.SUBTITLE_TRACK_LOADED,{details:H,id:x,stats:c,networkDetails:g});break}},h}(y),We=gn;function na(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var fa=function(w){na(h,w);function h(v){var r;return r=w.call(this,v,l.default.FRAG_LOADING)||this,r.loaders={},r}var f=h.prototype;return f.destroy=function(){var r=this.loaders;for(var c in r){var _=r[c];_&&_.destroy()}this.loaders={},w.prototype.destroy.call(this)},f.onFragLoading=function(r){var c=r.frag,_=c.type,g=this.loaders,C=this.hls.config,F=C.fLoader,x=C.loader;c.loaded=0;var H=g[_];H&&(s.logger.warn("abort previous fragment loader for type: "+_),H.abort()),H=g[_]=c.loader=C.fLoader?new F(C):new x(C);var k,ee,be;k={url:c.url,frag:c,responseType:"arraybuffer",progressData:!1};var $e=c.byteRangeStartOffset,fn=c.byteRangeEndOffset;Object(i.isFiniteNumber)($e)&&Object(i.isFiniteNumber)(fn)&&(k.rangeStart=$e,k.rangeEnd=fn),ee={timeout:C.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:C.fragLoadingMaxRetryTimeout},be={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this),onProgress:this.loadprogress.bind(this)},H.load(k,ee,be)},f.loadsuccess=function(r,c,_,g){g===void 0&&(g=null);var C=r.data,F=_.frag;F.loader=void 0,this.loaders[F.type]=void 0,this.hls.trigger(l.default.FRAG_LOADED,{payload:C,frag:F,stats:c,networkDetails:g})},f.loaderror=function(r,c,_){_===void 0&&(_=null);var g=c.frag,C=g.loader;C&&C.abort(),this.loaders[g.type]=void 0,this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.NETWORK_ERROR,details:u.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c.frag,response:r,networkDetails:_})},f.loadtimeout=function(r,c,_){_===void 0&&(_=null);var g=c.frag,C=g.loader;C&&C.abort(),this.loaders[g.type]=void 0,this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.NETWORK_ERROR,details:u.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:c.frag,networkDetails:_})},f.loadprogress=function(r,c,_,g){g===void 0&&(g=null);var C=c.frag;C.loaded=r.loaded,this.hls.trigger(l.default.FRAG_LOAD_PROGRESS,{frag:C,stats:r,networkDetails:g})},h}(y),La=fa;function _t(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var sn=function(w){_t(h,w);function h(v){var r;return r=w.call(this,v,l.default.KEY_LOADING)||this,r.loaders={},r.decryptkey=null,r.decrypturl=null,r}var f=h.prototype;return f.destroy=function(){for(var r in this.loaders){var c=this.loaders[r];c&&c.destroy()}this.loaders={},w.prototype.destroy.call(this)},f.onKeyLoading=function(r){var c=r.frag,_=c.type,g=this.loaders[_];if(!c.decryptdata){s.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var C=c.decryptdata.uri;if(C!==this.decrypturl||this.decryptkey===null){var F=this.hls.config;if(g&&(s.logger.warn("abort previous key loader for type:"+_),g.abort()),!C){s.logger.warn("key uri is falsy");return}c.loader=this.loaders[_]=new F.loader(F),this.decrypturl=C,this.decryptkey=null;var x={url:C,frag:c,responseType:"arraybuffer"},H={timeout:F.fragLoadingTimeOut,maxRetry:0,retryDelay:F.fragLoadingRetryDelay,maxRetryDelay:F.fragLoadingMaxRetryTimeout},k={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};c.loader.load(x,H,k)}else this.decryptkey&&(c.decryptdata.key=this.decryptkey,this.hls.trigger(l.default.KEY_LOADED,{frag:c}))},f.loadsuccess=function(r,c,_){var g=_.frag;if(!g.decryptdata){s.logger.error("after key load, decryptdata unset");return}this.decryptkey=g.decryptdata.key=new Uint8Array(r.data),g.loader=void 0,delete this.loaders[g.type],this.hls.trigger(l.default.KEY_LOADED,{frag:g})},f.loaderror=function(r,c){var _=c.frag,g=_.loader;g&&g.abort(),delete this.loaders[_.type],this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.NETWORK_ERROR,details:u.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:_,response:r})},f.loadtimeout=function(r,c){var _=c.frag,g=_.loader;g&&g.abort(),delete this.loaders[_.type],this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.NETWORK_ERROR,details:u.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:_})},h}(y),la=sn;function Et(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var Da={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"},ot=function(w){Et(h,w);function h(v){var r;return r=w.call(this,v,l.default.BUFFER_APPENDED,l.default.FRAG_BUFFERED,l.default.FRAG_LOADED)||this,r.bufferPadding=.2,r.fragments=Object.create(null),r.timeRanges=Object.create(null),r.config=v.config,r}var f=h.prototype;return f.destroy=function(){this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.config=null,y.prototype.destroy.call(this),w.prototype.destroy.call(this)},f.getBufferedFrag=function(r,c){var _=this.fragments,g=Object.keys(_).filter(function(F){var x=_[F];if(x.body.type!==c||!x.buffered)return!1;var H=x.body;return H.startPTS<=r&&r<=H.endPTS});if(g.length===0)return null;var C=g.pop();return _[C].body},f.detectEvictedFragments=function(r,c){var _=this,g,C;Object.keys(this.fragments).forEach(function(F){var x=_.fragments[F];if(x.buffered===!0){var H=x.range[r];if(H){g=H.time;for(var k=0;k=C&&c<=F){g.push({startPTS:Math.max(r,_.start(H)),endPTS:Math.min(c,_.end(H))});break}else if(rC)g.push({startPTS:Math.max(r,_.start(H)),endPTS:Math.min(c,_.end(H))}),x=!0;else if(c<=C)break;return{time:g,partial:x}},f.getFragmentKey=function(r){return r.type+"_"+r.level+"_"+r.urlId+"_"+r.sn},f.getPartialFragment=function(r){var c=this,_,g,C,F=null,x=0;return Object.keys(this.fragments).forEach(function(H){var k=c.fragments[H];c.isPartial(k)&&(g=k.body.startPTS-c.bufferPadding,C=k.body.endPTS+c.bufferPadding,r>=g&&r<=C&&(_=Math.min(r-g,C-r),x<=_&&(F=k.body,x=_)))}),F},f.getState=function(r){var c=this.getFragmentKey(r),_=this.fragments[c],g=Da.NOT_LOADED;return _!==void 0&&(_.buffered?this.isPartial(_)===!0?g=Da.PARTIAL:g=Da.OK:g=Da.APPENDING),g},f.isPartial=function(r){return r.buffered===!0&&(r.range.video!==void 0&&r.range.video.partial===!0||r.range.audio!==void 0&&r.range.audio.partial===!0)},f.isTimeBuffered=function(r,c,_){for(var g,C,F=0;F<_.length;F++){if(g=_.start(F)-this.bufferPadding,C=_.end(F)+this.bufferPadding,r>=g&&c<=C)return!0;if(c<=g)return!1}return!1},f.onFragLoaded=function(r){var c=r.frag;!Object(i.isFiniteNumber)(c.sn)||c.bitrateTest||(this.fragments[this.getFragmentKey(c)]={body:c,range:Object.create(null),buffered:!1})},f.onBufferAppended=function(r){var c=this;this.timeRanges=r.timeRanges,Object.keys(this.timeRanges).forEach(function(_){var g=c.timeRanges[_];c.detectEvictedFragments(_,g)})},f.onFragBuffered=function(r){this.detectPartialFragments(r.frag)},f.hasFragment=function(r){var c=this.getFragmentKey(r);return this.fragments[c]!==void 0},f.removeFragment=function(r){var c=this.getFragmentKey(r);delete this.fragments[c]},f.removeAllFragments=function(){this.fragments=Object.create(null)},h}(y),q={search:function(h,f){for(var v=0,r=h.length-1,c=null,_=null;v<=r;){c=(v+r)/2|0,_=h[c];var g=f(_);if(g>0)v=c+1;else if(g<0)r=c-1;else return _}return null}},K=q,j=function(){function w(){}return w.isBuffered=function(f,v){try{if(f){for(var r=f.buffered,c=0;c=r.start(c)&&v<=r.end(c))return!0}}catch{}return!1},w.bufferInfo=function(f,v,r){try{if(f){var c=f.buffered,_=[],g;for(g=0;gC&&(c[g-1].end=f[_].end):c.push(f[_])}else c.push(f[_])}else c=f;for(var F=0,x,H=v,k=v,ee=0;ee=be&&v<$e)H=be,k=$e,F=k-v;else if(v+r1?c-1:0),g=1;gh?(v.duration=c-v.start,v.duration<0&&s.logger.warn("negative duration computed for frag "+v.sn+",level "+v.level+", there should be some duration drift between playlist and fragment!")):(r.duration=v.start-c,r.duration<0&&s.logger.warn("negative duration computed for frag "+r.sn+",level "+r.level+", there should be some duration drift between playlist and fragment!")):f>h?r.start=v.start+v.duration:r.start=Math.max(v.start-r.duration,0)}function xe(w,h,f,v,r,c){var _=f;if(Object(i.isFiniteNumber)(h.startPTS)){var g=Math.abs(h.startPTS-f);Object(i.isFiniteNumber)(h.deltaPTS)?h.deltaPTS=Math.max(g,h.deltaPTS):h.deltaPTS=g,_=Math.max(f,h.startPTS),f=Math.min(f,h.startPTS),v=Math.max(v,h.endPTS),r=Math.min(r,h.startDTS),c=Math.max(c,h.endDTS)}var C=f-h.start;h.start=h.startPTS=f,h.maxStartPTS=_,h.endPTS=v,h.startDTS=r,h.endDTS=c,h.duration=v-f;var F=h.sn;if(!w||Fw.endSN)return 0;var x,H,k;for(x=F-w.startSN,H=w.fragments,H[x]=h,k=x;k>0;k--)mn(H,k,k-1);for(k=x;kv.length))for(var c=0;ch?-1:0})}function Ha(w,h,f){var v=!1;return h&&h.details&&f&&(f.endCC>f.startCC||w&&w.cc=(r||0))return null;f=f||0;for(var c=0;cw&&f.start?-1:0}function Or(w,h,f){var v=Math.min(h,f.duration+(f.deltaPTS?f.deltaPTS:0))*1e3,r=f.endProgramDateTime||0;return r-v>w}var nu=250,au=2,wo=.1,Ur=.05,Tu=function(){function w(f,v,r,c){this.config=f,this.media=v,this.fragmentTracker=r,this.hls=c,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1}var h=w.prototype;return h.poll=function(v){var r=this.config,c=this.media,_=this.stalled,g=c.currentTime,C=c.seeking,F=this.seeking&&!C,x=!this.seeking&&C;if(this.seeking=C,g!==v){if(this.moved=!0,_!==null){if(this.stallReported){var H=self.performance.now()-_;s.logger.warn("playback not stuck anymore @"+g+", after "+Math.round(H)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((x||F)&&(this.stalled=null),!(c.paused||c.ended||c.playbackRate===0||!c.buffered.length)){var k=j.bufferInfo(c,g,0),ee=k.len>0,be=k.nextStart||0;if(!(!ee&&!be)){if(C){var $e=k.len>au,fn=!be||be-g>au;if($e||fn)return;this.moved=!1}if(!this.moved&&this.stalled){var _a=Math.max(be,k.start||0)-g;if(_a>0&&_a<=au){this._trySkipBufferHole(null);return}}var ea=self.performance.now();if(_===null){this.stalled=ea;return}var ca=ea-_;!C&&ca>=nu&&this._reportStall(k.len);var Ra=j.bufferInfo(c,g,r.maxBufferHole);this._tryFixBufferStall(Ra,ca)}}},h._tryFixBufferStall=function(v,r){var c=this.config,_=this.fragmentTracker,g=this.media,C=g.currentTime,F=_.getPartialFragment(C);if(F){var x=this._trySkipBufferHole(F);if(x)return}v.len>c.maxBufferHole&&r>c.highBufferWatchdogPeriod*1e3&&(s.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},h._reportStall=function(v){var r=this.hls,c=this.media,_=this.stallReported;_||(this.stallReported=!0,s.logger.warn("Playback stalling at @"+c.currentTime+" due to low buffer"),r.trigger(l.default.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:v}))},h._trySkipBufferHole=function(v){for(var r=this.config,c=this.hls,_=this.media,g=_.currentTime,C=0,F=0;F<_.buffered.length;F++){var x=_.buffered.start(F);if(g+r.maxBufferHole>=C&&g1?c-1:0),g=1;g1&&(this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)),this._tickCallCount=0)},f.doTick=function(){},h}(y);function jc(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var se={STOPPED:"STOPPED",STARTING:"STARTING",IDLE:"IDLE",PAUSED:"PAUSED",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BUFFER_FLUSHING:"BUFFER_FLUSHING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},wl=function(w){jc(h,w);function h(){return w.apply(this,arguments)||this}var f=h.prototype;return f.doTick=function(){},f.startLoad=function(){},f.stopLoad=function(){var r=this.fragCurrent;r&&(r.loader&&r.loader.abort(),this.fragmentTracker.removeFragment(r)),this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=se.STOPPED},f._streamEnded=function(r,c){var _=this.fragCurrent,g=this.fragmentTracker;if(!c.live&&_&&!_.backtracked&&_.sn===c.endSN&&!r.nextStart){var C=g.getState(_);return C===Da.PARTIAL||C===Da.OK}return!1},f.onMediaSeeking=function(){var r=this.config,c=this.media,_=this.mediaBuffer,g=this.state,C=c?c.currentTime:null,F=j.bufferInfo(_||c,C,this.config.maxBufferHole);if(Object(i.isFiniteNumber)(C)&&s.logger.log("media seeking to "+C.toFixed(3)),g===se.FRAG_LOADING){var x=this.fragCurrent;if(F.len===0&&x){var H=r.maxFragLookUpTolerance,k=x.start-H,ee=x.start+x.duration+H;Cee?(x.loader&&(s.logger.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),x.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.state=se.IDLE):s.logger.log("seeking outside of buffer but within currently loaded fragment range")}}else g===se.ENDED&&(F.len===0&&(this.fragPrevious=null,this.fragCurrent=null),this.state=se.IDLE);c&&(this.lastCurrentTime=C),this.loadedmetadata||(this.nextLoadPosition=this.startPosition=C),this.tick()},f.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},f.onHandlerDestroying=function(){this.stopLoad(),w.prototype.onHandlerDestroying.call(this)},f.onHandlerDestroyed=function(){this.state=se.STOPPED,this.fragmentTracker=null},f.computeLivePosition=function(r,c){var _=this.config.liveSyncDuration!==void 0?this.config.liveSyncDuration:this.config.liveSyncDurationCount*c.targetduration;return r+Math.max(0,c.totalduration-_)},h}(Ql);function bl(w,h){for(var f=0;f0&&r===-1&&(s.logger.log("override startPosition with lastCurrentTime @"+c.toFixed(3)),r=c),this.state=se.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=r,this.tick()}else this.forceStartLoad=!0,this.state=se.STOPPED},f.stopLoad=function(){this.forceStartLoad=!1,w.prototype.stopLoad.call(this)},f.doTick=function(){switch(this.state){case se.BUFFER_FLUSHING:this.fragLoadError=0;break;case se.IDLE:this._doTickIdle();break;case se.WAITING_LEVEL:var r=this.levels[this.level];r&&r.details&&(this.state=se.IDLE);break;case se.FRAG_LOADING_WAITING_RETRY:var c=window.performance.now(),_=this.retryDate;(!_||c>=_||this.media&&this.media.seeking)&&(s.logger.log("mediaController: retryDate reached, switch back to IDLE state"),this.state=se.IDLE);break;case se.ERROR:case se.STOPPED:case se.FRAG_LOADING:case se.PARSING:case se.PARSED:case se.ENDED:break;default:break}this._checkBuffer(),this._checkFragmentChanged()},f._doTickIdle=function(){var r=this.hls,c=r.config,_=this.media;if(!(this.levelLastLoaded===void 0||!_&&(this.startFragRequested||!c.startFragPrefetch))){var g;this.loadedmetadata?g=_.currentTime:g=this.nextLoadPosition;var C=r.nextLoadLevel,F=this.levels[C];if(!!F){var x=F.bitrate,H;x?H=Math.max(8*c.maxBufferSize/x,c.maxBufferLength):H=c.maxBufferLength,H=Math.min(H,c.maxMaxBufferLength);var k=j.bufferInfo(this.mediaBuffer?this.mediaBuffer:_,g,c.maxBufferHole),ee=k.len;if(!(ee>=H)){s.logger.trace("buffer length of "+ee.toFixed(3)+" is below max of "+H.toFixed(3)+". checking for more payload ..."),this.level=r.nextLoadLevel=C;var be=F.details;if(!be||be.live&&this.levelLastLoaded!==C){this.state=se.WAITING_LEVEL;return}if(this._streamEnded(k,be)){var $e={};this.altAudio&&($e.type="video"),this.hls.trigger(l.default.BUFFER_EOS,$e),this.state=se.ENDED;return}this._fetchPayloadOrEos(g,k,be)}}}},f._fetchPayloadOrEos=function(r,c,_){var g=this.fragPrevious,C=this.level,F=_.fragments,x=F.length;if(x!==0){var H=F[0].start,k=F[x-1].start+F[x-1].duration,ee=c.end,be;if(_.initSegment&&!_.initSegment.data)be=_.initSegment;else if(_.live){var $e=this.config.initialLiveManifestSize;if(x<$e){s.logger.warn("Can not start playback of a level, reason: not enough fragments "+x+" < "+$e);return}if(be=this._ensureFragmentAtLivePoint(_,ee,H,k,g,F,x),be===null)return}else ee$e&&$e>k.currentTime&&(s.logger.log("buffer end: "+c.toFixed(3)+" is located too far from the end of live sliding playlist, reset currentTime to : "+$e.toFixed(3)),k.currentTime=$e),this.nextLoadPosition=$e}if(r.PTSKnown&&c>g&&k&&k.readyState)return null;if(this.startFragRequested&&!r.PTSKnown){if(C)if(r.hasProgramDateTime)s.logger.log("live playlist, switching playlist, load frag with same PDT: "+C.programDateTime),ee=jo(F,C.endProgramDateTime,H.maxFragLookUpTolerance);else{var fn=C.sn+1;if(fn>=r.startSN&&fn<=r.endSN){var _a=F[fn-r.startSN];C.cc===_a.cc&&(ee=_a,s.logger.log("live playlist, switching playlist, load frag with next SN: "+ee.sn))}ee||(ee=K.search(F,function(ea){return C.cc-ea.cc}),ee&&s.logger.log("live playlist, switching playlist, load frag with same CC: "+ee.sn))}ee||(ee=F[Math.min(x-1,Math.round(x/2))],s.logger.log("live playlist, switching playlist, unknown, load middle frag : "+ee.sn))}return ee},f._findFragment=function(r,c,_,g,C,F,x){var H=this.hls.config,k;if(CF-H.maxFragLookUpTolerance?0:H.maxFragLookUpTolerance;k=Cr(c,g,C,ee)}else k=g[_-1];if(k){var be=k.sn-x.startSN,$e=c&&k.level===c.level,fn=g[be-1],_a=g[be+1];if(c&&k.sn===c.sn)if($e&&!k.backtracked)if(k.snH.maxBufferHole&&c.dropped&&be?(k=fn,s.logger.warn("Previous fragment was dropped with large PTS gap between audio and video. Maybe fragment is not starting with a keyframe? Loading previous one to try to overcome this")):(k=_a,s.logger.log("Re-loading fragment with SN: "+k.sn))}else k=null;else k.backtracked&&(_a&&_a.backtracked?(s.logger.warn("Already backtracked from fragment "+_a.sn+", will not backtrack to fragment "+k.sn+". Loading fragment "+_a.sn),k=_a):(s.logger.warn("Loaded fragment with dropped frames, backtracking 1 segment to find a keyframe"),k.dropped=0,fn?(k=fn,k.backtracked=!0):be&&(k=null)))}return k},f._loadKey=function(r){this.state=se.KEY_LOADING,this.hls.trigger(l.default.KEY_LOADING,{frag:r})},f._loadFragment=function(r){var c=this.fragmentTracker.getState(r);this.fragCurrent=r,r.sn!=="initSegment"&&(this.startFragRequested=!0),Object(i.isFiniteNumber)(r.sn)&&!r.bitrateTest&&(this.nextLoadPosition=r.start+r.duration),r.backtracked||c===Da.NOT_LOADED||c===Da.PARTIAL?(r.autoLevel=this.hls.autoLevelEnabled,r.bitrateTest=this.bitrateTest,this.hls.trigger(l.default.FRAG_LOADING,{frag:r}),this.demuxer||(this.demuxer=new Ge(this.hls,"main")),this.state=se.FRAG_LOADING):c===Da.APPENDING&&this._reduceMaxBufferLength(r.duration)&&this.fragmentTracker.removeFragment(r)},f.getBufferedFrag=function(r){return this.fragmentTracker.getBufferedFrag(r,b.MAIN)},f.followingBufferedFrag=function(r){return r?this.getBufferedFrag(r.endPTS+.5):null},f._checkFragmentChanged=function(){var r,c,_=this.media;if(_&&_.readyState&&_.seeking===!1&&(c=_.currentTime,c>this.lastCurrentTime&&(this.lastCurrentTime=c),j.isBuffered(_,c)?r=this.getBufferedFrag(c):j.isBuffered(_,c+.1)&&(r=this.getBufferedFrag(c+.1)),r)){var g=r;if(g!==this.fragPlaying){this.hls.trigger(l.default.FRAG_CHANGED,{frag:g});var C=g.level;(!this.fragPlaying||this.fragPlaying.level!==C)&&this.hls.trigger(l.default.LEVEL_SWITCHED,{level:C}),this.fragPlaying=g}}},f.immediateLevelSwitch=function(){if(s.logger.log("immediateLevelSwitch"),!this.immediateSwitch){this.immediateSwitch=!0;var r=this.media,c;r?(c=r.paused,r.pause()):c=!0,this.previouslyPaused=c}var _=this.fragCurrent;_&&_.loader&&_.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},f.immediateLevelSwitchEnd=function(){var r=this.media;r&&r.buffered.length&&(this.immediateSwitch=!1,j.isBuffered(r,r.currentTime)&&(r.currentTime-=1e-4),this.previouslyPaused||r.play())},f.nextLevelSwitch=function(){var r=this.media;if(r&&r.readyState){var c,_,g;if(_=this.getBufferedFrag(r.currentTime),_&&_.startPTS>1&&this.flushMainBuffer(0,_.startPTS-1),r.paused)c=0;else{var C=this.hls.nextLoadLevel,F=this.levels[C],x=this.fragLastKbps;x&&this.fragCurrent?c=this.fragCurrent.duration*F.bitrate/(1e3*x)+1:c=0}if(g=this.getBufferedFrag(r.currentTime+c),g&&(g=this.followingBufferedFrag(g),g)){var H=this.fragCurrent;H&&H.loader&&H.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(g.maxStartPTS,Number.POSITIVE_INFINITY)}}},f.flushMainBuffer=function(r,c){this.state=se.BUFFER_FLUSHING;var _={startOffset:r,endOffset:c};this.altAudio&&(_.type="video"),this.hls.trigger(l.default.BUFFER_FLUSHING,_)},f.onMediaAttached=function(r){var c=this.media=this.mediaBuffer=r.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),this.onvended=this.onMediaEnded.bind(this),c.addEventListener("seeking",this.onvseeking),c.addEventListener("seeked",this.onvseeked),c.addEventListener("ended",this.onvended);var _=this.config;this.levels&&_.autoStartLoad&&this.hls.startLoad(_.startPosition),this.gapController=new Tu(_,c,this.fragmentTracker,this.hls)},f.onMediaDetaching=function(){var r=this.media;r&&r.ended&&(s.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0);var c=this.levels;c&&c.forEach(function(_){_.details&&_.details.fragments.forEach(function(g){g.backtracked=void 0})}),r&&(r.removeEventListener("seeking",this.onvseeking),r.removeEventListener("seeked",this.onvseeked),r.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.fragmentTracker.removeAllFragments(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.stopLoad()},f.onMediaSeeked=function(){var r=this.media,c=r?r.currentTime:void 0;Object(i.isFiniteNumber)(c)&&s.logger.log("media seeked to "+c.toFixed(3)),this.tick()},f.onManifestLoading=function(){s.logger.log("trigger BUFFER_RESET"),this.hls.trigger(l.default.BUFFER_RESET),this.fragmentTracker.removeAllFragments(),this.stalled=!1,this.startPosition=this.lastCurrentTime=0},f.onManifestParsed=function(r){var c=!1,_=!1,g;r.levels.forEach(function(F){g=F.audioCodec,g&&(g.indexOf("mp4a.40.2")!==-1&&(c=!0),g.indexOf("mp4a.40.5")!==-1&&(_=!0))}),this.audioCodecSwitch=c&&_,this.audioCodecSwitch&&s.logger.log("both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.altAudio=r.altAudio,this.levels=r.levels,this.startFragRequested=!1;var C=this.config;(C.autoStartLoad||this.forceStartLoad)&&this.hls.startLoad(C.startPosition)},f.onLevelLoaded=function(r){var c=r.details,_=r.level,g=this.levels[this.levelLastLoaded],C=this.levels[_],F=c.totalduration,x=0;if(s.logger.log("level "+_+" loaded ["+c.startSN+","+c.endSN+"],duration:"+F),c.live){var H=C.details;H&&c.fragments.length>0?(wn(H,c),x=c.fragments[0].start,this.liveSyncPosition=this.computeLivePosition(x,H),c.PTSKnown&&Object(i.isFiniteNumber)(x)?s.logger.log("live playlist sliding:"+x.toFixed(3)):(s.logger.log("live playlist - outdated PTS, unknown sliding"),Sr(this.fragPrevious,g,c))):(s.logger.log("live playlist - first load, unknown sliding"),c.PTSKnown=!1,Sr(this.fragPrevious,g,c))}else c.PTSKnown=!1;if(C.details=c,this.levelLastLoaded=_,this.hls.trigger(l.default.LEVEL_UPDATED,{details:c,level:_}),this.startFragRequested===!1){if(this.startPosition===-1||this.lastCurrentTime===-1){var k=c.startTimeOffset;Object(i.isFiniteNumber)(k)?(k<0&&(s.logger.log("negative start time offset "+k+", count from end of last fragment"),k=x+F+k),s.logger.log("start time offset found in playlist, adjust startPosition to "+k),this.startPosition=k):c.live?(this.startPosition=this.computeLivePosition(x,c),s.logger.log("configure startPosition to "+this.startPosition)):this.startPosition=0,this.lastCurrentTime=this.startPosition}this.nextLoadPosition=this.startPosition}this.state===se.WAITING_LEVEL&&(this.state=se.IDLE),this.tick()},f.onKeyLoaded=function(){this.state===se.KEY_LOADING&&(this.state=se.IDLE,this.tick())},f.onFragLoaded=function(r){var c=this.fragCurrent,_=this.hls,g=this.levels,C=this.media,F=r.frag;if(this.state===se.FRAG_LOADING&&c&&F.type==="main"&&F.level===c.level&&F.sn===c.sn){var x=r.stats,H=g[c.level],k=H.details;if(this.bitrateTest=!1,this.stats=x,s.logger.log("Loaded "+c.sn+" of ["+k.startSN+" ,"+k.endSN+"],level "+c.level),F.bitrateTest&&_.nextLoadLevel)this.state=se.IDLE,this.startFragRequested=!1,x.tparsed=x.tbuffered=window.performance.now(),_.trigger(l.default.FRAG_BUFFERED,{stats:x,frag:c,id:"main"}),this.tick();else if(F.sn==="initSegment")this.state=se.IDLE,x.tparsed=x.tbuffered=window.performance.now(),k.initSegment.data=r.payload,_.trigger(l.default.FRAG_BUFFERED,{stats:x,frag:c,id:"main"}),this.tick();else{s.logger.log("Parsing "+c.sn+" of ["+k.startSN+" ,"+k.endSN+"],level "+c.level+", cc "+c.cc),this.state=se.PARSING,this.pendingBuffering=!0,this.appended=!1,F.bitrateTest&&(F.bitrateTest=!1,this.fragmentTracker.onFragLoaded({frag:F}));var ee=!(C&&C.seeking)&&(k.PTSKnown||!k.live),be=k.initSegment?k.initSegment.data:[],$e=this._getAudioCodec(H),fn=this.demuxer=this.demuxer||new Ge(this.hls,"main");fn.push(r.payload,be,$e,H.videoCodec,c,k.totalduration,ee)}}this.fragLoadError=0},f.onFragParsingInitSegment=function(r){var c=this.fragCurrent,_=r.frag;if(c&&r.id==="main"&&_.sn===c.sn&&_.level===c.level&&this.state===se.PARSING){var g=r.tracks,C,F;if(g.audio&&this.altAudio&&delete g.audio,F=g.audio,F){var x=this.levels[this.level].audioCodec,H=navigator.userAgent.toLowerCase();x&&this.audioCodecSwap&&(s.logger.log("swapping playlist audio codec"),x.indexOf("mp4a.40.5")!==-1?x="mp4a.40.2":x="mp4a.40.5"),this.audioCodecSwitch&&F.metadata.channelCount!==1&&H.indexOf("firefox")===-1&&(x="mp4a.40.5"),H.indexOf("android")!==-1&&F.container!=="audio/mpeg"&&(x="mp4a.40.2",s.logger.log("Android: force audio codec to "+x)),F.levelCodec=x,F.id=r.id}F=g.video,F&&(F.levelCodec=this.levels[this.level].videoCodec,F.id=r.id),this.hls.trigger(l.default.BUFFER_CODECS,g);for(C in g){F=g[C],s.logger.log("main track:"+C+",container:"+F.container+",codecs[level/parsed]=["+F.levelCodec+"/"+F.codec+"]");var k=F.initSegment;k&&(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(l.default.BUFFER_APPENDING,{type:C,data:k,parent:"main",content:"initSegment"}))}this.tick()}},f.onFragParsingData=function(r){var c=this,_=this.fragCurrent,g=r.frag;if(_&&r.id==="main"&&g.sn===_.sn&&g.level===_.level&&!(r.type==="audio"&&this.altAudio)&&this.state===se.PARSING){var C=this.levels[this.level],F=_;if(Object(i.isFiniteNumber)(r.endPTS)||(r.endPTS=r.startPTS+_.duration,r.endDTS=r.startDTS+_.duration),r.hasAudio===!0&&F.addElementaryStream(oe.AUDIO),r.hasVideo===!0&&F.addElementaryStream(oe.VIDEO),s.logger.log("Parsed "+r.type+",PTS:["+r.startPTS.toFixed(3)+","+r.endPTS.toFixed(3)+"],DTS:["+r.startDTS.toFixed(3)+"/"+r.endDTS.toFixed(3)+"],nb:"+r.nb+",dropped:"+(r.dropped||0)),r.type==="video")if(F.dropped=r.dropped,F.dropped)if(F.backtracked)s.logger.warn("Already backtracked on this fragment, appending with the gap",F.sn);else{var x=C.details;if(x&&F.sn===x.startSN)s.logger.warn("missing video frame(s) on first frag, appending with gap",F.sn);else{s.logger.warn("missing video frame(s), backtracking fragment",F.sn),this.fragmentTracker.removeFragment(F),F.backtracked=!0,this.nextLoadPosition=r.startPTS,this.state=se.IDLE,this.fragPrevious=F,this.tick();return}}else F.backtracked=!1;var H=xe(C.details,F,r.startPTS,r.endPTS,r.startDTS,r.endDTS),k=this.hls;k.trigger(l.default.LEVEL_PTS_UPDATED,{details:C.details,level:this.level,drift:H,type:r.type,start:r.startPTS,end:r.endPTS}),[r.data1,r.data2].forEach(function(ee){ee&&ee.length&&c.state===se.PARSING&&(c.appended=!0,c.pendingBuffering=!0,k.trigger(l.default.BUFFER_APPENDING,{type:r.type,data:ee,parent:"main",content:"data"}))}),this.tick()}},f.onFragParsed=function(r){var c=this.fragCurrent,_=r.frag;c&&r.id==="main"&&_.sn===c.sn&&_.level===c.level&&this.state===se.PARSING&&(this.stats.tparsed=window.performance.now(),this.state=se.PARSED,this._checkAppendedParsed())},f.onAudioTrackSwitching=function(r){var c=!!r.url,_=r.id;if(!c){if(this.mediaBuffer!==this.media){s.logger.log("switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var g=this.fragCurrent;g.loader&&(s.logger.log("switching to main audio track, cancel main fragment load"),g.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=se.IDLE}var C=this.hls;C.trigger(l.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),C.trigger(l.default.AUDIO_TRACK_SWITCHED,{id:_}),this.altAudio=!1}},f.onAudioTrackSwitched=function(r){var c=r.id,_=!!this.hls.audioTracks[c].url;if(_){var g=this.videoBuffer;g&&this.mediaBuffer!==g&&(s.logger.log("switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=g)}this.altAudio=_,this.tick()},f.onBufferCreated=function(r){var c=r.tracks,_,g,C=!1;for(var F in c){var x=c[F];x.id==="main"?(g=F,_=x,F==="video"&&(this.videoBuffer=c[F].buffer)):C=!0}C&&_?(s.logger.log("alternate track found, use "+g+".buffered to schedule main fragment loading"),this.mediaBuffer=_.buffer):this.mediaBuffer=this.media},f.onBufferAppended=function(r){if(r.parent==="main"){var c=this.state;(c===se.PARSING||c===se.PARSED)&&(this.pendingBuffering=r.pending>0,this._checkAppendedParsed())}},f._checkAppendedParsed=function(){if(this.state===se.PARSED&&(!this.appended||!this.pendingBuffering)){var r=this.fragCurrent;if(r){var c=this.mediaBuffer?this.mediaBuffer:this.media;s.logger.log("main buffered : "+pt.toString(c.buffered)),this.fragPrevious=r;var _=this.stats;_.tbuffered=window.performance.now(),this.fragLastKbps=Math.round(8*_.total/(_.tbuffered-_.tfirst)),this.hls.trigger(l.default.FRAG_BUFFERED,{stats:_,frag:r,id:"main"}),this.state=se.IDLE}this.tick()}},f.onError=function(r){var c=r.frag||this.fragCurrent;if(!(c&&c.type!=="main")){var _=!!this.media&&j.isBuffered(this.media,this.media.currentTime)&&j.isBuffered(this.media,this.media.currentTime+.5);switch(r.details){case u.ErrorDetails.FRAG_LOAD_ERROR:case u.ErrorDetails.FRAG_LOAD_TIMEOUT:case u.ErrorDetails.KEY_LOAD_ERROR:case u.ErrorDetails.KEY_LOAD_TIMEOUT:if(!r.fatal)if(this.fragLoadError+1<=this.config.fragLoadingMaxRetry){var g=Math.min(Math.pow(2,this.fragLoadError)*this.config.fragLoadingRetryDelay,this.config.fragLoadingMaxRetryTimeout);s.logger.warn("mediaController: frag loading failed, retry in "+g+" ms"),this.retryDate=window.performance.now()+g,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.fragLoadError++,this.state=se.FRAG_LOADING_WAITING_RETRY}else s.logger.error("mediaController: "+r.details+" reaches max retry, redispatch as fatal ..."),r.fatal=!0,this.state=se.ERROR;break;case u.ErrorDetails.LEVEL_LOAD_ERROR:case u.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==se.ERROR&&(r.fatal?(this.state=se.ERROR,s.logger.warn("streamController: "+r.details+",switch to "+this.state+" state ...")):!r.levelRetry&&this.state===se.WAITING_LEVEL&&(this.state=se.IDLE));break;case u.ErrorDetails.BUFFER_FULL_ERROR:r.parent==="main"&&(this.state===se.PARSING||this.state===se.PARSED)&&(_?(this._reduceMaxBufferLength(this.config.maxBufferLength),this.state=se.IDLE):(s.logger.warn("buffer full error also media.currentTime is not buffered, flush everything"),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)));break;default:break}}},f._reduceMaxBufferLength=function(r){var c=this.config;return c.maxMaxBufferLength>=r?(c.maxMaxBufferLength/=2,s.logger.warn("main:reduce max buffer length to "+c.maxMaxBufferLength+"s"),!0):!1},f._checkBuffer=function(){var r=this.media;if(!(!r||r.readyState===0)){var c=this.mediaBuffer?this.mediaBuffer:r,_=c.buffered;!this.loadedmetadata&&_.length?(this.loadedmetadata=!0,this._seekToStartPos()):this.immediateSwitch?this.immediateLevelSwitchEnd():this.gapController.poll(this.lastCurrentTime,_)}},f.onFragLoadEmergencyAborted=function(){this.state=se.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tick()},f.onBufferFlushed=function(){var r=this.mediaBuffer?this.mediaBuffer:this.media;r&&this.fragmentTracker.detectEvictedFragments(oe.VIDEO,r.buffered),this.state=se.IDLE,this.fragPrevious=null},f.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},f._seekToStartPos=function(){var r=this.media,c=r.currentTime,_=r.seeking?c:this.startPosition;c!==_&&_>=0&&(s.logger.log("target start position not buffered, seek to buffered.start(0) "+_+" from current time "+c+" "),r.currentTime=_)},f._getAudioCodec=function(r){var c=this.config.defaultAudioCodec||r.audioCodec;return this.audioCodecSwap&&(s.logger.log("swapping playlist audio codec"),c&&(c.indexOf("mp4a.40.5")!==-1?c="mp4a.40.2":c="mp4a.40.5")),c},Oc(h,[{key:"state",set:function(r){if(this.state!==r){var c=this.state;this._state=r,s.logger.log("main stream-controller: "+c+"->"+r),this.hls.trigger(l.default.STREAM_STATE_TRANSITION,{previousState:c,nextState:r})}},get:function(){return this._state}},{key:"currentLevel",get:function(){var r=this.media;if(r){var c=this.getBufferedFrag(r.currentTime);if(c)return c.level}return-1}},{key:"nextBufferedFrag",get:function(){var r=this.media;return r?this.followingBufferedFrag(this.getBufferedFrag(r.currentTime)):null}},{key:"nextLevel",get:function(){var r=this.nextBufferedFrag;return r?r.level:-1}},{key:"liveSyncPosition",get:function(){return this._liveSyncPosition},set:function(r){this._liveSyncPosition=r}}]),h}(wl),ef=dd;function W_(w,h){for(var f=0;f0){g=c[0].bitrate,c.sort(function(ee,be){return ee.bitrate-be.bitrate}),this._levels=c;for(var k=0;k=0&&r1&&H.loadError0){var c=this.currentLevelIndex,_=r.urlId,g=r.url[_];s.logger.log("Attempt loading level index "+c+" with URL-id "+_),this.hls.trigger(l.default.LEVEL_LOADING,{url:g,level:c,id:_})}}},$_(h,[{key:"levels",get:function(){return this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(r){var c=this._levels;c&&(r=Math.min(r,c.length-1),(this.currentLevelIndex!==r||!c[r].details)&&this.setLevelInternal(r))}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(r){this.manualLevelIndex=r,this._startLevel===void 0&&(this._startLevel=r),r!==-1&&(this.level=r)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(r){this._firstLevel=r}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var r=this.hls.config.startLevel;return r!==void 0?r:this._firstLevel}else return this._startLevel},set:function(r){this._startLevel=r}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(r){this.level=r,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=r)}}]),h}(y),V_=a("./src/demux/id3.js");function JD(w,h){var f;try{f=new Event("addtrack")}catch{f=document.createEvent("Event"),f.initEvent("addtrack",!1,!1)}f.track=w,h.dispatchEvent(f)}function Hs(w){if(w&&w.cues)for(;w.cues.length>0;)w.removeCue(w.cues[0])}function DE(w,h){if(hw[w.length-1].endTime)return w[w.length-1];for(var f=0,v=w.length-1;f<=v;){var r=Math.floor((v+f)/2);if(hw[r].endTime)f=r+1;else return w[r]}return w[f].endTime-hH&&(s.logger.warn("detected an id3 sample with endTime < startTime, adjusting endTime to (startTime + 0.25)"),H=x+.25);for(var k=0;k=this.minWeight_},h.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},h.destroy=function(){},w}(),bE=wE;function zD(w,h){for(var f=0;f500*_.duration/H){var k=r.levels,ee=Math.max(1,F.bw?F.bw/8:F.loaded*1e3/x),be=k[_.level],$e=be.realBitrate?Math.max(be.realBitrate,be.bitrate):be.bitrate,fn=F.total?F.total:Math.max(F.loaded,Math.round(_.duration*$e/8)),_a=c.currentTime,ea=(fn-F.loaded)/ee,ca=(j.bufferInfo(c,_a,r.config.maxBufferHole).end-_a)/H;if(ca<2*_.duration/H&&ea>ca){var Ra,Oa;for(Oa=_.level-1;Oa>C;Oa--){var Cu=k[Oa].realBitrate?Math.max(k[Oa].realBitrate,k[Oa].bitrate):k[Oa].bitrate,Oo=_.duration*Cu/(8*.8*ee);if(Oo=g;ee--){var be=k[ee];if(!!be){var $e=be.details,fn=$e?$e.totalduration/$e.fragments.length:c,_a=$e?$e.live:!1,ea=void 0;ee<=r?ea=x*_:ea=H*_;var ca=k[ee].realBitrate?Math.max(k[ee].realBitrate,k[ee].bitrate):k[ee].bitrate,Ra=ca*fn/ea;if(s.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+ee+"/"+Math.round(ea)+"/"+ca+"/"+fn+"/"+F+"/"+Ra),ea>ca&&(!Ra||_a&&!this.bitrateTestDelay||Ra=0)return fn;s.logger.trace("rebuffering expected to happen, lets try to find a quality level minimizing the rebuffering");var _a=H?Math.min(H,g.maxStarvationDelay):g.maxStarvationDelay,ea=g.abrBandWidthFactor,ca=g.abrBandWidthUpFactor;if($e===0){var Ra=this.bitrateTestDelay;if(Ra){var Oa=H?Math.min(H,g.maxLoadingDelay):g.maxLoadingDelay;_a=Oa-Ra,s.logger.trace("bitrate test took "+Math.round(1e3*Ra)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*_a)+" ms"),ea=ca=1}}return fn=this._findBestLevel(x,H,be,C,c,$e+_a,ea,ca,_),Math.max(fn,0)}}]),h}(y),CE=SE;function FE(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var QD=W(),GE=function(w){FE(h,w);function h(v){var r;return r=w.call(this,v,l.default.MEDIA_ATTACHING,l.default.MEDIA_DETACHING,l.default.MANIFEST_PARSED,l.default.BUFFER_RESET,l.default.BUFFER_APPENDING,l.default.BUFFER_CODECS,l.default.BUFFER_EOS,l.default.BUFFER_FLUSHING,l.default.LEVEL_PTS_UPDATED,l.default.LEVEL_UPDATED)||this,r._msDuration=null,r._levelDuration=null,r._levelTargetDuration=10,r._live=null,r._objectUrl=null,r._needsFlush=!1,r._needsEos=!1,r.config=void 0,r.audioTimestampOffset=void 0,r.bufferCodecEventsExpected=0,r._bufferCodecEventsTotal=0,r.media=null,r.mediaSource=null,r.segments=[],r.parent=void 0,r.appending=!1,r.appended=0,r.appendError=0,r.flushBufferCounter=0,r.tracks={},r.pendingTracks={},r.sourceBuffer={},r.flushRange=[],r._onMediaSourceOpen=function(){s.logger.log("media source opened"),r.hls.trigger(l.default.MEDIA_ATTACHED,{media:r.media});var c=r.mediaSource;c&&c.removeEventListener("sourceopen",r._onMediaSourceOpen),r.checkPendingTracks()},r._onMediaSourceClose=function(){s.logger.log("media source closed")},r._onMediaSourceEnded=function(){s.logger.log("media source ended")},r._onSBUpdateEnd=function(){if(r.audioTimestampOffset&&r.sourceBuffer.audio){var c=r.sourceBuffer.audio;s.logger.warn("change mpeg audio timestamp offset from "+c.timestampOffset+" to "+r.audioTimestampOffset),c.timestampOffset=r.audioTimestampOffset,delete r.audioTimestampOffset}r._needsFlush&&r.doFlush(),r._needsEos&&r.checkEos(),r.appending=!1;var _=r.parent,g=r.segments.reduce(function(k,ee){return ee.parent===_?k+1:k},0),C={},F=r.sourceBuffer;for(var x in F){var H=F[x];if(!H)throw Error("handling source buffer update end error: source buffer for "+x+" uninitilized and unable to update buffered TimeRanges.");C[x]=H.buffered}r.hls.trigger(l.default.BUFFER_APPENDED,{parent:_,pending:g,timeRanges:C}),r._needsFlush||r.doAppending(),r.updateMediaElementDuration(),g===0&&r.flushLiveBackBuffer()},r._onSBUpdateError=function(c){s.logger.error("sourceBuffer error:",c),r.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1})},r.config=v.config,r}var f=h.prototype;return f.destroy=function(){y.prototype.destroy.call(this)},f.onLevelPtsUpdated=function(r){var c=r.type,_=this.tracks.audio;if(c==="audio"&&_&&_.container==="audio/mpeg"){var g=this.sourceBuffer.audio;if(!g)throw Error("Level PTS Updated and source buffer for audio uninitalized");var C=Math.abs(g.timestampOffset-r.start);if(C>.1){var F=g.updating;try{g.abort()}catch(x){s.logger.warn("can not abort audio buffer: "+x)}F?this.audioTimestampOffset=r.start:(s.logger.warn("change mpeg audio timestamp offset from "+g.timestampOffset+" to "+r.start),g.timestampOffset=r.start)}}},f.onManifestParsed=function(r){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r.altAudio?2:1,s.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},f.onMediaAttaching=function(r){var c=this.media=r.media;if(c&&QD){var _=this.mediaSource=new QD;_.addEventListener("sourceopen",this._onMediaSourceOpen),_.addEventListener("sourceended",this._onMediaSourceEnded),_.addEventListener("sourceclose",this._onMediaSourceClose),c.src=window.URL.createObjectURL(_),this._objectUrl=c.src}},f.onMediaDetaching=function(){s.logger.log("media source detaching");var r=this.mediaSource;if(r){if(r.readyState==="open")try{r.endOfStream()}catch(c){s.logger.warn("onMediaDetaching:"+c.message+" while calling endOfStream")}r.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("sourceended",this._onMediaSourceEnded),r.removeEventListener("sourceclose",this._onMediaSourceClose),this.media&&(this._objectUrl&&window.URL.revokeObjectURL(this._objectUrl),this.media.src===this._objectUrl?(this.media.removeAttribute("src"),this.media.load()):s.logger.warn("media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={},this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0}this.hls.trigger(l.default.MEDIA_DETACHED)},f.checkPendingTracks=function(){var r=this.bufferCodecEventsExpected,c=this.pendingTracks,_=Object.keys(c).length;(_&&!r||_===2)&&(this.createSourceBuffers(c),this.pendingTracks={},this.doAppending())},f.onBufferReset=function(){var r=this.sourceBuffer;for(var c in r){var _=r[c];try{_&&(this.mediaSource&&this.mediaSource.removeSourceBuffer(_),_.removeEventListener("updateend",this._onSBUpdateEnd),_.removeEventListener("error",this._onSBUpdateError))}catch{}}this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0},f.onBufferCodecs=function(r){var c=this;Object.keys(this.sourceBuffer).length||(Object.keys(r).forEach(function(_){c.pendingTracks[_]=r[_]}),this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks())},f.createSourceBuffers=function(r){var c=this.sourceBuffer,_=this.mediaSource;if(!_)throw Error("createSourceBuffers called when mediaSource was null");for(var g in r)if(!c[g]){var C=r[g];if(!C)throw Error("source buffer exists for track "+g+", however track does not");var F=C.levelCodec||C.codec,x=C.container+";codecs="+F;s.logger.log("creating sourceBuffer("+x+")");try{var H=c[g]=_.addSourceBuffer(x);H.addEventListener("updateend",this._onSBUpdateEnd),H.addEventListener("error",this._onSBUpdateError),this.tracks[g]={buffer:H,codec:F,id:C.id,container:C.container,levelCodec:C.levelCodec}}catch(k){s.logger.error("error while trying to add sourceBuffer:"+k.message),this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,err:k,mimeType:x})}}this.hls.trigger(l.default.BUFFER_CREATED,{tracks:this.tracks})},f.onBufferAppending=function(r){this._needsFlush||(this.segments?this.segments.push(r):this.segments=[r],this.doAppending())},f.onBufferEos=function(r){for(var c in this.sourceBuffer)if(!r.type||r.type===c){var _=this.sourceBuffer[c];_&&!_.ended&&(_.ended=!0,s.logger.log(c+" sourceBuffer now EOS"))}this.checkEos()},f.checkEos=function(){var r=this.sourceBuffer,c=this.mediaSource;if(!c||c.readyState!=="open"){this._needsEos=!1;return}for(var _ in r){var g=r[_];if(!!g){if(!g.ended)return;if(g.updating){this._needsEos=!0;return}}}s.logger.log("all media data are available, signal endOfStream() to MediaSource and stop loading fragment");try{c.endOfStream()}catch{s.logger.warn("exception while calling mediaSource.endOfStream()")}this._needsEos=!1},f.onBufferFlushing=function(r){r.type?this.flushRange.push({start:r.startOffset,end:r.endOffset,type:r.type}):(this.flushRange.push({start:r.startOffset,end:r.endOffset,type:"video"}),this.flushRange.push({start:r.startOffset,end:r.endOffset,type:"audio"})),this.flushBufferCounter=0,this.doFlush()},f.flushLiveBackBuffer=function(){if(!!this._live){var r=this.config.liveBackBufferLength;if(!(!isFinite(r)||r<0)){if(!this.media){s.logger.error("flushLiveBackBuffer called without attaching media");return}for(var c=this.media.currentTime,_=this.sourceBuffer,g=Object.keys(_),C=c-Math.max(r,this._levelTargetDuration),F=g.length-1;F>=0;F--){var x=g[F],H=_[x];if(H){var k=H.buffered;k.length>0&&C>k.start(0)&&this.removeBufferRange(x,H,0,C)&&this.hls.trigger(l.default.LIVE_BACK_BUFFER_REACHED,{bufferEnd:C})}}}}},f.onLevelUpdated=function(r){var c=r.details;c.fragments.length>0&&(this._levelDuration=c.totalduration+c.fragments[0].start,this._levelTargetDuration=c.averagetargetduration||c.targetduration||10,this._live=c.live,this.updateMediaElementDuration())},f.updateMediaElementDuration=function(){var r=this.config,c;if(!(this._levelDuration===null||!this.media||!this.mediaSource||!this.sourceBuffer||this.media.readyState===0||this.mediaSource.readyState!=="open")){for(var _ in this.sourceBuffer){var g=this.sourceBuffer[_];if(g&&g.updating===!0)return}c=this.media.duration,this._msDuration===null&&(this._msDuration=this.mediaSource.duration),this._live===!0&&r.liveDurationInfinity===!0?(s.logger.log("Media Source duration is set to Infinity"),this._msDuration=this.mediaSource.duration=1/0):(this._levelDuration>this._msDuration&&this._levelDuration>c||!Object(i.isFiniteNumber)(c))&&(s.logger.log("Updating Media Source duration to "+this._levelDuration.toFixed(3)),this._msDuration=this.mediaSource.duration=this._levelDuration)}},f.doFlush=function(){for(;this.flushRange.length;){var r=this.flushRange[0];if(this.flushBuffer(r.start,r.end,r.type))this.flushRange.shift(),this.flushBufferCounter=0;else{this._needsFlush=!0;return}}if(this.flushRange.length===0){this._needsFlush=!1;var c=0,_=this.sourceBuffer;try{for(var g in _){var C=_[g];C&&(c+=C.buffered.length)}}catch{s.logger.error("error while accessing sourceBuffer.buffered")}this.appended=c,this.hls.trigger(l.default.BUFFER_FLUSHED)}},f.doAppending=function(){var r=this.config,c=this.hls,_=this.segments,g=this.sourceBuffer;if(!!Object.keys(g).length){if(!this.media||this.media.error){this.segments=[],s.logger.error("trying to append although a media error occured, flush segment and abort");return}if(!this.appending){var C=_.shift();if(!!C)try{var F=g[C.type];if(!F){this._onSBUpdateEnd();return}if(F.updating){_.unshift(C);return}F.ended=!1,this.parent=C.parent,F.appendBuffer(C.data),this.appendError=0,this.appended++,this.appending=!0}catch(H){s.logger.error("error while trying to append buffer:"+H.message),_.unshift(C);var x={type:u.ErrorTypes.MEDIA_ERROR,parent:C.parent,details:"",fatal:!1};H.code===22?(this.segments=[],x.details=u.ErrorDetails.BUFFER_FULL_ERROR):(this.appendError++,x.details=u.ErrorDetails.BUFFER_APPEND_ERROR,this.appendError>r.appendErrorMaxRetry&&(s.logger.log("fail "+r.appendErrorMaxRetry+" times to append segment in sourceBuffer"),this.segments=[],x.fatal=!0)),c.trigger(l.default.ERROR,x)}}}},f.flushBuffer=function(r,c,_){var g=this.sourceBuffer;if(!Object.keys(g).length)return!0;var C="null";if(this.media&&(C=this.media.currentTime.toFixed(3)),s.logger.log("flushBuffer,pos/start/end: "+C+"/"+r+"/"+c),this.flushBufferCounter>=this.appended)return s.logger.warn("abort flushing too many retries"),!0;var F=g[_];if(F){if(F.ended=!1,F.updating)return s.logger.warn("cannot flush, sb updating in progress"),!1;if(this.removeBufferRange(_,F,r,c))return this.flushBufferCounter++,!1}return s.logger.log("buffer flushed"),!0},f.removeBufferRange=function(r,c,_,g){try{for(var C=0;C.5){var ee="null";return this.media&&(ee=this.media.currentTime.toString()),s.logger.log("sb remove "+r+" ["+H+","+k+"], of ["+F+","+x+"], pos:"+ee),c.remove(H,k),!0}}}catch(be){s.logger.warn("removeBufferRange failed",be)}return!1},h}(y),ME=GE;function KD(w,h){for(var f=0;fthis.autoLevelCapping&&c.streamController.nextLevelSwitch(),this.autoLevelCapping=c.autoLevelCapping}}},f.getMaxLevel=function(r){var c=this;if(!this.levels)return-1;var _=this.levels.filter(function(g,C){return h.isLevelAllowed(C,c.restrictedLevels)&&C<=r});return h.getMaxLevelByMediaSize(_,this.mediaWidth,this.mediaHeight)},f.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),clearInterval(this.timer),this.timer=setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},f.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=null,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(this.timer=clearInterval(this.timer),this.timer=null)},h.isLevelAllowed=function(r,c){return c===void 0&&(c=[]),c.indexOf(r)===-1},h.getMaxLevelByMediaSize=function(r,c,_){if(!r||r&&!r.length)return-1;for(var g=function(k,ee){return ee?k.width!==ee.width||k.height!==ee.height:!0},C=r.length-1,F=0;F=c||x.height>=_)&&g(x,r[F+1])){C=F;break}}return C},AE(h,[{key:"mediaWidth",get:function(){var r,c=this.media;return c&&(r=c.width||c.clientWidth||c.offsetWidth,r*=h.contentScaleFactor),r}},{key:"mediaHeight",get:function(){var r,c=this.media;return c&&(r=c.height||c.clientHeight||c.offsetHeight,r*=h.contentScaleFactor),r}}],[{key:"contentScaleFactor",get:function(){var r=1;try{r=window.devicePixelRatio}catch{}return r}}]),h}(y),YD=LE;function PE(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var kc=window,xE=kc.performance,gd=function(w){PE(h,w);function h(v){return w.call(this,v,l.default.MEDIA_ATTACHING)||this}var f=h.prototype;return f.destroy=function(){this.timer&&clearInterval(this.timer),this.isVideoPlaybackQualityAvailable=!1},f.onMediaAttaching=function(r){var c=this.hls.config;if(c.capLevelOnFPSDrop){var _=this.video=r.media instanceof window.HTMLVideoElement?r.media:null;typeof _.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),clearInterval(this.timer),this.timer=setInterval(this.checkFPSInterval.bind(this),c.fpsDroppedMonitoringPeriod)}},f.checkFPS=function(r,c,_){var g=xE.now();if(c){if(this.lastTime){var C=g-this.lastTime,F=_-this.lastDroppedFrames,x=c-this.lastDecodedFrames,H=1e3*F/C,k=this.hls;if(k.trigger(l.default.FPS_DROP,{currentDropped:F,currentDecoded:x,totalDroppedFrames:_}),H>0&&F>k.config.fpsDroppedMonitoringThreshold*x){var ee=k.currentLevel;s.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+ee),ee>0&&(k.autoLevelCapping===-1||k.autoLevelCapping>=ee)&&(ee=ee-1,k.trigger(l.default.FPS_DROP_LEVEL_CAPPING,{level:ee,droppedLevel:k.currentLevel}),k.autoLevelCapping=ee,k.streamController.nextLevelSwitch())}}this.lastTime=g,this.lastDroppedFrames=_,this.lastDecodedFrames=c}},f.checkFPSInterval=function(){var r=this.video;if(r)if(this.isVideoPlaybackQualityAvailable){var c=r.getVideoPlaybackQuality();this.checkFPS(r,c.totalVideoFrames,c.droppedVideoFrames)}else this.checkFPS(r,r.webkitDecodedFrameCount,r.webkitDroppedFrameCount)},h}(y),NE=gd,XD=window,Rd=XD.performance,jE=XD.XMLHttpRequest,OE=function(){function w(f){f&&f.xhrSetup&&(this.xhrSetup=f.xhrSetup)}var h=w.prototype;return h.destroy=function(){this.abort(),this.loader=null},h.abort=function(){var v=this.loader;v&&v.readyState!==4&&(this.stats.aborted=!0,v.abort()),window.clearTimeout(this.requestTimeout),this.requestTimeout=null,window.clearTimeout(this.retryTimeout),this.retryTimeout=null},h.load=function(v,r,c){this.context=v,this.config=r,this.callbacks=c,this.stats={trequest:Rd.now(),retry:0},this.retryDelay=r.retryDelay,this.loadInternal()},h.loadInternal=function(){var v,r=this.context;v=this.loader=new jE;var c=this.stats;c.tfirst=0,c.loaded=0;var _=this.xhrSetup;try{if(_)try{_(v,r.url)}catch{v.open("GET",r.url,!0),_(v,r.url)}v.readyState||v.open("GET",r.url,!0)}catch(g){this.callbacks.onError({code:v.status,text:g.message},r,v);return}r.rangeEnd&&v.setRequestHeader("Range","bytes="+r.rangeStart+"-"+(r.rangeEnd-1)),v.onreadystatechange=this.readystatechange.bind(this),v.onprogress=this.loadprogress.bind(this),v.responseType=r.responseType,this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),this.config.timeout),v.send()},h.readystatechange=function(v){var r=v.currentTarget,c=r.readyState,_=this.stats,g=this.context,C=this.config;if(!_.aborted&&c>=2)if(window.clearTimeout(this.requestTimeout),_.tfirst===0&&(_.tfirst=Math.max(Rd.now(),_.trequest)),c===4){var F=r.status;if(F>=200&&F<300){_.tload=Math.max(_.tfirst,Rd.now());var x,H;g.responseType==="arraybuffer"?(x=r.response,H=x.byteLength):(x=r.responseText,H=x.length),_.loaded=_.total=H;var k={url:r.responseURL,data:x};this.callbacks.onSuccess(k,_,g,r)}else _.retry>=C.maxRetry||F>=400&&F<499?(s.logger.error(F+" while loading "+g.url),this.callbacks.onError({code:F,text:r.statusText},g,r)):(s.logger.warn(F+" while loading "+g.url+", retrying in "+this.retryDelay+"..."),this.destroy(),this.retryTimeout=window.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,C.maxRetryDelay),_.retry++)}else this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),C.timeout)},h.loadtimeout=function(){s.logger.warn("timeout while loading "+this.context.url),this.callbacks.onTimeout(this.stats,this.context,null)},h.loadprogress=function(v){var r=v.currentTarget,c=this.stats;c.loaded=v.loaded,v.lengthComputable&&(c.total=v.total);var _=this.callbacks.onProgress;_&&_(c,this.context,null,r)},w}(),yd=OE;function ZD(w,h){for(var f=0;f=this.tracks.length){s.logger.warn("Invalid audio track id:",r.id);return}if(s.logger.log("audioTrack "+r.id+" loaded"),this.tracks[r.id].details=r.details,r.details.live&&!this.hasInterval()){var c=r.details.targetduration*1e3;this.setInterval(c)}!r.details.live&&this.hasInterval()&&this.clearInterval()},f.onAudioTrackSwitched=function(r){var c=this.tracks[r.id].groupId;c&&this.audioGroupId!==c&&(this.audioGroupId=c)},f.onLevelLoaded=function(r){this._selectAudioGroup(r.level)},f.onError=function(r){r.type===u.ErrorTypes.NETWORK_ERROR&&(r.fatal&&this.clearInterval(),r.details===u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR&&(s.logger.warn("Network failure on audio-track id:",r.context.id),this._handleLoadError()))},f._setAudioTrack=function(r){if(this._trackId===r&&this.tracks[this._trackId].details){s.logger.debug("Same id as current audio-track passed, and track details available -> no-op");return}if(r<0||r>=this.tracks.length){s.logger.warn("Invalid id passed to audio-track controller");return}var c=this.tracks[r];s.logger.log("Now switching to audio-track index "+r),this.clearInterval(),this._trackId=r;var _=c.url,g=c.type,C=c.id;this.hls.trigger(l.default.AUDIO_TRACK_SWITCHING,{id:C,type:g,url:_}),this._loadTrackDetailsIfNeeded(c)},f.doTick=function(){this._updateTrack(this._trackId)},f._selectAudioGroup=function(r){var c=this.hls.levels[r];if(!(!c||!c.audioGroupIds)){var _=c.audioGroupIds[c.urlId];this.audioGroupId!==_&&(this.audioGroupId=_,this._selectInitialAudioTrack())}},f._selectInitialAudioTrack=function(){var r=this,c=this.tracks;if(!!c.length){var _=this.tracks[this._trackId],g=null;if(_&&(g=_.name),this._selectDefaultTrack){var C=c.filter(function(H){return H.default});C.length?c=C:s.logger.warn("No default audio tracks defined")}var F=!1,x=function(){c.forEach(function(k){F||(!r.audioGroupId||k.groupId===r.audioGroupId)&&(!g||g===k.name)&&(r._setAudioTrack(k.id),F=!0)})};x(),F||(g=null,x()),F||(s.logger.error("No track found for running audio group-ID: "+this.audioGroupId),this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))}},f._needsTrackLoading=function(r){var c=r.details,_=r.url;return!c||c.live?!!_:!1},f._loadTrackDetailsIfNeeded=function(r){if(this._needsTrackLoading(r)){var c=r.url,_=r.id;s.logger.log("loading audio-track playlist for id: "+_),this.hls.trigger(l.default.AUDIO_TRACK_LOADING,{url:c,id:_})}},f._updateTrack=function(r){if(!(r<0||r>=this.tracks.length)){this.clearInterval(),this._trackId=r,s.logger.log("trying to update audio-track "+r);var c=this.tracks[r];this._loadTrackDetailsIfNeeded(c)}},f._handleLoadError=function(){this.trackIdBlacklist[this._trackId]=!0;var r=this._trackId,c=this.tracks[r],_=c.name,g=c.language,C=c.groupId;s.logger.warn("Loading failed on audio track id: "+r+", group-id: "+C+', name/language: "'+_+'" / "'+g+'"');for(var F=r,x=0;x0&&r===-1?(s.logger.log("audio:override startPosition with lastCurrentTime @"+c.toFixed(3)),this.state=se.IDLE):(this.lastCurrentTime=this.startPosition?this.startPosition:r,this.state=se.STARTING),this.nextLoadPosition=this.startPosition=this.lastCurrentTime,this.tick()}else this.startPosition=r,this.state=se.STOPPED},f.doTick=function(){var r,c,_,g=this.hls,C=g.config;switch(this.state){case se.ERROR:case se.PAUSED:case se.BUFFER_FLUSHING:break;case se.STARTING:this.state=se.WAITING_TRACK,this.loadedmetadata=!1;break;case se.IDLE:var F=this.tracks;if(!F||!this.media&&(this.startFragRequested||!C.startFragPrefetch))break;if(this.loadedmetadata)r=this.media.currentTime;else if(r=this.nextLoadPosition,r===void 0)break;var x=this.mediaBuffer?this.mediaBuffer:this.media,H=this.videoBuffer?this.videoBuffer:this.media,k=j.bufferInfo(x,r,C.maxBufferHole),ee=j.bufferInfo(H,r,C.maxBufferHole),be=k.len,$e=k.end,fn=this.fragPrevious,_a=Math.min(C.maxBufferLength,C.maxMaxBufferLength),ea=Math.max(_a,ee.len),ca=this.audioSwitch,Ra=this.trackId;if((beOo||k.nextStart)s.logger.log("alt audio track ahead of main track, seek to start of alt audio track"),this.media.currentTime=Oo+.05;else return}if(_.initSegment&&!_.initSegment.data)lt=_.initSegment;else if($e<=Oo){if(lt=Oa[0],this.videoTrackCC!==null&<.cc!==this.videoTrackCC&&(lt=Ot(Oa,this.videoTrackCC)),_.live&<.loadIdx&<.loadIdx===this.fragLoadIdx){var dt=k.nextStart?k.nextStart:Oo;s.logger.log("no alt audio available @currentTime:"+this.media.currentTime+", seeking @"+(dt+.05)),this.media.currentTime=dt+.05;return}}else{var xa,Eo=C.maxFragLookUpTolerance,Z_=fn?Oa[fn.sn-Oa[0].sn+1]:void 0,e0=function(Fd){var OL=Math.min(Eo,Fd.duration);return Fd.start+Fd.duration-OL<=$e?1:Fd.start-OL>$e&&Fd.start?-1:0};$eUi-Eo&&(Eo=0),Z_&&!e0(Z_)?xa=Z_:xa=K.search(Oa,e0)):xa=Oa[Cu-1],xa&&(lt=xa,Oo=xa.start,fn&<.level===fn.level&<.sn===fn.sn&&(lt.sn<_.endSN?(lt=Oa[lt.sn+1-_.startSN],s.logger.log("SN just loaded, load next one: "+lt.sn)):lt=null))}lt&&(lt.encrypted?(s.logger.log("Loading key for "+lt.sn+" of ["+_.startSN+" ,"+_.endSN+"],track "+Ra),this.state=se.KEY_LOADING,g.trigger(l.default.KEY_LOADING,{frag:lt})):(s.logger.log("Loading "+lt.sn+", cc: "+lt.cc+" of ["+_.startSN+" ,"+_.endSN+"],track "+Ra+", currentTime:"+r+",bufferEnd:"+$e.toFixed(3)),this.fragCurrent=lt,(ca||this.fragmentTracker.getState(lt)===Da.NOT_LOADED)&&(lt.sn!=="initSegment"&&(this.startFragRequested=!0),Object(i.isFiniteNumber)(lt.sn)&&(this.nextLoadPosition=lt.start+lt.duration),g.trigger(l.default.FRAG_LOADING,{frag:lt}),this.state=se.FRAG_LOADING)))}break;case se.WAITING_TRACK:c=this.tracks[this.trackId],c&&c.details&&(this.state=se.IDLE);break;case se.FRAG_LOADING_WAITING_RETRY:var DI=Il.now(),xL=this.retryDate;x=this.media;var IY=x&&x.seeking;(!xL||DI>=xL||IY)&&(s.logger.log("audioStreamController: retryDate reached, switch back to IDLE state"),this.state=se.IDLE);break;case se.WAITING_INIT_PTS:var gI=this.videoTrackCC;if(this.initPTS[gI]===void 0)break;var NL=this.waitingFragment;if(NL){var jL=NL.frag.cc;gI!==jL?(c=this.tracks[this.trackId],c.details&&c.details.live&&(s.logger.warn("Waiting fragment CC ("+jL+") does not match video track CC ("+gI+")"),this.waitingFragment=null,this.state=se.IDLE)):(this.state=se.FRAG_LOADING,this.onFragLoaded(this.waitingFragment),this.waitingFragment=null)}else this.state=se.IDLE;break;case se.STOPPED:case se.FRAG_LOADING:case se.PARSING:case se.PARSED:case se.ENDED:break;default:break}},f.onMediaAttached=function(r){var c=this.media=this.mediaBuffer=r.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),c.addEventListener("seeking",this.onvseeking),c.addEventListener("ended",this.onvended);var _=this.config;this.tracks&&_.autoStartLoad&&this.startLoad(_.startPosition)},f.onMediaDetaching=function(){var r=this.media;r&&r.ended&&(s.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),r&&(r.removeEventListener("seeking",this.onvseeking),r.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.media=this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},f.onAudioTracksUpdated=function(r){s.logger.log("audio tracks updated"),this.tracks=r.audioTracks},f.onAudioTrackSwitching=function(r){var c=!!r.url;this.trackId=r.id,this.fragCurrent=null,this.state=se.PAUSED,this.waitingFragment=null,c?this.setInterval(ag):this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),c&&(this.audioSwitch=!0,this.state=se.IDLE),this.tick()},f.onAudioTrackLoaded=function(r){var c=r.details,_=r.id,g=this.tracks[_],C=c.totalduration,F=0;if(s.logger.log("track "+_+" loaded ["+c.startSN+","+c.endSN+"],duration:"+C),c.live){var x=g.details;x&&c.fragments.length>0?(wn(x,c),F=c.fragments[0].start,c.PTSKnown?s.logger.log("live audio playlist sliding:"+F.toFixed(3)):s.logger.log("live audio playlist - outdated PTS, unknown sliding")):(c.PTSKnown=!1,s.logger.log("live audio playlist - first load, unknown sliding"))}else c.PTSKnown=!1;if(g.details=c,!this.startFragRequested){if(this.startPosition===-1){var H=c.startTimeOffset;Object(i.isFiniteNumber)(H)?(s.logger.log("start time offset found in playlist, adjust startPosition to "+H),this.startPosition=H):c.live?(this.startPosition=this.computeLivePosition(F,c),s.logger.log("compute startPosition for audio-track to "+this.startPosition)):this.startPosition=0}this.nextLoadPosition=this.startPosition}this.state===se.WAITING_TRACK&&(this.state=se.IDLE),this.tick()},f.onKeyLoaded=function(){this.state===se.KEY_LOADING&&(this.state=se.IDLE,this.tick())},f.onFragLoaded=function(r){var c=this.fragCurrent,_=r.frag;if(this.state===se.FRAG_LOADING&&c&&_.type==="audio"&&_.level===c.level&&_.sn===c.sn){var g=this.tracks[this.trackId],C=g.details,F=C.totalduration,x=c.level,H=c.sn,k=c.cc,ee=this.config.defaultAudioCodec||g.audioCodec||"mp4a.40.2",be=this.stats=r.stats;if(H==="initSegment")this.state=se.IDLE,be.tparsed=be.tbuffered=Il.now(),C.initSegment.data=r.payload,this.hls.trigger(l.default.FRAG_BUFFERED,{stats:be,frag:c,id:"audio"}),this.tick();else{this.state=se.PARSING,this.appended=!1,this.demuxer||(this.demuxer=new Ge(this.hls,"audio"));var $e=this.initPTS[k],fn=C.initSegment?C.initSegment.data:[];if(C.initSegment||$e!==void 0){this.pendingBuffering=!0,s.logger.log("Demuxing "+H+" of ["+C.startSN+" ,"+C.endSN+"],track "+x);var _a=!1;this.demuxer.push(r.payload,fn,ee,null,c,F,_a,$e)}else s.logger.log("unknown video PTS for continuity counter "+k+", waiting for video PTS before demuxing audio frag "+H+" of ["+C.startSN+" ,"+C.endSN+"],track "+x),this.waitingFragment=r,this.state=se.WAITING_INIT_PTS}}this.fragLoadError=0},f.onFragParsingInitSegment=function(r){var c=this.fragCurrent,_=r.frag;if(c&&r.id==="audio"&&_.sn===c.sn&&_.level===c.level&&this.state===se.PARSING){var g=r.tracks,C;if(g.video&&delete g.video,C=g.audio,C){C.levelCodec=C.codec,C.id=r.id,this.hls.trigger(l.default.BUFFER_CODECS,g),s.logger.log("audio track:audio,container:"+C.container+",codecs[level/parsed]=["+C.levelCodec+"/"+C.codec+"]");var F=C.initSegment;if(F){var x={type:"audio",data:F,parent:"audio",content:"initSegment"};this.audioSwitch?this.pendingData=[x]:(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(l.default.BUFFER_APPENDING,x))}this.tick()}}},f.onFragParsingData=function(r){var c=this,_=this.fragCurrent,g=r.frag;if(_&&r.id==="audio"&&r.type==="audio"&&g.sn===_.sn&&g.level===_.level&&this.state===se.PARSING){var C=this.trackId,F=this.tracks[C],x=this.hls;Object(i.isFiniteNumber)(r.endPTS)||(r.endPTS=r.startPTS+_.duration,r.endDTS=r.startDTS+_.duration),_.addElementaryStream(oe.AUDIO),s.logger.log("parsed "+r.type+",PTS:["+r.startPTS.toFixed(3)+","+r.endPTS.toFixed(3)+"],DTS:["+r.startDTS.toFixed(3)+"/"+r.endDTS.toFixed(3)+"],nb:"+r.nb),xe(F.details,_,r.startPTS,r.endPTS);var H=this.audioSwitch,k=this.media,ee=!1;if(H)if(k&&k.readyState){var be=k.currentTime;s.logger.log("switching audio track : currentTime:"+be),be>=r.startPTS&&(s.logger.log("switching audio track : flushing all audio"),this.state=se.BUFFER_FLUSHING,x.trigger(l.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),ee=!0,this.audioSwitch=!1,x.trigger(l.default.AUDIO_TRACK_SWITCHED,{id:C}))}else this.audioSwitch=!1,x.trigger(l.default.AUDIO_TRACK_SWITCHED,{id:C});var $e=this.pendingData;if(!$e){s.logger.warn("Apparently attempt to enqueue media payload without codec initialization data upfront"),x.trigger(l.default.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:null,fatal:!0});return}this.audioSwitch||([r.data1,r.data2].forEach(function(fn){fn&&fn.length&&$e.push({type:r.type,data:fn,parent:"audio",content:"data"})}),!ee&&$e.length&&($e.forEach(function(fn){c.state===se.PARSING&&(c.pendingBuffering=!0,c.hls.trigger(l.default.BUFFER_APPENDING,fn))}),this.pendingData=[],this.appended=!0)),this.tick()}},f.onFragParsed=function(r){var c=this.fragCurrent,_=r.frag;c&&r.id==="audio"&&_.sn===c.sn&&_.level===c.level&&this.state===se.PARSING&&(this.stats.tparsed=Il.now(),this.state=se.PARSED,this._checkAppendedParsed())},f.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},f.onBufferCreated=function(r){var c=r.tracks.audio;c&&(this.mediaBuffer=c.buffer,this.loadedmetadata=!0),r.tracks.video&&(this.videoBuffer=r.tracks.video.buffer)},f.onBufferAppended=function(r){if(r.parent==="audio"){var c=this.state;(c===se.PARSING||c===se.PARSED)&&(this.pendingBuffering=r.pending>0,this._checkAppendedParsed())}},f._checkAppendedParsed=function(){if(this.state===se.PARSED&&(!this.appended||!this.pendingBuffering)){var r=this.fragCurrent,c=this.stats,_=this.hls;if(r){this.fragPrevious=r,c.tbuffered=Il.now(),_.trigger(l.default.FRAG_BUFFERED,{stats:c,frag:r,id:"audio"});var g=this.mediaBuffer?this.mediaBuffer:this.media;g&&s.logger.log("audio buffered : "+pt.toString(g.buffered)),this.audioSwitch&&this.appended&&(this.audioSwitch=!1,_.trigger(l.default.AUDIO_TRACK_SWITCHED,{id:this.trackId})),this.state=se.IDLE}this.tick()}},f.onError=function(r){var c=r.frag;if(!(c&&c.type!=="audio"))switch(r.details){case u.ErrorDetails.FRAG_LOAD_ERROR:case u.ErrorDetails.FRAG_LOAD_TIMEOUT:var _=r.frag;if(_&&_.type!=="audio")break;if(!r.fatal){var g=this.fragLoadError;g?g++:g=1;var C=this.config;if(g<=C.fragLoadingMaxRetry){this.fragLoadError=g;var F=Math.min(Math.pow(2,g-1)*C.fragLoadingRetryDelay,C.fragLoadingMaxRetryTimeout);s.logger.warn("AudioStreamController: frag loading failed, retry in "+F+" ms"),this.retryDate=Il.now()+F,this.state=se.FRAG_LOADING_WAITING_RETRY}else s.logger.error("AudioStreamController: "+r.details+" reaches max retry, redispatch as fatal ..."),r.fatal=!0,this.state=se.ERROR}break;case u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case u.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:case u.ErrorDetails.KEY_LOAD_ERROR:case u.ErrorDetails.KEY_LOAD_TIMEOUT:this.state!==se.ERROR&&(this.state=r.fatal?se.ERROR:se.IDLE,s.logger.warn("AudioStreamController: "+r.details+" while loading frag, now switching to "+this.state+" state ..."));break;case u.ErrorDetails.BUFFER_FULL_ERROR:if(r.parent==="audio"&&(this.state===se.PARSING||this.state===se.PARSED)){var x=this.mediaBuffer,H=this.media.currentTime,k=x&&j.isBuffered(x,H)&&j.isBuffered(x,H+.5);if(k){var ee=this.config;ee.maxMaxBufferLength>=ee.maxBufferLength&&(ee.maxMaxBufferLength/=2,s.logger.warn("AudioStreamController: reduce max buffer length to "+ee.maxMaxBufferLength+"s")),this.state=se.IDLE}else s.logger.warn("AudioStreamController: buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,this.state=se.BUFFER_FLUSHING,this.hls.trigger(l.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"})}break;default:break}},f.onBufferFlushed=function(){var r=this,c=this.pendingData;c&&c.length?(s.logger.log("AudioStreamController: appending pending audio data after buffer flushed"),c.forEach(function(_){r.hls.trigger(l.default.BUFFER_APPENDING,_)}),this.appended=!0,this.pendingData=[],this.state=se.PARSED):(this.state=se.IDLE,this.fragPrevious=null,this.tick())},nf(h,[{key:"state",set:function(r){if(this.state!==r){var c=this.state;this._state=r,s.logger.log("audio stream:"+c+"->"+r)}},get:function(){return this._state}}]),h}(wl),JE=qE,tg=function(){if(typeof window!="undefined"&&window.VTTCue)return window.VTTCue;var w="auto",h={"":!0,lr:!0,rl:!0},f={start:!0,middle:!0,end:!0,left:!0,right:!0};function v(g){if(typeof g!="string")return!1;var C=h[g.toLowerCase()];return C?g.toLowerCase():!1}function r(g){if(typeof g!="string")return!1;var C=f[g.toLowerCase()];return C?g.toLowerCase():!1}function c(g){for(var C=1;C100)throw new Error("Position must be between 0 and 100.");Cu=xa,this.hasBeenReset=!0}})),Object.defineProperty(x,"positionAlign",c({},H,{get:function(){return Oo},set:function(xa){var Eo=r(xa);if(!Eo)throw new SyntaxError("An invalid or illegal string was specified.");Oo=Eo,this.hasBeenReset=!0}})),Object.defineProperty(x,"size",c({},H,{get:function(){return Ui},set:function(xa){if(xa<0||xa>100)throw new Error("Size must be between 0 and 100.");Ui=xa,this.hasBeenReset=!0}})),Object.defineProperty(x,"align",c({},H,{get:function(){return lt},set:function(xa){var Eo=r(xa);if(!Eo)throw new SyntaxError("An invalid or illegal string was specified.");lt=Eo,this.hasBeenReset=!0}})),x.displayState=void 0}return _.prototype.getCueAsHTML=function(){var g=window.WebVTT;return g.convertCueToDOMTree(window,this.text)},_}(),WE=function(){return{decode:function(f){if(!f)return"";if(typeof f!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(f))}}};function rg(){this.window=window,this.state="INITIAL",this.buffer="",this.decoder=new WE,this.regionList=[]}function $E(w){function h(v,r,c,_){return(v|0)*3600+(r|0)*60+(c|0)+(_|0)/1e3}var f=w.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return f?f[3]?h(f[1],f[2],f[3].replace(":",""),f[4]):f[1]>59?h(f[1],f[2],0,f[4]):h(0,f[1],f[2],f[4]):null}function og(){this.values=Object.create(null)}og.prototype={set:function(h,f){!this.get(h)&&f!==""&&(this.values[h]=f)},get:function(h,f,v){return v?this.has(h)?this.values[h]:f[v]:this.has(h)?this.values[h]:f},has:function(h){return h in this.values},alt:function(h,f,v){for(var r=0;r=0&&f<=100)?(this.set(h,f),!0):!1}};function ug(w,h,f,v){var r=v?w.split(v):[w];for(var c in r)if(typeof r[c]=="string"){var _=r[c].split(f);if(_.length===2){var g=_[0],C=_[1];h(g,C)}}}var af=new tg(0,0,0),Oi=af.align==="middle"?"middle":"center";function zE(w,h,f){var v=w;function r(){var g=$E(w);if(g===null)throw new Error("Malformed timestamp: "+v);return w=w.replace(/^[^\sa-zA-Z-]+/,""),g}function c(g,C){var F=new og;ug(g,function(k,ee){switch(k){case"region":for(var be=f.length-1;be>=0;be--)if(f[be].id===ee){F.set(k,f[be].region);break}break;case"vertical":F.alt(k,ee,["rl","lr"]);break;case"line":var $e=ee.split(","),fn=$e[0];F.integer(k,fn),F.percent(k,fn)&&F.set("snapToLines",!1),F.alt(k,fn,["auto"]),$e.length===2&&F.alt("lineAlign",$e[1],["start",Oi,"end"]);break;case"position":$e=ee.split(","),F.percent(k,$e[0]),$e.length===2&&F.alt("positionAlign",$e[1],["start",Oi,"end","line-left","line-right","auto"]);break;case"size":F.percent(k,ee);break;case"align":F.alt(k,ee,["start",Oi,"end","left","right"]);break}},/:/,/\s/),C.region=F.get("region",null),C.vertical=F.get("vertical","");var x=F.get("line","auto");x==="auto"&&af.line===-1&&(x=-1),C.line=x,C.lineAlign=F.get("lineAlign","start"),C.snapToLines=F.get("snapToLines",!0),C.size=F.get("size",100),C.align=F.get("align",Oi);var H=F.get("position","auto");H==="auto"&&af.position===50&&(H=C.align==="start"||C.align==="left"?0:C.align==="end"||C.align==="right"?100:50),C.position=H}function _(){w=w.replace(/^\s+/,"")}if(_(),h.startTime=r(),_(),w.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+v);w=w.substr(3),_(),h.endTime=r(),_(),c(w,h)}function ig(w){return w.replace(//gi,` `)}rg.prototype={parse:function(h){var f=this;h&&(f.buffer+=f.decoder.decode(h,{stream:!0}));function v(){var F=f.buffer,x=0;for(F=ig(F);x")===-1){f.cue.id=c;continue}case"CUE":try{zE(c,f.cue,f.regionList)}catch{f.cue=null,f.state="BADCUE";continue}f.state="CUETEXT";continue;case"CUETEXT":var C=c.indexOf("-->")!==-1;if(!c||C&&(g=!0)){f.oncue&&f.oncue(f.cue),f.cue=null,f.state="ID";continue}f.cue.text&&(f.cue.text+=` `),f.cue.text+=c;continue;case"BADCUE":c||(f.state="ID");continue}}}catch{f.state==="CUETEXT"&&f.cue&&f.oncue&&f.oncue(f.cue),f.cue=null,f.state=f.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var h=this;try{if(h.buffer+=h.decoder.decode(),(h.cue||h.state==="HEADER")&&(h.buffer+=` `,h.parse()),h.state==="INITIAL")throw new Error("Malformed WebVTT signature.")}catch(f){throw f}return h.onflush&&h.onflush(),this}};var VE=rg;function QE(w,h,f,v){for(var r,c,_,g,C,F=window.VTTCue||TextTrackCue,x=0;x=16?g--:g++,navigator.userAgent.match(/Firefox\//)?c.line=x+1:c.line=x>7?x-2:x+1,c.align="left",c.position=Math.max(0,Math.min(100,100*(g/32))),w.addCue(c)}}var wd={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},lg=function(h){var f=h;return wd.hasOwnProperty(h)&&(f=wd[h]),String.fromCharCode(f)},Su=15,Tl=100,KE={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},YE={17:2,18:4,21:6,22:8,23:10,19:13,20:15},XE={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},ZE={25:2,26:4,29:6,30:8,31:10,27:13,28:15},eI=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],cg;(function(w){w[w.ERROR=0]="ERROR",w[w.TEXT=1]="TEXT",w[w.WARNING=2]="WARNING",w[w.INFO=2]="INFO",w[w.DEBUG=3]="DEBUG",w[w.DATA=3]="DATA"})(cg||(cg={}));var qa={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(h){this.time=h},log:function(h,f){var v=this.verboseFilter[h];this.verboseLevel>=v}},Bc=function(h){for(var f=[],v=0;vTl&&(qa.log("ERROR","Too large cursor position "+this.pos),this.pos=Tl)},h.moveCursor=function(v){var r=this.pos+v;if(v>1)for(var c=this.pos+1;c=144&&this.backSpace();var r=lg(v);if(this.pos>=Tl){qa.log("ERROR","Cannot insert "+v.toString(16)+" ("+r+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(r,this.currPenState),this.moveCursor(1)},h.clearFromPos=function(v){var r;for(r=v;r0&&(v?c="["+r.join(" | ")+"]":c=r.join(` `)),c},h.getTextAndFormat=function(){return this.rows},w}(),K_=function(){function w(f,v){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.lastCueEndTime=void 0,this.chNr=f,this.outputFilter=v,this.mode=null,this.verbose=0,this.displayedMemory=new Ja,this.nonDisplayedMemory=new Ja,this.lastOutputScreen=new Ja,this.currRollUpRow=this.displayedMemory.rows[Su-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}var h=w.prototype;return h.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[Su-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},h.getHandler=function(){return this.outputFilter},h.setHandler=function(v){this.outputFilter=v},h.setPAC=function(v){this.writeScreen.setPAC(v)},h.setBkgData=function(v){this.writeScreen.setBkgData(v)},h.setMode=function(v){v!==this.mode&&(this.mode=v,qa.log("INFO","MODE="+v),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=v)},h.insertChars=function(v){for(var r=0;r=46,r.italics)r.foreground="white";else{var c=Math.floor(v/2)-16,_=["white","green","blue","cyan","red","yellow","magenta"];r.foreground=_[c]}qa.log("INFO","MIDROW: "+JSON.stringify(r)),this.writeScreen.setPen(r)},h.outputDataUpdate=function(v){v===void 0&&(v=!1);var r=qa.time;r!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=r:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,r,this.lastOutputScreen),v&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:r),this.lastOutputScreen.copy(this.displayedMemory))},h.cueSplitAtTime=function(v){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,v,this.displayedMemory),this.cueStartTime=v))},w}(),Y_=function(){function w(f,v,r){this.field=void 0,this.outputs=void 0,this.channels=void 0,this.currChNr=void 0,this.lastCmdA=void 0,this.lastCmdB=void 0,this.lastTime=void 0,this.dataCounters=void 0,this.field=f||1,this.outputs=[v,r],this.channels=[new K_(1,v),new K_(2,r)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.lastTime=null,this.dataCounters={padding:0,char:0,cmd:0,other:0}}var h=w.prototype;return h.getHandler=function(v){return this.channels[v].getHandler()},h.setHandler=function(v,r){this.channels[v].setHandler(r)},h.addData=function(v,r){var c,_,g,C=!1;this.lastTime=v,qa.setTime(v);for(var F=0;F ("+Bc([_,g])+")");if(c=this.parseCmd(_,g),c||(c=this.parseMidrow(_,g)),c||(c=this.parsePAC(_,g)),c||(c=this.parseBackgroundAttributes(_,g)),!c&&(C=this.parseChars(_,g),C))if(this.currChNr&&this.currChNr>=0){var x=this.channels[this.currChNr-1];x.insertChars(C)}else qa.log("WARNING","No channel found yet. TEXT-MODE?");c?this.dataCounters.cmd+=2:C?this.dataCounters.char+=2:(this.dataCounters.other+=2,qa.log("WARNING","Couldn't parse cleaned data "+Bc([_,g])+" orig: "+Bc([r[F],r[F+1]])))}},h.parseCmd=function(v,r){var c=null,_=(v===20||v===28)&&r>=32&&r<=47,g=(v===23||v===31)&&r>=33&&r<=35;if(!(_||g))return!1;if(v===this.lastCmdA&&r===this.lastCmdB)return this.lastCmdA=null,this.lastCmdB=null,qa.log("DEBUG","Repeated command ("+Bc([v,r])+") is dropped"),!0;v===20||v===23?c=1:c=2;var C=this.channels[c-1];return v===20||v===28?r===32?C.ccRCL():r===33?C.ccBS():r===34?C.ccAOF():r===35?C.ccAON():r===36?C.ccDER():r===37?C.ccRU(2):r===38?C.ccRU(3):r===39?C.ccRU(4):r===40?C.ccFON():r===41?C.ccRDC():r===42?C.ccTR():r===43?C.ccRTD():r===44?C.ccEDM():r===45?C.ccCR():r===46?C.ccENM():r===47&&C.ccEOC():C.ccTO(r-32),this.lastCmdA=v,this.lastCmdB=r,this.currChNr=c,!0},h.parseMidrow=function(v,r){var c=null;if((v===17||v===25)&&r>=32&&r<=47){if(v===17?c=1:c=2,c!==this.currChNr)return qa.log("ERROR","Mismatch channel in midrow parsing"),!1;var _=this.channels[c-1];return _.ccMIDROW(r),qa.log("DEBUG","MIDROW ("+Bc([v,r])+")"),!0}return!1},h.parsePAC=function(v,r){var c=null,_=null,g=(v>=17&&v<=23||v>=25&&v<=31)&&r>=64&&r<=127,C=(v===16||v===24)&&r>=64&&r<=95;if(!(g||C))return!1;if(v===this.lastCmdA&&r===this.lastCmdB)return this.lastCmdA=null,this.lastCmdB=null,!0;c=v<=23?1:2,r>=64&&r<=95?_=c===1?KE[v]:XE[v]:_=c===1?YE[v]:ZE[v];var F=this.interpretPAC(_,r),x=this.channels[c-1];return x.setPAC(F),this.lastCmdA=v,this.lastCmdB=r,this.currChNr=c,!0},h.interpretPAC=function(v,r){var c=r,_={color:null,italics:!1,indent:null,underline:!1,row:v};return r>95?c=r-96:c=r-64,_.underline=(c&1)==1,c<=13?_.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(c/2)]:c<=15?(_.italics=!0,_.color="white"):_.indent=Math.floor((c-16)/2)*4,_},h.parseChars=function(v,r){var c=null,_=null,g=null;if(v>=25?(c=2,g=v-8):(c=1,g=v),g>=17&&g<=19){var C=r;g===17?C=r+80:g===18?C=r+112:C=r+144,qa.log("INFO","Special char '"+lg(C)+"' in channel "+c),_=[C]}else v>=32&&v<=127&&(_=r===0?[v]:[v,r]);if(_){var F=Bc(_);qa.log("DEBUG","Char codes = "+F.join(",")),this.lastCmdA=null,this.lastCmdB=null}return _},h.parseBackgroundAttributes=function(v,r){var c,_,g,C,F=(v===16||v===24)&&r>=32&&r<=47,x=(v===23||v===31)&&r>=45&&r<=47;return F||x?(c={},v===16||v===24?(_=Math.floor((r-32)/2),c.background=eI[_],r%2==1&&(c.background=c.background+"_semi")):r===45?c.background="transparent":(c.foreground="black",r===47&&(c.underline=!0)),g=v<24?1:2,C=this.channels[g-1],C.setBkgData(c),this.lastCmdA=null,this.lastCmdB=null,!0):!1},h.reset=function(){for(var v=0;vv)&&(this.startTime=v),this.endTime=r,this.screen=c,this.timelineController.createCaptionsTrack(this.trackName)},w}(),Ed=function(h,f,v){return h.substr(v||0,f.length)===f},rI=function(h){var f=parseInt(h.substr(-3)),v=parseInt(h.substr(-6,2)),r=parseInt(h.substr(-9,2)),c=h.length>9?parseInt(h.substr(0,h.indexOf(":"))):0;if(!Object(i.isFiniteNumber)(f)||!Object(i.isFiniteNumber)(v)||!Object(i.isFiniteNumber)(r)||!Object(i.isFiniteNumber)(c))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+h);return f+=1e3*v,f+=60*1e3*r,f+=60*60*1e3*c,f},X_=function(h){for(var f=5381,v=h.length;v;)f=f*33^h.charCodeAt(--v);return(f>>>0).toString()},oI=function(h,f,v){var r=h[f],c=h[r.prevCC];if(!c||!c.new&&r.new){h.ccOffset=h.presentationOffset=r.start,r.new=!1;return}for(;c&&c.new;)h.ccOffset+=r.start-c.start,r.new=!1,r=c,c=h[r.prevCC];h.presentationOffset=v},uI={parse:function(h,f,v,r,c,_){var g=/\r\n|\n\r|\n|\r/g,C=Object(V_.utf8ArrayToStr)(new Uint8Array(h)).trim().replace(g,` `).split(` `),F="00:00.000",x=0,H=0,k=0,ee=[],be,$e=!0,fn=!1,_a=new VE;_a.oncue=function(ea){var ca=v[r],Ra=v.ccOffset;ca&&ca.new&&(H!==void 0?Ra=v.ccOffset=ca.start:oI(v,r,k)),k&&(Ra=k-v.presentationOffset),fn&&(ea.startTime+=Ra-H,ea.endTime+=Ra-H),ea.id=X_(ea.startTime.toString())+X_(ea.endTime.toString())+X_(ea.text),ea.text=decodeURIComponent(encodeURIComponent(ea.text)),ea.endTime>0&&ee.push(ea)},_a.onparsingerror=function(ea){be=ea},_a.onflush=function(){if(be&&_){_(be);return}c(ee)},C.forEach(function(ea){if($e)if(Ed(ea,"X-TIMESTAMP-MAP=")){$e=!1,fn=!0,ea.substr(16).split(",").forEach(function(ca){Ed(ca,"LOCAL:")?F=ca.substr(6):Ed(ca,"MPEGTS:")&&(x=parseInt(ca.substr(7)))});try{f+(v[r].start*9e4||0)<0&&(f+=8589934592),x-=f,H=rI(F)/1e3,k=x/9e4}catch(ca){fn=!1,be=ca}return}else ea===""&&($e=!1);_a.parse(ea+` `)}),_a.flush()}},iI=uI;function vg(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function lI(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var cI=function(w){lI(h,w);function h(v){var r;if(r=w.call(this,v,l.default.MEDIA_ATTACHING,l.default.MEDIA_DETACHING,l.default.FRAG_PARSING_USERDATA,l.default.FRAG_DECRYPTED,l.default.MANIFEST_LOADING,l.default.MANIFEST_LOADED,l.default.FRAG_LOADED,l.default.INIT_PTS_FOUND)||this,r.media=null,r.config=void 0,r.enabled=!0,r.Cues=void 0,r.textTracks=[],r.tracks=[],r.initPTS=[],r.unparsedVttFrags=[],r.cueRanges=[],r.captionsTracks={},r.captionsProperties=void 0,r.cea608Parser=void 0,r.lastSn=-1,r.prevCC=-1,r.vttCCs=null,r.hls=v,r.config=v.config,r.Cues=v.config.cueHandler,r.captionsProperties={textTrack1:{label:r.config.captionsTextTrack1Label,languageCode:r.config.captionsTextTrack1LanguageCode},textTrack2:{label:r.config.captionsTextTrack2Label,languageCode:r.config.captionsTextTrack2LanguageCode}},r.config.enableCEA708Captions){var c=new sg(vg(r),"textTrack1"),_=new sg(vg(r),"textTrack2");r.cea608Parser=new tI(0,c,_)}return r}var f=h.prototype;return f.addCues=function(r,c,_,g){for(var C=this.cueRanges,F=!1,x=C.length;x--;){var H=C[x],k=sI(H[0],H[1],c,_);if(k>=0&&(H[0]=Math.min(H[0],c),H[1]=Math.max(H[1],_),F=!0,k/(_-c)>.5))return}F||C.push([c,_]),this.Cues.newCue(this.captionsTracks[r],c,_,g)},f.onInitPtsFound=function(r){var c=this,_=r.frag,g=r.id,C=r.initPTS,F=this.unparsedVttFrags;g==="main"&&(this.initPTS[_.cc]=C),F.length&&(this.unparsedVttFrags=[],F.forEach(function(x){c.onFragLoaded(x)}))},f.getExistingTrack=function(r){var c=this.media;if(c)for(var _=0;_=F.length||_!==C||!x||this.stopped){this._clearReloadTimer();return}if(s.logger.log("subtitle track "+_+" loaded"),g.live){var H=Lt(x.details,g,r.stats.trequest);s.logger.log("Reloading live subtitle playlist in "+H+"ms"),this.timer=setTimeout(function(){c._loadCurrentTrack()},H)}else this._clearReloadTimer()},f.startLoad=function(){this.stopped=!1,this._loadCurrentTrack()},f.stopLoad=function(){this.stopped=!0,this._clearReloadTimer()},f._clearReloadTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},f._loadCurrentTrack=function(){var r=this.trackId,c=this.tracks,_=this.hls,g=c[r];r<0||!g||g.details&&!g.details.live||(s.logger.log("Loading subtitle track "+r),_.trigger(l.default.SUBTITLE_TRACK_LOADING,{url:g.url,id:r}))},f._toggleTrackModes=function(r){var c=this.media,_=this.subtitleDisplay,g=this.trackId;if(!!c){var C=p(c.textTracks);if(r===-1)[].slice.call(C).forEach(function(H){H.mode="disabled"});else{var F=C[g];F&&(F.mode="disabled")}var x=C[r];x&&(x.mode=_?"showing":"hidden")}},f._setSubtitleTrackInternal=function(r){var c=this.hls,_=this.tracks;!Object(i.isFiniteNumber)(r)||r<-1||r>=_.length||(this.trackId=r,s.logger.log("Switching to subtitle track "+r),c.trigger(l.default.SUBTITLE_TRACK_SWITCH,{id:r}),this._loadCurrentTrack())},f._onTextTracksChanged=function(){if(!!this.media){for(var r=-1,c=p(this.media.textTracks),_=0;_=g[x].start&&F<=g[x].end){C=g[x];break}var H=c.start+c.duration;C?C.end=H:(C={start:F,end:H},g.push(C))}}},f.onMediaAttached=function(r){var c=r.media;this.media=c,c.addEventListener("seeking",this._onMediaSeeking),this.state=se.IDLE},f.onMediaDetaching=function(){var r=this;!this.media||(this.media.removeEventListener("seeking",this._onMediaSeeking),this.fragmentTracker.removeAllFragments(),this.currentTrackId=-1,this.tracks.forEach(function(c){r.tracksBuffered[c.id]=[]}),this.media=null,this.state=se.STOPPED)},f.onError=function(r){var c=r.frag;!c||c.type!=="subtitle"||(this.state=se.IDLE)},f.onSubtitleTracksUpdated=function(r){var c=this;s.logger.log("subtitle tracks updated"),this.tracksBuffered=[],this.tracks=r.subtitleTracks,this.tracks.forEach(function(_){c.tracksBuffered[_.id]=[]})},f.onSubtitleTrackSwitch=function(r){if(this.currentTrackId=r.id,!this.tracks||!this.tracks.length||this.currentTrackId===-1){this.clearInterval();return}var c=this.tracks[this.currentTrackId];c&&c.details&&this.setInterval(ha)},f.onSubtitleTrackLoaded=function(r){var c=r.id,_=r.details,g=this.currentTrackId,C=this.tracks,F=C[g];c>=C.length||c!==g||!F||(_.live&&Qn(F.details,_,this.lastAVStart),F.details=_,this.setInterval(ha))},f.onKeyLoaded=function(){this.state===se.KEY_LOADING&&(this.state=se.IDLE)},f.onFragLoaded=function(r){var c=this.fragCurrent,_=r.frag.decryptdata,g=r.frag,C=this.hls;if(this.state===se.FRAG_LOADING&&c&&r.frag.type==="subtitle"&&c.sn===r.frag.sn&&r.payload.byteLength>0&&_&&_.key&&_.method==="AES-128"){var F=_n.now();this.decrypter.decrypt(r.payload,_.key.buffer,_.iv.buffer,function(x){var H=_n.now();C.trigger(l.default.FRAG_DECRYPTED,{frag:g,payload:x,stats:{tstart:F,tdecrypt:H}})})}},f.onLevelUpdated=function(r){var c=r.details,_=c.fragments;this.lastAVStart=_.length?_[0].start:0},f.doTick=function(){if(!this.media){this.state=se.IDLE;return}switch(this.state){case se.IDLE:{var r=this.config,c=this.currentTrackId,_=this.fragmentTracker,g=this.media,C=this.tracks;if(!C||!C[c]||!C[c].details)break;var F=r.maxBufferHole,x=r.maxFragLookUpTolerance,H=Math.min(r.maxBufferLength,r.maxMaxBufferLength),k=j.bufferedInfo(this._getBuffered(),g.currentTime,F),ee=k.end,be=k.len,$e=C[c].details,fn=$e.fragments,_a=fn.length,ea=fn[_a-1].start+fn[_a-1].duration;if(be>H)return;var ca,Ra=this.fragPrevious;eepg){this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.KEY_SYSTEM_ERROR,details:u.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var C=pg-this._requestLicenseFailureCount+1;s.logger.warn("Retrying license request, "+C+" attempts left"),this._requestLicense(_,g)}break}},f._generateLicenseRequestChallenge=function(r,c){switch(r.mediaKeySystemDomain){case Kt.WIDEVINE:return c}throw new Error("unsupported key-system: "+r.mediaKeySystemDomain)},f._requestLicense=function(r,c){s.logger.log("Requesting content license for key-system");var _=this._mediaKeysList[0];if(!_){s.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.KEY_SYSTEM_ERROR,details:u.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var g=this.getLicenseServerUrl(_.mediaKeySystemDomain),C=this._createLicenseXhr(g,r,c);s.logger.log("Sending license request to URL: "+g);var F=this._generateLicenseRequestChallenge(_,r);C.send(F)}catch(x){s.logger.error("Failure requesting DRM license: "+x),this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.KEY_SYSTEM_ERROR,details:u.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},f.onMediaAttached=function(r){if(!!this._emeEnabled){var c=r.media;this._media=c,c.addEventListener("encrypted",this._onMediaEncrypted)}},f.onMediaDetached=function(){this._media&&(this._media.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null)},f.onManifestParsed=function(r){if(!!this._emeEnabled){var c=r.levels.map(function(g){return g.audioCodec}),_=r.levels.map(function(g){return g.videoCodec});this._attemptKeySystemAccess(Kt.WIDEVINE,c,_)}},_I(h,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),h}(y),dI=mg;function mI(w){for(var h=1;hc)return g}return 0}},{key:"maxAutoLevel",get:function(){var r=this.levels,c=this.autoLevelCapping,_;return c===-1&&r&&r.length?_=r.length-1:_=c,_}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(r){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,r)}},{key:"audioTracks",get:function(){var r=this.audioTrackController;return r?r.audioTracks:[]}},{key:"audioTrack",get:function(){var r=this.audioTrackController;return r?r.audioTrack:-1},set:function(r){var c=this.audioTrackController;c&&(c.audioTrack=r)}},{key:"liveSyncPosition",get:function(){return this.streamController.liveSyncPosition}},{key:"subtitleTracks",get:function(){var r=this.subtitleTrackController;return r?r.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var r=this.subtitleTrackController;return r?r.subtitleTrack:-1},set:function(r){var c=this.subtitleTrackController;c&&(c.subtitleTrack=r)}},{key:"subtitleDisplay",get:function(){var r=this.subtitleTrackController;return r?r.subtitleDisplay:!1},set:function(r){var c=this.subtitleTrackController;c&&(c.subtitleDisplay=r)}}]),h}(re);wg.defaultConfig=void 0},"./src/polyfills/number-isFinite.js":function(e,n,a){"use strict";a.r(n),a.d(n,"isFiniteNumber",function(){return t});var t=Number.isFinite||function(o){return typeof o=="number"&&isFinite(o)}},"./src/utils/get-self-scope.js":function(e,n,a){"use strict";a.r(n),a.d(n,"getSelfScope",function(){return t});function t(){return typeof window=="undefined"?self:window}},"./src/utils/logger.js":function(e,n,a){"use strict";a.r(n),a.d(n,"enableLogs",function(){return y}),a.d(n,"logger",function(){return I});var t=a("./src/utils/get-self-scope.js");function o(){}var u={trace:o,debug:o,log:o,warn:o,info:o,error:o},i=u;function l(b,S){return S="["+b+"] > "+S,S}var s=Object(t.getSelfScope)();function R(b){var S=s.console[b];return S?function(){for(var L=arguments.length,O=new Array(L),$=0;$1?S-1:0),O=1;O{"use strict";Object.defineProperty(yD,"__esModule",{value:!0});yD.Direction=void 0;var z1e;(function(e){e.Right="to right",e.Left="to left",e.Down="to bottom",e.Up="to top"})(z1e=yD.Direction||(yD.Direction={}))});var TA=Oe(Aa=>{"use strict";var wD=Aa&&Aa.__spreadArray||function(e,n,a){if(a||arguments.length===2)for(var t=0,o=n.length,u;te)return s;if(R&&Rt)return t;if(e=a)throw new RangeError("min (".concat(n,") is equal/bigger than max (").concat(a,")"));if(ea)throw new RangeError("value (".concat(e,") is bigger than max (").concat(a,")"))}Aa.checkBoundaries=Z1e;function eEe(e,n,a){return ea?a:e}Aa.checkValuesAgainstBoundaries=eEe;function nEe(e){if(!(e.length<2)&&!e.slice(1).every(function(n,a){return e[a]<=n}))throw new RangeError("values={[".concat(e,"]} needs to be sorted when allowOverlap={false}"))}Aa.checkInitialOverlap=nEe;function aEe(e){var n=window.getComputedStyle(e);return{top:parseInt(n["margin-top"],10),bottom:parseInt(n["margin-bottom"],10),left:parseInt(n["margin-left"],10),right:parseInt(n["margin-right"],10)}}Aa.getMargin=aEe;function tEe(e){var n=window.getComputedStyle(e);return{top:parseInt(n["padding-top"],10)+parseInt(n["border-top-width"],10),bottom:parseInt(n["padding-bottom"],10)+parseInt(n["border-bottom-width"],10),left:parseInt(n["padding-left"],10)+parseInt(n["border-left-width"],10),right:parseInt(n["padding-right"],10)+parseInt(n["border-right-width"],10)}}Aa.getPaddingAndBorder=tEe;function rEe(e,n,a){var t=a?-1:1;e.forEach(function(o,u){return Yz(o,t*n[u].x,n[u].y)})}Aa.translateThumbs=rEe;function oEe(e,n,a,t){for(var o=0,u=Zz(e[0],n,a,t),i=1;ii?s:i},e.getBoundingClientRect().width));return u},vEe=function(e,n,a,t,o,u,i){i===void 0&&(i=function(R){return R});var l=[],s=function(R){var d=Xz(a[R],t[R],o,u,i),y=n[R].x;n.forEach(function(I,b){var S=I.x,L=Xz(a[b],t[b],o,u,i);R!==b&&(y>=S&&y<=S+L||y+d>=S&&y+d<=S+L)&&(l.includes(b)||(l.push(R),l.push(b),l=wD(wD([],l,!0),[R,b],!1),s(b)))})};return s(e),Array.from(new Set(l.sort()))},fEe=function(e,n,a,t,o,u){t===void 0&&(t=.1),o===void 0&&(o=" - "),u===void 0&&(u=function(b){return b});var i=(0,Aa.getStepDecimals)(t),l=(0,IA.useState)({}),s=l[0],R=l[1],d=(0,IA.useState)(u(n[a].toFixed(i))),y=d[0],I=d[1];return(0,IA.useEffect)(function(){if(e){var b=e.getThumbs();if(b.length<1)return;var S={},L=e.getOffsets(),O=vEe(a,L,b,n,o,i,u),$=u(n[a].toFixed(i));if(O.length){var z=O.reduce(function(we,an,cn,ce){return we.length?wD(wD([],we,!0),[L[ce[cn]].x],!1):[L[ce[cn]].x]},[]);if(Math.min.apply(Math,z)===L[a].x){var X=[];O.forEach(function(we){X.push(n[we].toFixed(i))}),$=Array.from(new Set(X.sort(function(we,an){return parseFloat(we)-parseFloat(an)}))).map(u).join(o);var oe=Math.min.apply(Math,z),te=Math.max.apply(Math,z),ve=b[O[z.indexOf(te)]].getBoundingClientRect().width;S.left="".concat(Math.abs(oe-(te+ve))/2,"px"),S.transform="translate(-50%, 0)"}else S.visibility="hidden"}I($),R(S)}},[e,n]),[y,s]};Aa.useThumbOverlap=fEe;function Zz(e,n,a,t){var o=e.getBoundingClientRect(),u=o.left,i=o.top,l=o.width,s=o.height;return Kz(t)?Math.abs(a-(i+s/2)):Math.abs(n-(u+l/2))}});var nV=Oe(Gi=>{"use strict";var _Ee=Gi&&Gi.__extends||function(){var e=function(n,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(t[u]=o[u])},e(n,a)};return function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(n,a);function t(){this.constructor=n}n.prototype=a===null?Object.create(a):(t.prototype=a.prototype,new t)}}(),pEe=Gi&&Gi.__createBinding||(Object.create?function(e,n,a,t){t===void 0&&(t=a);var o=Object.getOwnPropertyDescriptor(n,a);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[a]}}),Object.defineProperty(e,t,o)}:function(e,n,a,t){t===void 0&&(t=a),e[t]=n[a]}),dEe=Gi&&Gi.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),mEe=Gi&&Gi.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var a in e)a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)&&pEe(n,e,a);return dEe(n,e),n},eV=Gi&&Gi.__spreadArray||function(e,n,a){if(a||arguments.length===2)for(var t=0,o=n.length,u;t1&&t.props.draggableTrack){if(t.thumbRefs.some(function(l){var s;return(s=l.current)===null||s===void 0?void 0:s.contains(o.target)}))return;t.setState({draggedTrackPos:[o.clientX,o.clientY]},function(){return t.onMove(o.clientX,o.clientY)})}else{var i=(0,Dt.getClosestThumbIndex)(t.thumbRefs.map(function(l){return l.current}),o.clientX,o.clientY,t.props.direction);(u=t.thumbRefs[i].current)===null||u===void 0||u.focus(),t.setState({draggedThumbIndex:i},function(){return t.onMove(o.clientX,o.clientY)})}},t.onResize=function(){(0,Dt.translateThumbs)(t.getThumbs(),t.getOffsets(),t.props.rtl),t.calculateMarkOffsets()},t.onTouchStartTrack=function(o){var u;if(o.persist(),t.addTouchEvents(o.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(l){var s;return(s=l.current)===null||s===void 0?void 0:s.contains(o.target)}))return;t.setState({draggedTrackPos:[o.touches[0].clientX,o.touches[0].clientY]},function(){return t.onMove(o.touches[0].clientX,o.touches[0].clientY)})}else{var i=(0,Dt.getClosestThumbIndex)(t.thumbRefs.map(function(l){return l.current}),o.touches[0].clientX,o.touches[0].clientY,t.props.direction);(u=t.thumbRefs[i].current)===null||u===void 0||u.focus(),t.setState({draggedThumbIndex:i},function(){return t.onMove(o.touches[0].clientX,o.touches[0].clientY)})}},t.onMouseOrTouchStart=function(o){if(!t.props.disabled){var u=(0,Dt.isTouchEvent)(o);if(!(!u&&o.button!==0)){var i=t.getTargetIndex(o);i!==-1&&(u?t.addTouchEvents(o):t.addMouseEvents(o),t.setState({draggedThumbIndex:i,thumbZIndexes:t.state.thumbZIndexes.map(function(l,s){return s===i?Math.max.apply(Math,t.state.thumbZIndexes):l<=t.state.thumbZIndexes[i]?l:l-1})}))}}},t.onMouseMove=function(o){o.preventDefault(),t.onMove(o.clientX,o.clientY)},t.onTouchMove=function(o){o.preventDefault(),t.onMove(o.touches[0].clientX,o.touches[0].clientY)},t.onKeyDown=function(o){var u=t.props,i=u.values,l=u.onChange,s=u.step,R=u.rtl,d=u.direction,y=t.state.isChanged,I=t.getTargetIndex(o.nativeEvent),b=R||d===no.Direction.Left||d===no.Direction.Down?-1:1;I!==-1&&(hEe.includes(o.key)?(o.preventDefault(),t.setState({draggedThumbIndex:I,isChanged:!0}),l((0,Dt.replaceAt)(i,I,t.normalizeValue(i[I]+b*(o.key==="PageUp"?s*10:s),I)))):DEe.includes(o.key)?(o.preventDefault(),t.setState({draggedThumbIndex:I,isChanged:!0}),l((0,Dt.replaceAt)(i,I,t.normalizeValue(i[I]-b*(o.key==="PageDown"?s*10:s),I)))):o.key==="Tab"?t.setState({draggedThumbIndex:-1},function(){y&&t.fireOnFinalChange()}):y&&t.fireOnFinalChange())},t.onKeyUp=function(o){var u=t.state.isChanged;t.setState({draggedThumbIndex:-1},function(){u&&t.fireOnFinalChange()})},t.onMove=function(o,u){var i=t.state,l=i.draggedThumbIndex,s=i.draggedTrackPos,R=t.props,d=R.direction,y=R.min,I=R.max,b=R.onChange,S=R.values,L=R.step,O=R.rtl;if(l===-1&&s[0]===-1&&s[1]===-1)return null;var $=t.trackRef.current;if(!$)return null;var z=$.getBoundingClientRect(),X=(0,Dt.isVertical)(d)?z.height:z.width;if(s[0]!==-1&&s[1]!==-1){var oe=o-s[0],te=u-s[1],ve=0;switch(d){case no.Direction.Right:case no.Direction.Left:ve=oe/X*(I-y);break;case no.Direction.Down:case no.Direction.Up:ve=te/X*(I-y);break;default:(0,Dt.assertUnreachable)(d)}if(O&&(ve*=-1),Math.abs(ve)>=L/2){for(var we=0;weI?ve=I-S[we]:an=L/2&&b((0,Dt.replaceAt)(S,l,t.normalizeValue(ce,l)))}},t.normalizeValue=function(o,u){var i=t.props,l=i.min,s=i.max,R=i.step,d=i.allowOverlap,y=i.values;return(0,Dt.normalizeValue)(o,u,l,s,R,d,y)},t.onEnd=function(o){if(o.preventDefault(),document.removeEventListener("mousemove",t.schdOnMouseMove),document.removeEventListener("touchmove",t.schdOnTouchMove),document.removeEventListener("mouseup",t.schdOnEnd),document.removeEventListener("touchend",t.schdOnEnd),document.removeEventListener("touchcancel",t.schdOnEnd),t.state.draggedThumbIndex===-1&&t.state.draggedTrackPos[0]===-1&&t.state.draggedTrackPos[1]===-1)return null;t.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){t.fireOnFinalChange()})},t.fireOnFinalChange=function(){t.setState({isChanged:!1});var o=t.props,u=o.onFinalChange,i=o.values;u&&u(i)},t.updateMarkRefs=function(o){if(!o.renderMark){t.numOfMarks=void 0,t.markRefs=void 0;return}t.numOfMarks=(o.max-o.min)/t.props.step,t.markRefs=[];for(var u=0;u-1?"grabbing":this.props.draggableTrack?(0,Dt.isVertical)(this.props.direction)?"ns-resize":"ew-resize":s.length===1&&!I?"pointer":"inherit"},onMouseDown:I?Dt.voidFn:this.onMouseDownTrack,onTouchStart:I?Dt.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:I,children:eV(eV([],O.map(function($,z,X){return l({props:{style:a.props.direction===no.Direction.Left||a.props.direction===no.Direction.Right?{position:"absolute",left:"".concat($[0],"px"),marginTop:"".concat($[1],"px")}:{position:"absolute",top:"".concat($[0],"px"),marginLeft:"".concat($[1],"px")},key:"mark".concat(z),ref:a.markRefs[z]},index:z})}),!0),s.map(function($,z){var X=a.state.draggedThumbIndex===z;return u({index:z,value:$,isDragged:X,props:{style:{position:"absolute",zIndex:L[z],cursor:I?"inherit":X?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:z,tabIndex:I?void 0:0,"aria-valuemax":y?d:s[z+1]||d,"aria-valuemin":y?R:s[z-1]||R,"aria-valuenow":$,draggable:!1,ref:a.thumbRefs[z],role:"slider",onKeyDown:I?Dt.voidFn:a.onKeyDown,onKeyUp:I?Dt.voidFn:a.onKeyUp}})}),!0)})},n.defaultProps={step:1,direction:no.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},n}(F1.Component);Gi.default=gEe});var aV=Oe(eu=>{"use strict";var REe=eu&&eu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eu,"__esModule",{value:!0});eu.checkValuesAgainstBoundaries=eu.relativeValue=eu.useThumbOverlap=eu.Direction=eu.getTrackBackground=eu.Range=void 0;var yEe=REe(nV());eu.Range=yEe.default;var G1=TA();Object.defineProperty(eu,"getTrackBackground",{enumerable:!0,get:function(){return G1.getTrackBackground}});Object.defineProperty(eu,"useThumbOverlap",{enumerable:!0,get:function(){return G1.useThumbOverlap}});Object.defineProperty(eu,"relativeValue",{enumerable:!0,get:function(){return G1.relativeValue}});Object.defineProperty(eu,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return G1.checkValuesAgainstBoundaries}});var wEe=C1();Object.defineProperty(eu,"Direction",{enumerable:!0,get:function(){return wEe.Direction}})});var sFe={};kL(sFe,{boot:()=>cFe});var BL=function(e){return function(n){for(var a=e.length,t=n.length,o=new Array(a*t),u=0,i=0;i=a.length?n:e(a[t])};var VL=function(e,n,a,t){for(var o=0,u=t.length;o=t.length)return n;var o=t.slice();return o.splice(a,1),e(o)};var Ld=function(e){return e.slice().reverse()};var KL=function(e,n){return n.filter(e)};var YL=function(){function e(n,a,t,o,u,i){var l,s,R,d,y,I,b;for(l=u+(i-u>>1),l-u>1&&e(n,a,o,t,u,l),i-l>1&&e(n,a,o,t,l,i),s=u,R=l,d=u;s0?(t[d++]=I,++R):(t[d++]=y,++s);for(;s="0"&&e[o]<="9"?"\\&":"";return"\\"+a.charCodeAt(0).toString(10)+u})+'"'};var Ut={show:G2};var M2=function(e){return e.showRecordFields},lf=function(){return function(){return function(e){var n=M2(e);return{show:function(a){return"{"+(n(et.value)(a)+"}")}}}}};var cf={show:C2},Ye={show:S2},Ud={show:F2},Pg={show:function(e){if(e)return"true";if(!e)return"false";throw new Error("Failed pattern match at Data.Show (line 29, column 1 - line 31, column 23): "+[e.constructor.name])}},ne=function(e){return e.show};var sf=function(e){var n=ar(e);return function(a){var t=M2(a);return function(o){var u=ne(o);return{showRecordFields:function(i){return function(l){var s=t(et.value)(l),R=n(et.value),d=Mu(R)(l);return" "+(R+(": "+(u(d)+(","+s))))}}}}}},vf=function(e){var n=ar(e);return function(a){var t=ne(a);return{showRecordFields:function(o){return function(u){var i=n(et.value),l=Mu(i)(u);return" "+(i+(": "+(t(l)+" ")))}}}}};var ye=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),ie=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var Ne=function(){function e(){}return e.value=new e,e}(),kd=function(e){return e};var u0=function(e){return e.to};var i0=function(e){return e.from};var WY=pn(dn),M=function(){function e(){}return e.value=new e,e}(),T=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var A2=function(e){var n=tn(e);return{append:function(a){return function(t){if(a instanceof M)return t;if(t instanceof M)return a;if(a instanceof T&&t instanceof T)return new T(n(a.value0)(t.value0));throw new Error("Failed pattern match at Data.Maybe (line 182, column 1 - line 185, column 43): "+[a.constructor.name,t.constructor.name])}}}};var bn=function(e){return function(n){return function(a){if(a instanceof M)return e;if(a instanceof T)return n(a.value0);throw new Error("Failed pattern match at Data.Maybe (line 237, column 1 - line 237, column 51): "+[e.constructor.name,n.constructor.name,a.constructor.name])}}},St=bn(!0)(hn(!1)),Ct=bn(!1)(hn(!0));var ae={map:function(e){return function(n){return n instanceof T?new T(e(n.value0)):M.value}}},$Y=U(ae);var Je=function(e){return bn(e)(WY)},yt=function(){return function(e){if(e instanceof T)return e.value0;throw new Error("Failed pattern match at Data.Maybe (line 288, column 1 - line 288, column 46): "+[e.constructor.name])}};var Wt=function(e){var n=Re(e);return{eq:function(a){return function(t){return a instanceof M&&t instanceof M?!0:a instanceof T&&t instanceof T?n(a.value0)(t.value0):!1}}}},ru=function(e){var n=Ke(e),a=Wt(e.Eq0());return{compare:function(t){return function(o){if(t instanceof M&&o instanceof M)return ke.value;if(t instanceof M)return De.value;if(o instanceof M)return de.value;if(t instanceof T&&o instanceof T)return n(t.value0)(o.value0);throw new Error("Failed pattern match at Data.Maybe (line 0, column 0 - line 0, column 0): "+[t.constructor.name,o.constructor.name])}},Eq0:function(){return a}}};var vr={apply:function(e){return function(n){if(e instanceof T)return $Y(e.value0)(n);if(e instanceof M)return M.value;throw new Error("Failed pattern match at Data.Maybe (line 67, column 1 - line 69, column 30): "+[e.constructor.name,n.constructor.name])}},Functor0:function(){return ae}};var nn={bind:function(e){return function(n){if(e instanceof T)return n(e.value0);if(e instanceof M)return M.value;throw new Error("Failed pattern match at Data.Maybe (line 125, column 1 - line 127, column 28): "+[e.constructor.name,n.constructor.name])}},Apply0:function(){return vr}};var oa=function(){return{pure:T.create,Apply0:function(){return vr}}}();var $r={alt:function(e){return function(n){return e instanceof M?n:e}},Functor0:function(){return ae}},zY=function(){return{empty:M.value,Alt0:function(){return $r}}}(),kr={Applicative0:function(){return oa},Plus1:function(){return zY}};var Me=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Pe=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var c0=function(e){return bn(new Me(e))(Pe.create)};var hr={map:function(e){return function(n){if(n instanceof Me)return new Me(n.value0);if(n instanceof Pe)return new Pe(e(n.value0));throw new Error("Failed pattern match at Data.Either (line 0, column 0 - line 0, column 0): "+[n.constructor.name])}}},VY=U(hr);var kt=function(e){return function(n){return function(a){if(a instanceof Me)return e(a.value0);if(a instanceof Pe)return n(a.value0);throw new Error("Failed pattern match at Data.Either (line 208, column 1 - line 208, column 64): "+[e.constructor.name,n.constructor.name,a.constructor.name])}}},ff=function(){return kt(hn(M.value))(T.create)}();var Bd={apply:function(e){return function(n){if(e instanceof Me)return new Me(e.value0);if(e instanceof Pe)return VY(e.value0)(n);throw new Error("Failed pattern match at Data.Either (line 70, column 1 - line 72, column 30): "+[e.constructor.name,n.constructor.name])}},Functor0:function(){return hr}};var Au={bind:kt(function(e){return function(n){return new Me(e)}})(function(e){return function(n){return n(e)}}),Apply0:function(){return Bd}};var Ys=function(){return{pure:Pe.create,Apply0:function(){return Bd}}}(),xg={Applicative0:function(){return Ys},Bind1:function(){return Au}};var ci=function(e){return e};var Wc={map:function(e){return function(n){return e(n)}}};var L2={apply:function(e){return function(n){return e(n)}},Functor0:function(){return Wc}},QY={bind:function(e){return function(n){return n(e)}},Apply0:function(){return L2}},P2={pure:ci,Apply0:function(){return L2}},cr={Applicative0:function(){return P2},Bind1:function(){return QY}};var x2=function(e){return Math.min(Math.abs(e),2147483647)},N2=function(e){return function(n){return n===0?0:n>0?Math.floor(e/n):-Math.floor(e/-n)}},j2=function(e){return function(n){if(n===0)return 0;var a=Math.abs(n);return(e%a+a)%a}};var EI={Ring0:function(){return Yl}};var Io=function(e){return e.mod};var tr={degree:x2,div:N2,mod:j2,CommutativeRing0:function(){return EI}},io=function(e){return e.div};var wt={mempty:"",Semigroup0:function(){return of}};var Xa=function(e){return e.mempty};var U2=function(e){return function(){return e}},k2=function(e){return function(n){return function(){return n(e())()}}};var II=function(e){return function(n){return function(){for(var a=0,t=e.length;a>1),l-u>1&&e(n,a,o,t,u,l),i-l>1&&e(n,a,o,t,l,i),s=u,R=l,d=u;s0?(t[d++]=I,++R):(t[d++]=y,++s);for(;s=0;u--)t=e(a[u])(t);return t}}},fP=function(e){return function(n){return function(a){for(var t=n,o=a.length,u=0;u":e===void 0?"":e instanceof Date?e.toString():typeof Blob!="undefined"&&e instanceof Blob?"file["+e.name+"]":JSON.stringify(e)}var RZ=Yt(vn),UP=av(g0),yZ=Ht(vn);var em=function(e){return e.foldrWithIndex};var nm=function(e){return e.foldlWithIndex};var wZ=function(e){var n=em(e);return function(a){var t=tn(a.Semigroup0()),o=Xa(a);return function(u){return n(function(i){return function(l){return function(s){return t(u(i)(l))(s)}}})(o)}}},am={foldrWithIndex:function(e){return function(n){var a=RZ(function(o){return function(u){return e(o.value0)(o.value1)(u)}})(n),t=UP(Dn.create);return function(o){return a(t(o))}}},foldlWithIndex:function(e){return function(n){var a=yZ(function(o){return function(u){return e(u.value0)(o)(u.value1)}})(n),t=UP(Dn.create);return function(o){return a(t(o))}}},foldMapWithIndex:function(e){return wZ(am)(e)},Foldable0:function(){return vn}};var kP=function(e){var n=nm(e);return function(a){var t=function(o){return function(u){return function(i){return u instanceof M?a(o)(i):u}}};return n(t)(M.value)}};var BP=function(e){return function(n){return function(a){return(a|0)===a?e(a):n}}},Ft=function(e){return e},HP=function(e){return function(n){return function(a){var t;a<11?t="[0-"+(a-1).toString()+"]":a===11?t="[0-9a]":t="[0-9a-"+String.fromCharCode(86+a)+"]";var o=new RegExp("^[\\+\\-]?"+t+"+$","i");return function(u){if(o.test(u)){var i=parseInt(u,a);return(i|0)===i?e(i):n}else return n}}}};var $g=isFinite;var zg=Math.abs;var I0=Math.floor,XI=Math.log;var Vg=function(e){return function(n){return Math.pow(e,n)}};var Ef=Math.round;var qP=2.302585092994046;var JP=Jt(Od),WP=tt(Od);var CZ=function(){return HP(T.create)(M.value)}(),tc=CZ(10),If=function(){return BP(T.create)(M.value)}(),$P=function(e){if(!$g(e))return 0;if(e>=Ft(JP))return JP;if(e<=Ft(WP))return WP;if(qe)return Je(0)(If(e));throw new Error("Failed pattern match at Data.Int (line 72, column 1 - line 72, column 29): "+[e.constructor.name])},Qg=function(e){return $P(Ef(e))};var co=function(e){return $P(I0(e))};function Kg(e){return Object.prototype.toString.call(e).slice(8,-1)}function tm(e){return e===null}function Tf(e){return e===void 0}var Yg=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function zP(e){return e.stack||e.toString()}function cu(e){return new Error(e)}function T0(e){return e.message}function Xg(e){return function(){throw e}}var QP=function(e){return Xg(cu(e))};var KP={show:zP};var Lr=function(e){return e.throwError};var xt=function(e){return e.catchError};var Sf=function(e){var n=xt(e),a=e.MonadThrow0().Monad0(),t=U(a.Bind1().Apply0().Functor0()),o=J(a.Applicative0());return function(u){return n(t(Pe.create)(u))(function(i){return o(Me.create(i))})}};var Dr={liftEffect:pn(dn),Monad0:function(){return Zl}},yn=function(e){return e.liftEffect};var FZ=U(hr);var eT=function(e){return e};var nR=function(e){return e};var aR=function(e){return function(n){return e(n)}},tR=function(e){var n=U(e);return{map:function(a){return aR(n(FZ(a)))}}};var XP=function(e){return{Applicative0:function(){return Qc(e)},Bind1:function(){return Ff(e)}}},Ff=function(e){var n=Z(e.Bind1()),a=J(e.Applicative0());return{bind:function(t){return function(o){return n(t)(kt(function(u){return a(Me.create(u))})(function(u){var i=o(u);return i}))}},Apply0:function(){return nT(e)}}},nT=function(e){var n=tR(e.Bind1().Apply0().Functor0());return{apply:ki(XP(e)),Functor0:function(){return n}}},Qc=function(e){return{pure:function(){var n=J(e.Applicative0());return function(a){return eT(n(Pe.create(a)))}}(),Apply0:function(){return nT(e)}}};var ZP=function(e){var n=XP(e);return{throwError:function(){var a=J(e.Applicative0());return function(t){return eT(a(Me.create(t)))}}(),Monad0:function(){return n}}};var rR=function(e){var n=tn(e);return function(a){var t=a.Bind1(),o=Z(t),u=J(a.Applicative0()),i=tR(t.Apply0().Functor0());return{alt:function(l){return function(s){return o(l)(function(R){if(R instanceof Pe)return u(new Pe(R.value0));if(R instanceof Me)return o(s)(function(d){if(d instanceof Pe)return u(new Pe(d.value0));if(d instanceof Me)return u(new Me(n(R.value0)(d.value0)));throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 87, column 9 - line 89, column 49): "+[d.constructor.name])});throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 83, column 5 - line 89, column 49): "+[R.constructor.name])})}},Functor0:function(){return i}}}};var ju=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}();var iR=function(e){var n=ou(e);return function(a){return new ju(a,n)}};var aT=function(e){var n=U(e);return{map:function(a){return function(t){return new ju(a(t.value0),n(a)(t.value1))}}}};var tT=function(e){var n=Ar(e),a=Ht(e),t=Yt(e);return{foldMap:function(o){var u=tn(o.Semigroup0()),i=n(o);return function(l){return function(s){return u(l(s.value0))(i(l)(s.value1))}}},foldl:function(o){return function(u){return function(i){return a(o)(o(u)(i.value0))(i.value1)}}},foldr:function(o){return function(u){return function(i){return o(i.value0)(t(o)(u)(i.value1))}}}}};var Vt=function(){function e(){}return e.value=new e,e}(),at=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),lR=function(e){return e},OZ=function(e){return new at(e.value0,e.value1)};var UZ=function(e){var n=function(a){return function(t){var o=a,u=!1,i;function l(s,R){if(R instanceof at&&R.value1 instanceof at&&R.value1.value1 instanceof at){o=new at(R,s),t=R.value1.value1.value1;return}var d=function(I){return I instanceof at&&I.value1 instanceof at&&I.value1.value1 instanceof Vt?new at(e(I.value0),new at(e(I.value1.value0),Vt.value)):I instanceof at&&I.value1 instanceof Vt?new at(e(I.value0),Vt.value):Vt.value},y=function(I){return function(b){var S=I,L=!1,O;function $(z,X){if(z instanceof at&&z.value0 instanceof at&&z.value0.value1 instanceof at&&z.value0.value1.value1 instanceof at){S=z.value1,b=new at(e(z.value0.value0),new at(e(z.value0.value1.value0),new at(e(z.value0.value1.value1.value0),X)));return}return L=!0,X}for(;!L;)O=$(S,b);return O}};return u=!0,y(s)(d(R))}for(;!u;)i=l(o,t);return i}};return n(Vt.value)},t3={map:UZ};var rT=aT(t3),Co={foldr:function(e){return function(n){var a=function(){var o=function(u){return function(i){var l=u,s=!1,R;function d(y,I){if(I instanceof Vt)return s=!0,y;if(I instanceof at){l=new at(I.value0,y),i=I.value1;return}throw new Error("Failed pattern match at Data.List.Types (line 107, column 7 - line 107, column 23): "+[y.constructor.name,I.constructor.name])}for(;!s;)R=d(l,i);return R}};return o(Vt.value)}(),t=Ht(Co)(Va(e))(n);return function(o){return t(a(o))}}},foldl:function(e){var n=function(a){return function(t){var o=a,u=!1,i;function l(s,R){if(R instanceof Vt)return u=!0,s;if(R instanceof at){o=e(s)(R.value0),t=R.value1;return}throw new Error("Failed pattern match at Data.List.Types (line 111, column 12 - line 113, column 30): "+[R.constructor.name])}for(;!u;)i=l(o,t);return i}};return n},foldMap:function(e){var n=tn(e.Semigroup0()),a=Xa(e);return function(t){return Ht(Co)(function(o){var u=n(o);return function(i){return u(t(i))}})(a)}}};var kZ=Yt(Co);var cR=tT(Co);var oT={append:function(e){return function(n){return kZ(at.create)(n)(e)}}},r3=tn(oT);var sR={append:function(e){return function(n){return new ju(e.value0,r3(e.value1)(OZ(n)))}}};var BZ={alt:r3,Functor0:function(){return t3}},o3=function(){return{empty:Vt.value,Alt0:function(){return BZ}}}();var QZ=ut(z2);var c3=function(e){return new at(e,Vt.value)};var uT=function(){var e=function(n){return function(a){var t=n,o=!1,u;function i(l,s){if(s instanceof Vt)return o=!0,l;if(s instanceof at){t=new at(s.value0,l),a=s.value1;return}throw new Error("Failed pattern match at Data.List (line 368, column 3 - line 368, column 19): "+[l.constructor.name,s.constructor.name])}for(;!o;)u=i(t,a);return u}};return e(Vt.value)}();var iT=function(e){var n=Z(e.Monad0().Bind1()),a=To(e);return function(t){var o=t.Plus1().Alt0(),u=ma(o),i=U(o.Functor0()),l=J(t.Applicative0());return function(s){var R=function(d){return n(u(i(zt.create)(s))(l(new Bt(ge))))(function(y){return l(QZ(function(I){return new at(I,d)})(function(I){return uT(d)})(y))})};return a(R)(Vt.value)}}};var $o=function(e){return Yt(e)(at.create)(Vt.value)};var s3=function(e){return e()};var v3=function(e){throw new Error(e)};var f3=function(){return v3};var KZ=f3(),YZ=s3,rc=function(e){return YZ(function(){return KZ(e)})};var fR=function(){var e=iR(o3);return function(n){return lR(e(n))}}();var p3=function(e){return e.value0};var F0=function(e){return e.join("")},om=function(e){return e.split("")},Ou=function(e){return e},d3=function(e){return function(n){return function(a){return function(t){return a>=0&&a=0&&e=0&&e<100&&l.setUTCFullYear(e),l.getTime()};function M3(e,n){var a=vT(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond),t=vT(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return a-t}function A3(e){return function(n){return function(a){return function(t){var o=vT(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond),u=new Date(o+a);return isNaN(u.getTime())?n:e({year:u.getUTCFullYear(),month:u.getUTCMonth()+1,day:u.getUTCDate(),hour:u.getUTCHours(),minute:u.getUTCMinutes(),second:u.getUTCSeconds(),millisecond:u.getUTCMilliseconds()})}}}}var L3=function(e,n,a){var t=new Date(Date.UTC(e,n,a));return e>=0&&e<100&&t.setUTCFullYear(e),t};function P3(e,n,a,t){var o=L3(n,a-1,t);return e(o.getUTCFullYear())(o.getUTCMonth()+1)(o.getUTCDate())}function x3(e,n,a){return L3(e,n-1,a).getUTCDay()}function lv(e){return e.charCodeAt(0)}function N3(e){return String.fromCharCode(e)}var Rr=function(e){var n=J(e.Applicative0()),a=ou(e.Plus1());return function(t){if(t)return n(ge);if(!t)return a;throw new Error("Failed pattern match at Control.Alternative (line 48, column 1 - line 48, column 54): "+[t.constructor.name])}};var j3=tt(Ks),O3=Jt(Ks);var ua=function(e){return e.toEnum};var Wn=function(e){return e.fromEnum},fT=function(e){var n=ua(e),a=Wn(e),t=tt(e.Bounded0());return function(o){return function(u){return function(i){var l=n(i);if(l instanceof T)return l.value0;if(l instanceof M){var s=i=lv(j3)&&e<=lv(O3)?new T(N3(e)):M.value},Dee={succ:xf(_T)(lv),pred:Nf(_T)(lv),Ord0:function(){return Lg}};var jf=function(){return{cardinality:lv(O3)-lv(j3)|0,toEnum:_T,fromEnum:lv,Bounded0:function(){return Ks},Enum1:function(){return Dee}}}();var hR=function(e,n,a){var t=0,o;return function(u){if(t===2)return o;if(t===1)throw new ReferenceError(e+" was needed before it finished initializing (module "+n+", line "+u+")",n,u);return t=1,o=a(),t=2,o}},U3=ne(Ye);var pi=function(){function e(){}return e.value=new e,e}(),Vi=function(){function e(){}return e.value=new e,e}(),Qi=function(){function e(){}return e.value=new e,e}(),Ki=function(){function e(){}return e.value=new e,e}(),Yi=function(){function e(){}return e.value=new e,e}(),Xi=function(){function e(){}return e.value=new e,e}(),Ll=function(){function e(){}return e.value=new e,e}(),su=function(){function e(){}return e.value=new e,e}(),ku=function(){function e(){}return e.value=new e,e}(),vu=function(){function e(){}return e.value=new e,e}(),Bu=function(){function e(){}return e.value=new e,e}(),Hu=function(){function e(){}return e.value=new e,e}(),fu=function(){function e(){}return e.value=new e,e}(),_u=function(){function e(){}return e.value=new e,e}(),qu=function(){function e(){}return e.value=new e,e}(),Ju=function(){function e(){}return e.value=new e,e}(),Wu=function(){function e(){}return e.value=new e,e}(),$u=function(){function e(){}return e.value=new e,e}(),di=function(){function e(){}return e.value=new e,e}();var k3={show:function(e){return"(Year "+(U3(e)+")")}},B3={show:function(e){if(e instanceof pi)return"Monday";if(e instanceof Vi)return"Tuesday";if(e instanceof Qi)return"Wednesday";if(e instanceof Ki)return"Thursday";if(e instanceof Yi)return"Friday";if(e instanceof Xi)return"Saturday";if(e instanceof Ll)return"Sunday";throw new Error("Failed pattern match at Data.Date.Component (line 184, column 1 - line 191, column 25): "+[e.constructor.name])}},DR={show:function(e){if(e instanceof su)return"January";if(e instanceof ku)return"February";if(e instanceof vu)return"March";if(e instanceof Bu)return"April";if(e instanceof Hu)return"May";if(e instanceof fu)return"June";if(e instanceof _u)return"July";if(e instanceof qu)return"August";if(e instanceof Ju)return"September";if(e instanceof Wu)return"October";if(e instanceof $u)return"November";if(e instanceof di)return"December";throw new Error("Failed pattern match at Data.Date.Component (line 101, column 1 - line 113, column 29): "+[e.constructor.name])}},H3={show:function(e){return"(Day "+(U3(e)+")")}},gR=aa,RR=aa,q3=nt,gee={eq:function(e){return function(n){return e instanceof pi&&n instanceof pi||e instanceof Vi&&n instanceof Vi||e instanceof Qi&&n instanceof Qi||e instanceof Ki&&n instanceof Ki||e instanceof Yi&&n instanceof Yi||e instanceof Xi&&n instanceof Xi||e instanceof Ll&&n instanceof Ll}}},J3={compare:function(e){return function(n){if(e instanceof pi&&n instanceof pi)return ke.value;if(e instanceof pi)return De.value;if(n instanceof pi)return de.value;if(e instanceof Vi&&n instanceof Vi)return ke.value;if(e instanceof Vi)return De.value;if(n instanceof Vi)return de.value;if(e instanceof Qi&&n instanceof Qi)return ke.value;if(e instanceof Qi)return De.value;if(n instanceof Qi)return de.value;if(e instanceof Ki&&n instanceof Ki)return ke.value;if(e instanceof Ki)return De.value;if(n instanceof Ki)return de.value;if(e instanceof Yi&&n instanceof Yi)return ke.value;if(e instanceof Yi)return De.value;if(n instanceof Yi)return de.value;if(e instanceof Xi&&n instanceof Xi)return ke.value;if(e instanceof Xi)return De.value;if(n instanceof Xi)return de.value;if(e instanceof Ll&&n instanceof Ll)return ke.value;throw new Error("Failed pattern match at Data.Date.Component (line 0, column 0 - line 0, column 0): "+[e.constructor.name,n.constructor.name])}},Eq0:function(){return gee}},pT={eq:function(e){return function(n){return e instanceof su&&n instanceof su||e instanceof ku&&n instanceof ku||e instanceof vu&&n instanceof vu||e instanceof Bu&&n instanceof Bu||e instanceof Hu&&n instanceof Hu||e instanceof fu&&n instanceof fu||e instanceof _u&&n instanceof _u||e instanceof qu&&n instanceof qu||e instanceof Ju&&n instanceof Ju||e instanceof Wu&&n instanceof Wu||e instanceof $u&&n instanceof $u||e instanceof di&&n instanceof di}}},P0={compare:function(e){return function(n){if(e instanceof su&&n instanceof su)return ke.value;if(e instanceof su)return De.value;if(n instanceof su)return de.value;if(e instanceof ku&&n instanceof ku)return ke.value;if(e instanceof ku)return De.value;if(n instanceof ku)return de.value;if(e instanceof vu&&n instanceof vu)return ke.value;if(e instanceof vu)return De.value;if(n instanceof vu)return de.value;if(e instanceof Bu&&n instanceof Bu)return ke.value;if(e instanceof Bu)return De.value;if(n instanceof Bu)return de.value;if(e instanceof Hu&&n instanceof Hu)return ke.value;if(e instanceof Hu)return De.value;if(n instanceof Hu)return de.value;if(e instanceof fu&&n instanceof fu)return ke.value;if(e instanceof fu)return De.value;if(n instanceof fu)return de.value;if(e instanceof _u&&n instanceof _u)return ke.value;if(e instanceof _u)return De.value;if(n instanceof _u)return de.value;if(e instanceof qu&&n instanceof qu)return ke.value;if(e instanceof qu)return De.value;if(n instanceof qu)return de.value;if(e instanceof Ju&&n instanceof Ju)return ke.value;if(e instanceof Ju)return De.value;if(n instanceof Ju)return de.value;if(e instanceof Wu&&n instanceof Wu)return ke.value;if(e instanceof Wu)return De.value;if(n instanceof Wu)return de.value;if(e instanceof $u&&n instanceof $u)return ke.value;if(e instanceof $u)return De.value;if(n instanceof $u)return de.value;if(e instanceof di&&n instanceof di)return ke.value;throw new Error("Failed pattern match at Data.Date.Component (line 0, column 0 - line 0, column 0): "+[e.constructor.name,n.constructor.name])}},Eq0:function(){return pT}},W3=nt,yR=function(){return{bottom:-271820|0,top:275759,Ord0:function(){return gR}}}(),Ree=function(){return{bottom:pi.value,top:Ll.value,Ord0:function(){return J3}}}(),wR=function(){return{bottom:su.value,top:di.value,Ord0:function(){return P0}}}(),Pr={cardinality:547580,toEnum:function(e){if(e>=(-271820|0)&&e<=275759)return new T(e);if(qe)return M.value;throw new Error("Failed pattern match at Data.Date.Component (line 35, column 1 - line 40, column 24): "+[e.constructor.name])},fromEnum:function(e){return e},Bounded0:function(){return yR},Enum1:function(){return yee(0)}},yee=hR("enumYear","Data.Date.Component",function(){return{succ:function(){var e=ua(Pr),n=Wn(Pr);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(Pr),n=Wn(Pr);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return gR}}});var cv={cardinality:7,toEnum:function(e){return e===1?new T(pi.value):e===2?new T(Vi.value):e===3?new T(Qi.value):e===4?new T(Ki.value):e===5?new T(Yi.value):e===6?new T(Xi.value):e===7?new T(Ll.value):M.value},fromEnum:function(e){if(e instanceof pi)return 1;if(e instanceof Vi)return 2;if(e instanceof Qi)return 3;if(e instanceof Ki)return 4;if(e instanceof Yi)return 5;if(e instanceof Xi)return 6;if(e instanceof Ll)return 7;throw new Error("Failed pattern match at Data.Date.Component (line 175, column 14 - line 182, column 16): "+[e.constructor.name])},Bounded0:function(){return Ree},Enum1:function(){return wee(0)}},wee=hR("enumWeekday","Data.Date.Component",function(){return{succ:function(){var e=ua(cv),n=Wn(cv);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(cv),n=Wn(cv);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return J3}}});var rr={cardinality:12,toEnum:function(e){return e===1?new T(su.value):e===2?new T(ku.value):e===3?new T(vu.value):e===4?new T(Bu.value):e===5?new T(Hu.value):e===6?new T(fu.value):e===7?new T(_u.value):e===8?new T(qu.value):e===9?new T(Ju.value):e===10?new T(Wu.value):e===11?new T($u.value):e===12?new T(di.value):M.value},fromEnum:function(e){if(e instanceof su)return 1;if(e instanceof ku)return 2;if(e instanceof vu)return 3;if(e instanceof Bu)return 4;if(e instanceof Hu)return 5;if(e instanceof fu)return 6;if(e instanceof _u)return 7;if(e instanceof qu)return 8;if(e instanceof Ju)return 9;if(e instanceof Wu)return 10;if(e instanceof $u)return 11;if(e instanceof di)return 12;throw new Error("Failed pattern match at Data.Date.Component (line 87, column 14 - line 99, column 19): "+[e.constructor.name])},Bounded0:function(){return wR},Enum1:function(){return bee(0)}},bee=hR("enumMonth","Data.Date.Component",function(){return{succ:function(){var e=ua(rr),n=Wn(rr);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(rr),n=Wn(rr);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return P0}}});var pm={bottom:1,top:31,Ord0:function(){return RR}},pu={cardinality:31,toEnum:function(e){if(e>=1&&e<=31)return new T(e);if(qe)return M.value;throw new Error("Failed pattern match at Data.Date.Component (line 133, column 1 - line 138, column 23): "+[e.constructor.name])},fromEnum:function(e){return e},Bounded0:function(){return pm},Enum1:function(){return Eee(0)}},Eee=hR("enumDay","Data.Date.Component",function(){return{succ:function(){var e=ua(pu),n=Wn(pu);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(pu),n=Wn(pu);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return RR}}});var x0=NI()();var $3=pn(dn),dT=function(e){return e},Iee=function(e){return e},dm=function(e){return e};var Tee=function(e){return e},N0=function(e){return e.toDuration};var z3={append:function(e){return function(n){return e+n}}};var bR={append:function(e){return function(n){return e+n}}};var V3=qc;var Q3=qc;var ER=function(e){return e.fromDuration};var es={fromDuration:x0(dT)(function(e){return e*1e3}),toDuration:x0(dm)(function(e){return e/1e3})},sv={fromDuration:x0(Iee)(function(e){return e*6e4}),toDuration:x0(dm)(function(e){return e/6e4})},j0={fromDuration:$3,toDuration:$3};var mT={fromDuration:x0(Tee)(function(e){return e*864e5}),toDuration:x0(dm)(function(e){return e/864e5})};var X3=Wn(rr),hT=yt(),Z3=ua(cv),Cee=ne(k3),Fee=ne(DR),Gee=ne(H3);var Mee=Re(q3),Aee=Re(pT),Lee=Re(W3),Pee=Ke(gR),xee=Ke(P0),Nee=Ke(RR);var jee=ua(rr);var IR=function(){function e(n,a,t){this.value0=n,this.value1=a,this.value2=t}return e.create=function(n){return function(a){return function(t){return new e(n,a,t)}}},e}(),zu=function(e){return e.value0},mm=function(e){var n=x3(e.value0,X3(e.value1),e.value2),a=n===0;return hT(Z3(a?7:n))},ex={show:function(e){return"(Date "+(Cee(e.value0)+(" "+(Fee(e.value1)+(" "+(Gee(e.value2)+")")))))}},Vu=function(e){return e.value1};var TR={eq:function(e){return function(n){return Mee(e.value0)(n.value0)&&Aee(e.value1)(n.value1)&&Lee(e.value2)(n.value2)}}},Oee=Re(TR),DT={compare:function(e){return function(n){var a=Pee(e.value0)(n.value0);if(a instanceof De)return De.value;if(a instanceof de)return de.value;var t=xee(e.value1)(n.value1);return t instanceof De?De.value:t instanceof de?de.value:Nee(e.value2)(n.value2)}},Eq0:function(){return TR}};var ic=function(e){return e.value2},vv=function(e){return function(n){return function(a){var t=function(o){return function(u){return function(i){return new IR(o,hT(jee(u)),i)}}};return P3(t,e,X3(n),a)}}},SR=function(e){return function(n){return function(a){var t=new IR(e,n,a),o=Oee(vv(e)(n)(a))(t);return o?new T(t):M.value}}},gT=function(){return{bottom:new IR(tt(yR),tt(wR),tt(pm)),top:new IR(Jt(yR),Jt(wR),Jt(pm)),Ord0:function(){return DT}}}();var CR=function(e,n,a){var t=0,o;return function(u){if(t===2)return o;if(t===1)throw new ReferenceError(e+" was needed before it finished initializing (module "+n+", line "+u+")",n,u);return t=1,o=a(),t=2,o}},FR=ne(Ye);var nx={show:function(e){return"(Second "+(FR(e)+")")}},ax={show:function(e){return"(Minute "+(FR(e)+")")}},tx={show:function(e){return"(Millisecond "+(FR(e)+")")}},rx={show:function(e){return"(Hour "+(FR(e)+")")}},GR=aa,MR=aa,AR=aa,LR=aa,ox=nt,ux=nt,ix=nt,lx=nt,hm={bottom:0,top:59,Ord0:function(){return GR}},Dm={bottom:0,top:59,Ord0:function(){return MR}},gm={bottom:0,top:999,Ord0:function(){return AR}},Rm={bottom:0,top:23,Ord0:function(){return LR}},mi={cardinality:60,toEnum:function(e){if(e>=0&&e<=59)return new T(e);if(qe)return M.value;throw new Error("Failed pattern match at Data.Time.Component (line 90, column 1 - line 95, column 26): "+[e.constructor.name])},fromEnum:function(e){return e},Bounded0:function(){return hm},Enum1:function(){return Uee(0)}},Uee=CR("enumSecond","Data.Time.Component",function(){return{succ:function(){var e=ua(mi),n=Wn(mi);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(mi),n=Wn(mi);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return GR}}});var hi={cardinality:60,toEnum:function(e){if(e>=0&&e<=59)return new T(e);if(qe)return M.value;throw new Error("Failed pattern match at Data.Time.Component (line 61, column 1 - line 66, column 26): "+[e.constructor.name])},fromEnum:function(e){return e},Bounded0:function(){return Dm},Enum1:function(){return kee(0)}},kee=CR("enumMinute","Data.Time.Component",function(){return{succ:function(){var e=ua(hi),n=Wn(hi);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(hi),n=Wn(hi);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return MR}}});var du={cardinality:1e3,toEnum:function(e){if(e>=0&&e<=999)return new T(e);if(qe)return M.value;throw new Error("Failed pattern match at Data.Time.Component (line 120, column 1 - line 125, column 31): "+[e.constructor.name])},fromEnum:function(e){return e},Bounded0:function(){return gm},Enum1:function(){return Bee(0)}},Bee=CR("enumMillisecond","Data.Time.Component",function(){return{succ:function(){var e=ua(du),n=Wn(du);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(du),n=Wn(du);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return AR}}});var Di={cardinality:24,toEnum:function(e){if(e>=0&&e<=23)return new T(e);if(qe)return M.value;throw new Error("Failed pattern match at Data.Time.Component (line 32, column 1 - line 37, column 24): "+[e.constructor.name])},fromEnum:function(e){return e},Bounded0:function(){return Rm},Enum1:function(){return Hee(0)}},Hee=CR("enumHour","Data.Time.Component",function(){return{succ:function(){var e=ua(Di),n=Wn(Di);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(Di),n=Wn(Di);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return LR}}});var Wee=ne(rx),$ee=ne(ax),zee=ne(nx),Vee=ne(tx);var Qee=Re(lx),Kee=Re(ux),Yee=Re(ox),Xee=Re(ix),Zee=Ke(LR),ene=Ke(MR),nne=Ke(GR),ane=Ke(AR);var lc=function(){function e(n,a,t,o){this.value0=n,this.value1=a,this.value2=t,this.value3=o}return e.create=function(n){return function(a){return function(t){return function(o){return new e(n,a,t,o)}}}},e}(),cx={show:function(e){return"(Time "+(Wee(e.value0)+(" "+($ee(e.value1)+(" "+(zee(e.value2)+(" "+(Vee(e.value3)+")")))))))}};var ns=function(e){return e.value2},as=function(e){return e.value1},Zi=function(e){return e.value3};var cc=function(e){return e.value0};var RT={eq:function(e){return function(n){return Qee(e.value0)(n.value0)&&Kee(e.value1)(n.value1)&&Yee(e.value2)(n.value2)&&Xee(e.value3)(n.value3)}}},yT={compare:function(e){return function(n){var a=Zee(e.value0)(n.value0);if(a instanceof De)return De.value;if(a instanceof de)return de.value;var t=ene(e.value1)(n.value1);if(t instanceof De)return De.value;if(t instanceof de)return de.value;var o=nne(e.value2)(n.value2);return o instanceof De?De.value:o instanceof de?de.value:ane(e.value3)(n.value3)}},Eq0:function(){return RT}};var ym=function(){return{bottom:new lc(tt(Rm),tt(Dm),tt(hm),tt(gm)),top:new lc(Jt(Rm),Jt(Dm),Jt(hm),Jt(gm)),Ord0:function(){return yT}}}();var tne=Wn(Pr),rne=Wn(rr),one=Wn(pu),une=Wn(Di),ine=Wn(hi),lne=Wn(mi),cne=Wn(du),sne=ne(ex),vne=ne(cx),fne=Re(TR),_ne=Re(RT),pne=Ke(DT),dne=Ke(yT),mne=Z(nn),O0=Yn(vr),wT=U(ae),hne=Sl(nn),Dne=ua(Pr),gne=ua(rr),Rne=ua(pu),yne=ua(Di),wne=ua(hi),bne=ua(mi),Ene=ua(du),sc=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),bT=function(e){return{year:tne(zu(e.value0)),month:rne(Vu(e.value0)),day:one(ic(e.value0)),hour:une(cc(e.value1)),minute:ine(as(e.value1)),second:lne(ns(e.value1)),millisecond:cne(Zi(e.value1))}},ET=function(e){return e.value1},sx={show:function(e){return"(DateTime "+(sne(e.value0)+(" "+(vne(e.value1)+")")))}};var Ine={eq:function(e){return function(n){return fne(e.value0)(n.value0)&&_ne(e.value1)(n.value1)}}},Qu={compare:function(e){return function(n){var a=pne(e.value0)(n.value0);return a instanceof De?De.value:a instanceof de?de.value:dne(e.value1)(n.value1)}},Eq0:function(){return Ine}},Ku=function(e){var n=N0(e);return function(a){return function(t){return n(M3(bT(a),bT(t)))}}},Of=function(e){return e.value0},U0=function(){return{bottom:new sc(tt(gT),tt(ym)),top:new sc(Jt(gT),Jt(ym)),Ord0:function(){return Qu}}}(),vc=function(e){var n=ER(e);return function(a){return function(t){return mne(A3(T.create)(M.value)(n(a))(bT(t)))(function(o){return O0(wT(sc.create)(hne(O0(O0(wT(SR)(Dne(o.year)))(gne(o.month)))(Rne(o.day)))))(O0(O0(O0(wT(lc.create)(yne(o.hour)))(wne(o.minute)))(bne(o.second)))(Ene(o.millisecond)))})}}};var zo=function(){var e={},n="Pure",a="Throw",t="Catch",o="Sync",u="Async",i="Bind",l="Bracket",s="Fork",R="Sequential",d="Map",y="Apply",I="Alt",b="Cons",S="Resume",L="Release",O="Finalizer",$="Finalized",z="Forked",X="Fiber",oe="Thunk";function te(Ue,ia,Ta,In){this.tag=Ue,this._1=ia,this._2=Ta,this._3=In}function ve(Ue){var ia=function(Ta,In,gn){return new te(Ue,Ta,In,gn)};return ia.tag=Ue,ia}function we(Ue){return new te(n,void 0)}function an(Ue){try{Ue()}catch(ia){setTimeout(function(){throw ia},0)}}function cn(Ue,ia,Ta){try{return ia(Ta())}catch(In){return Ue(In)}}function ce(Ue,ia,Ta){try{return ia(Ta)()}catch(In){return Ta(Ue(In))(),we}}var le=function(){var Ue=1024,ia=0,Ta=0,In=new Array(Ue),gn=!1;function We(){var na;for(gn=!0;ia!==0;)ia--,na=In[Ta],In[Ta]=void 0,Ta=(Ta+1)%Ue,na();gn=!1}return{isDraining:function(){return gn},enqueue:function(na){var fa,La;ia===Ue&&(La=gn,We(),gn=La),In[(Ta+ia)%Ue]=na,ia++,gn||We()}}}();function je(Ue){var ia={},Ta=0,In=0;return{register:function(gn){var We=Ta++;gn.onComplete({rethrow:!0,handler:function(na){return function(){In--,delete ia[We]}}})(),ia[We]=gn,In++},isEmpty:function(){return In===0},killAll:function(gn,We){return function(){if(In===0)return We();var na=0,fa={};function La(sn){fa[sn]=ia[sn].kill(gn,function(la){return function(){delete fa[sn],na--,Ue.isLeft(la)&&Ue.fromLeft(la)&&setTimeout(function(){throw Ue.fromLeft(la)},0),na===0&&We()}})()}for(var _t in ia)ia.hasOwnProperty(_t)&&(na++,La(_t));return ia={},Ta=0,In=0,function(sn){return new te(o,function(){for(var la in fa)fa.hasOwnProperty(la)&&fa[la]()})}}}}}var Ce=0,He=1,en=2,Cn=3,ra=4,Bn=5,qn=6;function Kn(Ue,ia,Ta){var In=0,gn=Ce,We=Ta,na=null,fa=null,La=null,_t=null,sn=null,la=0,Et=0,Da=null,ot=!0;function q(P){for(var N,W,V;;)switch(N=null,W=null,V=null,gn){case en:gn=He;try{We=La(We),_t===null?La=null:(La=_t._1,_t=_t._2)}catch(re){gn=Bn,na=Ue.left(re),We=null}break;case Cn:Ue.isLeft(We)?(gn=Bn,na=We,We=null):La===null?gn=Bn:(gn=en,We=Ue.fromRight(We));break;case He:switch(We.tag){case i:La&&(_t=new te(b,La,_t)),La=We._2,gn=He,We=We._1;break;case n:La===null?(gn=Bn,We=Ue.right(We._1)):(gn=en,We=We._1);break;case o:gn=Cn,We=cn(Ue.left,Ue.right,We._1);break;case u:gn=ra,We=ce(Ue.left,We._1,function(re){return function(){In===P&&(In++,le.enqueue(function(){In===P+1&&(gn=Cn,We=re,q(In))}))}});return;case a:gn=Bn,na=Ue.left(We._1),We=null;break;case t:La===null?sn=new te(b,We,sn,fa):sn=new te(b,We,new te(b,new te(S,La,_t),sn,fa),fa),La=null,_t=null,gn=He,We=We._1;break;case l:la++,La===null?sn=new te(b,We,sn,fa):sn=new te(b,We,new te(b,new te(S,La,_t),sn,fa),fa),La=null,_t=null,gn=He,We=We._1;break;case s:gn=Cn,N=Kn(Ue,ia,We._2),ia&&ia.register(N),We._1&&N.run(),We=Ue.right(N);break;case R:gn=He,We=ft(Ue,ia,We._1);break}break;case Bn:if(La=null,_t=null,sn===null)gn=qn,We=fa||na||We;else switch(N=sn._3,V=sn._1,sn=sn._2,V.tag){case t:fa&&fa!==N&&la===0?gn=Bn:na&&(gn=He,We=V._2(Ue.fromLeft(na)),na=null);break;case S:fa&&fa!==N&&la===0||na?gn=Bn:(La=V._1,_t=V._2,gn=en,We=Ue.fromRight(We));break;case l:la--,na===null&&(W=Ue.fromRight(We),sn=new te(b,new te(L,V._2,W),sn,N),(fa===N||la>0)&&(gn=He,We=V._3(W)));break;case L:sn=new te(b,new te($,We,na),sn,fa),gn=He,fa&&fa!==N&&la===0?We=V._1.killed(Ue.fromLeft(fa))(V._2):na?We=V._1.failed(Ue.fromLeft(na))(V._2):We=V._1.completed(Ue.fromRight(We))(V._2),na=null,la++;break;case O:la++,sn=new te(b,new te($,We,na),sn,fa),gn=He,We=V._1;break;case $:la--,gn=Bn,We=V._1,na=V._2;break}break;case qn:for(var ue in Da)Da.hasOwnProperty(ue)&&(ot=ot&&Da[ue].rethrow,an(Da[ue].handler(We)));Da=null,fa&&na?setTimeout(function(){throw Ue.fromLeft(na)},0):Ue.isLeft(We)&&ot&&setTimeout(function(){if(ot)throw Ue.fromLeft(We)},0);return;case Ce:gn=He;break;case ra:return}}function K(P){return function(){if(gn===qn)return ot=ot&&P.rethrow,P.handler(We)(),function(){};var N=Et++;return Da=Da||{},Da[N]=P,function(){Da!==null&&delete Da[N]}}}function j(P,N){return function(){if(gn===qn)return N(Ue.right(void 0))(),function(){};var W=K({rethrow:!1,handler:function(){return N(Ue.right(void 0))}})();switch(gn){case Ce:fa=Ue.left(P),gn=qn,We=fa,q(In);break;case ra:fa===null&&(fa=Ue.left(P)),la===0&&(gn===ra&&(sn=new te(b,new te(O,We(P)),sn,fa)),gn=Bn,We=null,na=null,q(++In));break;default:fa===null&&(fa=Ue.left(P)),la===0&&(gn=Bn,We=null,na=null)}return W}}function E(P){return function(){var N=K({rethrow:!1,handler:P})();return gn===Ce&&q(In),N}}return{kill:j,join:E,onComplete:K,isSuspended:function(){return gn===Ce},run:function(){gn===Ce&&(le.isDraining()?q(In):le.enqueue(function(){q(In)}))}}}function Jn(Ue,ia,Ta,In){var gn=0,We={},na=0,fa={},La=new Error("[ParAff] Early exit"),_t=null,sn=e;function la(K,j,E){var P=j,N=null,W=null,V=0,ue={},re,he;e:for(;;)switch(re=null,P.tag){case z:if(P._3===e&&(re=We[P._1],ue[V++]=re.kill(K,function(Ie){return function(){V--,V===0&&E(Ie)()}})),N===null)break e;P=N._2,W===null?N=null:(N=W._1,W=W._2);break;case d:P=P._2;break;case y:case I:N&&(W=new te(b,N,W)),N=P,P=P._1;break}if(V===0)E(Ue.right(void 0))();else for(he=0,re=V;he()=>e.props.def;function Ax(e){class n extends ka.Component{constructor(t){super(t);t.init&&t.init(this)()}render(){return this.props.render(this)()}componentDidMount(){this.props.componentDidMount(this)()}componentWillUnmount(){this.props.componentWillUnmount(this)()}}return n.displayName=e?"Elmish_"+e:"ElmishRoot",n}var jR=typeof module=="undefined"?void 0:module.require,uVe=function(){try{return jR===void 0?void 0:jR("util")}catch{return}}();var iVe=function(){var e;if(typeof performance!="undefined")e=performance;else if(jR)try{e=jR("perf_hooks").performance}catch{}return function(){return(e||Date).now()}}();$a();var Ri=window.ReactDOM,{createPortal:Lx,findDOMNode:RVe,flushSync:yVe}=window.ReactDOM;var ZT=Fu(bN());function EN(e){return e.state&&e.state.s}function IN(e,n,a){return e.setState({s:n},a)}function TN(e,n){return e.state={s:n}}var SN=Ri.render,CN=Ri.hydrate,eS=ZT.default&&ZT.default.renderToString||(e=>""),Eae=Ri.unmountComponentAtNode;function FN(e,n,a){return ka.createElement.apply(null,[e,Iae(e,n)].concat(a))}function Iae(e,n){if(typeof e!="string"||n._data==null)return n;var a={_data:void 0};for(var t in n._data){var o=n._data[t];a["data-"+t]=o}return Object.assign({},n,a)}var GN=(e,n)=>n[e],MN=(e,n,a)=>a[e]=n;var Jf=function(n){return function(a){return n(a)()}};var z0=function(n){return function(a){return function(){return n(a)}}},dv=function(n){return function(a){return function(t){return function(){return n(a,t)}}}},V0=function(n){return function(a){return function(t){return function(o){return function(){return n(a,t,o)}}}}};function PN(e){return n=>e===n}var nS=function(e){return function(n){return function(a){var t=fe(a);if(e instanceof M&&t instanceof M)return ge;if(e instanceof T&&t instanceof M)return ge;if(e instanceof T&&t instanceof T){if(PN(e.value0)(t.value0))return ge;if(qe)return n(new T(t.value0))()}return n(t)()}}};var kae=_e(Hn);var Y={asReactChildren:function(e){return[e]}},ze={asReactChildren:function(e){return[e]}},me={asReactChildren:pn(dn)};var aS=V0(IN),xN=function(){return V0(MN)},NN=dv(SN),jN=dv(CN),ON=z0(EN),tS=function(e){var n=bt(e);return function(a){return function(t){return kae(function(){return GN(a,t)})(n)}}},UN=dv(TN),Nm=function(e){return e.asReactChildren},is=function(){return function(e){var n=Nm(e);return function(a){return function(t){return function(o){return FN(a,t,n(o))}}}}},Bae=is()(me),mv=function(){return function(e){return function(n){return Bae(e)(n)([])}}};var rS=U(Hn),Hae=J(ct),kN=function(e){return{initialize:function(n){return UN(n)(e.initialState)},getState:function(n){return function(){var t=rS(fe)(ON(n))();return Je(e.initialState)(t)}},setState:aS}},BN=function(){var e=function(n){return function(a){return{initialize:function(t){return $c(new T(a.initialState))(n)},getState:function(t){return rS(Je(a.initialState))(ec(n))},setState:function(t){return function(o){return function(u){return function(){return $c(new T(o))(n)(),aS(t)(o)(Hae(ge))(),u()}}}}}}};return rS(e)(zc(M.value))}();var HN=_e(Ve),qN=tn(Rt);var Jae=J(ct),JN=xN(),$R=_e(Hn),Wae=tS(Ea),WN=U(Hn),$ae=tS(Ca(F3)),zae=rn(Qe),Vae=Ua($t),Qae=UI(ct)(vn),Kae=zae(sa),$N=yn(Dr),Yae=Cg(Zl),Xae=tn(Js(SI(Tg))),zN=function(e){return e},Wf=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),Zae={map:function(e){return function(n){return new Wf(e(n.value0),n.value1)}}},yr=function(e){return{bimap:function(n){return function(a){return function(t){return new Wf(a(t.value0),HN(t.value1)(function(o){return function(u){return o({dispatch:function(i){return u.dispatch(n(i))},onStop:u.onStop})}}))}}}}},VN={apply:function(e){return function(n){return new Wf(e.value0(n.value0),qN(e.value1)(n.value1))}},Functor0:function(){return Zae}},$n={bind:function(e){return function(n){var a=n(e.value0);return new Wf(a.value0,qN(e.value1)(a.value1))}},Apply0:function(){return VN}},Rn={pure:function(e){return new Wf(e,[])},Apply0:function(){return VN}};var ete=function(e){var n=Z(e);return function(a){var t=yn(a);return function(o){return function(u){return new Wf(o,HN(u)(function(i){return function(l){return n(i)(function(s){return t(l.dispatch(s))})}}))}}}};var jm=function(e){return new Wf(ge,[e])},za=function(e){return jm(hn(e))},Q0=function(e){var n=Z(e.Monad0().Bind1()),a=yn(e);return function(t){return jm(function(o){return n(t)(function(u){return a(bn(Jae(ge))(o.dispatch)(u))})})}},Ma=function(e){var n=ete(e.Monad0().Bind1())(e);return function(a){return n(ge)([a])}},QN=function(e){return function(n){var a=JN("__unmounted"),t=JN("__subscriptions"),o=function(b){return function(S){return function(L){return function(){var $=$R(Fm(b))(function(z){return z.init})();return n({initialState:$.value0}).setState(b)(S)(L)()}}}},u=function(){var b=WN(Je(!1)),S=Wae("__unmounted");return function(L){return b(S(L))}}(),i=function(){var b=WN(Je([])),S=$ae("__subscriptions");return function(L){return b(S(L))}}(),l=function(b){return function(){return Vae(Qae)(i(b))(),t([])(b)()}},s=function(b){return function(){var L=$R(Fm(b))(function(O){return O.init})();return n({initialState:L.value0}).getState(b)()}},R=function(b){return function(S){return function(){var O=i(b)();return t(Jo(B0(S))(O))(b)()}}},d=function(b){return function(S){var L=function(O){return B0(Kae(Xt(0))(function(){return O({dispatch:function(){var $=y(S);return function(z){return $N($(z))}}(),onStop:R(S)})}))};return II(b)(L)}},y=function(b){return function(S){return Yae(u(b))(function(){var O=s(b)(),$=$R(Fm(b))(function(X){return X.update})(),z=$(O)(S);return o(b)(z.value0)(d(z.value1)(b))()})}},I=function(b){return function(){var L=s(b)(),O=$R(Fm(b))(function($){return $.view})();return O(L)(y(b))}};return function(b){return Mx(e,{def:b,init:n({initialState:b.init.value0}).initialize,render:I,componentDidMount:d(b.init.value1),componentWillUnmount:Xae(a(!0))(l)})}}},KN=function(e){return function(){var a=$N(BN)();return Gx(function(t){return QN(t)(a)(e)})}},hv=function(e){return function(n){return Fx(e,function(a){var t=QN(a)(kN);return function(o){return t(n(o))}})}};var YN=J(ct),XN=uu(),zR=function(e){return{handleMaybe:function(n){return function(a){return Jf(function(){var t=bn(YN(ge))(n);return function(o){return t(XN(a(o)))}}())}}}},Dv=function(e){return{handleMaybe:function(n){return function(a){return function(t){return bn(YN(ge))(n)(XN(a))()}}}}},vo={handle:function(e){return function(n){return function(a){return e(n(a))()}}}},VR={handleEffect:function(e){return Jf(e)}},hu={handleEffect:function(e){return Jf(hn(e))}},ga={handle:function(e){return function(n){return function(a){return e(n)()}}}},al=function(e){return e.handleMaybe},Br=function(e){return e.handleEffect},Zn=function(e){return e.handle};function QR(e,n){var a={};for(var t in n)({}).hasOwnProperty.call(n,t)&&(a[t]=n[t]);for(var o in e)({}).hasOwnProperty.call(e,o)&&(a[o]=e[o]);return a}var ls=function(){return function(){return function(e){return function(n){return QR(e,n)}}}};var KR=function(e){var n=ar(e);return function(){return function(){return function(a){return function(t){return yI(n(a))(t)}}}}};var oS=mv(),ZN=is(),ej=ls()();var Om=Be,nj=function(e){return function(n){return oS(Om(e))(n)}};var yi=function(e){var n=ZN(e);return function(a){return function(t){return function(o){return n(Om(a))(ej(o)({className:t}))}}}},Um=function(e){return function(n){return function(a){return oS(Om(e))(ej(a)({className:n}))}}},aj=function(e){return function(n){return oS(Om(e))({className:n})}},wr=function(e){return function(n){var a=ZN(n);return function(t){return function(o){return a(Om(e))({className:t})(o)}}}};var rt=Be;var YR=function(e){var n=yi(e);return function(){return function(){return n("video")}}},tj=function(e){return wr("video")(e)};var rj=function(e){return wr("ul")(e)};var $f=function(e){return wr("tr")(e)};var K0=function(e){return wr("thead")(e)};var Y0=function(e){return wr("th")(e)};var XR=function(){return function(){return Um("textarea")}};var oj=function(e){var n=yi(e);return function(){return function(){return n("td")}}},cs=function(e){return wr("td")(e)};var X0=function(e){return wr("tbody")(e)};var Z0=function(e){return wr("table")(e)};var Vo=function(e){return wr("strong")(e)},ZR=function(e){var n=yi(e);return function(){return function(){return n("span")}}},Ba=function(e){return wr("span")(e)},uj=function(){return function(){return Um("source")}};var ij=function(e){var n=yi(e);return function(){return function(){return n("select")}}};var ey=function(e){var n=yi(e);return function(){return function(){return n("p")}}},Qt=function(e){return wr("p")(e)};var lj=function(e){var n=yi(e);return function(){return function(){return n("option")}}};var cj=function(e){return wr("li")(e)};var ep=function(e){return wr("label")(e)};var fo=function(){return function(){return Um("input")}};var tl=function(){return function(){return Um("img")}};var Qa=function(e){return wr("i")(e)};var ss=aj("hr");var km=function(e){return wr("h6")(e)};var Yu=function(e){return wr("h4")(e)},sj=function(e){var n=yi(e);return function(){return function(){return n("h3")}}},Hr=function(e){return wr("h3")(e)},gv=function(e){var n=yi(e);return function(){return function(){return n("h2")}}},qt=function(e){return wr("h2")(e)};var Rv=function(e){return wr("h1")(e)},np=function(e){var n=yi(e);return function(){return function(){return n("form")}}};var or=function(e){var n=yi(e);return function(){return function(){return n("div")}}},Te=function(e){return wr("div")(e)};var zn=function(e){var n=yi(e);return function(){return function(){return n("button")}}},vj=function(e){return wr("button")(e)};var Mt=function(e){var n=yi(e);return function(){return function(){return n("a")}}};var fj=Fu(OT()),_j=fj.Fragment;var Xe=Be,Se=is()(me)(_j)({}),Vn=!1;var pj=bm(wm);var nte=J(ct);var uS={map:function(e){return function(n){return pj(pj(e))(n)}}},dj=_e(uS),mj=function(e){var n=Z(e.Monad0().Bind1()),a=yn(e);return function(t){return jm(function(o){return n(t(o.dispatch))(function(u){return a(o.onStop(u))})})}},Xu=function(e){var n=mj(e);return function(a){return function(t){return n(dj(t)(a))}}};var hj=function(e){return function(n){return e(bn(nte(ge))(n))}},ny=function(e){var n=mj(e);return function(a){return function(t){return n(hj(dj(t)(a)))}}};var Fn=function(){return{"genericTop'":Ne.value}}();var iS=function(e){return e["genericTop'"]},Gn=function(e){return{"genericTop'":iS(e)}};var Mn=function(){return{"genericBottom'":Ne.value}}();var Bm=function(e){return e["genericBottom'"]},An=function(e){return{"genericBottom'":Bm(e)}};var Ln=function(e){return{"genericBottom'":new ye(Bm(e))}},Dj=function(e){var n=u0(e);return function(a){return n(Bm(a))}};var yv=U(ae),ay=wa();var lS=function(e){return e["genericToEnum'"]};var ty=function(e){return e["genericSucc'"]},cS=function(e){var n=u0(e),a=i0(e);return function(t){var o=yv(n),u=ty(t);return function(i){return o(u(a(i)))}}},sS=function(e){return e["genericPred'"]};var vS=function(e){return e["genericFromEnum'"]};var Pn=function(e){var n=sS(e),a=ty(e);return function(t){var o=iS(t);return function(u){var i=sS(u),l=ty(u);return function(s){var R=Bm(s);return{"genericPred'":function(d){if(d instanceof ye)return yv(ye.create)(n(d.value0));if(d instanceof ie){var y=i(d.value0);if(y instanceof M)return new T(new ye(o));if(y instanceof T)return new T(new ie(y.value0));throw new Error("Failed pattern match at Data.Enum.Generic (line 30, column 14 - line 32, column 31): "+[y.constructor.name])}throw new Error("Failed pattern match at Data.Enum.Generic (line 28, column 18 - line 32, column 31): "+[d.constructor.name])},"genericSucc'":function(d){if(d instanceof ye){var y=a(d.value0);if(y instanceof M)return new T(new ie(R));if(y instanceof T)return new T(new ye(y.value0));throw new Error("Failed pattern match at Data.Enum.Generic (line 34, column 14 - line 36, column 31): "+[y.constructor.name])}if(d instanceof ie)return yv(ie.create)(l(d.value0));throw new Error("Failed pattern match at Data.Enum.Generic (line 33, column 18 - line 37, column 36): "+[d.constructor.name])}}}}}};var xn={"genericPred'":function(e){return M.value},"genericSucc'":function(e){return M.value}},Nn=function(e){var n=sS(e),a=ty(e);return{"genericPred'":function(t){return yv(kd)(n(t))},"genericSucc'":function(t){return yv(kd)(a(t))}}};var fS=function(e){return e["genericCardinality'"]};var jn=function(e){var n=fS(e),a=lS(e),t=vS(e);return function(o){var u=lS(o),i=vS(o);return{"genericCardinality'":ay(n)+ay(fS(o))|0,"genericToEnum'":function(l){var s=function(R){if(l>=0&&lt.value0;return o?a.value0:t.value0}()|0,(1+a.value1|0)+t.value1|0,e,n,a,t);throw new Error("Failed pattern match at Data.Map.Internal (line 708, column 5 - line 712, column 68): "+[t.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 700, column 32 - line 712, column 68): "+[a.constructor.name])};var mS=function(e){return function(n){return new Ao(1,1,e,n,rl.value,rl.value)}},bj=function(){var e=function(t){if(t instanceof rl)return 0;if(t instanceof Ao)return t.value0;throw new Error("Failed pattern match at Data.Map.Internal (line 757, column 12 - line 759, column 26): "+[t.constructor.name])},n=function(t,o,u,i,l,s,R){return s instanceof Ao&&s.value0>e(R)?ol(s.value2,s.value3,ol(t,o,u,s.value4),ol(i,l,s.value5,R)):ol(i,l,ol(t,o,u,s),R)},a=function(t,o,u,i,l,s,R){return s instanceof Ao&&e(l)<=s.value0?ol(s.value2,s.value3,ol(u,i,l,s.value4),ol(t,o,s.value5,R)):ol(u,i,l,ol(t,o,s,R))};return function(t,o,u,i){if(u instanceof rl)return i instanceof rl?mS(t)(o):i instanceof Ao&&i.value0>1?n(t,o,u,i.value2,i.value3,i.value4,i.value5):ol(t,o,u,i);if(u instanceof Ao){if(i instanceof Ao){if(i.value0>(u.value0+1|0))return n(t,o,u,i.value2,i.value3,i.value4,i.value5);if(u.value0>(i.value0+1|0))return a(t,o,u.value2,u.value3,u.value4,u.value5,i)}return i instanceof rl&&u.value0>1?a(t,o,u.value2,u.value3,u.value4,u.value5,i):ol(t,o,u,i)}throw new Error("Failed pattern match at Data.Map.Internal (line 717, column 40 - line 738, column 34): "+[u.constructor.name])}}();var vs=function(e){var n=Ke(e);return function(a){var t=function(o){var u=!1,i;function l(s){if(s instanceof rl)return u=!0,M.value;if(s instanceof Ao){var R=n(a)(s.value2);if(R instanceof De){o=s.value4;return}if(R instanceof de){o=s.value5;return}if(R instanceof ke)return u=!0,new T(s.value3);throw new Error("Failed pattern match at Data.Map.Internal (line 283, column 7 - line 286, column 22): "+[R.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 280, column 8 - line 286, column 22): "+[s.constructor.name])}for(;!u;)i=l(o);return i};return t}};var Ej=function(e){var n=Ke(e);return function(a){return function(t){var o=function(u){if(u instanceof rl)return mS(a)(t);if(u instanceof Ao){var i=n(a)(u.value2);if(i instanceof De)return bj(u.value2,u.value3,o(u.value4),u.value5);if(i instanceof de)return bj(u.value2,u.value3,u.value4,o(u.value5));if(i instanceof ke)return new Ao(u.value0,u.value1,a,t,u.value4,u.value5);throw new Error("Failed pattern match at Data.Map.Internal (line 471, column 7 - line 474, column 35): "+[i.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 468, column 8 - line 474, column 35): "+[u.constructor.name])};return o}}};var fs=function(){return rl.value}(),ul=function(e){var n=Ej(e);return function(a){return Ht(a)(function(t){return function(o){return n(o.value0)(o.value1)(t)}})(fs)}};var pte=typeof Array.from=="function",Sj=typeof Symbol!="undefined"&&Symbol!=null&&typeof Symbol.iterator!="undefined"&&typeof String.prototype[Symbol.iterator]=="function",dte=typeof String.prototype.fromCodePoint=="function",mte=typeof String.prototype.codePointAt=="function",Cj=function(e){return mte?function(n){return n.codePointAt(0)}:e},Fj=function(e){return function(n){return function(a){return function(t){return function(o){return function(u){var i=u.length;if(o<0||o>=i)return a;if(Sj)for(var l=u[Symbol.iterator](),s=o;;--s){var R=l.next();if(R.done)return a;if(s===0)return n(t(R.value))}return e(o)(u)}}}}}};var Gj=function(e){return dte?String.fromCodePoint:e},Mj=function(e){return function(n){return Sj?function(a){for(var t="",o=a[Symbol.iterator](),u=0;u1;if(a){var t=qm(Kc(1)(e)),o=Nj(t);return o?xj(n)(t):n}return n},DS=Cj(Ste),oy=Aj(Tte)(DS),Ko=function(e){return uo(oy(e))};var Oj=function(e){return function(n){return Pj(function(a){return Ko(Gf(a)(n))})(pR(e)(n))}},gS=function(){var e=fT(jf)(tt(Ks))(Jt(Ks));return function(n){return Ou(e(n))}}(),Cte=function(e){if(e<=65535)return gS(e);var n=wte(e-65536|0)(1024)+55296|0,a=bte(e-65536|0)(1024)+56320|0;return gS(n)+gS(a)};var RS=Gj(Cte),Uj=function(e){return function(n){if(e<1)return"";var a=Vf(n);return a instanceof T?RS(a.value0.head)+Uj(e-1|0)(a.value0.tail):n}},il=Mj(Uj);var uy={eq:function(e){return function(n){return e===n}}},iy={compare:function(e){return function(n){return Ete(e)(n)}},Eq0:function(){return uy}},tp=function(e){return function(n){return oc(Ml(il(e)(n)))(n)}};var Fte=function(e){return function(n){var a=e,t=!1,o;function u(i,l){var s=Vf(l);if(s instanceof T){var R=i===0;if(R)return t=!0,new T(s.value0.head);a=i-1|0,n=s.value0.tail;return}return t=!0,M.value}for(;!t;)o=u(a,n);return o}},yS=function(e){return function(n){return e<0?M.value:e===0&&n===""?M.value:e===0?new T(DS(n)):Fj(Fte)(T.create)(M.value)(DS)(e)(n)}},Gte={bottom:0,top:1114111,Ord0:function(){return iy}},_c=function(){return{cardinality:1114111+1|0,fromEnum:function(e){return e},toEnum:function(e){if(e>=0&&e<=1114111)return new T(e);if(qe)return M.value;throw new Error("Failed pattern match at Data.String.CodePoints (line 63, column 1 - line 68, column 26): "+[e.constructor.name])},Bounded0:function(){return Gte},Enum1:function(){return Mte(0)}}}(),Mte=Rte("enumCodePoint","Data.String.CodePoints",function(){return{succ:xf(ua(_c))(Wn(_c)),pred:Nf(ua(_c))(Wn(_c)),Ord0:function(){return iy}}});var qte=wa();var $j={show:qte};var zj=pe;var Jte=uv(vn),Wte=_e(Ve),$te=gf(_S),Tn=function(e){return function(n){var a=Jte(Wte(n)(function(t){return new Dn(e(t),t)}));return function(t){return uc(t)(a)}}},zte=function(e){var n=cS(e),a=Dj(e);return function(t){var o=n(t);return function(u){return function(i){return $te(function(l){return new Dn(l,o(l))})(a(i))}}}},kn=function(e){var n=zte(e);return function(a){var t=n(a);return function(o){var u=t(o);return function(i){return ap(u(i))}}}};var Vte={info:"info",warning:"warn",error:"error"},Nl=e=>n=>a=>t=>{let o=Vte[e];if(typeof console!="undefined"&&console[o]&&console[o](n,a),typeof window!="undefined"){let u=new Error(n);typeof window.Sentry!="undefined"&&window.Sentry.captureException(u,{extra:a})}return t()},Vj=(e,n)=>(n.__sentryFingerprint=e,n);var Qj=function(e){return Ji(Vj)(e)};var pc="error";var cy={parseOrPanic:function(e){return function(n){var a=e.parse(n);if(a instanceof Pe)return a.value0;if(a instanceof Me)return Nl(pc)("Failed to parse "+e.diagnosticName)({error:a.value0,value:n})(function(t){return e.default});throw new Error("Failed pattern match at Utils.Parse (line 49, column 5 - line 57, column 24): "+[a.constructor.name])}}},ta=function(e){return e.parseOrPanic},Qte=ta(cy),Na=function(e){var n=ta(e);return function(a){var t=U(a);return function(o){return n({parse:function(u){return t(T.create)(o.parse(u))},default:M.value,diagnosticName:o.diagnosticName})}}},Kte=Na(cy)(hr),_s=function(e){var n=Pf(e);return function(a){return Kte({parse:n,diagnosticName:a})}},Ze={parseOrPanic:function(e){return Qte({default:e.default,diagnosticName:e.diagnosticName,parse:function(){var n=bn(new Me(""))(Pe.create);return function(a){return n(e.parse(a))}}()})}};var Kj=Nn(xn),Yj=An(Mn),Xj=Un(On),ps=function(){function e(){}return e.value=new e,e}(),ds=function(){function e(){}return e.value=new e,e}(),Yte={to:function(e){if(e instanceof ye)return ps.value;if(e instanceof ie)return ds.value;throw new Error("Failed pattern match at Sem.Connections.Types.Actor (line 20, column 1 - line 20, column 32): "+[e.constructor.name])},from:function(e){if(e instanceof ps)return new ye(Ne.value);if(e instanceof ds)return new ie(Ne.value);throw new Error("Failed pattern match at Sem.Connections.Types.Actor (line 20, column 1 - line 20, column 32): "+[e.constructor.name])}};var Xte=function(e){if(e instanceof ps)return"school";if(e instanceof ds)return"vine";throw new Error("Failed pattern match at Sem.Connections.Types.Actor (line 32, column 1 - line 32, column 29): "+[e.constructor.name])},sy=function(){return ta(Ze)({parse:Tn(Xte)(kn(Yte)(Pn(Kj)(Gn(Fn))(Kj)(Yj))(jn(Xj)(Xj))(Ln(Yj))),default:ps.value,diagnosticName:"Sem.Connections.Types.Actor"})}();var Zj=Nn(xn),e4=Pn(Zj)(Gn(Fn)),n4=An(Mn),a4=Ln(n4),t4=Un(On),r4=jn(t4),Zte=ma($r),jl=function(){function e(){}return e.value=new e,e}(),bv=function(){function e(){}return e.value=new e,e}(),ms=function(){function e(){}return e.value=new e,e}(),ere={to:function(e){if(e instanceof ye)return jl.value;if(e instanceof ie&&e.value0 instanceof ye)return bv.value;if(e instanceof ie&&e.value0 instanceof ie)return ms.value;throw new Error("Failed pattern match at Sem.Connections.Types.Status (line 24, column 1 - line 24, column 33): "+[e.constructor.name])},from:function(e){if(e instanceof jl)return new ye(Ne.value);if(e instanceof bv)return new ie(new ye(Ne.value));if(e instanceof ms)return new ie(new ie(Ne.value));throw new Error("Failed pattern match at Sem.Connections.Types.Status (line 24, column 1 - line 24, column 33): "+[e.constructor.name])}};var nre=function(e){if(e instanceof jl)return"pending";if(e instanceof bv)return"connected";if(e instanceof ms)return"ignored";throw new Error("Failed pattern match at Sem.Connections.Types.Status (line 40, column 1 - line 40, column 30): "+[e.constructor.name])},bS=function(){var e=Tn(nre)(kn(ere)(e4(e4(Zj)(n4))(a4))(r4(r4(t4)))(a4)),n=function(a){return a==="cold"?new T(ms.value):M.value};return ta(Ze)({parse:function(a){return Zte(e(a))(n(a))},default:jl.value,diagnosticName:"Sem.Connections.Types.Status"})}();var are=FP(wt),o4=ne(Ye),tre=Gl(wt),rre=Ba(Y);var u4=function(e){return{initiator:sy(e.initiator),status:bS(e.status),introMessage:Je("")(fe(e.introMessage))}},i4=25,ES=function(e){return Ko(e)>=i4},l4=function(e){var n=Ko(e),a=n>0,t=are(" ")([function(){return a?o4(n)+" characters":""}(),tre(["(",o4(i4),function(){return a?"":" character"}()," minimum)"])]),o=function(){var u=ES(e);return u?"text-success":""}();return rre(o)(t)};var vy=function(){function e(){}return e.value=new e,e}(),c4=function(){function e(){}return e.value=new e,e}();var s4=function(){var e=ta(Ze)({parse:function(n){return n instanceof T&&n.value0==="paid"?new T(c4.value):n instanceof T&&n.value0==="free"?new T(vy.value):n instanceof T&&n.value0==="churned"?new T(vy.value):n instanceof M?new T(vy.value):M.value},default:vy.value,diagnosticName:"Sem.Types.PartnerStatus"});return function(n){return e(fe(n))}}();var v4=function(e){return{allowedToContact:e.allowedToContact,id:e.id,name:e.name,imageUrl:fe(e.imageUrl),partnerStatus:s4(e.partnerStatus)}};var ore=Z(nn),IS=Sa(),Jm=Wa(pe),f4=B({reflectSymbol:function(){return"id"}}),ure=rn(Qe)(nn),ire=Rr(kr),lre=U(ae);var cre=function(){function e(){}return e.value=new e,e}(),sre=function(){function e(){}return e.value=new e,e}(),vre=function(){function e(){}return e.value=new e,e}(),TS=function(){function e(){}return e.value=new e,e}(),fre=function(){function e(){}return e.value=new e,e}(),fy=function(){function e(){}return e.value=new e,e}(),Wm=function(){function e(){}return e.value=new e,e}(),SS=function(){function e(){}return e.value=new e,e}(),CS=function(){function e(){}return e.value=new e,e}();var _4={show:wa()};var _re=pe,pre=_s(IS(B({reflectSymbol:function(){return"avatarUrl"}})(Jm)(B({reflectSymbol:function(){return"bio"}})(Jm)(B({reflectSymbol:function(){return"connection"}})(Wa(IS(B({reflectSymbol:function(){return"initiator"}})(pe)(B({reflectSymbol:function(){return"introMessage"}})(Jm)(B({reflectSymbol:function(){return"status"}})(pe)(on))))))(B({reflectSymbol:function(){return"firstName"}})(pe)(f4(_re)(B({reflectSymbol:function(){return"lastName"}})(pe)(B({reflectSymbol:function(){return"school"}})(IS(B({reflectSymbol:function(){return"allowedToContact"}})(Ea)(f4(zj)(B({reflectSymbol:function(){return"imageUrl"}})(Jm)(B({reflectSymbol:function(){return"name"}})(pe)(B({reflectSymbol:function(){return"partnerStatus"}})(Jm)(on)))))))(B({reflectSymbol:function(){return"title"}})(pe)(B({reflectSymbol:function(){return"type"}})(pe)(B({reflectSymbol:function(){return"unreadMessageCountFromSemUser"}})(un)(on))))))))))));var p4=function(e){if(e instanceof cre)return"sheet-view";if(e instanceof sre)return"school-details";if(e instanceof vre)return"network-gallery";if(e instanceof TS)return"livestream-details";if(e instanceof fre)return"card-view";throw new Error("Failed pattern match at Sem.Types.User (line 105, column 25 - line 110, column 26): "+[e.constructor.name])},d4=function(e){return ore(pre("SemUser")(e))(function(n){return ure(ire(n.type==="Sem::User"))(function(){return new T({school:v4(n.school),firstName:n.firstName,lastName:n.lastName,avatarUrl:fe(n.avatarUrl),title:n.title,bio:fe(n.bio),connection:lre(u4)(fe(n.connection)),unreadMessageCountFromSemUser:n.unreadMessageCountFromSemUser,id:n.id})})})};var hs=function(e){var n=null;return function(){return e===void 0||(n=e(),e=void 0),n}},Ds=function(e){return e()};var E4=function(){function e(){}return e.value=new e,e}(),I4=function(){function e(){}return e.value=new e,e}(),T4=function(){function e(){}return e.value=new e,e}();var Gre=function(e){if(e instanceof E4)return"disabled";if(e instanceof I4)return"free-consultation";if(e instanceof T4)return"more-information";throw new Error("Failed pattern match at ServiceProviders.Retail.Advising.Types.InquiryMode (line 27, column 13 - line 30, column 40): "+[e.constructor.name])};var Mre=function(){return[E4.value,I4.value,T4.value]}(),S4=Na(Ze)(ae)({parse:Tn(Gre)(Mre),diagnosticName:"InquiryMode"});var Are=function(e,n,a,t,o,u,i){var l=new Date(Date.UTC(e,n,a,t,o,u,i));return e>=0&&e<100&&l.setUTCFullYear(e),l};function C4(e,n,a,t,o,u,i){return Are(e,n-1,a,t,o,u,i).getTime()}function F4(e){return function(n){var a=new Date(n);return e(a.getUTCFullYear())(a.getUTCMonth()+1)(a.getUTCDate())(a.getUTCHours())(a.getUTCMinutes())(a.getUTCSeconds())(a.getUTCMilliseconds())}}var Lre=yt(),Pre=ua(rr);var xre=Wn(rr);var G4=function(e){return e},dy=function(){var e=function(n){return function(a){return function(t){return function(o){return function(u){return function(i){return function(l){return new sc(vv(n)(Lre(Pre(a)))(t),new lc(o,u,i,l))}}}}}}};return F4(e)}();var M4=function(e){return C4(zu(e.value0),xre(Vu(e.value0)),ic(e.value0),cc(e.value1),as(e.value1),ns(e.value1),Zi(e.value1))};var A4=function(e){var n=tn(e.Semigroup0()),a=function(t){return function(o){return function(u){var i=t,l=o,s=!1,R;function d(y,I,b){if(b<1)return s=!0,y;i=n(y)(I),l=I,u=b-1|0}for(;!s;)R=d(i,l,u);return R}}};return a(Xa(e))};var Nre=wa();var Qf=function(){function e(n,a,t){this.value0=n,this.value1=a,this.value2=t}return e.create=function(n){return function(a){return function(t){return new e(n,a,t)}}},e}(),$m=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}();var L4=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),P4=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),LS=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}();var op={defer:function(e){var n=hs(e);return function(a,t,o,u,i){var l=Ds(n);return l(a,t,o,u,i)}}};var dc={map:function(e){return function(n){return function(a,t,o,u,i){return t(function(l){return n(a,t,o,u,function(s,R){return t(function(d){return i(s,e(R))})})})}}}};var mc={apply:function(e){return function(n){return function(a,t,o,u,i){return t(function(l){return e(a,t,o,u,function(s,R){return t(function(d){return n(s,t,o,u,function(y,I){return t(function(b){return i(y,R(I))})})})})})}}},Functor0:function(){return dc}};var hc={bind:function(e){return function(n){return function(a,t,o,u,i){return t(function(l){return e(a,t,o,u,function(s,R){return t(function(d){var y=n(R);return y(s,t,o,u,i)})})})}}},Apply0:function(){return mc}},jre=Ua(hc);var ll={pure:function(e){return function(n,a,t,o,u){return u(n,e)}},Apply0:function(){return mc}};var Ore={Applicative0:function(){return ll},Bind1:function(){return hc}};var x4={throwError:function(e){return function(n,a,t,o,u){return o(n,e)}},Monad0:function(){return Ore}},Ure=Lr(x4);var Kf={alt:function(e){return function(n){return function(a,t,o,u,i){return t(function(l){return e(new Qf(a.value0,a.value1,!1),t,o,function(s,R){return t(function(d){return s.value2?u(s,R):n(a,t,o,u,i)})},i)})}}},Functor0:function(){return dc}},kre=function(e){return function(n,a,t,o,u){var i=e(n);return u(i.value1,i.value0)}};var Bre=function(e){var n=e.Monad0(),a=U(n.Bind1().Apply0().Functor0()),t=J(n.Applicative0()),o=To(e);return function(u){return function(i){var l=function(s){var R=!1,d;function y(I){var b=I(ge);if(b instanceof L4){s=b.value0;return}if(b instanceof P4)return R=!0,a(zt.create)(b.value0);if(b instanceof LS)return R=!0,t(new Bt(new Dn(b.value1,b.value0)));throw new Error("Failed pattern match at Parsing (line 152, column 13 - line 158, column 32): "+[b.constructor.name])}for(;!R;)d=y(s);return d};return o(l)(function(s){return i(u,L4.create,P4.create,function(R,d){return new LS(R,new Me(d))},function(R,d){return new LS(R,new Pe(d))})})}}};var N4=kre(function(e){return new Dn(e.value1,e)}),PS=function(e){return e.value1},xS=function(e){return e.value0};var Hre={index:0,line:1,column:1},j4=function(e){var n=U(e.Monad0().Bind1().Apply0().Functor0()),a=Bre(e);return function(t){return function(o){var u=new Qf(t,Hre,!1);return n(So)(a(u)(o))}}},qre=j4(Hd),O4=function(e){var n=qre(e);return function(a){return Nre(n(a))}};var Jre=function(e){return function(n){return Ure(new $m(e,n))}},up=function(e){return jre(Jre(e))(N4)};var U4={empty:up("No alternative"),Alt0:function(){return Kf}},Yf={Applicative0:function(){return ll},Plus1:function(){return U4}};var Zre=ma(Kf);var eoe=J(ll);var noe=U(dc);var Dc=function(e){return function(n,a,t,o,u){return e(n,a,t,function(i,l){return o(new Qf(i.value0,i.value1,n.value2),l)},u)}};var my=function(e){return function(n){return Zre(n)(eoe(e))}},Xf=function(e){return my(M.value)(noe(T.create)(e))};var B4=function(e){return function(n){return function(a){return function(t){try{return n(new RegExp(a,t))}catch(o){return e(o.message)}}}}};var zm=function(e){return function(n){return function(a){return a.replace(e,n)}}};var jS={append:function(e){return function(n){return{global:e.global||n.global,ignoreCase:e.ignoreCase||n.ignoreCase,multiline:e.multiline||n.multiline,dotAll:e.dotAll||n.dotAll,sticky:e.sticky||n.sticky,unicode:e.unicode||n.unicode}}}};var hy={global:!1,ignoreCase:!0,multiline:!1,dotAll:!1,sticky:!1,unicode:!1},ip={global:!0,ignoreCase:!1,multiline:!1,dotAll:!1,sticky:!1,unicode:!1};var aoe=function(e){return function(){return e.global?"g":""}()+(function(){return e.ignoreCase?"i":""}()+(function(){return e.multiline?"m":""}()+(function(){return e.dotAll?"s":""}()+(function(){return e.sticky?"y":""}()+function(){return e.unicode?"u":""}()))))},gs=function(e){return function(n){return B4(Me.create)(Pe.create)(e)(aoe(n))}};var W4=Wn(_c),roe=Io(tr);var ooe=ne(Ut);var $4=function(e){return function(n){return function(a){var t=W4(n);if(t===10)return{index:e.index+1|0,line:e.line+1|0,column:1};if(t===13){var o=yS(0)(a);return o instanceof T&&W4(o.value0)===10?{index:e.index+1|0,line:e.line,column:e.column}:{index:e.index+1|0,line:e.line+1|0,column:1}}return t===9?{index:e.index+1|0,line:e.line,column:(e.column+8|0)-roe(e.column-1|0)(8)|0}:{index:e.index+1|0,line:e.line,column:e.column+1|0}}}},uoe=function(e){return function(n){return function(a){var t=e,o=n,u=!1,i;function l(s,R,d){var y=Vf(R);if(y instanceof M)return u=!0,s;if(y instanceof T){var I=function(){if(wi(y.value0.tail))return $4(s)(y.value0.head)(d);if(qe)return $4(s)(y.value0.head)(y.value0.tail);throw new Error("Failed pattern match at Parsing.String (line 165, column 7 - line 167, column 52): "+[])}();t=I,o=y.value0.tail,a=d;return}throw new Error("Failed pattern match at Parsing.String (line 161, column 36 - line 168, column 38): "+[y.constructor.name])}for(;!u;)i=l(t,o,a);return i}}};var US=kg(function(e){return function(n){return function(a){return function(t){return function(o){var u=wi(e.value0);return u?o(new Qf(e.value0,e.value1,!0),ge):t(e,new $m("Expected EOF",e.value1))}}}}}),z4=function(e){return kg(function(n){return function(a){return function(t){return function(o){return function(u){var i=e(n.value0);if(i instanceof Me)return o(n,new $m(i.value0,n.value1));if(i instanceof Pe)return u(new Qf(i.value0.remainder,uoe(n.value1)(i.value0.consumed)(i.value0.remainder),!wi(i.value0.consumed)),i.value0.value);throw new Error("Failed pattern match at Parsing.String (line 286, column 7 - line 290, column 121): "+[i.constructor.name])}}}}})};var gc=function(e){return z4(function(n){var a=_i(e)(n);return a instanceof T?new Pe({value:e,consumed:e,remainder:a.value0}):new Me("Expected "+ooe(e))})};var V4=ne(Ye),loe=fr(Lu),coe=a0(mc);var soe=function(e){return"(line "+(V4(e.line)+(", col "+(V4(e.column)+")")))},voe=function(e){return xS(e)+(" "+soe(PS(e)))},kS=function(e){return function(n){return loe(voe)(O4(n)(coe(e)(US)))}};var Dy=ua(jf);var Lo=ne(Ye);var boe=Ar(Co),Eoe=boe(wt);var Ioe=bI(aa)(Yl);var BS=Wn(Pr),Toe=ne(DR),Soe=Wn(rr),Z4=Wn(pu),Coe=wa(),Foe=Wn(cv),e8=ne(B3),HS=Wn(Di),Goe=Io(tr),n8=Wn(hi),a8=Wn(mi),qS=Wn(du),t8=io(tr);var lp=function(){function e(){}return e.value=new e,e}(),r8=function(){function e(){}return e.value=new e,e}(),Moe=function(){function e(){}return e.value=new e,e}(),Ol=function(){function e(){}return e.value=new e,e}(),JS=function(){function e(){}return e.value=new e,e}(),o8=function(){function e(){}return e.value=new e,e}(),u8=function(){function e(){}return e.value=new e,e}(),Ul=function(){function e(){}return e.value=new e,e}(),Aoe=function(){function e(){}return e.value=new e,e}(),Loe=function(){function e(){}return e.value=new e,e}(),kl=function(){function e(){}return e.value=new e,e}(),Poe=function(){function e(){}return e.value=new e,e}(),WS=function(){function e(){}return e.value=new e,e}(),Bl=function(){function e(){}return e.value=new e,e}(),Hl=function(){function e(){}return e.value=new e,e}(),xoe=function(){function e(){}return e.value=new e,e}(),bi=function(){function e(){}return e.value=new e,e}(),Noe=function(){function e(){}return e.value=new e,e}(),$S=function(){function e(){}return e.value=new e,e}(),joe=function(){function e(){}return e.value=new e,e}(),Ooe=function(){function e(){}return e.value=new e,e}(),Uoe=function(){function e(){}return e.value=new e,e}(),ht=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var koe=function(e){if(e instanceof su)return"Jan";if(e instanceof ku)return"Feb";if(e instanceof vu)return"Mar";if(e instanceof Bu)return"Apr";if(e instanceof Hu)return"May";if(e instanceof fu)return"Jun";if(e instanceof _u)return"Jul";if(e instanceof qu)return"Aug";if(e instanceof Ju)return"Sep";if(e instanceof Wu)return"Oct";if(e instanceof $u)return"Nov";if(e instanceof di)return"Dec";throw new Error("Failed pattern match at Data.Formatter.DateTime (line 489, column 19 - line 501, column 22): "+[e.constructor.name])};var Iv=function(e){if(e<0)return"-"+Iv(-e|0);if(e<10)return"0"+Lo(e);if(qe)return Lo(e);throw new Error("Failed pattern match at Data.Formatter.DateTime (line 194, column 1 - line 194, column 32): "+[e.constructor.name])},i8=function(e){if(e<0)return"-"+i8(-e|0);if(e<10)return"000"+Lo(e);if(e<100)return"00"+Lo(e);if(e<1e3)return"0"+Lo(e);if(qe)return Lo(e);throw new Error("Failed pattern match at Data.Formatter.DateTime (line 207, column 1 - line 207, column 35): "+[e.constructor.name])},l8=function(e){if(e<0)return"-"+l8(-e|0);if(e<10)return"00"+Lo(e);if(e<100)return"0"+Lo(e);if(qe)return Lo(e);throw new Error("Failed pattern match at Data.Formatter.DateTime (line 200, column 1 - line 200, column 32): "+[e.constructor.name])};var Boe=function(e){var n=Lo(Ioe(e)),a=Ko(n);return a===1?"0"+n:a===2?n:tp(a-2|0)(n)};var Hoe=function(e){var n=e===0;return n?12:e},qoe=function(e){return function(n){if(n instanceof lp)return i8(BS(zu(e.value0)));if(n instanceof r8)return Boe(BS(zu(e.value0)));if(n instanceof Moe)return Lo(BS(zu(e.value0)));if(n instanceof Ol)return Toe(Vu(e.value0));if(n instanceof JS)return koe(Vu(e.value0));if(n instanceof o8)return Iv(Soe(Vu(e.value0)));if(n instanceof u8)return Iv(Z4(ic(e.value0)));if(n instanceof Ul)return Lo(Z4(ic(e.value0)));if(n instanceof Aoe)return Lo(co(function(t){return t/1e3}(Coe(G4(M4(e))))));if(n instanceof Loe)return Lo(Foe(mm(e.value0)));if(n instanceof kl)return e8(mm(e.value0));if(n instanceof Poe)return il(3)(e8(mm(e.value0)));if(n instanceof WS)return Iv(HS(cc(e.value1)));if(n instanceof Bl)return Iv(Hoe(Goe(HS(cc(e.value1)))(12)));if(n instanceof Hl){var a=HS(cc(e.value1))>=12;return a?"PM":"AM"}if(n instanceof xoe)return Lo(n8(as(e.value1)));if(n instanceof bi)return Iv(n8(as(e.value1)));if(n instanceof Noe)return Lo(a8(ns(e.value1)));if(n instanceof $S)return Iv(a8(ns(e.value1)));if(n instanceof joe)return l8(qS(Zi(e.value1)));if(n instanceof Ooe)return Lo(function(t){return t8(t)(100)}(qS(Zi(e.value1))));if(n instanceof Uoe)return Iv(function(t){return t8(t)(10)}(qS(Zi(e.value1))));if(n instanceof ht)return n.value0;throw new Error("Failed pattern match at Data.Formatter.DateTime (line 169, column 38 - line 192, column 21): "+[n.constructor.name])}},Po=function(e){return function(n){return Eoe(qoe(n))(e)}};function gy(e){return Math.round(e).toString()}var cp=Z(hc);var Joe=J(ll),Woe=E0(Yf)(op);var $oe=QI(Yf)(op),Ry=A4(wt),zoe=R0(ll)(Kd),Voe=U(ae);var c8=Jc(aa),Qoe=io(tr),Koe=ne(Ye),Yoe=_e(hr),Xoe=ne(cf),Zoe=pn(dn);var eue=cp(Xf(Dc(gc("+"))))(function(e){return cp(Woe(gc("0")))(function(n){return cp(Xf(Dc(gc(",0"))))(function(a){return cp(Xf(Dc(gc("."))))(function(t){return cp(zoe(t)(function(o){return Dc($oe(gc("0")))}))(function(o){return cp(Xf(Dc(gc("a"))))(function(u){return Joe({sign:Ct(e),before:uo(n),comma:Ct(a),after:Je(0)(Voe(uo)(o)),abbreviations:Ct(u)})})})})})})}),nue=kS(eue);var s8=function(e){return function(n){var a=zg(n),t=function(){if(a>0)return c8(co(XI(a)/qP))(0);if(qe)return 0;throw new Error("Failed pattern match at Data.Formatter.Number (line 100, column 5 - line 102, column 22): "+[])}();if(e.abbreviations){var o=Qoe(t)(3),u=function(){var $=o<1;return $?n:n/Vg(1e3)(Ft(o))}(),i=function(){if(o===0)return"";if(o===1)return"K";if(o===2)return"M";if(o===3)return"G";if(o===4)return"T";if(o===5)return"P";if(o===6)return"E";if(o===7)return"Z";if(o===8)return"Y";if(qe)return"10e+"+Koe(o*3|0);throw new Error("Failed pattern match at Data.Formatter.Number (line 107, column 7 - line 117, column 53): "+[])}();return s8({comma:e.comma,before:e.before,after:e.after,sign:e.sign,abbreviations:!1})(u)+i}var l=(e.before-t|0)-1|0,s=Vg(10)(Ft(c8(0)(e.after))),R=Ef(a*s)/s,d=I0(R),y=R-d,I=Ef(y*s),b=function(){var $=gy(I),z=Ko($),X=Ry("0")(e.after-z|0);return X+$}(),S=function(){var $=e.after<1;return $?"":"."+(function(){var z=I===0;return z?Ry("0")(e.after):""}()+function(){var z=I>0;return z?b:""}())}(),L=function($){return function(z){return function(X){var oe=$,te=z,ve=!1,we;function an(cn,ce,le){var je=Yd(le);if(je instanceof M)return ve=!0,F0(cn);if(je instanceof T&&ce<3){oe=Jo(je.value0.head)(cn),te=ce+1|0,X=je.value0.tail;return}oe=Jo(",")(cn),te=0,X=le}for(;!ve;)we=an(oe,te,X);return we}}},O=function(){return e.comma?L([])(0)(Ld(om(Ry("0")(l)+gy(d)))):Ry("0")(l)+gy(d)}();return function(){var $=n<0;if($)return"-";var z=n>0&&e.sign;return z?"+":""}()+(O+S)}},aue=function(e){return function(n){return Yoe(nue(e))(Va(s8)(n))}},Zf=function(e){return function(n){return kt(hn(Xoe(n)))(Zoe)(aue(e)(n))}};var rue=Be;var v8=function(e){return Tf(e)};var cl=function(e){var n=v8(e);return n?M.value:new T(rue(e))};var Ka=function(e){return function(n){var a=v8(e);return a?n:e}};var Vr=function(){return Be};var Vm=ne(Ye),oue=Wn(Pr),uue=Wn(rr),iue=Vr(),lue=uu(),cue=Ku(sv),zS=io(tr),sue=$o(vn);var vue=function(e){return function(n){if(n.minutes<=0)return e.justNow;if(n.minutes<=1)return"a minute"+e.suffix;if(n.minutes<=45)return Vm(n.minutes)+(" minutes"+e.suffix);if(n.hours<=1)return"an hour"+e.suffix;if(n.hours<24)return Vm(n.hours)+(" hours"+e.suffix);if(n.days<=1)return"a day"+e.suffix;if(n.days<30)return Vm(n.days)+(" days"+e.suffix);if(n.months<=1)return"a month"+e.suffix;if(n.months<12)return Vm(n.months)+(" months"+e.suffix);if(n.years<=1)return"a year"+e.suffix;if(qe)return Vm(n.years)+(" years"+e.suffix);throw new Error("Failed pattern match at Utils.Format (line 150, column 1 - line 150, column 81): "+[e.constructor.name,n.constructor.name])}},yy=function(e){return vue({suffix:" "+e,justNow:"just now"})},f8=function(){return function(e){var n=function(R){return(oue(zu(Of(R)))*12|0)+uue(Vu(Of(R)))|0},a=iue(e),t=Ka(a.format)(yy("ago")),o=Qg(lue(cue(a.to)(a.from))),u=zS(o+30|0)(60),i=zS(u+12|0)(24),l=n(a.to)-n(a.from)|0,s=zS(l+6|0)(12);return t({minutes:o,hours:u,days:i,months:l,years:s})}};var fue=function(e){return function(n){return function(a){var t=e===1;return t?n:a}}},sl=function(e){return function(n){return function(a){return Zf("0,0")(Ft(e))+(" "+fue(e)(n)(a))}}};var _8=Zf("0,0");var p8=function(){return Po(sue([kl.value,new ht(", "),Ol.value,new ht(" "),Ul.value,new ht(" at "),Bl.value,new ht(":"),bi.value,new ht(" "),Hl.value]))}();var VS=()=>document.visibilityState=="visible",d8=(e,n)=>document.elementFromPoint(e,n);var m8=function(){return function(){return nj("br")}};function h8(e){return function(n){return function(){return n.getElementById(e)}}}var _ue=U(Hn),wy=function(e){var n=_ue(fe),a=h8(e);return function(t){return n(a(t))}};var by=function(e){return function(n){return function(){return n[e]}}},pue=by("children"),due=by("firstElementChild"),mue=by("lastElementChild"),hue=by("childElementCount");var xo=function(){return window};function D8(e,n,a,t){if(typeof window!="undefined"){var o=window[a];if(o!=null&&t instanceof o)return n(t)}for(var u=t;u!=null;){var i=Object.getPrototypeOf(u),l=i.constructor.name;if(l===a)return n(t);if(l==="Object")return e;u=i}return e}var Sn=function(e){return function(n){return D8(M.value,T.create,e,n)}};var g8=Be;var Ey=Be;var R8=Be;function y8(e,n,a){var t=Object.prototype.toString.call(a);return t.indexOf("[object HTML")===0&&t.indexOf("Element]")===t.length-8?n(a):e}var QS=Be;var w8=function(e){return y8(M.value,T.create,e)};function KS(e){return function(){return e.seeking}}function Qm(e){return function(){return e.currentTime}}function YS(e){return function(){return e.volume}}function XS(e){return function(n){return function(){n.volume=e}}}function ZS(e){return function(){return e.muted}}function e_(e){return function(n){return function(){n.muted=e}}}var b8=Sn("HTMLMediaElement");var E8=Sn("HTMLMediaElement");function eC(e){return function(){return e.hash}}function nC(e){return function(n){return function(){n.hash=e}}}function aC(e){return function(n){return function(){n.href=e}}}function tC(e){return function(){return e.platform}}function Tv(e){return function(){return e.document}}function rC(e){return function(){return e.navigator}}function sp(e){return function(){return e.location}}var I8=Be;var Cue=U(Ve);var Fue=m8()(),Gue=R0(ct)(Kd),T8=Z($t),S8=_e(Hn),Mue=Z(nn);var C8=Xe("\xA0");var da=Va(bn(Vn));var Aue=function(e){return function(n){if(e)return Vn;if(qe)return n(ge);throw new Error("Failed pattern match at Utils.HTML (line 107, column 1 - line 107, column 65): "+[e.constructor.name,n.constructor.name])}},F8=function(e){return function(n){return Aue(e)(hn(n))}};var G8=function(e){return function(n){if(e)return n(ge);if(qe)return Vn;throw new Error("Failed pattern match at Utils.HTML (line 94, column 1 - line 94, column 61): "+[e.constructor.name,n.constructor.name])}},Ia=function(e){return function(n){return G8(e)(hn(n))}};var Km=function(e){return Se(zI(Fue({}))(Cue(Xe)(Qo(` `)(e))))},Iy=function(e){return Gue(E8(e.target))(Qm)};var M8=function(e){return function(){return d8(e.x,e.y)}},A8=function(e){return T8(S8(T8(xo)(Tv))(Ey))(wy(e))},Ty=function(e){return S8(A8(e))(function(n){return Mue(n)(w8)})};var fp=un;var L8=({just:e,nothing:n})=>a=>{try{let t=new Date(a);return isNaN(t.getTime())?n:e(t)}catch{return n}},oC=e=>({year:e.getFullYear(),month:e.getMonth(),day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()}),P8=()=>new Date,x8=(()=>{let e=new Date;return typeof window!="undefined"?()=>e:()=>{let n=new Date;return n-e>1e3&&(e=n),e}})();var n_=(()=>{let e=new Date().toString(),n=(e.match(/\(([\w\s]+)\)$/)||[])[1];return n?/\s/.test(n)?(n.match(/\b(\w)/g)||[]).join(""):n:(n=(e.match(/(\w{3,4})\s\d{4}$/)||[])[1],n||(n=(e.match(/(UTC[\+\-]\d+)/)||[])[1],n)||(n=(e.match(/(GMT[\+\-]\d+)/)||[])[1],n)?n:"")})();function uC(){return Date.now()}var Nue=U(Hn);var Zu=Nue(dy)(uC);var N8={liftAff:pn(dn),MonadEffect0:function(){return Le}};var Y7n=function(){function e(){this.head=null,this.last=null,this.size=0}function n(d,y){this.queue=d,this.value=y,this.next=null,this.prev=null}function a(d){this.draining=!1,this.error=null,this.value=d,this.takes=new e,this.reads=new e,this.puts=new e}var t={};function o(d){try{d()}catch(y){setTimeout(function(){throw y},0)}}function u(d,y){var I=new n(d,y);switch(d.size){case 0:d.head=I;break;case 1:I.prev=d.head,d.head.next=I,d.last=I;break;default:I.prev=d.last,d.last.next=I,d.last=I}return d.size++,I}function i(d){var y;switch(d.size){case 0:return null;case 1:y=d.head,d.head=null;break;case 2:y=d.last,d.head.next=null,d.last=null;break;default:y=d.last,d.last=y.prev,d.last.next=null}return y.prev=null,y.queue=null,d.size--,y.value}function l(d){var y;switch(d.size){case 0:return null;case 1:y=d.head,d.head=null;break;case 2:y=d.head,d.last.prev=null,d.head=d.last,d.last=null;break;default:y=d.head,d.head=y.next,d.head.prev=null}return y.next=null,y.queue=null,d.size--,y.value}function s(d){if(d.queue!==null){if(d.queue.last===d){i(d.queue);return}if(d.queue.head===d){l(d.queue);return}d.prev&&(d.prev.next=d.next),d.next&&(d.next.prev=d.prev),d.queue.size--,d.queue=null,d.value=null,d.next=null,d.prev=null}}function R(d,y){if(!y.draining){var I=y.puts,b=y.takes,S=y.reads,L,O,$,z,X;for(y.draining=!0;;){if(L=null,O=null,$=null,z=y.value,X=S.size,y.error!==null){for(z=d.left(y.error);L=l(I);)o(L.cb(z));for(;O=l(S);)o(O(z));for(;$=l(b);)o($(z));break}if(z===t&&(L=l(I))&&(y.value=z=L.value),z!==t){for($=l(b);X--&&(O=l(S));)o(O(d.right(z)));$!==null&&(y.value=t,o($(d.right(z))))}if(L!==null&&o(L.cb(d.right(void 0))),y.value===t&&I.size===0||y.value!==t&&b.size===0)break}y.draining=!1}}return a.EMPTY=t,a.putLast=u,a.takeLast=i,a.takeHead=l,a.deleteCell=s,a.drainVar=R,a}();var Wue=Z($t);var O8=J(ct),Sv=Z(nn),$ue=ua(Pr),zue=ua(rr),Vue=ua(pu),Que=ua(Di),Kue=ua(hi),Yue=ua(mi),Xue=ua(du),Zue=J(oa),U8=Ua($t),eie=_e(ae);var nie=function(){return ts(zc(M.value))}();var k8=function(e){return Sv($ue(e.year))(function(n){return Sv(zue(e.month+1|0))(function(a){return Sv(Vue(e.day))(function(t){return Sv(Que(e.hour))(function(o){return Sv(Kue(e.minute))(function(u){return Sv(Yue(e.second))(function(i){return Sv(Xue(e.millisecond))(function(l){return Zue(new sc(vv(n)(a)(t),new lc(o,u,i,l)))})})})})})})})},B8=function(e){var n=QP("Failed to obtain current time. This should never happen.");return bn(n)(O8)(k8(oC(e)))},a_=U8(B8)(P8),lC=function(e){return ts(Wue(ec(nie))(bn(U8(B8)(x8))(O8)))},Du=function(e){return Sv(eie(L8({just:T.create,nothing:M.value})(e))(oC))(k8)};var cC=J(oa),rie=U(ae),H8=Z(nn);var q8=Nn(xn),J8=Pn(q8)(Gn(Fn)),W8=An(Mn),$8=Ln(W8),z8=Un(On),V8=jn(z8);var sC=function(){function e(){}return e.value=new e,e}(),vC=function(){function e(){}return e.value=new e,e}(),fC=function(){function e(){}return e.value=new e,e}();var oie={to:function(e){if(e instanceof ye)return sC.value;if(e instanceof ie&&e.value0 instanceof ye)return vC.value;if(e instanceof ie&&e.value0 instanceof ie)return fC.value;throw new Error("Failed pattern match at ServiceProviders.Retail.Advising.Types (line 174, column 1 - line 174, column 41): "+[e.constructor.name])},from:function(e){if(e instanceof sC)return new ye(Ne.value);if(e instanceof vC)return new ie(new ye(Ne.value));if(e instanceof fC)return new ie(new ie(Ne.value));throw new Error("Failed pattern match at ServiceProviders.Retail.Advising.Types (line 174, column 1 - line 174, column 41): "+[e.constructor.name])}};var uie=function(e){if(e instanceof sC)return"stuffed";if(e instanceof vC)return"satisfied";if(e instanceof fC)return"hungry";throw new Error("Failed pattern match at ServiceProviders.Retail.Advising.Types (line 233, column 27 - line 236, column 35): "+[e.constructor.name])};var iie=Na(Ze)(ae)({parse:Tn(uie)(kn(oie)(J8(J8(q8)(W8))($8))(V8(V8(z8)))($8)),diagnosticName:"ClientAppetite"}),Q8=function(e){return H8(bn(cC(M.value))(function(){var n=rie(cC);return function(a){return n(iie(a))}}())(fe(e.clientAppetite)))(function(n){return H8(S4(e.inquiryMode))(function(a){return cC({packages:e.packages,pricePerHourCents:e.pricePerHourCents,singleSessionDurationMinutes:e.singleSessionDurationMinutes,singleSessionRefundPeriodLengthDays:e.singleSessionRefundPeriodLengthDays,themes:e.themes,freeConsultationDurationMinutes:fe(e.freeConsultationDurationMinutes),canSubmitConsultInquiry:fe(e.canSubmitConsultInquiry),clientAppetite:n,inquiryMode:a})})})};var K8=Z(nn),_p=Sa(),_C=Wa(pe),Y8=B({reflectSymbol:function(){return"description"}})(pe),Cy=B({reflectSymbol:function(){return"id"}})(un),pC=B({reflectSymbol:function(){return"name"}})(pe),X8=_p(Cy(pC(B({reflectSymbol:function(){return"slug"}})(pe)(on)))),Z8=Ca(X8),lie=_s(_p(B({reflectSymbol:function(){return"advisingConfig"}})(Wa(_p(B({reflectSymbol:function(){return"canSubmitConsultInquiry"}})(Wa(Ea))(B({reflectSymbol:function(){return"clientAppetite"}})(_C)(B({reflectSymbol:function(){return"freeConsultationDurationMinutes"}})(Wa(un))(B({reflectSymbol:function(){return"inquiryMode"}})(pe)(B({reflectSymbol:function(){return"packages"}})(Ca(_p(B({reflectSymbol:function(){return"activeForSale"}})(Ea)(Y8(Cy(pC(B({reflectSymbol:function(){return"numMinutes"}})(un)(B({reflectSymbol:function(){return"packageCategories"}})(Z8)(B({reflectSymbol:function(){return"refundPeriodLengthDays"}})(un)(B({reflectSymbol:function(){return"totalPriceCents"}})(fp)(on)))))))))))(B({reflectSymbol:function(){return"pricePerHourCents"}})(fp)(B({reflectSymbol:function(){return"singleSessionDurationMinutes"}})(un)(B({reflectSymbol:function(){return"singleSessionRefundPeriodLengthDays"}})(un)(B({reflectSymbol:function(){return"themes"}})(Ca(_p(B({reflectSymbol:function(){return"active"}})(Ea)(B({reflectSymbol:function(){return"category"}})(X8)(Y8(B({reflectSymbol:function(){return"durationMinutes"}})(un)(Cy(B({reflectSymbol:function(){return"priceCents"}})(fp)(B({reflectSymbol:function(){return"title"}})(pe)(on))))))))))(on))))))))))))(B({reflectSymbol:function(){return"entity"}})(_p(B({reflectSymbol:function(){return"bio"}})(pe)(Cy(B({reflectSymbol:function(){return"imageUrl"}})(_C)(pC(B({reflectSymbol:function(){return"organizationId"}})(un)(B({reflectSymbol:function(){return"organizationName"}})(pe)(B({reflectSymbol:function(){return"shortEducation"}})(_C)(B({reflectSymbol:function(){return"tags"}})(Z8)(on))))))))))(on)))),dC=J(oa),mC=U(ae),t_=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Rs=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),cie=function(e){return K8(lie("ServiceProviderPresenter")(e))(function(n){return K8(bn(dC(M.value))(function(){var a=mC(dC);return function(t){return a(Q8(t))}}())(fe(n.advisingConfig)))(function(a){return dC({entity:n.entity,advisingConfig:a})})})},e7=Na(Ze)(ae)({parse:function(e){return e.type==="Sem::User"?mC(t_.create)(d4(e.presenter)):e.type==="ServiceProviders::Individual"?mC(Rs.create)(cie(e.presenter)):M.value},diagnosticName:"Livestream Guest Presenter"});var n7=Nn(xn),a7=Pn(n7)(Gn(Fn)),t7=An(Mn),r7=Ln(t7),o7=Un(On),u7=jn(o7),ys=function(){function e(){}return e.value=new e,e}(),Rc=function(){function e(){}return e.value=new e,e}(),ws=function(){function e(){}return e.value=new e,e}(),sie={to:function(e){if(e instanceof ye)return ys.value;if(e instanceof ie&&e.value0 instanceof ye)return Rc.value;if(e instanceof ie&&e.value0 instanceof ie)return ws.value;throw new Error("Failed pattern match at Livestream.Types.Poll (line 41, column 1 - line 41, column 37): "+[e.constructor.name])},from:function(e){if(e instanceof ys)return new ye(Ne.value);if(e instanceof Rc)return new ie(new ye(Ne.value));if(e instanceof ws)return new ie(new ie(Ne.value));throw new Error("Failed pattern match at Livestream.Types.Poll (line 41, column 1 - line 41, column 37): "+[e.constructor.name])}},i7={eq:function(e){return function(n){return e instanceof ys&&n instanceof ys||e instanceof Rc&&n instanceof Rc||e instanceof ws&&n instanceof ws}}},Fy=function(e){if(e instanceof ys)return"ready";if(e instanceof Rc)return"live";if(e instanceof ws)return"closed";throw new Error("Failed pattern match at Livestream.Types.Poll (line 64, column 23 - line 67, column 21): "+[e.constructor.name])};var Ym=function(){return ta(Ze)({parse:Tn(Fy)(kn(sie)(a7(a7(n7)(t7))(r7))(u7(u7(o7)))(r7)),default:ys.value,diagnosticName:"livestream poll status"})}(),hC=function(e){return{id:e.id,question:e.question,multiSelect:e.multiSelect,options:e.options,autoDisplayMinutesFromStart:fe(e.autoDisplayMinutesFromStart)}};var l7=function(e){return{fullName:e.fullName,firstName:e.firstName,totalStreams:e.totalStreams,undergrad:{college:fe(e.undergrad.college),major:fe(e.undergrad.major),year:fe(e.undergrad.year)},gradCollege:fe(e.gradCollege),workExperience:fe(e.workExperience),admissionsStory:fe(e.admissionsStory),pictureUrl:fe(e.pictureUrl),allStreamsUrl:fe(e.allStreamsUrl)}};var vie=Ke(aa),fie=Uu(),c7=_e(ae),s7=Nn(xn),v7=Pn(s7)(Gn(Fn)),f7=An(Mn),_7=Ln(f7),p7=Un(On),d7=jn(p7),m7=ta(Ze),h7=df(),D7=Ua(nn),_ie=_e(Ve),pie=U(ae),die=Z(nn),gu=function(){function e(){}return e.value=new e,e}(),qr=function(){function e(){}return e.value=new e,e}(),br=function(){function e(){}return e.value=new e,e}();var ei=Ye,mie=ne(ei);var hie={to:function(e){if(e instanceof ye)return gu.value;if(e instanceof ie&&e.value0 instanceof ye)return qr.value;if(e instanceof ie&&e.value0 instanceof ie)return br.value;throw new Error("Failed pattern match at Livestream.Types.Conference (line 175, column 1 - line 175, column 39): "+[e.constructor.name])},from:function(e){if(e instanceof gu)return new ye(Ne.value);if(e instanceof qr)return new ie(new ye(Ne.value));if(e instanceof br)return new ie(new ie(Ne.value));throw new Error("Failed pattern match at Livestream.Types.Conference (line 175, column 1 - line 175, column 39): "+[e.constructor.name])}},Cv={eq:function(e){return function(n){return e instanceof gu&&n instanceof gu||e instanceof qr&&n instanceof qr||e instanceof br&&n instanceof br}}},Xm={eq:function(e){return function(n){return e===n}}},g7={compare:function(e){return function(n){return vie(e)(n)}},Eq0:function(){return Xm}};var Fv=function(e){return fie({livestream_conference_id:mie(e.id),livestream_conference_presenter_name:Je("")(c7(e.presenter)(function(n){return n.fullName})),livestream_conference_uid:e.uid,livestream_conference_title:e.title,livestream_conference_partner_type:Je("")(e.partnerType)})},R7=function(){var e=function(n){if(n instanceof gu)return"waiting_room";if(n instanceof qr)return"on_air";if(n instanceof br)return"complete";throw new Error("Failed pattern match at Livestream.Types.Conference (line 188, column 17 - line 191, column 35): "+[n.constructor.name])};return Tn(e)(kn(hie)(v7(v7(s7)(f7))(_7))(d7(d7(p7)))(_7))}(),y7=function(){return m7({parse:R7,default:gu.value,diagnosticName:"livestream status"})}(),Die=m7({parse:Du,default:tt(U0),diagnosticName:"livestream scheduled start time"}),Zm=function(e){return{uid:e.uid,title:e.title,description:e.description,url:e.url,imageUrl:e.imageUrl,duration:e.duration,tailTime:e.tailTime,stats:e.stats,isPrivate:e.isPrivate,legacyRecording:e.legacyRecording,collegeFair:e.collegeFair,id:e.id,school:c7(fe(e.school))(function(n){return{cityState:n.cityState,name:n.name,id:h7(n.id),slug:h7(n.slug)}}),scheduledStartTime:Die(e.scheduledStartTime),onAirTime:D7(Du)(fe(e.onAirTime)),streamStatus:y7(e.streamStatus),watchUrl:fe(e.watchUrl),streamingStartTime:D7(Du)(fe(e.streamingStartTime)),polls:_ie(e.polls)(function(n){return{poll:hC(n.poll),status:Ym(n.status)}}),presenter:pie(l7)(fe(e.presenter)),partnerType:fe(e.partnerType),guestPresenter:die(fe(e.guestPresenter))(e7),zoomJoinUrl:fe(e.zoomJoinUrl),zoomStartUrl:fe(e.zoomStartUrl)}};var w7=Nn(xn),b7=An(Mn),E7=Un(On),Ei=function(){function e(){}return e.value=new e,e}(),pp=function(){function e(){}return e.value=new e,e}(),gie={to:function(e){if(e instanceof ye)return Ei.value;if(e instanceof ie)return pp.value;throw new Error("Failed pattern match at Profile.PublishScope (line 24, column 1 - line 24, column 39): "+[e.constructor.name])},from:function(e){if(e instanceof Ei)return new ye(Ne.value);if(e instanceof pp)return new ie(Ne.value);throw new Error("Failed pattern match at Profile.PublishScope (line 24, column 1 - line 24, column 39): "+[e.constructor.name])}},Gy={eq:function(e){return function(n){return e instanceof Ei&&n instanceof Ei||e instanceof pp&&n instanceof pp}}};var eh=function(e){if(e instanceof pp)return"anonymous-all-schools";if(e instanceof Ei)return"all-schools";throw new Error("Failed pattern match at Profile.PublishScope (line 34, column 13 - line 36, column 30): "+[e.constructor.name])},My=function(){return ta(Ze)({parse:Tn(eh)(kn(gie)(Pn(w7)(Gn(Fn))(w7)(b7))(jn(E7)(E7))(Ln(b7))),diagnosticName:"Profile.PublishScope",default:pp.value})}();var vl=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),fl=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),_l=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),pl=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var DC=function(e){return{id:e.id,title:e.title,requireAnonymousUserFirstName:e.requireAnonymousUserFirstName,requireAnonymousUserLastName:e.requireAnonymousUserLastName,requireAnonymousUserEmail:e.requireAnonymousUserEmail,requireReferredUserFirstName:e.requireReferredUserFirstName,requireReferredUserLastName:e.requireReferredUserLastName,description:fe(e.description)}},r_=function(e){return{author:e.author,text:e.text,isFromHQ:e.isFromHQ,isPublic:e.isPublic,id:e.id,time:Du(e.time)}},I7=function(e){return{autoRequestFromLivestreams:e.autoRequestFromLivestreams,fullName:fe(e.fullName),publishScope:My(e.publishScope)}},gC=function(e){return{id:e.id,title:e.title,url:e.url,buttonText:e.buttonText,autoDisplayMinutesFromStart:fe(e.autoDisplayMinutesFromStart)}},Ii="overlay-visibility-test";var T7=Nn(xn),Ay=Pn(T7)(Gn(Fn)),S7=An(Mn),Ly=Ln(S7),C7=Un(On),Py=jn(C7),bs=function(){function e(){}return e.value=new e,e}(),Gv=function(){function e(){}return e.value=new e,e}(),o_=function(){function e(){}return e.value=new e,e}(),Mv=function(){function e(){}return e.value=new e,e}(),Av=function(){function e(){}return e.value=new e,e}(),Rie={to:function(e){if(e instanceof ye)return bs.value;if(e instanceof ie&&e.value0 instanceof ye)return Gv.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ye)return o_.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ie&&e.value0.value0.value0 instanceof ye)return Mv.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ie&&e.value0.value0.value0 instanceof ie)return Av.value;throw new Error("Failed pattern match at Livestream.Types.Reaction (line 20, column 1 - line 20, column 39): "+[e.constructor.name])},from:function(e){if(e instanceof bs)return new ye(Ne.value);if(e instanceof Gv)return new ie(new ye(Ne.value));if(e instanceof o_)return new ie(new ie(new ye(Ne.value)));if(e instanceof Mv)return new ie(new ie(new ie(new ye(Ne.value))));if(e instanceof Av)return new ie(new ie(new ie(new ie(Ne.value))));throw new Error("Failed pattern match at Livestream.Types.Reaction (line 20, column 1 - line 20, column 39): "+[e.constructor.name])}},F7=function(e){if(e instanceof bs)return"love-this";if(e instanceof Gv)return"helpful";if(e instanceof o_)return"not-helpful";if(e instanceof Mv)return"writing-down";if(e instanceof Av)return"funny";throw new Error("Failed pattern match at Livestream.Types.Reaction (line 51, column 17 - line 56, column 19): "+[e.constructor.name])},G7=function(e){return{authorTag:e.authorTag,kind:F7(e.kind)}},yie=function(){return ta(Ze)({parse:Tn(F7)(kn(Rie)(Ay(Ay(Ay(Ay(T7)(S7))(Ly))(Ly))(Ly))(Py(Py(Py(Py(C7)))))(Ly)),default:bs.value,diagnosticName:"Livestream Reaction Kind"})}(),M7=function(e){return{authorTag:e.authorTag,kind:yie(e.kind)}};var A7=typeof CV!="undefined"&&CV.pathInfo||typeof global!="undefined"&&global.CV&&global.CV.pathInfo||(e=>null);function L7(e,n){let a=typeof CV!="undefined"&&CV.apiEndpoint||typeof global!="undefined"&&global.CV&&global.CV.apiEndpoint;return a||console.error("Missing `CV.apiEndpoint` function"),a&&a(e,n)}function P7(e,n,a,t,o){return function(u,i){var l=e.newXHR(),s=e.fixupUrl(o.url,l);if(l.open(o.method||"GET",s,!0,o.username,o.password),o.headers)try{for(var R=0,d;(d=o.headers[R])!=null;R++)l.setRequestHeader(d.field,d.value)}catch(I){u(I)}var y=function(I){return function(){u(new Error(I))}};return l.onerror=y(a),l.ontimeout=y(n),l.onload=function(){i({status:l.status,statusText:l.statusText,headers:l.getAllResponseHeaders().split(`\r `).filter(function(I){return I.length>0}).map(function(I){var b=I.indexOf(":");return t(I.substring(0,b))(I.substring(b+2))}),body:l.response})},l.responseType=o.responseType,l.withCredentials=o.withCredentials,l.timeout=o.timeout,l.send(o.content),function(I,b,S){try{l.abort()}catch(L){return b(L)}return S()}}}var xy="application/json",x7="application/x-www-form-urlencoded";var N7=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),j7=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),O7=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),U7=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),k7=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),RC=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Ny=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),B7=function(e){return e instanceof RC?new T(x7):e instanceof Ny?new T(xy):M.value};var H7=function(){return Ny.create}();var q7=wa();var jy=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Oy=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),dp=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),J7=function(e){if(e instanceof jy||e instanceof Oy)return q7(e.value0);if(e instanceof dp)return e.value1;throw new Error("Failed pattern match at Affjax.RequestHeader (line 26, column 1 - line 26, column 33): "+[e.constructor.name])};var yC=function(e){if(e instanceof jy)return"Accept";if(e instanceof Oy)return"Content-Type";if(e instanceof dp)return e.value0;throw new Error("Failed pattern match at Affjax.RequestHeader (line 21, column 1 - line 21, column 32): "+[e.constructor.name])};var W7=pn(dn),wC=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),bC=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),EC=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Uy=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),ky=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),By=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),$7=function(e){if(e instanceof wC)return"arraybuffer";if(e instanceof bC)return"blob";if(e instanceof EC)return"document";if(e instanceof Uy||e instanceof ky)return"text";if(e instanceof By)return"";throw new Error("Failed pattern match at Affjax.ResponseFormat (line 44, column 3 - line 50, column 19): "+[e.constructor.name])},z7=function(e){return e instanceof Uy?new T(xy):M.value},V7=function(){return new ky(W7)}();var Q7=function(){return new By(W7)}();var K7=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}();var bie=wa();var nh=function(e){return bie(nR(e))};function Y7(e,n,a){try{return n(JSON.parse(a))}catch(t){return e(t.message)}}var Hy=function(e){return Y7(Me.create,Pe.create,e)};function X7(e){return e.replace(/[!'()*]/g,function(n){return"%"+n.charCodeAt(0).toString(16)})}function Z7(e,n,a){try{return n(X7(encodeURIComponent(a)))}catch(t){return e(t)}}function eO(e,n,a){try{return n(X7(encodeURIComponent(a)).replace(/%20/g,"+"))}catch(t){return e(t)}}var qy=function(){return nv(Z7)(hn(M.value))(T.create)}();var Jy=function(){return nv(eO)(hn(M.value))(T.create)}();var Eie=Yn(vr),nO=U(ae),Iie=lo(Nu)(oa);var Tie=function(e){return e};var aO=function(){var e=function(t){if(t.value1 instanceof M)return Jy(t.value0);if(t.value1 instanceof T)return Eie(nO(function(o){return function(u){return o+("="+u)}})(Jy(t.value0)))(Jy(t.value1.value0));throw new Error("Failed pattern match at Data.FormURLEncoded (line 37, column 16 - line 39, column 114): "+[t.constructor.name])},n=nO(sr("&")),a=Iie(e);return function(t){return n(a(Tie(t)))}}();var IC=function(){function e(){}return e.value=new e,e}(),u_=function(){function e(){}return e.value=new e,e}(),TC=function(){function e(){}return e.value=new e,e}(),i_=function(){function e(){}return e.value=new e,e}(),Wy=function(){function e(){}return e.value=new e,e}(),ah=function(){function e(){}return e.value=new e,e}(),SC=function(){function e(){}return e.value=new e,e}(),CC=function(){function e(){}return e.value=new e,e}(),FC=function(){function e(){}return e.value=new e,e}(),GC=function(){function e(){}return e.value=new e,e}(),MC=function(){function e(){}return e.value=new e,e}(),AC=function(){function e(){}return e.value=new e,e}(),LC=function(){function e(){}return e.value=new e,e}(),PC=function(){function e(){}return e.value=new e,e}(),xC=function(){function e(){}return e.value=new e,e}(),$y=function(){function e(){}return e.value=new e,e}();var Sie=function(e){return e},Cie={show:function(e){if(e instanceof IC)return"OPTIONS";if(e instanceof u_)return"GET";if(e instanceof TC)return"HEAD";if(e instanceof i_)return"POST";if(e instanceof Wy)return"PUT";if(e instanceof ah)return"DELETE";if(e instanceof SC)return"TRACE";if(e instanceof CC)return"CONNECT";if(e instanceof FC)return"PROPFIND";if(e instanceof GC)return"PROPPATCH";if(e instanceof MC)return"MKCOL";if(e instanceof AC)return"COPY";if(e instanceof LC)return"MOVE";if(e instanceof PC)return"LOCK";if(e instanceof xC)return"UNLOCK";if(e instanceof $y)return"PATCH";throw new Error("Failed pattern match at Data.HTTP.Method (line 43, column 1 - line 59, column 23): "+[e.constructor.name])}};var tO=kt(ne(Cie))(Sie);var rO={eq:function(e){return function(n){return e instanceof IC&&n instanceof IC||e instanceof u_&&n instanceof u_||e instanceof TC&&n instanceof TC||e instanceof i_&&n instanceof i_||e instanceof Wy&&n instanceof Wy||e instanceof ah&&n instanceof ah||e instanceof SC&&n instanceof SC||e instanceof CC&&n instanceof CC||e instanceof FC&&n instanceof FC||e instanceof GC&&n instanceof GC||e instanceof MC&&n instanceof MC||e instanceof AC&&n instanceof AC||e instanceof LC&&n instanceof LC||e instanceof PC&&n instanceof PC||e instanceof xC&&n instanceof xC||e instanceof $y&&n instanceof $y}}};var oO=function(e){return fv(function(n){return function(){var t=e(function(o){return n(Me.create(o))()},function(o){return n(Pe.create(o))()});return function(o){return fv(function(u){return function(){return t(o,function(l){return u(Me.create(l))()},function(l){return u(Pe.create(l))()}),TT}})}}})};var NC=J(Qc(cr)),Fie=M0(cr),l_=Xc(cr),uO=ma(rR(sR)(cr)),Gie=tf(Ff(cr)),zy=U(ae),Mie=vi(vn)(st),Aie=Re(Pt),Lie=Ua(nn),Pie=U(Ve),xie=_e(Ga),Nie=Sf(xr),jie=J(Xn);var Vy=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Qy=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),Ky=function(){function e(){}return e.value=new e,e}(),Yy=function(){function e(){}return e.value=new e,e}(),Xy=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),iO=function(e){return function(n){var a=function(d){return d===""?NC(Rj):kt(function(y){return Fie(lm.create(y))})(NC)(Hy(d))},t=function(){if(n.responseFormat instanceof wC)return l_("ArrayBuffer");if(n.responseFormat instanceof bC)return l_("Blob");if(n.responseFormat instanceof EC)return function(d){return uO(l_("Document")(d))(uO(l_("XMLDocument")(d))(l_("HTMLDocument")(d)))};if(n.responseFormat instanceof Uy)return Gie(function(d){return n.responseFormat.value0(a(d))})(l_("String"));if(n.responseFormat instanceof ky)return l_("String");if(n.responseFormat instanceof By)return hn(n.responseFormat.value0(NC(ge)));throw new Error("Failed pattern match at Affjax (line 274, column 18 - line 283, column 57): "+[n.responseFormat.constructor.name])}(),o=function(d){if(d instanceof N7)return new Pe(d.value0(so));if(d instanceof j7)return new Pe(so(d.value0));if(d instanceof O7)return new Pe(so(d.value0));if(d instanceof U7)return new Pe(so(d.value0));if(d instanceof k7)return new Pe(so(d.value0));if(d instanceof RC)return c0("Body contains values that cannot be encoded as application/x-www-form-urlencoded")(zy(so)(aO(d.value0)));if(d instanceof Ny)return new Pe(so(ry(d.value0)));throw new Error("Failed pattern match at Affjax (line 235, column 20 - line 250, column 69): "+[d.constructor.name])},u=function(d){return function(y){return d instanceof T&&!Mie(n0(Aie)(yC)(d.value0))(y)?y0(y)(d.value0):y}},i=function(d){return u(zy(Oy.create)(Lie(B7)(d)))(u(zy(jy.create)(z7(n.responseFormat)))(n.headers))},l=function(d){return{method:tO(n.method),url:n.url,headers:Pie(function(y){return{field:yC(y),value:J7(y)}})(i(n.content)),content:d,responseType:$7(n.responseFormat),username:Fa(n.username),password:Fa(n.password),withCredentials:n.withCredentials,timeout:Je(0)(zy(function(y){return y})(n.timeout))}},s=function(d){return xie(Nie(oO(P7(e,"AffjaxTimeoutErrorMessageIdent","AffjaxRequestFailedMessageIdent",K7.create,l(d)))))(function(y){if(y instanceof Pe){var I=nh(t(y.value0.body));if(I instanceof Me)return new Me(new Qy(p3(I.value0),y.value0));if(I instanceof Pe)return new Pe({headers:y.value0.headers,status:y.value0.status,statusText:y.value0.statusText,body:I.value0});throw new Error("Failed pattern match at Affjax (line 209, column 9 - line 211, column 52): "+[I.constructor.name])}if(y instanceof Me)return new Me(function(){var b=T0(y.value0),S=b==="AffjaxTimeoutErrorMessageIdent";if(S)return Ky.value;var L=b==="AffjaxRequestFailedMessageIdent";return L?Yy.value:new Xy(y.value0)}());throw new Error("Failed pattern match at Affjax (line 207, column 144 - line 219, column 28): "+[y.constructor.name])})};if(n.content instanceof M)return s(Fa(M.value));if(n.content instanceof T){var R=o(n.content.value0);if(R instanceof Pe)return s(Fa(new T(R.value0)));if(R instanceof Me)return jie(new Me(new Vy(R.value0)));throw new Error("Failed pattern match at Affjax (line 199, column 7 - line 203, column 48): "+[R.constructor.name])}throw new Error("Failed pattern match at Affjax (line 195, column 3 - line 203, column 48): "+[n.content.constructor.name])}};var mp=function(){return{method:new Me(u_.value),url:"/",headers:[],content:M.value,username:M.value,password:M.value,withCredentials:!1,responseFormat:Q7,timeout:M.value}}();var lO={eq:function(e){return function(n){return e===n}}};var jC={newXHR:function(){return new XMLHttpRequest},fixupUrl:function(e){return e||"/"}};var cO=iO(jC);function sO(e){return Buffer.from(e).toString("base64")}function vO(e,n,a){let t;try{t=n(btoa(a))}catch(o){t=e(o)}return t}var OC=typeof btoa=="function";function fO(e){let n=32768,a=[];for(let t=0;t{let e=null,n=0,a=()=>{if(!Ec||!Ec.key)return Ec||console.error("Pusher config is missing in global context"),new ale;let t={auth:{headers:{"X-CSRF-Token":Ec.authToken}},authEndpoint:Ec.authPath,cluster:Ec.cluster};return Ec.dev&&Object.assign(t,{wsHost:Ec.dev.wsHost,wsPort:Ec.dev.wsPort,enabledTransports:["ws"],forceTLS:!1,disableStats:!0}),new SO.default(Ec.key,t)};return{acquireConnection:()=>(e||(e=a(),n=0),n++,e),releaseConnection:()=>{--n<=0&&(e.disconnect(),e=null)}}})(),CO=e=>{let n=ele().subscribe(e.channel);return n.bind(e.event,e.handler),()=>{n.unbind(e.event,e.handler),nle()}};function ale(){typeof document!="undefined"&&(document.mockPusher=this),this.localObject={},this.channels=[],this.disconnect=function(){document.mockPusher=null},this.subscribe=function(e){let n=this.channels.find(t=>t.name===e);if(n)return n;let a=new tle(e);return this.channels.push(a),a},this.channelNames=function(){return this.channels.map(e=>e.name)}}function tle(e){this.name=e,this.handlers={},this.triggered=[],this.disconnect=()=>{},this.bind=function(n,a){this.handlers[n]=a},this.unbind=function(n,a){this.handlers[n]===a&&(this.handlers[n]=null)},this.trigger=function(n,a){this.triggered.push({eventName:n,eventData:a})}}var rle=si(vn)(wt),ole=Bo(ct)(xu),ule=_e(uS);var ile={show:function(e){return e}},lle=ne(ile),nw=pe,cle=function(e){var n=_s(e);return function(a){return function(t){return function(o){var u=rle(["Pusher event ",t," over channel ",lle(a)]),i=function(l){return ole(n(u)(l))(o)()};return function(){return CO({channel:a,event:t,handler:i})}}}}},Ti=function(e){var n=cle(e);return function(a){var t=a.Monad0(),o=Z(t.Bind1()),u=yn(a),i=J(t.Applicative0());return function(l){return function(s){return function(R){return o(u(n(l)(s)(R)))(function(d){return i(u(d))})}}}}},sle=Ti(Lf),aw=function(e){var n=sle(e);return function(a){return function(t){return ule(n(a)(t))(hn(ge))}}};var FO=bc(yc),Ru=ql(FO),Er=Z(sa),rh=ql(bc(FO)),GO=J(Xn),vle=_e(ae),oh=Sa(),MO=B({reflectSymbol:function(){return"pollId"}})(un),fle=B({reflectSymbol:function(){return"status"}})(pe)(on),_le=bt(Ca(oh(MO(fle)))),AO=U(Ve),LO=U(Ga),ple=B({reflectSymbol:function(){return"id"}}),dle=ple(un),PO=oh(B({reflectSymbol:function(){return"author"}})(oh(B({reflectSymbol:function(){return"cvid"}})(pe)(B({reflectSymbol:function(){return"username"}})(pe)(on))))(dle(B({reflectSymbol:function(){return"isFromHQ"}})(Ea)(B({reflectSymbol:function(){return"isPublic"}})(Ea)(B({reflectSymbol:function(){return"text"}})(pe)(B({reflectSymbol:function(){return"time"}})(pe)(on))))))),mle=Dp(PO);var hle=Wa(pe);var Dle=Dp(Ca(oh(MO(B({reflectSymbol:function(){return"responses"}})(oh(B({reflectSymbol:function(){return"answered"}})(un)(B({reflectSymbol:function(){return"optionCounts"}})(Ca(un))(B({reflectSymbol:function(){return"seen"}})(un)(B({reflectSymbol:function(){return"skipped"}})(un)(on))))))(on))))),gle=Dp(hle),Rle=Dp(Ca(PO));var BC=rh("livestreams_polls_status_path")(function(e){return function(n){return function(a){return Er(e({id:n.id,status:Fy(a)}))(wc(function(t){return GO(Je([])(vle(_le(t))(AO(function(o){return{pollId:o.pollId,status:Ym(o.status)}}))))}))}}});var HC=rh("livestreams_polls_answer_path")(function(e){return function(n){return function(a){return Er(e({id:n.id,options:a}))(er)}}}),xO=Ru("livestreams_conferences_status_on_air_path")(function(e){return function(n){return Er(e({conference_id:n}))(er)}}),NO=Ru("livestreams_conferences_status_complete_path")(function(e){return function(n){return Er(e({conference_id:n}))(er)}}),jO=Ru("livestreams_cta_save_referral_path")(function(e){return function(n){return Er(e(n))(er)}}),OO=Ru("livestreams_polls_report_shown_path")(function(e){return function(n){return Er(e({id:n.id}))(er)}}),UO=rh("livestreams_client_window_visibility_path")(function(e){return function(n){return function(a){return Er(e({stream_id:n,visible:a.visible}))(er)}}}),kO=rh("livestreams_recording_watch_event_path")(function(e){return function(n){return function(a){return Er(e({conference_id:n,current_time_minutes:a}))(er)}}}),BO=Ru("livestreams_questions_visibility_path")(function(e){return function(n){return Er(e({question_id:n.questionId,is_public:n.isPublic}))(er)}}),HO=Ru("livestreams_questions_post_path")(function(e){return function(n){return Er(e({conference_id:n.conferenceId,question_text:n.text,hq_broadcast:n.hqBroadcast}))(wc(function(a){return LO(r_)(mle("Livestream question")(a))}))}}),qO=Ru("livestreams_cta_open_path")(function(e){return function(n){return Er(e({is_referral:!0,from_conference_id:n.fromConference,id:n.ctaId}))(er)}}),JO=Ru("livestreams_cta_open_path")(function(e){return function(n){return Er(e({is_general:!0,from_conference_id:n.fromConference,id:n.ctaId}))(er)}}),WO=Ru("livestreams_cta_open_path")(function(e){return function(n){return Er(e({is_featured_service_providers:!0,from_conference_id:n.fromConference,id:n.ctaId}))(er)}}),$O=Ru("livestreams_cta_open_path")(function(e){return function(n){return Er(e({is_event:!0,from_conference_id:n.fromConference,cta_conference_id:n.cta}))(er)}}),tw=Ru("livestreams_register_path")(function(e){return function(n){return Er(e({from_conference_id:Fa(n.fromConference),register_for_conference_id:n.registerForConference,utm_cv_source:n.utmSource}))(er)}});var zO=rh("livestreams_reactions_launch_path")(function(e){return function(n){return function(a){return Er(e({conference_id:n,reaction:G7(a)}))(er)}}}),VO=Ru("livestreams_polls_responses_path")(function(e){return function(n){return Er(e({conference_id:n}))(wc(Dle("livestream poll responses")))}}),QO=Ru("livestreams_conferences_download_url_path")(function(e){return function(n){return Er(e({conference_id:n}))(wc(function(a){return LO(fe)(gle("Livestream download URL")(a))}))}}),rw=ql(yc)("livestreams_dismiss_network_settings_modal_path")(function(e){return Er(e({}))(er)});var KO=Ru("livestreams_conferences_ban_user_path")(function(e){return function(n){return Er(e({conference_id:n.conferenceId,user_cvid:n.userCvid}))(er)}}),ow=Ru("livestreams_questions_all_path")(function(e){return function(n){return Er(e({conference_id:n}))(wc(function(a){return Er(Rle("Livestream questions")(a))(function(t){return GO(AO(r_)(t))})}))}});var JC=function(){function e(){}return e.value=new e,e}(),WC=function(){function e(){}return e.value=new e,e}(),$C=function(){function e(){}return e.value=new e,e}(),zC=function(){function e(){}return e.value=new e,e}(),VC=function(){function e(){}return e.value=new e,e}(),QC=function(){function e(){}return e.value=new e,e}(),KC=function(){function e(){}return e.value=new e,e}(),YC=function(){function e(){}return e.value=new e,e}(),XC=function(){function e(){}return e.value=new e,e}(),ZC=function(){function e(){}return e.value=new e,e}(),eF=function(){function e(){}return e.value=new e,e}(),nF=function(){function e(){}return e.value=new e,e}(),aF=function(){function e(){}return e.value=new e,e}(),tF=function(){function e(){}return e.value=new e,e}(),Nt=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),rF=function(){function e(){}return e.value=new e,e}();var iw=function(e){if(e instanceof Nt&&e.value0 instanceof JC)return"architecture";if(e instanceof Nt&&e.value0 instanceof $C)return"chemistry";if(e instanceof Nt&&e.value0 instanceof WC)return"business";if(e instanceof Nt&&e.value0 instanceof zC)return"computer-science";if(e instanceof Nt&&e.value0 instanceof VC)return"criminal-justice-and-corrections";if(e instanceof Nt&&e.value0 instanceof QC)return"economics";if(e instanceof Nt&&e.value0 instanceof KC)return"engineering";if(e instanceof Nt&&e.value0 instanceof YC)return"english";if(e instanceof Nt&&e.value0 instanceof XC)return"film";if(e instanceof Nt&&e.value0 instanceof ZC)return"finance";if(e instanceof Nt&&e.value0 instanceof eF)return"history";if(e instanceof Nt&&e.value0 instanceof nF)return"political-science";if(e instanceof Nt&&e.value0 instanceof aF)return"pre-med";if(e instanceof Nt&&e.value0 instanceof tF)return"psychology";if(e instanceof rF)return"overall";throw new Error("Failed pattern match at Hub.Ranking (line 98, column 8 - line 113, column 23): "+[e.constructor.name])};var lw=function(){function e(){}return e.value=new e,e}(),Ile=function(){function e(){}return e.value=new e,e}(),Tle=function(){function e(){}return e.value=new e,e}();var YO=function(e){if(e instanceof lw)return M.value;if(e instanceof Tle)return new T("open");if(e instanceof Ile)return new T("on");throw new Error("Failed pattern match at Hub.Types.WhatificatorPhase (line 26, column 13 - line 29, column 22): "+[e.constructor.name])};var nU=yt();var s_=function(e){return function(n){var a=function(){var u=Yc("?")(n);return u?"&":"?"}(),t=nU(qy(e.value)),o=nU(qy(e.key));return n+(a+(o+("="+t)))}};var Kle=function(){function e(){}return e.value=new e,e}(),Yle=function(){function e(){}return e.value=new e,e}(),Xle=function(){function e(){}return e.value=new e,e}(),Zle=function(){function e(){}return e.value=new e,e}(),ece=function(){function e(){}return e.value=new e,e}(),nce=function(){function e(){}return e.value=new e,e}(),ace=function(){function e(){}return e.value=new e,e}(),tce=function(){function e(){}return e.value=new e,e}(),rce=function(){function e(){}return e.value=new e,e}(),oce=function(){function e(){}return e.value=new e,e}(),uce=function(){function e(){}return e.value=new e,e}(),ice=function(){function e(){}return e.value=new e,e}(),lce=function(){function e(){}return e.value=new e,e}(),cce=function(){function e(){}return e.value=new e,e}(),sce=function(){function e(){}return e.value=new e,e}(),vce=function(){function e(){}return e.value=new e,e}(),fce=function(){function e(){}return e.value=new e,e}(),_ce=function(){function e(){}return e.value=new e,e}(),pce=function(){function e(){}return e.value=new e,e}(),dce=function(){function e(){}return e.value=new e,e}(),mce=function(){function e(){}return e.value=new e,e}(),hce=function(){function e(){}return e.value=new e,e}(),Dce=function(){function e(){}return e.value=new e,e}(),gce=function(){function e(){}return e.value=new e,e}(),Rce=function(){function e(){}return e.value=new e,e}(),yce=function(){function e(){}return e.value=new e,e}(),wce=function(){function e(){}return e.value=new e,e}(),bce=function(){function e(){}return e.value=new e,e}(),Ece=function(){function e(){}return e.value=new e,e}(),Ice=function(){function e(){}return e.value=new e,e}(),Tce=function(){function e(){}return e.value=new e,e}(),Sce=function(){function e(){}return e.value=new e,e}(),Cce=function(){function e(){}return e.value=new e,e}(),Fce=function(){function e(){}return e.value=new e,e}(),Gce=function(){function e(){}return e.value=new e,e}(),Mce=function(){function e(){}return e.value=new e,e}(),Ace=function(){function e(){}return e.value=new e,e}(),Lce=function(){function e(){}return e.value=new e,e}(),Pce=function(){function e(){}return e.value=new e,e}(),xce=function(){function e(){}return e.value=new e,e}(),Nce=function(){function e(){}return e.value=new e,e}(),jce=function(){function e(){}return e.value=new e,e}(),Oce=function(){function e(){}return e.value=new e,e}(),Uce=function(){function e(){}return e.value=new e,e}(),kce=function(){function e(){}return e.value=new e,e}(),Bce=function(){function e(){}return e.value=new e,e}(),Hce=function(){function e(){}return e.value=new e,e}(),qce=function(){function e(){}return e.value=new e,e}(),Jce=function(){function e(){}return e.value=new e,e}(),Wce=function(){function e(){}return e.value=new e,e}(),$ce=function(){function e(){}return e.value=new e,e}(),zce=function(){function e(){}return e.value=new e,e}(),Vce=function(){function e(){}return e.value=new e,e}(),Qce=function(){function e(){}return e.value=new e,e}(),Kce=function(){function e(){}return e.value=new e,e}(),Yce=function(){function e(){}return e.value=new e,e}();var va=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),yu=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var aU=function(e){if(e instanceof va&&e.value0 instanceof Kle)return"AcceptanceRate";if(e instanceof va&&e.value0 instanceof Yle)return"AcceptanceRateMen";if(e instanceof va&&e.value0 instanceof Xle)return"AcceptanceRateWomen";if(e instanceof va&&e.value0 instanceof Zle)return"Address";if(e instanceof va&&e.value0 instanceof ece)return"AdmissionChances";if(e instanceof va&&e.value0 instanceof nce)return"AdmissionDifficulty";if(e instanceof va&&e.value0 instanceof ace)return"AdmissionsNotificationDate";if(e instanceof va&&e.value0 instanceof tce)return"AdmissionsWebsite";if(e instanceof va&&e.value0 instanceof rce)return"AppDeadlineIsRolling";if(e instanceof va&&e.value0 instanceof oce)return"ApplicationEffort";if(e instanceof va&&e.value0 instanceof uce)return"ApplicationRound";if(e instanceof va&&e.value0 instanceof ice)return"BasketballConference";if(e instanceof va&&e.value0 instanceof lce)return"CampusSetting";if(e instanceof va&&e.value0 instanceof cce)return"City";if(e instanceof va&&e.value0 instanceof sce)return"ClassRank";if(e instanceof va&&e.value0 instanceof vce)return"CoEdSingleSex";if(e instanceof va&&e.value0 instanceof fce)return"CollegeType";if(e instanceof va&&e.value0 instanceof _ce)return"CommuterCollege";if(e instanceof va&&e.value0 instanceof pce)return"Diversity";if(e instanceof va&&e.value0 instanceof dce)return"DropoutRate";if(e instanceof va&&e.value0 instanceof hce)return"FinancialAidWebsite";if(e instanceof va&&e.value0 instanceof Dce)return"FirstYearEnrollment";if(e instanceof va&&e.value0 instanceof gce)return"FootballConference";if(e instanceof va&&e.value0 instanceof Rce)return"FourYearGraduationRate";if(e instanceof va&&e.value0 instanceof yce)return"HasDivisionOneBasketball";if(e instanceof va&&e.value0 instanceof wce)return"HasDivisionOneFootball";if(e instanceof va&&e.value0 instanceof bce)return"HasMedicalSchool";if(e instanceof va&&e.value0 instanceof Ece)return"HasStudyAbroad";if(e instanceof va&&e.value0 instanceof Ice)return"HBCU";if(e instanceof va&&e.value0 instanceof Tce)return"InListStatus";if(e instanceof va&&e.value0 instanceof Sce)return"MainWebsite";if(e instanceof va&&e.value0 instanceof mce)return"Majors";if(e instanceof va&&e.value0 instanceof Cce)return"Name";if(e instanceof va&&e.value0 instanceof Fce)return"NetCostEstimate";if(e instanceof va&&e.value0 instanceof Gce)return"Notes";if(e instanceof va&&e.value0 instanceof Mce)return"PercentInternationalStudents";if(e instanceof va&&e.value0 instanceof Ace)return"Phone";if(e instanceof va&&e.value0 instanceof Lce)return"Photo";if(e instanceof va&&e.value0 instanceof Pce)return"Prestige";if(e instanceof va&&e.value0 instanceof xce)return"ProgramLength";if(e instanceof va&&e.value0 instanceof Nce)return"PublicPrivate";if(e instanceof va&&e.value0 instanceof jce)return"RecommendationLetters";if(e instanceof va&&e.value0 instanceof Oce)return"Region";if(e instanceof va&&e.value0 instanceof Uce)return"ReligiousAffiliation";if(e instanceof va&&e.value0 instanceof kce)return"SatActDeadline";if(e instanceof va&&e.value0 instanceof Bce)return"SatActTestPolicy";if(e instanceof va&&e.value0 instanceof Hce)return"SatSubjectTestDeadline";if(e instanceof va&&e.value0 instanceof qce)return"SixYearGraduationRate";if(e instanceof va&&e.value0 instanceof Jce)return"State";if(e instanceof va&&e.value0 instanceof Wce)return"StudentFacultyRatio";if(e instanceof va&&e.value0 instanceof $ce)return"SubmissionDeadline";if(e instanceof va&&e.value0 instanceof zce)return"TOEFLPolicy";if(e instanceof va&&e.value0 instanceof Vce)return"TotalUndergrads";if(e instanceof va&&e.value0 instanceof Qce)return"TuitionInState";if(e instanceof va&&e.value0 instanceof Kce)return"TuitionOutOfState";if(e instanceof va&&e.value0 instanceof Yce)return"YieldRate";if(e instanceof yu&&e.value0 instanceof Nt&&e.value0.value0 instanceof JC)return"RankingArchitecture";if(e instanceof yu&&e.value0 instanceof Nt&&e.value0.value0 instanceof WC)return"RankingBusiness";if(e instanceof yu&&e.value0 instanceof Nt&&e.value0.value0 instanceof $C)return"RankingChemistry";if(e instanceof yu&&e.value0 instanceof Nt&&e.value0.value0 instanceof zC)return"RankingComputerScience";if(e instanceof yu&&e.value0 instanceof Nt&&e.value0.value0 instanceof VC)return"RankingCriminalJusticeAndCorrections";if(e instanceof yu&&e.value0 instanceof Nt&&e.value0.value0 instanceof QC)return"RankingEconomics";if(e instanceof yu&&e.value0 instanceof Nt&&e.value0.value0 instanceof KC)return"RankingEngineering";if(e instanceof yu&&e.value0 instanceof Nt&&e.value0.value0 instanceof YC)return"RankingEnglish";if(e instanceof yu&&e.value0 instanceof Nt&&e.value0.value0 instanceof XC)return"RankingFilm";if(e instanceof yu&&e.value0 instanceof Nt&&e.value0.value0 instanceof ZC)return"RankingFinance";if(e instanceof yu&&e.value0 instanceof Nt&&e.value0.value0 instanceof eF)return"RankingHistory";if(e instanceof yu&&e.value0 instanceof Nt&&e.value0.value0 instanceof nF)return"RankingPoliticalScience";if(e instanceof yu&&e.value0 instanceof Nt&&e.value0.value0 instanceof aF)return"RankingPreMed";if(e instanceof yu&&e.value0 instanceof Nt&&e.value0.value0 instanceof tF)return"RankingPsychology";if(e instanceof yu&&e.value0 instanceof rF)return"OverallRanking";throw new Error("Failed pattern match at Hub.Facet (line 309, column 6 - line 380, column 43): "+[e.constructor.name])};var Xce=function(){function e(){}return e.value=new e,e}(),Zce=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),ese=function(){function e(){}return e.value=new e,e}();var tU=function(e){if(e instanceof Xce)return"filters";if(e instanceof Zce)return"filter:"+aU(e.value0);if(e instanceof ese)return"rankings";throw new Error("Failed pattern match at Hub.Visuals.MobileOverlay (line 40, column 26 - line 43, column 39): "+[e.constructor.name])};function rU(e,n){typeof CV!="undefined"&&CV.tracking&&CV.tracking.event(e,n)}var nse=Uu();var Es=function(e){var n=yn(e);return function(a){return function(t){return n(function(){return rU(a,t)})}}},Is=function(e){var n=Es(e);return function(){return function(a){return function(t){return n(a)(nse(t))}}}};var uh=function(){function e(){}return e.value=new e,e}(),Lv=function(){function e(){}return e.value=new e,e}(),ih=function(){function e(){}return e.value=new e,e}(),Gse=function(){function e(){}return e.value=new e,e}(),iU=function(e){if(e instanceof uh)return"modal-sm";if(e instanceof Lv)return"";if(e instanceof ih)return"modal-lg";if(e instanceof Gse)return"modal-xl";throw new Error("Failed pattern match at Bootstrap.Modal.Size (line 14, column 13 - line 18, column 27): "+[e.constructor.name])};var lh="";function lU(e){var n=e.split(` `);return n.reduce(function(a,t){var o=Lse(t)||xse(t)||Ose(t)||Hse(t)||kse(t);return o&&a.push(o),a},[])}var Mse=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ase=/\((\S*)(?::(\d+))(?::(\d+))\)/;function Lse(e){var n=Mse.exec(e);if(!n)return null;var a=n[2]&&n[2].indexOf("native")===0,t=n[2]&&n[2].indexOf("eval")===0,o=Ase.exec(n[2]);return t&&o!=null&&(n[2]=o[1],n[3]=o[2],n[4]=o[3]),{file:a?null:n[2],methodName:n[1]||lh,arguments:a?[n[2]]:[],lineNumber:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}var Pse=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function xse(e){var n=Pse.exec(e);return n?{file:n[2],methodName:n[1]||lh,arguments:[],lineNumber:+n[3],column:n[4]?+n[4]:null}:null}var Nse=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,jse=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Ose(e){var n=Nse.exec(e);if(!n)return null;var a=n[3]&&n[3].indexOf(" > eval")>-1,t=jse.exec(n[3]);return a&&t!=null&&(n[3]=t[1],n[4]=t[2],n[5]=null),{file:n[3],methodName:n[1]||lh,arguments:n[2]?n[2].split(","):[],lineNumber:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}var Use=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function kse(e){var n=Use.exec(e);return n?{file:n[3],methodName:n[1]||lh,arguments:[],lineNumber:+n[4],column:n[5]?+n[5]:null}:null}var Bse=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Hse(e){var n=Bse.exec(e);return n?{file:n[2],methodName:n[1]||lh,arguments:[],lineNumber:+n[3],column:n[4]?+n[4]:null}:null}function cU({skipFrames:e,prefix:n}){let a=new Error().stack,o=lU(a)[e],u=sU(o.file.replace(/^(http(s?):\/\/)?[^\/]+/,"")),i=sU(o.methodName);return`${n}_${u}_${i}_${o.lineNumber}_${o.column}`}var sU=e=>e.replace(/[^\d\w]+/g,"_").replace(/(^_|_$)/g,"");var qse=J(Rn),Jse=pn(dn),sw=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Wse={map:function(e){return function(n){return new sw(function(a){return n.value0(function(t){return a(e(t))})})}}},$se=U(Wse);var vU=function(e){return zN(cU(e))},v_=function(e){return new sw(function(n){return n(e)})},Rp=function(e){return function(n){return new sw(function(a){return hv(e)(n)(a)})}},fU=function(e){return function(n){return hv(e)(function(a){return{init:qse(ge),update:hn(r0),view:hn(hn(n.value0(Jse)))}})(ge)}},_U=function(e){var n=vU({skipFrames:3,prefix:"WithHook"});return function(a){return fU(n)($se(a)(e))}};var vw=function(e){var n=vU({skipFrames:3,prefix:"HooksComponent"});return fU(n)(e)},Pv=function(){return function(e){return function(n){return new sw(function(a){return e.value0(function(t){var o=n(t);return o.value0(a)})})}}},zse=Pv(),ch=function(e){return function(){return zse}};var pU=rn(Qe)($n),Vse=Xu(Le),Qse=pn(dn),dU=J(Rn),fw=function(e){return function(n){return Rp("UseSubscription")(function(a){return{init:pU(Vse(Qse)(e))(function(){return dU(ge)}),update:function(t){return function(o){return pU(za(n(o)))(function(){return dU(ge)})}},view:function(t){return function(o){return a(ge)}}}})}};function uF(e){return function(){return function(n){return e(n)()}}}function iF(e){return function(n){return function(a){return function(t){return function(){return t.addEventListener(e,n,a)}}}}}function lF(e){return function(n){return function(a){return function(t){return function(){return t.removeEventListener(e,n,a)}}}}}var mU="message";var hU="hashchange";var DU="popstate";var gU="keyup",RU="keydown";var yU="mouseup";var wU="mousemove";var bU=yn(Le),EU=U(Hn),Kse=Ua($t),sh=function(){var e=function(t){return function(o){return function(u){return bU(function(){var l=o(),s=uF(function(R){return u(R)})();return iF(t)(s)(!1)(l)(),bU(lF(t)(s)(!1)(l))})}}},n=function(t){return e(t)(EU(I8)(xo))},a=function(t){return e(t)(EU(R8)(Kse(Tv)(xo)))};return{hashchange:n(hU),mousemove:n(wU),mouseup:n(yU),popstate:n(DU),resize:n("resize"),message:n(mU),keydown:a(RU),keyup:a(gU),selectionchange:a("selectionchange"),visibilitychange:a("visibilitychange")}}();var _w=function(){return Be};var yp=Te(ze),cF=Vr(),Yse=or(ze)()(),Xse=or(me)()(),Zse=Te(me),eve=zn(Y)()(),nve=Br(hu),ave=lr(Xn),tve=yn(Le),IU=_w(),Jl=function(){return function(e){var n=yp("modal-backdrop fade show")(Vn),a=cF(e),t=cl(a.footer),o=cl(a.header),u=Ka(a.size)(Lv.value),i=sr(" ")([function(){var s=Ka(a.scrollable)(!0);return s?"modal-dialog-scrollable":""}(),function(){var s=Ka(a.centered)(!0);return s?"modal-dialog-centered":""}(),iU(u),Ka(a.dialogClass)("")]),l=yp("modal fade show d-block")(Yse("modal-dialog "+i)({style:Ka(a.dialogStyle)(rt({}))})(Xse("modal-content "+Ka(a.contentClass)(""))({style:Ka(a.contentStyle)(rt({}))})([da(o)(yp("modal-header "+Ka(a.headerClass)(""))),yp("modal-body "+Ka(a.bodyClass)(""))(a.body),da(t)(yp("modal-footer "+Ka(a.footerClass)("")))])));return Se([l,n])}},sF=Jl(),Wl=function(){return function(e){var n=cF(e),a=Zse("d-flex w-100 justify-content-between align-items-center")([yp("mr-4")(Ka(n.title)(Vn)),eve("btn btn-link large mr-n3 py-0 fe fe-x t--close "+Ka(n.dismissButtonClass)("text-body"))({type:"button",onClick:nve(n.onDismiss)})("")]),t=function(o){return ave(o.key==="Escape")(tve(n.onDismiss))};return _U(fw(sh.keyup)(t))(function(o){var u=Ka(n.bodyScrollable)(!1);return sF(u?function(){var i=cF(IU(n));return{body:i.body,bodyClass:i.bodyClass,centered:i.centered,contentClass:i.contentClass,contentStyle:i.contentStyle,dialogClass:i.dialogClass,dialogStyle:i.dialogStyle,footer:i.footer,footerClass:i.footerClass,headerClass:i.headerClass,scrollable:i.scrollable,size:i.size,header:a}}():IU({bodyClass:n.bodyClass,bodyScrollable:n.bodyScrollable,centered:n.centered,contentClass:n.contentClass,contentStyle:n.contentStyle,dialogClass:n.dialogClass,dialogStyle:n.dialogStyle,dismissButtonClass:n.dismissButtonClass,footer:n.footer,footerClass:n.footerClass,headerClass:n.headerClass,onDismiss:n.onDismiss,scrollable:n.scrollable,size:n.size,title:n.title,body:Se([a,n.body])}))})}},wp=function(e){var n=Nm(e);return function(a){return function(t){return sF({bodyClass:a,body:Se(n(t))})}}};var TU=J(Rn),ove=pn(dn);var uve=function(e){return function(n){return function(a){return Rp(e)(function(t){return n({init:TU(a),update:function(o){return function(u){return TU(u)}},view:p0(t)})})}}},Ts=function(e){return uve("UseState")(ove)(e)};var ive=Vr(),lve=pn(dn),cve=np(me)()(),sve=zn(ze)()(),vve=fo()();var pw="login",vF=function(){return function(e){var n=ive(e),a=function(){var u=Ka(n.auth0ActiveTab)(pw);return u}(),t=Je({path:"",token:""})(Zy("login_path")),o=function(u){return function(i){return bn(lve)(function(l){return s_(function(s){return{key:u,value:s}}(l))})(cl(i))}};return cve("d-inline")({method:"post",action:o("origin")(n.origin)(o("login_hint")(n.auth0LoginHint)(s_({key:"screen_hint",value:a})(t.path))),target:function(){var u=Ka(n.openInNewTab)(!1);return u?"_blank":""}()})([sve(Ka(n.className)("btn btn-primary px-4"))({type:"submit",disabled:Ka(n.disabled)(!1)})(Ka(n.content)(Xe(Ka(n.text)("Log in")))),vve("")({type:"hidden",name:"authenticity_token",value:t.token})])}};var fF=typeof CV!="undefined"&&CV.assetsRoot||typeof global!="undefined"&&global.CV&&global.CV.assetsRoot||"/";var _F=Vc(ko(st)),fve=pn(dn),_ve=tl()(),dw=function(e){var n=_i(e);return function(a){return Ct(n(a))}},pve=function(e){if(_F(dw("http://"))(_F(dw("https://"))(_F(dw("//"))(dw("blob:"))))(e))return e;if(qe)return fF+Je(e)(_i("/")(e));throw new Error("Failed pattern match at Utils.AppAssets (line 47, column 1 - line 47, column 30): "+[e.constructor.name])},wu=function(){return function(){return function(e){return function(n){var a=function(o){return fve},t=a(n)(L0("src")(pve(n.src))(n));return _ve(e)(t)}}}};var f_=function(e){return function(n){return function(){return n[e]}}},dve=f_("URL"),mve=f_("documentURI"),hve=f_("origin"),Dve=f_("compatMode"),gve=f_("characterSet"),Rve=f_("contentType");var yve=f_("documentElement");var mw=function(e){return function(n){return n[e]}},bve=mw("namespaceURI"),Eve=mw("prefix"),Ive=mw("localName"),Tve=mw("tagName");function pF(e){return function(){return e.id}}function dF(e){return function(){return e.classList}}function mF(e){return function(){var n=e.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}}var hF=Be;var CU=Sn("Element");var $l=function(e){return function(n){return function(){return n[e]}}};var Cve=$l("baseURI"),Fve=$l("ownerDocument"),FU=$l("parentNode"),Gve=$l("parentElement");var Mve=$l("childNodes"),Ave=$l("firstChild"),Lve=$l("lastChild"),Pve=$l("previousSibling"),xve=$l("nextSibling"),Nve=$l("nodeValue");var jve=$l("textContent");function DF(e){return function(n){return function(){return e.isEqualNode(n)}}}var kve=U(Hn);var GU=function(){var e=kve(fe);return function(n){return e(FU(n))}}();var Bve=JSON.stringify;var p_=function(){function e(){}return e.value=new e,e}(),MU=function(){function e(){}return e.value=new e,e}(),AU=function(){function e(){}return e.value=new e,e}(),vh=function(){function e(){}return e.value=new e,e}(),LU=function(){function e(){}return e.value=new e,e}(),PU=function(){function e(){}return e.value=new e,e}(),xU=function(){function e(){}return e.value=new e,e}();var hw=function(e){if(e instanceof p_)return M.value;if(e instanceof MU)return new T("for-you");if(e instanceof AU)return new T("chancing");if(e instanceof vh)return new T("finances");if(e instanceof LU)return new T("majors");if(e instanceof PU)return new T("admission-requirements");if(e instanceof xU)return new T("essay-prompts");throw new Error("Failed pattern match at SchoolDetails.Types (line 96, column 14 - line 103, column 39): "+[e.constructor.name])};var NU=Ua($t);var jU=function(e){return NU(aC(e))(NU(sp)(xo))};var gF=_e(ae);var RF=Pu(vn)(wt),Wve=wa(),$ve=ii(ae),yF=function(e){return"/schools/"+e.slug},wF="/schools/hub";var OU=function(e){return function(n){var a=gF(YO(n.whatificator))(function(l){return"simulator="+l}),t=gF(n.mobileOverlay)(function(l){return"overlay="+tU(l)}),o=sr("&")(Wo([t,a])),u=gF(n.focusedSchool)(function(l){return RF("/")(Wo([new T(Wve(l.slug)),hw(l.tab)]))}),i=function(){return e.knownSeoState instanceof T&&n.seoView?RF("/")(Wo([new T(yF({slug:e.knownSeoState.value0.slug})),u])):RF("/")(Wo([new T(wF),new T(bn(e.basePath)(iw)(n.ranking)),$ve(u)("d"),u]))}();return i+(function(){var l=o==="";return l?"":"?"}()+o)}};var UU="/profile";var Vve=wa();var bF=function(e){return function(n){return sr("/")(Wo([new T("/schools"),new T(Vve(n)),hw(e)]))}},kU=UU,BU="/livestreams/upcoming";var Qve=function(e){return OU({basePath:"all",knownSeoState:M.value})({ranking:M.value,focusedSchool:e,mobileOverlay:M.value,seoView:!1,whatificator:lw.value})};var Dw=function(e){return function(n){return Qve(new T({tab:e,slug:n}))}};var HU=function(){function e(){}return e.value=new e,e}(),qU=function(){function e(){}return e.value=new e,e}(),gw=function(){function e(){}return e.value=new e,e}(),Rw=function(){function e(){}return e.value=new e,e}(),JU=function(){function e(){}return e.value=new e,e}(),WU=function(){function e(){}return e.value=new e,e}(),$U=function(){function e(){}return e.value=new e,e}(),zU=function(e){if(e instanceof HU)return"avatar-xxs";if(e instanceof qU)return"avatar-xs";if(e instanceof gw)return"avatar-sm";if(e instanceof Rw)return"";if(e instanceof JU)return"avatar-lg";if(e instanceof WU)return"avatar-xl";if(e instanceof $U)return"avatar-xxl";throw new Error("Failed pattern match at Dashkit.Avatar.Size (line 16, column 13 - line 23, column 34): "+[e.constructor.name])};var VU={show:wa()};var Kve=Number.MAX_SAFE_INTEGER;var IF=function(e){if(e.first==="")return e.last;if(e.last==="")return e.first;if(qe)return e.first+(" "+e.last);throw new Error("Failed pattern match at Profile.Types.Name (line 11, column 1 - line 11, column 27): "+[e.constructor.name])};var _fe=Re(Gy);var KU={show:function(e){return e}};var YU=function(e){return _fe(e.publishScope)(Ei.value)};var bp=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),TF=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),SF=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),CF=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),FF=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),GF=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),MF=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var AF=ne(VU);var pfe=ne(_4),XU=ne($j),dfe=ne(KU);var mfe="/messages";var hfe=function(e){return function(n){return e+("/"+function(){if(n instanceof bp)return"admission-officer/"+pfe(n.value0);if(n instanceof TF)return"school/"+XU(n.value0);if(n instanceof SF)return"student/"+dfe(n.value0);if(n instanceof CF)return"high-school/"+AF(n.value0);if(n instanceof FF)return"service-provider/"+AF(n.value0);if(n instanceof GF)return"parent/"+AF(n.value0);if(n instanceof MF)return"recruiter/"+XU(n.value0);throw new Error("Failed pattern match at DirectMessages.Urls (line 31, column 59 - line 38, column 63): "+[n.constructor.name])}())}},LF=hfe(mfe);var Dfe=ql(bc(yc)),gfe=Z(sa),ZU=_e(ae),e6=wa(),Rfe=Tt(Ga);var n6=Dfe("network_connections_invite_school_path")(function(e){return function(n){return gfe(e({school_id:n.schoolId,message:Fa(n.introMessage),sem_user_id:Fa(ZU(n.semUserId)(e6)),livestream_id:Fa(ZU(n.livestreamId)(e6))}))(er)}}),a6=function(e){return function(n){return Rfe(n6({schoolId:e,introMessage:M.value,semUserId:M.value,livestreamId:new T(n)}))}};var t6=function(e){return function(n){return function(a){return n6({schoolId:e,introMessage:new T(a.introMessage),semUserId:new T(n),livestreamId:M.value})}}};$a();function ho(){return ho=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0)&&(a[o]=e[o]);return a}function xv(e,n){if(e==null)return{};var a=PF(e,n),t,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(a[t]=e[t]))}return a}$a();$a();function d_(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function o6(e,n){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:1;l6+=1;var a=l6;function t(o){if(o===0)c6(a),e();else{var u=u6(function(){t(o-1)});jF.set(a,u)}}return t(n),a}Si.cancel=function(e){var n=jF.get(e);return c6(n),i6(n)};function g_(e,n){return e?e.contains(n):!1}function ph(e){return e instanceof HTMLElement?e:Ri.findDOMNode(e)}var p6=Fu(_6());$a();function BF(e,n){typeof e=="function"?e(n):eo(e)==="object"&&e&&"current"in e&&(e.current=n)}function Mw(){for(var e=arguments.length,n=new Array(e),a=0;ae.length)&&(n=e.length);for(var a=0,t=new Array(n);a1&&arguments[1]!==void 0?arguments[1]:2;n();var u=Si(function(){o<=1?t({isCanceled:function(){return u!==e.current}}):a(t,o-1)});e.current=u}return Gt(function(){return function(){n()}},[]),[a,n]};$a();var Gfe=Ic()?Sm:Gt,Ow=Gfe;var T6=[dl,Ss,Ov,jw],KF=!1,S6=!0;function Uw(e){return e===Ov||e===jw}var C6=function(e,n){var a=Cs(QF),t=At(a,2),o=t[0],u=t[1],i=I6(),l=At(i,2),s=l[0],R=l[1];function d(){u(dl,!0)}return Ow(function(){if(o!==QF&&o!==jw){var y=T6.indexOf(o),I=T6[y+1],b=n(o);b===KF?u(I,!0):s(function(S){function L(){S.isCanceled()||u(I,!0)}b===!0?L():Promise.resolve(b).then(L)})}},[e,o]),Gt(function(){return function(){R()}},[]),[d,o]};$a();$a();var F6=function(e){var n=it(),a=it(e);a.current=e;var t=Tm(function(i){a.current(i)},[]);function o(i){i&&(i.removeEventListener(zF,t),i.removeEventListener($F,t))}function u(i){n.current&&n.current!==i&&o(n.current),i&&i!==n.current&&(i.addEventListener(zF,t),i.addEventListener($F,t),n.current=i)}return Gt(function(){return function(){o(n.current)}},[]),[u,o]};function YF(e,n,a,t){var o=t.motionEnter,u=o===void 0?!0:o,i=t.motionAppear,l=i===void 0?!0:i,s=t.motionLeave,R=s===void 0?!0:s,d=t.motionDeadline,y=t.motionLeaveImmediately,I=t.onAppearPrepare,b=t.onEnterPrepare,S=t.onLeavePrepare,L=t.onAppearStart,O=t.onEnterStart,$=t.onLeaveStart,z=t.onAppearActive,X=t.onEnterActive,oe=t.onLeaveActive,te=t.onAppearEnd,ve=t.onEnterEnd,we=t.onLeaveEnd,an=t.onVisibleChanged,cn=Cs(),ce=At(cn,2),le=ce[0],je=ce[1],Ce=Cs(jv),He=At(Ce,2),en=He[0],Cn=He[1],ra=Cs(null),Bn=At(ra,2),qn=Bn[0],Kn=Bn[1],Jn=it(!1),ft=it(null);function Ue(){return a()}var ia=it(!1);function Ta(ot){var q=Ue();if(!(ot&&!ot.deadline&&ot.target!==q)){var K=ia.current,j;en===dh&&K?j=te==null?void 0:te(q,ot):en===mh&&K?j=ve==null?void 0:ve(q,ot):en===hh&&K&&(j=we==null?void 0:we(q,ot)),en!==jv&&K&&j!==!1&&(Cn(jv,!0),Kn(null,!0))}}var In=F6(Ta),gn=At(In,1),We=gn[0],na=Cm(function(){var ot,q,K;switch(en){case dh:return ot={},Yo(ot,dl,I),Yo(ot,Ss,L),Yo(ot,Ov,z),ot;case mh:return q={},Yo(q,dl,b),Yo(q,Ss,O),Yo(q,Ov,X),q;case hh:return K={},Yo(K,dl,S),Yo(K,Ss,$),Yo(K,Ov,oe),K;default:return{}}},[en]),fa=C6(en,function(ot){if(ot===dl){var q=na[dl];return q?q(Ue()):KF}if(sn in na){var K;Kn(((K=na[sn])===null||K===void 0?void 0:K.call(na,Ue(),null))||null)}return sn===Ov&&(We(Ue()),d>0&&(clearTimeout(ft.current),ft.current=setTimeout(function(){Ta({deadline:!0})},d))),S6}),La=At(fa,2),_t=La[0],sn=La[1],la=Uw(sn);ia.current=la,Ow(function(){je(n);var ot=Jn.current;if(Jn.current=!0,!!e){var q;!ot&&n&&l&&(q=dh),ot&&n&&u&&(q=mh),(ot&&!n&&R||!ot&&y&&!n&&R)&&(q=hh),q&&(Cn(q),_t())}},[n]),Gt(function(){(en===dh&&!l||en===mh&&!u||en===hh&&!R)&&Cn(jv)},[l,u,R]),Gt(function(){return function(){Jn.current=!1,clearTimeout(ft.current)}},[]);var Et=it(!1);Gt(function(){le&&(Et.current=!0),le!==void 0&&en===jv&&((Et.current||le)&&(an==null||an(le)),Et.current=!0)},[le,en]);var Da=qn;return na[dl]&&sn===Ss&&(Da=ba({transition:"none"},Da)),[en,sn,Da,le!=null?le:n]}$a();var Mfe=function(e){h_(a,e);var n=D_(a);function a(){return d_(this,a),n.apply(this,arguments)}return m_(a,[{key:"render",value:function(){return this.props.children}}]),a}(kf),G6=Mfe;function Afe(e){var n=e;eo(e)==="object"&&(n=e.transitionSupport);function a(o){return!!(o.motionName&&n)}var t=gi(function(o,u){var i=o.visible,l=i===void 0?!0:i,s=o.removeOnLeave,R=s===void 0?!0:s,d=o.forceRender,y=o.children,I=o.motionName,b=o.leavedClassName,S=o.eventProps,L=a(o),O=it(),$=it();function z(){try{return O.current instanceof HTMLElement?O.current:ph($.current)}catch{return null}}var X=YF(L,l,z,o),oe=At(X,4),te=oe[0],ve=oe[1],we=oe[2],an=oe[3],cn=it(an);an&&(cn.current=!0);var ce=Tm(function(ra){O.current=ra,BF(u,ra)},[u]),le,je=ba(ba({},S),{},{visible:l});if(!y)le=null;else if(te===jv||!a(o))an?le=y(ba({},je),ce):!R&&cn.current?le=y(ba(ba({},je),{},{className:b}),ce):d?le=y(ba(ba({},je),{},{style:{display:"none"}}),ce):le=null;else{var Ce,He;ve===dl?He="prepare":Uw(ve)?He="active":ve===Ss&&(He="start"),le=y(ba(ba({},je),{},{className:(0,M6.default)(VF(I,te),(Ce={},Yo(Ce,VF(I,"".concat(te,"-").concat(He)),He),Yo(Ce,I,typeof I=="string"),Ce)),style:we}),ce)}if(FT(le)&&Aw(le)){var en=le,Cn=en.ref;Cn||(le=Im(le,{ref:ce}))}return vt(G6,{ref:$},le)});return t.displayName="CSSMotion",t}var kw=Afe(Nw);$a();var Bw="add",Hw="keep",qw="remove",Jw="removed";function Lfe(e){var n;return e&&eo(e)==="object"&&"key"in e?n=e:n={key:e},ba(ba({},n),{},{key:String(n.key)})}function Ww(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Lfe)}function A6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=[],t=0,o=n.length,u=Ww(e),i=Ww(n);u.forEach(function(R){for(var d=!1,y=t;y1});return s.forEach(function(R){a=a.filter(function(d){var y=d.key,I=d.status;return y!==R||I!==qw}),a.forEach(function(d){d.key===R&&(d.status=Hw)})}),a}var Pfe=["component","children","onVisibleChanged","onAllRemoved"],xfe=["status"],Nfe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function jfe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kw,a=function(t){h_(u,t);var o=D_(u);function u(){var i;d_(this,u);for(var l=arguments.length,s=new Array(l),R=0;R=0&&a.left>=0&&a.bottom>a.top&&a.right>a.left?a:null}function i_e(e,n,a,t){var o=ja.clone(e),u={width:n.width,height:n.height};return t.adjustX&&o.left=a.left&&o.left+u.width>a.right&&(u.width-=o.left+u.width-a.right),t.adjustX&&o.left+u.width>a.right&&(o.left=Math.max(a.right-u.width,a.left)),t.adjustY&&o.top=a.top&&o.top+u.height>a.bottom&&(u.height-=o.top+u.height-a.bottom),t.adjustY&&o.top+u.height>a.bottom&&(o.top=Math.max(a.bottom-u.height,a.top)),ja.mix(o,u)}function cG(e){var n,a,t;if(!ja.isWindow(e)&&e.nodeType!==9)n=ja.offset(e),a=ja.outerWidth(e),t=ja.outerHeight(e);else{var o=ja.getWindow(e);n={left:ja.getWindowScrollLeft(o),top:ja.getWindowScrollTop(o)},a=ja.viewportWidth(o),t=ja.viewportHeight(o)}return n.width=a,n.height=t,n}function Y6(e,n){var a=n.charAt(0),t=n.charAt(1),o=e.width,u=e.height,i=e.left,l=e.top;return a==="c"?l+=u/2:a==="b"&&(l+=u),t==="c"?i+=o/2:t==="r"&&(i+=o),{left:i,top:l}}function Yw(e,n,a,t,o){var u=Y6(n,a[1]),i=Y6(e,a[0]),l=[i.left-u.left,i.top-u.top];return{left:Math.round(e.left-l[0]+t[0]-o[0]),top:Math.round(e.top-l[1]+t[1]-o[1])}}function X6(e,n,a){return e.lefta.right}function Z6(e,n,a){return e.topa.bottom}function l_e(e,n,a){return e.left>a.right||e.left+n.widtha.bottom||e.top+n.height=a.right||t.top>=a.bottom}function eb(e,n,a){var t=a.target||n,o=cG(t),u=!s_e(t,a.overflow&&a.overflow.alwaysByViewport);return a5(e,o,a,u)}eb.__getOffsetParent=iG;eb.__getVisibleRectForElement=lG;function t5(e,n,a){var t,o,u=ja.getDocument(e),i=u.defaultView||u.parentWindow,l=ja.getWindowScrollLeft(i),s=ja.getWindowScrollTop(i),R=ja.viewportWidth(i),d=ja.viewportHeight(i);"pageX"in n?t=n.pageX:t=l+n.clientX,"pageY"in n?o=n.pageY:o=s+n.clientY;var y={left:t,top:o,width:0,height:0},I=t>=0&&t<=l+R&&o>=0&&o<=s+d,b=[a.points[0],"cc"];return a5(e,y,N6(N6({},a),{},{points:b}),I)}var BB=Fu(GB());var MB=function(){if(typeof Map!="undefined")return Map;function e(n,a){var t=-1;return n.some(function(o,u){return o[0]===a?(t=u,!0):!1}),t}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(a){var t=e(this.__entries__,a),o=this.__entries__[t];return o&&o[1]},n.prototype.set=function(a,t){var o=e(this.__entries__,a);~o?this.__entries__[o][1]=t:this.__entries__.push([a,t])},n.prototype.delete=function(a){var t=this.__entries__,o=e(t,a);~o&&t.splice(o,1)},n.prototype.has=function(a){return!!~e(this.__entries__,a)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(a,t){t===void 0&&(t=null);for(var o=0,u=this.__entries__;o0},e.prototype.connect_=function(){!FG||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),jhe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!FG||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(n){var a=n.propertyName,t=a===void 0?"":a,o=Nhe.some(function(u){return!!~t.indexOf(u)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),AB=function(e,n){for(var a=0,t=Object.keys(n);a0},e}(),xB=typeof WeakMap!="undefined"?new WeakMap:new MB,NB=function(){function e(n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var a=Ohe.getInstance(),t=new Vhe(n,a,this);xB.set(this,t)}return e}();["observe","unobserve","disconnect"].forEach(function(e){NB.prototype[e]=function(){var n;return(n=xB.get(this))[e].apply(n,arguments)}});var Qhe=function(){return typeof ub.ResizeObserver!="undefined"?ub.ResizeObserver:NB}(),jB=Qhe;function OB(e,n){return e===n?!0:!e||!n?!1:"pageX"in n&&"pageY"in n?e.pageX===n.pageX&&e.pageY===n.pageY:"clientX"in n&&"clientY"in n?e.clientX===n.clientX&&e.clientY===n.clientY:!1}function UB(e,n){e!==document.activeElement&&g_(n,e)&&typeof e.focus=="function"&&e.focus()}function GG(e,n){var a=null,t=null;function o(i){var l=At(i,1),s=l[0].target;if(!!document.documentElement.contains(s)){var R=s.getBoundingClientRect(),d=R.width,y=R.height,I=Math.floor(d),b=Math.floor(y);(a!==I||t!==b)&&Promise.resolve().then(function(){n({width:I,height:b})}),a=I,t=b}}var u=new jB(o);return e&&u.observe(e),function(){u.disconnect()}}$a();var kB=function(e,n){var a=ka.useRef(!1),t=ka.useRef(null);function o(){window.clearTimeout(t.current)}function u(i){if(o(),!a.current||i===!0){if(e()===!1)return;a.current=!0,t.current=window.setTimeout(function(){a.current=!1},n)}else t.current=window.setTimeout(function(){a.current=!1,u()},n)}return[u,function(){a.current=!1,o()}]};function HB(e){return typeof e!="function"?null:e()}function qB(e){return eo(e)!=="object"||!e?null:e}var Khe=function(n,a){var t=n.children,o=n.disabled,u=n.target,i=n.align,l=n.onAlign,s=n.monitorWindowResize,R=n.monitorBufferTime,d=R===void 0?0:R,y=ka.useRef({}),I=ka.useRef(),b=ka.Children.only(t),S=ka.useRef({});S.current.disabled=o,S.current.target=u,S.current.align=i,S.current.onAlign=l;var L=kB(function(){var ve=S.current,we=ve.disabled,an=ve.target,cn=ve.align,ce=ve.onAlign;if(!we&&an){var le=I.current,je,Ce=HB(an),He=qB(an);y.current.element=Ce,y.current.point=He,y.current.align=cn;var en=document,Cn=en.activeElement;return Ce&&P6(Ce)?je=eb(le,Ce,cn):He&&(je=t5(le,He,cn)),UB(Cn,le),ce&&je&&ce(le,je),!0}return!1},d),O=At(L,2),$=O[0],z=O[1],X=ka.useRef({cancel:function(){}}),oe=ka.useRef({cancel:function(){}});ka.useEffect(function(){var ve=HB(u),we=qB(u);I.current!==oe.current.element&&(oe.current.cancel(),oe.current.element=I.current,oe.current.cancel=GG(I.current,$)),(y.current.element!==ve||!OB(y.current.point,we)||!(0,BB.default)(y.current.align,i))&&($(),X.current.element!==ve&&(X.current.cancel(),X.current.element=ve,X.current.cancel=GG(ve,$)))}),ka.useEffect(function(){o?z():$()},[o]);var te=ka.useRef(null);return ka.useEffect(function(){s?te.current||(te.current=Nv(window,"resize",$)):te.current&&(te.current.remove(),te.current=null)},[s]),ka.useEffect(function(){return function(){X.current.cancel(),oe.current.cancel(),te.current&&te.current.remove(),z()}},[]),ka.useImperativeHandle(a,function(){return{forceAlign:function(){return $(!0)}}}),ka.isValidElement(b)&&(b=ka.cloneElement(b,{ref:Mw(b.ref,I)})),b},JB=ka.forwardRef(Khe);JB.displayName="Align";var WB=JB;var $B=WB;$a();var Yhe=Ic()?Sm:Gt,MG=Yhe;var YB=Fu(R_());function Ah(){"use strict";Ah=function(){return e};var e={},n=Object.prototype,a=n.hasOwnProperty,t=typeof Symbol=="function"?Symbol:{},o=t.iterator||"@@iterator",u=t.asyncIterator||"@@asyncIterator",i=t.toStringTag||"@@toStringTag";function l(ce,le,je){return Object.defineProperty(ce,le,{value:je,enumerable:!0,configurable:!0,writable:!0}),ce[le]}try{l({},"")}catch{l=function(je,Ce,He){return je[Ce]=He}}function s(ce,le,je,Ce){var He=le&&le.prototype instanceof y?le:y,en=Object.create(He.prototype),Cn=new we(Ce||[]);return en._invoke=function(ra,Bn,qn){var Kn="suspendedStart";return function(Jn,ft){if(Kn==="executing")throw new Error("Generator is already running");if(Kn==="completed"){if(Jn==="throw")throw ft;return cn()}for(qn.method=Jn,qn.arg=ft;;){var Ue=qn.delegate;if(Ue){var ia=oe(Ue,qn);if(ia){if(ia===d)continue;return ia}}if(qn.method==="next")qn.sent=qn._sent=qn.arg;else if(qn.method==="throw"){if(Kn==="suspendedStart")throw Kn="completed",qn.arg;qn.dispatchException(qn.arg)}else qn.method==="return"&&qn.abrupt("return",qn.arg);Kn="executing";var Ta=R(ra,Bn,qn);if(Ta.type==="normal"){if(Kn=qn.done?"completed":"suspendedYield",Ta.arg===d)continue;return{value:Ta.arg,done:qn.done}}Ta.type==="throw"&&(Kn="completed",qn.method="throw",qn.arg=Ta.arg)}}}(ce,je,Cn),en}function R(ce,le,je){try{return{type:"normal",arg:ce.call(le,je)}}catch(Ce){return{type:"throw",arg:Ce}}}e.wrap=s;var d={};function y(){}function I(){}function b(){}var S={};l(S,o,function(){return this});var L=Object.getPrototypeOf,O=L&&L(L(an([])));O&&O!==n&&a.call(O,o)&&(S=O);var $=b.prototype=y.prototype=Object.create(S);function z(ce){["next","throw","return"].forEach(function(le){l(ce,le,function(je){return this._invoke(le,je)})})}function X(ce,le){function je(He,en,Cn,ra){var Bn=R(ce[He],ce,en);if(Bn.type!=="throw"){var qn=Bn.arg,Kn=qn.value;return Kn&&eo(Kn)=="object"&&a.call(Kn,"__await")?le.resolve(Kn.__await).then(function(Jn){je("next",Jn,Cn,ra)},function(Jn){je("throw",Jn,Cn,ra)}):le.resolve(Kn).then(function(Jn){qn.value=Jn,Cn(qn)},function(Jn){return je("throw",Jn,Cn,ra)})}ra(Bn.arg)}var Ce;this._invoke=function(He,en){function Cn(){return new le(function(ra,Bn){je(He,en,ra,Bn)})}return Ce=Ce?Ce.then(Cn,Cn):Cn()}}function oe(ce,le){var je=ce.iterator[le.method];if(je===void 0){if(le.delegate=null,le.method==="throw"){if(ce.iterator.return&&(le.method="return",le.arg=void 0,oe(ce,le),le.method==="throw"))return d;le.method="throw",le.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var Ce=R(je,ce.iterator,le.arg);if(Ce.type==="throw")return le.method="throw",le.arg=Ce.arg,le.delegate=null,d;var He=Ce.arg;return He?He.done?(le[ce.resultName]=He.value,le.next=ce.nextLoc,le.method!=="return"&&(le.method="next",le.arg=void 0),le.delegate=null,d):He:(le.method="throw",le.arg=new TypeError("iterator result is not an object"),le.delegate=null,d)}function te(ce){var le={tryLoc:ce[0]};1 in ce&&(le.catchLoc=ce[1]),2 in ce&&(le.finallyLoc=ce[2],le.afterLoc=ce[3]),this.tryEntries.push(le)}function ve(ce){var le=ce.completion||{};le.type="normal",delete le.arg,ce.completion=le}function we(ce){this.tryEntries=[{tryLoc:"root"}],ce.forEach(te,this),this.reset(!0)}function an(ce){if(ce){var le=ce[o];if(le)return le.call(ce);if(typeof ce.next=="function")return ce;if(!isNaN(ce.length)){var je=-1,Ce=function He(){for(;++je=0;--He){var en=this.tryEntries[He],Cn=en.completion;if(en.tryLoc==="root")return Ce("end");if(en.tryLoc<=this.prev){var ra=a.call(en,"catchLoc"),Bn=a.call(en,"finallyLoc");if(ra&&Bn){if(this.prev=0;--Ce){var He=this.tryEntries[Ce];if(He.tryLoc<=this.prev&&a.call(He,"finallyLoc")&&this.prev=0;--je){var Ce=this.tryEntries[je];if(Ce.finallyLoc===le)return this.complete(Ce.completion,Ce.afterLoc),ve(Ce),d}},catch:function(le){for(var je=this.tryEntries.length-1;je>=0;--je){var Ce=this.tryEntries[je];if(Ce.tryLoc===le){var He=Ce.completion;if(He.type==="throw"){var en=He.arg;ve(Ce)}return en}}throw new Error("illegal catch attempt")},delegateYield:function(le,je,Ce){return this.delegate={iterator:an(le),resultName:je,nextLoc:Ce},this.method==="next"&&(this.arg=void 0),d}},e}function zB(e,n,a,t,o,u,i){try{var l=e[u](i),s=l.value}catch(R){a(R);return}l.done?n(s):Promise.resolve(s).then(t,o)}function AG(e){return function(){var n=this,a=arguments;return new Promise(function(t,o){var u=e.apply(n,a);function i(s){zB(u,t,o,i,l,"next",s)}function l(s){zB(u,t,o,i,l,"throw",s)}i(void 0)})}}$a();var VB=["measure","alignPre","align",null,"motion"],QB=function(e,n){var a=Cs(null),t=At(a,2),o=t[0],u=t[1],i=it();function l(d){u(d,!0)}function s(){Si.cancel(i.current)}function R(d){s(),i.current=Si(function(){l(function(y){switch(o){case"align":return"motion";case"motion":return"stable";default:}return y}),d==null||d()})}return Gt(function(){l("measure")},[e]),Gt(function(){switch(o){case"measure":n();break;default:}o&&(i.current=Si(AG(Ah().mark(function d(){var y,I;return Ah().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:y=VB.indexOf(o),I=VB[y+1],I&&y!==-1&&l(I);case 3:case"end":return S.stop()}},d)}))))},[o]),Gt(function(){return function(){s()}},[]),[o,R]};$a();var KB=function(e){var n=Pl({width:0,height:0}),a=At(n,2),t=a[0],o=a[1];function u(l){o({width:l.offsetWidth,height:l.offsetHeight})}var i=Cm(function(){var l={};if(e){var s=t.width,R=t.height;e.indexOf("height")!==-1&&R?l.height=R:e.indexOf("minHeight")!==-1&&R&&(l.minHeight=R),e.indexOf("width")!==-1&&s?l.width=s:e.indexOf("minWidth")!==-1&&s&&(l.minWidth=s)}return l},[e,t]);return[i,u]};var XB=gi(function(e,n){var a=e.visible,t=e.prefixCls,o=e.className,u=e.style,i=e.children,l=e.zIndex,s=e.stretch,R=e.destroyPopupOnHide,d=e.forceRender,y=e.align,I=e.point,b=e.getRootDomNode,S=e.getClassNameFromAlign,L=e.onAlign,O=e.onMouseEnter,$=e.onMouseLeave,z=e.onMouseDown,X=e.onTouchStart,oe=e.onClick,te=it(),ve=it(),we=Pl(),an=At(we,2),cn=an[0],ce=an[1],le=KB(s),je=At(le,2),Ce=je[0],He=je[1];function en(){s&&He(b())}var Cn=QB(a,en),ra=At(Cn,2),Bn=ra[0],qn=ra[1],Kn=Pl(0),Jn=At(Kn,2),ft=Jn[0],Ue=Jn[1],ia=it();MG(function(){Bn==="alignPre"&&Ue(0)},[Bn]);function Ta(){return I||b}function In(){var sn;(sn=te.current)===null||sn===void 0||sn.forceAlign()}function gn(sn,la){var Et=S(la);cn!==Et&&ce(Et),Ue(function(Da){return Da+1}),Bn==="align"&&(L==null||L(sn,la))}MG(function(){Bn==="align"&&(ft<2?In():qn(function(){var sn;(sn=ia.current)===null||sn===void 0||sn.call(ia)}))},[ft]);var We=ba({},$w(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(sn){var la=We[sn];We[sn]=function(Et,Da){return qn(),la==null?void 0:la(Et,Da)}});function na(){return new Promise(function(sn){ia.current=sn})}Gt(function(){!We.motionName&&Bn==="motion"&&qn()},[We.motionName,Bn]),rs(n,function(){return{forceAlign:In,getElement:function(){return ve.current}}});var fa=ba(ba({},Ce),{},{zIndex:l,opacity:Bn==="motion"||Bn==="stable"||!a?void 0:0,pointerEvents:!a&&Bn!=="stable"?"none":void 0},u),La=!0;(y==null?void 0:y.points)&&(Bn==="align"||Bn==="stable")&&(La=!1);var _t=i;return Uf.count(i)>1&&(_t=vt("div",{className:"".concat(t,"-content")},i)),vt(Ip,ho({visible:a,ref:ve,leavedClassName:"".concat(t,"-hidden")},We,{onAppearPrepare:na,onEnterPrepare:na,removeOnLeave:R,forceRender:d}),function(sn,la){var Et=sn.className,Da=sn.style,ot=(0,YB.default)(t,o,cn,Et);return vt($B,{target:Ta(),key:"popup",ref:te,monitorWindowResize:!0,disabled:La,align:y,onAlign:gn},vt("div",{ref:la,className:ot,onMouseEnter:O,onMouseLeave:$,onMouseDownCapture:z,onTouchStartCapture:X,onClick:oe,style:ba(ba({},Da),fa)},_t))})});XB.displayName="PopupInner";var ZB=XB;$a();var eH=Fu(R_()),nH=gi(function(e,n){var a=e.prefixCls,t=e.visible,o=e.zIndex,u=e.children,i=e.mobile;i=i===void 0?{}:i;var l=i.popupClassName,s=i.popupStyle,R=i.popupMotion,d=R===void 0?{}:R,y=i.popupRender,I=e.onClick,b=it();rs(n,function(){return{forceAlign:function(){},getElement:function(){return b.current}}});var S=ba({zIndex:o},s),L=u;return Uf.count(u)>1&&(L=vt("div",{className:"".concat(a,"-content")},u)),y&&(L=y(L)),vt(Ip,ho({visible:t,ref:b,removeOnLeave:!0},d),function(O,$){var z=O.className,X=O.style,oe=(0,eH.default)(a,l,z);return vt("div",{ref:$,className:oe,onClick:I,style:ba(ba({},X),S)},L)})});nH.displayName="MobilePopupInner";var aH=nH;var Xhe=["visible","mobile"],tH=gi(function(e,n){var a=e.visible,t=e.mobile,o=xv(e,Xhe),u=Pl(a),i=At(u,2),l=i[0],s=i[1],R=Pl(!1),d=At(R,2),y=d[0],I=d[1],b=ba(ba({},o),{},{visible:l});Gt(function(){s(a),a&&t&&I(D6())},[a,t]);var S=y?vt(aH,ho({},b,{mobile:t,ref:n})):vt(ZB,ho({},b,{ref:n}));return vt("div",null,vt(XF,b),S)});tH.displayName="Popup";var rH=tH;$a();var Zhe=ST(null),LG=Zhe;function PG(){}function eDe(){return""}function nDe(e){return e?e.ownerDocument:window.document}var aDe=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function tDe(e){var n=function(a){h_(o,a);var t=D_(o);function o(u){var i;d_(this,o),i=t.call(this,u),i.popupRef=NR(),i.triggerRef=NR(),i.portalContainer=void 0,i.attachId=void 0,i.clickOutsideHandler=void 0,i.touchOutsideHandler=void 0,i.contextMenuOutsideHandler1=void 0,i.contextMenuOutsideHandler2=void 0,i.mouseDownTimeout=void 0,i.focusTime=void 0,i.preClickTime=void 0,i.preTouchTime=void 0,i.delayTimer=void 0,i.hasPopupMouseDown=void 0,i.onMouseEnter=function(s){var R=i.props.mouseEnterDelay;i.fireEvents("onMouseEnter",s),i.delaySetPopupVisible(!0,R,R?null:s)},i.onMouseMove=function(s){i.fireEvents("onMouseMove",s),i.setPoint(s)},i.onMouseLeave=function(s){i.fireEvents("onMouseLeave",s),i.delaySetPopupVisible(!1,i.props.mouseLeaveDelay)},i.onPopupMouseEnter=function(){i.clearDelayTimer()},i.onPopupMouseLeave=function(s){var R;s.relatedTarget&&!s.relatedTarget.setTimeout&&g_((R=i.popupRef.current)===null||R===void 0?void 0:R.getElement(),s.relatedTarget)||i.delaySetPopupVisible(!1,i.props.mouseLeaveDelay)},i.onFocus=function(s){i.fireEvents("onFocus",s),i.clearDelayTimer(),i.isFocusToShow()&&(i.focusTime=Date.now(),i.delaySetPopupVisible(!0,i.props.focusDelay))},i.onMouseDown=function(s){i.fireEvents("onMouseDown",s),i.preClickTime=Date.now()},i.onTouchStart=function(s){i.fireEvents("onTouchStart",s),i.preTouchTime=Date.now()},i.onBlur=function(s){i.fireEvents("onBlur",s),i.clearDelayTimer(),i.isBlurToHide()&&i.delaySetPopupVisible(!1,i.props.blurDelay)},i.onContextMenu=function(s){s.preventDefault(),i.fireEvents("onContextMenu",s),i.setPopupVisible(!0,s)},i.onContextMenuClose=function(){i.isContextMenuToShow()&&i.close()},i.onClick=function(s){if(i.fireEvents("onClick",s),i.focusTime){var R;if(i.preClickTime&&i.preTouchTime?R=Math.min(i.preClickTime,i.preTouchTime):i.preClickTime?R=i.preClickTime:i.preTouchTime&&(R=i.preTouchTime),Math.abs(R-i.focusTime)<20)return;i.focusTime=0}i.preClickTime=0,i.preTouchTime=0,i.isClickToShow()&&(i.isClickToHide()||i.isBlurToHide())&&s&&s.preventDefault&&s.preventDefault();var d=!i.state.popupVisible;(i.isClickToHide()&&!d||d&&i.isClickToShow())&&i.setPopupVisible(!i.state.popupVisible,s)},i.onPopupMouseDown=function(){if(i.hasPopupMouseDown=!0,clearTimeout(i.mouseDownTimeout),i.mouseDownTimeout=window.setTimeout(function(){i.hasPopupMouseDown=!1},0),i.context){var s;(s=i.context).onPopupMouseDown.apply(s,arguments)}},i.onDocumentClick=function(s){if(!(i.props.mask&&!i.props.maskClosable)){var R=s.target,d=i.getRootDomNode(),y=i.getPopupDomNode();(!g_(d,R)||i.isContextMenuOnly())&&!g_(y,R)&&!i.hasPopupMouseDown&&i.close()}},i.getRootDomNode=function(){var s=i.props.getTriggerDOMNode;if(s)return s(i.triggerRef.current);try{var R=ph(i.triggerRef.current);if(R)return R}catch{}return Ri.findDOMNode(fh(i))},i.getPopupClassNameFromAlign=function(s){var R=[],d=i.props,y=d.popupPlacement,I=d.builtinPlacements,b=d.prefixCls,S=d.alignPoint,L=d.getPopupClassNameFromAlign;return y&&I&&R.push(h6(I,b,s,S)),L&&R.push(L(s)),R.join(" ")},i.getComponent=function(){var s=i.props,R=s.prefixCls,d=s.destroyPopupOnHide,y=s.popupClassName,I=s.onPopupAlign,b=s.popupMotion,S=s.popupAnimation,L=s.popupTransitionName,O=s.popupStyle,$=s.mask,z=s.maskAnimation,X=s.maskTransitionName,oe=s.maskMotion,te=s.zIndex,ve=s.popup,we=s.stretch,an=s.alignPoint,cn=s.mobile,ce=s.forceRender,le=s.onPopupClick,je=i.state,Ce=je.popupVisible,He=je.point,en=i.getPopupAlign(),Cn={};return i.isMouseEnterToShow()&&(Cn.onMouseEnter=i.onPopupMouseEnter),i.isMouseLeaveToHide()&&(Cn.onMouseLeave=i.onPopupMouseLeave),Cn.onMouseDown=i.onPopupMouseDown,Cn.onTouchStart=i.onPopupMouseDown,vt(rH,ho({prefixCls:R,destroyPopupOnHide:d,visible:Ce,point:an&&He,className:y,align:en,onAlign:I,animation:S,getClassNameFromAlign:i.getPopupClassNameFromAlign},Cn,{stretch:we,getRootDomNode:i.getRootDomNode,style:O,mask:$,zIndex:te,transitionName:L,maskAnimation:z,maskTransitionName:X,maskMotion:oe,ref:i.popupRef,motion:b,mobile:cn,forceRender:ce,onClick:le}),typeof ve=="function"?ve():ve)},i.attachParent=function(s){Si.cancel(i.attachId);var R=i.props,d=R.getPopupContainer,y=R.getDocument,I=i.getRootDomNode(),b;d?(I||d.length===0)&&(b=d(I)):b=y(i.getRootDomNode()).body,b?b.appendChild(s):i.attachId=Si(function(){i.attachParent(s)})},i.getContainer=function(){if(!i.portalContainer){var s=i.props.getDocument,R=s(i.getRootDomNode()).createElement("div");R.style.position="absolute",R.style.top="0",R.style.left="0",R.style.width="100%",i.portalContainer=R}return i.attachParent(i.portalContainer),i.portalContainer},i.setPoint=function(s){var R=i.props.alignPoint;!R||!s||i.setState({point:{pageX:s.pageX,pageY:s.pageY}})},i.handlePortalUpdate=function(){i.state.prevPopupVisible!==i.state.popupVisible&&i.props.afterPopupVisibleChange(i.state.popupVisible)},i.triggerContextValue={onPopupMouseDown:i.onPopupMouseDown};var l;return"popupVisible"in u?l=!!u.popupVisible:l=!!u.defaultPopupVisible,i.state={prevPopupVisible:l,popupVisible:l},aDe.forEach(function(s){i["fire".concat(s)]=function(R){i.fireEvents(s,R)}}),i}return m_(o,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var i=this.props,l=this.state;if(l.popupVisible){var s;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(s=i.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Nv(s,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(s=s||i.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Nv(s,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(s=s||i.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Nv(s,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Nv(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Si.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var i;return((i=this.popupRef.current)===null||i===void 0?void 0:i.getElement())||null}},{key:"getPopupAlign",value:function(){var i=this.props,l=i.popupPlacement,s=i.popupAlign,R=i.builtinPlacements;return l&&R?m6(R,l,s):s}},{key:"setPopupVisible",value:function(i,l){var s=this.props.alignPoint,R=this.state.popupVisible;this.clearDelayTimer(),R!==i&&("popupVisible"in this.props||this.setState({popupVisible:i,prevPopupVisible:R}),this.props.onPopupVisibleChange(i)),s&&l&&i&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(i,l,s){var R=this,d=l*1e3;if(this.clearDelayTimer(),d){var y=s?{pageX:s.pageX,pageY:s.pageY}:null;this.delayTimer=window.setTimeout(function(){R.setPopupVisible(i,y),R.clearDelayTimer()},d)}else this.setPopupVisible(i,s)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(i){var l=this.props.children.props,s=this.props;return l[i]&&s[i]?this["fire".concat(i)]:l[i]||s[i]}},{key:"isClickToShow",value:function(){var i=this.props,l=i.action,s=i.showAction;return l.indexOf("click")!==-1||s.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var i=this.props.action;return i==="contextMenu"||i.length===1&&i[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var i=this.props,l=i.action,s=i.showAction;return l.indexOf("contextMenu")!==-1||s.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var i=this.props,l=i.action,s=i.hideAction;return l.indexOf("click")!==-1||s.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var i=this.props,l=i.action,s=i.showAction;return l.indexOf("hover")!==-1||s.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var i=this.props,l=i.action,s=i.hideAction;return l.indexOf("hover")!==-1||s.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var i=this.props,l=i.action,s=i.showAction;return l.indexOf("focus")!==-1||s.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var i=this.props,l=i.action,s=i.hideAction;return l.indexOf("focus")!==-1||s.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var i;(i=this.popupRef.current)===null||i===void 0||i.forceAlign()}}},{key:"fireEvents",value:function(i,l){var s=this.props.children.props[i];s&&s(l);var R=this.props[i];R&&R(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var i=this.state.popupVisible,l=this.props,s=l.children,R=l.forceRender,d=l.alignPoint,y=l.className,I=l.autoDestroy,b=Uf.only(s),S={key:"trigger"};this.isContextMenuToShow()?S.onContextMenu=this.onContextMenu:S.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(S.onClick=this.onClick,S.onMouseDown=this.onMouseDown,S.onTouchStart=this.onTouchStart):(S.onClick=this.createTwoChains("onClick"),S.onMouseDown=this.createTwoChains("onMouseDown"),S.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(S.onMouseEnter=this.onMouseEnter,d&&(S.onMouseMove=this.onMouseMove)):S.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?S.onMouseLeave=this.onMouseLeave:S.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(S.onFocus=this.onFocus,S.onBlur=this.onBlur):(S.onFocus=this.createTwoChains("onFocus"),S.onBlur=this.createTwoChains("onBlur"));var L=(0,oH.default)(b&&b.props&&b.props.className,y);L&&(S.className=L);var O=ba({},S);Aw(b)&&(O.ref=Mw(this.triggerRef,b.ref));var $=Im(b,O),z;return(i||this.popupRef.current||R)&&(z=vt(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!i&&I&&(z=null),vt(LG.Provider,{value:this.triggerContextValue},$,z)}}],[{key:"getDerivedStateFromProps",value:function(i,l){var s=i.popupVisible,R={};return s!==void 0&&l.popupVisible!==s&&(R.popupVisible=s,R.prevPopupVisible=l.popupVisible),R}}]),o}(kf);return n.contextType=LG,n.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:eDe,getDocument:nDe,onPopupVisibleChange:PG,afterPopupVisibleChange:PG,onPopupAlign:PG,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},n}var uH=tDe(d6);var ml={adjustX:1,adjustY:1},hl=[0,0],iH={left:{points:["cr","cl"],overflow:ml,offset:[-4,0],targetOffset:hl},right:{points:["cl","cr"],overflow:ml,offset:[4,0],targetOffset:hl},top:{points:["bc","tc"],overflow:ml,offset:[0,-4],targetOffset:hl},bottom:{points:["tc","bc"],overflow:ml,offset:[0,4],targetOffset:hl},topLeft:{points:["bl","tl"],overflow:ml,offset:[0,-4],targetOffset:hl},leftTop:{points:["tr","tl"],overflow:ml,offset:[-4,0],targetOffset:hl},topRight:{points:["br","tr"],overflow:ml,offset:[0,-4],targetOffset:hl},rightTop:{points:["tl","tr"],overflow:ml,offset:[4,0],targetOffset:hl},bottomRight:{points:["tr","br"],overflow:ml,offset:[0,4],targetOffset:hl},rightBottom:{points:["bl","br"],overflow:ml,offset:[4,0],targetOffset:hl},bottomLeft:{points:["tl","bl"],overflow:ml,offset:[0,4],targetOffset:hl},leftBottom:{points:["br","bl"],overflow:ml,offset:[-4,0],targetOffset:hl}};$a();var lH=Fu(R_());function cb(e){var n=e.showArrow,a=e.arrowContent,t=e.children,o=e.prefixCls,u=e.id,i=e.overlayInnerStyle,l=e.className,s=e.style;return vt("div",{className:(0,lH.default)("".concat(o,"-content"),l),style:s},n!==!1&&vt("div",{className:"".concat(o,"-arrow"),key:"arrow"},a),vt("div",{className:"".concat(o,"-inner"),id:u,role:"tooltip",style:i},typeof t=="function"?t():t))}var rDe=function(n,a){var t=n.overlayClassName,o=n.trigger,u=o===void 0?["hover"]:o,i=n.mouseEnterDelay,l=i===void 0?0:i,s=n.mouseLeaveDelay,R=s===void 0?.1:s,d=n.overlayStyle,y=n.prefixCls,I=y===void 0?"rc-tooltip":y,b=n.children,S=n.onVisibleChange,L=n.afterVisibleChange,O=n.transitionName,$=n.animation,z=n.motion,X=n.placement,oe=X===void 0?"right":X,te=n.align,ve=te===void 0?{}:te,we=n.destroyTooltipOnHide,an=we===void 0?!1:we,cn=n.defaultVisible,ce=n.getTooltipContainer,le=n.overlayInnerStyle,je=n.arrowContent,Ce=n.overlay,He=n.id,en=n.showArrow,Cn=xv(n,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),ra=it(null);rs(a,function(){return ra.current});var Bn=ba({},Cn);"visible"in n&&(Bn.popupVisible=n.visible);var qn=function(){return vt(cb,{showArrow:en,arrowContent:je,key:"content",prefixCls:I,id:He,overlayInnerStyle:le},Ce)},Kn=!1,Jn=!1;if(typeof an=="boolean")Kn=an;else if(an&&eo(an)==="object"){var ft=an.keepParent;Kn=ft===!0,Jn=ft===!1}return vt(uH,ho({popupClassName:t,prefixCls:I,popup:qn,action:u,builtinPlacements:iH,popupPlacement:oe,ref:ra,popupAlign:ve,getPopupContainer:ce,onPopupVisibleChange:S,afterPopupVisibleChange:L,popupTransitionName:O,popupAnimation:$,popupMotion:z,defaultPopupVisible:cn,destroyPopupOnHide:Kn,autoDestroy:Jn,mouseLeaveDelay:R,popupStyle:d,mouseEnterDelay:l},Bn),b)},cH=gi(rDe);var sH=cH;var fH=e=>ka.createElement(sH,Object.assign({},e,{overlayClassName:`cv-tooltip ${e.overlayClassName}`,getTooltipContainer:e.tooltipContainerSelector?()=>document.querySelector(e.tooltipContainerSelector)||document.body:void 0}));if(typeof window!="undefined"&&typeof global=="undefined")try{Promise.resolve().then(()=>Fu(vH())).then(e=>{let n=e.default,a=document.createElement("style");a.type="text/css",a.appendChild(document.createTextNode(n)),document.head.appendChild(a)})}catch(e){window.Sentry&&window.Sentry.captureException(e)}$a();var _H=class extends ka.Component{componentDidUpdate(n){this.props.componentDidUpdate(n.deps)}render(){return this.props.children}},pH=_H;var uDe=yt();var dH=function(e){return"ref:"+ar(e)(et.value)},mH=function(e){var n=dH(e);return function(a){return uDe(uc(n)(a))}},hH=function(e){var n=dH(e);return function(a){return mR(n)(a)}};var iDe=is(),DH=rn(Qe)($n),gH=J(Rn),lDe=al(zR(el)),RH={reflectSymbol:function(){return"deps"}},cDe=mH(RH),sDe=hH(RH),vDe=pn(dn);var fDe=function(e){var n=iDe(e);return function(){return function(){return n(pH)}}},_De=fDe(ze)()(),pDe=function(e){var n=Uo(e);return function(a){return function(t){return function(o){return function(u){return Rp(a)(function(i){return t({init:DH(za(u(o)))(function(){return gH(o)}),update:function(l){return function(s){return DH(za(u(s)))(function(){return gH(s)})}},view:function(l){return function(s){return _De({componentDidUpdate:lDe(s)(function(R){var d=n(cDe(R))(o);return d?new T(o):M.value}),deps:sDe(o)})(i(ge))}}})})}}}}};var yH=function(e){var n=pDe(e);return function(a){return function(t){return n("UseEffectPrime")(vDe)(a)(t)}}};var mDe=is();var wH="click";var sb="top",xp=function(e){var n=mDe(e);return function(){return function(){return n(fH)}}};var bH="right";var EH=e=>()=>e.preventDefault&&e.preventDefault();var xG=function(){return EH};var hDe=Sa();var NG=Z(nn),jG=bt(hDe(B({reflectSymbol:function(){return"value"}})(pe)(on))),OG=J(oa);var vb=function(e){return Je("")(NG(jG(so(e.target)))(function(n){return OG(n.value)}))},UG=function(e){return Je("")(NG(jG(so(e.target)))(function(n){return OG(n.value)}))},Fs=function(e){return Je("")(NG(jG(so(e.target)))(function(n){return OG(n.value)}))};var IH="/network/connections";var TH=15;var DDe=xp(ze)()(),gDe=Ba(me),RDe=function(){return"You\u2019ve hit the "+(ne(Ye)(TH)+`-connection limit, designed to encourage you to focus on building meaningful connections that lead to impactful opportunities. Remove an existing connection to make space for a new one that aligns with your goals. `)}(),yDe=Vo(ze)("text-decoration-underline")(Mt(Y)()()("text-dark")({href:IH})("Manage my connections")),SH=function(e){return function(n){return DDe({placement:e,trigger:wH,overlay:gDe("")([Xe(RDe),yDe]),overlayStyle:rt({width:"15rem"}),overlayClassName:"t--connection-limit-tooltip"})(n)}};var CH=Z(nn),Np=function(e){var n=CH(e.guestPresenter)(function(a){if(a instanceof t_)return new T(a.value0);if(a instanceof Rs)return M.value;throw new Error("Failed pattern match at Livestream.Utils (line 21, column 31 - line 23, column 40): "+[a.constructor.name])});return CH(n)(function(a){return new T({name:a.school.name,id:a.school.id})})};var wDe=function(){function e(){}return e.value=new e,e}(),bDe=function(){function e(){}return e.value=new e,e}(),kG=function(){function e(){}return e.value=new e,e}(),EDe=function(){function e(){}return e.value=new e,e}(),IDe=function(){function e(){}return e.value=new e,e}(),TDe=function(){function e(){}return e.value=new e,e}(),FH=function(e){if(e instanceof wDe)return"account_settings_page";if(e instanceof bDe)return"preference_survey";if(e instanceof kG)return"livestream_registration";if(e instanceof EDe)return"chancing_wizard_network_step";if(e instanceof IDe)return"main_profile_page";if(e instanceof TDe)return"autopilot_acceptance_page";throw new Error("Failed pattern match at Profile.PublishContext (line 15, column 13 - line 21, column 57): "+[e.constructor.name])};var GDe=bc(yc),BG=ql(GDe),HG=Z(sa);var MDe=Vr(),GH=_e(ae);var MH=BG("profile_visibility_path")(function(e){return function(n){return HG(e({visibility:{publish_scope:eh(n)}}))(er)}}),AH=function(){return BG("profile_network_settings_path")(function(e){return function(n){return function(a){return HG(e({network_settings:{publish_scope:eh(a.publishScope),publish_context:FH(a.publishContext),automatic_accept_requests_for_school_list:a.autoAcceptForSchoolList,automatic_connection_requests_from_livestreams:a.autoRequestFromLivestreams,livestream:Fa(GH(cl(a.livestreamConference))(function(t){return{school_name:Fa(GH(Np(t))(function(o){return o.name})),title:t.title,id:t.id}}))}}))(er)}(MDe(n))}})},LH=BG("profile_name_path")(function(e){return function(n){return HG(e({name:n}))(er)}});var Ae=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),En=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var ADe=Wl(),LDe=Hr(Y),PDe=qt(Y),qG=Qt(Y),JG=Yu(Y),Uv=Te(me),jp=zn(Y)()(),WG=Br(hu),xDe=rn(Qe),$G=Zn(ga),E_=Te(ze),PH=wu()(),NDe=Rv(Y),jDe=Gl(wt),xH=fo()(),zG=Zn(vo),ODe=XR()(),NH=Te(Y),UDe=rj(me),VG=cj(Y),kDe=Ba(Y),BDe=xp(ze)()(),HDe=Qt(me),qDe=Mt(Y)()(),JDe=Qa(Y),I_=J(Rn),jH=xDe($n),WDe=_w(),Lh=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),OH=function(){function e(){}return e.value=new e,e}(),UH=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),kH=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),BH=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),HH=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Ph=function(){function e(){}return e.value=new e,e}(),QG=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),qH=function(e){return function(n){var a=function(R){return ADe({body:R,title:LDe("my-0")(function(){return e.stage instanceof fy?"Join the CollegeVine network":"Connect with "+e.schoolName}()),headerClass:"pb-0",onDismiss:n(new En(Ph.value)),size:ih.value})},t=p4(e.context),o=Se([PDe("mt-3")("Review your message before you send it"),qG("mt-2")(` Because this is your first message to the counselor, we want to make sure you\u2019re ready to send. `),JG("mt-4")("Your message"),Km(e.message),Uv("d-flex mt-4 justify-content-start")([jp("btn btn-primary btn-lg t--sem-user-connection-modal-confirm-message-"+t)({onClick:WG(function(){return n(new En(new QG({introMessage:e.message})))(),n(new Ae(new Lh(CS.value)))()})})("Send"),jp("btn btn-lg btn-outline-primary ml-3 text-nowrap")({onClick:$G(n)(new Ae(new Lh(Wm.value)))})("No, I need to edit something")])]),u=Se([Uv("text-center")([E_("")(PH("mt-4")({src:"/img/checkmate-icon.png",height:"80",width:"80"})),NDe("mt-4")("Connection request sent!"),qG("mx-md-4")(jDe(["You\u2019ve successfully demonstrated your interest to ",e.schoolName,". ","This counselor isn\u2019t part of the platform yet but we\u2019ve forwarded your message to them. ","You\u2019ll get an email notification when they respond."])),jp("btn btn-lg btn-outline-secondary mt-4")({onClick:$G(n)(new En(Ph.value))})("Close")])]),i=jp("btn btn-outline-secondary ml-3 t--sem-user-connection-modal-close-"+t)({onClick:$G(n)(new En(Ph.value))})("Cancel"),l=function(){var R=ES(e.message)&&function(){if(e.profile.fullName instanceof T)return!0;if(e.profile.fullName instanceof M)return!wi(e.firstName)&&!wi(e.lastName);throw new Error("Failed pattern match at Network.SemVine.InviteSchoolModal (line 240, column 15 - line 244, column 88): "+[e.profile.fullName.constructor.name])}(),d=function(){if(e.vineBelowConnectionLimit instanceof T&&e.vineBelowConnectionLimit.value0)return!1;if(e.vineBelowConnectionLimit instanceof T&&!e.vineBelowConnectionLimit.value0)return!0;if(e.vineBelowConnectionLimit instanceof M)return!1;throw new Error("Failed pattern match at Network.SemVine.InviteSchoolModal (line 233, column 13 - line 236, column 31): "+[e.vineBelowConnectionLimit.constructor.name])}();return Se([Ia(St(e.profile.fullName))(Se([JG("mt-md-4")("Your preferred name"),Uv("form-row mx-1")([xH("col form-control mr-2 t--sem-user-connection-modal-first-name-"+t)({type:"text",value:e.firstName,onChange:zG(n)(function(y){return Ae.create(BH.create(Fs(y)))}),placeholder:"First name"}),xH("col form-control ml-2 t--sem-user-connection-modal-last-name-"+t)({type:"text",value:e.lastName,onChange:zG(n)(function(y){return Ae.create(HH.create(Fs(y)))}),placeholder:"Last name"})])])),JG("mt-md-4")("Your message"),ODe("form-control t--sem-user-connection-modal-text-area-"+t)({rows:7,value:e.message,onChange:zG(n)(function(y){return Ae.create(kH.create(vb(y)))}),placeholder:`Sample introductory message: Hi Jane, My name is Sam and I\u2019m a senior at Oak Ridge High School in Oak Ridge, MD. I\u2019m really excited to apply for CV University this fall, and I\u2019m hoping to study history there. Are there any upcoming virtual events I can register for? I\u2019m excited to stay in touch and learn more about your school. Thanks! `}),E_("mt-2")(l4(e.message)),NH("mt-3 mt-md-4 small")("The ideal connection message should include:"),UDe("small")([VG("")("Your name, where you\u2019re from, and a bit about who you are"),VG("")("What you\u2019re interested in studying along with one or two insightful questions"),VG("")("That you\u2019re eager to connect with an admissions counselor and would love to stay in touch")]),Uv("d-flex mt-4 justify-content-start")([SH(sb)(E_("")(jp("btn btn-primary btn-lg t--sem-user-connection-modal-connect-"+t)({onClick:WG(function(){return function(){if(e.profile.fullName instanceof T)return ge;if(e.profile.fullName instanceof M)return n(new Ae(new UH({first:e.firstName,last:e.lastName})))();throw new Error("Failed pattern match at Network.SemVine.InviteSchoolModal (line 216, column 23 - line 220, column 113): "+[e.profile.fullName.constructor.name])}(),n(new Ae(new Lh(SS.value)))()}),disabled:!R||d,style:rt({pointerEvents:function(){return d?"none":"auto"}()})})("Connect"))),i])])}(),s=Uv("mx-md-7")([E_("border border-success rounded p-4 my-4")(Uv("row align-items-center")([E_("col-12 col-md-auto text-center text-md-left")(PH("img-fluid")({src:"/img/network/publish-profile-icon.png",height:"67",width:"143"})),E_("col text-center text-md-left")(kDe("fw-bold font-weight-bold text-gray-800")("Network with verified admissions counselors on CollegeVine"))])),Uv("d-flex flex-nowrap align-items-center")([NH("mr-4")("Publish your profile to join the CollegeVine Network"),BDe({placement:bH,overlay:HDe("")([Xe(` Your profile includes academics, extracurriculars, major interest, demographics and financial aid intent. By agreeing to publish, you will also be adding select preferences survey answers to `),qDe("")({href:kU})("your profile"),Xe(".")]),overlayStyle:rt({width:"15rem"})})(JDe("cursor-default text-secondary fe fe-info large")(""))]),qG("text-secondary small d-none d-md-block mt-4")("Joining the CollegeVine Network won\u2019t result in spam from colleges you don\u2019t want to hear from."),Uv("d-flex mt-4 justify-content-start justify-content-md-center")([jp("btn btn-primary t--sem-user-connection-modal-publish-profile-"+t)({onClick:WG(function(){return n(new Ae(OH.value))(),n(new Ae(new Lh(Wm.value)))()})})("Publish profile"),i])]);return E_("t--network-sem-user-modal")(function(){if(e.stage instanceof fy)return a(s);if(e.stage instanceof Wm)return a(l);if(e.stage instanceof SS)return a(o);if(e.stage instanceof CS)return a(u);throw new Error("Failed pattern match at Network.SemVine.InviteSchoolModal (line 98, column 5 - line 102, column 38): "+[e.stage.constructor.name])}())}},JH=function(e){return function(n){if(n instanceof Ae){if(n.value0 instanceof Lh)return I_({context:e.context,firstName:e.firstName,lastName:e.lastName,message:e.message,profile:e.profile,schoolName:e.schoolName,vineBelowConnectionLimit:e.vineBelowConnectionLimit,stage:n.value0.value0});if(n.value0 instanceof OH)return jH(za(MH(Ei.value)))(function(){return I_({context:e.context,firstName:e.firstName,lastName:e.lastName,message:e.message,schoolName:e.schoolName,stage:e.stage,vineBelowConnectionLimit:e.vineBelowConnectionLimit,profile:{fullName:e.profile.fullName,publishScope:Ei.value}})});if(n.value0 instanceof UH)return jH(za(LH(n.value0.value0)))(function(){return I_({context:e.context,firstName:e.firstName,lastName:e.lastName,message:e.message,schoolName:e.schoolName,stage:e.stage,vineBelowConnectionLimit:e.vineBelowConnectionLimit,profile:{publishScope:e.profile.publishScope,fullName:new T(IF(n.value0.value0))}})});if(n.value0 instanceof kH)return I_({context:e.context,firstName:e.firstName,lastName:e.lastName,profile:e.profile,schoolName:e.schoolName,stage:e.stage,vineBelowConnectionLimit:e.vineBelowConnectionLimit,message:n.value0.value0});if(n.value0 instanceof BH)return I_({context:e.context,lastName:e.lastName,message:e.message,profile:e.profile,schoolName:e.schoolName,stage:e.stage,vineBelowConnectionLimit:e.vineBelowConnectionLimit,firstName:n.value0.value0});if(n.value0 instanceof HH)return I_({context:e.context,firstName:e.firstName,message:e.message,profile:e.profile,schoolName:e.schoolName,stage:e.stage,vineBelowConnectionLimit:e.vineBelowConnectionLimit,lastName:n.value0.value0});throw new Error("Failed pattern match at Network.SemVine.InviteSchoolModal (line 81, column 31 - line 91, column 61): "+[n.value0.constructor.name])}if(n instanceof En)return I_(e);throw new Error("Failed pattern match at Network.SemVine.InviteSchoolModal (line 80, column 1 - line 80, column 55): "+[e.constructor.name,n.constructor.name])}},$De=function(e){var n=YU(e);return n?Wm.value:fy.value},WH=function(e){return{firstName:"",lastName:"",message:"",profile:WDe(e.profile),stage:$De(e.profile),schoolName:e.schoolName,context:e.context,vineBelowConnectionLimit:e.vineBelowConnectionLimit}};var fb=Re(Wt(Pt)),zDe=Vr(),KG=Te(ze),VDe=wu()(),YG=Ba(Y),QDe=Qa(Y),KDe=Pv(),YDe=ch(Qe)(),XDe=yn(Le),ZDe=or(ze)()(),ege=zn(me)()(),nge=Br(VR),age=xG(),tge=Ua($t),Op=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),xh=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),XG=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),ZG=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),$H=function(){function e(){}return e.value=new e,e}(),rge=function(){function e(){}return e.value=new e,e}(),oge={eq:function(e){return function(n){return e instanceof Op&&n instanceof Op?e.value0.url===n.value0.url:e instanceof xh&&n instanceof xh?fb(e.value0.backgroundColorClass)(n.value0.backgroundColorClass)&&e.value0.initials===n.value0.initials&&fb(e.value0.textColorClass)(n.value0.textColorClass):e instanceof XG&&n instanceof XG?fb(e.value0.backgroundColorClass)(n.value0.backgroundColorClass)&&e.value0.iconClass===n.value0.iconClass:e instanceof ZG&&n instanceof ZG?fb(e.value0.backgroundColorClass)(n.value0.backgroundColorClass)&&e.value0.name===n.value0.name:!1}}},uge=yH(oge),zH=function(){return function(e){var n=zDe(e),a=function(){var o=Ka(n.shape)($H.value);if(o instanceof $H)return"rounded-circle";if(o instanceof rge)return"rounded";throw new Error("Failed pattern match at Dashkit.Avatar (line 122, column 9 - line 124, column 37): "+[o.constructor.name])}(),t=function(o){return KG("avatar "+(zU(Ka(n.size)(Rw.value))+(" "+Ka(n.className)(""))))(function(){if(o instanceof Op)return VDe("avatar-img img-fluid "+(a+(" "+Ka(n.borderClassName)(""))))({src:o.value0.url});if(o instanceof xh)return YG("avatar-title font-weight-bold fw-bold "+(a+(" "+(Je("")(o.value0.backgroundColorClass)+(" "+(Je("")(o.value0.textColorClass)+(" "+Ka(n.borderClassName)(""))))))))(o.value0.initials);if(o instanceof XG)return KG("avatar-title "+(a+(" "+(Je("")(o.value0.backgroundColorClass)+(" "+Ka(n.borderClassName)(""))))))(QDe(o.value0.iconClass)(""));if(o instanceof ZG)return KG("avatar-title "+(a+(" "+(Je("")(o.value0.backgroundColorClass)+(" "+Ka(n.borderClassName)(""))))))(YG("material-symbol")(o.value0.name));throw new Error("Failed pattern match at Dashkit.Avatar (line 83, column 11 - line 119, column 46): "+[o.constructor.name])}())};return vw(KDe(Ts(n.source))(function(o){return YDe(uge(n.source)(function(u){return XDe(o.value1(u))}))(function(){return v_(Se([t(o.value0),function(){return o.value0 instanceof Op?da(cl(n.hideAvatar))(function(u){return ZDe("hq-only-menu-item")({style:rt({marginTop:"-50px",marginLeft:"200px"})})(ege("btn btn-sm btn-warning mb-4 t--hide-avatar")({onClick:nge(function(i){return function(){return age(i)(),tge(o.value1)(u)()}})})([YG("badge badge-info bg-info text-dark mr-2")("HQ"),Xe("Hide")]))}):Vn}()]))})}))}};var ige=zH();var VH=function(e){return function(n){return ige({source:function(){if(e.avatarUrl instanceof T)return new Op({url:e.avatarUrl.value0});if(e.avatarUrl instanceof M)return new xh({initials:e.initials,backgroundColorClass:M.value,textColorClass:M.value});throw new Error("Failed pattern match at Sem.Utils (line 18, column 15 - line 26, column 14): "+[e.avatarUrl.constructor.name])}(),size:n})}};var eM=U(ae),lge=tn(A2(of));var QH=function(e){var n=function(a){return Je("")(eM(Ou)(im(0)(a)))};return wv(function(){var a=Qo(" ")(e);return a.length===2?n(a[0])+n(a[1]):a.length===1?n(a[0]):a.length===0?"":Je("?")(lge(eM(n)(b0(a)))(eM(n)(Xd(a))))}())},KH=function(e){return e.firstName+(" "+e.lastName)};var nM=Hr(Y),cge=Mt(Y)()(),sge=Mt(me)()(),YH=Qa(Y),vge=zn(me)()(),fge=al(Dv(el)),_ge=_e(ae),pge=Z(nn),aM=Te(Y),_b=Te(me),XH=Te(ze),dge=km(Y),ZH=ls()(),mge=Yu(Y),hge=Qt(Y),Up=J(Rn),eq=rn(Qe),Dge=eq($n),gge=Ma(Le),Rge=eq(sa),yge=J(Xn),wge=ut(yr(Ga)),nq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Nh=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),aq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),tq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),rq=function(){var e=function(a){return function(t){return function(o){var u=nM("text-primary")(t.semUser.firstName+(" from "+(t.semUser.school.name+" sent you a connection request!"))),i=nM("text-primary")("Reach out to "+(t.semUser.firstName+" to ask a question or introduce yourself!")),l=[u,cge("btn btn-primary d-flex align-items-center w-50 justify-content-center t--livestream-details-view-pending-invitation-from-sem-user")({href:LF(new bp(t.semUser.id))})("View Message")],s=KH(t.semUser),R=QH(s),d=nM("text-primary")("Reach out to "+(t.semUser.firstName+" to ask a question!")),y=[d,sge("btn btn-primary d-flex align-items-center w-50 justify-content-center t--livestream-details-messages-link")({href:LF(new bp(t.semUser.id))})([YH("fe fe-message-square mr-2 large")(""),Xe("Send a message to "+t.semUser.firstName)])],I=function(L){return vge("btn btn-primary d-flex align-items-center justify-content-center t--livestream-details-connect-with-sem-user")({onClick:fge(o)(_ge(pge(a.currentUser)(function(O){return O.profile}))(aq.create)),disabled:L.isDisabled})([YH("fe fe-message-square mr-2 large")(""),Xe("Connect with "+t.semUser.firstName)])},b=[i,I({isDisabled:!1})],S=[i,I({isDisabled:!0}),aM("mt-4 text-secondary small")("Invitation pending")];return _b("t--livestream-details-guest-presenter-sem-user mb-4")([da(a.currentUser)(function(L){return Ia(L.hasAccessToNetwork&&t.semUser.school.allowedToContact)(XH("card")(_b("card-body")(function(){if(t.semUser.connection instanceof T&&t.semUser.connection.value0.status instanceof bv)return y;if(t.semUser.connection instanceof T&&t.semUser.connection.value0.status instanceof jl&&t.semUser.connection.value0.initiator instanceof ds||t.semUser.connection instanceof T&&t.semUser.connection.value0.status instanceof ms&&t.semUser.connection.value0.initiator instanceof ds)return S;if(t.semUser.connection instanceof T&&t.semUser.connection.value0.status instanceof jl&&t.semUser.connection.value0.initiator instanceof ps)return l;if(t.semUser.connection instanceof T&&t.semUser.connection.value0.status instanceof ms&&t.semUser.connection.value0.initiator instanceof ps||t.semUser.connection instanceof M)return b;throw new Error("Failed pattern match at Livestream.GuestPresenter.SemUser (line 97, column 17 - line 103, column 53): "+[t.semUser.connection.constructor.name])}())))}),dge("text-uppercase text-secondary")("Your guest presenter"),_b("row align-items-center mt-4")([XH("col-auto")(VH(ZH(t.semUser)({initials:R}))(gw.value)),_b("col")([mge("mb-1")(s),aM("text-secondary small")(t.semUser.school.name),aM("text-secondary small")(t.semUser.title)]),da(t.semUser.bio)(function(L){return hge("mt-4 mb-2 ml-2")(L)})]),da(t.modal)(function(L){return qH(L.value0)(function(O){return o(Nh.create(O))})})])}}},n=function(a){return function(t){return function(o){if(o instanceof Nh&&o.value0 instanceof En){if(o.value0.value0 instanceof Ph)return Up({currentUser:t.currentUser,semUser:t.semUser,vineBelowConnectionLimit:t.vineBelowConnectionLimit,modal:M.value});if(o.value0.value0 instanceof QG)return Dge(gge(Rge(t6(t.semUser.school.id)(t.semUser.id)({introMessage:o.value0.value0.value0.introMessage}))(function(){return yge(new tq({introMessage:o.value0.value0.value0.introMessage}))})))(function(){return Up(t)});throw new Error("Failed pattern match at Livestream.GuestPresenter.SemUser (line 53, column 55 - line 59, column 19): "+[o.value0.value0.constructor.name])}if(t.modal instanceof T&&o instanceof Nh&&o.value0 instanceof Ae)return wge(Nh.create)(function(u){return{currentUser:t.currentUser,semUser:t.semUser,vineBelowConnectionLimit:t.vineBelowConnectionLimit,modal:new T(new nq(u))}})(JH(t.modal.value0.value0)(new Ae(o.value0.value0)));if(o instanceof Nh&&o.value0 instanceof Ae)return Up(t);if(o instanceof aq)return Up({currentUser:t.currentUser,semUser:t.semUser,vineBelowConnectionLimit:t.vineBelowConnectionLimit,modal:new T(new nq(WH({schoolName:a.semUser.school.name,context:TS.value,profile:o.value0,vineBelowConnectionLimit:a.vineBelowConnectionLimit})))});if(o instanceof tq)return Up({currentUser:t.currentUser,modal:t.modal,vineBelowConnectionLimit:t.vineBelowConnectionLimit,semUser:{avatarUrl:t.semUser.avatarUrl,bio:t.semUser.bio,firstName:t.semUser.firstName,id:t.semUser.id,lastName:t.semUser.lastName,school:t.semUser.school,title:t.semUser.title,unreadMessageCountFromSemUser:t.semUser.unreadMessageCountFromSemUser,connection:new T({initiator:ds.value,introMessage:o.value0.introMessage,status:jl.value})}});throw new Error("Failed pattern match at Livestream.GuestPresenter.SemUser (line 52, column 5 - line 52, column 67): "+[a.constructor.name,t.constructor.name,o.constructor.name])}}};return hv("Livestream Guest Presenter SEM user")(function(a){return{init:Up(ZH(a)({modal:M.value})),view:e(a),update:n(a)}})}();var pb=function(){function e(){}return e.value=new e,e}(),oq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),uq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),iq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var bge=yt(),Ege=tn(jS),tM=function(e){var n=function(u){return bge(ff(u))},a=n(gs("[^a-z0-9\\-_]+")(Ege(ip)(hy))),t=n(gs("^-|-$")(ip)),o=n(gs("-{2,}")(ip));return zm(t)("")(zm(o)("-")(zm(a)("-")(zf(Hm(e)))))};var Sge=U(Ve),Cge=_e(Ve),jh=ne(Ye),rM=wa(),Fge=tn(Rt),Oh=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Gge=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Mge=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Age=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Uh=function(){function e(){}return e.value=new e,e}(),Lge=function(){function e(){}return e.value=new e,e}();var lq=function(e){var n=function(t){return t.key+("="+t.value)},a=function(t){return t.length===0?"":"?"+sr("&")(t)};return a(Sge(n)(e))};var cq=function(e){return Cge(e)(function(n){if(n instanceof Oh)return{key:"utm_cv_source",value:n.value0};if(n instanceof Gge)return{key:"utm_source",value:n.value0};if(n instanceof Mge)return{key:"utm_campaign",value:n.value0};if(n instanceof Age)return{key:"utm_content",value:n.value0};throw new Error("Failed pattern match at ServiceProviders.Retail.Urls (line 196, column 3 - line 204, column 36): "+[n.constructor.name])})};var db=function(e){return function(n){return function(a){var t=function(){if(e instanceof Uh)return"i";if(e instanceof Lge)return"o";throw new Error("Failed pattern match at ServiceProviders.Retail.Urls (line 112, column 12 - line 114, column 24): "+[e.constructor.name])}();return"/experts/profile/"+(t+("/"+(jh(n.id)+("-"+(tM(n.name)+lq(cq(a)))))))}}};var sq=function(e){return function(n){return function(a){var t=function(){if(n instanceof pb)return[];if(n instanceof oq)return[{key:"theme",value:jh(rM(n.value0))}];if(n instanceof uq)return[{key:"package",value:jh(rM(n.value0))}];if(n instanceof iq)return[{key:"packageOffer",value:jh(rM(n.value0))}];throw new Error("Failed pattern match at ServiceProviders.Retail.Urls (line 146, column 5 - line 154, column 71): "+[n.constructor.name])}(),o=Fge(t)(cq(a));return"/experts/advising/book/"+(jh(e.id)+("-"+(tM(e.name)+lq(o))))}}};var Pge=ne(Ye),xge=wa(),Nge=Ba(me),oM=Qa(Y),Gs=Te(me),vq=km(Y),jge=U(Ve),Oge=Mt(ze)()(),mb=Te(ze),Uge=tl()(),kge=Hr(Y),fq=Mt(me)()(),hb=Mt(Y)()(),_q=function(e){return function(n){var a=new Oh("sp-guest-presenter-card-from-conference-"+Pge(xge(e))),t=function(d){return Nge("badge badge-light bg-light text-dark mr-3")([oM("fe fe-tag mr-2")(""),Xe(d.name)])},o=db(Uh.value)(n.entity)([a]),u=function(d){return function(y){return Gs("mb-3")([vq("text-secondary text-uppercase mb-2")(d),y])}},i=Gs("mt-4")([da(fe(n.entity.shortEducation))(function(d){return u("Education")(Xe(d))}),u("Bio")(Km(n.entity.bio)),F8(fi(n.entity.tags))(u("Specialties")(Se(jge(t)(n.entity.tags))))]),l=Gs("row")([da(fe(n.entity.imageUrl))(function(d){return Oge("btn btn-link text-body p-0 m-0")({href:o,target:"_blank"})(mb("col-auto my-auto")(mb("avatar avatar-md")(Uge("avatar-img rounded-circle")({src:d}))))}),Gs("col-auto my-auto")([vq("text-uppercase text-secondary mb-2")("Advisor"),kge("m-0")(n.entity.name)]),Gs("col text-center text-md-right my-auto")([mb("d-none d-md-block")(fq("btn btn-sm btn-outline-primary t--open-message-modal")({href:o,target:"_blank"})([oM("fe fe-message-square mr-2")(""),Xe("Message")])),mb("d-block d-md-none")(fq("btn btn-sm btn-outline-primary t--open-message-modal")({href:o,target:"_blank"})([oM("fe fe-message-square mr-2")(""),Xe("Message")]))])]),s=sq(n.entity)(pb.value)([a]),R=da(n.advisingConfig)(function(d){return Gs("mt-4")([Gs("d-none d-md-block")([da(d.freeConsultationDurationMinutes)(function(y){return hb("btn btn-primary px-3 mr-3")({href:o,target:"_blank"})("Book a free consultation")}),hb("btn btn-outline-primary px-3 mr-3")({href:s,target:"_blank"})("Book a session")]),Gs("d-block d-md-none text-center")([da(d.freeConsultationDurationMinutes)(function(y){return hb("btn btn-primary mr-3")({href:o,target:"_blank"})("Book a free consultation")}),hb("btn btn-outline-primary")({href:s,target:"_blank"})("Book a session")])])});return Gs("mt-4 mt-md-0 t--service-provider-guest-presenter")([l,i,R])}};var kh=function(e){return function(n){return function(a){return function(t){if(n instanceof t_)return rq({semUser:n.value0,currentUser:a,vineBelowConnectionLimit:t.vineBelowConnectionLimit});if(n instanceof Rs)return _q(e)(n.value0);throw new Error("Failed pattern match at Livestream.GuestPresenter.GuestPresenter (line 16, column 1 - line 16, column 78): "+[e.constructor.name,n.constructor.name,a.constructor.name,t.constructor.name])}}}};var pq="/experts/essay-review";var Bge=Mt(me)()(),Hge=Qa(Y),kp=Te(Y),bu=Te(ze),Xo=Te(me),dq=Hr(Y),mq=tl()(),hq=_e(Ve),qge=Ba(Y),Dq=_e(ae),Jge=Qt(me),gq=Vo(Y),uM=Mt(Y)()(),Wge=ne(Ye),Bh=U(ae),$ge=ey(me)()(),zge=ne(ei),Hh=function(e){var n=function(a){return function(t){return Bge("mr-3")({href:t,target:"_blank"})([Xe(a),Hge("fe fe-external-link ml-1")("")])}};return Se([kp("text-uppercase text-muted small mb-2")("School information"),bu("card shadow-none")(Xo("card-body")([dq("mb-1")(e.name),kp("text-uppercase small text-secondary")(e.cityState),Xo("mt-3 d-none d-md-block")([n("Stats")(Dw(p_.value)(e.slug)),n("Cost")(Dw(vh.value)(e.slug)),n("Map")(Dw(p_.value)(e.slug))]),Xo("mt-3 d-md-none")([n("Stats")(bF(p_.value)(e.slug)),n("Cost")(bF(vh.value)(e.slug))])]))])},Vge=function(e){var n=function(i){return mq("avatar-img rounded-circle")({src:i})},a=sr(" ")(hq(Qo(" ")(e.fullName))(il(1))),t=qge("avatar-title rounded-circle text-uppercase")(a),o=function(i){return Je("")(Dq(i)(function(l){return" '"+l}))},u=function(i){return function(l){return Jge("")([gq("")(i+": "),Xe(l)])}};return Se([kp("text-uppercase text-muted small mb-2")("Your host"),Xo("row align-items-center mb-4 pr-4")([bu("col-auto")(bu("avatar")(bn(t)(n)(e.pictureUrl))),bu("col")(Xo("row align-items-center justify-content-between")([kp("col-12 col-md-auto x-large")(e.fullName),bu("col-12 col-md-auto")(da(e.allStreamsUrl)(function(i){return uM("t--host-streams")({href:i})("See all "+(Wge(e.totalStreams)+(" streams by "+e.firstName)))}))]))]),Se(Wo([Bh(u("Undergrad College"))(Dq(e.undergrad.college)(function(i){return i+o(e.undergrad.year)})),Bh(u("Major"))(e.undergrad.major),Bh(u("Graduate College"))(e.gradCollege),Bh(u("Work Experience"))(e.workExperience),Bh(u("My Admissions Story"))(e.admissionsStory)]))])},Qge=Xo("rounded bg-tan mb-3 overflow-hidden")([Xo("row")([bu("col-12 col-md")(Xo("m-4")([Yu(Y)("")("Get your essay reviewed by an expert"),Qt(Y)("small")(` CollegeVine\u2019s network of admissions experts have helped students write essays that stand out to admissions officers. Work with an expert today to craft the perfect essay. `),uM("btn btn-dark px-4")({href:s_({key:"utm_cv_source",value:"essay-livestream-cta"})(pq)})("Submit my essay for review")])),bu("d-none d-md-block col-12 col-md-auto")(wu()()("h-100")({src:"/img/livestreams/mkt-239-livestreams-advisors-essays-cta.svg"}))])]),Kge=function(e){return Se([kp("text-uppercase text-muted small mb-2")("Description"),Xo("")([bu("col-6 col-md-4 float-right")(mq("img-fluid rounded")({src:e.imageUrl})),Xo("")(hq(Qo(` `)(e.description))(function(n){return $ge("")({dangerouslySetInnerHTML:{__html:n}})([])}))])])},Yge=function(e){var n=e.paths.collegeFair+("?utm_cv_source=banner-livestream-watch-"+zge(e.conference.id));return bu("card mt-3")(bu("card-body py-3")(Xo("row align-items-center")([bu("col-12 col-md-auto mb-3 mb-md-0")(kp("bg-warning rounded px-3 py-1 small mt-2 mt-md-0")("SPECIAL EVENT")),Xo("col-12 col-md mb-3 mb-md-0")([Xe("This livestream was part of the "),gq("")("\u{1F3AA} Student panel college fair"),Xe(". Recordings for all 100+ Q&A panels are available.")]),bu("col-12 col-md-auto")(uM("btn btn-sm btn-outline-primary px-3")({href:n})("See all recordings"))])))},Db=function(e){var n=function(){if(e.conference.presenter instanceof T&&e.conference.guestPresenter instanceof T||e.conference.presenter instanceof T&&e.conference.guestPresenter instanceof M||e.conference.presenter instanceof M&&e.conference.guestPresenter instanceof T)return"col-12 col-md-6";if(e.conference.presenter instanceof M&&e.conference.guestPresenter instanceof M)return"col-12";throw new Error("Failed pattern match at Livestream.AboutLivestream (line 68, column 16 - line 72, column 35): "+[e.conference.presenter.constructor.name,e.conference.guestPresenter.constructor.name])}();return Se([Ia(e.conference.collegeFair)(Yge(e)),function(){return e.featureFlags.mkt293LivestreamsEssayReviewCtaForAdvisorStreams&&e.conference.guestPresenter instanceof T&&e.conference.guestPresenter.value0 instanceof Rs?Qge:Vn}(),bu("card")(Xo("card-body")([dq("text-center mb-4")("About this livestream"),Xo("row")([Xo(n)([da(e.conference.school)(function(a){return bu("d-md-none")(Hh(a))}),Kge(e.conference)]),Xo(n)([da(e.conference.guestPresenter)(function(a){return kh(e.conference.id)(a)(e.user)({vineBelowConnectionLimit:e.vineBelowConnectionLimit})}),da(e.conference.school)(function(a){return bu("d-none d-md-block")(Hh(a))}),da(e.conference.presenter)(Vge)])])]))])};var Rq=rn(Qe),Xge=Rq($n),Zge=Ma(Le),eRe=xt(xr),yq=J(Xn),gb=J(Rn),nRe=Rq(sa),Rb=J(oa),wq=Te(Y),yb=Yu(Y),wb=Z0(me),bb=K0(me),kv=$f(me),Dl=Y0(Y),Eb=X0(me),Ib=_e(Ve),Bv=cs(Y),Tb=cs(ze),Sb=zn(Y)()(),Cb=Zn(ga),aRe=qi(Ya),tRe=U(Ve),rRe=tn(Js(Js(Gg))),oRe=qi(Qu),uRe=qi(g7),iRe=ne(ei),lRe=qt(Y),cRe=Te(me),Fb=function(){function e(){}return e.value=new e,e}(),bq=function(){function e(){}return e.value=new e,e}(),qh=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Eq=function(){function e(){}return e.value=new e,e}(),Iq=function(){function e(){}return e.value=new e,e}(),Tq=function(e){return function(n){return function(a){var t=function(u){return Xge(Zge(eRe(u)(function(i){return yq(Iq.value)})))(function(){return gb({ctas:n.ctas,stage:bq.value,error:M.value})})},o=function(u){if(u instanceof vl)return $O({fromConference:e.conference.id,cta:u.value0.conferenceId});if(u instanceof fl)return JO({fromConference:e.conference.id,ctaId:u.value0.id});if(u instanceof _l)return WO({fromConference:e.conference.id,ctaId:u.value0.id});if(u instanceof pl)return qO({fromConference:e.conference.id,ctaId:u.value0.id});throw new Error("Failed pattern match at Livestream.Ctas.LaunchCtas (line 228, column 15 - line 236, column 83): "+[u.constructor.name])};if(a instanceof qh)return t(nRe(o(a.value0))(function(){return yq(Eq.value)}));if(a instanceof Eq)return gb({ctas:n.ctas,error:n.error,stage:Fb.value});if(a instanceof Iq)return gb({ctas:n.ctas,stage:Fb.value,error:new T("That didn't work for some reason, try again")});throw new Error("Failed pattern match at Livestream.Ctas.LaunchCtas (line 211, column 24 - line 221, column 92): "+[a.constructor.name])}}},Sq=function(e){return gb({stage:Fb.value,error:M.value,ctas:e})},sRe=function(){return Po($o(vn)([Ol.value,new ht(" "),Ul.value,new ht(", "),Bl.value,new ht(":"),bi.value,new ht(" "),Hl.value]))}(),Cq=function(e){return function(n){if(e.ctas.length===0)return Vn;var a=function(L){return L instanceof pl?Rb(L.value0):M.value},t=function(L){return L instanceof fl?Rb(L.value0):M.value},o=function(L){return L instanceof _l?Rb(L.value0):M.value},u=function(L){return L instanceof vl?Rb(L.value0):M.value},i=function(){if(e.stage instanceof Fb)return Vn;if(e.stage instanceof bq)return wq("position-absolute-fullsize d-flex align-items-center justify-content-center bg-semi-transparent-white")("Opening...");throw new Error("Failed pattern match at Livestream.Ctas.LaunchCtas (line 190, column 24 - line 195, column 23): "+[e.stage.constructor.name])}(),l=function(L){return L.length===0?Vn:Se([yb("")("Referrals"),wb("table table-sm mb-0")([bb("")([kv("")([Dl("")("Title"),Dl("")("Actions")])]),Eb("")(Ib(L)(function(O){return kv("t--cta t--cta-referral")([Bv("pt-3")(O.title),Tb("text-nowrap")(Sb("btn btn-white btn-sm px-4 t--open")({onClick:Cb(n)(new qh(new pl(O)))})("Launch CTA"))])}))])])},s=function(L){return L.length===0?Vn:Se([yb("")("General"),wb("table table-sm mb-0")([bb("")([kv("")([Dl("")("Title"),Dl("")("URL"),Dl("")("Link Text"),Dl("")("Actions")])]),Eb("")(Ib(Rf(aRe(function(O){return O.title}))(L))(function(O){return kv("t--cta t--cta-general")([Bv("pt-3")(function(){var $=Ct(O.autoDisplayMinutesFromStart);return $?"\u23F0 ":""}()+O.title),Bv("pt-3")(O.url),Bv("pt-3")(O.buttonText),Tb("text-nowrap")(Sb("btn btn-white btn-sm px-4 t--open")({onClick:Cb(n)(new qh(new fl(O)))})("Launch CTA"))])}))])])},R=function(L){return L.length===0?Vn:Se([yb("")("Featured Service Providers"),wb("table table-sm mb-0")([bb("")([kv("")([Dl("")("Advisors"),Dl("")("Link Text"),Dl("")("Actions")])]),Eb("")(Ib(L)(function(O){return kv("t--cta t--cta-featured-sp")([Bv("pt-3")(sr(", ")(tRe(function($){return $.name})(O.providers))),Bv("pt-3")(O.linkText),Tb("text-nowrap")(Sb("btn btn-white btn-sm px-4 t--open")({onClick:Cb(n)(new qh(new _l(O)))})("Launch CTA"))])}))])])},d=function(L){return L.length===0?Vn:Se([yb("")("Upcoming events"),wb("table table-sm mb-0")([bb("")([kv("")([Dl("")("Livestream"),Dl("")("Date & Time"),Dl("")("Actions")])]),Eb("")(Ib(Rf(rRe(oRe(function(O){return O.startTime}))(uRe(function(O){return O.conferenceId})))(L))(function(O){return kv("t--cta t--cta-stream-"+iRe(O.conferenceId))([Bv("pt-3")(O.title),Bv("pt-3")(sRe(O.startTime)+(" "+n_)),Tb("text-nowrap")(Sb("btn btn-white btn-sm px-4 t--open")({onClick:Cb(n)(new qh(new vl(O)))})("Launch CTA"))])}))])])},y=zr(a)(e.ctas),I=zr(t)(e.ctas),b=zr(o)(e.ctas),S=zr(u)(e.ctas);return Se([lRe("")("Calls to action"),cRe("t--ctas position-relative")([da(e.error)(function(L){return wq("alert alert-danger")(L)}),d(S),s(I),R(b),l(y),i])])}};var Fq=ql(bc(yc)),Gq=Z(sa),vRe=UC(pe),Bp=function(){function e(){}return e.value=new e,e}(),Jh=function(){function e(){}return e.value=new e,e}(),Wh=function(){function e(){}return e.value=new e,e}(),Mq={eq:function(e){return function(n){return e instanceof Bp&&n instanceof Bp||e instanceof Jh&&n instanceof Jh||e instanceof Wh&&n instanceof Wh}}},Aq=Fq("profile_validate_username_path")(function(e){return function(n){return Gq(e({username:n}))(wc(function(a){return vRe("username validation result")(a)(function(t){return t==="available"?new T(Bp.value):t==="taken"?new T(Jh.value):t==="invalid"?new T(Wh.value):M.value})}))}}),Lq=Fq("profile_set_username_path")(function(e){return function(n){return Gq(e({username:n}))(er)}});var fRe=Re(Wt(Fl()(Bi(Bi(Cl)()({reflectSymbol:function(){return"username"}})(Pt))()({reflectSymbol:function(){return"result"}})(Mq)))),iM=Te(me),Pq=Te(ze),_Re=Qt(Y),pRe=wu()(),$h=Te(Y),dRe=fo()(),mRe=Zn(vo),xq=zn(Y)()(),hRe=Zn(ga),DRe=al(Dv(el)),lM=rn(Qe)($n),gRe=lr(Rn),cM=Ma(Le),RRe=ii(Ga),T_=J(Rn),yRe=U(Ga),wRe=Z(sa),bRe=Sf(xr),Nq=J(Xn),jq=function(){function e(){}return e.value=new e,e}(),Oq=function(){function e(){}return e.value=new e,e}(),Uq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),kq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Bq=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),Hq=function(){function e(){}return e.value=new e,e}(),qq=function(){function e(){}return e.value=new e,e}(),sM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),vM=function(){function e(){}return e.value=new e,e}(),Jq=function(e){return function(n){var a=e.username!==""&&St(e.updating)&&fRe(e.validated)(new T({username:e.username,result:Bp.value}));return Se([iM("row")([Pq("col col-md-6")(_Re("")("This username will keep your identity private in CollegeVine communities, livestreams, and on peer essay review leaderboards.")),Pq("col-6 d-none d-md-block")(pRe("img-fluid")({src:"/img/illustrations/clipboards.svg"}))]),$h("")("Your username:"),iM("input-group")([dRe("form-control")({autoFocus:!0,type:"text",value:e.username,onChange:mRe(n)(function(t){return Ae.create(Uq.create(Fs(t)))})})]),iM("d-flex mt-3")([xq("btn btn-light mr-3")({onClick:hRe(n)(new En(vM.value))})("Cancel"),xq("btn btn-primary t--submit-username")({type:"button",disabled:!a,onClick:DRe(n)(function(){return a?new T(new Ae(Hq.value)):M.value}())})("Save")]),da(e.validated)(function(t){if(t.result instanceof Bp)return Vn;if(t.result instanceof Jh)return $h("small text-danger")("Sorry, this username is already taken");if(t.result instanceof Wh)return $h("small text-danger")("Usernames can only contain letters, numbers, or these symbols: _ - . with no spaces");throw new Error("Failed pattern match at Community.Profile.UsernameForm (line 80, column 37 - line 86, column 121): "+[t.result.constructor.name])}),da(e.updating)(function(t){if(t instanceof jq)return $h("text-success")("Updating your username...");if(t instanceof Oq)return $h("small text-danger")("There was an error saving your username. Please try again.");throw new Error("Failed pattern match at Community.Profile.UsernameForm (line 87, column 30 - line 91, column 95): "+[t.constructor.name])})])}},Wq=function(e){return function(n){if(n instanceof Ae){if(n.value0 instanceof Uq)return lM(gRe(n.value0.value0!=="")(cM(RRe(Xt(100))(new Ae(new kq(n.value0.value0))))))(function(){return T_({updating:e.updating,validated:e.validated,username:n.value0.value0})});if(n.value0 instanceof kq){if(n.value0.value0===e.username)return lM(cM(yRe(function(){var a=Bq.create(n.value0.value0);return function(t){return Ae.create(a(t))}}())(Aq(n.value0.value0))))(function(){return T_({username:e.username,validated:M.value,updating:M.value})});if(qe)return T_(e)}if(n.value0 instanceof Bq)return T_({updating:e.updating,username:e.username,validated:new T({username:n.value0.value0,result:n.value0.value1})});if(n.value0 instanceof Hq)return lM(cM(wRe(bRe(Lq(e.username)))(function(a){if(a instanceof Pe)return Nq(new En(new sM(e.username)));if(a instanceof Me)return Nq(new Ae(qq.value));throw new Error("Failed pattern match at Community.Profile.UsernameForm (line 119, column 7 - line 123, column 48): "+[a.constructor.name])})))(function(){return T_({username:e.username,validated:M.value,updating:new T(jq.value)})});if(n.value0 instanceof qq)return T_({username:e.username,validated:e.validated,updating:new T(Oq.value)});throw new Error("Failed pattern match at Community.Profile.UsernameForm (line 100, column 31 - line 127, column 48): "+[n.value0.constructor.name])}if(n instanceof En)return T_(e);throw new Error("Failed pattern match at Community.Profile.UsernameForm (line 99, column 1 - line 99, column 55): "+[e.constructor.name,n.constructor.name])}},$q=function(e){return{username:e,validated:M.value,updating:M.value}};var ERe=Vr(),IRe=xp(ze)()(),TRe=Ba(me),SRe=Qa(Y),CRe=function(e){var n=Nm(e);return function(){return function(a){return function(t){var o=ERe(a);return IRe({placement:sb,overlay:Se(n(t)),overlayStyle:Ka(o.overlayStyle)(rt({width:"15rem"}))})(TRe("d-inline-flex align-items-center text-secondary "+o.className)([SRe("d-inline-block fe fe-help-circle "+function(){var u=wi(o.anchorText);return u?"":"mr-2"}())(""),Xe(o.anchorText)]))}}}},Gb=function(e){var n=CRe(e)();return function(a){return n({className:a,anchorText:""})}};var fM=function(e){return e};var FRe=function(e){return e},zq=function(e){var n=Ke(e),a=FRe(e.Eq0());return{compare:function(t){return function(o){return D2(n(t)(o))}},Eq0:function(){return a}}};var Vq=Nn(xn),zh=Pn(Vq)(Gn(Fn)),Qq=An(Mn),Vh=Ln(Qq),Kq=Un(On),Qh=jn(Kq),GRe=U(ae),Hp=function(){function e(){}return e.value=new e,e}(),qp=function(){function e(){}return e.value=new e,e}(),Jp=function(){function e(){}return e.value=new e,e}(),Wp=function(){function e(){}return e.value=new e,e}(),$p=function(){function e(){}return e.value=new e,e}(),S_=function(){function e(){}return e.value=new e,e}(),MRe={to:function(e){if(e instanceof ye)return Hp.value;if(e instanceof ie&&e.value0 instanceof ye)return qp.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ye)return Jp.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ie&&e.value0.value0.value0 instanceof ye)return Wp.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ie&&e.value0.value0.value0 instanceof ie&&e.value0.value0.value0.value0 instanceof ye)return $p.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ie&&e.value0.value0.value0 instanceof ie&&e.value0.value0.value0.value0 instanceof ie)return S_.value;throw new Error("Failed pattern match at Common.Persona (line 25, column 1 - line 25, column 34): "+[e.constructor.name])},from:function(e){if(e instanceof Hp)return new ye(Ne.value);if(e instanceof qp)return new ie(new ye(Ne.value));if(e instanceof Jp)return new ie(new ie(new ye(Ne.value)));if(e instanceof Wp)return new ie(new ie(new ie(new ye(Ne.value))));if(e instanceof $p)return new ie(new ie(new ie(new ie(new ye(Ne.value)))));if(e instanceof S_)return new ie(new ie(new ie(new ie(new ie(Ne.value)))));throw new Error("Failed pattern match at Common.Persona (line 25, column 1 - line 25, column 34): "+[e.constructor.name])}},Yq=kn(MRe)(zh(zh(zh(zh(zh(Vq)(Qq))(Vh))(Vh))(Vh))(Vh))(Qh(Qh(Qh(Qh(Qh(Kq))))))(Vh);var ARe={eq:function(e){return function(n){return e instanceof Hp&&n instanceof Hp||e instanceof qp&&n instanceof qp||e instanceof Jp&&n instanceof Jp||e instanceof Wp&&n instanceof Wp||e instanceof $p&&n instanceof $p||e instanceof S_&&n instanceof S_}}},Mb=function(e){if(e instanceof Hp)return"student";if(e instanceof qp)return"transfer_student";if(e instanceof Jp)return"counselor";if(e instanceof Wp)return"iec";if(e instanceof $p)return"parent";if(e instanceof S_)return"sem_user";throw new Error("Failed pattern match at Common.Persona (line 43, column 13 - line 49, column 24): "+[e.constructor.name])},Xq=function(){var e=Tn(Mb)(Yq);return ta(Ze)({parse:function(n){return n==="unknown"?new T(M.value):GRe(T.create)(e(n))},default:M.value,diagnosticName:"User Persona"})}(),Zq=function(e){if(e instanceof Hp)return"Student";if(e instanceof qp)return"Transfer Student";if(e instanceof Jp)return"High School Counselor";if(e instanceof Wp)return"Independent Educational Counselor (IEC)";if(e instanceof $p)return"Parent";if(e instanceof S_)return"SEM User";throw new Error("Failed pattern match at Common.Persona (line 33, column 11 - line 39, column 24): "+[e.constructor.name])},eJ=function(){return bf(ARe)(S_.value)(Yq)}();function nJ(){typeof fbq!="undefined"&&fbq("trackCustom","LivestreamRegistrationComplete")}var LRe=J(ct),PRe=ts(zc(!1));var Ab=function(e){if(ts(ec(PRe)))return LRe(ge);if(qe)return nJ;throw new Error("Failed pattern match at Livestream.Upcoming.Register.Tracking (line 18, column 1 - line 18, column 53): "+[e.constructor.name])};var _M=U(hr);var pM=Z(Au),xRe=J(Ys),NRe=To($2);var aJ=function(e){return e},tJ=function(e){return function(n){return _M(function(a){return a.result})(e({substring:n,position:0}))}};var Cc={map:function(e){return function(n){var a=_M(function(t){return{result:e(t.result),suffix:t.suffix}});return function(t){return a(n(t))}}}},C_=function(e){return function(n){return new Me({pos:n.position,error:e})}},F_={apply:function(e){return function(n){return function(a){return pM(e(a))(function(t){return pM(n(t.suffix))(function(o){return xRe({result:t.result(o.result),suffix:o.suffix})})})}}},Functor0:function(){return Cc}};var Ms={bind:function(e){return function(n){return function(a){return pM(e(a))(function(t){return aJ(n(t.result))(t.suffix)})}}},Apply0:function(){return F_}};var As={pure:function(e){return function(n){return new Pe({result:e,suffix:n})}},Apply0:function(){return F_}};var jRe={Applicative0:function(){return As},Bind1:function(){return Ms}},rJ={tailRecM:function(e){return function(n){var a=function(t){if(t.result instanceof zt)return new zt({state:t.result.value0,str:t.suffix});if(t.result instanceof Bt)return new Bt({result:t.result.value0,suffix:t.suffix});throw new Error("Failed pattern match at StringParser.Parser (line 87, column 5 - line 87, column 68): "+[t.constructor.name])};return function(t){return NRe(function(o){return _M(a)(aJ(e(o.state))(o.str))})({state:n,str:t})}}},Monad0:function(){return jRe}};var G_={alt:function(e){return function(n){return function(a){var t=e(a);if(t instanceof Me){if(a.position===t.value0.pos)return n(a);if(qe)return new Me({error:t.value0.error,pos:t.value0.pos})}return t}}},Functor0:function(){return Cc}},ORe={empty:C_("No alternative"),Alt0:function(){return G_}},oJ={Applicative0:function(){return As},Plus1:function(){return ORe}};var uJ=ma(G_),dM=Z(Ms),mM=J(As),URe=U(Cc);var kRe=oo(F_),BRe=Yn(F_);var hM=function(e){return function(n){return uJ(e)(C_(n))}},DM=function(e){return function(n){var a=e(n);return a instanceof Me?new Me({pos:n.position,error:a.value0.error}):a}},Fc=function(e){return uJ(dM(e)(function(n){return mM(ge)}))(mM(ge))};var iJ=function(e){return function(n){return new ju(e,n)}};var HRe=function(e){return function(n){var a=e(n);if(a instanceof Pe){var t=n.position65535;return t?e(n):vJ(a.value0)}if(a instanceof M)return e(n);throw new Error("Failed pattern match at StringParser.CodePoints (line 57, column 3 - line 65, column 27): "+[a.constructor.name])})}(),Hv=function(e){return DM(sJ($Re)(function(n){var a=e(n);return a?vJ(n):C_("Character "+(fJ(n)+" did not satisfy predicate"))}))},Fi=function(e){return hM(Hv(function(n){return n===e}))("Could not match character "+fJ(e))};var zRe=function(e,n,a){var t=0,o;return function(u){if(t===2)return o;if(t===1)throw new ReferenceError(e+" was needed before it finished initializing (module "+n+", line "+u+")",n,u);return t=1,o=a(),t=2,o}},VRe=yt(),gM=U(Cc),QRe=si(cR)(wt),KRe=U(rT),go=rn(Qe)(Ms),Zo=Tt(Cc),Ls=J(As),ni=ma(G_);var zp=oo(F_),qv=Z(Ms),pJ=si(Co)(wt);var Ir=function(e){return VRe(Dy(e))},RM=function(e){return gM(function(){var n=KRe(Ou);return function(a){return QRe(n(a))}}())(lJ(Hv(e)))},dJ=function(e){return go(Zo(e))(function(){return go(Zo(Lb(e)))(function(){return Ls(ge)})})},Lb=function(e){return ni(dJ(e))(Ls(ge))},mJ=function(e){return go(Zo(Hv(e)))(function(){return go(Zo(Lb(Hv(e))))(function(){return Ls(ge)})})},YRe=Fi(Ir(0));var hJ=Fi(` `),DJ=function(e){return e===" "||e===" "},XRe=Hv(DJ),yM=mJ(DJ),ZRe=function(e){var n=e>="0"&&e<="9",a=e>="a"&&e<="z"||e>="A"&&e<="Z";return n||a},Gc=function(e){return function(n){return function(a){return a>=e&&a<=n}}},eye=Gc(Ir(33))(Ir(126)),nye=Hv(eye),wM=function(e){return function(n){return Yc(Ou(n))(e)}},Pb=function(e){return Gc(Ir(1))(Ir(8))(e)||Gc(Ir(14))(Ir(31))(e)||wM("\v\f\x7F")(e)},aye=function(e){return Gc(Ir(33))(Ir(39))(e)||Gc(Ir(42))(Ir(91))(e)||Gc(Ir(93))(Ir(126))(e)||Pb(e)},tye=function(e){return Gc(Ir(33))(Ir(90))(e)||Gc(Ir(94))(Ir(126))(e)||Pb(e)},rye=Hv(Pb),oye=function(e){return wM(Ou(Ir(33)))(e)||Gc(Ir(35))(Ir(91))(e)||Gc(Ir(93))(Ir(126))(e)||Pb(e)};var gJ=Fi("\r"),RJ=Zo(zp(gJ)(hJ)),Vp=function(){var e=dJ(zp(RJ)(yM)),n=zp(yM)(Fc(zp(RJ)(yM)));return ni(n)(e)}(),yJ=function(){var e=go(Zo(Fi("\\")))(function(){return ni(nye)(ni(XRe)(ni(hJ)(ni(gJ)(ni(rye)(YRe)))))});return qv(e)(function(n){return Ls("\\"+Ou(n))})}(),uye=ni(RM(oye))(yJ),iye=function(){var e=go(Zo(Fi('"')))(function(){return qv(M_(zp(Fc(Vp))(uye)))(function(n){return go(Zo(Fc(Vp)))(function(){return go(Zo(Fi('"')))(function(){return Ls(n)})})})});return gM(function(n){return'"'+(pJ(n)+'"')})(e)}(),wJ=zRe("comment","Text.Email.Parser",function(){return go(Zo(Fi("(")))(function(){return go(Lb(ni(mJ(aye))(ni(Zo(yJ))(ni(wJ(155))(Vp)))))(function(){return go(Zo(Fi(")")))(function(){return Ls(ge)})})})}),lye=wJ(152),xb=Lb(ni(lye)(Vp)),cye=go(Fc(xb))(function(){return go(Zo(Fi("[")))(function(){return qv(M_(zp(Fc(Vp))(RM(tye))))(function(e){return go(Fc(Vp))(function(){return go(Zo(Fi("]")))(function(){return go(Fc(xb))(function(){return Ls("["+(pJ(e)+"]"))})})})})})}),sye=function(){var e=function(n){return ZRe(n)||wM("!#$%&'*+/=?^_`{|}~-")(n)};return RM(e)}(),bJ=function(){var e=go(Zo(Fc(xb)))(function(){return qv(ni(sye)(iye))(function(a){return go(Zo(Fc(xb)))(function(){return Ls(a)})})}),n=cJ(e)(Fi("."));return gM(Pu(cR)(wt)("."))(n)}(),vye=ni(bJ)(cye),fye=bJ,bM=qv(fye)(function(e){return qv(Fi("@"))(function(){return qv(vye)(function(n){return qv(_J)(function(){return Ls({localPart:e,domainPart:n})})})})});var pye=function(e){return tJ(bM)(e)},dye=function(){var e=fr(Lu)(ne(lf()()(sf({reflectSymbol:function(){return"error"}})(vf({reflectSymbol:function(){return"pos"}})(Ye))(Ut))));return function(n){return e(pye(n))}}(),Kh=function(e){var n=dye(e);if(n instanceof Me)return!1;if(n instanceof Pe)return!0;throw new Error("Failed pattern match at Text.Email.Validate (line 35, column 5 - line 37, column 25): "+[n.constructor.name])};var EM=Vo(Y),Nb=fo()(),mye=Zn(vo),EJ=ij(me)()(),IJ=_e(ae),TJ=al(zR(el)),SJ=U(ae),jb=lj(Y)()(),CJ=_e(Ve),Yh=Te(me),hye=vF(),IM=ne(Ye),Dye=kI(vn)(st),gye=np(me)()(),A_=Te(ze),FJ=zn(Y)()(),Rye=Zn(ga),yye=Br(hu),wye=ne(ei),Xh=J(Rn),GJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),MJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),AJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),LJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),PJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Qp=function(e){return function(n){return function(a){return function(t){var o=function(d){return function(y){return function(I){return function(b){return function(S){return function(L){return Se([EM("")(y),Nb("form-control")({type:"text",name:"livestream_public_registration_form["+(d+"]"),value:b,placeholder:I,autoFocus:L.autoFocus,onChange:mye(t)(function(O){return S(Fs(O))})})])}}}}}},u=[EM("")("I'm a..."),EJ("form-control")({name:"livestream_public_registration_form[i_am_a]",value:Je("")(IJ(a.persona)(Mb)),onChange:TJ(t)(function(d){return SJ(PJ.create)(Xq(UG(d)))})})([Ia(St(a.persona))(jb("")({value:""})("Select one...")),Se(CJ(eJ)(function(d){return jb("")({value:Mb(d)})(Zq(d))}))])],i=Yh("d-flex align-items-center")([Xe("Already have an account? "),hye({text:"Log in",className:"btn btn-link px-2",auth0ActiveTab:pw,openInNewTab:!1})]),l=[EM("")("Graduation year"),EJ("form-control")({name:"livestream_public_registration_form[high_school_graduation_year]",value:Je("")(IJ(a.gradYear)(IM)),onChange:TJ(t)(function(d){return SJ(LJ.create)(tc(UG(d)))})})([Ia(St(a.gradYear))(jb("")({value:""})("Select one...")),Se(CJ(n.allowedGradYears)(function(d){return jb("")({value:IM(d)})(IM(d))}))])],s=Je({path:"",token:""})(Zy("livestreams_register_path")),R=Dye([Kh(a.email),a.firstName!=="",a.lastName!=="",Ct(a.gradYear),Ct(a.persona)]);return Se([i,gye("")({action:s.path,method:"POST"})([A_("row")(A_("col")(o("email")("Email")("Your email")(a.email)(GJ.create)({autoFocus:e.autoFocus}))),A_("row mt-3")(A_("col")(o("first_name")("First name")("Your first name")(a.firstName)(MJ.create)({autoFocus:!1}))),A_("row mt-3")(A_("col")(o("last_name")("Last name")("Your last name")(a.lastName)(AJ.create)({autoFocus:!1}))),Yh("row mt-3")([Yh("col-6")(l),Yh("col-6")(u)]),A_("row mt-3")(Yh("col-12")([FJ("btn btn-primary w-100 mt-3 t--register")({type:"submit",disabled:!R,onClick:Rye(Ab)(ge)})("Register"),da(e.cancelButton)(function(d){return FJ("btn btn-outline-primary w-100 mt-3 t--cancel-registration")({type:"button",onClick:yye(d.click)})(d.text)})])),Nb("")({type:"hidden",name:"authenticity_token",value:s.token}),Nb("")({type:"hidden",name:"register_for_conference_id",value:wye(n.conference.id)}),Nb("")({type:"hidden",name:"utm_cv_source",value:n.paths.utmSource})])])}}}},Kp=function(e){return function(n){if(n instanceof GJ)return Xh({firstName:e.firstName,gradYear:e.gradYear,lastName:e.lastName,persona:e.persona,email:n.value0});if(n instanceof MJ)return Xh({email:e.email,gradYear:e.gradYear,lastName:e.lastName,persona:e.persona,firstName:n.value0});if(n instanceof AJ)return Xh({email:e.email,firstName:e.firstName,gradYear:e.gradYear,persona:e.persona,lastName:n.value0});if(n instanceof LJ)return Xh({email:e.email,firstName:e.firstName,lastName:e.lastName,persona:e.persona,gradYear:new T(n.value0)});if(n instanceof PJ)return Xh({email:e.email,firstName:e.firstName,gradYear:e.gradYear,lastName:e.lastName,persona:new T(n.value0)});throw new Error("Failed pattern match at Livestream.Register.Anonymous (line 176, column 16 - line 186, column 36): "+[n.constructor.name])}},Yp=function(){return{email:"",firstName:"",lastName:"",gradYear:M.value,persona:M.value}}();var xJ=Te(me),bye=Gb(Y),Eye=Mt(Y)()(),Xp=function(e){return Se([xJ("")([Xe(` For college information sessions, we may tell the college that you attended. You can opt out anytime in your profile. `),bye("")(` The only information we may share with colleges when you attend their events includes your name, email, graduation year, and whether you\u2019re a student, parent, or school counselor. `)]),xJ("")([Xe(` By completing this registration form you agree to CollegeVine\u2019s Website Terms and Conditions, which can be found `),Eye("")({href:e.paths.termsAndConditions})("here"),Xe(".")])])};var TM={eq:function(e){return function(n){return e===n}}};var Ps=rn(Qe)($n),Iye=Xu(Le),NJ=Sa(),Tye=Ti(NJ(B({reflectSymbol:function(){return"author"}})(NJ(B({reflectSymbol:function(){return"cvid"}})(pe)(B({reflectSymbol:function(){return"username"}})(pe)(on))))(B({reflectSymbol:function(){return"id"}})(un)(B({reflectSymbol:function(){return"isFromHQ"}})(Ea)(B({reflectSymbol:function(){return"isPublic"}})(Ea)(B({reflectSymbol:function(){return"text"}})(pe)(B({reflectSymbol:function(){return"time"}})(pe)(on))))))))(Le),Zp=Ma(Le),Ob=J(Xn),Tr=J(Rn),SM=Wl(),Sye=Qt(me),CM=Ba(Y),FM=Vo(Y),Cye=Qa(Y),L_=Te(me),ed=Te(ze),Ub=zn(Y)()(),nd=Zn(ga),Zh=Te(Y),jJ=qt(Y),OJ=_e(Ve),Fye=or(me)()(),Gye=Ba(me),UJ=Z(nn),Mye=XR()(),Aye=Zn(vo),Lye=al(Dv(el)),Pye=ep(me),xye=fo()(),Nye=Gb(Y),jye=Re(Wt(Pt)),Oye=_e(ae),kJ=qo(zq(ru(Qu))),Uye=Uo(TM),BJ=U(Ga),kye=tn(Rt),Bye=Wg(TM),HJ=ut(yr(Ga)),qJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),JJ=function(){function e(){}return e.value=new e,e}(),WJ=function(){function e(){}return e.value=new e,e}(),P_=function(){function e(){}return e.value=new e,e}(),kb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Bb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Hb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),$J=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),zJ=function(){function e(){}return e.value=new e,e}(),GM=function(){function e(){}return e.value=new e,e}(),MM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),VJ=function(){function e(){}return e.value=new e,e}(),QJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),AM=function(){function e(){}return e.value=new e,e}(),qb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Jb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),KJ=function(){function e(){}return e.value=new e,e}(),ad=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),eD=function(){function e(){}return e.value=new e,e}();var YJ=function(e){return Ps(Iye(function(n){return Ae.create(MM.create(r_(n)))})(Tye(e.pusher.dataChannel)("question")))(function(){return Ps(Zp(Ob(new Ae(VJ.value))))(function(){return Tr({newQuestionText:"",newQuestionBroadcast:!1,questions:[],modal:P_.value})})})},XJ=function(e){if(e.user instanceof M)return new T(new Ae(AM.value));if(e.user instanceof T&&e.user.value0.username instanceof M)return new T(new Ae(KJ.value));if(e.user instanceof T&&e.user.value0.username instanceof T)return M.value;throw new Error("Failed pattern match at Livestream.Live.Questions (line 363, column 3 - line 369, column 14): "+[e.user.constructor.name])},Hye=function(){return Po($o(vn)([Bl.value,new ht(":"),bi.value,new ht(" "),Hl.value]))}(),ZJ=function(e){return function(n){return function(a){var t=function(s){return a(Ae.create(s))},o=function(s){return SM({onDismiss:t(eD.value),body:Se([Sye("")([CM("")("By: "),FM("")("@"+s.author.username)]),Cye("")(s.text),ss(""),L_("row align-items-center mb-3")([ed("col-4")(Ub("btn w-100 btn-"+function(){return s.isPublic?"secondary":"success"}())({onClick:nd(t)(new Jb(JJ.value))})(function(){return s.isPublic?"Hide from audience":"Show to audience"}())),Zh("col")(function(){return s.isPublic?"This question will no longer be visible to the public, but HQ people will still see it.":"This question will become visible to the audience, even anonymous users."}())]),L_("row align-items-center")([ed("col-4")(Ub("btn w-100 btn-danger")({onClick:nd(t)(new Jb(WJ.value))})("Ban this user")),L_("col")([Xe("This user will not be able to ask any more questions "),FM("")("in this livestream. "),CM("text-danger")("There is no way to un-ban a user!")])])]),bodyClass:"t--question-modal",footer:Se([Ub("btn btn-outline-primary px-4")({onClick:nd(t)(eD.value)})("Never mind, close this dialog")])})},u=function(s){return SM({onDismiss:t(eD.value),title:jJ("")("Please introduce yourself to participate:"),bodyClass:"t--questions-registration-form",body:Se([Qp({cancelButton:M.value,autoFocus:!0})(e)(s)(function(R){return t(qb.create(R))}),ed("small mt-3")(Xp(e))])})},i=function(s){return SM({onDismiss:t(eD.value),title:jJ("")("Please select a user name"),body:Jq(s)(function(R){return t(ad.create(R))}),bodyClass:"t--username-modal"})},l=function(s){var R=function(y){return function(I){return function(b){return Se([Zh("ml-2 badge badge-"+I)(y),da(b)(function(S){return Zh("ml-2 text-secondary")(Hye(S))})])}}},d=s.isFromHQ&&s.isPublic;return d?R("CollegeVine")("success")(s.time):s.isPublic?R("Question")("warning")(M.value):Vn};return Se([ed("position-relative h-100")(ed("d-flex flex-column position-absolute-fullsize")(L_("d-flex flex-column flex-grow-1 min-height-0")([L_("flex-grow-1 min-height-0 overflow-y-auto bg-white border rounded mb-2 p-2 t--questions-list")(OJ(n.questions)(function(s){return Fye("p-1 t--question"+function(){return e.isPrivilegedUser?" cursor-pointer":""}())({onClick:nd(t)(new Jb(new qJ(s)))})([Gye("small d-inline-flex align-items-center")([FM("")("@"+s.author.username),l(s),Xe(":")]),CM("ml-1")(s.text)])})),L_("")([da(UJ(e.user)(function(s){return s.username}))(function(s){return Zh("small text-secondary mt-2")("@"+s)}),Mye("form-control t--question-text")({onChange:Aye(t)(function(s){return $J.create(vb(s))}),onClick:Lye(a)(XJ(e)),placeholder:"Ask a question...",rows:1,value:n.newQuestionText}),Ia(e.isPrivilegedUser)(ed("form-check my-2")(Pye("form-check-label d-flex align-items-center t--broadcast-checkbox")([xye("form-check-input mr-2 mt-0")({type:"checkbox",checked:n.newQuestionBroadcast,onChange:nd(t)(zJ.value)}),Zh("badge badge-info bg-info text-dark mr-2")("HQ"),Xe("Send to all viewers")]))),L_("d-flex justify-content-end align-items-center")([Nye("large mr-2")(` Questions you ask will only be visible to you and the host unless they select it to read to the audience, at which point it will appear with a yellow \u201CQuestion\u201D tag for all viewers to see. `),Ub("mt-2 px-5 btn-sm btn btn-primary t--submit-question")({onClick:nd(t)(GM.value),disabled:n.newQuestionText===""})(function(){return n.newQuestionBroadcast?"Send to all":"Send to host"}())])])]))),function(){if(n.modal instanceof P_)return Vn;if(n.modal instanceof Bb)return u(n.modal.value0);if(n.modal instanceof kb)return o(n.modal.value0);if(n.modal instanceof Hb)return i(n.modal.value0);throw new Error("Failed pattern match at Livestream.Live.Questions (line 146, column 5 - line 150, column 41): "+[n.modal.constructor.name])}()])}}},qye=function(e){return function(n){return jye(Oye(e.user)(function(a){return a.cvid}))(new T(n.author.cvid))||n.isPublic||e.isPrivilegedUser}},eW=function(e){return function(n){return function(a){if(a instanceof En)return Tr(n);if(a instanceof Ae){if(a.value0 instanceof $J){var t=XJ(e);if(t instanceof T)return Ps(Zp(Ob(t.value0)))(function(){return Tr(n)});if(t instanceof M)return Tr({modal:n.modal,newQuestionBroadcast:n.newQuestionBroadcast,questions:n.questions,newQuestionText:a.value0.value0});throw new Error("Failed pattern match at Livestream.Live.Questions (line 250, column 5 - line 255, column 46): "+[t.constructor.name])}if(a.value0 instanceof zJ)return Tr({modal:n.modal,newQuestionText:n.newQuestionText,questions:n.questions,newQuestionBroadcast:!n.newQuestionBroadcast});var t=function(o){if(a.value0 instanceof GM)return Ps(Zp(Ob(new Ae(AM.value))))(function(){return Tr(n)});if(a.value0 instanceof MM)return Tr({modal:n.modal,newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:kJ(function(l){return fM(function(s){return s.time}(l))})(iu(qye(e))(Jo(a.value0.value0)(iu(function(){var l=Uye(a.value0.value0.id);return function(s){return l(function(R){return R.id}(s))}}())(n.questions))))});if(a.value0 instanceof VJ)return Ps(Zp(BJ(function(l){return Ae.create(QJ.create(l))})(ow(e.conference.id))))(function(){return Tr(n)});if(a.value0 instanceof QJ){var u=OJ(a.value0.value0)(function(l){return l.id});return Tr({modal:n.modal,newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:kJ(function(l){return fM(function(s){return s.time}(l))})(kye(a.value0.value0)(iu(function(l){return Bye(l.id)(u)})(n.questions)))})}if(a.value0 instanceof AM)return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:new Bb(Yp)});var i=function(l){if(a.value0 instanceof qb)return Tr(n);if(a.value0 instanceof KJ)return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:new Hb($q(Je("")(UJ(e.user)(function(R){return R.username}))))});if(a.value0 instanceof ad&&a.value0.value0 instanceof En&&a.value0.value0.value0 instanceof sM)return Ps(Zp(Ob(new En(a.value0.value0.value0.value0))))(function(){return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:P_.value})});if(a.value0 instanceof ad&&a.value0.value0 instanceof En&&a.value0.value0.value0 instanceof vM)return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:P_.value});var s=function(R){if(a.value0 instanceof ad&&qe)return Tr(n);if(a.value0 instanceof eD)return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:P_.value});if(a.value0 instanceof Jb){if(e.isPrivilegedUser){if(a.value0.value0 instanceof qJ)return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:new kb(a.value0.value0.value0)});var d=function(y){var I=function(b){return Tr(n)};return a.value0.value0 instanceof WJ&&n.modal instanceof kb?Ps(za(KO({conferenceId:e.conference.id,userCvid:n.modal.value0.author.cvid})))(function(){return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:P_.value})}):I(!0)};return a.value0.value0 instanceof JJ&&n.modal instanceof kb?Ps(za(BO({questionId:n.modal.value0.id,isPublic:!n.modal.value0.isPublic})))(function(){return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:P_.value})}):d(!0)}if(qe)return Tr(n)}throw new Error("Failed pattern match at Livestream.Live.Questions (line 246, column 1 - line 246, column 76): "+[a.value0.constructor.name])};return a.value0 instanceof ad&&n.modal instanceof Hb?HJ(function(R){return Ae.create(ad.create(R))})(function(R){return{newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:new Hb(R)}})(Wq(n.modal.value0)(a.value0.value0)):s(!0)};return a.value0 instanceof qb&&n.modal instanceof Bb?HJ(function(l){return Ae.create(qb.create(l))})(function(l){return{newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:new Bb(l)}})(Kp(n.modal.value0)(a.value0.value0)):i(!0)};return a.value0 instanceof GM&&e.user instanceof T?Ps(Zp(BJ(function(o){return Ae.create(MM.create(o))})(HO({conferenceId:e.conference.id,text:n.newQuestionText,hqBroadcast:n.newQuestionBroadcast}))))(function(){return Tr({modal:n.modal,questions:n.questions,newQuestionText:"",newQuestionBroadcast:!1})}):t(!0)}throw new Error("Failed pattern match at Livestream.Live.Questions (line 246, column 1 - line 246, column 76): "+[e.constructor.name,n.constructor.name,a.constructor.name])}}};var Wb,Jye=new Uint8Array(16);function LM(){if(!Wb&&(Wb=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Wb))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Wb(Jye)}var nW=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Wye(e){return typeof e=="string"&&nW.test(e)}var PM=Wye;var No=[];for($b=0;$b<256;++$b)No.push(($b+256).toString(16).substr(1));var $b;function $ye(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=(No[e[n+0]]+No[e[n+1]]+No[e[n+2]]+No[e[n+3]]+"-"+No[e[n+4]]+No[e[n+5]]+"-"+No[e[n+6]]+No[e[n+7]]+"-"+No[e[n+8]]+No[e[n+9]]+"-"+No[e[n+10]]+No[e[n+11]]+No[e[n+12]]+No[e[n+13]]+No[e[n+14]]+No[e[n+15]]).toLowerCase();if(!PM(a))throw TypeError("Stringified UUID is invalid");return a}var aW=$ye;function zye(e,n,a){e=e||{};var t=e.random||(e.rng||LM)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,n){a=a||0;for(var o=0;o<16;++o)n[a+o]=t[o];return n}return aW(t)}var xM=zye;var tW=xM;var Vye=function(e){return e},NM=function(e){return e};var jM=Z($t)(tW)(function(){var e=J(ct);return function(n){return e(Vye(n))}}());var td=Ma(Le),rW=rn(Qe),Qye=rW(sa),Kye=tn(bR),Yye=U(Ga),nD=yn(Le),Xye=Qa(Y),Zye=wu()(),oW=or(ze)()(),uW=jd(Qu),ewe=Io(tr),nwe=Wn(du),awe=ne(sx),iW=ne(cf),twe=U(Ve),Mc=rW($n),rwe=Xu(Le),owe=Ti(Sa()(B({reflectSymbol:function(){return"authorTag"}})(pe)(B({reflectSymbol:function(){return"kind"}})(pe)(on))))(Le),zb=U(Hn),Jv=J(Rn),lW=tt(U0),cW=Nd(Qu),uwe=J(Xn),OM=vc(j0),iwe=Te(me),lwe=_e(Ve),cwe=zn(me)()(),swe=Zn(ga),vwe=Ba(Y),Vb=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),aD=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),sW=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),UM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),kM=function(e){return td(Qye(Xt(Kye(e)(10)))(function(){return Yye(UM.create)(nD(Zu))}))},vW=50,fW=function(e){var n=function(o){return Xye("text-white fe fe-"+o)("")},a=function(){if(e instanceof bs)return n("heart");if(e instanceof Gv)return n("thumbs-up");if(e instanceof o_)return n("thumbs-down");if(e instanceof Mv)return n("file-text");if(e instanceof Av)return Zye("")({src:"/img/icons/smile-white.svg",style:rt({width:"1em"})});throw new Error("Failed pattern match at Livestream.Live.Reactions (line 158, column 12 - line 163, column 108): "+[e.constructor.name])}(),t=function(){if(e instanceof bs)return"#F0747B";if(e instanceof Gv)return"#008CFD";if(e instanceof o_)return"#6E84A3";if(e instanceof Mv)return"#18A668";if(e instanceof Av)return"#F6C343";throw new Error("Failed pattern match at Livestream.Live.Reactions (line 165, column 23 - line 170, column 34): "+[e.constructor.name])}();return oW("d-flex justify-content-center align-items-center rounded-circle")({style:rt({backgroundColor:t,height:"1.5rem",width:"1.5rem"})})(a)},_W=6,pW=function(){return _W*1e3}(),dW=function(e){return function(n){var a=function(t){if(uW(t.removeAt)(e.currentTime))return Vn;var o=Ft(ewe(nwe(Zi(ET(t.startDecayAt))))(10)),u=function(){var d=o<=3;if(d)return"linear";var y=o<=7;return y?"ease-in":"ease"}(),i=t.reaction.authorTag===e.authorTag,l=1+(o-5)/4,s=uW(t.startDecayAt)(e.currentTime),R=_W+(o-5)/10;return oW("position-absolute mb-4 mt-2")({key:awe(t.startDecayAt),style:rt({right:iW(l)+"rem",top:function(){return s?"0":"90%"}(),opacity:function(){return s?0:i?1:.6}(),transitionProperty:"top opacity",transitionDuration:iW(R)+"s",transitionTimingFunction:u})})(fW(t.reaction.kind))};return Se(twe(a)(e.reactions))}},mW=function(e){return Mc(rwe(function(n){return new aD(M7(n),M.value)})(owe(e.pusher.dataChannel)("reaction")))(function(){return Mc(td(nD(zb(function(n){return sW.create(NM(n))})(jM))))(function(){return Mc(td(nD(zb(UM.create)(Zu))))(function(){return Jv({authorTag:"",currentTime:lW,coolDownUntil:lW,reactions:[]})})})})},hW=800,DW=function(e){return function(n){return function(a){if(a instanceof Vb&&a.value1 instanceof M)return Mc(td(nD(zb(function(){var t=Vb.create(a.value0);return function(o){return t(T.create(o))}}())(Zu))))(function(){return Jv(n)});if(a instanceof Vb&&a.value1 instanceof T){if(cW(n.coolDownUntil)(a.value1.value0))return Mc(td(uwe(new aD({kind:a.value0,authorTag:n.authorTag},new T(a.value1.value0)))))(function(){return Jv(n)});if(qe)return Mc(za(zO(e.conference.id)({authorTag:n.authorTag,kind:a.value0})))(function(){return Mc(kM(hW))(function(){return Jv({authorTag:n.authorTag,currentTime:n.currentTime,reactions:n.reactions,coolDownUntil:Je(a.value1.value0)(OM(hW)(a.value1.value0))})})})}if(a instanceof aD&&a.value1 instanceof M)return Mc(td(nD(zb(function(){var t=aD.create(a.value0);return function(o){return t(T.create(o))}}())(Zu))))(function(){return Jv(n)});if(a instanceof aD&&a.value1 instanceof T)return Mc(kM(vW))(function(){return Mc(kM(pW))(function(){var t={reaction:a.value0,startDecayAt:Je(a.value1.value0)(OM(vW)(a.value1.value0)),removeAt:Je(a.value1.value0)(OM(pW)(a.value1.value0))};return Jv({authorTag:n.authorTag,coolDownUntil:n.coolDownUntil,reactions:y0(n.reactions)(t),currentTime:a.value1.value0})})});if(a instanceof sW)return Jv({coolDownUntil:n.coolDownUntil,currentTime:n.currentTime,reactions:n.reactions,authorTag:a.value0});if(a instanceof UM)return Jv({authorTag:n.authorTag,coolDownUntil:n.coolDownUntil,reactions:iu(function(t){return cW(t.removeAt)(a.value0)})(n.reactions),currentTime:a.value0});throw new Error("Failed pattern match at Livestream.Live.Reactions (line 176, column 22 - line 219, column 8): "+[a.constructor.name])}}},gW=function(e){return function(n){var a=function(t){if(t instanceof bs)return"love this";if(t instanceof Gv)return"helpful";if(t instanceof o_)return"not helpful";if(t instanceof Mv)return"taking notes";if(t instanceof Av)return"LOL";throw new Error("Failed pattern match at Livestream.Live.Reactions (line 144, column 13 - line 149, column 30): "+[t.constructor.name])};return iwe("d-flex justify-content-end my-2")(lwe([bs.value,Av.value,Gv.value,Mv.value])(function(t){return cwe("btn bg-light d-flex align-items-center p-0 ml-3")({onClick:swe(n)(new Vb(t,M.value)),style:rt({borderRadius:"1em"})})([fW(t),vwe("d-none d-md-inline text-secondary small ml-2 mr-3")(a(t))])}))}};var RW=rn(Qe),fwe=Z(sa),BM=yn(Le),Qb=J(Xn),Kb=Qt(Y),Yb=ne(Ye),tD=RW($n),rD=Ma(Le),gl=J(Rn),yW=xt(xr),wW=oo(Em),bW=U(Ga),_we=Bo(Rn)(xu),pwe=Ku(es),EW=Te(Y),dwe=Jl(),mwe=qt(Y),IW=zn(Y)()(),HM=Zn(ga),TW=Te(ze),hwe=zn(me)()(),Dwe=Qa(Y),gwe=Te(me),SW=function(){function e(){}return e.value=new e,e}(),CW=function(){function e(){}return e.value=new e,e}(),FW=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),GW=function(){function e(){}return e.value=new e,e}(),MW=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),AW=function(){function e(){}return e.value=new e,e}(),LW=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),qM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),PW=function(){function e(){}return e.value=new e,e}(),xW=function(){function e(){}return e.value=new e,e}(),JM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),WM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Xb=function(){function e(){}return e.value=new e,e}(),NW=RW(sa)(Xt(1e3))(function(){return fwe(BM(Zu))(function(e){return Qb(new JM(e))})}),Rwe=function(e){return{header:"Go on-air?",body:Se([Kb("")("Are you sure you want to go on-air?"),Kb("mb-0 font-weight-bold fw-bold")(` Watchers will start seeing your stream in `+(Yb(e.videoLagSeconds)+` seconds if you confirm. If you're presenting with Zoom, make sure you've gone "live" on Zoom as well. `))]),confirmText:"Confirm, go on-air!",cancelText:"Cancel",confirmMsg:GW.value}},jW=function(e){return function(n){return function(a){return function(t){return tD(rD(NW))(function(){return gl({confirmation:n.confirmation,network:SW.value,streamStatus:t,transition:new T({since:a,secondsLeft:e.videoLagSeconds})})})}}}},OW=function(e){return function(n){return function(a){if(a instanceof GW)return tD(rD(yW(wW(xO(e.conference.id))(bW(MW.create)(BM(Zu))))(function(l){return Qb(new WM("Error opening the stream. Please try again."))})))(function(){return gl({confirmation:n.confirmation,streamStatus:n.streamStatus,transition:n.transition,network:CW.value})});if(a instanceof MW)return jW(e)(n)(a.value0)(qr.value);if(a instanceof AW)return tD(rD(yW(wW(NO(e.conference.id))(bW(LW.create)(BM(Zu))))(function(l){return Qb(new WM("Error closing the stream. Please try again."))})))(function(){return gl(n)});if(a instanceof LW)return jW(e)(n)(a.value0)(br.value);if(a instanceof qM)return gl({network:n.network,streamStatus:n.streamStatus,transition:n.transition,confirmation:new T(a.value0)});if(a instanceof PW)return tD(_we(n.confirmation)(function(l){return rD(Qb(l.confirmMsg))}))(function(){return gl({network:n.network,streamStatus:n.streamStatus,transition:n.transition,confirmation:M.value})});if(a instanceof xW)return gl({network:n.network,streamStatus:n.streamStatus,transition:n.transition,confirmation:M.value});if(a instanceof WM)return gl({confirmation:n.confirmation,streamStatus:n.streamStatus,transition:n.transition,network:new FW(a.value0)});var t=function(l){if(a instanceof JM||a instanceof Xb)return gl(n);throw new Error("Failed pattern match at Livestream.Live.StreamControls (line 185, column 1 - line 185, column 76): "+[a.constructor.name])};if(a instanceof JM){if(n.transition instanceof T){var o=pwe(a.value0)(n.transition.value0.since),u=e.videoLagSeconds-co(o)|0,i=u>0;return i?tD(rD(NW))(function(){return gl({confirmation:n.confirmation,network:n.network,streamStatus:n.streamStatus,transition:new T({since:n.transition.value0.since,secondsLeft:u})})}):gl({confirmation:n.confirmation,network:n.network,streamStatus:n.streamStatus,transition:M.value})}return t(!0)}return t(!0)}}},UW=function(e){return gl({streamStatus:e.streamStatus,transition:M.value,network:SW.value,confirmation:M.value})},ywe=function(){return{header:"End the stream?",body:Se([Kb("")("Are you sure you want to end the stream?"),Kb("mb-0 font-weight-bold fw-bold")("You won't be able to restart it again!")]),confirmText:"Yes, end it",cancelText:"No, keep streaming",confirmMsg:AW.value}}(),kW=function(e){return function(n){return function(a){var t=function(){return n.network instanceof CW?EW("position-absolute-fullsize d-flex align-items-center justify-content-center bg-semi-transparent-white")("Switching..."):Vn}(),o=function(R){return dwe({header:mwe("my-0")(R.header),bodyClass:"p-5",body:R.body,footerClass:"p-4",footer:Se([IW("btn btn-primary px-4")({onClick:HM(a)(PW.value)})(R.confirmText),IW("btn btn-outline-primary px-4")({onClick:HM(a)(xW.value)})(R.cancelText)])})},u=function(R){return function(d){return function(y){return function(I){return function(b){return TW("col-auto pr-0")(hwe("btn btn-"+(R+(" px-5 d-flex align-items-center font-size-lg btn-"+I)))({onClick:HM(a)(b)})([Dwe("fe mr-2 fe-"+d)(""),Xe(y)]))}}}}},i=function(){if(n.streamStatus instanceof gu)return u("lg")("power")("GO ON-AIR")("outline-secondary")(new qM(Rwe(e)));var R=function(d){if(n.streamStatus instanceof qr)return Se([u("lg")("radio")("ON AIR")("success")(Xb.value),u("sm")("x-circle")("End stream")("outline-danger")(new qM(ywe))]);if(n.streamStatus instanceof br)return u("lg")("slash")("STREAM IS OVER")("outline-secondary")(Xb.value);throw new Error("Failed pattern match at Livestream.Live.StreamControls (line 78, column 1 - line 78, column 71): "+[n.streamStatus.constructor.name])};return n.streamStatus instanceof qr&&n.transition instanceof T?u("lg")("radio")("ON AIR")("success")(Xb.value):R(!0)}(),l=function(R){return EW("alert small m-0 flex-grow-1 alert-"+R)},s=function(){if(n.network instanceof FW)return l("danger")(n.network.value0);if(n.streamStatus instanceof gu)return l("warning")("The stream has not been started yet. To start, click the big 'GO ON-AIR' button on the left.");var R=function(d){if(n.streamStatus instanceof qr)return l("light")(` We're live. The audience should see your video with a `+(Yb(e.videoLagSeconds)+`-second delay. If you don't see your face above (give it a few seconds), it means you're not streaming. `));var y=function(I){if(n.streamStatus instanceof br)return l("light")("The stream has ended. The audience does not see any video right now.");throw new Error("Failed pattern match at Livestream.Live.StreamControls (line 78, column 1 - line 78, column 71): "+[n.streamStatus.constructor.name,n.network.constructor.name])};return n.streamStatus instanceof br&&n.transition instanceof T?l("info")("You may stop presenting now. The audience will keep seeing the tail of the stream for another "+(Yb(n.transition.value0.secondsLeft)+" seconds.")):y(!0)};return n.streamStatus instanceof qr&&n.transition instanceof T?l("info")("Start presenting now. The audience will see the stream in "+(Yb(n.transition.value0.secondsLeft)+" seconds...")):R(!0)}();return gwe("position-relative row align-items-center t--stream-controls")([i,TW("col")(s),t,da(n.confirmation)(o)])}}};var wwe=vc(sv),BW=Ku(sv),HW=f8(),bwe=Wl(),Ewe=qt(Y),Iwe=Te(Y),qW=Qt(Y),Twe=zn(Y)()(),Swe=Zn(ga),JW=Ma(Le),WW=rn(Qe),$W=U(Ga),zW=yn(Le),VW=WW($n),Cwe=Wi(nt),$M=J(Rn),zM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),VM=function(){function e(){}return e.value=new e,e}(),Fwe=[30,15,5,0],QW=function(e){return Je(e.conference.scheduledStartTime)(wwe(Ft(e.conference.duration))(e.conference.scheduledStartTime))},KW=function(e){return function(n){return function(a){if(!n.modal)return Vn;if(n.now instanceof M)return Vn;if(n.now instanceof T){var t=QW(e),o=BW(t)(n.now.value0),u=function(){if(o<1)return" ended "+HW({from:t,to:n.now.value0,format:yy("ago")});if(qe)return" ends "+HW({from:n.now.value0,to:t,format:yy("from now")});throw new Error("Failed pattern match at Livestream.Live.StreamEndWarning (line 75, column 7 - line 77, column 105): "+[])}();return bwe({onDismiss:a(VM.value),body:Se([Ewe("mb-0")("Host-only warning"),Iwe("text-secondary mb-4")("You see this because you're the host. The audience doesn't see this."),qW("font-weight-bold fw-bold")("\u23F0 Scheduled stream time "+u),qW("")(` You have `+(sl(e.conference.tailTime)("extra minute")("extra minutes")+` after scheduled stream end, in case you absolutely cannot wrap up before then. After that the video streaming will be terminated. `)),Twe("btn btn-primary px-4")({onClick:Swe(a)(VM.value)})("Got it")])})}throw new Error("Failed pattern match at Livestream.Live.StreamEndWarning (line 51, column 1 - line 51, column 71): "+[e.constructor.name,n.constructor.name,a.constructor.name])}}},Gwe=JW(WW(sa)(Xt(60100))(function(){return $W(zM.create)(zW(a_))})),YW=function(e){return function(n){return function(a){if(a instanceof zM)return VW(Gwe)(function(){var t=BW(QW(e))(a.value0),o=Cwe(co(t))(Fwe);return $M({now:new T(a.value0),modal:n.modal||o})});if(a instanceof VM)return $M({now:n.now,modal:!1});throw new Error("Failed pattern match at Livestream.Live.StreamEndWarning (line 80, column 22 - line 91, column 33): "+[a.constructor.name])}}},XW=function(){return VW(JW($W(zM.create)(zW(a_))))(function(){return $M({modal:!1,now:M.value})})}();var ZW=rn(Qe),Mwe=ZW(sa),e$=J(Xn),Awe=ZW($n),Lwe=Ma(Le),Pwe=xt(xr),Zb=J(Rn),xwe=Re(Xm),n$=$o(vn),QM=Te(me),e1=Qa(Y),Nwe=zn(Y)()(),a$=Zn(ga),jwe=Mt(Y)()(),Owe=zn(ze)()(),Uwe=Jl(),t$=Te(ze),kwe=Vo(Y),Bwe=gv(Y)()(),Hwe=Ba(Y),r$=function(){function e(){}return e.value=new e,e}(),o$=function(){function e(){}return e.value=new e,e}(),KM=function(){function e(){}return e.value=new e,e}(),u$=function(){function e(){}return e.value=new e,e}(),i$=function(){function e(){}return e.value=new e,e}(),l$=function(){function e(){}return e.value=new e,e}(),c$=function(){function e(){}return e.value=new e,e}(),qwe=function(){function e(){}return e.value=new e,e}(),s$=function(e){return function(n){return function(a){var t=Mwe(tw({fromConference:new T(e.conference.id),registerForConference:n.cta.conferenceId,utmSource:e.paths.utmSource}))(function(){return e$(new Ae(l$.value))});if(a instanceof i$)return Awe(Lwe(Pwe(t)(function(o){return e$(new Ae(c$.value))})))(function(){return Zb({cta:n.cta,stage:o$.value})});if(a instanceof l$)return Zb({cta:n.cta,stage:u$.value});if(a instanceof c$)return Zb({cta:n.cta,stage:KM.value});throw new Error("Failed pattern match at Livestream.Ctas.Display.Event (line 138, column 24 - line 148, column 44): "+[a.constructor.name])}}},v$=function(e){return function(n){return xwe(e.cta.conferenceId)(n.conferenceId)}},f$=function(e){return Zb({cta:e,stage:r$.value})},Jwe=function(){return Po(n$([kl.value,new ht(", "),Ol.value,new ht(" "),Ul.value,new ht(" at "),Bl.value,new ht(":"),bi.value,new ht(" "),Hl.value]))}(),Wwe=function(){return Po(n$([kl.value]))}(),_$=function(e){return function(n){return function(a){var t=function(){return n.stage instanceof KM?QM("text-danger small mt-2")([e1("fe fe-x-circle mr-2")(""),Xe("Something went wrong. Please try again.")]):Vn}(),o=function(R){return a(Ae.create(R))},u=function(){if(e.user instanceof T)return Nwe("btn btn-primary px-4 t--register-one-click")({onClick:a$(o)(i$.value)})("Register (one-click)");if(e.user instanceof M)return jwe("btn btn-primary px-4 t--register-new-tab")({href:n.cta.registrationPath,target:"_blank",rel:"noopener"})("Register now");throw new Error("Failed pattern match at Livestream.Ctas.Display.Event (line 92, column 22 - line 100, column 25): "+[e.user.constructor.name])}(),i=function(){if(n.stage instanceof r$||n.stage instanceof KM)return u;if(n.stage instanceof o$)return QM("text-secondary")([e1("fe fe-refresh-cw mr-2")(""),Xe("Hold on tight...")]);if(n.stage instanceof u$)return QM("text-success")([e1("fe fe-check-circle mr-2")(""),Xe("You\u2019ve registered \u2013\xA0see you "+(Wwe(n.cta.startTime)+"!"))]);throw new Error("Failed pattern match at Livestream.Ctas.Display.Event (line 76, column 36 - line 90, column 10): "+[n.stage.constructor.name])}(),l=function(R){return a(En.create(R))},s=Owe("btn btn-sm btn-outline-primary d-flex py-1 px-2")({onClick:a$(l)(qwe.value)})(e1("fe fe-x")(""));return Uwe({body:Se([t$("row justify-content-end mt-n3")(s),kwe("")("Join us for our upcoming livestream:"),Bwe("mt-3")({id:Ii})(n.cta.title),Hwe("small")(Jwe(n.cta.startTime)+(" "+n_)),t$("row mt-6 ml-0")(i),t]),bodyClass:"t--cta-active",size:uh.value})}}};var $we=Jl(),n1=Te(me),zwe=sj(Y)()(),a1=Te(ze),Vwe=zn(ze)()(),p$=Zn(ga),Qwe=Qa(Y),Kwe=_e(Ve),Ywe=tl()(),Xwe=Hr(Y),Zwe=Qt(Y),ebe=Mt(Y)()(),nbe=rn(Qe),abe=nbe($n),tbe=Ma(Le),rbe=yn(Le),obe=Is(Dr)(),ube=ne(Ye),d$=J(Rn),ibe=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),m$=function(){function e(){}return e.value=new e,e}(),h$=function(e){return function(n){var a=function(){var i=uo(e.cta.providers);return i===1?Lv.value:i===2?Lv.value:ih.value}(),t=function(i){return n(Ae.create(i))},o=function(i){return n(En.create(i))},u=function(){var i=uo(e.cta.providers);return i===1?"col-12":i===2?"col-12 col-md-6 mb-3 mb-md-0":"col-12 col-md-4 mb-3 mb-md-0"}();return $we({bodyClass:"bg-gray-900 text-white t--cta-active",body:Se([n1("row no-gutters g-0 mb-4")([n1("col text-center")([zwe("mb-2")({id:Ii})("The admissions process is hard - advisors are here to help!"),Xe("Schedule a free consulation to get your questions answered")]),a1("col-auto text-right")(Vwe("btn btn-link p-0 m-0 text-white")({onClick:p$(o)(m$.value)})(Qwe("fe fe-x")("")))]),n1("row text-center")(Kwe(e.cta.providers)(function(i){return n1(u)([a1("row mb-3")(a1("col-auto mx-auto")(a1("avatar avatar-xl")(Ywe("avatar-img rounded-circle img-fluid")({src:i.avatarUrl})))),Xwe("mb-2")(i.name),Zwe("mb-3")(i.location),ebe("btn btn-primary btn-sm px-3 py-1")({target:"_blank",href:i.linkUrl,onClick:p$(t)(new ibe(i.avatarUrl))})(e.cta.linkText)])}))]),size:a})}},D$=function(e){return function(n){return abe(tbe(rbe(function(){return obe("Livestream: CTA Popup Link Clicked")({livestream_cta_id:ube(e.cta.id),livestream_cta_url:n.value0})(),new En(m$.value)})))(function(){return d$(e)})}},g$=function(e){return function(n){return e.cta.id===n.id}},R$=function(e){return d$({cta:e})};var lbe=Mt(Y)()(),y$=Zn(ga),cbe=zn(ze)()(),sbe=Qa(Y),vbe=Jl(),w$=Te(ze),fbe=gv(Y)()(),_be=rn(Qe),pbe=_be($n),dbe=Ma(Le),mbe=yn(Le),hbe=Is(Dr)(),Dbe=ne(Ye),b$=J(Rn),gbe=function(){function e(){}return e.value=new e,e}(),E$=function(){function e(){}return e.value=new e,e}(),I$=function(e){return function(n){var a=function(i){return n(Ae.create(i))},t=lbe("btn btn-primary px-4 t--register-new-tab")({href:e.cta.url,target:"_blank",rel:"noopener",onClick:y$(a)(gbe.value)})(e.cta.buttonText),o=function(i){return n(En.create(i))},u=cbe("btn btn-sm btn-outline-primary d-flex py-1 px-2")({onClick:y$(o)(E$.value)})(sbe("fe fe-x")(""));return vbe({body:Se([w$("row justify-content-end mt-n3")(u),fbe("mt-3")({id:Ii})(e.cta.title),w$("row mt-6 ml-0")(t)]),bodyClass:"t--cta-active",size:uh.value})}},T$=function(e){return function(n){return pbe(dbe(mbe(function(){return hbe("Livestream: CTA Popup Link Clicked")({livestream_cta_id:Dbe(e.cta.id),livestream_cta_title:e.cta.title,livestream_cta_url:e.cta.url})(),new En(E$.value)})))(function(){return b$(e)})}},S$=function(e){return function(n){return e.cta.id===n.id}},C$=function(e){return b$({cta:e})};var YM=rn(Qe),ai=YM(nn),ti=Rr(kr),rd=J(oa),F$=Gr(ko(st)),oD=ma($r),xs=J(Rn),Rbe=YM($n),ybe=Ma(Le),wbe=YM(sa),bbe=J(Xn),XM=Te(me),Ebe=ep(Y),Ibe=fo()(),Tbe=Zn(vo),Sbe=zn(ze)()(),G$=Zn(ga),Cbe=Qa(Y),Fbe=Jl(),ZM=Te(ze),Gbe=gv(Y)()(),Mbe=Qt(Y),Abe=zn(Y)()(),M$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),A$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),L$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),P$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),x$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),N$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),j$=function(){function e(){}return e.value=new e,e}(),O$=function(){function e(){}return e.value=new e,e}(),U$=function(e){return function(n){return e.cta.id===n.id}},k$=function(e){return function(n){var a=ai(ti(n.cta.requireReferredUserLastName))(function(){return ai(ti(n.referredUserLastName===""))(function(){return rd("Please enter the other person\u2019s last name")})}),t=ai(ti(n.cta.requireReferredUserFirstName))(function(){return ai(ti(n.referredUserFirstName===""))(function(){return rd("Please enter the other person\u2019s first name")})}),o=ai(ti(F$(Kh)(n.referredUserEmail)))(function(){return rd("Please enter a valid email address")}),u=ai(ti(St(e.user)))(function(){return ai(ti(n.cta.requireAnonymousUserLastName))(function(){return ai(ti(n.anonymousUserLastName===""))(function(){return rd("Please enter your last name")})})}),i=ai(ti(St(e.user)))(function(){return ai(ti(n.cta.requireAnonymousUserFirstName))(function(){return ai(ti(n.anonymousUserFirstName===""))(function(){return rd("Please enter your first name")})})}),l=ai(ti(St(e.user)))(function(){return ai(ti(n.cta.requireAnonymousUserEmail))(function(){return ai(ti(F$(Kh)(n.anonymousUserEmail)))(function(){return rd("Please enter a valid email address")})})});return oD(i)(oD(u)(oD(l)(oD(t)(oD(a)(o)))))}},B$=function(e){return function(n){return function(a){if(a instanceof M$)return xs({anonymousUserEmail:n.anonymousUserEmail,anonymousUserLastName:n.anonymousUserLastName,cta:n.cta,referredUserEmail:n.referredUserEmail,referredUserFirstName:n.referredUserFirstName,referredUserLastName:n.referredUserLastName,validationActive:n.validationActive,anonymousUserFirstName:a.value0});if(a instanceof A$)return xs({anonymousUserEmail:n.anonymousUserEmail,anonymousUserFirstName:n.anonymousUserFirstName,cta:n.cta,referredUserEmail:n.referredUserEmail,referredUserFirstName:n.referredUserFirstName,referredUserLastName:n.referredUserLastName,validationActive:n.validationActive,anonymousUserLastName:a.value0});if(a instanceof L$)return xs({anonymousUserFirstName:n.anonymousUserFirstName,anonymousUserLastName:n.anonymousUserLastName,cta:n.cta,referredUserEmail:n.referredUserEmail,referredUserFirstName:n.referredUserFirstName,referredUserLastName:n.referredUserLastName,validationActive:n.validationActive,anonymousUserEmail:a.value0});if(a instanceof P$)return xs({anonymousUserEmail:n.anonymousUserEmail,anonymousUserFirstName:n.anonymousUserFirstName,anonymousUserLastName:n.anonymousUserLastName,cta:n.cta,referredUserEmail:n.referredUserEmail,referredUserLastName:n.referredUserLastName,validationActive:n.validationActive,referredUserFirstName:a.value0});if(a instanceof x$)return xs({anonymousUserEmail:n.anonymousUserEmail,anonymousUserFirstName:n.anonymousUserFirstName,anonymousUserLastName:n.anonymousUserLastName,cta:n.cta,referredUserEmail:n.referredUserEmail,referredUserFirstName:n.referredUserFirstName,validationActive:n.validationActive,referredUserLastName:a.value0});if(a instanceof N$)return xs({anonymousUserEmail:n.anonymousUserEmail,anonymousUserFirstName:n.anonymousUserFirstName,anonymousUserLastName:n.anonymousUserLastName,cta:n.cta,referredUserFirstName:n.referredUserFirstName,referredUserLastName:n.referredUserLastName,validationActive:n.validationActive,referredUserEmail:a.value0});if(a instanceof j$){var t=St(k$(e)(n));return t?Rbe(ybe(wbe(jO({ctaId:n.cta.id,anonymousUserFirstName:n.anonymousUserFirstName,anonymousUserLastName:n.anonymousUserLastName,anonymousUserEmail:n.anonymousUserEmail,referredUserFirstName:n.referredUserFirstName,referredUserLastName:n.referredUserLastName,referredUserEmail:n.referredUserEmail}))(function(){return bbe(new En(O$.value))})))(function(){return xs(n)}):xs({anonymousUserEmail:n.anonymousUserEmail,anonymousUserFirstName:n.anonymousUserFirstName,anonymousUserLastName:n.anonymousUserLastName,cta:n.cta,referredUserEmail:n.referredUserEmail,referredUserFirstName:n.referredUserFirstName,referredUserLastName:n.referredUserLastName,validationActive:!0})}throw new Error("Failed pattern match at Livestream.Ctas.Display.Referral (line 146, column 24 - line 175, column 45): "+[a.constructor.name])}}},H$=function(e){return function(n){return function(a){var t=k$(e)(n),o=function(I){return function(b){return function(S){return function(L){return function(O){return XM(I)([Ebe("mb-2")(S),Ibe("form-control "+b)({type:"text",value:L,onChange:Tbe(a)(function($){return Ae.create(O(Fs($)))})})])}}}}},u=Ia(St(e.user)&&n.cta.requireAnonymousUserEmail)(o("col-12 mb-3")("t--anon-email")("Your email")(n.anonymousUserEmail)(L$.create)),i=Ia(St(e.user))(Se([Ia(n.cta.requireAnonymousUserFirstName)(o("col-12 col-md-6 mb-3")("t--anon-first-name")("Your first name")(n.anonymousUserFirstName)(M$.create)),Ia(n.cta.requireAnonymousUserLastName)(o("col-12 col-md-6 mb-3")("t--anon-last-name")("Your last name")(n.anonymousUserLastName)(A$.create))])),l=o("col-12 mb-3")("t--referred-email")("Other person\u2019s email")(n.referredUserEmail)(N$.create),s=Se([Ia(n.cta.requireReferredUserFirstName)(o("col-12 col-md-6 mb-3")("t--referred-first-name")("Other person\u2019s first name")(n.referredUserFirstName)(P$.create)),Ia(n.cta.requireReferredUserLastName)(o("col-12 col-md-6 mb-3")("t--referred-last-name")("Other person\u2019s last name")(n.referredUserLastName)(x$.create))]),R=function(I){return a(Ae.create(I))},d=function(I){return a(En.create(I))},y=Sbe("btn btn-sm btn-outline-primary d-flex py-1 px-2 t--close")({onClick:G$(d)(O$.value)})(Cbe("fe fe-x")(""));return Fbe({body:Se([ZM("row justify-content-end mt-n3")(y),Gbe("mt-3")({id:Ii})(n.cta.title),da(n.cta.description)(Mbe("")),XM("row")([i,u,s,l]),XM("row")([ZM("col-auto my-auto")(Abe("btn btn-primary t--save")({onClick:G$(R)(j$.value)})("Save")),ZM("col my-auto text-danger")(Ia(n.validationActive)(da(t)(Xe)))])]),bodyClass:"t--cta-active",size:Lv.value})}}},q$=function(e){return xs({cta:e,anonymousUserFirstName:"",anonymousUserLastName:"",anonymousUserEmail:"",referredUserFirstName:"",referredUserLastName:"",referredUserEmail:"",validationActive:!1})};var Lbe=Ma(Le),Pbe=J(Xn),Wv=ut(yr(Ga)),t1=rn(Qe)($n),uD=J(Rn),iD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),lD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),cD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),sD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),r1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),o1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),u1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),i1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),xbe=function(){function e(){}return e.value=new e,e}(),J$=function(e){return function(n){return function(a){var t=function(o){return a(Ae.create(o))};if(n instanceof iD)return _$(e)(n.value0)(function(o){return t(r1.create(o))});if(n instanceof lD)return h$(n.value0)(function(o){return t(o1.create(o))});if(n instanceof cD)return I$(n.value0)(function(o){return t(u1.create(o))});if(n instanceof sD)return H$(e)(n.value0)(function(o){return t(i1.create(o))});throw new Error("Failed pattern match at Livestream.Ctas.Display (line 61, column 29 - line 69, column 61): "+[n.constructor.name])}}},W$=function(e){return function(n){return function(a){var t=Lbe(Pbe(new En(xbe.value)));if(n instanceof iD&&a instanceof r1){if(a.value0 instanceof Ae)return Wv(function(o){return Ae.create(r1.create(o))})(iD.create)(s$(e)(n.value0)(a.value0.value0));if(a.value0 instanceof En)return t1(t)(function(){return uD(n)});throw new Error("Failed pattern match at Livestream.Ctas.Display (line 76, column 5 - line 81, column 19): "+[a.value0.constructor.name])}if(n instanceof lD&&a instanceof o1){if(a.value0 instanceof Ae)return Wv(function(o){return Ae.create(o1.create(o))})(lD.create)(D$(n.value0)(a.value0.value0));if(a.value0 instanceof En)return t1(t)(function(){return uD(n)});throw new Error("Failed pattern match at Livestream.Ctas.Display (line 84, column 5 - line 90, column 19): "+[a.value0.constructor.name])}if(n instanceof cD&&a instanceof u1){if(a.value0 instanceof Ae)return Wv(function(o){return Ae.create(u1.create(o))})(cD.create)(T$(n.value0)(a.value0.value0));if(a.value0 instanceof En)return t1(t)(function(){return uD(n)});throw new Error("Failed pattern match at Livestream.Ctas.Display (line 93, column 5 - line 98, column 19): "+[a.value0.constructor.name])}if(n instanceof sD&&a instanceof i1){if(a.value0 instanceof Ae)return Wv(function(o){return Ae.create(i1.create(o))})(sD.create)(B$(e)(n.value0)(a.value0.value0));if(a.value0 instanceof En)return t1(t)(function(){return uD(n)});throw new Error("Failed pattern match at Livestream.Ctas.Display (line 101, column 5 - line 107, column 19): "+[a.value0.constructor.name])}return uD(n)}}},$$=function(e){return function(n){return e instanceof iD&&n instanceof vl?v$(e.value0)(n.value0):e instanceof cD&&n instanceof fl?S$(e.value0)(n.value0):e instanceof lD&&n instanceof _l?g$(e.value0)(n.value0):e instanceof sD&&n instanceof pl?U$(e.value0)(n.value0):!1}},z$=function(e){if(e instanceof vl)return Wv(function(n){return Ae.create(r1.create(n))})(iD.create)(f$(e.value0));if(e instanceof _l)return Wv(function(n){return Ae.create(o1.create(n))})(lD.create)(R$(e.value0));if(e instanceof fl)return Wv(function(n){return Ae.create(u1.create(n))})(cD.create)(C$(e.value0));if(e instanceof pl)return Wv(function(n){return Ae.create(i1.create(n))})(sD.create)(q$(e.value0));throw new Error("Failed pattern match at Livestream.Ctas.Display (line 49, column 8 - line 58, column 66): "+[e.constructor.name])};var V$=qt(Y),l1=Te(me),Nbe=Vo(Y),jbe=gv(Y)()(),Obe=ep(me),Ube=fo()(),eA=Wi(nt),kbe=Zn(vo),Q$=zn(Y)()(),K$=Zn(ga),Bbe=wp(ze),Hbe=yn(Le),qbe=Es(Dr),Jbe=Uu(),Wbe=ne(Ye),x_=J(Rn),$be=bf(nt),N_=rn(Qe)($n),zbe=xt(xr),nA=J(Xn),Vbe=Bo(Xn)(vn),Qbe=lr(Xn),Y$=Ma(Le),Kbe=ut(yr(Ga)),od=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),aA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),tA=function(){function e(){}return e.value=new e,e}(),X$=function(){function e(){}return e.value=new e,e}(),rA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Z$=function(e){return function(n){return function(a){var t=Se([V$("text-center")("The host just asked a poll question!"),V$("text-center")("To participate in live polls, please introduce yourself:"),Qp({cancelButton:new T({text:"Not now",click:a(new od({keepShowingPolls:!1}))}),autoFocus:!0})(e)(n.registration)(function(i){return a(rA.create(i))}),l1("small mt-3")([Xp(e),l1("mt-2")([Xe("After submitting, you\u2019ll be able to answer all "),Nbe("")("future"),Xe(" poll questions in this stream!")])])]),o=Se([jbe("font-weight-bold fw-bold")({id:Ii})(n.poll.question),l1("d-flex flex-column ml-4")(w0(function(i){return function(l){return Obe("form-check-label mb-2")([Ube("form-check-input mt-2 t--option")({checked:eA(i)(n.selected),onChange:kbe(a)(function(s){return new aA(i)}),type:function(){return n.poll.multiSelect?"checkbox":"radio"}()}),Xe(l)])}})(n.poll.options)),l1("d-flex justify-content-start mt-6")([Q$("btn btn-primary px-4 mr-3 t--submit")({onClick:K$(a)(tA.value),disabled:fi(n.selected)})("Submit answer"),Q$("btn btn-outline-primary px-4 d-flex align-items-center t--skip")({onClick:K$(a)(X$.value)})("Do it later")])]),u=function(){if(e.user instanceof T)return"t--poll-active";if(e.user instanceof M)return"t--poll-registration-form";throw new Error("Failed pattern match at Livestream.Polls.DisplayPoll (line 62, column 18 - line 64, column 45): "+[e.user.constructor.name])}();return Bbe(u)(function(){if(e.user instanceof T)return o;if(e.user instanceof M)return t;throw new Error("Failed pattern match at Livestream.Polls.DisplayPoll (line 58, column 5 - line 60, column 34): "+[e.user.constructor.name])}())}}},ez=function(e){return function(n){return function(a){var t=function(o){return Hbe(qbe("Livestream: Poll Response")(Zc(Fv(e.conference))(Jbe({livestream_poll_id:Wbe(n.poll.id),livestream_poll_question:n.poll.question,livestream_poll_skipped:function(){return o.skipped?"true":""}(),livestream_poll_multiselect:function(){return n.poll.multiSelect?"true":"false"}(),livestream_poll_response:o.option}))))};if(a instanceof od)return x_(n);if(a instanceof aA&&n.poll.multiSelect)return x_({poll:n.poll,registration:n.registration,selected:function(){var o=eA(a.value0)(n.selected);return o?$be(a.value0)(n.selected):Jo(a.value0)(n.selected)}()});if(a instanceof aA)return x_({poll:n.poll,registration:n.registration,selected:[a.value0]});if(a instanceof tA&&fi(n.selected))return x_(n);if(a instanceof tA)return N_(za(zbe(HC(n.poll)(n.selected))(function(o){return Nl(pc)("Error answering a Livestream poll")({poll_id:n.poll.id})(function(u){return nA(ge)})})))(function(){return N_(za(Vbe(w0(function(o){return function(u){return{idx:o,opt:u}}})(n.poll.options))(function(o){return Qbe(eA(o.idx)(n.selected))(t({skipped:!1,option:o.opt}))})))(function(){return N_(Y$(nA(new od({keepShowingPolls:!0}))))(function(){return x_(n)})})});if(a instanceof X$)return N_(za(HC(n.poll)([])))(function(){return N_(za(t({skipped:!0,option:""})))(function(){return N_(Y$(nA(new od({keepShowingPolls:!0}))))(function(){return x_(n)})})});if(a instanceof rA)return Kbe(rA.create)(function(o){return{poll:n.poll,selected:n.selected,registration:o}})(Kp(n.registration)(a.value0));throw new Error("Failed pattern match at Livestream.Polls.DisplayPoll (line 114, column 24 - line 161, column 55): "+[a.constructor.name])}}},nz=function(e){return N_(za(OO(e)))(function(){return x_({poll:e,selected:[],registration:Yp})})};var az=rn(Qe),Ybe=az(sa),Xbe=Z(sa),tz=yn(Le),Zbe=Bo(Xn)(xu),e1e=Es(Dr),rz=Uu(),n1e=ne(Pg),a1e=ne(ei),c1=ne(Ye),Rl=J(Rn),oz=yr(Ga),uz=ut(oz),iz=Z($n),lz=fr(oz),$v=az($n),t1e=Re(nt),zv=J(oa),vD=ny(Le),fD=U(ae),r1e=U(Gu),_D=h0(vn),oA=Sa(),cz=Ti(oA(B({reflectSymbol:function(){return"poll_id"}})(un)(on)))(Le),o1e=Xu(Le),u1e=Re(Wt(Xm)),i1e=Ti(oA(B({reflectSymbol:function(){return"conference_id"}})(un)(on)))(Le),uA=Re(Wt(nt)),iA=Ti(oA(B({reflectSymbol:function(){return"id"}})(un)(on)))(Le),pD=function(){function e(){}return e.value=new e,e}(),ud=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),dD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),id=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),s1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),v1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),lA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),ld=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),sz=function(e){return function(n){return function(a){if(n.stage instanceof pD)return Vn;if(n.stage instanceof ud)return Z$(e)(n.stage.value0)(function(t){return a(id.create(t))});if(n.stage instanceof dD)return J$(e)(n.stage.value0)(function(t){return a(s1.create(t))});throw new Error("Failed pattern match at Livestream.Live.VideoOverlay (line 96, column 3 - line 102, column 59): "+[n.stage.constructor.name])}}},l1e=function(e){return function(n){return e instanceof dD?$$(e.value0)(n):!1}},c1e=function(){return function(e){return function(n){return function(a){return Ybe(Xt(100))(function(){return Xbe(tz(Ty(Ii)))(function(t){return Zbe(t)(function(o){return tz(function(){var i=mF(QS(o))(),l=M8({x:i.left+1,y:i.top+1})(),s=pF(QS(l))();return e1e(n)(Zc(rz(a))(Zc(Fv(e.conference))(rz({livestream_popup_visible:n1e(s===Ii)}))))()})})})})}}}},vz=c1e(),s1e=function(e){var n=function(){return vz(e)("Livestream: CTA Popup Shown")},a=n();return function(t){if(t instanceof vl)return a({livestream_cta_target_conference_id:a1e(t.value0.conferenceId)});if(t instanceof _l)return a({livestream_cta_id:c1(t.value0.id)});if(t instanceof fl)return a({livestream_cta_id:c1(t.value0.id),livestream_cta_title:t.value0.title,livestream_cta_url:t.value0.url});if(t instanceof pl)return a({livestream_cta_id:c1(t.value0.id),livestream_cta_title:t.value0.title});throw new Error("Failed pattern match at Livestream.Live.VideoOverlay (line 156, column 29 - line 173, column 8): "+[t.constructor.name])}},fz=function(e){return function(n){return function(a){if(a instanceof id&&a.value0 instanceof od)return Rl({stage:pD.value,showPolls:a.value0.value0.keepShowingPolls});var t=function(o){if(a instanceof id)return Rl(n);if(a instanceof s1){if(a.value0 instanceof En)return Rl({showPolls:n.showPolls,stage:pD.value});var u=function(s){return Rl(n)};return a.value0 instanceof Ae&&n.stage instanceof dD?uz(s1.create)(function(s){return{showPolls:n.showPolls,stage:new dD(s)}})(W$(e)(n.stage.value0)(a.value0.value0)):u(!0)}var u=function(l){if(a instanceof v1&&n.showPolls)return iz(lz(id.create)(nz(a.value0)))(function(d){return $v(za(vz(e)("Livestream: Poll Popup Shown")({livestream_poll_id:c1(a.value0.id)})))(function(){return Rl({showPolls:n.showPolls,stage:new ud(d)})})});if(a instanceof v1)return Rl(n);var s=function(d){if(a instanceof lA||a instanceof ld&&l1e(n.stage)(a.value0))return Rl(n);if(a instanceof ld)return $v(za(s1e(e)(a.value0)))(function(){return iz(lz(s1.create)(z$(a.value0)))(function(y){return Rl({showPolls:n.showPolls,stage:new dD(y)})})});throw new Error("Failed pattern match at Livestream.Live.VideoOverlay (line 104, column 1 - line 104, column 76): "+[a.constructor.name])};if(a instanceof lA){if(n.stage instanceof ud){var R=n.stage.value0.poll.id===a.value0.pollId;return R?Rl({showPolls:n.showPolls,stage:pD.value}):s(!0)}return s(!0)}return s(!0)};if(a instanceof v1){if(n.stage instanceof ud){var i=n.stage.value0.poll.id===a.value0.id;return i?Rl(n):u(!0)}return u(!0)}return u(!0)};return a instanceof id&&n.stage instanceof ud?uz(id.create)(function(o){return{showPolls:n.showPolls,stage:new ud(o)}})(ez(e)(n.stage.value0)(a.value0)):t(!0)}}},_z=function(e){var n=function(u){return u instanceof pl?zv(u.value0.id):M.value},a=function(u){return u instanceof _l?zv(u.value0.id):M.value},t=function(u){return u instanceof fl?zv(u.value0.id):M.value},o=function(u){return u instanceof vl?zv(u.value0.conferenceId):M.value};return $v(vD(function(u){return fD(r1e(v1.create)(function(i){return i.poll}))(_D(function(){var i=t1e(u.poll_id);return function(l){return i(function(s){return s.poll.id}(l))}}())(e.conference.polls))})(cz(e.pusher.dataChannel)("show-poll")))(function(){return $v(o1e(function(u){return new lA({pollId:u.poll_id})})(cz(e.pusher.dataChannel)("hide-poll")))(function(){return $v(vD(function(u){return fD(ld.create)(_D(function(){var i=u1e(zv(u.conference_id));return function(l){return i(o(l))}}())(e.ctas))})(i1e(e.pusher.dataChannel)("show-event-cta")))(function(){return $v(vD(function(u){return fD(ld.create)(_D(function(){var i=uA(zv(u.id));return function(l){return i(t(l))}}())(e.ctas))})(iA(e.pusher.dataChannel)("show-general-cta")))(function(){return $v(vD(function(u){return fD(ld.create)(_D(function(){var i=uA(zv(u.id));return function(l){return i(a(l))}}())(e.ctas))})(iA(e.pusher.dataChannel)("show-featured-sps-cta")))(function(){return $v(vD(function(u){return fD(ld.create)(_D(function(){var i=uA(zv(u.id));return function(l){return i(n(l))}}())(e.ctas))})(iA(e.pusher.dataChannel)("show-referral-cta")))(function(){return Rl({stage:pD.value,showPolls:!0})})})})})})})};var v1e=Wl(),cA=Te(me),f1e=qt(ze),_1e=Ba(me),p1e=Qa(Y),pz=wu()(),dz=qt(Y),d1e=Qt(Y),f1=zn(Y)()(),m1e=Br(hu),h1e=rn(Qe),sA=Zn(ga),mz=h1e($n),D1e=AH(),vA=J(Rn),hz=Z(nn),g1e=Qs(Q3),R1e=Ku(mT),y1e=Re(Gy),w1e=Re($s),b1e=ls()(),Dz=function(){function e(){}return e.value=new e,e}(),fA=function(){function e(){}return e.value=new e,e}(),gz=function(){function e(){}return e.value=new e,e}(),_A=function(){function e(){}return e.value=new e,e}(),pA=function(){function e(){}return e.value=new e,e}(),_1=function(e){return function(n){return v1e({onDismiss:n(new En(pA.value)),bodyClass:"t--livestreams-update-network-settings-modal",body:function(){if(e.modalView instanceof Dz)return cA("text-center")([Ia(e.confirmConferenceRegistration)(f1e("mb-4")(_1e("badge badge-soft-primary bg-primary-soft")([p1e("fe fe-check mr-1")(""),Xe("You\u2019re registered!")]))),pz("my-4")({src:"/img/network/counselor.svg",height:"76",width:"91"}),dz("")("Connect with colleges when you attend or register for their livestreams?"),d1e("text-secondary")("Connecting with colleges puts you on their radar and introduces you to admissions officers and current students"),cA("mx-md-6 mt-4")([f1("btn btn-primary w-100 t--livestream-opt-into-auto-connect")({onClick:m1e(function(){return n(new Ae(gz.value))(),n(new Ae(_A.value))()})})("Yes, always connect"),f1("btn btn-outline-primary w-100 mt-3 t--livestream-connect-with-school")({onClick:sA(n)(new Ae(_A.value))})("Only connect with "+e.school.name),f1("btn btn-link mt-3")({onClick:sA(n)(new En(pA.value))})("Close")])]);if(e.modalView instanceof fA)return cA("text-center")([pz("mt-4")({src:"/img/livestreams/network-settings-modal/connection-sent.png",height:"42",width:"42"}),dz("")("Connection request sent!"),f1("mt-4 btn btn-primary t--livestream-network-settings-modal-close")({onClick:sA(n)(new En(pA.value))})("Close")]);throw new Error("Failed pattern match at Livestream.NetworkSettingsModal (line 81, column 13 - line 112, column 12): "+[e.modalView.constructor.name])}()})}},p1=function(e){return function(n){if(n instanceof Ae){if(n.value0 instanceof gz)return mz(za(D1e({publishScope:Ei.value,publishContext:kG.value,autoRequestFromLivestreams:!0,livestreamConference:e.conference})))(function(){return vA({conference:e.conference,confirmConferenceRegistration:e.confirmConferenceRegistration,school:e.school,modalView:fA.value})});if(n.value0 instanceof _A)return mz(za(a6(e.school.id)(e.conference.id)))(function(){return vA({conference:e.conference,confirmConferenceRegistration:e.confirmConferenceRegistration,school:e.school,modalView:fA.value})});throw new Error("Failed pattern match at Livestream.NetworkSettingsModal (line 59, column 31 - line 71, column 44): "+[n.value0.constructor.name])}if(n instanceof En)return vA(e);throw new Error("Failed pattern match at Livestream.NetworkSettingsModal (line 58, column 1 - line 58, column 55): "+[e.constructor.name,n.constructor.name])}},d1=function(e){return function(n){var a=Je(!1)(hz(e.dismissedNetworkSettingsModalAt)(function(o){return new T(g1e(R1e(lC(ge))(o))(30))})),t=function(o){return[n.rcr834NetworkSettingsModal,y1e(o.publishScope)(Ei.value),!o.autoRequestFromLivestreams,e.hasAccessToNetwork,!a]};return Je(!1)(hz(e.profile)(function(o){return new T(KI(w1e(!0))(t(o)))}))}},m1=function(e){return b1e(e)({modalView:Dz.value})};var mD=function(){function e(){}return e.value=new e,e}(),cd=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),hD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),h1=function(){function e(){}return e.value=new e,e}();var Rz=rn(Qe),yz=Rz($n),dA=Ma(Le),E1e=Rz(sa),mA=J(Xn),D1=J(Rn),wz=function(e){return function(n){return function(a){return function(t){return a.throttleState instanceof mD&&t instanceof hD?yz(dA(E1e(Xt(a.delay))(function(){return mA(e(h1.value))})))(function(){return D1(n({delay:a.delay,throttleState:new cd(t.value0)}))}):a.throttleState instanceof cd&&t instanceof hD?D1(n({delay:a.delay,throttleState:new cd(t.value0)})):a.throttleState instanceof cd&&t instanceof h1?yz(dA(mA(a.throttleState.value0)))(function(){return D1(n({delay:a.delay,throttleState:mD.value}))}):D1(n(a))}}}},bz=function(e){return function(n){return dA(mA(e(new hD(n))))}},Ez=function(e){return{throttleState:mD.value,delay:e}};var g1=Te(Y),R1=Te(me),I1e=qt(Y),Ns=ne(Ye),T1e=io(tr),Iz=Te(ze),S1e=or(Y)()(),C1e=Vo(Y),F1e=Ba(Y),G1e=$f(ze),M1e=oj(me)()(),Tz=vs(aa),y1=zn(Y)()(),hA=Zn(ga),Sz=Wi(nt),Cz=$f(me),w1=cs(Y),A1e=cs(ze),L1e=cs(me),P1e=Z0(me),x1e=K0(me),sd=Y0(Y),N1e=X0(me),b1=_e(Ve),j1e=qo(aa),DD=rn(Qe)($n),DA=Ma(Le),O1e=xt(xr),Fz=J(Xn),Vv=J(Rn),gA=U(Ga),U1e=Re(i7),Gz=ul(aa)(vn),k1e=qg(aa),B1e=tn(Rt),H1e=bf(nt),q1e=Xu(Le),J1e=aw(Le),E1=function(){function e(){}return e.value=new e,e}(),Mz=function(){function e(){}return e.value=new e,e}(),Az=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Lz=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),RA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Pz=function(){function e(){}return e.value=new e,e}(),xz=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Nz=function(){function e(){}return e.value=new e,e}(),yA=function(){function e(){}return e.value=new e,e}(),jz=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),wA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Oz=function(e){return function(n){return function(a){if(e.conference.polls.length===0)return Vn;var t=function(){if(n.stage instanceof E1)return Vn;if(n.stage instanceof Mz)return g1("position-absolute-fullsize d-flex align-items-center justify-content-center bg-semi-transparent-white")("Switching...");throw new Error("Failed pattern match at Livestream.Polls.LaunchPolls (line 185, column 24 - line 190, column 25): "+[n.stage.constructor.name])}(),o=R1("d-flex flex-nowrap align-items-baseline")([I1e("")("Polls"),g1("text-muted ml-3 small")("Polls will be shown to viewers "+(Ns(e.videoLagSeconds)+" seconds after you launch them, to account for the audio/video delay"))]),u=function(s){return function(R){return function(d){var y=function(I){return function(b){var S=function(){if(R===0)return"0%";if(qe)return Ns(T1e(100*b|0)(R))+"%";throw new Error("Failed pattern match at Livestream.Polls.LaunchPolls (line 181, column 13 - line 183, column 69): "+[])}();return R1("row align-items-center bg-light-grey mb-1 py-2 t--poll-response-option")([g1("col-7 d-flex justify-content-end")(I),Iz("col-4")(Iz("progress")(S1e("progress-bar")({style:rt({width:S})})(""))),R1("col-1")([C1e("")(Ns(b)),F1e("text-secondary text-nowrap")(" ("+(S+")"))])])}};return G1e("t--poll-responses-"+Ns(s.id))(M1e("py-0")({colSpan:6})(WI(y)(s.options)(d.optionCounts)))}}},i=function(s){var R=Je(s.status)(Tz(s.poll.id)(n.statuses)),d=y1("btn btn-white btn-sm px-4 t--open")({onClick:hA(a)(new Az(s.poll))})("Launch poll");if(R instanceof ys)return d;if(R instanceof Rc)return Se([y1("btn btn-success btn-sm px-4 mr-3")({disabled:!0})("Poll LIVE"),y1("btn btn-danger btn-sm px-4 t--close")({onClick:hA(a)(new Lz(s.poll))})("Close poll")]);if(R instanceof ws)return d;throw new Error("Failed pattern match at Livestream.Polls.LaunchPolls (line 143, column 17 - line 155, column 21): "+[R.constructor.name])},l=function(s){var R=Sz(s.poll.id)(n.expandedResponses),d=Tz(s.poll.id)(n.responses),y=bn(0)(function(S){return S.answered})(d),I=bn(0)(function(S){return S.seen})(d),b=bn(0)(function(S){return S.skipped})(d);return Se([Cz("t--poll t--poll-"+Ns(s.poll.id))([w1("pt-3")(function(){var S=Ct(s.poll.autoDisplayMinutesFromStart);return S?"\u23F0 ":""}()+s.poll.question),A1e("text-nowrap")(i(s)),w1("t--shown")(Ns(I)),L1e("t--answers")([Xe(Ns(y)),y1("btn btn-sm btn-white ml-2 py-0 px-1 "+("fe fe-chevron-"+function(){return R?"up":"down t--expand-responses"}()))({onClick:hA(a)(new xz(s.poll.id))})("")]),w1("t--skipped")(Ns(b)),w1("t--pending")(Ns((I-y|0)-b|0))]),Ia(R)(da(d)(u(s.poll)(y)))])};return Se([o,R1("t--polls position-relative")([da(n.error)(function(s){return g1("alert alert-danger")(s)}),P1e("table table-sm mb-0")([x1e("")([Cz("")([sd("")("Question"),sd("")("Actions"),sd("")("# saw poll"),sd("")("# answered"),sd("")("# skipped"),sd("")("# not responded")])]),N1e("")(b1(j1e(function(s){return-function(R){return R.poll.id}(s)|0})(e.conference.polls))(l))]),t])])}}},Uz=function(e){return function(n){var a=function(t){return DD(DA(O1e(t)(function(o){return Fz(Pz.value)})))(function(){return Vv({expandedResponses:n.expandedResponses,responseThrottle:n.responseThrottle,responses:n.responses,statuses:n.statuses,stage:Mz.value,error:M.value})})};return function(t){if(t instanceof Az)return a(gA(RA.create)(BC(t.value0)(Rc.value)));if(t instanceof Lz)return a(gA(RA.create)(BC(t.value0)(ws.value)));if(t instanceof RA){var o=b1(iu(function(){var u=U1e(Rc.value);return function(i){return u(function(l){return l.status}(i))}}())(t.value0))(function(u){return u.pollId});return Vv({error:n.error,responseThrottle:n.responseThrottle,responses:n.responses,statuses:Gz(b1(t.value0)(function(u){return new Dn(u.pollId,u.status)})),expandedResponses:k1e(B1e(n.expandedResponses)(o)),stage:E1.value})}if(t instanceof Pz)return Vv({expandedResponses:n.expandedResponses,responseThrottle:n.responseThrottle,responses:n.responses,statuses:n.statuses,stage:E1.value,error:new T("That didn't work for some reason, try again")});if(t instanceof xz)return Vv({error:n.error,responseThrottle:n.responseThrottle,responses:n.responses,stage:n.stage,statuses:n.statuses,expandedResponses:function(){var u=Sz(t.value0)(n.expandedResponses);return u?H1e(t.value0)(n.expandedResponses):Jo(t.value0)(n.expandedResponses)}()});if(t instanceof Nz)return DD(bz(wA.create)(yA.value))(function(){return Vv(n)});if(t instanceof yA)return DD(DA(gA(jz.create)(VO(e.conference.id))))(function(){return Vv(n)});if(t instanceof jz)return Vv({error:n.error,expandedResponses:n.expandedResponses,responseThrottle:n.responseThrottle,stage:n.stage,statuses:n.statuses,responses:Gz(b1(t.value0)(function(u){return new Dn(u.pollId,u.responses)}))});if(t instanceof wA)return wz(wA.create)(function(u){return{error:n.error,expandedResponses:n.expandedResponses,responses:n.responses,stage:n.stage,statuses:n.statuses,responseThrottle:u}})(n.responseThrottle)(t.value0);throw new Error("Failed pattern match at Livestream.Polls.LaunchPolls (line 202, column 22 - line 248, column 98): "+[t.constructor.name])}}},kz=function(e){return DD(q1e(hn(Nz.value))(J1e(e.pusher.dataChannel)("poll-responses-changed")))(function(){return DD(DA(Fz(yA.value)))(function(){return Vv({statuses:fs,responses:fs,expandedResponses:[],responseThrottle:Ez(500),stage:E1.value,error:M.value})})})};var Bz=wu()(),Hz=Te(me),qz=qt(Y),Jz=Hr(Y),Wz=Bz("img-fluid mb-6")({src:"/img/logo-white.svg",style:rt({width:"5em"})}),I1=function(e){return Hz(e+` t--splashscreen position-absolute-fullsize d-flex flex-column align-items-center justify-content-around bg-dark text-white `)},gD=function(e){return I1("")([qz("text-center")(e)])},bA=I1("t--splashscreen-intro")([Te(ze)("text-center mt-7")(Jz("")("The recording will load in a moment.")),Wz]),T1=I1("px-4 px-md-6 t--splashscreen-intro")([Bz("img-fluid")({src:"/img/illustrations/livestreams/2022-02-intro.svg"})]),$z=I1("t--splashscreen-complete")([Hz("text-center mt-7")([Jz("")("The event is now over."),qz("")("Thank you for attending!"),Yu(Y)("")("A recording will be available to watch shortly.")]),Wz]);var S1=e=>e.play();var Qv=Fu(zz());$a();var Vz=e=>{let[n,a]=ka.useState(),[t,o]=ka.useState(),u=ka.useRef();return u.current=e,Gt(()=>{if(!t)return Qv.default.isSupported()?a(W1e(e.videoStreamUrl,e.videoElementId,u)):e.onNotSupported(),o(!0),()=>{n&&n.destroy()}}),null},W1e=(e,n,a)=>{let t=document.getElementById(n);return t?(hls=new Qv.default,a.current.onInstanceCreated&&a.current.onInstanceCreated(hls),hls.on(Qv.default.Events.ERROR,function(o,u){if(a.current.onError&&a.current.onError("HLS error: "+u.type,u),u.fatal)switch(u.type){case Qv.default.ErrorTypes.MEDIA_ERROR:hls.recoverMediaError();break;default:hls.destroy(),a.current.onCriticalFail&&a.current.onCriticalFail(u.type);break}}),hls.on(Qv.default.Events.MEDIA_ATTACHED,()=>hls.loadSource(e)),hls.on(Qv.default.Events.MANIFEST_PARSED,()=>a.current.onReady&&a.current.onReady()),hls.on(Qv.default.Events.INIT_PTS_FOUND,(o,u)=>a.current.onInitialPts&&a.current.onInitialPts({initPTS:u.initPTS})),hls.attachMedia(t),hls):(a.current.onCriticalFail&&a.current.onCriticalFail("Couldn't find element #"+n),null)};var $1e=mv();var Qz=function(){return function(){return $1e(Vz)}};$a();var zl={PRIMARY:"#008CFD",SECONDARY:"#6E84A3",WHITE:"#FFF",GRAY_300:"#E3EBF6"};var bD=Fu(aV()),tV=4,bEe=({trackColor:e,background:n})=>({props:a,children:t})=>ka.createElement("div",Object.assign({},a,{style:Object.assign({},a.style,{height:`${tV}px`,borderRadius:`${tV*2}px`,background:n||e})}),...t),EEe=({horizontal:e})=>({props:n,isDragged:a})=>ka.createElement("svg",Object.assign({},n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",viewBox:"0 0 18 18"}),ka.createElement("circle",{cx:"9",cy:"9",r:"8.5",fill:a?zl.SECONDARY:zl.WHITE,stroke:zl.SECONDARY}),ka.createElement("path",{stroke:a?zl.WHITE:zl.SECONDARY,d:e?"M7.5 6L7.5 12":"M6 7.5L12 7.5"}),ka.createElement("path",{stroke:a?zl.WHITE:zl.SECONDARY,d:e?"M10.5 6L10.5 12":"M6 10.5L12 10.5"})),rV=e=>ka.createElement("div",{"aria-label":e.ariaLabel},ka.createElement(bD.Range,{step:e.step,min:e.min,max:e.max,values:[e.value],onChange:([n])=>e.onChange(n),onFinalChange:([n])=>e.onFinalChange&&e.onFinalChange(n),renderTrack:bEe({trackColor:e.trackColor||zl.GRAY_300,background:e.fillBefore?(0,bD.getTrackBackground)({values:[e.value],colors:[zl.PRIMARY,zl.GRAY_300],min:e.min,max:e.max,"aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":e.value}):void 0}),renderThumb:EEe({horizontal:!0})}));var IEe=mv(),oV={CanPassToJavaScript0:function(){},CanReceiveFromJavaScript1:function(){return iv}};var uV=function(e){return function(){return function(){return IEe(rV)}}};var TEe=or(ze)()(),SEe=uV(oV)()(),CEe=Zn(vo),FEe=zn(ze)()(),GEe=Zn(ga),iV=Te(me),MEe=Ba(Y),M1=Ma(Le),SA=J(Xn),lV=rn(Qe),AEe=tt(U0),Ac=J(Rn),LEe=Q0(Le),CA=yn(Le),PEe=U(ae),xEe=vc(j0),NEe=lV(sa),Kv=lV($n),jEe=lr(Rn),OEe=Z(sa),UEe=Xl(Qu),kEe=lr(ct),FA=function(){function e(){}return e.value=new e,e}(),GA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),MA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),cV=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),AA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),sV=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),vV=function(){function e(){}return e.value=new e,e}(),BEe=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),fV=function(e){return function(n){if(e.videoState instanceof M)return Vn;if(e.videoState instanceof T){var a=TEe("")({style:rt({minWidth:"6rem",width:"6rem"})})(SEe({value:function(){return e.videoState.value0.muted?0:e.videoState.value0.volume}(),min:0,max:1,step:.05,onChange:CEe(n)(function(i){return Ae.create(GA.create(i))}),ariaLabel:"Volume slider"})),t=function(){if(e.videoState.value0.muted)return"fe-volume-x";if(qe)return"fe-volume-2";throw new Error("Failed pattern match at Livestream.VideoPlayer.CustomControls (line 128, column 5 - line 130, column 34): "+[])}(),o=FEe("btn large px-3 py-1 mr-3 text-white fe "+t)({onClick:GEe(n)(new Ae(FA.value))})(Vn),u=iV("d-flex align-items-center text-white px-3")([Xe("LIVE"),MEe("text-danger x-large ml-2 mt-n1")("\u25CF")]);return iV("mb-2 w-100 d-flex align-items-center bg-semi-transparent-black "+function(){return e.visible?"":"hidden"}())([Ia(e.config.liveIndicator)(u),Ia(e.config.mute)(o),Ia(e.config.volume)(a)])}throw new Error("Failed pattern match at Livestream.VideoPlayer.CustomControls (line 105, column 1 - line 105, column 50): "+[e.constructor.name,n.constructor.name])}},_V=function(e){return Ae.create(MA.create(e))},pV=function(e){return M1(SA(new En(new BEe(function(n){return function(){return e(n)(),new Ae(new MA(n))}}))))},A1=function(){return new Ae(new AA(!0))}(),dV=function(e){return{config:e,videoState:M.value,visible:!1,visibilityExpiration:AEe}},mV=2e3,hV=function(e){return function(n){if(n instanceof En)return Ac(e);if(n instanceof Ae){var a=LEe(CA(function(){var i=Zu();return PEe(function(l){return Ae.create(sV.create(l))})(xEe(mV)(i))})),t=NEe(Xt(mV))(function(){return SA(new Ae(vV.value))}),o=function(u){if(n.value0 instanceof FA)return Ac(e);var i=function(l){if(n.value0 instanceof GA)return Ac(e);if(n.value0 instanceof MA)return Kv(M1(CA(function(){var R=ZS(n.value0.value0)(),d=YS(n.value0.value0)();return new Ae(new cV({muted:R,volume:d}))})))(function(){return Ac(e)});if(n.value0 instanceof cV)return Ac({config:e.config,visibilityExpiration:e.visibilityExpiration,visible:e.visible,videoState:new T(n.value0.value0)});if(n.value0 instanceof AA)return Kv(jEe(n.value0.value0)(a))(function(){return Kv(M1(t))(function(){return Ac({config:e.config,videoState:e.videoState,visibilityExpiration:e.visibilityExpiration,visible:n.value0.value0})})});if(n.value0 instanceof sV)return Ac({config:e.config,videoState:e.videoState,visible:e.visible,visibilityExpiration:n.value0.value0});if(n.value0 instanceof vV)return Kv(M1(OEe(CA(Zu))(function(s){var R=UEe(s)(e.visibilityExpiration);return R?SA(new Ae(new AA(!1))):t})))(function(){return Ac(e)});throw new Error("Failed pattern match at Livestream.VideoPlayer.CustomControls (line 144, column 1 - line 144, column 55): "+[n.value0.constructor.name])};return n.value0 instanceof GA&&e.videoState instanceof T?Kv(a)(function(){return Kv(pV(function(l){return function(){return kEe(n.value0.value0>0)(e_(!1)(l))(),XS(n.value0.value0)(l)()}}))(function(){return Ac({config:e.config,visibilityExpiration:e.visibilityExpiration,visible:e.visible,videoState:new T({muted:e.videoState.value0.muted,volume:n.value0.value0})})})}):i(!0)};return n.value0 instanceof FA&&e.videoState instanceof T?Kv(a)(function(){return Kv(pV(e_(!e.videoState.value0.muted)))(function(){return Ac({config:e.config,visibilityExpiration:e.visibilityExpiration,visible:e.visible,videoState:new T({volume:e.videoState.value0.volume,muted:!e.videoState.value0.muted})})})}):o(!0)}throw new Error("Failed pattern match at Livestream.VideoPlayer.CustomControls (line 144, column 1 - line 144, column 55): "+[e.constructor.name,n.constructor.name])}},DV=function(e){if(e instanceof T)return!1;if(e instanceof M)return!0;throw new Error("Failed pattern match at Livestream.VideoPlayer.CustomControls (line 213, column 1 - line 213, column 37): "+[e.constructor.name])};var gV=e=>n=>a=>()=>e.then(a,n),RV=e=>e instanceof Error,yV=e=>e===null?"null":typeof e=="undefined"?"undefined":e.toString();var HEe=J(Qc(cr)),qEe=M0(cr),JEe=pn(dn),wV=ma(rR(sR)(cr)),WEe=Xc(cr),$Ee=U(tR(Wc)),zEe=sm(cr),VEe=Eg(Hn),QEe=Xa(Cx);var KEe=function(e){var n=function(a){if(RV(a))return HEe(a);if(qe)return qEe(new lm(""));throw new Error("Failed pattern match at Utils.Promise (line 49, column 5 - line 51, column 43): "+[a.constructor.name])};return kt(function(a){return cu("Promise failed: "+yV(e))})(JEe)(nh(wV(n(e))(wV(WEe("Error")(e))($Ee(cu)(zEe(e))))))},L1=function(e){return fv(function(n){return VEe(QEe)(gV(e)(function(a){return n(Me.create(KEe(a)))()})(function(a){return n(Pe.create(a))()}))})};var YEe=Z(nn),XEe=Te(ze),LA=Br(VR),ED=Z($t),PA=Zs(ct)(xu),P1=Zn(ga),bV=YR(Y)()(),ZEe=Qz()(),eIe=J(ct),ID=Zn(vo),EV=or(ze)()(),nIe=zn(me)()(),aIe=Qa(Y),tIe=Te(me),IV=rn(Qe),rIe=Is(Le)(),oIe=vi(vn)(st),uIe=Re(Wt(nt)),vd=IV(sa),iIe=qs(Xn),lIe=Lr(q0),ao=J(Xn),TV=yn(Le),SV=xt(xr),FV=RI(sa),Jr=J(Rn),to=IV($n),Eu=Ma(Le),GV=U(Ga),MV=Q0(Le),AV=U(Hn),cIe=ut(yr(Ga)),sIe=U(ae),vIe=_e(ae),LV=tn(z3),PV=function(){function e(){}return e.value=new e,e}(),xV=function(){function e(){}return e.value=new e,e}(),TD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),NV=function(){function e(){}return e.value=new e,e}(),fd=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),jV=function(){function e(){}return e.value=new e,e}(),OV=function(){function e(){}return e.value=new e,e}(),UV=function(){function e(){}return e.value=new e,e}(),xA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),NA=function(){function e(){}return e.value=new e,e}(),x1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),N1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),j1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),kV=function(){function e(){}return e.value=new e,e}(),jA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),OA=function(){function e(){}return e.value=new e,e}(),BV=function(){function e(){}return e.value=new e,e}(),HV=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),O_=function(){function e(){}return e.value=new e,e}(),Lc=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),O1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),UA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),SD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),kA=function(e){var n=e.Monad0(),a=Z(n.Bind1()),t=yn(e),o=J(n.Applicative0());return function(u){return function(i){return function(l){return a(t(Ty(u.videoId)))(function(s){return bn(o(i.whenNotFound))(l)(YEe(s)(b8))})}}}},qV=kA(Dr),BA=kA(Le),JV=function(e){var n=kA(e);return function(a){return n(a)({whenNotFound:ge})}},fIe=JV(Dr),_Ie=JV(Le),U1=function(e){return function(n){return function(a){var t=function(){var S=XEe("position-absolute-fullsize py-6 d-flex align-items-center justify-content-around");if(n.stage instanceof NV)return S(e.errorScreen("It appears that video playback is not supported in your browser."));if(n.stage instanceof jV)return S(e.errorScreen("The video didn't load correctly, try refreshing the page."));if(n.stage instanceof TD)return S(e.introScreen);if(n.stage instanceof fd)return Vn;throw new Error("Failed pattern match at Livestream.VideoPlayer (line 253, column 20 - line 264, column 16): "+[n.stage.constructor.name])}(),o=function(){return n.stage instanceof TD?n.stage.value0.reset:!1}(),u=LA(function(S){return ED(Iy(S))(PA(function(L){return a(new Ae(new UA({time:L})))}))}),i=LA(function(S){return ED(Iy(S))(PA(function(L){return a(new Ae(new O1({playing:!0,time:L})))}))}),l=function(S){return a(En.create(S))},s=LA(function(S){return ED(Iy(S))(PA(function(L){return l(new jA(L))}))}),R=P1(l)(kV.value),d=Se([bV("w-100 t--real-video")({id:n.videoId,controls:St(n.customControls),onVolumeChange:R,onTimeUpdate:u,onPlay:i,onPause:s})(""),Ia(!o)(ZEe({videoStreamUrl:e.watchUrl,videoElementId:n.videoId,onNotSupported:l(OV.value),onError:function(S,L){return ge},onCriticalFail:ID(l)(function(S){var L=S==="networkError";return L?NA.value:new x1("HLS player crashed")}),onReady:l(new N1({autoPlay:e.autoPlay})),onInitialPts:ID(l)(function(S){return new HV(S.initPTS)})}))]),y=function(){return n.stage instanceof fd&&n.stage.value0.unmuteOverlay?EV("position-absolute-fullsize d-flex align-items-center justify-content-center t--unmute-overlay")({style:rt({pointerEvents:"none"})})(nIe("btn btn-sm btn-light border-dark px-4 d-flex align-items-center")({onClick:P1(l)(BV.value),style:rt({pointerEvents:"all"})})([Xe("click for sound"),aIe("fe fe-volume-2 ml-2")("")])):Vn}(),I=function(S){return EV("position-absolute-fullsize d-flex align-items-end t--controls-overlay")({onMouseMove:ID(l)(function(L){return new Lc(A1)}),onMouseDown:ID(l)(function(L){return new Lc(A1)}),onTouchStart:ID(l)(function(L){return new Lc(A1)})})(fV(S)(function(L){return l(Lc.create(L))}))},b=bV("w-100 t--real-video")({id:n.videoId,controls:St(n.customControls),playsInline:!0,onVolumeChange:R,onTimeUpdate:u,onPlay:i,onPause:s,onLoadedMetadata:P1(l)(new N1({autoPlay:e.autoPlay})),onError:P1(l)(NA.value),src:function(){return o?"":e.watchUrl}()})("");return tIe("position-relative w-100")([function(){if(n.support instanceof PV)return d;if(n.support instanceof xV)return b;throw new Error("Failed pattern match at Livestream.VideoPlayer (line 175, column 7 - line 177, column 40): "+[n.support.constructor.name])}(),da(n.customControls)(I),Ia(n.allowSound)(y),t])}}},pIe=function(e){var n=yn(e.MonadEffect0());return function(a){return n(function(){return fIe(a)(e_(!1))(),OA.value})}},dIe=pIe(N8),HA=function(e){return rIe("Livestream: Error")({livestream_error_message:e})},WV=function(e){return qV(e)({whenNotFound:!1})(KS)},mIe=function(e){return yn(e)(function(){var a=ED(ED(xo)(rC))(tC)();return oIe(function(t){return uIe(Oj(t)(a))(new T(0))})(["iPad","iPod","iPhone"])})},$V=mIe(Le),hIe=function(e){var n=function(t){return vd(iIe(e.allowSound)(lIe(cu("Skipping attempt to play unmuted because sound was programmatically disallowed"))))(function(){return vd(L1(S1(t)))(function(){return ao(new j1({unmuteOverlay:!1}))})})},a=function(t){return vd(TV(e_(!0)(t)))(function(){return vd(L1(S1(t)))(function(){return ao(new j1({unmuteOverlay:!0}))})})};return BA(e)({whenNotFound:new x1("