PageSourceSearch

https://toplist.info/assets/index-_pxeo3Qh.js

js toplist.info collected 2026-10-02 12:27:46 UTC 1,939,834 bytes, 1,490 lines download raw bytes

vendor: 5,718 bytes, lines 1-9
1var xR=Object.defineProperty;var CR=(n,e,t)=>e in n?xR(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var bR=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var Gl=(n,e,t)=>CR(n,typeof e!="symbol"?e+"":e,t);var Kee=bR((gr,yr)=>{(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function t(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=t(s);fetch(s.href,i)}})();function Gi(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var K2={exports:{}},Hl={},q2={exports:{}},At={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var v3;function SR(){if(v3)return At;v3=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.iterator;function p(G){return G===null||typeof G!="object"?null:(G=m&&G[m]||G["@@iterator"],typeof G=="function"?G:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,x={};function b(G,ee,Ee){this.props=G,this.context=ee,this.refs=x,this.updater=Ee||y}b.prototype.isReactComponent={},b.prototype.setState=function(G,ee){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,ee,"setState")},b.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function E(){}E.prototype=b.prototype;function T(G,ee,Ee){this.props=G,this.context=ee,this.refs=x,this.updater=Ee||y}var w=T.prototype=new E;w.constructor=T,v(w,b.prototype),w.isPureReactComponent=!0;var R=Array.isArray,I=Object.prototype.hasOwnProperty,L={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function _(G,ee,Ee){var Ce,Ae={},me=null,ve=null;if(ee!=null)for(Ce in ee.ref!==void 0&&(ve=ee.ref),ee.key!==void 0&&(me=""+ee.key),ee)I.call(ee,Ce)&&!N.hasOwnProperty(Ce)&&(Ae[Ce]=ee[Ce]);var Q=arguments.length-2;if(Q===1)Ae.children=Ee;else if(1<Q){for(var ge=Array(Q),le=0;le<Q;le++)ge[le]=arguments[le+2];Ae.children=ge}if(G&&G.defaultProps)for(Ce in Q=G.defaultProps,Q)Ae[Ce]===void 0&&(Ae[Ce]=Q[Ce]);return{$$typeof:n,type:G,key:me,ref:ve,props:Ae,_owner:L.current}}function j(G,ee){return{$$typeof:n,type:G.type,key:ee,ref:G.ref,props:G.props,_owner:G._owner}}function F(G){return typeof G=="object"&&G!==null&&G.$$typeof===n}function $(G){var ee={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(Ee){return ee[Ee]})}var z=/\/+/g;function W(G,ee){return typeof G=="object"&&G!==null&&G.key!=null?$(""+G.key):ee.toString(36)}function J(G,ee,Ee,Ce,Ae){var me=typeof G;(me==="undefined"||me==="boolean")&&(G=null);var ve=!1;if(G===null)ve=!0;else switch(me){case"string":case"number":ve=!0;break;case"object":switch(G.$$typeof){case n:case e:ve=!0}}if(ve)return ve=G,Ae=Ae(ve),G=Ce===""?"."+W(ve,0):Ce,R(Ae)?(Ee="",G!=null&&(Ee=G.replace(z,"$&/")+"/"),J(Ae,ee,Ee,"",function(le){return le})):Ae!=null&&(F(Ae)&&(Ae=j(Ae,Ee+(!Ae.key||ve&&ve.key===Ae.key?"":(""+Ae.key).replace(z,"$&/")+"/")+G)),ee.push(Ae)),1;if(ve=0,Ce=Ce===""?".":Ce+":",R(G))for(var Q=0;Q<G.length;Q++){me=G[Q];var ge=Ce+W(me,Q);ve+=J(me,ee,Ee,ge,Ae)}else if(ge=p(G),typeof ge=="function")for(G=ge.call(G),Q=0;!(me=G.next()).done;)me=me.value,ge=Ce+W(me,Q++),ve+=J(me,ee,Ee,ge,Ae);else if(me==="object")throw ee=String(G),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.");return ve}function oe(G,ee,Ee){if(G==null)return G;var Ce=[],Ae=0;return J(G,Ce,"","",function(me){return ee.call(Ee,me,Ae++)}),Ce}function ie(G){if(G._status===-1){var ee=G._result;ee=ee(),ee.then(function(Ee){(G._status===0||G._status===-1)&&(G._status=1,G._result=Ee)},function(Ee){(G._status===0||G._status===-1)&&(G._status=2,G._result=Ee)}),G._status===-1&&(G._status=0,G._result=ee)}if(G._status===1)return G._result.default;throw G._result}var Z={current:null},X={transition:null},ue={ReactCurrentDispatcher:Z,ReactCurrentBatchConfig:X,ReactCurrentOwner:L};function se(){throw Error("act(...) is not supported in production builds of React.")}return At.Children={map:oe,forEach:function(G,ee,Ee){oe(G,function(){ee.apply(this,arguments)},Ee)},count:function(G){var ee=0;return oe(G,function(){ee++}),ee},toArray:function(G){return oe(G,function(ee){return ee})||[]},only:function(G){if(!F(G))throw Error("React.Children.only expected to receive a single React element child.");return G}},At.Component=b,At.Fragment=t,At.Profiler=s,At.PureComponent=T,At.StrictMode=r,At.Suspense=u,At.__SECRET_INT
vendor: 4,255 bytes, lines 9-25
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ue,At.act=se,At.cloneElement=function(G,ee,Ee){if(G==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+G+".");var Ce=v({},G.props),Ae=G.key,me=G.ref,ve=G._owner;if(ee!=null){if(ee.ref!==void 0&&(me=ee.ref,ve=L.current),ee.key!==void 0&&(Ae=""+ee.key),G.type&&G.type.defaultProps)var Q=G.type.defaultProps;for(ge in ee)I.call(ee,ge)&&!N.hasOwnProperty(ge)&&(Ce[ge]=ee[ge]===void 0&&Q!==void 0?Q[ge]:ee[ge])}var ge=arguments.length-2;if(ge===1)Ce.children=Ee;else if(1<ge){Q=Array(ge);for(var le=0;le<ge;le++)Q[le]=arguments[le+2];Ce.children=Q}return{$$typeof:n,type:G.type,key:Ae,ref:me,props:Ce,_owner:ve}},At.createContext=function(G){return G={$$typeof:a,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},G.Provider={$$typeof:i,_context:G},G.Consumer=G},At.createElement=_,At.createFactory=function(G){var ee=_.bind(null,G);return ee.type=G,ee},At.createRef=function(){return{current:null}},At.forwardRef=function(G){return{$$typeof:l,render:G}},At.isValidElement=F,At.lazy=function(G){return{$$typeof:f,_payload:{_status:-1,_result:G},_init:ie}},At.memo=function(G,ee){return{$$typeof:d,type:G,compare:ee===void 0?null:ee}},At.startTransition=function(G){var ee=X.transition;X.transition={};try{G()}finally{X.transition=ee}},At.unstable_act=se,At.useCallback=function(G,ee){return Z.current.useCallback(G,ee)},At.useContext=function(G){return Z.current.useContext(G)},At.useDebugValue=function(){},At.useDeferredValue=function(G){return Z.current.useDeferredValue(G)},At.useEffect=function(G,ee){return Z.current.useEffect(G,ee)},At.useId=function(){return Z.current.useId()},At.useImperativeHandle=function(G,ee,Ee){return Z.current.useImperativeHandle(G,ee,Ee)},At.useInsertionEffect=function(G,ee){return Z.current.useInsertionEffect(G,ee)},At.useLayoutEffect=function(G,ee){return Z.current.useLayoutEffect(G,ee)},At.useMemo=function(G,ee){return Z.current.useMemo(G,ee)},At.useReducer=function(G,ee,Ee){return Z.current.useReducer(G,ee,Ee)},At.useRef=function(G){return Z.current.useRef(G)},At.useState=function(G){return Z.current.useState(G)},At.useSyncExternalStore=function(G,ee,Ee){return Z.current.useSyncExternalStore(G,ee,Ee)},At.useTransition=function(){return Z.current.useTransition()},At.version="18.3.1",At}var x3;function Xo(){return x3||(x3=1,q2.exports=SR()),q2.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var C3;function ER(){if(C3)return Hl;C3=1;var n=Xo(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,u,d){var f,m={},p=null,y=null;d!==void 0&&(p=""+d),u.key!==void 0&&(p=""+u.key),u.ref!==void 0&&(y=u.ref);for(f in u)r.call(u,f)&&!i.hasOwnProperty(f)&&(m[f]=u[f]);if(l&&l.defaultProps)for(f in u=l.defaultProps,u)m[f]===void 0&&(m[f]=u[f]);return{$$typeof:e,type:l,key:p,ref:y,props:m,_owner:s.current}}return Hl.Fragment=t,Hl.jsx=a,Hl.jsxs=a,Hl}var b3;function wR(){return b3||(b3=1,K2.exports=ER()),K2.exports}var o=wR(),S=Xo();const Ke=Gi(S);var Nd={},Y2={exports:{}},er={},X2={exports:{}},Z2={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var S3;function TR(){return S3||(S3=1,(function(n){function e(X,ue){var se=X.length;X.push(ue);e:for(;0<se;){var G=se-1>>>1,ee=X[G];if(0<s(ee,ue))X[G]=ue,X[se]=ee,se=G;else break e}}function t(X){return X.length===0?null:X[0]}function r(X){if(X.length===0)return null;var ue=X[0],se=X.pop();if(se!==ue){X[0]=se;e:for(var G=0,ee=X.length,Ee=ee>>>1;G<Ee;){var Ce=2*(G+1)-1,Ae=X[Ce],me=Ce+1,ve=X[me];if(0>s(Ae,se))me<ee&&0>s(ve,Ae)?(X[G]=ve,X[me]=se,G=me):(X[G]=Ae,X[Ce]=se,G=Ce);else if(me<ee&&0>s(ve,se))X[G]=ve,X[me]=se,G=me;else break e}}return ue}
vendor: 51,300 bytes, lines 25-38
25function s(X,ue){var se=X.sortIndex-ue.sortIndex;return se!==0?se:X.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();n.unstable_now=function(){return a.now()-l}}var u=[],d=[],f=1,m=null,p=3,y=!1,v=!1,x=!1,b=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(X){for(var ue=t(d);ue!==null;){if(ue.callback===null)r(d);else if(ue.startTime<=X)r(d),ue.sortIndex=ue.expirationTime,e(u,ue);else break;ue=t(d)}}function R(X){if(x=!1,w(X),!v)if(t(u)!==null)v=!0,ie(I);else{var ue=t(d);ue!==null&&Z(R,ue.startTime-X)}}function I(X,ue){v=!1,x&&(x=!1,E(_),_=-1),y=!0;var se=p;try{for(w(ue),m=t(u);m!==null&&(!(m.expirationTime>ue)||X&&!$());){var G=m.callback;if(typeof G=="function"){m.callback=null,p=m.priorityLevel;var ee=G(m.expirationTime<=ue);ue=n.unstable_now(),typeof ee=="function"?m.callback=ee:m===t(u)&&r(u),w(ue)}else r(u);m=t(u)}if(m!==null)var Ee=!0;else{var Ce=t(d);Ce!==null&&Z(R,Ce.startTime-ue),Ee=!1}return Ee}finally{m=null,p=se,y=!1}}var L=!1,N=null,_=-1,j=5,F=-1;function $(){return!(n.unstable_now()-F<j)}function z(){if(N!==null){var X=n.unstable_now();F=X;var ue=!0;try{ue=N(!0,X)}finally{ue?W():(L=!1,N=null)}}else L=!1}var W;if(typeof T=="function")W=function(){T(z)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,oe=J.port2;J.port1.onmessage=z,W=function(){oe.postMessage(null)}}else W=function(){b(z,0)};function ie(X){N=X,L||(L=!0,W())}function Z(X,ue){_=b(function(){X(n.unstable_now())},ue)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(X){X.callback=null},n.unstable_continueExecution=function(){v||y||(v=!0,ie(I))},n.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<X?Math.floor(1e3/X):5},n.unstable_getCurrentPriorityLevel=function(){return p},n.unstable_getFirstCallbackNode=function(){return t(u)},n.unstable_next=function(X){switch(p){case 1:case 2:case 3:var ue=3;break;default:ue=p}var se=p;p=ue;try{return X()}finally{p=se}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(X,ue){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var se=p;p=X;try{return ue()}finally{p=se}},n.unstable_scheduleCallback=function(X,ue,se){var G=n.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?G+se:G):se=G,X){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=se+ee,X={id:f++,callback:ue,priorityLevel:X,startTime:se,expirationTime:ee,sortIndex:-1},se>G?(X.sortIndex=se,e(d,X),t(u)===null&&X===t(d)&&(x?(E(_),_=-1):x=!0,Z(R,se-G))):(X.sortIndex=ee,e(u,X),v||y||(v=!0,ie(I))),X},n.unstable_shouldYield=$,n.unstable_wrapCallback=function(X){var ue=p;return function(){var se=p;p=ue;try{return X.apply(this,arguments)}finally{p=se}}}})(Z2)),Z2}var E3;function IR(){return E3||(E3=1,X2.exports=TR()),X2.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var w3;function RR(){if(w3)return er;w3=1;var n=Xo(),e=IR();function t(c){for(var h="https://reactjs.org/docs/error-decoder.html?invariant="+c,C=1;C<arguments.length;C++)h+="&args[]="+encodeURIComponent(arguments[C]);return"Minified React error #"+c+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,s={};function i(c,h){a(c,h),a(c+"Capture",h)}function a(c,h){for(s[c]=h,c=0;c<h.length;c++)r.add(h[c])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,d=/^[: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]*$/,f={},m={};function p(c){return u.call(m,c)?!0:u.call(f,c)?!1:d.test(c)?m[c]=!0:(f[c]=!0,!1)}function y(c,h,C,A){if(C!==null&&C.type===0)return!1;switch(typeof h){case"function":case"symbol":return!0;case"boolean":return A?!1:C!==null?!C.acceptsBooleans:(c=c.toLowerCase().slice(0,5),c!=="data-"&&c!=="aria-");default:return!1}}function v(c,h,C,A){if(h===null||typeof h>"u"||y(c,h,C,A))return!0;if(A)return!1;if(C!==null)switch(C.type){case 3:return!h;case 4:return h===!1;case 5:return isNaN(h);case 6:return isNaN(h)||1>h}return!1}function x(c,h,C,A,k,O,U){this.acceptsBooleans=h===2||h===3||h===4,this.attributeName=A,this.attributeNamespace=k,this.mustUseProperty=C,this.propertyName=c,this.type=h,this.sanitizeURL=O,this.removeEmptyString=U}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(c){b[c]=new x(c,0,!1,c,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(c){var h=c[0];b[h]=new x(h,1,!1,c[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(c){b[c]=new x(c,2,!1,c.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(c){b[c]=new x(c,2,!1,c,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(c){b[c]=new x(c,3,!1,c.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(c){b[c]=new x(c,3,!0,c,null,!1,!1)}),["capture","download"].forEach(function(c){b[c]=new x(c,4,!1,c,null,!1,!1)}),["cols","rows","size","span"].forEach(function(c){b[c]=new x(c,6,!1,c,null,!1,!1)}),["rowSpan","start"].forEach(function(c){b[c]=new x(c,5,!1,c.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function T(c){return c[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(c){var h=c.replace(E,T);b[h]=new x(h,1,!1,c,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(c){var h=c.replace(E,T);b[h]=new x(h,1,!1,c,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(c){var h=c.replace(E,T);b[h]=new x(h,1,!1,c,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(c){b[c]=new x(c,1,!1,c.toLowerCase(),null,!1,!1)}),b.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(c){b[c]=new x(c,1,!1,c.toLowerCase(),null,!0,!0)});function w(c,h,C,A){var k=b.hasOwnProperty(h)?b[h]:null;(k!==null?k.type!==0:A||!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(v(h,C,k,A)&&(C=null),A||k===null?p(h)&&(C===null?c.removeAttribute(h):c.setAttribute(h,""+C)):k.mustUseProperty?c[k.propertyName]=C===null?k.type===3?!1:"":C:(h=k.attributeName,A=k.attributeNamespace,C===null?c.removeAttribute(h):(k=k.type,C=k===3||k===4&&C===!0?"":""+C,A?c.setAttributeNS(A,h,C):c.setAttribute(h,C))))}var R=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,I=Symbol.for("react.element"),L=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),$=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),Z=Symbol.for("react.offscreen"),X=Symbol.iterator;function ue(c){return c===null||typeof c!="object"?null:(c=X&&c[X]||c["@@iterator"],typeof c=="function"?c:null)}var se=Object.assign,G;function ee(c){if(G===void 0)try{throw Error()}catch(C){var h=C.stack.trim().match(/\n( *(at )?)/);G=h&&h[1]||""}return`
34`+G+c}var Ee=!1;function Ce(c,h){if(!c||Ee)return"";Ee=!0;var C=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(h)if(h=function(){throw Error()},Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(Te){var A=Te}Reflect.construct(c,[],h)}else{try{h.call()}catch(Te){A=Te}c.call(h.prototype)}else{try{throw Error()}catch(Te){A=Te}c()}}catch(Te){if(Te&&A&&typeof Te.stack=="string"){for(var k=Te.stack.split(`
35`),O=A.stack.split(`
36`),U=k.length-1,te=O.length-1;1<=U&&0<=te&&k[U]!==O[te];)te--;for(;1<=U&&0<=te;U--,te--)if(k[U]!==O[te]){if(U!==1||te!==1)do if(U--,te--,0>te||k[U]!==O[te]){var de=`
37`+k[U].replace(" at new "," at ");return c.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",c.displayName)),de}while(1<=U&&0<=te);break}}}finally{Ee=!1,Error.prepareStackTrace=C}return(c=c?c.displayName||c.name:"")?ee(c):""}function Ae(c){switch(c.tag){case 5:return ee(c.type);case 16:return ee("Lazy");case 13:return ee("Suspense");case 19:return ee("SuspenseList");case 0:case 2:case 15:return c=Ce(c.type,!1),c;case 11:return c=Ce(c.type.render,!1),c;case 1:return c=Ce(c.type,!0),c;default:return""}}function me(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case N:return"Fragment";case L:return"Portal";case j:return"Profiler";case _:return"StrictMode";case W:return"Suspense";case J:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case $:return(c.displayName||"Context")+".Consumer";case F:return(c._context.displayName||"Context")+".Provider";case z:var h=c.render;return c=c.displayName,c||(c=h.displayName||h.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case oe:return h=c.displayName||null,h!==null?h:me(c.type)||"Memo";case ie:h=c._payload,c=c._init;try{return me(c(h))}catch{}}return null}function ve(c){var h=c.type;switch(c.tag){case 24:return"Cache";case 9:return(h.displayName||"Context")+".Consumer";case 10:return(h._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=h.render,c=c.displayName||c.name||"",h.displayName||(c!==""?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return h;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return me(h);case 8:return h===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h}return null}function Q(c){switch(typeof c){case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function ge(c){var h=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(h==="checkbox"||h==="radio")}function le(c){var h=ge(c)?"checked":"value",C=Object.getOwnPropertyDescriptor(c.constructor.prototype,h),A=""+c[h];if(!c.hasOwnProperty(h)&&typeof C<"u"&&typeof C.get=="function"&&typeof C.set=="function"){var k=C.get,O=C.set;return Object.defineProperty(c,h,{configurable:!0,get:function(){return k.call(this)},set:function(U){A=""+U,O.call(this,U)}}),Object.defineProperty(c,h,{enumerable:C.enumerable}),{getValue:function(){return A},setValue:function(U){A=""+U},stopTracking:function(){c._valueTracker=null,delete c[h]}}}}function pe(c){c._valueTracker||(c._valueTracker=le(c))}function Ie(c){if(!c)return!1;var h=c._valueTracker;if(!h)return!0;var C=h.getValue(),A="";return c&&(A=ge(c)?c.checked?"true":"false":c.value),c=A,c!==C?(h.setValue(c),!0):!1}function Ne(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch{return c.body}}function Fe(c,h){var C=h.checked;return se({},h,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:C??c._wrapperState.initialChecked})}function Me(c,h){var C=h.defaultValue==null?"":h.defaultValue,A=h.checked!=null?h.checked:h.defaultChecked;C=Q(h.value!=null?h.value:C),c._wrapperState={initialChecked:A,initialValue:C,controlled:h.type==="checkbox"||h.type==="radio"?h.checked!=null:h.value!=null}}function ke(c,h){h=h.checked,h!=null&&w(c,"checked",h,!1)}function Ge(c,h){ke(c,h);var C=Q(h.value),A=h.type;if(C!=null)A==="number"?(C===0&&c.value===""||c.value!=C)&&(c.value=""+C):c.value!==""+C&&(c.value=""+C);else if(A==="submit"||A==="reset"){c.removeAttribute("value");return}h.hasOwnProperty("value")?ne(c,h.type,C):h.hasOwnProperty("defaultValue")&&ne(c,h.type,Q(h.defaultValue)),h.checked==null&&h.defaultChecked!=null&&(c.defaultChecked=!!h.defaultChecked)}function K(c,h,C){if(h.hasOwnProperty("value")||h.hasOwnProperty("defaultValue")){var A=h.type;if(!(A!=="submit"&&A!=="reset"||h.value!==void 0&&h.value!==null))return;h=""+c._wrapperState.initialValue,C||h===c.value||(c.value=h),c.defaultValue=h}C=c.name,C!==""&&(c.name=""),c.defaultChecked=!!c._wrapperState.initialChecked,C!==""&&(c.name=C)}function ne(c,h,C){(h!=="number"||Ne(c.ownerDocument)!==c)&&(C==null?c.defaultValue=""+c._wrapperState.initialValue:c.defaultValue!==""+C&&(c.defaultValue=""+C))}var ae=Array.isArray;function P(c,h,C,A){if(c=c.options,h){h={};for(var k=0;k<C.length;k++)h["$"+C[k]]=!0;for(C=0;C<c.length;C++)k=h.hasOwnProperty("$"+c[C].value),c[C].selected!==k&&(c[C].selected=k),k&&A&&(c[C].defaultSelected=!0)}else{for(C=""+Q(C),h=null,k=0;k<c.length;k++){if(c[k].value===C){c[k].selected=!0,A&&(c[k].defaultSelected=!0);return}h!==null||c[k].disabled||(h=c[k])}h!==null&&(h.selected=!0)}}function D(c,h){if(h.dangerouslySetInnerHTML!=null)throw Error(t(91));return se({},h,{value:void 0,defaultValue:void 0,children:""+c._wrapperState.initialValue})}function B(c,h){var C=h.value;if(C==null){if(C=h.children,h=h.defaultValue,C!=null){if(h!=null)throw Error(t(92));if(ae(C)){if(1<C.length)throw Error(t(93));C=C[0]}h=C}h==null&&(h=""),C=h}c._wrapperState={initialValue:Q(C)}}function V(c,h){var C=Q(h.value),A=Q(h.defaultValue);C!=null&&(C=""+C,C!==c.value&&(c.value=C),h.defaultValue==null&&c.defaultValue!==C&&(c.defaultValue=C)),A!=null&&(c.defaultValue=""+A)}function Y(c){var h=c.textContent;h===c._wrapperState.initialValue&&h!==""&&h!==null&&(c.value=h)}function H(c){switch(c){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"}}function q(c,h){return c==null||c==="http://www.w3.org/1999/xhtml"?H(h):c==="http://www.w3.org/2000/svg"&&h==="foreignObject"?"http://www.w3.org/1999/xhtml":c}var re,ce=(function(c){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(h,C,A,k){MSApp.execUnsafeLocalFunction(function(){return c(h,C,A,k)})}:c})(function(c,h){if(c.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in c)c.innerHTML=h;else{for(re=re||document.createElement("div"),re.innerHTML="<svg>"+h.valueOf().toString()+"</svg>",h=re.firstChild;c.firstChild;)c.removeChild(c.firstChild);for(;h.firstChild;)c.appendChild(h.firstChild)}});function be(c,h){if(h){var C=c.firstChild;if(C&&C===c.lastChild&&C.nodeType===3){C.nodeValue=h;return}}c.textContent=h}var Re={animationIterationCount:!0,aspectRatio:!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},we=["Webkit","ms","Moz","O"];Object.keys(Re).forEach(function(c){we.forEach(function(h){h=h+c.charAt(0).toUpperCase()+c.substring(1),Re[h]=Re[c]})});function Be(c,h,C){return h==null||typeof h=="boolean"||h===""?"":C||typeof h!="number"||h===0||Re.hasOwnProperty(c)&&Re[c]?(""+h).trim():h+"px"}function Ye(c,h){c=c.style;for(var C in h)if(h.hasOwnProperty(C)){var A=C.indexOf("--")===0,k=Be(C,h[C],A);C==="float"&&(C="cssFloat"),A?c.setProperty(C,k):c[C]=k}}var at=se({menuitem:!0},{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});function ht(c,h){if(h){if(at[c]&&(h.children!=null||h.dangerouslySetInnerHTML!=null))throw Error(t(137,c));if(h.dangerouslySetInnerHTML!=null){if(h.children!=null)throw Error(t(60));if(typeof h.dangerouslySetInnerHTML!="object"||!("__html"in h.dangerouslySetInnerHTML))throw Error(t(61))}if(h.style!=null&&typeof h.style!="object")throw Error(t(62))}}function Nt(c,h){if(c.indexOf("-")===-1)return typeof h.is=="string";switch(c){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xe=null;function Oe(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var It=null,wt=null,vt=null;function Wa(c){if(c=Ll(c)){if(typeof It!="function")throw Error(t(280));var h=c.stateNode;h&&(h=Hu(h),It(c.stateNode,c.type,h))}}function yu(c){wt?vt?vt.push(c):vt=[c]:wt=c}function vu(){if(wt){var c=wt,h=vt;if(vt=wt=null,Wa(c),h)for(c=0;c<h.length;c++)Wa(h[c])}}function xu(c,h){return c(h)}function Cu(){}var cl=!1;function bu(c,h,C){if(cl)return c(h,C);cl=!0;try{return xu(c,h,C)}finally{cl=!1,(wt!==null||vt!==null)&&(Cu(),vu())}}function qi(c,h){var C=c.stateNode;if(C===null)return null;var A=Hu(C);if(A===null)return null;C=A[h];e:switch(h){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(A=!A.disabled)||(c=c.type,A=!(c==="button"||c==="input"||c==="select"||c==="textarea")),c=!A;break e;default:c=!1}if(c)return null;if(C&&typeof C!="function")throw Error(t(231,h,typeof C));return C}var Ka=!1;if(l)try{var ri={};Object.defineProperty(ri,"passive",{get:function(){Ka=!0}}),window.addEventListener("test",ri,ri),window.removeEventListener("test",ri,ri)}catch{Ka=!1}function Su(c,h,C,A,k,O,U,te,de){var Te=Array.prototype.slice.call(arguments,3);try{h.apply(C,Te)}catch(De){this.onError(De)}}var si=!1,jr=null,Yi=!1,qa=null,Eu={onError:function(c){si=!0,jr=c}};function rs(c,h,C,A,k,O,U,te,de){si=!1,jr=null,Su.apply(Eu,arguments)}function dh(c,h,C,A,k,O,U,te,de){if(rs.apply(this,arguments),si){if(si){var Te=jr;si=!1,jr=null}else throw Error(t(198));Yi||(Yi=!0,qa=Te)}}function ss(c){var h=c,C=c;if(c.alternate)for(;h.return;)h=h.return;else{c=h;do h=c,(h.flags&4098)!==0&&(C=h.return),c=h.return;while(c)}return h.tag===3?C:null}function ul(c){if(c.tag===13){var h=c.memoizedState;if(h===null&&(c=c.alternate,c!==null&&(h=c.memoizedState)),h!==null)return h.dehydrated}return null}function Xi(c){if(ss(c)!==c)throw Error(t(188))}function fh(c){var h=c.alternate;if(!h){if(h=ss(c),h===null)throw Error(t(188));return h!==c?null:c}for(var C=c,A=h;;){var k=C.return;if(k===null)break;var O=k.alternate;if(O===null){if(A=k.return,A!==null){C=A;continue}break}if(k.child===O.child){for(O=k.child;O;){if(O===C)return Xi(k),c;if(O===A)return Xi(k),h;O=O.sibling}throw Error(t(188))}if(C.return!==A.return)C=k,A=O;else{for(var U=!1,te=k.child;te;){if(te===C){U=!0,C=k,A=O;break}if(te===A){U=!0,A=k,C=O;break}te=te.sibling}if(!U){for(te=O.child;te;){if(te===C){U=!0,C=O,A=k;break}if(te===A){U=!0,A=O,C=k;break}te=te.sibling}if(!U)throw Error(t(189))}}if(C.alternate!==A)throw Error(t(190))}if(C.tag!==3)throw Error(t(188));return C.stateNode.current===C?c:h}function wu(c){return c=fh(c),c!==null?G8(c):null}function G8(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){var h=G8(c);if(h!==null)return h;c=c.sibling}return null}var H8=e.unstable_scheduleCallback,W8=e.unstable_cancelCallback,NT=e.unstable_shouldYield,kT=e.unstable_requestPaint,hn=e.unstable_now,PT=e.unstable_getCurrentPriorityLevel,hh=e.unstable_ImmediatePriority,K8=e.unstable_UserBlockingPriority,Tu=e.unstable_NormalPriority,_T=e.unstable_LowPriority,q8=e.unstable_IdlePriority,Iu=null,is=null;function OT(c){if(is&&typeof is.onCommitFiberRoot=="function")try{is.onCommitFiberRoot(Iu,c,void 0,(c.current.flags&128)===128)}catch{}}var Mr=Math.clz32?Math.clz32:MT,DT=Math.log,jT=Math.LN2;function MT(c){return c>>>=0,c===0?32:31-(DT(c)/jT|0)|0}var Ru=64,Au=4194304;function dl(c){switch(c&-c){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return c&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function Lu(c,h){var C=c.pendingLanes;if(C===0)return 0;var A=0,k=c.suspendedLanes,O=c.pingedLanes,U=C&268435455;if(U!==0){var te=U&~k;te!==0?A=dl(te):(O&=U,O!==0&&(A=dl(O)))}else U=C&~k,U!==0?A=dl(U):O!==0&&(A=dl(O));if(A===0)return 0;if(h!==0&&h!==A&&(h&k)===0&&(k=A&-A,O=h&-h,k>=O||k===16&&(O&4194240)!==0))return h;if((A&4)!==0&&(A|=C&16),h=c.entangledLanes,h!==0)for(c=c.entanglements,h&=A;0<h;)C=31-Mr(h),k=1<<C,A|=c[C],h&=~k;return A}function FT(c,h){switch(c){case 1:case 2:case 4:return h+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return h+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $T(c,h){for(var C=c.suspendedLanes,A=c.pingedLanes,k=c.expirationTimes,O=c.pendingLanes;0<O;){var U=31-Mr(O),te=1<<U,de=k[U];de===-1?((te&C)===0||(te&A)!==0)&&(k[U]=FT(te,h)):de<=h&&(c.expiredLanes|=te),O&=~te}}function mh(c){return c=c.pendingLanes&-1073741825,c!==0?c:c&1073741824?1073741824:0}function Y8(){var c=Ru;return Ru<<=1,(Ru&4194240)===0&&(Ru=64),c}function ph(c){for(var h=[],C=0;31>C;C++)h.push(c);return h}function fl(c,h,C){c.pendingLanes|=h,h!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,h=31-Mr(h),c[h]=C}function BT(c,h){var C=c.pendingLanes&~h;c.pendingLanes=h,c.suspendedLanes=0,c.pingedLanes=0,c.expiredLanes&=h,c.mutableReadLanes&=h,c.entangledLanes&=h,h=c.entanglements;var A=c.eventTimes;for(c=c.expirationTimes;0<C;){var k=31-Mr(C),O=1<<k;h[k]=0,A[k]=-1,c[k]=-1,C&=~O}}function gh(c,h){var C=c.entangledLanes|=h;for(c=c.entanglements;C;){var A=31-Mr(C),k=1<<A;k&h|c[A]&h&&(c[A]|=h),C&=~k}}var Gt=0;function X8(c){return c&=-c,1<c?4<c?(c&268435455)!==0?16:536870912:4:1}var Z8,yh,Q8,J8,e6,vh=!1,Nu=[],ii=null,ai=null,oi=null,hl=new Map,ml=new Map,li=[],UT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function t6(c,h){switch(c){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ai=null;break;case"mouseover":case"mouseout":oi=null;break;case"pointerover":case"pointerout":hl.delete(h.pointerId);break;case"gotpointercapture":case"lostpointercapture":ml.delete(h.pointerId)}}function pl(c,h,C,A,k,O){return c===null||c.nativeEvent!==O?(c={blockedOn:h,domEventName:C,eventSystemFlags:A,nativeEvent:O,targetContainers:[k]},h!==null&&(h=Ll(h),h!==null&&yh(h)),c):(c.eventSystemFlags|=A,h=c.targetContainers,k!==null&&h.indexOf(k)===-1&&h.push(k),c)}function VT(c,h,C,A,k){switch(h){case"focusin":return ii=pl(ii,c,h,C,A,k),!0;case"dragenter":return ai=pl(ai,c,h,C,A,k),!0;case"mouseover":return oi=pl(oi,c,h,C,A,k),!0;case"pointerover":var O=k.pointerId;return hl.set(O,pl(hl.get(O)||null,c,h,C,A,k)),!0;case"gotpointercapture":return O=k.pointerId,ml.set(O,pl(ml.get(O)||null,c,h,C,A,k)),!0}return!1}function n6(c){var h=Zi(c.target);if(h!==null){var C=ss(h);if(C!==null){if(h=C.tag,h===13){if(h=ul(C),h!==null){c.blockedOn=h,e6(c.priority,function(){Q8(C)});return}}else if(h===3&&C.stateNode.current.memoizedState.isDehydrated){c.blockedOn=C.tag===3?C.stateNode.containerInfo:null;return}}}c.blockedOn=null}function ku(c){if(c.blockedOn!==null)return!1;for(var h=c.targetContainers;0<h.length;){var C=Ch(c.domEventName,c.eventSystemFlags,h[0],c.nativeEvent);if(C===null){C=c.nativeEvent;var A=new C.constructor(C.type,C);Xe=A,C.target.dispatchEvent(A),Xe=null}else return h=Ll(C),h!==null&&yh(h),c.blockedOn=C,!1;h.shift()}return!0}function r6(c,h,C){ku(c)&&C.delete(h)}function zT(){vh=!1,ii!==null&&ku(ii)&&(ii=null),ai!==null&&ku(ai)&&(ai=null),oi!==null&&ku(oi)&&(oi=null),hl.forEach(r6),ml.forEach(r6)}function gl(c,h){c.blockedOn===h&&(c.blockedOn=null,vh||(vh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,zT)))}function yl(c){function h(k){return gl(k,c)}if(0<Nu.length){gl(Nu[0],c);for(var C=1;C<Nu.length;C++){var A=Nu[C];A.blockedOn===c&&(A.blockedOn=null)}}for(ii!==null&&gl(ii,c),ai!==null&&gl(ai,c),oi!==null&&gl(oi,c),hl.forEach(h),ml.forEach(h),C=0;C<li.length;C++)A=li[C],A.blockedOn===c&&(A.blockedOn=null);for(;0<li.length&&(C=li[0],C.blockedOn===null);)n6(C),C.blockedOn===null&&li.shift()}var Ya=R.ReactCurrentBatchConfig,Pu=!0;function GT(c,h,C,A){var k=Gt,O=Ya.transition;Ya.transition=null;try{Gt=1,xh(c,h,C,A)}finally{Gt=k,Ya.transition=O}}function HT(c,h,C,A){var k=Gt,O=Ya.transition;Ya.transition=null;try{Gt=4,xh(c,h,C,A)}finally{Gt=k,Ya.transition=O}}function xh(c,h,C,A){if(Pu){var k=Ch(c,h,C,A);if(k===null)Mh(c,h,A,_u,C),t6(c,A);else if(VT(k,c,h,C,A))A.stopPropagation();else if(t6(c,A),h&4&&-1<UT.indexOf(c)){for(;k!==null;){var O=Ll(k);if(O!==null&&Z8(O),O=Ch(c,h,C,A),O===null&&Mh(c,h,A,_u,C),O===k)break;k=O}k!==null&&A.stopPropagation()}else Mh(c,h,A,null,C)}}var _u=null;function Ch(c,h,C,A){if(_u=null,c=Oe(A),c=Zi(c),c!==null)if(h=ss(c),h===null)c=null;else if(C=h.tag,C===13){if(c=ul(h),c!==null)return c;c=null}else if(C===3){if(h.stateNode.current.memoizedState.isDehydrated)return h.tag===3?h.stateNode.containerInfo:null;c=null}else h!==c&&(c=null);return _u=c,null}function s6(c){switch(c){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(PT()){case hh:return 1;case K8:return 4;case Tu:case _T:return 16;case q8:return 536870912;default:return 16}default:return 16}}var ci=null,bh=null,Ou=null;function i6(){if(Ou)return Ou;var c,h=bh,C=h.length,A,k="value"in ci?ci.value:ci.textContent,O=k.length;for(c=0;c<C&&h[c]===k[c];c++);var U=C-c;for(A=1;A<=U&&h[C-A]===k[O-A];A++);return Ou=k.slice(c,1<A?1-A:void 0)}function Du(c){var h=c.keyCode;return"charCode"in c?(c=c.charCode,c===0&&h===13&&(c=13)):c=h,c===10&&(c=13),32<=c||c===13?c:0}function ju(){return!0}function a6(){return!1}function cr(c){function h(C,A,k,O,U){this._reactName=C,this._targetInst=k,this.type=A,this.nativeEvent=O,this.target=U,this.currentTarget=null;for(var te in c)c.hasOwnProperty(te)&&(C=c[te],this[te]=C?C(O):O[te]);return this.isDefaultPrevented=(O.defaultPrevented!=null?O.defaultPrevented:O.returnValue===!1)?ju:a6,this.isPropagationStopped=a6,this}return se(h.prototype,{preventDefault:function(){this.defaultPrevented=!0;var C=this.nativeEvent;C&&(C.preventDefault?C.preventDefault():typeof C.returnValue!="unknown"&&(C.returnValue=!1),this.isDefaultPrevented=ju)},stopPropagation:function(){var C=this.nativeEvent;C&&(C.stopPropagation?C.stopPropagation():typeof C.cancelBubble!="unknown"&&(C.cancelBubble=!0),this.isPropagationStopped=ju)},persist:function(){},isPersistent:ju}),h}var Xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(c){return c.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sh=cr(Xa),vl=se({},Xa,{view:0,detail:0}),WT=cr(vl),Eh,wh,xl,Mu=se({},vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ih,button:0,buttons:0,relatedTarget:function(c){return c.relatedTarget===void 0?c.fromElement===c.srcElement?c.toElement:c.fromElement:c.relatedTarget},movementX:function(c){return"movementX"in c?c.movementX:(c!==xl&&(xl&&c.type==="mousemove"?(Eh=c.screenX-xl.screenX,wh=c.screenY-xl.screenY):wh=Eh=0,xl=c),Eh)},movementY:function(c){return"movementY"in c?c.movementY:wh}}),o6=cr(Mu),KT=se({},Mu,{dataTransfer:0}),qT=cr(KT),YT=se({},vl,{relatedTarget:0}),Th=cr(YT),XT=se({},Xa,{animationName:0,elapsedTime:0,pseudoElement:0}),ZT=cr(XT),QT=se({},Xa,{clipboardData:function(c){return"clipboardData"in c?c.clipboardData:window.clipboardData}}),JT=cr(QT),eI=se({},Xa,{data:0}),l6=cr(eI),tI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nI={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},rI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sI(c){var h=this.nativeEvent;return h.getModifierState?h.getModifierState(c):(c=rI[c])?!!h[c]:!1}function Ih(){return sI}var iI=se({},vl,{key:function(c){if(c.key){var h=tI[c.key]||c.key;if(h!=="Unidentified")return h}return c.type==="keypress"?(c=Du(c),c===13?"Enter":String.fromCharCode(c)):c.type==="keydown"||c.type==="keyup"?nI[c.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ih,charCode:function(c){return c.type==="keypress"?Du(c):0},keyCode:function(c){return c.type==="keydown"||c.type==="keyup"?c.keyCode:0},which:function(c){return c.type==="keypress"?Du(c):c.type==="keydown"||c.type==="keyup"?c.keyCode:0}}),aI=cr(iI),oI=se({},Mu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),c6=cr(oI),lI=se({},vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ih}),cI=cr(lI),uI=se({},Xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),dI=cr(uI),fI=se({},Mu,{deltaX:function(c){return"deltaX"in c?c.deltaX:"wheelDeltaX"in c?-c.wheelDeltaX:0},deltaY:function(c){return"deltaY"in c?c.deltaY:"wheelDeltaY"in c?-c.wheelDeltaY:"wheelDelta"in c?-c.wheelDelta:0},deltaZ:0,deltaMode:0}),hI=cr(fI),mI=[9,13,27,32],Rh=l&&"CompositionEvent"in window,Cl=null;l&&"documentMode"in document&&(Cl=document.documentMode);var pI=l&&"TextEvent"in window&&!Cl,u6=l&&(!Rh||Cl&&8<Cl&&11>=Cl),d6=" ",f6=!1;function h6(c,h){switch(c){case"keyup":return mI.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function m6(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var Za=!1;function gI(c,h){switch(c){case"compositionend":return m6(h);case"keypress":return h.which!==32?null:(f6=!0,d6);case"textInput":return c=h.data,c===d6&&f6?null:c;default:return null}}function yI(c,h){if(Za)return c==="compositionend"||!Rh&&h6(c,h)?(c=i6(),Ou=bh=ci=null,Za=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1<h.char.length)return h.char;if(h.which)return String.fromCharCode(h.which)}return null;case"compositionend":return u6&&h.locale!=="ko"?null:h.data;default:return null}}var vI={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function p6(c){var h=c&&c.nodeName&&c.nodeName.toLowerCase();return h==="input"?!!vI[c.type]:h==="textarea"}function g6(c,h,C,A){yu(A),h=Vu(h,"onChange"),0<h.length&&(C=new Sh("onChange","change",null,C,A),c.push({event:C,listeners:h}))}var bl=null,Sl=null;function xI(c){O6(c,0)}function Fu(c){var h=no(c);if(Ie(h))return c}function CI(c,h){if(c==="change")return h}var y6=!1;if(l){var Ah;if(l){var Lh="oninput"in document;if(!Lh){var v6=document.createElement("div");v6.setAttribute("oninput","return;"),Lh=typeof v6.oninput=="function"}Ah=Lh}else Ah=!1;y6=Ah&&(!document.documentMode||9<document.documentMode)}function x6(){bl&&(bl.detachEvent("onpropertychange",C6),Sl=bl=null)}function C6(c){if(c.propertyName==="value"&&Fu(Sl)){var h=[];g6(h,Sl,c,Oe(c)),bu(xI,h)}}function bI(c,h,C){c==="focusin"?(x6(),bl=h,Sl=C,bl.attachEvent("onpropertychange",C6)):c==="focusout"&&x6()}function SI(c){if(c==="selectionchange"||c==="keyup"||c==="keydown")return Fu(Sl)}function EI(c,h){if(c==="click")return Fu(h)}function wI(c,h){if(c==="input"||c==="change")return Fu(h)}function TI(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}var Fr=typeof Object.is=="function"?Object.is:TI;function El(c,h){if(Fr(c,h))return!0;if(typeof c!="object"||c===null||typeof h!="object"||h===null)return!1;var C=Object.keys(c),A=Object.keys(h);if(C.length!==A.length)return!1;for(A=0;A<C.length;A++){var k=C[A];if(!u.call(h,k)||!Fr(c[k],h[k]))return!1}return!0}function b6(c){for(;c&&c.firstChild;)c=c.firstChild;return c}function S6(c,h){var C=b6(c);c=0;for(var A;C;){if(C.nodeType===3){if(A=c+C.textContent.length,c<=h&&A>=h)return{node:C,offset:h-c};c=A}e:{for(;C;){if(C.nextSibling){C=C.nextSibling;break e}C=C.parentNode}C=void 0}C=b6(C)}}function E6(c,h){return c&&h?c===h?!0:c&&c.nodeType===3?!1:h&&h.nodeType===3?E6(c,h.parentNode):"contains"in c?c.contains(h):c.compareDocumentPosition?!!(c.compareDocumentPosition(h)&16):!1:!1}function w6(){for(var c=window,h=Ne();h instanceof c.HTMLIFrameElement;){try{var C=typeof h.contentWindow.location.href=="string"}catch{C=!1}if(C)c=h.contentWindow;else break;h=Ne(c.document)}return h}function Nh(c){var h=c&&c.nodeName&&c.nodeName.toLowerCase();return h&&(h==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||h==="textarea"||c.contentEditable==="true")}function II(c){var h=w6(),C=c.focusedElem,A=c.selectionRange;if(h!==C&&C&&C.ownerDocument&&E6(C.ownerDocument.documentElement,C)){if(A!==null&&Nh(C)){if(h=A.start,c=A.end,c===void 0&&(c=h),"selectionStart"in C)C.selectionStart=h,C.selectionEnd=Math.min(c,C.value.length);else if(c=(h=C.ownerDocument||document)&&h.defaultView||window,c.getSelection){c=c.getSelection();var k=C.textContent.length,O=Math.min(A.start,k);A=A.end===void 0?O:Math.min(A.end,k),!c.extend&&O>A&&(k=A,A=O,O=k),k=S6(C,O);var U=S6(C,A);k&&U&&(c.rangeCount!==1||c.anchorNode!==k.node||c.anchorOffset!==k.offset||c.focusNode!==U.node||c.focusOffset!==U.offset)&&(h=h.createRange(),h.setStart(k.node,k.offset),c.removeAllRanges(),O>A?(c.addRange(h),c.extend(U.node,U.offset)):(h.setEnd(U.node,U.offset),c.addRange(h)))}}for(h=[],c=C;c=c.parentNode;)c.nodeType===1&&h.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<h.length;C++)c=h[C],c.element.scrollLeft=c.left,c.element.scrollTop=c.top}}var RI=l&&"documentMode"in document&&11>=document.documentMode,Qa=null,kh=null,wl=null,Ph=!1;function T6(c,h,C){var A=C.window===C?C.document:C.nodeType===9?C:C.ownerDocument;Ph||Qa==null||Qa!==Ne(A)||(A=Qa,"selectionStart"in A&&Nh(A)?A={start:A.selectionStart,end:A.selectionEnd}:(A=(A.ownerDocument&&A.ownerDocument.defaultView||window).getSelection(),A={anchorNode:A.anchorNode,anchorOffset:A.anchorOffset,focusNode:A.focusNode,focusOffset:A.focusOffset}),wl&&El(wl,A)||(wl=A,A=Vu(kh,"onSelect"),0<A.length&&(h=new Sh("onSelect","select",null,h,C),c.push({event:h,listeners:A}),h.target=Qa)))}function $u(c,h){var C={};return C[c.toLowerCase()]=h.toLowerCase(),C["Webkit"+c]="webkit"+h,C["Moz"+c]="moz"+h,C}var Ja={animationend:$u("Animation","AnimationEnd"),animationiteration:$u("Animation","AnimationIteration"),animationstart:$u("Animation","AnimationStart"),transitionend:$u("Transition","TransitionEnd")},_h={},I6={};l&&(I6=document.createElement("div").style,"AnimationEvent"in window||(delete Ja.animationend.animation,delete Ja.animationiteration.animation,delete Ja.animationstart.animation),"TransitionEvent"in window||delete Ja.transitionend.transition);function Bu(c){if(_h[c])return _h[c];if(!Ja[c])return c;var h=Ja[c],C;for(C in h)if(h.hasOwnProperty(C)&&C in I6)return _h[c]=h[C];return c}var R6=Bu("animationend"),A6=Bu("animationiteration"),L6=Bu("animationstart"),N6=Bu("transitionend"),k6=new Map,P6="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ui(c,h){k6.set(c,h),i(h,[c])}for(var Oh=0;Oh<P6.length;Oh++){var Dh=P6[Oh],AI=Dh.toLowerCase(),LI=Dh[0].toUpperCase()+Dh.slice(1);ui(AI,"on"+LI)}ui(R6,"onAnimationEnd"),ui(A6,"onAnimationIteration"),ui(L6,"onAnimationStart"),ui("dblclick","onDoubleClick"),ui("focusin","onFocus"),ui("focusout","onBlur"),ui(N6,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),NI=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tl));function _6(c,h,C){var A=c.type||"unknown-event";c.currentTarget=C,dh(A,h,void 0,c),c.currentTarget=null}function O6(c,h){h=(h&4)!==0;for(var C=0;C<c.length;C++){var A=c[C],k=A.event;A=A.listeners;e:{var O=void 0;if(h)for(var U=A.length-1;0<=U;U--){var te=A[U],de=te.instance,Te=te.currentTarget;if(te=te.listener,de!==O&&k.isPropagationStopped())break e;_6(k,te,Te),O=de}else for(U=0;U<A.length;U++){if(te=A[U],de=te.instance,Te=te.currentTarget,te=te.listener,de!==O&&k.isPropagationStopped())break e;_6(k,te,Te),O=de}}}if(Yi)throw c=qa,Yi=!1,qa=null,c}function Zt(c,h){var C=h[zh];C===void 0&&(C=h[zh]=new Set);var A=c+"__bubble";C.has(A)||(D6(h,c,2,!1),C.add(A))}function jh(c,h,C){var A=0;h&&(A|=4),D6(C,c,A,h)}var Uu="_reactListening"+Math.random().toString(36).slice(2);function Il(c){if(!c[Uu]){c[Uu]=!0,r.forEach(function(C){C!=="selectionchange"&&(NI.has(C)||jh(C,!1,c),jh(C,!0,c))});var h=c.nodeType===9?c:c.ownerDocument;h===null||h[Uu]||(h[Uu]=!0,jh("selectionchange",!1,h))}}function D6(c,h,C,A){switch(s6(h)){case 1:var k=GT;break;case 4:k=HT;break;default:k=xh}C=k.bind(null,h,C,c),k=void 0,!Ka||h!=="touchstart"&&h!=="touchmove"&&h!=="wheel"||(k=!0),A?k!==void 0?c.addEventListener(h,C,{capture:!0,passive:k}):c.addEventListener(h,C,!0):k!==void 0?c.addEventListener(h,C,{passive:k}):c.addEventListener(h,C,!1)}function Mh(c,h,C,A,k){var O=A;if((h&1)===0&&(h&2)===0&&A!==null)e:for(;;){if(A===null)return;var U=A.tag;if(U===3||U===4){var te=A.stateNode.containerInfo;if(te===k||te.nodeType===8&&te.parentNode===k)break;if(U===4)for(U=A.return;U!==null;){var de=U.tag;if((de===3||de===4)&&(de=U.stateNode.containerInfo,de===k||de.nodeType===8&&de.parentNode===k))return;U=U.return}for(;te!==null;){if(U=Zi(te),U===null)return;if(de=U.tag,de===5||de===6){A=O=U;continue e}te=te.parentNode}}A=A.return}bu(function(){var Te=O,De=Oe(C),$e=[];e:{var _e=k6.get(c);if(_e!==void 0){var Ze=Sh,it=c;switch(c){case"keypress":if(Du(C)===0)break e;case"keydown":case"keyup":Ze=aI;break;case"focusin":it="focus",Ze=Th;break;case"focusout":it="blur",Ze=Th;break;case"beforeblur":case"afterblur":Ze=Th;break;case"click":if(C.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ze=o6;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ze=qT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ze=cI;break;case R6:case A6:case L6:Ze=ZT;break;case N6:Ze=dI;break;case"scroll":Ze=WT;break;case"wheel":Ze=hI;break;case"copy":case"cut":case"paste":Ze=JT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ze=c6}var ot=(h&4)!==0,mn=!ot&&c==="scroll",xe=ot?_e!==null?_e+"Capture":null:_e;ot=[];for(var he=Te,Se;he!==null;){Se=he;var Ve=Se.stateNode;if(Se.tag===5&&Ve!==null&&(Se=Ve,xe!==null&&(Ve=qi(he,xe),Ve!=null&&ot.push(Rl(he,Ve,Se)))),mn)break;he=he.return}0<ot.length&&(_e=new Ze(_e,it,null,C,De),$e.push({event:_e,listeners:ot}))}}if((h&7)===0){e:{if(_e=c==="mouseover"||c==="pointerover",Ze=c==="mouseout"||c==="pointerout",_e&&C!==Xe&&(it=C.relatedTarget||C.fromElement)&&(Zi(it)||it[Ls]))break e;if((Ze||_e)&&(_e=De.window===De?De:(_e=De.ownerDocument)?_e.defaultView||_e.parentWindow:window,Ze?(it=C.relatedTarget||C.toElement,Ze=Te,it=it?Zi(it):null,it!==null&&(mn=ss(it),it!==mn||it.tag!==5&&it.tag!==6)&&(it=null)):(Ze=null,it=Te),Ze!==it)){if(ot=o6,Ve="onMouseLeave",xe="onMouseEnter",he="mouse",(c==="pointerout"||c==="pointerover")&&(ot=c6,Ve="onPointerLeave",xe="onPointerEnter",he="pointer"),mn=Ze==null?_e:no(Ze),Se=it==null?_e:no(it),_e=new ot(Ve,he+"leave",Ze,C,De),_e.target=mn,_e.relatedTarget=Se,Ve=null,Zi(De)===Te&&(ot=new ot(xe,he+"enter",it,C,De),ot.target=Se,ot.relatedTarget=mn,Ve=ot),mn=Ve,Ze&&it)t:{for(ot=Ze,xe=it,he=0,Se=ot;Se;Se=eo(Se))he++;for(Se=0,Ve=xe;Ve;Ve=eo(Ve))Se++;for(;0<he-Se;)ot=eo(ot),he--;for(;0<Se-he;)xe=eo(xe),Se--;for(;he--;){if(ot===xe||xe!==null&&ot===xe.alternate)break t;ot=eo(ot),xe=eo(xe)}ot=null}else ot=null;Ze!==null&&j6($e,_e,Ze,ot,!1),it!==null&&mn!==null&&j6($e,mn,it,ot,!0)}}e:{if(_e=Te?no(Te):window,Ze=_e.nodeName&&_e.nodeName.toLowerCase(),Ze==="select"||Ze==="input"&&_e.type==="file")var lt=CI;else if(p6(_e))if(y6)lt=wI;else{lt=SI;var mt=bI}else(Ze=_e.nodeName)&&Ze.toLowerCase()==="input"&&(_e.type==="checkbox"||_e.type==="radio")&&(lt=EI);if(lt&&(lt=lt(c,Te))){g6($e,lt,C,De);break e}mt&&mt(c,_e,Te),c==="focusout"&&(mt=_e._wrapperState)&&mt.controlled&&_e.type==="number"&&ne(_e,"number",_e.value)}switch(mt=Te?no(Te):window,c){case"focusin":(p6(mt)||mt.contentEditable==="true")&&(Qa=mt,kh=Te,wl=null);break;case"focusout":wl=kh=Qa=null;break;case"mousedown":Ph=!0;break;case"contextmenu":case"mouseup":case"dragend":Ph=!1,T6($e,C,De);break;case"selectionchange":if(RI)break;case"keydown":case"keyup":T6($e,C,De)}var pt;if(Rh)e:{switch(c){case"compositionstart":var xt="onCompositionStart";break e;case"compositionend":xt="onCompositionEnd";break e;case"compositionupdate":xt="onCompositionUpdate";break e}xt=void 0}else Za?h6(c,C)&&(xt="onCompositionEnd"):c==="keydown"&&C.keyCode===229&&(xt="onCompositionStart");xt&&(u6&&C.locale!=="ko"&&(Za||xt!=="onCompositionStart"?xt==="onCompositionEnd"&&Za&&(pt=i6()):(ci=De,bh="value"in ci?ci.value:ci.textContent,Za=!0)),mt=Vu(Te,xt),0<mt.length&&(xt=new l6(xt,c,null,C,De),$e.push({event:xt,listeners:mt}),pt?xt.data=pt:(pt=m6(C),pt!==null&&(xt.data=pt)))),(pt=pI?gI(c,C):yI(c,C))&&(Te=Vu(Te,"onBeforeInput"),0<Te.length&&(De=new l6("onBeforeInput","beforeinput",null,C,De),$e.push({event:De,listeners:Te}),De.data=pt))}O6($e,h)})}function Rl(c,h,C){return{instance:c,listener:h,currentTarget:C}}function Vu(c,h){for(var C=h+"Capture",A=[];c!==null;){var k=c,O=k.stateNode;k.tag===5&&O!==null&&(k=O,O=qi(c,C),O!=null&&A.unshift(Rl(c,O,k)),O=qi(c,h),O!=null&&A.push(Rl(c,O,k))),c=c.return}return A}function eo(c){if(c===null)return null;do c=c.return;while(c&&c.tag!==5);return c||null}function j6(c,h,C,A,k){for(var O=h._reactName,U=[];C!==null&&C!==A;){var te=C,de=te.alternate,Te=te.stateNode;if(de!==null&&de===A)break;te.tag===5&&Te!==null&&(te=Te,k?(de=qi(C,O),de!=null&&U.unshift(Rl(C,de,te))):k||(de=qi(C,O),de!=null&&U.push(Rl(C,de,te)))),C=C.return}U.length!==0&&c.push({event:h,listeners:U})}var kI=/\r\n?/g,PI=/\u0000|\uFFFD/g;function M6(c){return(typeof c=="string"?c:""+c).replace(kI,`
38`).replace(PI,"")}function zu(c,h,C){if(h=M6(h),M6(c)!==h&&C)throw Error(t(425))}function Gu(){}var Fh=null,$h=null;function Bh(c,h){return c==="textarea"||c==="noscript"||typeof h.children=="string"||typeof h.children=="number"||typeof h.dangerouslySetInnerHTML=="object"&&h.dangerouslySetInnerHTML!==null&&h.dangerouslySetInnerHTML.__html!=null}var Uh=typeof setTimeout=="function"?setTimeout:void 0,_I=typeof clearTimeout=="function"?clearTimeout:void 0,F6=typeof Promise=="function"?Promise:void 0,OI=typeof queueMicrotask=="function"?queueMicrotask:typeof F6<"u"?function(c){return F6.resolve(null).then(c).catch(DI)}:Uh;function DI(c){setTimeout(function(){throw c})}function Vh(c,h){var C=h,A=0;do{var k=C.nextSibling;if(c.removeChild(C),k&&k.nodeType===8)if(C=k.data,C==="/$"){if(A===0){c.removeChild(k),yl(h);return}A--}else C!=="$"&&C!=="$?"&&C!=="$!"||A++;C=k}while(C);yl(h)}function di(c){for(;c!=null;c=c.nextSibling){var h=c.nodeType;if(h===1||h===3)break;if(h===8){if(h=c.data,h==="$"||h==="$!"||h==="$?")break;if(h==="/$")return null}}return c}function $6(c){c=c.previousSibling;for(var h=0;c;){if(c.nodeType===8){var C=c.data;if(C==="$"||C==="$!"||C==="$?"){if(h===0)return c;h--}else C==="/$"&&h++}c=c.previousSibling}return null}var to=Math.random().toString(36).slice(2),as="__reactFiber$"+to,Al="__reactProps$"+to,Ls="__reactContainer$"+to,zh="__reactEvents$"+to,jI="__reactListeners$"+to,MI="__reactHandles$"+to;function Zi(c){var h=c[as];if(h)return h;for(var C=c.parentNode;C;){if(h=C[Ls]||C[as]){if(C=h.alternate,h.child!==null||C!==null&&C.child!==null)for(c=$6(c);c!==null;){if(C=c[as])return C;c=$6(c)}return h}c=C,C=c.parentNode}return null}function Ll(c){return c=c[as]||c[Ls],!c||c.tag!==5&&c.tag!==6&&c.tag!==13&&c.tag!==3?null:c}function no(c){if(c.tag===5||c.tag===6)return c.stateNode;throw Error(t(33))}function Hu(c){return c[Al]||null}var Gh=[],ro=-1;function fi(c){return{current:c}}function Qt(c){0>ro||(c.current=Gh[ro],Gh[ro]=null,ro--)}function Yt(c,h){ro++,Gh[ro]=c.current,c.current=h}var hi={},On=fi(hi),Yn=fi(!1),Qi=hi;function so(c,h){var C=c.type.contextTypes;if(!C)return hi;var A=c.stateNode;if(A&&A.__reactInternalMemoizedUnmaskedChildContext===h)return A.__reactInternalMemoizedMaskedChildContext;var k={},O;for(O in C)k[O]=h[O];return A&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=h,c.__reactInternalMemoizedMaskedChildContext=k),k}function Xn(c){return c=c.childContextTypes,c!=null}function Wu(){Qt(Yn),Qt(On)}function B6(c,h,C){if(On.current!==hi)throw Error(t(168));Yt(On,h),Yt(Yn,C)}function U6(c,h,C){var A=c.stateNode;if(h=h.childContextTypes,typeof A.getChildContext!="function")return C;A=A.getChildContext();for(var k in A)if(!(k in h))throw Error(t(108,ve(c)||"Unknown",k));return se({},C,A)}function Ku(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||hi,Qi=On.current,Yt(On,c),Yt(Y
vendor: 4,328 bytes, line 38
38n,Yn.current),!0}function V6(c,h,C){var A=c.stateNode;if(!A)throw Error(t(169));C?(c=U6(c,h,Qi),A.__reactInternalMemoizedMergedChildContext=c,Qt(Yn),Qt(On),Yt(On,c)):Qt(Yn),Yt(Yn,C)}var Ns=null,qu=!1,Hh=!1;function z6(c){Ns===null?Ns=[c]:Ns.push(c)}function FI(c){qu=!0,z6(c)}function mi(){if(!Hh&&Ns!==null){Hh=!0;var c=0,h=Gt;try{var C=Ns;for(Gt=1;c<C.length;c++){var A=C[c];do A=A(!0);while(A!==null)}Ns=null,qu=!1}catch(k){throw Ns!==null&&(Ns=Ns.slice(c+1)),H8(hh,mi),k}finally{Gt=h,Hh=!1}}return null}var io=[],ao=0,Yu=null,Xu=0,wr=[],Tr=0,Ji=null,ks=1,Ps="";function ea(c,h){io[ao++]=Xu,io[ao++]=Yu,Yu=c,Xu=h}function G6(c,h,C){wr[Tr++]=ks,wr[Tr++]=Ps,wr[Tr++]=Ji,Ji=c;var A=ks;c=Ps;var k=32-Mr(A)-1;A&=~(1<<k),C+=1;var O=32-Mr(h)+k;if(30<O){var U=k-k%5;O=(A&(1<<U)-1).toString(32),A>>=U,k-=U,ks=1<<32-Mr(h)+k|C<<k|A,Ps=O+c}else ks=1<<O|C<<k|A,Ps=c}function Wh(c){c.return!==null&&(ea(c,1),G6(c,1,0))}function Kh(c){for(;c===Yu;)Yu=io[--ao],io[ao]=null,Xu=io[--ao],io[ao]=null;for(;c===Ji;)Ji=wr[--Tr],wr[Tr]=null,Ps=wr[--Tr],wr[Tr]=null,ks=wr[--Tr],wr[Tr]=null}var ur=null,dr=null,sn=!1,$r=null;function H6(c,h){var C=Lr(5,null,null,0);C.elementType="DELETED",C.stateNode=h,C.return=c,h=c.deletions,h===null?(c.deletions=[C],c.flags|=16):h.push(C)}function W6(c,h){switch(c.tag){case 5:var C=c.type;return h=h.nodeType!==1||C.toLowerCase()!==h.nodeName.toLowerCase()?null:h,h!==null?(c.stateNode=h,ur=c,dr=di(h.firstChild),!0):!1;case 6:return h=c.pendingProps===""||h.nodeType!==3?null:h,h!==null?(c.stateNode=h,ur=c,dr=null,!0):!1;case 13:return h=h.nodeType!==8?null:h,h!==null?(C=Ji!==null?{id:ks,overflow:Ps}:null,c.memoizedState={dehydrated:h,treeContext:C,retryLane:1073741824},C=Lr(18,null,null,0),C.stateNode=h,C.return=c,c.child=C,ur=c,dr=null,!0):!1;default:return!1}}function qh(c){return(c.mode&1)!==0&&(c.flags&128)===0}function Yh(c){if(sn){var h=dr;if(h){var C=h;if(!W6(c,h)){if(qh(c))throw Error(t(418));h=di(C.nextSibling);var A=ur;h&&W6(c,h)?H6(A,C):(c.flags=c.flags&-4097|2,sn=!1,ur=c)}}else{if(qh(c))throw Error(t(418));c.flags=c.flags&-4097|2,sn=!1,ur=c}}}function K6(c){for(c=c.return;c!==null&&c.tag!==5&&c.tag!==3&&c.tag!==13;)c=c.return;ur=c}function Zu(c){if(c!==ur)return!1;if(!sn)return K6(c),sn=!0,!1;var h;if((h=c.tag!==3)&&!(h=c.tag!==5)&&(h=c.type,h=h!=="head"&&h!=="body"&&!Bh(c.type,c.memoizedProps)),h&&(h=dr)){if(qh(c))throw q6(),Error(t(418));for(;h;)H6(c,h),h=di(h.nextSibling)}if(K6(c),c.tag===13){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(t(317));e:{for(c=c.nextSibling,h=0;c;){if(c.nodeType===8){var C=c.data;if(C==="/$"){if(h===0){dr=di(c.nextSibling);break e}h--}else C!=="$"&&C!=="$!"&&C!=="$?"||h++}c=c.nextSibling}dr=null}}else dr=ur?di(c.stateNode.nextSibling):null;return!0}function q6(){for(var c=dr;c;)c=di(c.nextSibling)}function oo(){dr=ur=null,sn=!1}function Xh(c){$r===null?$r=[c]:$r.push(c)}var $I=R.ReactCurrentBatchConfig;function Nl(c,h,C){if(c=C.ref,c!==null&&typeof c!="function"&&typeof c!="object"){if(C._owner){if(C=C._owner,C){if(C.tag!==1)throw Error(t(309));var A=C.stateNode}if(!A)throw Error(t(147,c));var k=A,O=""+c;return h!==null&&h.ref!==null&&typeof h.ref=="function"&&h.ref._stringRef===O?h.ref:(h=function(U){var te=k.refs;U===null?delete te[O]:te[O]=U},h._stringRef=O,h)}if(typeof c!="string")throw Error(t(284));if(!C._owner)throw Error(t(290,c))}return c}function Qu(c,h){throw c=Object.prototype.toString.call(h),Error(t(31,c==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":c))}function Y6(c){var h=c._init;return h(c._payload)}function X6(c){function h(xe,he){if(c){var Se=xe.deletions;Se===null?(xe.deletions=[he],xe.flags|=16):Se.push(he)}}function C(xe,he){if(!c)return null;for(;he!==null;)h(xe,he),he=he.sibling;return null}function A(xe,he){for(xe=new Map;he!==null;)he.key!==null?xe.set(he.key,he):xe.set(he.index,he),he=he.sibling;return xe}function k(xe,he){return xe=Si(xe,he),xe.index=0,xe.sibling=null,xe}function O(xe,he,Se){return xe.index=Se,c?(Se=xe.alternate,Se!==null?(Se=Se.index,Se<he?(xe.flags|=2,he):Se):(xe.flags|=2,he)):(xe.flags|=1048576,he)}function U(xe){return c&&xe.alternate===null&&(xe.flags|=2),xe}function te(xe,he,Se,Ve){return he===null||he.tag!==6?(he=U2(Se,xe.mode,Ve),he.return=xe,he):(he=k(he,Se),he.return=xe,he)}function de(xe,he,Se,Ve){var lt=Se.type;
vendor: 4,601 bytes, line 38
38return lt===N?De(xe,he,Se.props.children,Ve,Se.key):he!==null&&(he.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===ie&&Y6(lt)===he.type)?(Ve=k(he,Se.props),Ve.ref=Nl(xe,he,Se),Ve.return=xe,Ve):(Ve=Sd(Se.type,Se.key,Se.props,null,xe.mode,Ve),Ve.ref=Nl(xe,he,Se),Ve.return=xe,Ve)}function Te(xe,he,Se,Ve){return he===null||he.tag!==4||he.stateNode.containerInfo!==Se.containerInfo||he.stateNode.implementation!==Se.implementation?(he=V2(Se,xe.mode,Ve),he.return=xe,he):(he=k(he,Se.children||[]),he.return=xe,he)}function De(xe,he,Se,Ve,lt){return he===null||he.tag!==7?(he=la(Se,xe.mode,Ve,lt),he.return=xe,he):(he=k(he,Se),he.return=xe,he)}function $e(xe,he,Se){if(typeof he=="string"&&he!==""||typeof he=="number")return he=U2(""+he,xe.mode,Se),he.return=xe,he;if(typeof he=="object"&&he!==null){switch(he.$$typeof){case I:return Se=Sd(he.type,he.key,he.props,null,xe.mode,Se),Se.ref=Nl(xe,null,he),Se.return=xe,Se;case L:return he=V2(he,xe.mode,Se),he.return=xe,he;case ie:var Ve=he._init;return $e(xe,Ve(he._payload),Se)}if(ae(he)||ue(he))return he=la(he,xe.mode,Se,null),he.return=xe,he;Qu(xe,he)}return null}function _e(xe,he,Se,Ve){var lt=he!==null?he.key:null;if(typeof Se=="string"&&Se!==""||typeof Se=="number")return lt!==null?null:te(xe,he,""+Se,Ve);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case I:return Se.key===lt?de(xe,he,Se,Ve):null;case L:return Se.key===lt?Te(xe,he,Se,Ve):null;case ie:return lt=Se._init,_e(xe,he,lt(Se._payload),Ve)}if(ae(Se)||ue(Se))return lt!==null?null:De(xe,he,Se,Ve,null);Qu(xe,Se)}return null}function Ze(xe,he,Se,Ve,lt){if(typeof Ve=="string"&&Ve!==""||typeof Ve=="number")return xe=xe.get(Se)||null,te(he,xe,""+Ve,lt);if(typeof Ve=="object"&&Ve!==null){switch(Ve.$$typeof){case I:return xe=xe.get(Ve.key===null?Se:Ve.key)||null,de(he,xe,Ve,lt);case L:return xe=xe.get(Ve.key===null?Se:Ve.key)||null,Te(he,xe,Ve,lt);case ie:var mt=Ve._init;return Ze(xe,he,Se,mt(Ve._payload),lt)}if(ae(Ve)||ue(Ve))return xe=xe.get(Se)||null,De(he,xe,Ve,lt,null);Qu(he,Ve)}return null}function it(xe,he,Se,Ve){for(var lt=null,mt=null,pt=he,xt=he=0,wn=null;pt!==null&&xt<Se.length;xt++){pt.index>xt?(wn=pt,pt=null):wn=pt.sibling;var Dt=_e(xe,pt,Se[xt],Ve);if(Dt===null){pt===null&&(pt=wn);break}c&&pt&&Dt.alternate===null&&h(xe,pt),he=O(Dt,he,xt),mt===null?lt=Dt:mt.sibling=Dt,mt=Dt,pt=wn}if(xt===Se.length)return C(xe,pt),sn&&ea(xe,xt),lt;if(pt===null){for(;xt<Se.length;xt++)pt=$e(xe,Se[xt],Ve),pt!==null&&(he=O(pt,he,xt),mt===null?lt=pt:mt.sibling=pt,mt=pt);return sn&&ea(xe,xt),lt}for(pt=A(xe,pt);xt<Se.length;xt++)wn=Ze(pt,xe,xt,Se[xt],Ve),wn!==null&&(c&&wn.alternate!==null&&pt.delete(wn.key===null?xt:wn.key),he=O(wn,he,xt),mt===null?lt=wn:mt.sibling=wn,mt=wn);return c&&pt.forEach(function(Ei){return h(xe,Ei)}),sn&&ea(xe,xt),lt}function ot(xe,he,Se,Ve){var lt=ue(Se);if(typeof lt!="function")throw Error(t(150));if(Se=lt.call(Se),Se==null)throw Error(t(151));for(var mt=lt=null,pt=he,xt=he=0,wn=null,Dt=Se.next();pt!==null&&!Dt.done;xt++,Dt=Se.next()){pt.index>xt?(wn=pt,pt=null):wn=pt.sibling;var Ei=_e(xe,pt,Dt.value,Ve);if(Ei===null){pt===null&&(pt=wn);break}c&&pt&&Ei.alternate===null&&h(xe,pt),he=O(Ei,he,xt),mt===null?lt=Ei:mt.sibling=Ei,mt=Ei,pt=wn}if(Dt.done)return C(xe,pt),sn&&ea(xe,xt),lt;if(pt===null){for(;!Dt.done;xt++,Dt=Se.next())Dt=$e(xe,Dt.value,Ve),Dt!==null&&(he=O(Dt,he,xt),mt===null?lt=Dt:mt.sibling=Dt,mt=Dt);return sn&&ea(xe,xt),lt}for(pt=A(xe,pt);!Dt.done;xt++,Dt=Se.next())Dt=Ze(pt,xe,xt,Dt.value,Ve),Dt!==null&&(c&&Dt.alternate!==null&&pt.delete(Dt.key===null?xt:Dt.key),he=O(Dt,he,xt),mt===null?lt=Dt:mt.sibling=Dt,mt=Dt);return c&&pt.forEach(function(vR){return h(xe,vR)}),sn&&ea(xe,xt),lt}function mn(xe,he,Se,Ve){if(typeof Se=="object"&&Se!==null&&Se.type===N&&Se.key===null&&(Se=Se.props.children),typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case I:e:{for(var lt=Se.key,mt=he;mt!==null;){if(mt.key===lt){if(lt=Se.type,lt===N){if(mt.tag===7){C(xe,mt.sibling),he=k(mt,Se.props.children),he.return=xe,xe=he;break e}}else if(mt.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===ie&&Y6(lt)===mt.type){C(xe,mt.sibling),he=k(mt,Se.props),he.ref=Nl(xe,mt,Se),he.return=xe,xe=he;break e}C(xe,mt);break}else h(xe,mt);mt=mt.sibling}Se.type===N?(he=la(Se.props.children,xe.mode,Ve,Se.key),he.return=xe,xe=he):(Ve=Sd(Se.type,Se.key,Se.props,null,xe.mode,Ve),Ve.ref=Nl(xe,he,Se),Ve.return=xe,xe=Ve)}return U(xe);case L:e:{for(mt=Se.key;he!==null;){if(he.key===mt)if(he.tag===4&&he.stateNode.containerInfo===Se.containerInfo&&he.stateNode.implementation===Se.implementation){C(xe,he.sibling),he=k(he,
vendor: 5,141 bytes, line 38
38Se.children||[]),he.return=xe,xe=he;break e}else{C(xe,he);break}else h(xe,he);he=he.sibling}he=V2(Se,xe.mode,Ve),he.return=xe,xe=he}return U(xe);case ie:return mt=Se._init,mn(xe,he,mt(Se._payload),Ve)}if(ae(Se))return it(xe,he,Se,Ve);if(ue(Se))return ot(xe,he,Se,Ve);Qu(xe,Se)}return typeof Se=="string"&&Se!==""||typeof Se=="number"?(Se=""+Se,he!==null&&he.tag===6?(C(xe,he.sibling),he=k(he,Se),he.return=xe,xe=he):(C(xe,he),he=U2(Se,xe.mode,Ve),he.return=xe,xe=he),U(xe)):C(xe,he)}return mn}var lo=X6(!0),Z6=X6(!1),Ju=fi(null),ed=null,co=null,Zh=null;function Qh(){Zh=co=ed=null}function Jh(c){var h=Ju.current;Qt(Ju),c._currentValue=h}function e2(c,h,C){for(;c!==null;){var A=c.alternate;if((c.childLanes&h)!==h?(c.childLanes|=h,A!==null&&(A.childLanes|=h)):A!==null&&(A.childLanes&h)!==h&&(A.childLanes|=h),c===C)break;c=c.return}}function uo(c,h){ed=c,Zh=co=null,c=c.dependencies,c!==null&&c.firstContext!==null&&((c.lanes&h)!==0&&(Zn=!0),c.firstContext=null)}function Ir(c){var h=c._currentValue;if(Zh!==c)if(c={context:c,memoizedValue:h,next:null},co===null){if(ed===null)throw Error(t(308));co=c,ed.dependencies={lanes:0,firstContext:c}}else co=co.next=c;return h}var ta=null;function t2(c){ta===null?ta=[c]:ta.push(c)}function Q6(c,h,C,A){var k=h.interleaved;return k===null?(C.next=C,t2(h)):(C.next=k.next,k.next=C),h.interleaved=C,_s(c,A)}function _s(c,h){c.lanes|=h;var C=c.alternate;for(C!==null&&(C.lanes|=h),C=c,c=c.return;c!==null;)c.childLanes|=h,C=c.alternate,C!==null&&(C.childLanes|=h),C=c,c=c.return;return C.tag===3?C.stateNode:null}var pi=!1;function n2(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function J6(c,h){c=c.updateQueue,h.updateQueue===c&&(h.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects})}function Os(c,h){return{eventTime:c,lane:h,tag:0,payload:null,callback:null,next:null}}function gi(c,h,C){var A=c.updateQueue;if(A===null)return null;if(A=A.shared,(_t&2)!==0){var k=A.pending;return k===null?h.next=h:(h.next=k.next,k.next=h),A.pending=h,_s(c,C)}return k=A.interleaved,k===null?(h.next=h,t2(A)):(h.next=k.next,k.next=h),A.interleaved=h,_s(c,C)}function td(c,h,C){if(h=h.updateQueue,h!==null&&(h=h.shared,(C&4194240)!==0)){var A=h.lanes;A&=c.pendingLanes,C|=A,h.lanes=C,gh(c,C)}}function e4(c,h){var C=c.updateQueue,A=c.alternate;if(A!==null&&(A=A.updateQueue,C===A)){var k=null,O=null;if(C=C.firstBaseUpdate,C!==null){do{var U={eventTime:C.eventTime,lane:C.lane,tag:C.tag,payload:C.payload,callback:C.callback,next:null};O===null?k=O=U:O=O.next=U,C=C.next}while(C!==null);O===null?k=O=h:O=O.next=h}else k=O=h;C={baseState:A.baseState,firstBaseUpdate:k,lastBaseUpdate:O,shared:A.shared,effects:A.effects},c.updateQueue=C;return}c=C.lastBaseUpdate,c===null?C.firstBaseUpdate=h:c.next=h,C.lastBaseUpdate=h}function nd(c,h,C,A){var k=c.updateQueue;pi=!1;var O=k.firstBaseUpdate,U=k.lastBaseUpdate,te=k.shared.pending;if(te!==null){k.shared.pending=null;var de=te,Te=de.next;de.next=null,U===null?O=Te:U.next=Te,U=de;var De=c.alternate;De!==null&&(De=De.updateQueue,te=De.lastBaseUpdate,te!==U&&(te===null?De.firstBaseUpdate=Te:te.next=Te,De.lastBaseUpdate=de))}if(O!==null){var $e=k.baseState;U=0,De=Te=de=null,te=O;do{var _e=te.lane,Ze=te.eventTime;if((A&_e)===_e){De!==null&&(De=De.next={eventTime:Ze,lane:0,tag:te.tag,payload:te.payload,callback:te.callback,next:null});e:{var it=c,ot=te;switch(_e=h,Ze=C,ot.tag){case 1:if(it=ot.payload,typeof it=="function"){$e=it.call(Ze,$e,_e);break e}$e=it;break e;case 3:it.flags=it.flags&-65537|128;case 0:if(it=ot.payload,_e=typeof it=="function"?it.call(Ze,$e,_e):it,_e==null)break e;$e=se({},$e,_e);break e;case 2:pi=!0}}te.callback!==null&&te.lane!==0&&(c.flags|=64,_e=k.effects,_e===null?k.effects=[te]:_e.push(te))}else Ze={eventTime:Ze,lane:_e,tag:te.tag,payload:te.payload,callback:te.callback,next:null},De===null?(Te=De=Ze,de=$e):De=De.next=Ze,U|=_e;if(te=te.next,te===null){if(te=k.shared.pending,te===null)break;_e=te,te=_e.next,_e.next=null,k.lastBaseUpdate=_e,k.shared.pending=null}}while(!0);if(De===null&&(de=$e),k.baseState=de,k.firstBaseUpdate=Te,k.lastBaseUpdate=De,h=k.shared.interleaved,h!==null){k=h;do U|=k.lane,k=k.next;while(k!==h)}else O===null&&(k.shared.lanes=0);sa|=U,c.lanes=U,c.memoizedState=$e}}function t4(c,h,C){if(c=h.effects,h.effects=null,c!==null)for(h=0;h<c.length;h++){var A=c[h],k=A.callback;if(k!==null){if(A.callback=null,A=C,typeof k!="function")throw Error(t(191,k));k.call(A)}}}var kl={},os=fi(kl),Pl=fi(kl),_l=fi(kl);function na(c){if(c===kl)throw Error(t(174));return c}function r2(c,h){switch(Yt(_l,h),Yt(Pl,c),Yt(os,kl),c=h.nodeType,c){case 9:case 11:h=(h=h.documentElement)?h.namespaceURI:q(null,"");break;default:c=c===8?h.parentNode:h,h=c.namespaceURI||null,c=c.tagName,h=q(h,c)}Qt(os),Yt(os,h)}function fo(){Qt(os),Qt(Pl),Qt(_l)}function n4(c){na(_l.current);var h=na(os.current),C=q(h,c.type);h!==C&&(Yt(Pl,c),Yt(os,C))}function s2(c){Pl.current===c&&(Qt(os),Qt(Pl))}var ln=fi(0);function rd(c){for(var h=c;h!==null;
vendor: 7,520 bytes, line 38
38){if(h.tag===13){var C=h.memoizedState;if(C!==null&&(C=C.dehydrated,C===null||C.data==="$?"||C.data==="$!"))return h}else if(h.tag===19&&h.memoizedProps.revealOrder!==void 0){if((h.flags&128)!==0)return h}else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===c)break;for(;h.sibling===null;){if(h.return===null||h.return===c)return null;h=h.return}h.sibling.return=h.return,h=h.sibling}return null}var i2=[];function a2(){for(var c=0;c<i2.length;c++)i2[c]._workInProgressVersionPrimary=null;i2.length=0}var sd=R.ReactCurrentDispatcher,o2=R.ReactCurrentBatchConfig,ra=0,cn=null,xn=null,Sn=null,id=!1,Ol=!1,Dl=0,BI=0;function Dn(){throw Error(t(321))}function l2(c,h){if(h===null)return!1;for(var C=0;C<h.length&&C<c.length;C++)if(!Fr(c[C],h[C]))return!1;return!0}function c2(c,h,C,A,k,O){if(ra=O,cn=h,h.memoizedState=null,h.updateQueue=null,h.lanes=0,sd.current=c===null||c.memoizedState===null?GI:HI,c=C(A,k),Ol){O=0;do{if(Ol=!1,Dl=0,25<=O)throw Error(t(301));O+=1,Sn=xn=null,h.updateQueue=null,sd.current=WI,c=C(A,k)}while(Ol)}if(sd.current=ld,h=xn!==null&&xn.next!==null,ra=0,Sn=xn=cn=null,id=!1,h)throw Error(t(300));return c}function u2(){var c=Dl!==0;return Dl=0,c}function ls(){var c={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sn===null?cn.memoizedState=Sn=c:Sn=Sn.next=c,Sn}function Rr(){if(xn===null){var c=cn.alternate;c=c!==null?c.memoizedState:null}else c=xn.next;var h=Sn===null?cn.memoizedState:Sn.next;if(h!==null)Sn=h,xn=c;else{if(c===null)throw Error(t(310));xn=c,c={memoizedState:xn.memoizedState,baseState:xn.baseState,baseQueue:xn.baseQueue,queue:xn.queue,next:null},Sn===null?cn.memoizedState=Sn=c:Sn=Sn.next=c}return Sn}function jl(c,h){return typeof h=="function"?h(c):h}function d2(c){var h=Rr(),C=h.queue;if(C===null)throw Error(t(311));C.lastRenderedReducer=c;var A=xn,k=A.baseQueue,O=C.pending;if(O!==null){if(k!==null){var U=k.next;k.next=O.next,O.next=U}A.baseQueue=k=O,C.pending=null}if(k!==null){O=k.next,A=A.baseState;var te=U=null,de=null,Te=O;do{var De=Te.lane;if((ra&De)===De)de!==null&&(de=de.next={lane:0,action:Te.action,hasEagerState:Te.hasEagerState,eagerState:Te.eagerState,next:null}),A=Te.hasEagerState?Te.eagerState:c(A,Te.action);else{var $e={lane:De,action:Te.action,hasEagerState:Te.hasEagerState,eagerState:Te.eagerState,next:null};de===null?(te=de=$e,U=A):de=de.next=$e,cn.lanes|=De,sa|=De}Te=Te.next}while(Te!==null&&Te!==O);de===null?U=A:de.next=te,Fr(A,h.memoizedState)||(Zn=!0),h.memoizedState=A,h.baseState=U,h.baseQueue=de,C.lastRenderedState=A}if(c=C.interleaved,c!==null){k=c;do O=k.lane,cn.lanes|=O,sa|=O,k=k.next;while(k!==c)}else k===null&&(C.lanes=0);return[h.memoizedState,C.dispatch]}function f2(c){var h=Rr(),C=h.queue;if(C===null)throw Error(t(311));C.lastRenderedReducer=c;var A=C.dispatch,k=C.pending,O=h.memoizedState;if(k!==null){C.pending=null;var U=k=k.next;do O=c(O,U.action),U=U.next;while(U!==k);Fr(O,h.memoizedState)||(Zn=!0),h.memoizedState=O,h.baseQueue===null&&(h.baseState=O),C.lastRenderedState=O}return[O,A]}function r4(){}function s4(c,h){var C=cn,A=Rr(),k=h(),O=!Fr(A.memoizedState,k);if(O&&(A.memoizedState=k,Zn=!0),A=A.queue,h2(o4.bind(null,C,A,c),[c]),A.getSnapshot!==h||O||Sn!==null&&Sn.memoizedState.tag&1){if(C.flags|=2048,Ml(9,a4.bind(null,C,A,k,h),void 0,null),En===null)throw Error(t(349));(ra&30)!==0||i4(C,h,k)}return k}function i4(c,h,C){c.flags|=16384,c={getSnapshot:h,value:C},h=cn.updateQueue,h===null?(h={lastEffect:null,stores:null},cn.updateQueue=h,h.stores=[c]):(C=h.stores,C===null?h.stores=[c]:C.push(c))}function a4(c,h,C,A){h.value=C,h.getSnapshot=A,l4(h)&&c4(c)}function o4(c,h,C){return C(function(){l4(h)&&c4(c)})}function l4(c){var h=c.getSnapshot;c=c.value;try{var C=h();return!Fr(c,C)}catch{return!0}}function c4(c){var h=_s(c,1);h!==null&&zr(h,c,1,-1)}function u4(c){var h=ls();return typeof c=="function"&&(c=c()),h.memoizedState=h.baseState=c,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jl,lastRenderedState:c},h.queue=c,c=c.dispatch=zI.bind(null,cn,c),[h.memoizedState,c]}function Ml(c,h,C,A){return c={tag:c,create:h,destroy:C,deps:A,next:null},h=cn.updateQueue,h===null?(h={lastEffect:null,stores:null},cn.updateQueue=h,h.lastEffect=c.next=c):(C=h.lastEffect,C===null?h.lastEffect=c.next=c:(A=C.next,C.next=c,c.next=A,h.lastEffect=c)),c}function d4(){return Rr().memoizedState}function ad(c,h,C,A){var k=ls();cn.flags|=c,k.memoizedState=Ml(1|h,C,void 0,A===void 0?null:A)}function od(c,h,C,A){var k=Rr();A=A===void 0?null:A;var O=void 0;if(xn!==null){var U=xn.memoizedState;if(O=U.destroy,A!==null&&l2(A,U.deps)){k.memoizedState=Ml(h,C,O,A);return}}cn.flags|=c,k.memoizedState=Ml(1|h,C,O,A)}function f4(c,h){return ad(8390656,8,c,h)}function h2(c,h){return od(2048,8,c,h)}function h4(c,h){return od(4,2,c,h)}function m4(c,h){return od(4,4,c,h)}function p4(c,h){if(typeof h=="function")return c=c(),h(c),function(){h(null)};if(h!=null)return c=c(),h.current=c,function(){h.current=null}}function g4(c,h,C){return C=C!=null?C.concat([c]):null,od(4,4,p4.bind(null,h,c),C)}function m2(){}function y4(c,h){var C=Rr();h=h===void 0?null:h;var A=C.memoizedState;return A!==null&&h!==null&&l2(h,A[1])?A[0]:(C.memoizedState=[c,h],c)}function v4(c,h){var C=Rr();h=h===void 0?null:h;var A=C.memoizedState;return A!==null&&h!==null&&l2(h,A[1])?A[0]:(c=c(),C.memoizedState=[c,h],c)}function x4(c,h,C){return(ra&21)===0?(c.baseState&&(c.baseState=!1,Zn=!0),c.memoizedState=C):(Fr(C,h)||(C=Y8(),cn.lanes|=C,sa|=C,c.baseState=!0),h)}function UI(c,h){var C=Gt;Gt=C!==0&&4>C?C:4,c(!0);var A=o2.transition;o2.transition={};try{c(!1),h()}finally{Gt=C,o2.transition=A}}function C4(){return Rr().memoizedState}function VI(c,h,C){var A=Ci(c);if(C={lane:A,action:C,hasEagerState:!1,eagerState:null,next:null},b4(c))S4(h,C);else if(C=Q6(c,h,C,A),C!==null){var k=Gn();zr(C,c,A,k),E4(C,h,A)}}function zI(c,h,C){var A=Ci(c),k={lane:A,action:C,hasEagerState:!1,eagerState:null,next:null};if(b4(c))S4(h,k);else{var O=c.alternate;if(c.lanes===0&&(O===null||O.lanes===0)&&(O=h.lastRenderedReducer,O!==null))try{var U=h.lastRenderedState,te=O(U,C);if(k.hasEagerState=!0,k.eagerState=te,Fr(te,U)){var de=h.interleaved;de===null?(k.next=k,t2(h)):(k.next=de.next,de.next=k),h.interleaved=k;return}}catch{}finally{}C=Q6(c,h,k,A),C!==null&&(k=Gn(),zr(C,c,A,k),E4(C,h,A))}}function b4(c){var h=c.alternate;return c===cn||h!==null&&h===cn}function S4(c,h){Ol=id=!0;var C=c.pending;C===null?h.next=h:(h.next=C.next,C.next=h),c.pending=h}function E4(c,h,C){if((C&4194240)!==0){var A=h.lanes;A&=c.pendingLanes,C|=A,h.lanes=C,gh(c,C)}}var ld={readContext:Ir,useCallback:Dn,useContext:Dn,useEffect:Dn,useImperativeHandle:Dn,useInsertionEffect:Dn,useLayoutEffect:Dn,useMemo:Dn,useReducer:Dn,useRef:Dn,useState:Dn,useDebugValue:Dn,useDeferredValue:Dn,useTransition:Dn,useMutableSource:Dn,useSyncExternalStore:Dn,useId:Dn,unstable_isNewReconciler:!1},GI={readContext:Ir,useCallback:function(c,h){return ls().memoizedState=[c,h===void 0?null:h],c},useContext:Ir,useEffect:f4,useImperativeHandle:function(c,h,C){return C=C!=null?C.concat([c]):null,ad(4194308,4,p4.bind(null,h,c),C)},useLayoutEffect:function(c,h){return ad(4194308,4,c,h)},useInsertionEffect:function(c,h){return ad(4,2,c,h)},useMemo:function(c,h){var C=ls();return h=h===void 0?null:h,c=c(),C.memoizedState=[c,h],c},useReducer:function(c,h,C){var A=ls();return h=C!==void 0?C(h):h,A.memoizedState=A.baseState=h,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:h}
vendor: 4,983 bytes, lines 38-40
38,A.queue=c,c=c.dispatch=VI.bind(null,cn,c),[A.memoizedState,c]},useRef:function(c){var h=ls();return c={current:c},h.memoizedState=c},useState:u4,useDebugValue:m2,useDeferredValue:function(c){return ls().memoizedState=c},useTransition:function(){var c=u4(!1),h=c[0];return c=UI.bind(null,c[1]),ls().memoizedState=c,[h,c]},useMutableSource:function(){},useSyncExternalStore:function(c,h,C){var A=cn,k=ls();if(sn){if(C===void 0)throw Error(t(407));C=C()}else{if(C=h(),En===null)throw Error(t(349));(ra&30)!==0||i4(A,h,C)}k.memoizedState=C;var O={value:C,getSnapshot:h};return k.queue=O,f4(o4.bind(null,A,O,c),[c]),A.flags|=2048,Ml(9,a4.bind(null,A,O,C,h),void 0,null),C},useId:function(){var c=ls(),h=En.identifierPrefix;if(sn){var C=Ps,A=ks;C=(A&~(1<<32-Mr(A)-1)).toString(32)+C,h=":"+h+"R"+C,C=Dl++,0<C&&(h+="H"+C.toString(32)),h+=":"}else C=BI++,h=":"+h+"r"+C.toString(32)+":";return c.memoizedState=h},unstable_isNewReconciler:!1},HI={readContext:Ir,useCallback:y4,useContext:Ir,useEffect:h2,useImperativeHandle:g4,useInsertionEffect:h4,useLayoutEffect:m4,useMemo:v4,useReducer:d2,useRef:d4,useState:function(){return d2(jl)},useDebugValue:m2,useDeferredValue:function(c){var h=Rr();return x4(h,xn.memoizedState,c)},useTransition:function(){var c=d2(jl)[0],h=Rr().memoizedState;return[c,h]},useMutableSource:r4,useSyncExternalStore:s4,useId:C4,unstable_isNewReconciler:!1},WI={readContext:Ir,useCallback:y4,useContext:Ir,useEffect:h2,useImperativeHandle:g4,useInsertionEffect:h4,useLayoutEffect:m4,useMemo:v4,useReducer:f2,useRef:d4,useState:function(){return f2(jl)},useDebugValue:m2,useDeferredValue:function(c){var h=Rr();return xn===null?h.memoizedState=c:x4(h,xn.memoizedState,c)},useTransition:function(){var c=f2(jl)[0],h=Rr().memoizedState;return[c,h]},useMutableSource:r4,useSyncExternalStore:s4,useId:C4,unstable_isNewReconciler:!1};function Br(c,h){if(c&&c.defaultProps){h=se({},h),c=c.defaultProps;for(var C in c)h[C]===void 0&&(h[C]=c[C]);return h}return h}function p2(c,h,C,A){h=c.memoizedState,C=C(A,h),C=C==null?h:se({},h,C),c.memoizedState=C,c.lanes===0&&(c.updateQueue.baseState=C)}var cd={isMounted:function(c){return(c=c._reactInternals)?ss(c)===c:!1},enqueueSetState:function(c,h,C){c=c._reactInternals;var A=Gn(),k=Ci(c),O=Os(A,k);O.payload=h,C!=null&&(O.callback=C),h=gi(c,O,k),h!==null&&(zr(h,c,k,A),td(h,c,k))},enqueueReplaceState:function(c,h,C){c=c._reactInternals;var A=Gn(),k=Ci(c),O=Os(A,k);O.tag=1,O.payload=h,C!=null&&(O.callback=C),h=gi(c,O,k),h!==null&&(zr(h,c,k,A),td(h,c,k))},enqueueForceUpdate:function(c,h){c=c._reactInternals;var C=Gn(),A=Ci(c),k=Os(C,A);k.tag=2,h!=null&&(k.callback=h),h=gi(c,k,A),h!==null&&(zr(h,c,A,C),td(h,c,A))}};function w4(c,h,C,A,k,O,U){return c=c.stateNode,typeof c.shouldComponentUpdate=="function"?c.shouldComponentUpdate(A,O,U):h.prototype&&h.prototype.isPureReactComponent?!El(C,A)||!El(k,O):!0}function T4(c,h,C){var A=!1,k=hi,O=h.contextType;return typeof O=="object"&&O!==null?O=Ir(O):(k=Xn(h)?Qi:On.current,A=h.contextTypes,O=(A=A!=null)?so(c,k):hi),h=new h(C,O),c.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=cd,c.stateNode=h,h._reactInternals=c,A&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=k,c.__reactInternalMemoizedMaskedChildContext=O),h}function I4(c,h,C,A){c=h.state,typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps(C,A),typeof h.UNSAFE_componentWillReceiveProps=="function"&&h.UNSAFE_componentWillReceiveProps(C,A),h.state!==c&&cd.enqueueReplaceState(h,h.state,null)}function g2(c,h,C,A){var k=c.stateNode;k.props=C,k.state=c.memoizedState,k.refs={},n2(c);var O=h.contextType;typeof O=="object"&&O!==null?k.context=Ir(O):(O=Xn(h)?Qi:On.current,k.context=so(c,O)),k.state=c.memoizedState,O=h.getDerivedStateFromProps,typeof O=="function"&&(p2(c,h,O,C),k.state=c.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof k.getSnapshotBeforeUpdate=="function"||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(h=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),h!==k.state&&cd.enqueueReplaceState(k,k.state,null),nd(c,C,k,A),k.state=c.memoizedState),typeof k.componentDidMount=="function"&&(c.flags|=4194308)}function ho(c,h){try{var C="",A=h;do C+=Ae(A),A=A.return;while(A);var k=C}catch(O){k=`
39Error generating stack: `+O.message+`
40`+O.stack}return{value:c,source:h,stack:k,digest:null}}function y2(c,h,C){return{value:c,source:null,stack:C??null,digest:h??null}}function v2(c,h){try{console.error(h.value)}catch(C){setTimeout(function(){throw C})}}var KI=typeof WeakMap=="function"?WeakMap:Map;function R4(c,h,C){C=Os(-1,C),C.tag=3,C.payload={element:null};var A=h.value;return C.callback=function(){gd||(gd=!0,_2=A),v2(c,h)},C}function A4(c,h,C){C=Os(-1,C),C.tag=3;var A=c.type.getDerivedStateFromError;if(typeof A=="function"){var k=h.value;C.payload=function(){return A(k)}
vendor: 40,263 bytes, line 40
40,C.callback=function(){v2(c,h)}}var O=c.stateNode;return O!==null&&typeof O.componentDidCatch=="function"&&(C.callback=function(){v2(c,h),typeof A!="function"&&(vi===null?vi=new Set([this]):vi.add(this));var U=h.stack;this.componentDidCatch(h.value,{componentStack:U!==null?U:""})}),C}function L4(c,h,C){var A=c.pingCache;if(A===null){A=c.pingCache=new KI;var k=new Set;A.set(h,k)}else k=A.get(h),k===void 0&&(k=new Set,A.set(h,k));k.has(C)||(k.add(C),c=oR.bind(null,c,h,C),h.then(c,c))}function N4(c){do{var h;if((h=c.tag===13)&&(h=c.memoizedState,h=h!==null?h.dehydrated!==null:!0),h)return c;c=c.return}while(c!==null);return null}function k4(c,h,C,A,k){return(c.mode&1)===0?(c===h?c.flags|=65536:(c.flags|=128,C.flags|=131072,C.flags&=-52805,C.tag===1&&(C.alternate===null?C.tag=17:(h=Os(-1,1),h.tag=2,gi(C,h,1))),C.lanes|=1),c):(c.flags|=65536,c.lanes=k,c)}var qI=R.ReactCurrentOwner,Zn=!1;function zn(c,h,C,A){h.child=c===null?Z6(h,null,C,A):lo(h,c.child,C,A)}function P4(c,h,C,A,k){C=C.render;var O=h.ref;return uo(h,k),A=c2(c,h,C,A,O,k),C=u2(),c!==null&&!Zn?(h.updateQueue=c.updateQueue,h.flags&=-2053,c.lanes&=~k,Ds(c,h,k)):(sn&&C&&Wh(h),h.flags|=1,zn(c,h,A,k),h.child)}function _4(c,h,C,A,k){if(c===null){var O=C.type;return typeof O=="function"&&!B2(O)&&O.defaultProps===void 0&&C.compare===null&&C.defaultProps===void 0?(h.tag=15,h.type=O,O4(c,h,O,A,k)):(c=Sd(C.type,null,A,h,h.mode,k),c.ref=h.ref,c.return=h,h.child=c)}if(O=c.child,(c.lanes&k)===0){var U=O.memoizedProps;if(C=C.compare,C=C!==null?C:El,C(U,A)&&c.ref===h.ref)return Ds(c,h,k)}return h.flags|=1,c=Si(O,A),c.ref=h.ref,c.return=h,h.child=c}function O4(c,h,C,A,k){if(c!==null){var O=c.memoizedProps;if(El(O,A)&&c.ref===h.ref)if(Zn=!1,h.pendingProps=A=O,(c.lanes&k)!==0)(c.flags&131072)!==0&&(Zn=!0);else return h.lanes=c.lanes,Ds(c,h,k)}return x2(c,h,C,A,k)}function D4(c,h,C){var A=h.pendingProps,k=A.children,O=c!==null?c.memoizedState:null;if(A.mode==="hidden")if((h.mode&1)===0)h.memoizedState={baseLanes:0,cachePool:null,transitions:null},Yt(po,fr),fr|=C;else{if((C&1073741824)===0)return c=O!==null?O.baseLanes|C:C,h.lanes=h.childLanes=1073741824,h.memoizedState={baseLanes:c,cachePool:null,transitions:null},h.updateQueue=null,Yt(po,fr),fr|=c,null;h.memoizedState={baseLanes:0,cachePool:null,transitions:null},A=O!==null?O.baseLanes:C,Yt(po,fr),fr|=A}else O!==null?(A=O.baseLanes|C,h.memoizedState=null):A=C,Yt(po,fr),fr|=A;return zn(c,h,k,C),h.child}function j4(c,h){var C=h.ref;(c===null&&C!==null||c!==null&&c.ref!==C)&&(h.flags|=512,h.flags|=2097152)}function x2(c,h,C,A,k){var O=Xn(C)?Qi:On.current;return O=so(h,O),uo(h,k),C=c2(c,h,C,A,O,k),A=u2(),c!==null&&!Zn?(h.updateQueue=c.updateQueue,h.flags&=-2053,c.lanes&=~k,Ds(c,h,k)):(sn&&A&&Wh(h),h.flags|=1,zn(c,h,C,k),h.child)}function M4(c,h,C,A,k){if(Xn(C)){var O=!0;Ku(h)}else O=!1;if(uo(h,k),h.stateNode===null)dd(c,h),T4(h,C,A),g2(h,C,A,k),A=!0;else if(c===null){var U=h.stateNode,te=h.memoizedProps;U.props=te;var de=U.context,Te=C.contextType;typeof Te=="object"&&Te!==null?Te=Ir(Te):(Te=Xn(C)?Qi:On.current,Te=so(h,Te));var De=C.getDerivedStateFromProps,$e=typeof De=="function"||typeof U.getSnapshotBeforeUpdate=="function";$e||typeof U.UNSAFE_componentWillReceiveProps!="function"&&typeof U.componentWillReceiveProps!="function"||(te!==A||de!==Te)&&I4(h,U,A,Te),pi=!1;var _e=h.memoizedState;U.state=_e,nd(h,A,U,k),de=h.memoizedState,te!==A||_e!==de||Yn.current||pi?(typeof De=="function"&&(p2(h,C,De,A),de=h.memoizedState),(te=pi||w4(h,C,te,A,_e,de,Te))?($e||typeof U.UNSAFE_componentWillMount!="function"&&typeof U.componentWillMount!="function"||(typeof U.componentWillMount=="function"&&U.componentWillMount(),typeof U.UNSAFE_componentWillMount=="function"&&U.UNSAFE_componentWillMount()),typeof U.componentDidMount=="function"&&(h.flags|=4194308)):(typeof U.componentDidMount=="function"&&(h.flags|=4194308),h.memoizedProps=A,h.memoizedState=de),U.props=A,U.state=de,U.context=Te,A=te):(typeof U.componentDidMount=="function"&&(h.flags|=4194308),A=!1)}else{U=h.stateNode,J6(c,h),te=h.memoizedProps,Te=h.type===h.elementType?te:Br(h.type,te),U.props=Te,$e=h.pendingProps,_e=U.context,de=C.contextType,typeof de=="object"&&de!==null?de=Ir(de):(de=Xn(C)?Qi:On.current,de=so(h,de));var Ze=C.getDerivedStateFromProps;(De=typeof Ze=="function"||typeof U.getSnapshotBeforeUpdate=="function")||typeof U.UNSAFE_componentWillReceiveProps!="function"&&typeof U.componentWillReceiveProps!="function"||(te!==$e||_e!==de)&&I4(h,U,A,de),pi=!1,_e=h.memoizedState,U.state=_e,nd(h,A,U,k);var it=h.memoizedState;te!==$e||_e!==it||Yn.current||pi?(typeof Ze=="function"&&(p2(h,C,Ze,A),it=h.memoizedState),(Te=pi||w4(h,C,Te,A,_e,it,de)||!1)?(De||typeof U.UNSAFE_componentWillUpdate!="function"&&typeof U.componentWillUpdate!="function"||(typeof U.componentWillUpdate=="function"&&U.componentWillUpdate(A,it,de),typeof U.UNSAFE_componentWillUpdate=="function"&&U.UNSAFE_componentWillUpdate(A,it,de)),typeof U.componentDidUpdate=="function"&&(h.flags|=4),typeof U.getSnapshotBeforeUpdate=="function"&&(h.flags|=1024)):(typeof U.componentDidUpdate!="function"||te===c.memoizedProps&&_e===c.memoizedState||(h.flags|=4),typeof U.getSnapshotBeforeUpdate!="function"||te===c.memoizedProps&&_e===c.memoizedState||(h.flags|=1024),h.memoizedProps=A,h.memoizedState=it),U.props=A,U.state=it,U.context=de,A=Te):(typeof U.componentDidUpdate!="function"||te===c.memoizedProps&&_e===c.memoizedState||(h.flags|=4),typeof U.getSnapshotBeforeUpdate!="function"||te===c.memoizedProps&&_e===c.memoizedState||(h.flags|=1024),A=!1)}return C2(c,h,C,A,O,k)}function C2(c,h,C,A,k,O){j4(c,h);var U=(h.flags&128)!==0;if(!A&&!U)return k&&V6(h,C,!1),Ds(c,h,O);A=h.stateNode,qI.current=h;var te=U&&typeof C.getDerivedStateFromError!="function"?null:A.render();return h.flags|=1,c!==null&&U?(h.child=lo(h,c.child,null,O),h.child=lo(h,null,te,O)):zn(c,h,te,O),h.memoizedState=A.state,k&&V6(h,C,!0),h.child}function F4(c){var h=c.stateNode;h.pendingContext?B6(c,h.pendingContext,h.pendingContext!==h.context):h.context&&B6(c,h.context,!1),r2(c,h.containerInfo)}function $4(c,h,C,A,k){return oo(),Xh(k),h.flags|=256,zn(c,h,C,A),h.child}var b2={dehydrated:null,treeContext:null,retryLane:0};function S2(c){return{baseLanes:c,cachePool:null,transitions:null}}function B4(c,h,C){var A=h.pendingProps,k=ln.current,O=!1,U=(h.flags&128)!==0,te;if((te=U)||(te=c!==null&&c.memoizedState===null?!1:(k&2)!==0),te?(O=!0,h.flags&=-129):(c===null||c.memoizedState!==null)&&(k|=1),Yt(ln,k&1),c===null)return Yh(h),c=h.memoizedState,c!==null&&(c=c.dehydrated,c!==null)?((h.mode&1)===0?h.lanes=1:c.data==="$!"?h.lanes=8:h.lanes=1073741824,null):(U=A.children,c=A.fallback,O?(A=h.mode,O=h.child,U={mode:"hidden",children:U},(A&1)===0&&O!==null?(O.childLanes=0,O.pendingProps=U):O=Ed(U,A,0,null),c=la(c,A,C,null),O.return=h,c.return=h,O.sibling=c,h.child=O,h.child.memoizedState=S2(C),h.memoizedState=b2,c):E2(h,U));if(k=c.memoizedState,k!==null&&(te=k.dehydrated,te!==null))return YI(c,h,U,A,te,k,C);if(O){O=A.fallback,U=h.mode,k=c.child,te=k.sibling;var de={mode:"hidden",children:A.children};return(U&1)===0&&h.child!==k?(A=h.child,A.childLanes=0,A.pendingProps=de,h.deletions=null):(A=Si(k,de),A.subtreeFlags=k.subtreeFlags&14680064),te!==null?O=Si(te,O):(O=la(O,U,C,null),O.flags|=2),O.return=h,A.return=h,A.sibling=O,h.child=A,A=O,O=h.child,U=c.child.memoizedState,U=U===null?S2(C):{baseLanes:U.baseLanes|C,cachePool:null,transitions:U.transitions},O.memoizedState=U,O.childLanes=c.childLanes&~C,h.memoizedState=b2,A}return O=c.child,c=O.sibling,A=Si(O,{mode:"visible",children:A.children}),(h.mode&1)===0&&(A.lanes=C),A.return=h,A.sibling=null,c!==null&&(C=h.deletions,C===null?(h.deletions=[c],h.flags|=16):C.push(c)),h.child=A,h.memoizedState=null,A}function E2(c,h){return h=Ed({mode:"visible",children:h},c.mode,0,null),h.return=c,c.child=h}function ud(c,h,C,A){return A!==null&&Xh(A),lo(h,c.child,null,C),c=E2(h,h.pendingProps.children),c.flags|=2,h.memoizedState=null,c}function YI(c,h,C,A,k,O,U){if(C)return h.flags&256?(h.flags&=-257,A=y2(Error(t(422))),ud(c,h,U,A)):h.memoizedState!==null?(h.child=c.child,h.flags|=128,null):(O=A.fallback,k=h.mode,A=Ed({mode:"visible",children:A.children},k,0,null),O=la(O,k,U,null),O.flags|=2,A.return=h,O.return=h,A.sibling=O,h.child=A,(h.mode&1)!==0&&lo(h,c.child,null,U),h.child.memoizedState=S2(U),h.memoizedState=b2,O);if((h.mode&1)===0)return ud(c,h,U,null);if(k.data==="$!"){if(A=k.nextSibling&&k.nextSibling.dataset,A)var te=A.dgst;return A=te,O=Error(t(419)),A=y2(O,A,void 0),ud(c,h,U,A)}if(te=(U&c.childLanes)!==0,Zn||te){if(A=En,A!==null){switch(U&-U){case 4:k=2;break;case 16:k=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:k=32;break;case 536870912:k=268435456;break;default:k=0}k=(k&(A.suspendedLanes|U))!==0?0:k,k!==0&&k!==O.retryLane&&(O.retryLane=k,_s(c,k),zr(A,c,k,-1))}return $2(),A=y2(Error(t(421))),ud(c,h,U,A)}return k.data==="$?"?(h.flags|=128,h.child=c.child,h=lR.bind(null,c),k._reactRetry=h,null):(c=O.treeContext,dr=di(k.nextSibling),ur=h,sn=!0,$r=null,c!==null&&(wr[Tr++]=ks,wr[Tr++]=Ps,wr[Tr++]=Ji,ks=c.id,Ps=c.overflow,Ji=h),h=E2(h,A.children),h.flags|=4096,h)}function U4(c,h,C){c.lanes|=h;var A=c.alternate;A!==null&&(A.lanes|=h),e2(c.return,h,C)}function w2(c,h,C,A,k){var O=c.memoizedState;O===null?c.memoizedState={isBackwards:h,rendering:null,renderingStartTime:0,last:A,tail:C,tailMode:k}:(O.isBackwards=h,O.rendering=null,O.renderingStartTime=0,O.last=A,O.tail=C,O.tailMode=k)}function V4(c,h,C){var A=h.pendingProps,k=A.revealOrder,O=A.tail;if(zn(c,h,A.children,C),A=ln.current,(A&2)!==0)A=A&1|2,h.flags|=128;else{if(c!==null&&(c.flags&128)!==0)e:for(c=h.child;c!==null;){if(c.tag===13)c.memoizedState!==null&&U4(c,C,h);else if(c.tag===19)U4(c,C,h);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===h)break e;for(;c.sibling===null;){if(c.return===null||c.return===h)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}A&=1}if(Yt(ln,A),(h.mode&1)===0)h.memoizedState=null;else switch(k){case"forwards":for(C=h.child,k=null;C!==null;)c=C.alternate,c!==null&&rd(c)===null&&(k=C),C=C.sibling;C=k,C===null?(k=h.child,h.child=null):(k=C.sibling,C.sibling=null),w2(h,!1,k,C,O);break;case"backwards":for(C=null,k=h.child,h.child=null;k!==null;){if(c=k.alternate,c!==null&&rd(c)===null){h.child=k;break}c=k.sibling,k.sibling=C,C=k,k=c}w2(h,!0,C,null,O);break;case"together":w2(h,!1,null,null,void 0);break;default:h.memoizedState=null}return h.child}function dd(c,h){(h.mode&1)===0&&c!==null&&(c.alternate=null,h.alternate=null,h.flags|=2)}function Ds(c,h,C){if(c!==null&&(h.dependencies=c.dependencies),sa|=h.lanes,(C&h.childLanes)===0)return null;if(c!==null&&h.child!==c.child)throw Error(t(153));if(h.child!==null){for(c=h.child,C=Si(c,c.pendingProps),h.child=C,C.return=h;c.sibling!==null;)c=c.sibling,C=C.sibling=Si(c,c.pendingProps),C.return=h;C.sibling=null}return h.child}function XI(c,h,C){switch(h.tag){case 3:F4(h),oo();break;case 5:n4(h);break;case 1:Xn(h.type)&&Ku(h);break;case 4:r2(h,h.stateNode.containerInfo);break;case 10:var A=h.type._context,k=h.memoizedProps.value;Yt(Ju,A._currentValue),A._currentValue=k;break;case 13:if(A=h.memoizedState,A!==null)return A.dehydrated!==null?(Yt(ln,ln.current&1),h.flags|=128,null):(C&h.child.childLanes)!==0?B4(c,h,C):(Yt(ln,ln.current&1),c=Ds(c,h,C),c!==null?c.sibling:null);Yt(ln,ln.current&1);break;case 19:if(A=(C&h.childLanes)!==0,(c.flags&128)!==0){if(A)return V4(c,h,C);h.flags|=128}if(k=h.memoizedState,k!==null&&(k.rendering=null,k.tail=null,k.lastEffect=null),Yt(ln,ln.current),A)break;return null;case 22:case 23:return h.lanes=0,D4(c,h,C)}return Ds(c,h,C)}var z4,T2,G4,H4;z4=function(c,h){for(var C=h.child;C!==null;){if(C.tag===5||C.tag===6)c.appendChild(C.stateNode);else if(C.tag!==4&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===h)break;for(;C.sibling===null;){if(C.return===null||C.return===h)return;C=C.return}C.sibling.return=C.return,C=C.sibling}},T2=function(){},G4=function(c,h,C,A){var k=c.memoizedProps;if(k!==A){c=h.stateNode,na(os.current);var O=null;switch(C){case"input":k=Fe(c,k),A=Fe(c,A),O=[];break;case"select":k=se({},k,{value:void 0}),A=se({},A,{value:void 0}),O=[];break;case"textarea":k=D(c,k),A=D(c,A),O=[];break;default:typeof k.onClick!="function"&&typeof A.onClick=="function"&&(c.onclick=Gu)}ht(C,A);var U;C=null;for(Te in k)if(!A.hasOwnProperty(Te)&&k.hasOwnProperty(Te)&&k[Te]!=null)if(Te==="style"){var te=k[Te];for(U in te)te.hasOwnProperty(U)&&(C||(C={}),C[U]="")}else Te!=="dangerouslySetInnerHTML"&&Te!=="children"&&Te!=="suppressContentEditableWarning"&&Te!=="suppressHydrationWarning"&&Te!=="autoFocus"&&(s.hasOwnProperty(Te)?O||(O=[]):(O=O||[]).push(Te,null));for(Te in A){var de=A[Te];if(te=k!=null?k[Te]:void 0,A.hasOwnProperty(Te)&&de!==te&&(de!=null||te!=null))if(Te==="style")if(te){for(U in te)!te.hasOwnProperty(U)||de&&de.hasOwnProperty(U)||(C||(C={}),C[U]="");for(U in de)de.hasOwnProperty(U)&&te[U]!==de[U]&&(C||(C={}),C[U]=de[U])}else C||(O||(O=[]),O.push(Te,C)),C=de;else Te==="dangerouslySetInnerHTML"?(de=de?de.__html:void 0,te=te?te.__html:void 0,de!=null&&te!==de&&(O=O||[]).push(Te,de)):Te==="children"?typeof de!="string"&&typeof de!="number"||(O=O||[]).push(Te,""+de):Te!=="suppressContentEditableWarning"&&Te!=="suppressHydrationWarning"&&(s.hasOwnProperty(Te)?(de!=null&&Te==="onScroll"&&Zt("scroll",c),O||te===de||(O=[])):(O=O||[]).push(Te,de))}C&&(O=O||[]).push("style",C);var Te=O;(h.updateQueue=Te)&&(h.flags|=4)}},H4=function(c,h,C,A){C!==A&&(h.flags|=4)};function Fl(c,h){if(!sn)switch(c.tailMode){case"hidden":h=c.tail;for(var C=null;h!==null;)h.alternate!==null&&(C=h),h=h.sibling;C===null?c.tail=null:C.sibling=null;break;case"collapsed":C=c.tail;for(var A=null;C!==null;)C.alternate!==null&&(A=C),C=C.sibling;A===null?h||c.tail===null?c.tail=null:c.tail.sibling=null:A.sibling=null}}function jn(c){var h=c.alternate!==null&&c.alternate.child===c.child,C=0,A=0;if(h)for(var k=c.child;k!==null;)C|=k.lanes|k.childLanes,A|=k.subtreeFlags&14680064,A|=k.flags&14680064,k.return=c,k=k.sibling;else for(k=c.child;k!==null;)C|=k.lanes|k.childLanes,A|=k.subtreeFlags,A|=k.flags,k.return=c,k=k.sibling;return c.subtreeFlags|=A,c.childLanes=C,h}function ZI(c,h,C){var A=h.pendingProps;switch(Kh(h),h.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jn(h),null;case 1:return Xn(h.type)&&Wu(),jn(h),null;case 3:return A=h.stateNode,fo(),Qt(Yn),Qt(On),a2(),A.pendingContext&&(A.context=A.pendingContext,A.pendingContext=null),(c===null||c.child===null)&&(Zu(h)?h.flags|=4:c===null||c.memoizedState.isDehydrated&&(h.flags&256)===0||(h.flags|=1024,$r!==null&&(j2($r),$r=null))),T2(c,h),jn(h),null;case 5:s2(h);var k=na(_l.current);if(C=h.type,c!==null&&h.stateNode!=null)G4(c,h,C,A,k),c.ref!==h.ref&&(h.flags|=512,h.flags|=2097152);else{if(!A){if(h.stateNode===null)throw Error(t(166));return jn(h),null}if(c=na(os.current),Zu(h)){A=h.stateNode,C=h.type;var O=h.memoizedProps;switch(A[as]=h,A[Al]=O,c=(h.mode&1)!==0,C){case"dialog":Zt("cancel",A),Zt("close",A);break;case"iframe":case"object":case"embed":Zt("load",A);break;case"video":case"audio":for(k=0;k<Tl.length;k++)Zt(Tl[k],A);break;case"source":Zt("error",A);break;case"img":case"image":case"link":Zt("error",A),Zt("load",A);break;case"details":Zt("toggle",A);break;case"input":Me(A,O),Zt("invalid",A);break;case"select":A._wrapperState={wasMultiple:!!O.multiple},Zt("invalid",A);break;case"textarea":B(A,O),Zt("invalid",A)}ht(C,O),k=null;for(var U in O)if(O.hasOwnProperty(U)){var te=O[U];U==="children"?typeof te=="string"?A.textContent!==te&&(O.suppressHydrationWarning!==!0&&zu(A.textContent,te,c),k=["children",te]):typeof te=="number"&&A.textContent!==""+te&&(O.suppressHydrationWarning!==!0&&zu(A.textContent,te,c),k=["children",""+te]):s.hasOwnProperty(U)&&te!=null&&U==="onScroll"&&Zt("scroll",A)}switch(C){case"input":pe(A),K(A,O,!0);break;case"textarea":pe(A),Y(A);break;case"select":case"option":break;default:typeof O.onClick=="function"&&(A.onclick=Gu)}A=k,h.updateQueue=A,A!==null&&(h.flags|=4)}else{U=k.nodeType===9?k:k.ownerDocument,c==="http://www.w3.org/1999/xhtml"&&(c=H(C)),c==="http://www.w3.org/1999/xhtml"?C==="script"?(c=U.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild)):typeof A.is=="string"?c=U.createElement(C,{is:A.is}):(c=U.createElement(C),C==="select"&&(U=c,A.multiple?U.multiple=!0:A.size&&(U.size=A.size))):c=U.createElementNS(c,C),c[as]=h,c[Al]=A,z4(c,h,!1,!1),h.stateNode=c;e:{switch(U=Nt(C,A),C){case"dialog":Zt("cancel",c),Zt("close",c),k=A;break;case"iframe":case"object":case"embed":Zt("load",c),k=A;break;case"video":case"audio":for(k=0;k<Tl.length;k++)Zt(Tl[k],c);k=A;break;case"source":Zt("error",c),k=A;break;case"img":case"image":case"link":Zt("error",c),Zt("load",c),k=A;break;case"details":Zt("toggle",c),k=A;break;case"input":Me(c,A),k=Fe(c,A),Zt("invalid",c);break;case"option":k=A;break;case"select":c._wrapperState={wasMultiple:!!A.multiple},k=se({},A,{value:void 0}),Zt("invalid",c);break;case"textarea":B(c,A),k=D(c,A),Zt("invalid",c);break;default:k=A}ht(C,k),te=k;for(O in te)if(te.hasOwnProperty(O)){var de=te[O];O==="style"?Ye(c,de):O==="dangerouslySetInnerHTML"?(de=de?de.__html:void 0,de!=null&&ce(c,de)):O==="children"?typeof de=="string"?(C!=="textarea"||de!=="")&&be(c,de):typeof de=="number"&&be(c,""+de):O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&O!=="autoFocus"&&(s.hasOwnProperty(O)?de!=null&&O==="onScroll"&&Zt("scroll",c):de!=null&&w(c,O,de,U))}switch(C){case"input":pe(c),K(c,A,!1);break;case"textarea":pe(c),Y(c);break;case"option":A.value!=null&&c.setAttribute("value",""+Q(A.value));break;case"select":c.multiple=!!A.multiple,O=A.value,O!=null?P(c,!!A.multiple,O,!1):A.defaultValue!=null&&P(c,!!A.multiple,A.defaultValue,!0);break;default:typeof k.onClick=="function"&&(c.onclick=Gu)}switch(C){case"button":case"input":case"select":case"textarea":A=!!A.autoFocus;break e;case"img":A=!0;break e;default:A=!1}}A&&(h.flags|=4)}h.ref!==null&&(h.flags|=512,h.flags|=2097152)}return jn(h),null;case 6:if(c&&h.stateNode!=null)H4(c,h,c.memoizedProps,A);else{if(typeof A!="string"&&h.stateNode===null)throw Error(t(166));if(C=na(_l.current),na(os.current),Zu(h)){if(A=h.stateNode,C=h.memoizedProps,A[as]=h,(O=A.nodeValue!==C)&&(c=ur,c!==null))switch(c.tag){case 3:zu(A.nodeValue,C,(c.mode&1)!==0);break;case 5:c.memoizedProps.suppressHydrationWarning!==!0&&zu(A.nodeValue,C,(c.mode&1)!==0)}O&&(h.flags|=4)}else A=(C.nodeType===9?C:C.ownerDocument).createTextNode(A),A[as]=h,h.stateNode=A}return jn(h),null;case 13:if(Qt(ln),A=h.memoizedState,c===null||c.memoizedState!==null&&c.memoizedState.dehydrated!==null){if(sn&&dr!==null&&(h.mode&1)!==0&&(h.flags&128)===0)q6(),oo(),h.flags|=98560,O=!1;else if(O=Zu(h),A!==null&&A.dehydrated!==null){if(c===null){if(!O)throw Error(t(318));if(O=h.memoizedState,O=O!==null?O.dehydrated:null,!O)throw Error(t(317));O[as]=h}else oo(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;jn(h),O=!1}else $r!==null&&(j2($r),$r=null),O=!0;if(!O)return h.flags&65536?h:null}return(h.flags&128)!==0?(h.lanes=C,h):(A=A!==null,A!==(c!==null&&c.memoizedState!==null)&&A&&(h.child.flags|=8192,(h.mode&1)!==0&&(c===null||(ln.current&1)!==0?Cn===0&&(Cn=3):$2())),h.updateQueue!==null&&(h.flags|=4),jn(h),null);case 4:return fo(),T2(c,h),c===null&&Il(h.stateNode.containerInfo),jn(h),null;case 10:return Jh(h.type._context),jn(h),null;case 17:return Xn(h.type)&&Wu(),jn(h),null;case 19:if(Qt(ln),O=h.memoizedState,O===null)return jn(h),null;if(A=(h.flags&128)!==0,U=O.rendering,U===null)if(A)Fl(O,!1);else{if(Cn!==0||c!==null&&(c.flags&128)!==0)for(c=h.child;c!==null;){if(U=rd(c),U!==null){for(h.flags|=128,Fl(O,!1),A=U.updateQueue,A!==null&&(h.updateQueue=A,h.flags|=4),h.subtreeFlags=0,A=C,C=h.child;C!==null;)O=C,c=A,O.flags&=14680066,U=O.alternate,U===null?(O.childLanes=0,O.lanes=c,O.child=null,O.subtreeFlags=0,O.memoizedProps=null,O.memoizedState=null,O.updateQueue=null,O.dependencies=null,O.stateNode=null):(O.childLanes=U.childLanes,O.lanes=U.lanes,O.child=U.child,O.subtreeFlags=0,O.deletions=null,O.memoizedProps=U.memoizedProps,O.memoizedState=U.memoizedState,O.updateQueue=U.updateQueue,O.type=U.type,c=U.dependencies,O.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),C=C.sibling;return Yt(ln,ln.current&1|2),h.child}c=c.sibling}O.tail!==null&&hn()>go&&(h.flags|=128,A=!0,Fl(O,!1),h.lanes=4194304)}else{if(!A)if(c=rd(U),c!==null){if(h.flags|=128,A=!0,C=c.updateQueue,C!==null&&(h.updateQueue=C,h.flags|=4),Fl(O,!0),O.tail===null&&O.tailMode==="hidden"&&!U.alternate&&!sn)return jn(h),null}else 2*hn()-O.renderingStartTime>go&&C!==1073741824&&(h.flags|=128,A=!0,Fl(O,!1),h.lanes=4194304);O.isBackwards?(U.sibling=h.child,h.child=U):(C=O.last,C!==null?C.sibling=U:h.child=U,O.last=U)}return O.tail!==null?(h=O.tail,O.rendering=h,O.tail=h.sibling,O.renderingStartTime=hn(),h.sibling=null,C=ln.current,Yt(ln,A?C&1|2:C&1),h):(jn(h),null);case 22:case 23:return F2(),A=h.memoizedState!==null,c!==null&&c.memoizedState!==null!==A&&(h.flags|=8192),A&&(h.mode&1)!==0?(fr&1073741824)!==0&&(jn(h),h.subtreeFlags&6&&(h.flags|=8192)):jn(h),null;case 24:return null;case 25:return null}throw Error(t(156,h.tag))}function QI(c,h){switch(Kh(h),h.tag){case 1:return Xn(h.type)&&Wu(),c=h.flags,c&65536?(h.flags=c&-65537|128,h):null;case 3:return fo(),Qt(Yn),Qt(On),a2(),c=h.flags,(c&65536)!==0&&(c&128)===0?(h.flags=c&-65537|128,h):null;case 5:return s2(h),null;case 13:if(Qt(ln),c=h.memoizedState,c!==null&&c.dehydrated!==null){if(h.alternate===null)throw Error(t(340));oo()}return c=h.flags,c&65536?(h.flags=c&-65537|128,h):null;case 19:return Qt(ln),null;case 4:return fo(),null;case 10:return Jh(h.type._context),null;case 22:case 23:return F2(),null;case 24:return null;default:return null}}var fd=!1,Mn=!1,JI=typeof WeakSet=="function"?WeakSet:Set,tt=null;function mo(c,h){var C=c.ref;if(C!==null)if(typeof C=="function")try{C(null)}catch(A){fn(c,h,A)}else C.current=null}function I2(c,h,C){try{C()}catch(A){fn(c,h,A)}}var W4=!1;function eR(c,h){if(Fh=Pu,c=w6(),Nh(c)){if("selectionStart"in c)var C={start:c.selectionStart,end:c.selectionEnd};else e:{C=(C=c.ownerDocument)&&C.defaultView||window;var A=C.getSelection&&C.getSelection();if(A&&A.rangeCount!==0){C=A.anchorNode;var k=A.anchorOffset,O=A.focusNode;A=A.focusOffset;try{C.nodeType,O.nodeType}catch{C=null;break e}var U=0,te=-1,de=-1,Te=0,De=0,$e=c,_e=null;t:for(;;){for(var Ze;$e!==C||k!==0&&$e.nodeType!==3||(te=U+k),$e!==O||A!==0&&$e.nodeType!==3||(de=U+A),$e.nodeType===3&&(U+=$e.nodeValue.length),(Ze=$e.firstChild)!==null;)_e=$e,$e=Ze;for(;;){if($e===c)break t;if(_e===C&&++Te===k&&(te=U),_e===O&&++De===A&&(de=U),(Ze=$e.nextSibling)!==null)break;$e=_e,_e=$e.parentNode}$e=Ze}C=te===-1||de===-1?null:{start:te,end:de}}else C=null}C=C||{start:0,end:0}}else C=null;for($h={focusedElem:c,selectionRange:C},Pu=!1,tt=h;tt!==null;)if(h=tt,c=h.child,(h.subtreeFlags&1028)!==0&&c!==null)c.return=h,tt=c;else for(;tt!==null;){h=tt;try{var it=h.alternate;if((h.flags&1024)!==0)switch(h.tag){case 0:case 11:case 15:break;case 1:if(it!==null){var ot=it.memoizedProps,mn=it.memoizedState,xe=h.stateNode,he=xe.getSnapshotBeforeUpdate(h.elementType===h.type?ot:Br(h.type,ot),mn);xe.__reactInternalSnapshotBeforeUpdate=he}break;case 3:var Se=h.stateNode.containerInfo;Se.nodeType===1?Se.textContent="":Se.nodeType===9&&Se.documentElement&&Se.removeChild(Se.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(Ve){fn(h,h.return,Ve)}if(c=h.sibling,c!==null){c.return=h.return,tt=c;break}tt=h.return}return it=W4,W4=!1,it}function $l(c,h,C){var A=h.updateQueue;if(A=A!==null?A.lastEffect:null,A!==null){var k=A=A.next;do{if((k.tag&c)===c){var O=k.destroy;k.destroy=void 0,O!==void 0&&I2(h,C,O)}k=k.next}while(k!==A)}}function hd(c,h){if(h=h.updateQueue,h=h!==null?h.lastEffect:null,h!==null){var C=h=h.next;do{if((C.tag&c)===c){var A=C.create;C.destroy=A()}C=C.next}while(C!==h)}}function R2(c){var h=c.ref;if(h!==null){var C=c.stateNode;switch(c.tag){case 5:c=C;break;default:c=C}typeof h=="function"?h(c):h.current=c}}function K4(c){var h=c.alternate;h!==null&&(c.alternate=null,K4(h)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(h=c.stateNode,h!==null&&(delete h[as],delete h[Al],delete h[zh],delete h[jI],delete h[MI])),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}function q4(c){return c.tag===5||c.tag===3||c.tag===4}function Y4(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||q4(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.flags&2||c.child===null||c.tag===4)continue e;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function A2(c,h,C){var A=c.tag;if(A===5||A===6)c=c.stateNode,h?C.nodeType===8?C.parentNode.insertBefore(c,h):C.insertBefore(c,h):(C.nodeType===8?(h=C.parentNode,h.insertBefore(c,C)):(h=C,h.appendChild(c)),C=C._reactRootContainer,C!=null||h.onclick!==null||(h.onclick=Gu));else if(A!==4&&(c=c.child,c!==null))for(A2(c,h,C),c=c.sibling;c!==null;)A2(c,h,C),c=c.sibling}function L2(c,h,C){var A=c.tag;if(A===5||A===6)c=c.stateNode,h?C.insertBefore(c,h):C.appendChild(c);else if(A!==4&&(c=c.child,c!==null))for(L2(c,h,C),c=c.sibling;c!==null;)L2(c,h,C),c=c.sibling}var An=null,Ur=!1;function yi(c,h,C){for(C=C.child;C!==null;)X4(c,h,C),C=C.sibling}function X4(c,h,C){if(is&&typeof is.onCommitFiberUnmount=="function")try{is.onCommitFiberUnmount(Iu,C)}catch{}switch(C.tag){case 5:Mn||mo(C,h);case 6:var A=An,k=Ur;An=null,yi(c,h,C),An=A,Ur=k,An!==null&&(Ur?(c=An,C=C.stateNode,c.nodeType===8?c.parentNode.removeChild(C):c.removeChild(C)):An.removeChild(C.stateNode));break;case 18:An!==null&&(Ur?(c=An,C=C.stateNode,c.nodeType===8?Vh(c.parentNode,C):c.nodeType===1&&Vh(c,C),yl(c)):Vh(An,C.stateNode));break;case 4:A=An,k=Ur,An=C.stateNode.containerInfo,Ur=!0,yi(c,h,C),An=A,Ur=k;break;case 0:case 11:case 14:case 15:if(!Mn&&(A=C.updateQueue,A!==null&&(A=A.lastEffect,A!==null))){k=A=A.next;do{var O=k,U=O.destroy;O=O.tag,U!==void 0&&((O&2)!==0||(O&4)!==0)&&I2(C,h,U),k=k.next}while(k!==A)}yi(c,h,C);break;case 1:if(!Mn&&(mo(C,h),A=C.stateNode,typeof A.componentWillUnmount=="function"))try{A.props=C.memoizedProps,A.state=C.memoizedState,A.componentWillUnmount()}catch(te){fn(C,h,te)}yi(c,h,C);break;case 21:yi(c,h,C);break;case 22:C.mode&1?(Mn=(A=Mn)||C.memoizedState!==null,yi(c,h,C),Mn=A):yi(c,h,C);break;default:yi(c,h,C)}}function Z4(c){var h=c.updateQueue;if(h!==null){c.updateQueue=null;var C=c.stateNode;C===null&&(C=c.stateNode=new JI),h.forEach(function(A){var k=cR.bind(null,c,A);C.has(A)||(C.add(A),A.then(k,k))})}}function Vr(c,h){var C=h.deletions;if(C!==null)for(var A=0;A<C.length;A++){var k=C[A];try{var O=c,U=h,te=U;e:for(;te!==null;){switch(te.tag){case 5:An=te.stateNode,Ur=!1;break e;case 3:An=te.stateNode.containerInfo,Ur=!0;break e;case 4:An=te.stateNode.containerInfo,Ur=!0;break e}te=te.return}if(An===null)throw Error(t(160));X4(O,U,k),An=null,Ur=!1;var de=k.alternate;de!==null&&(de.return=null),k.return=null}catch(Te){fn(k,h,Te)}}if(h.subtreeFlags&12854)for(h=h.child;h!==null;)Q4(h,c),h=h.sibling}function Q4(c,h){var C=c.alternate,A=c.flags;switch(c.tag){case 0:case 11:case 14:case 15:if(Vr(h,c),cs(c),A&4){try{$l(3,c,c.return),hd(3,c)}catch(ot){fn(c,c.return,ot)}try{$l(5,c,c.return)}catch(ot){fn(c,c.return,ot)}}break;case 1:Vr(h,c),cs(c),A&512&&C!==null&&mo(C,C.return);break;case 5:if(Vr(h,c),cs(c),A&512&&C!==null&&mo(C,C.return),c.flags&32){var k=c.stateNode;try{be(k,"")}catch(ot){fn(c,c.return,ot)}}if(A&4&&(k=c.stateNode,k!=null)){var O=c.memoizedProps,U=C!==null?C.memoizedProps:O,te=c.type,de=c.updateQueue;if(c.updateQueue=null,de!==null)try{te==="input"&&O.type==="radio"&&O.name!=null&&ke(k,O),Nt(te,U);var Te=Nt(te,O);for(U=0;U<de.length;U+=2){var De=de[U],$e=de[U+1];De==="style"?Ye(k,$e):De==="dangerouslySetInnerHTML"?ce(k,$e):De==="children"?be(k,$e):w(k,De,$e,Te)}switch(te){case"input":Ge(k,O);break;case"textarea":V(k,O);break;case"select":var _e=k._wrapperState.wasMultiple;k._wrapperState.wasMultiple=!!O.multiple;var Ze=O.value;Ze!=null?P(k,!!O.multiple,Ze,!1):_e!==!!O.multiple&&(O.defaultValue!=null?P(k,!!O.multiple,O.defaultValue,!0):P(k,!!O.multiple,O.multiple?[]:"",!1))}k[Al]=O}catch(ot){fn(c,c.return,ot)}}break;case 6:if(Vr(h,c),cs(c),A&4){if(c.stateNode===null)throw Error(t(162));k=c.stateNode,O=c.memoizedProps;try{k.nodeValue=O}catch(ot){fn(c,c.return,ot)}}break;case 3:if(Vr(h,c),cs(c),A&4&&C!==null&&C.memoizedState.isDehydrated)try{yl(h.containerInfo)}catch(ot){fn(c,c.return,ot)}break;case 4:Vr(h,c),cs(c);break;case 13:Vr(h,c),cs(c),k=c.child,k.flags&8192&&(O=k.memoizedState!==null,k.stateNode.isHidden=O,!O||k.alternate!==null&&k.alternate.memoizedState!==null||(P2=hn())),A&4&&Z4(c);break;case 22:if(De=C!==null&&C.memoizedState!==null,c.mode&1?(Mn=(Te=Mn)||De,Vr(h,c),Mn=Te):Vr(h,c),cs(c),A&8192){if(Te=c.memoizedState!==null,(c.stateNode.isHidden=Te)&&!De&&(c.mode&1)!==0)for(tt=c,De=c.child;De!==null;){for($e=tt=De;tt!==null;){switch(_e=tt,Ze=_e.child,_e.tag){case 0:case 11:case 14:case 15:$l(4,_e,_e.return);break;case 1:mo(_e,_e.return);var it=_e.stateNode;if(typeof it.componentWillUnmount=="function"){A=_e,C=_e.return;try{h=A,it.props=h.memoizedProps,it.state=h.memoizedState,it.componentWillUnmount()}catch(ot){fn(A,C,ot)}}break;case 5:mo(_e,_e.return);break;case 22:if(_e.memoizedState!==null){t3($e);continue}}Ze!==null?(Ze.return=_e,tt=Ze):t3($e)}De=De.sibling}e:for(De=null,$e=c;;){if($e.tag===5){if(De===null){De=$e;try{k=$e.stateNode,Te?(O=k.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none"):(te=$e.stateNode,de=$e.memoizedProps.style,U=de!=null&&de.hasOwnProperty("display")?de.display:null,te.style.display=Be("display",U))}catch(ot){fn(c,c.return,ot)}}}else if($e.tag===6){if(De===null)try{$e.stateNode.nodeValue=Te?"":$e.memoizedProps}catch(ot){fn(c,c.return,ot)}}else if(($e.tag!==22&&$e.tag!==23||$e.memoizedState===null||$e===c)&&$e.child!==null){$e.child.return=$e,$e=$e.child;continue}if($e===c)break e;for(;$e.sibling===null;){if($e.return===null||$e.return===c)break e;De===$e&&(De=null),$e=$e.return}De===$e&&(De=null),$e.sibling.return=$e.return,$e=$e.sibling}}break;case 19:Vr(h,c),cs(c),A&4&&Z4(c);break;case 21:break;default:Vr(h,c),cs(c)}}function cs(c){var h=c.flags;if(h&2){try{e:{for(var C=c.return;C!==null;){if(q4(C)){var A=C;break e}C=C.return}throw Error(t(160))}switch(A.tag){case 5:var k=A.stateNode;A.flags&32&&(be(k,""),A.flags&=-33);var O=Y4(c);L2(c,O,k);break;case 3:case 4:var U=A.stateNode.containerInfo,te=Y4(c);A2(c,te,U);break;default:throw Error(t(161))}}catch(de){fn(c,c.return,de)}c.flags&=-3}h&4096&&(c.flags&=-4097)}function tR(c,h,C){tt=c,J4(c)}function J4(c,h,C){for(var A=(c.mode&1)!==0;tt!==null;){var k=tt,O=k.child;if(k.tag===22&&A){var U=k.memoizedState!==null||fd;if(!U){var te=k.alternate,de=te!==null&&te.memoizedState!==null||Mn;te=fd;var Te=Mn;if(fd=U,(Mn=de)&&!Te)for(tt=k;tt!==null;)U=tt,de=U.child,U.tag===22&&U.memoizedState!==null?n3(k):de!==null?(de.return=U,tt=de):n3(k);for(;O!==null;)tt=O,J4(O),O=O.sibling;tt=k,fd=te,Mn=Te}e3(c)}else(k.subtreeFlags&8772)!==0&&O!==null?(O.return=k,tt=O):e3(c)}}function e3(c){for(;tt!==null;){var h=tt;if((h.flags&8772)!==0){var C=h.alternate;try{if((h.flags&8772)!==0)switch(h.tag){case 0:case 11:case 15:Mn||hd(5,h);break;case 1:var A=h.stateNode;if(h.flags&4&&!Mn)if(C===null)A.componentDidMount();else{var k=h.elementType===h.type?C.memoizedProps:Br(h.type,C.memoizedProps);A.componentDidUpdate(k,C.memoizedState,A.__reactInternalSnapshotBeforeUpdate)}var O=h.updateQueue;O!==null&&t4(h,O,A);break;case 3:var U=h.updateQueue;if(U!==null){if(C=null,h.child!==null)switch(h.child.tag){case 5:C=h.child.stateNode;break;case 1:C=h.child.stateNode}t4(h,U,C)}break;case 5:var te=h.stateNode;if(C===null&&h.flags&4){C=te;var de=h.memoizedProps;switch(h.type){case"button":case"input":case"select":case"textarea":de.autoFocus&&C.focus();break;case"img":de.src&&(C.src=de.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(h.memoizedState===null){var Te=h.alternate;if(Te!==null){var De=Te.memoizedState;if(De!==null){var $e=De.dehydrated;$e!==null&&yl($e)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}Mn||h.flags&512&&R2(h)}catch(_e){fn(h,h.return,_e)}}if(h===c){tt=null;break}if(C=h.sibling,C!==null){C.return=h.return,tt=C;break}tt=h.return}}function t3(c){for(;tt!==null;){var h=tt;if(h===c){tt=null;break}var C=h.sibling;if(C!==null){C.return=h.return,tt=C;break}tt=h.return}}function n3(c){for(;tt!==null;){var h=tt;try{switch(h.tag){case 0:case 11:case 15:var C=h.return;try{hd(4,h)}catch(de){fn(h,C,de)}break;case 1:var A=h.stateNode;if(typeof A.componentDidMount=="function"){var k=h.return;try{A.componentDidMount()}catch(de){fn(h,k,de)}}var O=h.return;try{R2(h)}catch(de){fn(h,O,de)}break;case 5:var U=h.return;try{R2(h)}catch(de){fn(h,U,de)}}}catch(de){fn(h,h.return,de)}if(h===c){tt=null;break}var te=h.sibling;if(te!==null){te.return=h.return,tt=te;break}tt=h.return}}var nR=Math.ceil,md=R.ReactCurrentDispatcher,N2=R.ReactCurrentOwner,Ar=R.ReactCurrentBatchConfig,_t=0,En=null,gn=null,Ln=0,fr=0,po=fi(0),Cn=0,Bl=null,sa=0,pd=0,k2=0,Ul=null,Qn=null,P2=0,go=1/0,js=null,gd=!1,_2=null,vi=null,yd=!1,xi=null,vd=0,Vl=0,O2=null,xd=-1,Cd=0;function Gn(){return(_t&6)!==0?hn():xd!==-1?xd:xd=hn()}function Ci(c){return(c.mode&1)===0?1:(_t&2)!==0&&Ln!==0?Ln&-Ln:$I.transition!==null?(Cd===0&&(Cd=Y8()),Cd):(c=Gt,c!==0||(c=window.event,c=c===void 0?16:s6(c.type)),c)}function zr(c,h,C,A){if(50<Vl)throw Vl=0,O2=null,Error(t(185));fl(c,C,A),((_t&2)===0||c!==En)&&(c===En&&((_t&2)===0&&(pd|=C),Cn===4&&bi(c,Ln)),Jn(c,A),C===1&&_t===0&&(h.mode&1)===0&&(go=hn()+500,qu&&mi()))}function Jn(c,h){var C=c.callbackNode;$T(c,h);var A=Lu(c,c===En?Ln:0);if(A===0)C!==null&&W8(C),c.callbackNode=null,c.callbackPriority=0;else if(h=A&-A,c.callbackPriority!==h){if(C!=null&&W8(C),h===1)c.tag===0?FI(s3.bind(null,c)):z6(s3.bind(null,c)),OI(function(){(_t&6)===0&&mi()}),C=null;else{switch(X8(A)){case 1:C=hh;break;case 4:C=K8;break;case 16:C=Tu;break;case 536870912:C=q8;break;default:C=Tu}C=f3(C,r3.bind(null,c))}c.callbackPriority=h,c.callbackNode=C}}function r3(c,h){if(xd=-1,Cd=0,(_t&6)!==0)throw Error(t(327));var C=c.callbackNode;if(yo()&&c.callbackNode!==C)return null;var A=Lu(c,c===En?Ln:0);if(A===0)return null;if((A&30)!==0||(A&c.expiredLanes)!==0||h)h=bd(c,A);else{h=A;var k=_t;_t|=2;var O=a3();(En!==c||Ln!==h)&&(js=null,go=hn()+500,aa(c,h));do try{iR();break}catch(te){i3(c,te)}while(!0);Qh(),md.current=O,_t=k,gn!==null?h=0:(En=null,Ln=0,h=Cn)}if(h!==0){if(h===2&&(k=mh(c),k!==0&&(A=k,h=D2(c,k))),h===1)throw C=Bl,aa(c,0),bi(c,A),Jn(c,hn()),C;if(h===6)bi(c,A);else{if(k=c.current.alternate,(A&30)===0&&!rR(k)&&(h=bd(c,A),h===2&&(O=mh(c),O!==0&&(A=O,h=D2(c,O))),h===1))throw C=Bl,aa(c,0),bi(c,A),Jn(c,hn()),C;switch(c.finishedWork=k,c.finishedLanes=A,h){case 0:case 1:throw Error(t(345));case 2:oa(c,Qn,js);break;case 3:if(bi(c,A),(A&130023424)===A&&(h=P2+500-hn(),10<h)){if(Lu(c,0)!==0)break;if(k=c.suspendedLanes,(k&A)!==A){Gn(),c.pingedLanes|=c.suspendedLanes&k;break}c.timeoutHandle=Uh(oa.bind(null,c,Qn,js),h);break}oa(c,Qn,js);break;case 4:if(bi(c,A),(A&4194240)===A)break;for(h=c.eventTimes,k=-1;0<A;){var U=31-Mr(A);O=1<<U,U=h[U],U>k&&(k=U),A&=~O}if(A=k,A=hn()-A,A=(120>A?120:480>A?480:1080>A?1080:1920>A?1920:3e3>A?3e3:4320>A?4320:1960*nR(A/1960))-A,10<A){c.timeoutHandle=Uh(oa.bind(null,c,Qn,js),A);break}oa(c,Qn,js);break;case 5:oa(c,Qn,js);break;default:throw Error(t(329))}}}return Jn(c,hn()),c.callbackNode===C?r3.bind(null,c):null}function D2(c,h){var C=Ul;return c.current.memoizedState.isDehydrated&&(aa(c,h).flags|=256),c=bd(c,h),c!==2&&(h=Qn,Qn=C,h!==null&&j2(h)),c}function j2(c){Qn===null?Qn=c:Qn.push.apply(Qn,c)}function rR(c){for(var h=c;;){if(h.flags&16384){var C=h.updateQueue;if(C!==null&&(C=C.stores,C!==null))for(var A=0;A<C.length;A++){var k=C[A],O=k.getSnapshot;k=k.value;try{if(!Fr(O(),k))return!1}catch{return!1}}}if(C=h.child,h.subtreeFlags&16384&&C!==null)C.return=h,h=C;else{if(h===c)break;for(;h.sibling===null;){if(h.return===null||h.return===c)return!0;h=h.return}h.sibling.return=h.return,h=h.sibling}}return!0}function bi(c,h){for(h&=~k2,h&=~pd,c.suspendedLanes|=h,c.pingedLanes&=~h,c=c.expirationTimes;0<h;){var C=31-Mr(h),A=1<<C;c[C]=-1,h&=~A}}function s3(c){if((_t&6)!==0)throw Error(t(327));yo();var h=Lu(c,0);if((h&1)===0)return Jn(c,hn()),null;var C=bd(c,h);if(c.tag!==0&&C===2){var A=mh(c);A!==0&&(h=A,C=D2(c,A))}if(C===1)throw C=Bl,aa(c,0),bi(c,h),Jn(c,hn()),C;if(C===6)throw Error(t(345));return c.finishedWork=c.current.alternate,c.finishedLanes=h,oa(c,Qn,js),Jn(c,hn()),null}function M2(c,h){var C=_t;_t|=1;try{return c(h)}finally{_t=C,_t===0&&(go=hn()+500,qu&&mi())}}function ia(c){xi!==null&&xi.tag===0&&(_t&6)===0&&yo();var h=_t;_t|=1;var C=Ar.transition,A=Gt;try{if(Ar.transition=null,Gt=1,c)return c()}finally{Gt=A,Ar.transition=C,_t=h,(_t&6)===0&&mi()}}function F2(){fr=po.current,Qt(po)}function aa(c,h){c.finishedWork=null,c.finishedLanes=0;var C=c.timeoutHandle;if(C!==-1&&(c.timeoutHandle=-1,_I(C)),gn!==null)for(C=gn.return;C!==null;){var A=C;switch(Kh(A),A.tag){case 1:A=A.type.childContextTypes,A!=null&&Wu();break;case 3:fo(),Qt(Yn),Qt(On),a2();break;case 5:s2(A);break;case 4:fo();break;case 13:Qt(ln);break;case 19:Qt(ln);break;case 10:Jh(A.type._context);break;case 22:case 23:F2()}C=C.return}if(En=c,gn=c=Si(c.current,null),Ln=fr=h,Cn=0,Bl=null,k2=pd=sa=0,Qn=Ul=null,ta!==null){for(h=0;h<ta.length;h++)if(C=ta[h],A=C.interleaved,A!==null){C.interleaved=null;var k=A.next,O=C.pending;if(O!==null){var U=O.next;O.next=k,A.next=U}C.pending=A}ta=null}return c}function i3(c,h){do{var C=gn;try{if(Qh(),sd.current=ld,id){for(var A=cn.memoizedState;A!==null;){var k=A.queue;k!==null&&(k.pending=null),A=A.next}id=!1}if(ra=0,Sn=xn=cn=null,Ol=!1,Dl=0,N2.current=null,C===null||C.return===null){Cn=1,Bl=h,gn=null;break}e:{var O=c,U=C.return,te=C,de=h;if(h=Ln,te.flags|=32768,de!==null&&typeof de=="object"&&typeof de.then=="function"){var Te=de,De=te,$e=De.tag;if((De.mode&1)===0&&($e===0||$e===11||$e===15)){var _e=De.alternate;_e?(De.updateQueue=_e.updateQueue,De.memoizedState=_e.memoizedState,De.lanes=_e.lanes):(De.updateQueue=null,De.memoizedState=null)}var Ze=N4(U);if(Ze!==null){Ze.flags&=-257,k4(Ze,U,te,O,h),Ze.mode&1&&L4(O,Te,h),h=Ze,de=Te;var it=h.updateQueue;if(it===null){var ot=new Set;ot.add(de),h.updateQueue=ot}else it.add(de);break e}else{if((h&1)===0){L4(O,Te,h),$2();break e}de=Error(t(426))}}else if(sn&&te.mode&1){var mn=N4(U);if(mn!==null){(mn.flags&65536)===0&&(mn.flags|=256),k4(mn,U,te,O,h),Xh(ho(de,te));break e}}O=de=ho(de,te),Cn!==4&&(Cn=2),Ul===null?Ul=[O]:Ul.push(O),O=U;do{switch(O.tag){case 3:O.flags|=65536,h&=-h,O.lanes|=h;var xe=R4(O,de,h);e4(O,xe);break e;case 1:te=de;var he=O.type,Se=O.stateNode;if((O.flags&128)===0&&(typeof he.getDerivedStateFromError=="function"||Se!==null&&typeof Se.componentDidCatch=="function"&&(vi===null||!vi.has(Se)))){O.flags|=65536,h&=-h,O.lanes|=h;var Ve=A4(O,te,h);e4(O,Ve);break e}}O=O.return}while(O!==null)}l3(C)}catch(lt){h=lt,gn===C&&C!==null&&(gn=C=C.return);continue}break}while(!0)}function a3(){var c=md.current;return md.current=ld,c===null?ld:c}function $2(){(Cn===0||Cn===3||Cn===2)&&(Cn=4),En===null||(sa&268435455)===0&&(pd&268435455)===0||bi(En,Ln)}function bd(c,h){var C=_t;_t|=2;var A=a3();(En!==c||Ln!==h)&&(js=null,aa(c,h));do try{sR();break}catch(k){i3(c,k)}while(!0);if(Qh(),_t=C,md.current=A,gn!==null)throw Error(t(261));return En=null,Ln=0,Cn}function sR(){for(;gn!==null;)o3(gn)}function iR(){for(;gn!==null&&!NT();)o3(gn)}function o3(c){var h=d3(c.alternate,c,fr);c.memoizedProps=c.pendingProps,h===null?l3(c):gn=h,N2.current=null}function l3(c){var h=c;do{var C=h.alternate;if(c=h.return,(h.flags&32768)===0){if(C=ZI(C,h,fr),C!==null){gn=C;return}}else{if(C=QI(C,h),C!==null){C.flags&=32767,gn=C;return}
vendor: 4,519 bytes, line 40
40if(c!==null)c.flags|=32768,c.subtreeFlags=0,c.deletions=null;else{Cn=6,gn=null;return}}if(h=h.sibling,h!==null){gn=h;return}gn=h=c}while(h!==null);Cn===0&&(Cn=5)}function oa(c,h,C){var A=Gt,k=Ar.transition;try{Ar.transition=null,Gt=1,aR(c,h,C,A)}finally{Ar.transition=k,Gt=A}return null}function aR(c,h,C,A){do yo();while(xi!==null);if((_t&6)!==0)throw Error(t(327));C=c.finishedWork;var k=c.finishedLanes;if(C===null)return null;if(c.finishedWork=null,c.finishedLanes=0,C===c.current)throw Error(t(177));c.callbackNode=null,c.callbackPriority=0;var O=C.lanes|C.childLanes;if(BT(c,O),c===En&&(gn=En=null,Ln=0),(C.subtreeFlags&2064)===0&&(C.flags&2064)===0||yd||(yd=!0,f3(Tu,function(){return yo(),null})),O=(C.flags&15990)!==0,(C.subtreeFlags&15990)!==0||O){O=Ar.transition,Ar.transition=null;var U=Gt;Gt=1;var te=_t;_t|=4,N2.current=null,eR(c,C),Q4(C,c),II($h),Pu=!!Fh,$h=Fh=null,c.current=C,tR(C),kT(),_t=te,Gt=U,Ar.transition=O}else c.current=C;if(yd&&(yd=!1,xi=c,vd=k),O=c.pendingLanes,O===0&&(vi=null),OT(C.stateNode),Jn(c,hn()),h!==null)for(A=c.onRecoverableError,C=0;C<h.length;C++)k=h[C],A(k.value,{componentStack:k.stack,digest:k.digest});if(gd)throw gd=!1,c=_2,_2=null,c;return(vd&1)!==0&&c.tag!==0&&yo(),O=c.pendingLanes,(O&1)!==0?c===O2?Vl++:(Vl=0,O2=c):Vl=0,mi(),null}function yo(){if(xi!==null){var c=X8(vd),h=Ar.transition,C=Gt;try{if(Ar.transition=null,Gt=16>c?16:c,xi===null)var A=!1;else{if(c=xi,xi=null,vd=0,(_t&6)!==0)throw Error(t(331));var k=_t;for(_t|=4,tt=c.current;tt!==null;){var O=tt,U=O.child;if((tt.flags&16)!==0){var te=O.deletions;if(te!==null){for(var de=0;de<te.length;de++){var Te=te[de];for(tt=Te;tt!==null;){var De=tt;switch(De.tag){case 0:case 11:case 15:$l(8,De,O)}var $e=De.child;if($e!==null)$e.return=De,tt=$e;else for(;tt!==null;){De=tt;var _e=De.sibling,Ze=De.return;if(K4(De),De===Te){tt=null;break}if(_e!==null){_e.return=Ze,tt=_e;break}tt=Ze}}}var it=O.alternate;if(it!==null){var ot=it.child;if(ot!==null){it.child=null;do{var mn=ot.sibling;ot.sibling=null,ot=mn}while(ot!==null)}}tt=O}}if((O.subtreeFlags&2064)!==0&&U!==null)U.return=O,tt=U;else e:for(;tt!==null;){if(O=tt,(O.flags&2048)!==0)switch(O.tag){case 0:case 11:case 15:$l(9,O,O.return)}var xe=O.sibling;if(xe!==null){xe.return=O.return,tt=xe;break e}tt=O.return}}var he=c.current;for(tt=he;tt!==null;){U=tt;var Se=U.child;if((U.subtreeFlags&2064)!==0&&Se!==null)Se.return=U,tt=Se;else e:for(U=he;tt!==null;){if(te=tt,(te.flags&2048)!==0)try{switch(te.tag){case 0:case 11:case 15:hd(9,te)}}catch(lt){fn(te,te.return,lt)}if(te===U){tt=null;break e}var Ve=te.sibling;if(Ve!==null){Ve.return=te.return,tt=Ve;break e}tt=te.return}}if(_t=k,mi(),is&&typeof is.onPostCommitFiberRoot=="function")try{is.onPostCommitFiberRoot(Iu,c)}catch{}A=!0}return A}finally{Gt=C,Ar.transition=h}}return!1}function c3(c,h,C){h=ho(C,h),h=R4(c,h,1),c=gi(c,h,1),h=Gn(),c!==null&&(fl(c,1,h),Jn(c,h))}function fn(c,h,C){if(c.tag===3)c3(c,c,C);else for(;h!==null;){if(h.tag===3){c3(h,c,C);break}else if(h.tag===1){var A=h.stateNode;if(typeof h.type.getDerivedStateFromError=="function"||typeof A.componentDidCatch=="function"&&(vi===null||!vi.has(A))){c=ho(C,c),c=A4(h,c,1),h=gi(h,c,1),c=Gn(),h!==null&&(fl(h,1,c),Jn(h,c));break}}h=h.return}}function oR(c,h,C){var A=c.pingCache;A!==null&&A.delete(h),h=Gn(),c.pingedLanes|=c.suspendedLanes&C,En===c&&(Ln&C)===C&&(Cn===4||Cn===3&&(Ln&130023424)===Ln&&500>hn()-P2?aa(c,0):k2|=C),Jn(c,h)}function u3(c,h){h===0&&((c.mode&1)===0?h=1:(h=Au,Au<<=1,(Au&130023424)===0&&(Au=4194304)));var C=Gn();c=_s(c,h),c!==null&&(fl(c,h,C),Jn(c,C))}function lR(c){var h=c.memoizedState,C=0;h!==null&&(C=h.retryLane),u3(c,C)}function cR(c,h){var C=0;switch(c.tag){case 13:var A=c.stateNode,k=c.memoizedState;k!==null&&(C=k.retryLane);break;case 19:A=c.stateNode;break;default:throw Error(t(314))}A!==null&&A.delete(h),u3(c,C)}var d3;d3=function(c,h,C){if(c!==null)if(c.memoizedProps!==h.pendingProps||Yn.current)Zn=!0;else{if((c.lanes&C)===0&&(h.flags&128)===0)return Zn=!1,XI(c,h,C);Zn=(c.flags&131072)!==0}else Zn=!1,sn&&(h.flags&1048576)!==0&&G6(h,Xu,h.index);switch(h.lanes=0,h.tag){case 2:var A=h.type;dd(c,h),c=h.pendingProps;var k=so(h,On.current);uo(h,C),k=c2(null,h,A,c,k,C);var O=u2();return h.flags|=1,typeof k=="object"&&k!==null&&typeof k.render=="function"&&k.$$typeof===void 0?(h.tag=1,h.memoizedState=null,h.updateQueue=null,Xn(A)?(O=!0,Ku(h)):O=!1,h.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,n2(h),k.updater=cd,h.stateNode=k,k._reactInternals=h,g2(h,A,c,C),h=C2(null,h,A,!0,O,C)
vendor: 12,052 bytes, line 40
40):(h.tag=0,sn&&O&&Wh(h),zn(null,h,k,C),h=h.child),h;case 16:A=h.elementType;e:{switch(dd(c,h),c=h.pendingProps,k=A._init,A=k(A._payload),h.type=A,k=h.tag=dR(A),c=Br(A,c),k){case 0:h=x2(null,h,A,c,C);break e;case 1:h=M4(null,h,A,c,C);break e;case 11:h=P4(null,h,A,c,C);break e;case 14:h=_4(null,h,A,Br(A.type,c),C);break e}throw Error(t(306,A,""))}return h;case 0:return A=h.type,k=h.pendingProps,k=h.elementType===A?k:Br(A,k),x2(c,h,A,k,C);case 1:return A=h.type,k=h.pendingProps,k=h.elementType===A?k:Br(A,k),M4(c,h,A,k,C);case 3:e:{if(F4(h),c===null)throw Error(t(387));A=h.pendingProps,O=h.memoizedState,k=O.element,J6(c,h),nd(h,A,null,C);var U=h.memoizedState;if(A=U.element,O.isDehydrated)if(O={element:A,isDehydrated:!1,cache:U.cache,pendingSuspenseBoundaries:U.pendingSuspenseBoundaries,transitions:U.transitions},h.updateQueue.baseState=O,h.memoizedState=O,h.flags&256){k=ho(Error(t(423)),h),h=$4(c,h,A,C,k);break e}else if(A!==k){k=ho(Error(t(424)),h),h=$4(c,h,A,C,k);break e}else for(dr=di(h.stateNode.containerInfo.firstChild),ur=h,sn=!0,$r=null,C=Z6(h,null,A,C),h.child=C;C;)C.flags=C.flags&-3|4096,C=C.sibling;else{if(oo(),A===k){h=Ds(c,h,C);break e}zn(c,h,A,C)}h=h.child}return h;case 5:return n4(h),c===null&&Yh(h),A=h.type,k=h.pendingProps,O=c!==null?c.memoizedProps:null,U=k.children,Bh(A,k)?U=null:O!==null&&Bh(A,O)&&(h.flags|=32),j4(c,h),zn(c,h,U,C),h.child;case 6:return c===null&&Yh(h),null;case 13:return B4(c,h,C);case 4:return r2(h,h.stateNode.containerInfo),A=h.pendingProps,c===null?h.child=lo(h,null,A,C):zn(c,h,A,C),h.child;case 11:return A=h.type,k=h.pendingProps,k=h.elementType===A?k:Br(A,k),P4(c,h,A,k,C);case 7:return zn(c,h,h.pendingProps,C),h.child;case 8:return zn(c,h,h.pendingProps.children,C),h.child;case 12:return zn(c,h,h.pendingProps.children,C),h.child;case 10:e:{if(A=h.type._context,k=h.pendingProps,O=h.memoizedProps,U=k.value,Yt(Ju,A._currentValue),A._currentValue=U,O!==null)if(Fr(O.value,U)){if(O.children===k.children&&!Yn.current){h=Ds(c,h,C);break e}}else for(O=h.child,O!==null&&(O.return=h);O!==null;){var te=O.dependencies;if(te!==null){U=O.child;for(var de=te.firstContext;de!==null;){if(de.context===A){if(O.tag===1){de=Os(-1,C&-C),de.tag=2;var Te=O.updateQueue;if(Te!==null){Te=Te.shared;var De=Te.pending;De===null?de.next=de:(de.next=De.next,De.next=de),Te.pending=de}}O.lanes|=C,de=O.alternate,de!==null&&(de.lanes|=C),e2(O.return,C,h),te.lanes|=C;break}de=de.next}}else if(O.tag===10)U=O.type===h.type?null:O.child;else if(O.tag===18){if(U=O.return,U===null)throw Error(t(341));U.lanes|=C,te=U.alternate,te!==null&&(te.lanes|=C),e2(U,C,h),U=O.sibling}else U=O.child;if(U!==null)U.return=O;else for(U=O;U!==null;){if(U===h){U=null;break}if(O=U.sibling,O!==null){O.return=U.return,U=O;break}U=U.return}O=U}zn(c,h,k.children,C),h=h.child}return h;case 9:return k=h.type,A=h.pendingProps.children,uo(h,C),k=Ir(k),A=A(k),h.flags|=1,zn(c,h,A,C),h.child;case 14:return A=h.type,k=Br(A,h.pendingProps),k=Br(A.type,k),_4(c,h,A,k,C);case 15:return O4(c,h,h.type,h.pendingProps,C);case 17:return A=h.type,k=h.pendingProps,k=h.elementType===A?k:Br(A,k),dd(c,h),h.tag=1,Xn(A)?(c=!0,Ku(h)):c=!1,uo(h,C),T4(h,A,k),g2(h,A,k,C),C2(null,h,A,!0,c,C);case 19:return V4(c,h,C);case 22:return D4(c,h,C)}throw Error(t(156,h.tag))};function f3(c,h){return H8(c,h)}function uR(c,h,C,A){this.tag=c,this.key=C,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=h,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=A,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lr(c,h,C,A){return new uR(c,h,C,A)}function B2(c){return c=c.prototype,!(!c||!c.isReactComponent)}function dR(c){if(typeof c=="function")return B2(c)?1:0;if(c!=null){if(c=c.$$typeof,c===z)return 11;if(c===oe)return 14}return 2}function Si(c,h){var C=c.alternate;return C===null?(C=Lr(c.tag,h,c.key,c.mode),C.elementType=c.elementType,C.type=c.type,C.stateNode=c.stateNode,C.alternate=c,c.alternate=C):(C.pendingProps=h,C.type=c.type,C.flags=0,C.subtreeFlags=0,C.deletions=null),C.flags=c.flags&14680064,C.childLanes=c.childLanes,C.lanes=c.lanes,C.child=c.child,C.memoizedProps=c.memoizedProps,C.memoizedState=c.memoizedState,C.updateQueue=c.updateQueue,h=c.dependencies,C.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},C.sibling=c.sibling,C.index=c.index,C.ref=c.ref,C}function Sd(c,h,C,A,k,O){var U=2;if(A=c,typeof c=="function")B2(c)&&(U=1);else if(typeof c=="string")U=5;else e:switch(c){case N:return la(C.children,k,O,h);case _:U=8,k|=8;break;case j:return c=Lr(12,C,h,k|2),c.elementType=j,c.lanes=O,c;case W:return c=Lr(13,C,h,k),c.elementType=W,c.lanes=O,c;case J:return c=Lr(19,C,h,k),c.elementType=J,c.lanes=O,c;case Z:return Ed(C,k,O,h);default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case F:U=10;break e;case $:U=9;break e;case z:U=11;break e;case oe:U=14;break e;case ie:U=16,A=null;break e}throw Error(t(130,c==null?c:typeof c,""))}return h=Lr(U,C,h,k),h.elementType=c,h.type=A,h.lanes=O,h}function la(c,h,C,A){return c=Lr(7,c,A,h),c.lanes=C,c}function Ed(c,h,C,A){return c=Lr(22,c,A,h),c.elementType=Z,c.lanes=C,c.stateNode={isHidden:!1},c}function U2(c,h,C){return c=Lr(6,c,null,h),c.lanes=C,c}function V2(c,h,C){return h=Lr(4,c.children!==null?c.children:[],c.key,h),h.lanes=C,h.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},h}function fR(c,h,C,A,k){this.tag=h,this.containerInfo=c,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ph(0),this.expirationTimes=ph(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ph(0),this.identifierPrefix=A,this.onRecoverableError=k,this.mutableSourceEagerHydrationData=null}function z2(c,h,C,A,k,O,U,te,de){return c=new fR(c,h,C,te,de),h===1?(h=1,O===!0&&(h|=8)):h=0,O=Lr(3,null,null,h),c.current=O,O.stateNode=c,O.memoizedState={element:A,isDehydrated:C,cache:null,transitions:null,pendingSuspenseBoundaries:null},n2(O),c}function hR(c,h,C){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:A==null?null:""+A,children:c,containerInfo:h,implementation:C}}function h3(c){if(!c)return hi;c=c._reactInternals;e:{if(ss(c)!==c||c.tag!==1)throw Error(t(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break e;case 1:if(Xn(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break e}}h=h.return}while(h!==null);throw Error(t(171))}if(c.tag===1){var C=c.type;if(Xn(C))return U6(c,C,h)}return h}function m3(c,h,C,A,k,O,U,te,de){return c=z2(C,A,!0,c,k,O,U,te,de),c.context=h3(null),C=c.current,A=Gn(),k=Ci(C),O=Os(A,k),O.callback=h??null,gi(C,O,k),c.current.lanes=k,fl(c,k,A),Jn(c,A),c}function wd(c,h,C,A){var k=h.current,O=Gn(),U=Ci(k);return C=h3(C),h.context===null?h.context=C:h.pendingContext=C,h=Os(O,U),h.payload={element:c},A=A===void 0?null:A,A!==null&&(h.callback=A),c=gi(k,h,U),c!==null&&(zr(c,k,U,O),td(c,k,U)),U}function Td(c){if(c=c.current,!c.child)return null;switch(c.child.tag){case 5:return c.child.stateNode;default:return c.child.stateNode}}function p3(c,h){if(c=c.memoizedState,c!==null&&c.dehydrated!==null){var C=c.retryLane;c.retryLane=C!==0&&C<h?C:h}}function G2(c,h){p3(c,h),(c=c.alternate)&&p3(c,h)}function mR(){return null}var g3=typeof reportError=="function"?reportError:function(c){console.error(c)};function H2(c){this._internalRoot=c}Id.prototype.render=H2.prototype.render=function(c){var h=this._internalRoot;if(h===null)throw Error(t(409));wd(c,h,null,null)},Id.prototype.unmount=H2.prototype.unmount=function(){var c=this._internalRoot;if(c!==null){this._internalRoot=null;var h=c.containerInfo;ia(function(){wd(null,c,null,null)}),h[Ls]=null}};function Id(c){this._internalRoot=c}Id.prototype.unstable_scheduleHydration=function(c){if(c){var h=J8();c={blockedOn:null,target:c,priority:h};for(var C=0;C<li.length&&h!==0&&h<li[C].priority;C++);li.splice(C,0,c),C===0&&n6(c)}};function W2(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)}function Rd(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11&&(c.nodeType!==8||c.nodeValue!==" react-mount-point-unstable "))}function y3(){}function pR(c,h,C,A,k){if(k){if(typeof A=="function"){var O=A;A=function(){var Te=Td(U);O.call(Te)}}var U=m3(h,A,c,0,null,!1,!1,"",y3);return c._reactRootContainer=U,c[Ls]=U.current,Il(c.nodeType===8?c.parentNode:c),ia(),U}for(;k=c.lastChild;)c.removeChild(k);if(typeof A=="function"){var te=A;A=function(){var Te=Td(de);te.call(Te)}}var de=z2(c,0,!1,null,null,!1,!1,"",y3);return c._reactRootContainer=de,c[Ls]=de.current,Il(c.nodeType===8?c.parentNode:c),ia(function(){wd(h,de,C,A)}),de}function Ad(c,h,C,A,k){var O=C._reactRootContainer;if(O){var U=O;if(typeof k=="function"){var te=k;k=function(){var de=Td(U);te.call(de)}}wd(h,U,c,k)}else U=pR(C,h,c,k,A);return Td(U)}Z8=function(c){switch(c.tag){case 3:var h=c.stateNode;if(h.current.memoizedState.isDehydrated){var C=dl(h.pendingLanes);C!==0&&(gh(h,C|1),Jn(h,hn()),(_t&6)===0&&(go=hn()+500,mi()))}break;case 13:ia(function(){var A=_s(c,1);if(A!==null){var k=Gn();zr(A,c,1,k)}}),G2(c,1)}},yh=function(c){if(c.tag===13){var h=_s(c,134217728);if(h!==null){var C=Gn();zr(h,c,134217728,C)}G2(c,134217728)}},Q8=function(c){if(c.tag===13){var h=Ci(c),C=_s(c,h);if(C!==null){var A=Gn();zr(C,c,h,A)}G2(c,h)}},J8=function(){return Gt},e6=function(c,h){var C=Gt;try{return Gt=c,h()}finally{Gt=C}},It=function(c,h,C){switch(h){case"input":if(Ge(c,C),h=C.name,C.type==="radio"&&h!=null){for(C=c;C.parentNode;)C=C.parentNode;for(C=C.querySelectorAll("input[name="+JSON.stringify(""+h)+'][type="radio"]'),h=0;h<C.length;h++){var A=C[h];if(A!==c&&A.form===c.form){var k=Hu(A);if(!k)throw Error(t(90));Ie(A),Ge(A,k)}}}break;case"textarea":V(c,C);break;case"select":h=C.value,h!=null&&P(c,!!C.multiple,h,!1)}},xu=M2,Cu=ia;var gR={usingClientEntryPoint:!1,Events:[Ll,no,Hu,yu,vu,M2]},zl={findFiberByHostInstance:Zi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},yR={bundleType:zl.bundleType,version:zl.version,rendererPackageName:zl.rendererPackageName,rendererConfig:zl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(c){return c=wu(c),c===null?null:c.stateNode},findFiberByHostInstance:zl.findFiberByHostInstance||mR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ld=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ld.isDisabled&&Ld.supportsFiber)try{Iu=Ld.inject(yR),is=Ld}catch{}}return er.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gR,er.createPortal=function(c,h){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!W2(h))throw Error(t(200));return hR(c,h,null,C)},er.createRoot=function(c,h){if(!W2(c))throw Error(t(299));var C=!1,A="",k=g3;return h!=null&&(h.unstable_strictMode===!0&&(C=!0),h.identifierPrefix!==void 0&&(A=h.identifierPrefix),h.onRecoverableError!==void 0&&(k=h.onRecoverableError)),h=z2(c,1,!1,null,null,C,!1,A,k),c[Ls]=h.current,Il(c.nodeType===8?c.parentNode:c),new H2(h)},er.findDOMNode=function(c){if(c==null)return null;if(c.nodeType===1)return c;var h=c._reactInternals;if(h===void 0)throw typeof c.render=="function"?Error(t(188)):(c=Object.keys(c).join(","),Error(t(268,c)));return c=wu(h),c=c===null?null:c.stateNode,c},er.flushSync=function(c){return ia(c)},er.hydrate=function(c,h,C){if(!Rd(h))throw Error(t(200));return Ad(null,c,h,!0,C)}
40,er.hydrateRoot=function(c,h,C){if(!W2(c))throw Error(t(405));var A=C!=null&&C.hydratedSources||null,k=!1,O="",U=g3;if(C!=null&&(C.unstable_strictMode===!0&&(k=!0),C.identifierPrefix!==void 0&&(O=C.identifierPrefix),C.onRecoverableError!==void 0&&(U=C.onRecoverableError)),h=m3(h,null,c,1,C??null,k,!1,O,U),c[Ls]=h.current,Il(c),A)for(c=0;c<A.length;c++)C=A[c],k=C._getVersion,k=k(C._source),h.mutableSourceEagerHydrationData==null?h.mutableSourceEagerHydrationData=[C,k]:h.mutableSourceEagerHydrationData.push(C,k);return new Id(h)},er.render=function(c,h,C){if(!Rd(h))throw Error(t(200));return Ad(null,c,h,!1,C)},er.unmountComponentAtNode=function(c){if(!Rd(c))throw Error(t(40));return c._reactRootContainer?(ia(function(){Ad(null,null,c,!1,function(){c._reactRootContainer=null,c[Ls]=null})}),!0):!1},er.unstable_batchedUpdates=M2,er.unstable_renderSubtreeIntoContainer=function(c,h,C,A){if(!Rd(C))throw Error(t(200));if(c==null||c._reactInternals===void 0)throw Error(t(38));return Ad(c,h,C,!1,A)},er.version="18.3.1-next-f1338f8080-20240426",er}var T3;function q5(){if(T3)return Y2.exports;T3=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),Y2.exports=RR(),Y2.exports}var I3;function AR(){if(I3)return Nd;I3=1;var n=q5();return Nd.createRoot=n.createRoot,Nd.hydrateRoot=n.hydrateRoot,Nd}var LR=AR();const NR=Gi(LR);/**
41 * react-router v7.18.4
42 *
43 * Copyright (c) Remix Software Inc.
44 *
45 * This source code is licensed under the MIT license found in the
46 * LICENSE.md file in the root directory of this source tree.
47 *
48 * @license MIT
49 */var Y5=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Rv=/^[\\/]{2}/;function kR(n,e){return e+n.replace(/\\/g,"/")}var R3="popstate";function A3(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function PR(n={}){function e(r,s){var d;let i=(d=s.state)==null?void 0:d.masked,{pathname:a,search:l,hash:u}=i||r.location;return vm("",{pathname:a,search:l,hash:u},s.state&&s.state.usr||null,s.state&&s.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function t(r,s){return typeof s=="string"?s:Fo(s)}return OR(e,t,null,n)}function dn(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function Qr(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function _R(){return Math.random().toString(36).substring(2,10)}function L3(n,e){return{usr:n.state,key:n.key,idx:e,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function vm(n,e,t=null,r,s){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof e=="string"?Zo(e):e,state:t,key:e&&e.key||r||_R(),mask:s}}function Fo({pathname:n="/",search:e="",hash:t=""}){return e&&e!=="?"&&(n+=e.charAt(0)==="?"?e:"?"+e),t&&t!=="#"&&(n+=t.charAt(0)==="#"?t:"#"+t),n}function Zo(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substring(t),n=n.substring(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substring(r),n=n.substring(0,r)),n&&(e.pathname=n)}return e}function OR(n,e,t,r={}){let{window:s=document.defaultView,v5Compat:i=!1}=r,a=s.history,l="POP",u=null,d=f();d==null&&(d=0,a.replaceState({...a.state,idx:d},""));function f(){return(a.state||{idx:null}).idx}function m(){l="POP";let b=f(),E=b==null?null:b-d;d=b,u&&u({action:l,location:x.location,delta:E})}function p(b,E){l="PUSH";let T=A3(b)?b:vm(x.location,b,E);d=f()+1;let w=L3(T,d),R=x.createHref(T.mask||T);try{a.pushState(w,"",R)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;s.location.assign(R)}i&&u&&u({action:l,location:x.location,delta:1})}function y(b,E){l="REPLACE";let T=A3(b)?b:vm(x.location,b,E);d=f();let w=L3(T,d),R=x.createHref(T.mask||T);a.replaceState(w,"",R),i&&u&&u({action:l,location:x.location,delta:0})}function v(b){return DR(s,b)}let x={get action(){return l},get location(){return n(s,a)},listen(b){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(R3,m),u=b,()=>{s.removeEventListener(R3,m),u=null}},createHref(b){return e(s,b)},createURL:v,encodeLocation(b){let E=v(b);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:p,replace:y,go(b){return a.go(b)}};return x}function DR(n,e,t=!1){let r="http://localhost";n&&(r=n.location.origin!=="null"?n.location.origin:n.location.href),dn(r,"No window.location.(origin|href) available to create URL");let s=typeof e=="string"?e:Fo(e);return s=s.replace(/ $/,"%20"),!t&&Rv.test(s)&&(s=r+s),new URL(s,r)}function Av(n,e,t="/"){return jR(n,e,t,!1)}function jR(n,e,t,r,s){let i=typeof e=="string"?Zo(e):e,a=Ws(i.pathname||"/",t);if(a==null)return null;let l=MR(n),u=null,d=qR(a);for(let f=0;u==null&&f<l.length;++f)u=KR(l[f],d,r);return u}function MR(n){let e=Lv(n);return FR(e),e}function Lv(n,e=[],t=[],r="",s=!1){let i=(a,l,u=s,d)=>{let f={relativePath:d===void 0?a.path||"":d,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&u)return;dn(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}
49" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let m=Xr([r,f.relativePath]),p=t.concat(f);a.children&&a.children.length>0&&(dn(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Lv(a.children,e,p,m,u)),!(a.path==null&&!a.index)&&e.push({path:m,score:HR(m,a.index),routesMeta:p.map((y,v)=>{let[x,b]=Pv(y.relativePath,y.caseSensitive,v===p.length-1);return{...y,matcher:x,compiledParams:b}})})};return n.forEach((a,l)=>{var u;if(a.path===""||!((u=a.path)!=null&&u.includes("?")))i(a,l);else for(let d of Nv(a.path))i(a,l,!0,d)}),e}function Nv(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,s=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let a=Nv(r.join("/")),l=[];return l.push(...a.map(u=>u===""?i:[i,u].join("/"))),s&&l.push(...a),l.map(u=>n.startsWith("/")&&u===""?"/":u)}function FR(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:WR(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}var $R=/^:[\w-]+$/,BR=3,UR=2,VR=1,zR=10,GR=-2,N3=n=>n==="*";function HR(n,e){let t=n.split("/"),r=t.length;return t.some(N3)&&(r+=GR),e&&(r+=UR),t.filter(s=>!N3(s)).reduce((s,i)=>s+($R.test(i)?BR:i===""?VR:zR),r)}function WR(n,e){return n.length===e.length&&n.slice(0,-1).every((r,s)=>r===e[s])?n[n.length-1]-e[e.length-1]:0}function KR(n,e,t=!1){let{routesMeta:r}=n,s={},i="/",a=[];for(let l=0;l<r.length;++l){let u=r[l],d=l===r.length-1,f=i==="/"?e:e.slice(i.length)||"/",m={path:u.relativePath,caseSensitive:u.caseSensitive,end:d},p=u.matcher&&u.compiledParams?kv(m,f,u.matcher,u.compiledParams):K1(m,f),y=u.route;if(!p&&d&&t&&!r[r.length-1].route.index&&(p=K1({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},f)),!p)return null;
49Object.assign(s,p.params),a.push({params:s,pathname:Xr([i,p.pathname]),pathnameBase:ZR(Xr([i,p.pathnameBase])),route:y}),p.pathnameBase!=="/"&&(i=Xr([i,p.pathnameBase]))}return a}function K1(n,e){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[t,r]=Pv(n.path,n.caseSensitive,n.end);return kv(n,e,t,r)}function kv(n,e,t,r){let s=e.match(t);if(!s)return null;let i=s[0],a=$o(i,1),l=s.slice(1);return{params:r.reduce((d,{paramName:f,isOptional:m},p)=>{if(f==="*"){let v=l[p]||"";a=$o(i.slice(0,i.length-v.length),1)}const y=l[p];return m&&!y?d[f]=void 0:d[f]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:a,pattern:n}}function Pv(n,e=!1,t=!0){Qr(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],s="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,u,d,f)=>{if(r.push({paramName:l,isOptional:u!=null}),u){let m=f.charAt(d+a.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(r.push({paramName:"*"}),s+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?s+="\\/*$":n!==""&&n!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function qR(n){try{return n.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Qr(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),n}}function Ws(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function YR(n,e="/"){let{pathname:t,search:r="",hash:s=""}=typeof n=="string"?Zo(n):n,i;return t?(t=Ov(t),t.startsWith("/")||t.startsWith("\\")?i=k3(t.substring(1),"/"):i=k3(t,e)):i=e,{pathname:i,search:QR(r),hash:JR(s)}}function k3(n,e){let t=$o(e).split("/");return n.split("/").forEach(s=>{s===".."?t.length>1&&t.pop():s!=="."&&t.push(s)}),t.length>1?t.join("/"):"/"}function Q2(n,e,t,r){return`Cannot include a '${n}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function XR(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function _v(n){let e=XR(n);return e.map((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)}function X5(n,e,t,r=!1){let s;typeof n=="string"?s=Zo(n):(s={...n},dn(!s.pathname||!s.pathname.includes("?"),Q2("?","pathname","search",s)),dn(!s.pathname||!s.pathname.includes("#"),Q2("#","pathname","hash",s)),dn(!s.search||!s.search.includes("#"),Q2("#","search","hash",s)));let i=n===""||s.pathname==="",a=i?"/":s.pathname,l;if(a==null)l=t;else{let m=e.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),m-=1;s.pathname=p.join("/")}l=m>=0?e[m]:"/"}let u=YR(s,l),d=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&t.endsWith("/");return!u.pathname.endsWith("/")&&(d||f)&&(u.pathname+="/"),u}var Ov=n=>n.replace(/[\\/]{2,}/g,"/"),Xr=n=>Ov(n.join("/"));function $o(n,e=0){let t=n.length;for(;t>e&&n.charCodeAt(t-1)===47;)t--;return t===n.length?n:n.slice(0,t)}var ZR=n=>$o(n).replace(/^\/*/,"/"),QR=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,JR=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,eA=(n,e=302)=>{let t=e;typeof t=="number"?t={status:t}:typeof t.status>"u"&&(t.status=302);let r=new Headers(t.headers);return r.set("Location",n),new Response(null,{...t,headers:r})},tA=class{constructor(n,e,t,r=!1){this.status=n,this.statusText=e||"",this.internal=r,t instanceof Error?(this.data=t.toString(),this.error=t):this.data=t}};function nA(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function rA(n){let e=n.map(t=>
49t.route.path).filter(Boolean);return Xr(e)||"/"}var Dv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function jv(n,e){let t=n;if(typeof t!="string"||!Y5.test(t))return{absoluteURL:void 0,isExternal:!1,to:t};let r=t,s=!1;if(Dv)try{let i=new URL(window.location.href),a=Rv.test(t)?new URL(kR(t,i.protocol)):new URL(t),l=Ws(a.pathname,e);a.origin===i.origin&&l!=null?t=l+a.search+a.hash:s=!0}catch{Qr(!1,`<Link to="${t}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:s,to:t}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var P3=new URL("http://localhost");function Mv(n){if(n.createURL)return n.createURL("/");try{return new URL(n.createHref("/"),P3)}catch{return P3}}function J2(n,e){return n.origin===e.origin&&(n.origin!=="null"||n.protocol===e.protocol&&n.host===e.host)}function sA(n,e){if(n.startsWith("//"))return!0;let t=e.protocol.toLowerCase();return n.toLowerCase().startsWith(t)?e.host===""||n.slice(t.length).startsWith("//"):!1}function Fv(n,e,t,r){let s=null;try{s=n==null?null:new URL(n,t)}catch{}let i=new URL(e,t),a=s!=null&&!J2(s,t),l=!J2(i,t);if(r==="reject"){if(a||l)throw new Error("External navigation is not allowed")}else if(l&&(s==null||!sA(n,s)||!J2(s,i)))throw new Error("External navigation is not allowed")}var $v=["POST","PUT","PATCH","DELETE"];new Set($v);var iA=["GET",...$v];new Set(iA);var aA=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function oA(n){try{return aA.includes(new URL(n).protocol)}catch{return!1}}var Qo=S.createContext(null);Qo.displayName="DataRouter";var Ef=S.createContext(null);Ef.displayName="DataRouterState";var Bv=S.createContext(!1);function lA(){return S.useContext(Bv)}var Uv=S.createContext({isTransitioning:!1});Uv.displayName="ViewTransition";var cA=S.createContext(new Map);cA.displayName="Fetchers";var uA=S.createContext(null);uA.displayName="Await";var Or=S.createContext(null);Or.displayName="Navigation";var Xc=S.createContext(null);Xc.displayName="Location";var ts=S.createContext({outlet:null,matches:[],isDataRoute:!1});ts.displayName="Route";var Z5=S.createContext(null);Z5.displayName="RouteError";var Vv="REACT_ROUTER_ERROR",dA="REDIRECT",fA="ROUTE_ERROR_RESPONSE";function hA(n){if(n.startsWith(`${Vv}:${dA}:{`))try{let e=JSON.parse(n.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function mA(n){if(n.startsWith(`${Vv}:${fA}:{`))try{let e=JSON.parse(n.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new tA(e.status,e.statusText,e.data)}catch{}}function pA(n,{relative:e}={}){dn(Zc(),"useHref() may be used only in the context of a <Router> component.");let{basename:t,navigator:r}=S.useContext(Or),{hash:s,pathname:i,search:a}=Qc(n,{relative:e}),l=i;return t!=="/"&&(l=i==="/"?t:Xr([t,i])),r.createHref({pathname:l,search:a,hash:s})}function Zc(){return S.useContext(Xc)!=null}function ns(){return dn(Zc(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Xc).location}var zv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Gv(n){S.useContext(Or).static||S.useLayoutEffect(n)}function Q5(){let{isDataRoute:n}=S.useContext(ts);return n?NA():gA()}function gA(){dn(Zc(),"useNavigate() may be used only in the context of a <Router> component.");let n=S.useContext(Qo),{basename:e,navigator:t}=S.useContext(Or),{matches:r}=S.useContext(ts),{pathname:s}=ns(),i=JSON.stringify(_v(r)),a=S.useRef(!1);return Gv(()=>{a.current=!0}),S.useCallback((u,d={})=>{if(Qr(a.current,zv),!a.current)return;if(typeof u=="number"){t.go(u);return}let f=X5(u,JSON.parse(i),s,d.relative==="path");n==null&&e!=="/"&&(f.pathname=f.pathname==="/"?e:Xr([e,f.pathname])),Fv(typeof u=="string"?u:Fo(u),t.createHref(f),Mv(t),"reject"),(d.replace?t.replace:t.push)(f,d.state,d)},[e,t,i,s,n])}var yA=S.createContext(null);function vA(n){let e=S.useContext(ts).outlet;return S.useMemo(()=>e&&S.createElement(yA.Provider,{value:n},e),[e,n])}function Ba(){let{matches:n}=S.useContext(ts),e=n[n.length-1];return(e==null?void 0:e.params)??{}}function Qc(n,{relative:e}={}){let{matches:t}=S.useContext(ts),{pathname:r}=ns(),s=JSON.stringify(_v(t));return S.useMemo(()=>X5(n,JSON.parse(s),r,e==="path"),[n,s,r,e])}function xA(n,e){return Hv(n,e)}function Hv(n,e,t){var b;dn(Zc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=S.useContext(Or),{matches:s}=S.useContext(ts),i=s[s.length-1],a=i?i.params:{},l=i?i.pathname:"/",u=i?i.pathnameBase:"/",d=i&&i.route;{let E=d&&d.path||"";Kv(l,!d||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
50
51Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let f=ns(),m;if(e){let E=typeof e=="string"?Zo(e):e;dn(u==="/"||((b=E.pathname)==null?void 0:b.startsWith(u)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${E.pathname}" was given in the \`location\` prop.`),m=E}else m=f;let p=m.pathname||"/",y=p;if(u!=="/"){let E=u.replace(/^\//,"").split("/");y="/"+p.replace(/^\//,"").split("/").slice(E.length).join("/")}let v=t&&t.state.matches.length?t.state.matches.map(E=>Object.assign(E,{route:t.manifest[E.route.id]||E.route})):Av(n,{pathname:y});Qr(d||v!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),Qr(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let x=wA(v&&v.map(E=>Object.assign({},E,{params:Object.assign({},a,E.params),pathname:Xr([u,r.encodeLocation?r.encodeLocation(E.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?u:Xr([u,r.encodeLocation?r.encodeLocation(E.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),s,t);return e&&x?S.createElement(Xc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...m},navigationType:"POP"}},x):x}function CA(){let n=LA(),e=nA(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",n),a=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:i},"ErrorBoundary")," or"," ",S.createElement("code",{style:i},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application 
51Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},e),t?S.createElement("pre",{style:s},t):null,a)}var bA=S.createElement(CA,null),Wv=class extends S.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,e){return e.location!==n.location||e.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:e.error,location:e.location,revalidation:n.revalidation||e.revalidation}}componentDidCatch(n,e){this.props.onError?this.props.onError(n,e):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const t=mA(n.digest);t&&(n=t)}let e=n!==void 0?S.createElement(ts.Provider,{value:this.props.routeContext},S.createElement(Z5.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?S.createElement(SA,{error:n},e):e}};Wv.contextType=Bv;var e0=new WeakMap;function SA({children:n,error:e}){let{basename:t,navigator:r}=S.useContext(Or);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let s=hA(e.digest);if(s){let i=e0.get(e);if(i)throw i;let a=jv(s.location,t),l=a.absoluteURL||a.to;if(Fv(s.location,l,Mv(r),"allow-explicit"),oA(l))throw new Error("Invalid redirect location");if(Dv&&!e0.get(e))if(a.isExternal||s.reloadDocument)window.location.href=l;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:s.replace}));throw e0.set(e,u),u}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return n}function EA({routeContext:n,match:e,children:t}){let r=S.useContext(Qo);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),S.createElement(ts.Provider,{value:n},t)}function wA(n,e=[],t){let r=t==null?void 0:t.state;if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let s=n,i=r==null?void 0:r.errors;if(i!=null){let f=s.findIndex(m=>m.route.id&&(i==null?void 0:i[m.route.id])!==void 0);dn(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),s=s.slice(0,Math.min(s.length,f+1))}let a=!1,l=-1;if(t&&r){a=r.renderFallback;for(let f=0;f<s.length;f++){let m=s[f];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(l=f),m.route.id){let{loaderData:p,errors:y}=r,v=m.route.loader&&!p.hasOwnProperty(m.route.id)&&(!y||y[m.route.id]===void 0);if(m.route.lazy||v){t.isStatic&&(a=!0),l>=0?s=s.slice(0,l+1):s=[s[0]];break}}}}let u=t==null?void 0:t.onError,d=r&&u?(f,m)=>{var p,y;u(f,{location:r.location,params:((y=(p=r.matches)==null?void 0:p[0])==null?void 0:y.params)??{},pattern:rA(r.matches),errorInfo:m})}:void 0;return s.reduceRight((f,m,p)=>{let y,v=!1,x=null,b=null;r&&(y=i&&m.route.id?i[m.route.id]:void 0,x=m.route.errorElement||bA,a&&(l<0&&p===0?(Kv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,b=null):l===p&&(v=!0,b=m.route.hydrateFallbackElement||null)));let E=e.concat(s.slice(0,p+1)),T=()=>{let w;return y?w=x:v?w=b:m.route.Component?w=S.createElement(m.route.Component,null):m.route.element?w=m.route.element:w=f,S.createElement(EA,{match:m,routeContext:{outlet:f,matches:E,isDataRoute:r!=null},children:w})};return r&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?S.createElement(Wv,{location:r.location,revalidation:r.revalidation,component:x,error:y,children:T(),routeContext:{outlet:null,matches:E,isDataRoute:!0},onError:d}):T()},null)}function J5(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function TA(n){let e=S.useContext(Qo);return dn(e,J5(n)),e}function IA(n){let e=S.useContext(Ef);return dn(e,J5(n)),e}function RA(n){let e=S.useContext(ts);return dn(e,J5(n)),e}function ep(n){let e=RA(n),t=e.matches[e.matches.length-1];return dn(t.route.id,`${n} can only be used on routes that contain a unique "id"`),t.route.id}function AA(){return ep("useRouteId")}function LA(){var r;let n=S.useContext(Z5),e=IA("useRouteError"),t=ep("useRouteError");return n!==void 0?n:(r=e.errors)==null?void 0:r[t]}function NA(){let{router:n}=TA("useNavigate"),e=ep("useNavigate"),t=S.useRef(!1);return Gv(()=>{t.current=!0}),S.useCallback(async(s,i={})=>{Qr(t.current,zv),t.current&&(typeof s=="number"?await n.navigate(s):await n.navigate(s,{fromRouteId:e,...i}))},[n,e])}var _3={};function Kv(n,e,t){!e&&!_3[n]&&(_3[n]=!0,Qr(!1,t))}S.memo(kA);function kA({routes:n,manifest:e,future:t,state:r,isStatic:s,onError:i}){return Hv(n,void 0,{manifest:e,state:r,isStatic:s,onError:i})}function O3(n){return vA(n.context)}function Rt(n){dn(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function PA({basename:n="/",children:e=null,location:t,navigationType:r="POP",navigator:s,static:i=!1,useTransitions:a}){dn(!Zc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=n.replace(/^\/*/,"/"),u=S.useMemo(()=>({basename:l,navigator:s,static:i,useTransitions:a,future:{}}),[l,s,i,a]);typeof t=="string"&&(t=Zo(t));
51let{pathname:d="/",search:f="",hash:m="",state:p=null,key:y="default",mask:v}=t,x=S.useMemo(()=>{let b=Ws(d,l);return b==null?null:{location:{pathname:b,search:f,hash:m,state:p,key:y,mask:v},navigationType:r}},[l,d,f,m,p,y,r,v]);return Qr(x!=null,`<Router basename="${l}"> is not able to match the URL "${d}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:S.createElement(Or.Provider,{value:u},S.createElement(Xc.Provider,{children:e,value:x}))}function _A({children:n,location:e}){return xA(xm(n),e)}function xm(n,e=[]){let t=[];return S.Children.forEach(n,(r,s)=>{if(!S.isValidElement(r))return;let i=[...e,s];if(r.type===S.Fragment){t.push.apply(t,xm(r.props.children,i));return}dn(r.type===Rt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),dn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=xm(r.props.children,i)),t.push(a)}),t}var A1="get",L1="application/x-www-form-urlencoded";function wf(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function OA(n){return wf(n)&&n.tagName.toLowerCase()==="button"}function DA(n){return wf(n)&&n.tagName.toLowerCase()==="form"}function jA(n){return wf(n)&&n.tagName.toLowerCase()==="input"}function MA(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function FA(n,e){return n.button===0&&(!e||e==="_self")&&!MA(n)}function Cm(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((e,t)=>{let r=n[t];return e.concat(Array.isArray(r)?r.map(s=>[t,s]):[[t,r]])},[]))}function $A(n,e){let t=Cm(n);return e&&e.forEach((r,s)=>{t.has(s)||e.getAll(s).forEach(i=>{t.append(s,i)})}),t}var kd=null;function BA(){if(kd===null)try{new FormData(document.createElement("form"),0),kd=!1}catch{kd=!0}return kd}var UA=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function t0(n){return n!=null&&!UA.has(n)?(Qr(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${L1}"`),null):n}function VA(n,e){let t,r,s,i,a;if(DA(n)){let l=n.getAttribute("action");r=l?Ws(l,e):null,t=n.getAttribute("method")||A1,s=t0(n.getAttribute("enctype"))||L1,i=new FormData(n)}else if(OA(n)||jA(n)&&(n.type==="submit"||n.type==="image")){let l=n.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=n.getAttribute("formaction")||l.getAttribute("action");if(r=u?Ws(u,e):null,t=n.getAttribute("formmethod")||l.getAttribute("method")||A1,s=t0(n.getAttribute("formenctype"))||t0(l.getAttribute("enctype"))||L1,i=new FormData(l,n),!BA()){let{name:d,type:f,value:m}=n;if(f==="image"){let p=d?`${d}.`:"";i.append(`${p}x`,"0"),i.append(`${p}y`,"0")}else d&&i.append(d,m)}}else{if(wf(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=A1,r=null,s=L1,a=n}return i&&s==="text/plain"&&(a=i,i=void 0),{action:r,method:t.toLowerCase(),encType:s,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function tp(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function qv(n,e,t,r){let s=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return t?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${r}`:s.pathname=`${s.pathname}.${r}`:s.pathname==="/"?s.pathname=`_root.${r}`:e&&Ws(s.pathname,e)==="/"?s.pathname=`${$o(e)}/_root.${r}`:s.pathname=`${$o(s.pathname)}.${r}`,s}async function zA(n,e){if(n.id in e)return e[n.id];try{let t=await import(n.module);return e[n.id]=t,t}catch(t){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.
51isSpaMode,window.location.reload(),new Promise(()=>{})}}function GA(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function HA(n,e,t){let r=await Promise.all(n.map(async s=>{let i=e.routes[s.route.id];if(i){let a=await zA(i,t);return a.links?a.links():[]}return[]}));return YA(r.flat(1).filter(GA).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function D3(n,e,t,r,s,i){let a=(u,d)=>t[d]?u.route.id!==t[d].route.id:!0,l=(u,d)=>{var f;return t[d].pathname!==u.pathname||((f=t[d].route.path)==null?void 0:f.endsWith("*"))&&t[d].params["*"]!==u.params["*"]};return i==="assets"?e.filter((u,d)=>a(u,d)||l(u,d)):i==="data"?e.filter((u,d)=>{var m;let f=r.routes[u.route.id];if(!f||!f.hasLoader)return!1;if(a(u,d)||l(u,d))return!0;if(u.route.shouldRevalidate){let p=u.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((m=t[0])==null?void 0:m.params)||{},nextUrl:new URL(n,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function WA(n,e,{includeHydrateFallback:t}={}){return KA(n.map(r=>{let s=e.routes[r.route.id];if(!s)return[];let i=[s.module];return s.clientActionModule&&(i=i.concat(s.clientActionModule)),s.clientLoaderModule&&(i=i.concat(s.clientLoaderModule)),t&&s.hydrateFallbackModule&&(i=i.concat(s.hydrateFallbackModule)),s.imports&&(i=i.concat(s.imports)),i}).flat(1))}function KA(n){return[...new Set(n)]}function qA(n){let e={},t=Object.keys(n).sort();for(let r of t)e[r]=n[r];return e}function YA(n,e){let t=new Set;return new Set(e),n.reduce((r,s)=>{let i=JSON.stringify(qA(s));return t.has(i)||(t.add(i),r.push({key:i,link:s})),r},[])}function np(){let n=S.useContext(Qo);return tp(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function XA(){let n=S.useContext(Ef);return tp(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var rp=S.createContext(void 0);rp.displayName="FrameworkContext";function Tf(){let n=S.useContext(rp);return tp(n,"You must render this element inside a <HydratedRouter> element"),n}function ZA(n,e){let t=S.useContext(rp),[r,s]=S.useState(!1),[i,a]=S.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:d,onMouseLeave:f,onTouchStart:m}=e,p=S.useRef(null);S.useEffect(()=>{if(n==="render"&&a(!0),n==="viewport"){let x=E=>{E.forEach(T=>{a(T.isIntersecting)})},b=new IntersectionObserver(x,{threshold:.5});return p.current&&b.observe(p.current),()=>{b.disconnect()}}},[n]),S.useEffect(()=>{if(r){let x=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(x)}}},[r]);let y=()=>{s(!0)},v=()=>{s(!1),a(!1)};return t?n!=="intent"?[i,p,{}]:[i,p,{onFocus:Wl(l,y),onBlur:Wl(u,v),onMouseEnter:Wl(d,y),onMouseLeave:Wl(f,v),onTouchStart:Wl(m,y)}]:[!1,p,{}]}function Wl(n,e){return t=>{n&&n(t),t.defaultPrevented||e(t)}}function QA({page:n,...e}){let t=lA(),{nonce:r}=Tf(),{router:s}=np(),i=S.useMemo(()=>Av(s.routes,n,s.basename),[s.routes,n,s.basename]);return i?(e.nonce==null&&r&&(e={...e,nonce:r}),t?S.createElement(eL,{page:n,matches:i,...e}):S.createElement(tL,{page:n,matches:i,...e})):null}function JA(n){let{manifest:e,routeModules:t}=Tf(),[r,s]=S.useState([]);return S.useEffect(()=>{let i=!1;return HA(n,e,t).then(a=>{i||s(a)}),()=>{i=!0}},[n,e,t]),r}function eL({page:n,matches:e,...t}){let r=ns(),{future:s}=Tf(),{basename:i}=np(),a=S.useMemo(()=>{if(n===r.pathname+r.search+r.hash)return[];let l=qv(n,i,s.v8_trailingSlashAwareDataRequests,"rsc"),u=!1,d=[];for(let f of e)typeof f.route.shouldRevalidate=="function"?u=!0:d.push(f.route.id);return u&&d.length>0&&l.searchParams.set("_routes",d.join(",")),[l.pathname+l.search]},[i,s.v8_trailingSlashAwareDataRequests,n,r,e]);return S.createElement(S.Fragment,null,a.map(l=>S.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...t})))}function tL({page:n,matches:e,...t}){let r=ns(),{future:s,manifest:i,routeModules:a}=Tf(),{basename:l}=np(),{loaderData:u,matches:d}=XA(),f=S.useMemo(()=>D3(n,e,d,i,r,"data"),[n,e,d,i,r]),m=S.useMemo(()=>D3(n,e,d,i,r,"assets"),[n,e,d,i,r]),p=S.useMemo(()=>
51{if(n===r.pathname+r.search+r.hash)return[];let x=new Set,b=!1;if(e.forEach(T=>{var R;let w=i.routes[T.route.id];!w||!w.hasLoader||(!f.some(I=>I.route.id===T.route.id)&&T.route.id in u&&((R=a[T.route.id])!=null&&R.shouldRevalidate)||w.hasClientLoader?b=!0:x.add(T.route.id))}),x.size===0)return[];let E=qv(n,l,s.v8_trailingSlashAwareDataRequests,"data");return b&&x.size>0&&E.searchParams.set("_routes",e.filter(T=>x.has(T.route.id)).map(T=>T.route.id).join(",")),[E.pathname+E.search]},[l,s.v8_trailingSlashAwareDataRequests,u,r,i,f,e,n,a]),y=S.useMemo(()=>WA(m,i),[m,i]),v=JA(m);return S.createElement(S.Fragment,null,p.map(x=>S.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...t})),y.map(x=>S.createElement("link",{key:x,rel:"modulepreload",href:x,...t})),v.map(({key:x,link:b})=>S.createElement("link",{key:x,nonce:t.nonce,...b,crossOrigin:b.crossOrigin??t.crossOrigin})))}function nL(...n){return e=>{n.forEach(t=>{typeof t=="function"?t(e):t!=null&&(t.current=e)})}}var rL=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{rL&&(window.__reactRouterVersion="7.18.4")}catch{}function sL({basename:n,children:e,useTransitions:t,window:r}){let s=S.useRef();s.current==null&&(s.current=PR({window:r,v5Compat:!0}));let i=s.current,[a,l]=S.useState({action:i.action,location:i.location}),u=S.useCallback(d=>{t===!1?l(d):S.startTransition(()=>l(d))},[t]);return S.useLayoutEffect(()=>i.listen(u),[i,u]),S.createElement(PA,{basename:n,children:e,location:a.location,navigationType:a.action,navigator:i,useTransitions:t})}var Pt=S.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:s,reloadDocument:i,replace:a,mask:l,state:u,target:d,to:f,preventScrollReset:m,viewTransition:p,defaultShouldRevalidate:y,...v},x){let{basename:b,navigator:E,useTransitions:T}=S.useContext(Or),w=typeof f=="string"&&Y5.test(f),R=jv(f,b);f=R.to;let I=pA(f,{relative:s}),L=ns(),N=null;if(l){let oe=X5(l,[],L.mask?L.mask.pathname:"/",!0);b!=="/"&&(oe.pathname=oe.pathname==="/"?b:Xr([b,oe.pathname])),N=E.createHref(oe)}let[_,j,F]=ZA(r,v),$=lL(f,{replace:a,mask:l,state:u,target:d,preventScrollReset:m,relative:s,viewTransition:p,defaultShouldRevalidate:y,useTransitions:T});function z(oe){e&&e(oe),oe.defaultPrevented||$(oe)}let W=!(R.isExternal||i),J=S.createElement("a",{...v,...F,href:(W?N:void 0)||R.absoluteURL||I,onClick:W?z:e,ref:nL(x,j),target:d,"data-discover":!w&&t==="render"?"true":void 0});return _&&!w?S.createElement(S.Fragment,null,J,S.createElement(QA,{page:I})):J});Pt.displayName="Link";var iL=S.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:s=!1,style:i,to:a,viewTransition:l,children:u,...d},f){let m=Qc(a,{relative:d.relative}),p=ns(),y=S.useContext(Ef),{navigator:v,basename:x}=S.useContext(Or),b=y!=null&&mL(m)&&l===!0,E=v.encodeLocation?v.encodeLocation(m).pathname:m.pathname,T=p.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;t||(T=T.toLowerCase(),w=w?w.toLowerCase():null,E=E.toLowerCase()),w&&x&&(w=Ws(w,x)||w);const R=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let I=T===E||!s&&T.startsWith(E)&&T.charAt(R)==="/",L=w!=null&&(w===E||!s&&w.startsWith(E)&&w.charAt(E.length)==="/"),N={isActive:I,isPending:L,isTransitioning:b},_=I?e:void 0,j;typeof r=="function"?j=r(N):j=[r,I?"active":null,L?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let F=typeof i=="function"?i(N):i;return S.createElement(Pt,{...d,"aria-current":_,className:j,ref:f,style:F,to:a,viewTransition:l},typeof u=="function"?u(N):u)});iL.displayName="NavLink";var aL=S.forwardRef(({discover:n="render",fetcherKey:e,navigate:t,reloadDocument:r,replace:s,state:i,method:a=A1,action:l,onSubmit:u,relative:d,preventScrollReset:f,viewTransition:m,defaultShouldRevalidate:p,...y},v)=>{let{useTransitions:x}=S.useContext(Or),b=fL(),E=hL(l,{relative:d}),T=a.toLowerCase()==="get"?"get":"post",w=typeof l=="string"&&Y5.test(l),R=I=>{if(u&&u(I),I.defaultPrevented)return;I.preventDefault();let L=I.nativeEvent.submitter,N=(L==null?void 0:L.getAttribute("formmethod"))||a,_=()=>b(L||I.currentTarget,{fetcherKey:e,method:N,navigate:t,replace:s,state:i,relative:d,preventScrollReset:f,viewTransition:m,defaultShouldRevalidate:p});x&&t!==!1?S.startTransition(()=>_()):_()};return S.createElement("form",{ref:v,method:T,action:E,onSubmit:r?u:R,...y,"data-discover":!w&&n==="render"?"true":void 0})});aL.displayName="Form";function oL(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Yv(n){let e=S.useContext(Qo);return dn(e,oL(n)),e}function lL(n,{target:e,replace:t,mask:r,state:s,preventScrollReset:i,relative:a,viewTransition:l,defaultShouldRevalidate:u,useTransitions:d}={}){let f=Q5(),m=ns(),p=Qc(n,{relative:a});return S.useCallback(y=>{if(FA(y,e)){y.preventDefault();let v=t!==void 0?t:Fo(m)===Fo(p),x=()=>f(n,{replace:v,mask:r,state:s,preventScrollReset:i,relative:a,viewTransition:l,defaultShouldRevalidate:u});d?S.startTransition(()=>x()):x()}},[m,f,p,t,r,s,e,n,i,a,l,u,d])}function cL(n){Qr(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let e=S.useRef(Cm(n)),t=S.useRef(!1),r=ns(),s=S.useMemo(()=>$A(r.search,t.current?null:e.current),[r.search]),i=Q5(),a=S.useCallback((l,u)=>{const d=Cm(typeof l=="function"?l(new URLSearchParams(s)):l);t.current=!0,i("?"+d,u)},[i,s]);return[s,a]}var uL=0,dL=()=>`__${String(++uL)}__`;function fL(){let{router:n}=Yv("useSubmit"),{basename:e}=S.useContext(Or),t=AA(),r=n.fetch,s=n.navigate;return S.useCallback(async(i,a={})=>{let{action:l,method:u,encType:d,formData:f,body:m}=VA(i,e);if(a.navigate===!1){let p=a.fetcherKey||dL();await r(p,t,a.action||l,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:f,body:m,formMethod:a.method||u,formEncType:a.encType||d,flushSync:a.flushSync})}else await s(a.action||l,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:f,body:m,formMethod:a.method||u,formEncType:a.encType||d,replace:a.replace,state:a.state,fromRouteId:t,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,s,e,t])}function hL(n,{relative:e}={}){let{basename:t}=S.useContext(Or),r=S.useContext(ts);dn(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),i={...Qc(n||".",{relative:e})},a=ns();if(n==null){i.search=a.search;let l=new URLSearchParams(i.search),u=l.getAll("index");if(u.some(f=>f==="")){l.delete("index"),u.filter(m=>m).forEach(m=>l.append("index",m));let f=l.toString();i.search=f?`?${f}`:""}}return(!n||n===".")&&s.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(i.pathname=i.pathname==="/"?t:Xr([t,i.pathname])),Fo(i)}function mL(n,{relative:e}={}){let t=S.useContext(Uv);dn(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Yv("useViewTransitionState"),s=Qc(n,{relative:e});if(!t.isTransitioning)return!1;let i=Ws(t.currentLocation.pathname,r)||t.currentLocation.pathname,a=Ws(t.nextLocation.pathname,r)||t.nextLocation.pathname;return K1(s.pathname,a)!=null||K1(s.pathname,i)!=null}function Xv(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(e=0;e<s;e++)n[e]&&(t=Xv(n[e]))&&(r&&(r+=" "),r+=t)}else for(t in n)n[t]&&(r&&(r+=" "),r+=t);return r}function Ca(){for(var n,e,t=0,r="",s=arguments.length;t<s;t++)(n=arguments[t])&&(e=Xv(n))&&(r&&(r+=" "),r+=e);return r}var Jc=n=>typeof n=="number"&&!isNaN(n),La=n=>typeof n=="string",Ks=n=>typeof n=="function",pL=n=>La(n)||Jc(n),bm=n=>La(n)||Ks(n)?n:null,gL=(n,e)=>n===!1||Jc(n)&&n>0?n:e,Sm=n=>S.isValidElement(n)||La(n)||Ks(n)||Jc(n);function yL(n,e,t=300){let{scrollHeight:r,style:s}=n;requestAnimationFrame(()=>{s.minHeight="initial",s.height=r+"px",s.transition=`all ${t}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(e,t)})})}function vL({enter:n,exit:e,appendPosition:t=!1,collapse:r=!0,collapseDuration:s=300}){return function({children:i,position:a,preventExitTransition:l,done:u,nodeRef:d,isIn:f,playToast:m}){let p=t?`${n}--${a}`:n,y=t?`${e}--${a}`:e,v=S.useRef(0);return S.useLayoutEffect(()=>{let x=d.current,b=p.split(" "),E=T=>{T.target===d.current&&(m(),x.removeEventListener("animationend",E),x.removeEventListener("animationcancel",E),v.current===0&&T.type!=="animationcancel"&&x.classList.remove(...b))};x.classList.add(...b),x.addEventListener("animationend",E),x.addEventListener("animationcancel",E)},[]),S.useEffect(()=>{let x=d.current,b=()=>{x.removeEventListener("animationend",b),r?yL(x,u,s):u()};f||(l?b():(v.current=1,x.className+=` ${y}`,x.addEventListener("animationend",b)))},[f]),Ke.createElement(Ke.Fragment,null,i)}}function j3(n,e){return{content:Zv(n.content,n.props),containerId:n.props.containerId,id:n.props.toastId,theme:n.props.theme,type:n.props.type,data:n.props.data||{},isLoading:n.props.isLoading,icon:n.props.icon,reason:n.removalReason,status:e}}function Zv(n,e,t=!1){return S.isValidElement(n)&&!La(n.type)?S.cloneElement(n,{closeToast:e.closeToast,toastProps:e,data:e.data,isPaused:t}):Ks(n)?n({closeToast:e.closeToast,toastProps:e,data:e.data,isPaused:t}):n}function xL({closeToast:n,theme:e,ariaLabel:t="close"}){return Ke.createElement("button",{className:`Toastify__close-button Toastify__close-button--${e}`,type:"button",onClick:r=>{r.stopPropagation(),n(!0)},"aria-label":t},Ke.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Ke.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function CL({delay:n,isRunning:e,closeToast:t,type:r="default",hide:s,className:i,controlledProgress:a,progress:l,rtl:u,isIn:d,theme:f}){let m=s||a&&l===0,p={animationDuration:`${n}ms`,animationPlayState:e?"running":"paused"};a&&(p.transform=`scaleX(${l})`);let y=Ca("Toastify__progress-bar",a?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":u}),v=Ks(i)?i({rtl:u,type:r,defaultClassName:y}):Ca(y,i),x={[a&&l>=1?"onTransitionEnd":"onAnimationEnd"]:a&&l<1?null:()=>{d&&t()}};return Ke.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":m},Ke.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${r}`}),Ke.createElement("div",{role:"progressbar","aria-hidden":m?"true":"false","aria-label":"notification timer","aria-valuenow":a?Math.round(l*100):void 0,"aria-valuemin":0,"aria-valuemax":100,className:v,style:p,...x}))}var bL=1,Qv=()=>`${bL++}`;function SL(n,e,t){let r=1,s=0,i=[],a=[],l=e,u=new Map,d=new Set,f=T=>(d.add(T),()=>d.delete(T)),m=()=>{a=Array.from(u.values()),d.forEach(T=>T())},p=({containerId:T,toastId:w,updateId:R})=>{let I=T?T!==n:n!==1,L=u.has(w)&&R==null;return I||L},y=(T,w)=>{u.forEach(R=>{var I;(w==null||w===R.props.toastId)&&((I=R.toggle)==null||I.call(R,T))})},v=T=>{var w,R;T.isActive&&((R=(w=T.props)==null?void 0:w.onClose)==null||R.call(w,T.removalReason),T.isActive=!1,t(j3(T,"removed")))},x=T=>{if(T==null)u.forEach(v);else{let w=u.get(T);w&&v(w)}m()},b=()=>{s-=i.length,i=[]},E=T=>{var w,R;let{toastId:I,updateId:L}=T.props,N=L==null;T.staleId&&u.delete(T.staleId),T.isActive=!0,u.set(I,T),m(),t(j3(T,N?"added":"updated")),N&&((R=(w=T.props).onOpen)==null||R.call(w))};return{id:n,props:l,observe:f,toggle:y,removeToast:x,toasts:u,clearQueue:b,buildToast:(T,w)=>{if(p(w))return;let{toastId:R,updateId:I,data:L,staleId:N,delay:_}=w,j=I==null;j&&s++;let F={...l,style:l.toastStyle,key:r++,...Object.fromEntries(Object.entries(w).filter(([z,W])=>W!=null)),toastId:R,updateId:I,data:L,isIn:!1,className:bm(w.className||l.toastClassName),progressClassName:bm(w.progressClassName||l.progressClassName),autoClose:w.isLoading?!1:gL(w.autoClose,l.autoClose),closeToast(z){let W=u.get(R);W&&(W.removalReason=z,x(R))},deleteToast(){if(u.get(R)!=null){if(u.delete(R),s--,s<0&&(s=0),i.length>0){E(i.shift());return}m()}}};F.closeButton=l.closeButton,w.closeButton===!1||Sm(w.closeButton)?F.closeButton=w.closeButton:w.closeButton===!0&&(F.closeButton=Sm(l.closeButton)?l.closeButton:!0);let $={content:T,props:F,staleId:N};l.limit&&l.limit>0&&s>l.limit&&j?i.push($):Jc(_)?setTimeout(()=>{E($)},_):E($)},setProps(T){l=T},setToggle:(T,w)=>{let R=u.get(T);R&&(R.toggle=w)},isToastActive:T=>{var w;return(w=u.get(T))==null?void 0:w.isActive},getSnapshot:()=>a}}var qn=new Map,wc=[],Em=new Set,EL=n=>
vendor: 11,019 bytes, line 51
51Em.forEach(e=>e(n)),Jv=()=>qn.size>0;function wL(){wc.forEach(n=>tx(n.content,n.options)),wc=[]}var TL=(n,{containerId:e})=>{var t;return(t=qn.get(e||1))==null?void 0:t.toasts.get(n)};function ex(n,e){var t;if(e)return!!((t=qn.get(e))!=null&&t.isToastActive(n));let r=!1;return qn.forEach(s=>{s.isToastActive(n)&&(r=!0)}),r}function IL(n){if(!Jv()){wc=wc.filter(e=>n!=null&&e.options.toastId!==n);return}if(n==null||pL(n))qn.forEach(e=>{e.removeToast(n)});else if(n&&("containerId"in n||"id"in n)){let e=qn.get(n.containerId);e?e.removeToast(n.id):qn.forEach(t=>{t.removeToast(n.id)})}}var RL=(n={})=>{qn.forEach(e=>{e.props.limit&&(!n.containerId||e.id===n.containerId)&&e.clearQueue()})};function tx(n,e){Sm(n)&&(Jv()||wc.push({content:n,options:e}),qn.forEach(t=>{t.buildToast(n,e)}))}function AL(n){var e;(e=qn.get(n.containerId||1))==null||e.setToggle(n.id,n.fn)}function nx(n,e){qn.forEach(t=>{(e==null||!(e!=null&&e.containerId)||(e==null?void 0:e.containerId)===t.id)&&t.toggle(n,e==null?void 0:e.id)})}function LL(n){let e=n.containerId||1;return{subscribe(t){let r=SL(e,n,EL);qn.set(e,r);let s=r.observe(t);return wL(),()=>{s(),qn.delete(e)}},setProps(t){var r;(r=qn.get(e))==null||r.setProps(t)},getSnapshot(){var t;return(t=qn.get(e))==null?void 0:t.getSnapshot()}}}function NL(n){return Em.add(n),()=>{Em.delete(n)}}function kL(n){return n&&(La(n.toastId)||Jc(n.toastId))?n.toastId:Qv()}function eu(n,e){return tx(n,e),e.toastId}function If(n,e){return{...e,type:e&&e.type||n,toastId:kL(e)}}function Rf(n){return(e,t)=>eu(e,If(n,t))}function Ut(n,e){return eu(n,If("default",e))}Ut.loading=(n,e)=>eu(n,If("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e}));function PL(n,{pending:e,error:t,success:r},s){let i;e&&(i=La(e)?Ut.loading(e,s):Ut.loading(e.render,{...s,...e}));let a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(d,f,m)=>{if(f==null){Ut.dismiss(i);return}let p={type:d,...a,...s,data:m},y=La(f)?{render:f}:f;return i?Ut.update(i,{...p,...y}):Ut(y.render,{...p,...y}),m},u=Ks(n)?n():n;return u.then(d=>l("success",r,d)).catch(d=>l("error",t,d)),u}Ut.promise=PL;Ut.success=Rf("success");Ut.info=Rf("info");Ut.error=Rf("error");Ut.warning=Rf("warning");Ut.warn=Ut.warning;Ut.dark=(n,e)=>eu(n,If("default",{theme:"dark",...e}));function _L(n){IL(n)}Ut.dismiss=_L;Ut.clearWaitingQueue=RL;Ut.isActive=ex;Ut.update=(n,e={})=>{let t=TL(n,e);if(t){let{props:r,content:s}=t,i={delay:100,...r,...e,toastId:e.toastId||n,updateId:Qv()};i.toastId!==n&&(i.staleId=n);let a=i.render||s;delete i.render,eu(a,i)}};Ut.done=n=>{Ut.update(n,{progress:1})};Ut.onChange=NL;Ut.play=n=>nx(!0,n);Ut.pause=n=>nx(!1,n);function OL(n){var e;let{subscribe:t,getSnapshot:r,setProps:s}=S.useRef(LL(n)).current;s(n);let i=(e=S.useSyncExternalStore(t,r,r))==null?void 0:e.slice();function a(l){if(!i)return[];let u=new Map;return n.newestOnTop&&i.reverse(),i.forEach(d=>{let{position:f}=d.props;u.has(f)||u.set(f,[]),u.get(f).push(d)}),Array.from(u,d=>l(d[0],d[1]))}return{getToastToRender:a,isToastActive:ex,count:i==null?void 0:i.length}}function DL(n){let[e,t]=S.useState(!1),[r,s]=S.useState(!1),i=S.useRef(null),a=S.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:u,closeToast:d,onClick:f,closeOnClick:m}=n;AL({id:n.toastId,containerId:n.containerId,fn:t}),S.useEffect(()=>{if(n.pauseOnFocusLoss)return p(),()=>{y()}},[n.pauseOnFocusLoss]);function p(){document.hasFocus()||E(),window.addEventListener("focus",b),window.addEventListener("blur",E)}function y(){window.removeEventListener("focus",b),window.removeEventListener("blur",E)}function v(N){if(n.draggable===!0||n.draggable===N.pointerType){T();let _=i.current;a.canCloseOnClick=!0,a.canDrag=!0,_.style.transition="none",n.draggableDirection==="x"?(a.start=N.clientX,a.removalDistance=_.offsetWidth*(n.draggablePercent/100)):(a.start=N.clientY,a.removalDistance=_.offsetHeight*(n.draggablePercent===80?n.draggablePercent*1.5:n.draggablePercent)/100)}}function x(N){let{top:_,bottom:j,left:F,right:$}=i.current.getBoundingClientRect();N.pointerType==="mouse"&&n.pauseOnHover&&N.clientX>=F&&N.clientX<=$&&N.clientY>=_&&N.clientY<=j?E():b()}function b(){t(!0)}function E(){t(!1)}function T(){a.didMove=!1,document.addEventListener("pointermove",R),document.addEventListener("pointerup",I)}function w(){document.removeEventListener("pointermove",R),document.removeEventListener("pointerup",I)}function R(N){let _=i.current;if(a.canDrag&&_){a.didMove=!0,e&&E(),n.draggableDirection==="x"?a.delta=N.clientX-a.start:a.delta=N.clientY-a.start,a.start!==N.clientX&&(a.canCloseOnClick=!1);let j=n.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`;_.style.transform=`translate3d(${j},0)`,_.style.opacity=`${1-Math.abs(a.delta/a.removalDistance)}`}}function I(){w();let N=i.current;if(a.canDrag&&a.didMove&&N){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance){s(!0),n.closeToast(!0),n.collapseAll();return}N.style.transition="transform 0.2s, opacity 0.2s",N.style.removeProperty("transform"),N.style.removeProperty("opacity")}}let L={onPointerDown:v,onPointerUp:x};return l&&u&&(L.onMouseEnter=E,n.stacked||(L.onMouseLeave=b)),m&&(L.onClick=N=>{f&&f(N),a.canCloseOnClick&&d(!0)}),{playToast:b,pauseToast:E,isRunning:e,preventExitTransition:r,toastRef:i,eventHandlers:L}}var rx=typeof window<"u"?S.useLayoutEffect:S.useEffect,Af=({theme:n,type:e,isLoading:t,...r})=>Ke.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:n==="colored"?"currentColor":`var(--toastify-icon-color-${e})`,...r});function jL(n){return Ke.createElement(Af,{...n},Ke.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function ML(n){return Ke.createElement(Af,{...n},Ke.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function FL(n){return Ke.createElement(Af,{...n},Ke.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function $L(n){return Ke.createElement(Af,{...n},Ke.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function BL(){return Ke.createElement("div",{className:"Toastify__spinner"})}var wm={info:ML,warning:jL,success:FL,error:$L,spinner:BL},UL=n=>n in wm;function VL({theme:n,type:e,isLoading:t,icon:r}){let s=null,i={theme:n,type:e};return r===!1||(Ks(r)?s=r({...i,isLoading:t}):S.isValidElement(r)?s=S.cloneElement(r,i):t?s=wm.spinner():UL(e)&&(s=wm[e](i))),s}var zL=n=>{let{isRunning:e,preventExitTransition:t,toastRef:r,eventHandlers:s,playToast:i}=DL(n),{closeButton:a,children:l,autoClose:u,onClick:d,type:f,hideProgressBar:m,closeToast:p,transition:y,position:v,className:x,style:b,progressClassName:E,updateId:T,role:w,progress:R,rtl:I,toastId:L,deleteToast:N,isIn:_,isLoading:j,closeOnClick:F,theme:$,ariaLabel:z}=n,W=Ca("Toastify__toast",`Toastify__toast-theme--${$}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":I},{"Toastify__toast--close-on-click":F}),J=Ks(x)?x({rtl:I,position:v,type:f,defaultClassName:W}):Ca(W,x),oe=VL(n),ie=!!R||!u,Z={closeToast:p,type:f,theme:$},X=null;return a===!1||(Ks(a)?X=a(Z):S.isValidElement(a)?X=S.cloneElement(a,Z):X=xL(Z)),Ke.createElement(y,{isIn:_,done:N,position:v,preventExitTransition:t,nodeRef:r,playToast:i},Ke.createElement("div",{id:L,tabIndex:0,onClick:d,"data-in":_,className:J,...s,style:b,ref:r,..._&&{role:w,"aria-label":z}},oe!=null&&Ke.createElement("div",{className:Ca("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!j})},oe),Zv(l,n,!e),X,!n.customProgressBar&&Ke.createElement(CL,{...T&&!ie?{key:`p-${T}`}:{},rtl:I,theme:$,delay:u,isRunning:e,isIn:_,closeToast:p,hide:m,type:f,className:E,controlledProgress:ie,progress:R||0})))},GL=(n,e=!1)=>({enter:`Toastify--animate Toastify__${n}-enter`,exit:`Toastify--animate Toastify__${n}-exit`,appendPosition:e}),HL=vL(GL("bounce",!0)),WL={position:"top-right",transition:HL,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:n=>n.altKey&&n.code==="KeyT"};function KL(n){let e={...WL,...n},t=n.stacked,[r,s]=S.useState(!0),i=S.useRef(null),{getToastToRender:a,isToastActive:l,count:u}=OL(e),{className:d,style:f,rtl:m,containerId:p,hotKeys:y}=e;function v(b){let E=Ca("Toastify__toast-container",`Toastify__toast-container--${b}`,{"Toastify__toast-container--rtl":m});return Ks(d)?d({position:b,rtl:m,defaultClassName:E}):Ca(E,bm(d))}function x(){t&&(s(!0),Ut.play())}return rx(()=>{var b;if(t){let E=i.current.querySelectorAll('[data-in="true"]'),T=12,w=(b=e.position)==null?void 0:b.includes("top"),R=0,I=0;Array.from(E).reverse().forEach((L,N)=>{let _=L;_.classList.add("Toastify__toast--stacked"),N>0&&(_.dataset.collapsed=`${r}`),_.dataset.pos||(_.dataset.pos=w?"top":"bot");let j=R*(r?.2:1)+(r?0:T*N),F=Math.max(.5,1-(r?I:0));_.style.setProperty("--y",`${w?j:j*-1}px`),_.style.setProperty("--g",`${T}`),_.style.setProperty("--s",`${F}`),R+=_.offsetHeight,I+=.025})}},[r,u,t]),S.useEffect(()=>{function b(E){var T;let w=i.current;y(E)&&((T=w==null?void 0:w.querySelector('[tabIndex="0"]'))==null||T.focus(),s(!1),Ut.pause()),E.key==="Escape"&&(document.activeElement===w||w!=null&&w.contains(document.activeElement))&&(s(!0),Ut.play())}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[y]),Ke.createElement("section",{ref:i,className:"Toastify",id:p,onMouseEnter:()=>{t&&(s(!1),Ut.pause())},onMouseLeave:x,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":e["aria-label"]},a((b,E)=>{let T=E.length?{...f}:{...f,pointerEvents:"none"};return Ke.createElement("div",{tabIndex:-1,className:v(b),"data-stacked":t,style:T,key:`c-${b}`},E.map(({content:w,props:R})=>Ke.createElement(zL,{...R,stacked:t,collapseAll:x,isIn:l(R.toastId,R.containerId),key:`t-${R.key}`},w)))}))}var qL
vendor: 17,403 bytes, lines 51-857
51=`:root {
52  --toastify-color-light: #fff;
53  --toastify-color-dark: #121212;
54  --toastify-color-info: #3498db;
55  --toastify-color-success: #07bc0c;
56  --toastify-color-warning: #f1c40f;
57  --toastify-color-error: hsl(6, 78%, 57%);
58  --toastify-color-transparent: rgba(255, 255, 255, 0.7);
59
60  --toastify-icon-color-info: var(--toastify-color-info);
61  --toastify-icon-color-success: var(--toastify-color-success);
62  --toastify-icon-color-warning: var(--toastify-color-warning);
63  --toastify-icon-color-error: var(--toastify-color-error);
64
65  --toastify-container-width: fit-content;
66  --toastify-toast-width: 320px;
67  --toastify-toast-offset: 16px;
68  --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));
69  --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));
70  --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));
71  --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));
72  --toastify-toast-background: #fff;
73  --toastify-toast-padding: 14px;
74  --toastify-toast-min-height: 64px;
75  --toastify-toast-max-height: 800px;
76  --toastify-toast-bd-radius: 6px;
77  --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
78  --toastify-font-family: sans-serif;
79  --toastify-z-index: 9999;
80  --toastify-text-color-light: #757575;
81  --toastify-text-color-dark: #fff;
82
83  /* Used only for colored theme */
84  --toastify-text-color-info: #fff;
85  --toastify-text-color-success: #fff;
86  --toastify-text-color-warning: #fff;
87  --toastify-text-color-error: #fff;
88
89  --toastify-spinner-color: #616161;
90  --toastify-spinner-color-empty-area: #e0e0e0;
91  --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
92  --toastify-color-progress-dark: #bb86fc;
93  --toastify-color-progress-info: var(--toastify-color-info);
94  --toastify-color-progress-success: var(--toastify-color-success);
95  --toastify-color-progress-warning: var(--toastify-color-warning);
96  --toastify-color-progress-error: var(--toastify-color-error);
97  /* used to control the opacity of the progress trail */
98  --toastify-color-progress-bgo: 0.2;
99}
100
101.Toastify__toast-container {
102  z-index: var(--toastify-z-index);
103  -webkit-transform: translate3d(0, 0, var(--toastify-z-index));
104  position: fixed;
105  width: var(--toastify-container-width);
106  box-sizing: border-box;
107  color: #fff;
108  display: flex;
109  flex-direction: column;
110}
111
112.Toastify__toast-container--top-left {
113  top: var(--toastify-toast-top);
114  left: var(--toastify-toast-left);
115}
116.Toastify__toast-container--top-center {
117  top: var(--toastify-toast-top);
118  left: 50%;
119  transform: translateX(-50%);
120  align-items: center;
121}
122.Toastify__toast-container--top-right {
123  top: var(--toastify-toast-top);
124  right: var(--toastify-toast-right);
125  align-items: end;
126}
127.Toastify__toast-container--bottom-left {
128  bottom: var(--toastify-toast-bottom);
129  left: var(--toastify-toast-left);
130}
131.Toastify__toast-container--bottom-center {
132  bottom: var(--toastify-toast-bottom);
133  left: 50%;
134  transform: translateX(-50%);
135  align-items: center;
136}
137.Toastify__toast-container--bottom-right {
138  bottom: var(--toastify-toast-bottom);
139  right: var(--toastify-toast-right);
140  align-items: end;
141}
142
143.Toastify__toast {
144  --y: 0px;
145  position: relative;
146  touch-action: none;
147  width: var(--toastify-toast-width);
148  min-height: var(--toastify-toast-min-height);
149  box-sizing: border-box;
150  margin-bottom: 1rem;
151  padding: var(--toastify-toast-padding);
152  border-radius: var(--toastify-toast-bd-radius);
153  box-shadow: var(--toastify-toast-shadow);
154  max-height: var(--toastify-toast-max-height);
155  font-family: var(--toastify-font-family);
156  /* webkit only issue #791 */
157  z-index: 0;
158  /* inner swag */
159  display: flex;
160  flex: 1 auto;
161  align-items: center;
162  word-break: break-word;
163}
164
165@media only screen and (max-width: 480px) {
166  .Toastify__toast-container {
167    width: 100vw;
168    left: env(safe-area-inset-left);
169    margin: 0;
170  }
171  .Toastify__toast-container--top-left,
172  .Toastify__toast-container--top-center,
173  .Toastify__toast-container--top-right {
174    top: env(safe-area-inset-top);
175    transform: translateX(0);
176  }
177  .Toastify__toast-container--bottom-left,
178  .Toastify__toast-container--bottom-center,
179  .Toastify__toast-container--bottom-right {
180    bottom: env(safe-area-inset-bottom);
181    transform: translateX(0);
182  }
183  .Toastify__toast-container--rtl {
184    right: env(safe-area-inset-right);
185    left: initial;
186  }
187  .Toastify__toast {
188    --toastify-toast-width: 100%;
189    margin-bottom: 0;
190    border-radius: 0;
191  }
192}
193
194.Toastify__toast-container[data-stacked='true'] {
195  width: var(--toastify-toast-width);
196}
197
198@media only screen and (max-width: 480px) {
199  .Toastify__toast-container[data-stacked='true'] {
200    width: 100vw;
201  }
202}
203
204.Toastify__toast--stacked {
205  position: absolute;
206  width: 100%;
207  transform: translate3d(0, var(--y), 0) scale(var(--s));
208  transition: transform 0.3s;
209}
210
211.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,
212.Toastify__toast--stacked[data-collapsed] .Toastify__close-button {
213  transition: opacity 0.1s;
214}
215
216.Toastify__toast--stacked[data-collapsed='false'] {
217  overflow: visible;
218}
219
220.Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * {
221  opacity: 0;
222}
223
224.Toastify__toast--stacked:after {
225  content: '';
226  position: absolute;
227  left: 0;
228  right: 0;
229  height: calc(var(--g) * 1px);
230  bottom: 100%;
231}
232
233.Toastify__toast--stacked[data-pos='top'] {
234  top: 0;
235}
236
237.Toastify__toast--stacked[data-pos='bot'] {
238  bottom: 0;
239}
240
241.Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before {
242  transform-origin: top;
243}
244
245.Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before {
246  transform-origin: bottom;
247}
248
249.Toastify__toast--stacked:before {
250  content: '';
251  position: absolute;
252  left: 0;
253  right: 0;
254  bottom: 0;
255  height: 100%;
256  transform: scaleY(3);
257  z-index: -1;
258}
259
260.Toastify__toast--rtl {
261  direction: rtl;
262}
263
264.Toastify__toast--close-on-click {
265  cursor: pointer;
266}
267
268.Toastify__toast-icon {
269  margin-inline-end: 10px;
270  width: 22px;
271  flex-shrink: 0;
272  display: flex;
273}
274
275.Toastify--animate {
276  animation-fill-mode: both;
277  animation-duration: 0.5s;
278}
279
280.Toastify--animate-icon {
281  animation-fill-mode: both;
282  animation-duration: 0.3s;
283}
284
285.Toastify__toast-theme--dark {
286  background: var(--toastify-color-dark);
287  color: var(--toastify-text-color-dark);
288}
289
290.Toastify__toast-theme--light {
291  background: var(--toastify-color-light);
292  color: var(--toastify-text-color-light);
293}
294
295.Toastify__toast-theme--colored.Toastify__toast--default {
296  background: var(--toastify-color-light);
297  color: var(--toastify-text-color-light);
298}
299
300.Toastify__toast-theme--colored.Toastify__toast--info {
301  color: var(--toastify-text-color-info);
302  background: var(--toastify-color-info);
303}
304
305.Toastify__toast-theme--colored.Toastify__toast--success {
306  color: var(--toastify-text-color-success);
307  background: var(--toastify-color-success);
308}
309
310.Toastify__toast-theme--colored.Toastify__toast--warning {
311  color: var(--toastify-text-color-warning);
312  background: var(--toastify-color-warning);
313}
314
315.Toastify__toast-theme--colored.Toastify__toast--error {
316  color: var(--toastify-text-color-error);
317  background: var(--toastify-color-error);
318}
319
320.Toastify__progress-bar-theme--light {
321  background: var(--toastify-color-progress-light);
322}
323
324.Toastify__progress-bar-theme--dark {
325  background: var(--toastify-color-progress-dark);
326}
327
328.Toastify__progress-bar--info {
329  background: var(--toastify-color-progress-info);
330}
331
332.Toastify__progress-bar--success {
333  background: var(--toastify-color-progress-success);
334}
335
336.Toastify__progress-bar--warning {
337  background: var(--toastify-color-progress-warning);
338}
339
340.Toastify__progress-bar--error {
341  background: var(--toastify-color-progress-error);
342}
343
344.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,
345.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,
346.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,
347.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
348  background: var(--toastify-color-transparent);
349}
350
351.Toastify__close-button {
352  color: #fff;
353  position: absolute;
354  top: 6px;
355  right: 6px;
356  background: transparent;
357  outline: none;
358  border: none;
359  padding: 0;
360  cursor: pointer;
361  opacity: 0.7;
362  transition: 0.3s ease;
363  z-index: 1;
364}
365
366.Toastify__toast--rtl .Toastify__close-button {
367  left: 6px;
368  right: unset;
369}
370
371.Toastify__close-button--light {
372  color: #000;
373  opacity: 0.3;
374}
375
376.Toastify__close-button > svg {
377  fill: currentColor;
378  height: 16px;
379  width: 14px;
380}
381
382.Toastify__close-button:hover,
383.Toastify__close-button:focus {
384  opacity: 1;
385}
386
387@keyframes Toastify__trackProgress {
388  0% {
389    transform: scaleX(1);
390  }
391  100% {
392    transform: scaleX(0);
393  }
394}
395
396.Toastify__progress-bar {
397  position: absolute;
398  bottom: 0;
399  left: 0;
400  width: 100%;
401  height: 100%;
402  z-index: 1;
403  opacity: 0.7;
404  transform-origin: left;
405}
406
407.Toastify__progress-bar--animated {
408  animation: Toastify__trackProgress linear 1 forwards;
409}
410
411.Toastify__progress-bar--controlled {
412  transition: transform 0.2s;
413}
414
415.Toastify__progress-bar--rtl {
416  right: 0;
417  left: initial;
418  transform-origin: right;
419  border-bottom-left-radius: initial;
420}
421
422.Toastify__progress-bar--wrp {
423  position: absolute;
424  overflow: hidden;
425  bottom: 0;
426  left: 0;
427  width: 100%;
428  height: 5px;
429  border-bottom-left-radius: var(--toastify-toast-bd-radius);
430  border-bottom-right-radius: var(--toastify-toast-bd-radius);
431}
432
433.Toastify__progress-bar--wrp[data-hidden='true'] {
434  opacity: 0;
435}
436
437.Toastify__progress-bar--bg {
438  opacity: var(--toastify-color-progress-bgo);
439  width: 100%;
440  height: 100%;
441}
442
443.Toastify__spinner {
444  width: 20px;
445  height: 20px;
446  box-sizing: border-box;
447  border: 2px solid;
448  border-radius: 100%;
449  border-color: var(--toastify-spinner-color-empty-area);
450  border-right-color: var(--toastify-spinner-color);
451  animation: Toastify__spin 0.65s linear infinite;
452}
453
454@keyframes Toastify__bounceInRight {
455  from,
456  60%,
457  75%,
458  90%,
459  to {
460    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
461  }
462  from {
463    opacity: 0;
464    transform: translate3d(3000px, 0, 0);
465  }
466  60% {
467    opacity: 1;
468    transform: translate3d(-25px, 0, 0);
469  }
470  75% {
471    transform: translate3d(10px, 0, 0);
472  }
473  90% {
474    transform: translate3d(-5px, 0, 0);
475  }
476  to {
477    transform: none;
478  }
479}
480
481@keyframes Toastify__bounceOutRight {
482  20% {
483    opacity: 1;
484    transform: translate3d(-20px, var(--y), 0);
485  }
486  to {
487    opacity: 0;
488    transform: translate3d(2000px, var(--y), 0);
489  }
490}
491
492@keyframes Toastify__bounceInLeft {
493  from,
494  60%,
495  75%,
496  90%,
497  to {
498    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
499  }
500  0% {
501    opacity: 0;
502    transform: translate3d(-3000px, 0, 0);
503  }
504  60% {
505    opacity: 1;
506    transform: translate3d(25px, 0, 0);
507  }
508  75% {
509    transform: translate3d(-10px, 0, 0);
510  }
511  90% {
512    transform: translate3d(5px, 0, 0);
513  }
514  to {
515    transform: none;
516  }
517}
518
519@keyframes Toastify__bounceOutLeft {
520  20% {
521    opacity: 1;
522    transform: translate3d(20px, var(--y), 0);
523  }
524  to {
525    opacity: 0;
526    transform: translate3d(-2000px, var(--y), 0);
527  }
528}
529
530@keyframes Toastify__bounceInUp {
531  from,
532  60%,
533  75%,
534  90%,
535  to {
536    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
537  }
538  from {
539    opacity: 0;
540    transform: translate3d(0, 3000px, 0);
541  }
542  60% {
543    opacity: 1;
544    transform: translate3d(0, -20px, 0);
545  }
546  75% {
547    transform: translate3d(0, 10px, 0);
548  }
549  90% {
550    transform: translate3d(0, -5px, 0);
551  }
552  to {
553    transform: translate3d(0, 0, 0);
554  }
555}
556
557@keyframes Toastify__bounceOutUp {
558  20% {
559    transform: translate3d(0, calc(var(--y) - 10px), 0);
560  }
561  40%,
562  45% {
563    opacity: 1;
564    transform: translate3d(0, calc(var(--y) + 20px), 0);
565  }
566  to {
567    opacity: 0;
568    transform: translate3d(0, -2000px, 0);
569  }
570}
571
572@keyframes Toastify__bounceInDown {
573  from,
574  60%,
575  75%,
576  90%,
577  to {
578    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
579  }
580  0% {
581    opacity: 0;
582    transform: translate3d(0, -3000px, 0);
583  }
584  60% {
585    opacity: 1;
586    transform: translate3d(0, 25px, 0);
587  }
588  75% {
589    transform: translate3d(0, -10px, 0);
590  }
591  90% {
592    transform: translate3d(0, 5px, 0);
593  }
594  to {
595    transform: none;
596  }
597}
598
599@keyframes Toastify__bounceOutDown {
600  20% {
601    transform: translate3d(0, calc(var(--y) - 10px), 0);
602  }
603  40%,
604  45% {
605    opacity: 1;
606    transform: translate3d(0, calc(var(--y) + 20px), 0);
607  }
608  to {
609    opacity: 0;
610    transform: translate3d(0, 2000px, 0);
611  }
612}
613
614.Toastify__bounce-enter--top-left,
615.Toastify__bounce-enter--bottom-left {
616  animation-name: Toastify__bounceInLeft;
617}
618
619.Toastify__bounce-enter--top-right,
620.Toastify__bounce-enter--bottom-right {
621  animation-name: Toastify__bounceInRight;
622}
623
624.Toastify__bounce-enter--top-center {
625  animation-name: Toastify__bounceInDown;
626}
627
628.Toastify__bounce-enter--bottom-center {
629  animation-name: Toastify__bounceInUp;
630}
631
632.Toastify__bounce-exit--top-left,
633.Toastify__bounce-exit--bottom-left {
634  animation-name: Toastify__bounceOutLeft;
635}
636
637.Toastify__bounce-exit--top-right,
638.Toastify__bounce-exit--bottom-right {
639  animation-name: Toastify__bounceOutRight;
640}
641
642.Toastify__bounce-exit--top-center {
643  animation-name: Toastify__bounceOutUp;
644}
645
646.Toastify__bounce-exit--bottom-center {
647  animation-name: Toastify__bounceOutDown;
648}
649
650@keyframes Toastify__zoomIn {
651  from {
652    opacity: 0;
653    transform: scale3d(0.3, 0.3, 0.3);
654  }
655  50% {
656    opacity: 1;
657  }
658}
659
660@keyframes Toastify__zoomOut {
661  from {
662    opacity: 1;
663  }
664  50% {
665    opacity: 0;
666    transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);
667  }
668  to {
669    opacity: 0;
670  }
671}
672
673.Toastify__zoom-enter {
674  animation-name: Toastify__zoomIn;
675}
676
677.Toastify__zoom-exit {
678  animation-name: Toastify__zoomOut;
679}
680
681@keyframes Toastify__flipIn {
682  from {
683    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
684    animation-timing-function: ease-in;
685    opacity: 0;
686  }
687  40% {
688    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
689    animation-timing-function: ease-in;
690  }
691  60% {
692    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
693    opacity: 1;
694  }
695  80% {
696    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
697  }
698  to {
699    transform: perspective(400px);
700  }
701}
702
703@keyframes Toastify__flipOut {
704  from {
705    transform: translate3d(0, var(--y), 0) perspective(400px);
706  }
707  30% {
708    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);
709    opacity: 1;
710  }
711  to {
712    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);
713    opacity: 0;
714  }
715}
716
717.Toastify__flip-enter {
718  animation-name: Toastify__flipIn;
719}
720
721.Toastify__flip-exit {
722  animation-name: Toastify__flipOut;
723}
724
725@keyframes Toastify__slideInRight {
726  from {
727    transform: translate3d(110%, 0, 0);
728    visibility: visible;
729  }
730  to {
731    transform: translate3d(0, var(--y), 0);
732  }
733}
734
735@keyframes Toastify__slideInLeft {
736  from {
737    transform: translate3d(-110%, 0, 0);
738    visibility: visible;
739  }
740  to {
741    transform: translate3d(0, var(--y), 0);
742  }
743}
744
745@keyframes Toastify__slideInUp {
746  from {
747    transform: translate3d(0, 110%, 0);
748    visibility: visible;
749  }
750  to {
751    transform: translate3d(0, var(--y), 0);
752  }
753}
754
755@keyframes Toastify__slideInDown {
756  from {
757    transform: translate3d(0, -110%, 0);
758    visibility: visible;
759  }
760  to {
761    transform: translate3d(0, var(--y), 0);
762  }
763}
764
765@keyframes Toastify__slideOutRight {
766  from {
767    transform: translate3d(0, var(--y), 0);
768  }
769  to {
770    visibility: hidden;
771    transform: translate3d(110%, var(--y), 0);
772  }
773}
774
775@keyframes Toastify__slideOutLeft {
776  from {
777    transform: translate3d(0, var(--y), 0);
778  }
779  to {
780    visibility: hidden;
781    transform: translate3d(-110%, var(--y), 0);
782  }
783}
784
785@keyframes Toastify__slideOutDown {
786  from {
787    transform: translate3d(0, var(--y), 0);
788  }
789  to {
790    visibility: hidden;
791    transform: translate3d(0, 500px, 0);
792  }
793}
794
795@keyframes Toastify__slideOutUp {
796  from {
797    transform: translate3d(0, var(--y), 0);
798  }
799  to {
800    visibility: hidden;
801    transform: translate3d(0, -500px, 0);
802  }
803}
804
805.Toastify__slide-enter--top-left,
806.Toastify__slide-enter--bottom-left {
807  animation-name: Toastify__slideInLeft;
808}
809
810.Toastify__slide-enter--top-right,
811.Toastify__slide-enter--bottom-right {
812  animation-name: Toastify__slideInRight;
813}
814
815.Toastify__slide-enter--top-center {
816  animation-name: Toastify__slideInDown;
817}
818
819.Toastify__slide-enter--bottom-center {
820  animation-name: Toastify__slideInUp;
821}
822
823.Toastify__slide-exit--top-left,
824.Toastify__slide-exit--bottom-left {
825  animation-name: Toastify__slideOutLeft;
826  animation-timing-function: ease-in;
827  animation-duration: 0.3s;
828}
829
830.Toastify__slide-exit--top-right,
831.Toastify__slide-exit--bottom-right {
832  animation-name: Toastify__slideOutRight;
833  animation-timing-function: ease-in;
834  animation-duration: 0.3s;
835}
836
837.Toastify__slide-exit--top-center {
838  animation-name: Toastify__slideOutUp;
839  animation-timing-function: ease-in;
840  animation-duration: 0.3s;
841}
842
843.Toastify__slide-exit--bottom-center {
844  animation-name: Toastify__slideOutDown;
845  animation-timing-function: ease-in;
846  animation-duration: 0.3s;
847}
848
849@keyframes Toastify__spin {
850  from {
851    transform: rotate(0deg);
852  }
853  to {
854    transform: rotate(360deg);
855  }
856}
857`
857,M3=new Map,YL=(n,e)=>{rx(()=>{if(typeof document>"u")return;let t=document,r=M3.get(t);if(r){e&&r.setAttribute("nonce",e);return}let s=t.createElement("style");s.textContent=n,e&&s.setAttribute("nonce",e),t.head.appendChild(s),M3.set(t,s)},[e])};function sx(n){return YL(qL,n.nonce),Ke.createElement(KL,{...n})}var n0={exports:{}};/*!
858	Copyright (c) 2018 Jed Watson.
859	Licensed under the MIT License (MIT), see
860	http://jedwatson.github.io/classnames
861*/var F3;function XL(){return F3||(F3=1,(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var i="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(i=s(i,r(l)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return t.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var l in i)e.call(i,l)&&i[l]&&(a=s(a,l));return a}function s(i,a){return a?i?i+" "+a:i+a:i}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(n0)),n0.exports}var ZL=XL();const Ct=Gi(ZL);function Tm(){return Tm=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Tm.apply(null,arguments)}function ix(n,e){if(n==null)return{};var t={};for(var r in n)if({}
861.hasOwnProperty.call(n,r)){if(e.indexOf(r)!==-1)continue;t[r]=n[r]}return t}function $3(n){return"default"+n.charAt(0).toUpperCase()+n.substr(1)}function QL(n){var e=JL(n,"string");return typeof e=="symbol"?e:String(e)}function JL(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function eN(n,e,t){var r=S.useRef(n!==void 0),s=S.useState(e),i=s[0],a=s[1],l=n!==void 0,u=r.current;return r.current=l,!l&&u&&i!==e&&a(e),[l?n:i,S.useCallback(function(d){for(var f=arguments.length,m=new Array(f>1?f-1:0),p=1;p<f;p++)m[p-1]=arguments[p];t&&t.apply(void 0,[d].concat(m)),a(d)},[t])]}function Lf(n,e){return Object.keys(e).reduce(function(t,r){var s,i=t,a=i[$3(r)],l=i[r],u=ix(i,[$3(r),r].map(QL)),d=e[r],f=eN(l,a,n[d]),m=f[0],p=f[1];return Tm({},u,(s={},s[r]=m,s[d]=p,s))},n)}function Im(n,e){return Im=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Im(n,e)}function tN(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,Im(n,e)}const nN=["xxl","xl","lg","md","sm","xs"],rN="xs",tu=S.createContext({prefixes:{},breakpoints:nN,minBreakpoint:rN}),{Consumer:Yee,Provider:Xee}=tu;function Lt(n,e){const{prefixes:t}=S.useContext(tu);return n||t[e]||e}function sN(){const{breakpoints:n}=S.useContext(tu);return n}function iN(){const{minBreakpoint:n}=S.useContext(tu);return n}function sp(){const{dir:n}=S.useContext(tu);return n==="rtl"}function nu(n){return n&&n.ownerDocument||document}function aN(n){var e=nu(n);return e&&e.defaultView||window}function oN(n,e){return aN(n).getComputedStyle(n,e)}var lN=/([A-Z])/g;function cN(n){return n.replace(lN,"-$1").toLowerCase()}var uN=/^ms-/;function Pd(n){return cN(n).replace(uN,"-ms-")}var dN=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function fN(n){return!!(n&&dN.test(n))}function ba(n,e){var t="",r="";if(typeof e=="string")return n.style.getPropertyValue(Pd(e))||oN(n).getPropertyValue(Pd(e));Object.keys(e).forEach(function(s){var i=e[s];!i&&i!==0?n.style.removeProperty(Pd(s)):fN(s)?r+=s+"("+i+") ":t+=Pd(s)+": "+i+";"}),r&&(t+="transform: "+r+";"),n.style.cssText+=";"+t}var r0={exports:{}},s0,B3;function hN(){if(B3)return s0;B3=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return s0=n,s0}var i0,U3;function mN(){if(U3)return i0;U3=1;var n=hN();function e(){}function t(){}return t.resetWarningCache=e,i0=function(){function r(a,l,u,d,f,m){if(m!==n){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function s(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:t,resetWarningCache:e};return i.PropTypes=i,i},i0}var V3;function Nf(){return V3||(V3=1,r0.exports=mN()()),r0.exports}var pN=Nf();const ct=Gi(pN);var ax=q5();const Ao=Gi(ax),z3={disabled:!1},ox=Ke.createContext(null);var gN=function(e){return e.scrollTop},sc="unmounted",ha="exited",Ri="entering",ga="entered",Rm="exiting",ei=(function(n){tN(e,n);function e(r,s){var i;i=n.call(this,r,s)||this;var a=s,l=a&&!a.isMounting?r.enter:r.appear,u;return i.appearStatus=null,r.in?l?(u=ha,i.appearStatus=Ri):u=ga:r.unmountOnExit||r.mountOnEnter?u=sc:u=ha,i.state={status:u},i.nextCallback=null,i}e.getDerivedStateFromProps=function(s,i){var a=s.in;return a&&i.status===sc?{status:ha}:null};var t=e.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(s){var i=null;if(s!==this.props){var a=this.state.status;this.props.in?a!==Ri&&a!==ga&&(i=Ri):(a===Ri||a===ga)&&(i=Rm)}this.updateStatus(!1,i)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var s=this.props.timeout,i,a,l;return i=a=l=s,s!=null&&typeof s!="number"&&(i=s.exit,a=s.enter,l=s.appear!==void 0?s.appear:a),{exit:i,enter
861:a,appear:l}},t.updateStatus=function(s,i){if(s===void 0&&(s=!1),i!==null)if(this.cancelNextCallback(),i===Ri){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ao.findDOMNode(this);a&&gN(a)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ha&&this.setState({status:sc})},t.performEnter=function(s){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:s,u=this.props.nodeRef?[l]:[Ao.findDOMNode(this),l],d=u[0],f=u[1],m=this.getTimeouts(),p=l?m.appear:m.enter;if(!s&&!a||z3.disabled){this.safeSetState({status:ga},function(){i.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:Ri},function(){i.props.onEntering(d,f),i.onTransitionEnd(p,function(){i.safeSetState({status:ga},function(){i.props.onEntered(d,f)})})})},t.performExit=function(){var s=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Ao.findDOMNode(this);if(!i||z3.disabled){this.safeSetState({status:ha},function(){s.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Rm},function(){s.props.onExiting(l),s.onTransitionEnd(a.exit,function(){s.safeSetState({status:ha},function(){s.props.onExited(l)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(s,i){i=this.setNextCallback(i),this.setState(s,i)},t.setNextCallback=function(s){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,s(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(s,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Ao.findDOMNode(this),l=s==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=u[0],f=u[1];this.props.addEndListener(d,f)}s!=null&&setTimeout(this.nextCallback,s)},t.render=function(){var s=this.state.status;if(s===sc)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=ix(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ke.createElement(ox.Provider,{value:null},typeof a=="function"?a(s,l):Ke.cloneElement(Ke.Children.only(a),l))},e})(Ke.Component);ei.contextType=ox;ei.propTypes={};function vo(){}ei.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vo,onEntering:vo,onEntered:vo,onExit:vo,onExiting:vo,onExited:vo};ei.UNMOUNTED=sc;ei.EXITED=ha;ei.ENTERING=Ri;ei.ENTERED=ga;ei.EXITING=Rm;function yN(n){return n.code==="Escape"||n.keyCode===27}function vN(){const n=S.version.split(".");return{major:+n[0],minor:+n[1],patch:+n[2]}}function kf(n){if(!n||typeof n=="function")return null;const{major:e}=vN();return e>=19?n.props.ref:n.ref}const Jo=!!(typeof window<"u"&&window.document&&window.document.createElement);var Am=!1,Lm=!1;try{var a0={get passive(){return Am=!0},get once(){return Lm=Am=!0}};Jo&&(window.addEventListener("test",a0,a0),window.removeEventListener("test",a0,!0))}catch{}function ip(n,e,t,r){if(r&&typeof r!="boolean"&&!Lm){var s=r.once,i=r.capture,a=t;!Lm&&s&&(a=t.__once||function l(u){this.removeEventListener(e,l,i),t.call(this,u)},t.__once=a),n.addEventListener(e,a,Am?r:i)}n.addEventListener(e,t,r)}function Nm(n,e,t,r){var s=r&&typeof r!="boolean"?r.capture:r;n.removeEventListener(e,t,s),t.__once&&n.removeEventListener(e,t.__once,s)}function Pi(n,e,t,r){return ip(n,e,t,r),function(){Nm(n,e,t,r)}}function xN(n,e,t,r){if(r===void 0&&(r=!0),n){var s=document.createEvent("HTMLEvents");s.initEvent(e,t,r),n.dispatchEvent(s)}}function CN(n){var e=ba(n,"transitionDuration")||"",t=e.indexOf("ms")===-1?1e3:1;return parseFloat(e)*t}function bN(n,e,t){t===void 0&&(t=5);var r=!1,s=setTimeout(function(){r||xN(n,"transitionend",!0)},e+t),i=Pi(n,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(s),i()}}function lx(n,e,t,r){t==null&&(t=CN(n)||0);var s=bN(n,t,r),i=Pi(n,"transitionend",e);return function(){s(),i()}}function G3(n,e){const t=ba(n,e)||"",r=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*r}function cx(n,e){const t=G3(n,"transitionDuration"),r=G3(n,"transitionDelay"),s=lx(n,i=>{i.target===n&&(s(),e(i))},t+r)}function ux(n){n.offsetHeight}const H3=n=>!n||typeof n=="function"?n:e=>{n.current=e};function SN(n,e){const t=H3(n),r=H3(e);return s=>{t&&t(s),r&&r(s)}}function Pf(n,e){return S.useMemo(()=>SN(n,e),[n,e])}function EN(n){return n&&"setState"in n?Ao.findDOMNode(n):n??null}const ap=Ke.forwardRef(({onEnter:n,onEntering:e,onEntered:t,onExit:r,onExiting:s,onExited:i,addEndListener:a,children:l,childRef:u,...d},f)=>{const m=S.useRef(null),p=Pf(m,u),y=L=>{p(EN(L))},v=L=>N=>{L&&m.current&&L(m.current,N)},x=S.useCallback(v(n),[n]),b=S.useCallback(v(e),[e]),E=S.useCallback(v(t),[t]),T=S.useCallback(v(r),[r]),w=S.useCallback(v(s),[s]),R=S.useCallback(v(i),[i]),I=S.useCallback(v(a),[a]);return o.jsx(ei,{ref:f,...d,onEnter:x,onEntered:E,onEntering:b,onExit:T,onExited:R,onExiting:w,addEndListener:I,nodeRef:m,children:typeof l=="function"?(L,N)=>l(L,{...N,ref:y}):Ke.cloneElement(l,{ref:y})})});ap.displayName="TransitionWrapper";function dx(n){const e=S.useRef(n);return S.useEffect(()=>{e.current=n},[n]),e}function Bo(n){const e=dx(n);return S.useCallback(function(...t){return e.current&&e.current(...t)},[e])}const wN=(n=>S.forwardRef((e,t)=>
861o.jsx("div",{...e,ref:t,className:Ct(e.className,n)})));function TN(){return S.useState(null)}function IN(n){const e=S.useRef(n);return S.useEffect(()=>{e.current=n},[n]),e}function Bn(n){const e=IN(n);return S.useCallback(function(...t){return e.current&&e.current(...t)},[e])}function RN(n,e,t,r=!1){const s=Bn(t);S.useEffect(()=>{const i=typeof n=="function"?n():n;return i.addEventListener(e,s,r),()=>i.removeEventListener(e,s,r)},[n])}function fx(){const n=S.useRef(!0),e=S.useRef(()=>n.current);return S.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),e.current}function hx(n){const e=S.useRef(null);return S.useEffect(()=>{e.current=n}),e.current}const AN=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",LN=typeof document<"u",W3=LN||AN?S.useLayoutEffect:S.useEffect,NN=["as","disabled"];function kN(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function PN(n){return!n||n.trim()==="#"}function op({tagName:n,disabled:e,href:t,target:r,rel:s,role:i,onClick:a,tabIndex:l=0,type:u}){n||(t!=null||r!=null||s!=null?n="a":n="button");const d={tagName:n};if(n==="button")return[{type:u||"button",disabled:e},d];const f=p=>{if((e||n==="a"&&PN(t))&&p.preventDefault(),e){p.stopPropagation();return}a==null||a(p)},m=p=>{p.key===" "&&(p.preventDefault(),f(p))};return n==="a"&&(t||(t="#"),e&&(t=void 0)),[{role:i??"button",disabled:void 0,tabIndex:e?void 0:l,href:t,target:n==="a"?r:void 0,"aria-disabled":e||void 0,rel:n==="a"?s:void 0,onClick:f,onKeyDown:m},d]}const lp=S.forwardRef((n,e)=>{let{as:t,disabled:r}=n,s=kN(n,NN);const[i,{tagName:a}]=op(Object.assign({tagName:t,disabled:r},s));return o.jsx(a,Object.assign({},s,i,{ref:e}))});lp.displayName="Button";const _N=["onKeyDown"];function ON(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function DN(n){return!n||n.trim()==="#"}const Tc=S.forwardRef((n,e)=>{let{onKeyDown:t}=n,r=ON(n,_N);const[s]=op(Object.assign({tagName:"a"},r)),i=Bn(a=>{s.onKeyDown(a),t==null||t(a)});return DN(r.href)||r.role==="button"?o.jsx("a",Object.assign({ref:e},r,s,{onKeyDown:i})):o.jsx("a",Object.assign({ref:e},r,{onKeyDown:t}))});Tc.displayName="Anchor";const jN={[Ri]:"show",[ga]:"show"},ru=S.forwardRef(({className:n,children:e,transitionClasses:t={},onEnter:r,...s},i)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...s},l=S.useCallback((u,d)=>{ux(u),r==null||r(u,d)},[r]);return o.jsx(ap,{ref:i,addEndListener:cx,...a,onEnter:l,childRef:kf(e),children:(u,d)=>S.cloneElement(e,{...d,className:Ct("fade",n,e.props.className,jN[u],t[u])})})});ru.displayName="Fade";const MN={"aria-label":ct.string,onClick:ct.func,variant:ct.oneOf(["white"])},cp=S.forwardRef(({className:n,variant:e,"aria-label":t="Close",...r},s)=>o.jsx("button",{ref:s,type:"button",className:Ct("btn-close",e&&`btn-close-${e}`,n),"aria-label":t,...r}));cp.displayName="CloseButton";cp.propTypes=MN;const Je=S.forwardRef(({as:n,bsPrefix:e,variant:t="primary",size:r,active:s=!1,disabled:i=!1,className:a,...l},u)=>{const d=Lt(e,"btn"),[f,{tagName:m}]=op({tagName:n,disabled:i,...l}),p=m;return o.jsx(p,{...f,...l,ref:u,disabled:i,className:Ct(a,d,s&&"active",t&&`${d}-${t}`,r&&`${d}-${r}`,l.href&&i&&"disabled")})});Je.displayName="Button";const mx=S.createContext(null);mx.displayName="CardHeaderContext";function FN(n,e){const t=S.useRef(!0);S.useEffect(()=>{if(t.current){t.current=!1;return}return n()},e)}function $N(){const n=S.useRef(!0),e=S.useRef(()=>n.current);return S.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),e.current}function BN(n){const e=S.useRef(n);return e.current=n,e}function px(n){const e=BN(n);S.useEffect(()=>()=>e.current(),[])}const km=2**31-1;function gx(n,e,t){const r=t-Date.now();n.current=r<=km?setTimeout(e,r):setTimeout(()=>gx(n,e,t),km)}function UN(){const n=$N(),e=S.useRef();return px(()=>clearTimeout(e.current)),S.useMemo(()=>{const t=()=>clearTimeout(e.current);function r(s,i=0){n()&&(t(),i<=km?e.current=setTimeout(s,i):gx(e,s,Date.now()+i))}return{set:r,clear:t,handleRef:e}},[])}const yx=S.forwardRef(({className:n,bsPrefix:e,as:t="div",...r},s)=>(e=Lt(e,"carousel-caption"),o.jsx(t,{ref:s,className:Ct(n,e),...r})));
861yx.displayName="CarouselCaption";const vx=S.forwardRef(({as:n="div",bsPrefix:e,className:t,...r},s)=>{const i=Ct(t,Lt(e,"carousel-item"));return o.jsx(n,{ref:s,...r,className:i})});vx.displayName="CarouselItem";function q1(n,e){let t=0;return S.Children.map(n,r=>S.isValidElement(r)?e(r,t++):r)}function xx(n,e){let t=0;S.Children.forEach(n,r=>{S.isValidElement(r)&&e(r,t++)})}function VN(n,e){return S.Children.toArray(n).some(t=>S.isValidElement(t)&&t.type===e)}const zN=40;function GN(n){if(!n||!n.style||!n.parentNode||!n.parentNode.style)return!1;const e=getComputedStyle(n);return e.display!=="none"&&e.visibility!=="hidden"&&getComputedStyle(n.parentNode).display!=="none"}const Cx=S.forwardRef(({defaultActiveIndex:n=0,...e},t)=>{const{as:r="div",bsPrefix:s,slide:i=!0,fade:a=!1,controls:l=!0,indicators:u=!0,indicatorLabels:d=[],activeIndex:f,onSelect:m,onSlide:p,onSlid:y,interval:v=5e3,keyboard:x=!0,onKeyDown:b,pause:E="hover",onMouseOver:T,onMouseOut:w,wrap:R=!0,touch:I=!0,onTouchStart:L,onTouchMove:N,onTouchEnd:_,prevIcon:j=o.jsx("span",{"aria-hidden":"true",className:"carousel-control-prev-icon"}),prevLabel:F="Previous",nextIcon:$=o.jsx("span",{"aria-hidden":"true",className:"carousel-control-next-icon"}),nextLabel:z="Next",variant:W,className:J,children:oe,...ie}=Lf({defaultActiveIndex:n,...e},{activeIndex:"onSelect"}),Z=Lt(s,"carousel"),X=sp(),ue=S.useRef(null),[se,G]=S.useState("next"),[ee,Ee]=S.useState(!1),[Ce,Ae]=S.useState(!1),[me,ve]=S.useState(f||0);S.useEffect(()=>{!Ce&&f!==me&&(ue.current?G(ue.current):G((f||0)>me?"next":"prev"),i&&Ae(!0),ve(f||0))},[f,Ce,me,i]),S.useEffect(()=>{ue.current&&(ue.current=null)});let Q=0,ge;xx(oe,(we,Be)=>{++Q,Be===f&&(ge=we.props.interval)});const le=dx(ge),pe=S.useCallback(we=>{if(Ce)return;let Be=me-1;if(Be<0){if(!R)return;Be=Q-1}ue.current="prev",m==null||m(Be,we)},[Ce,me,m,R,Q]),Ie=Bo(we=>{if(Ce)return;let Be=me+1;if(Be>=Q){if(!R)return;Be=0}ue.current="next",m==null||m(Be,we)}),Ne=S.useRef();S.useImperativeHandle(t,()=>({element:Ne.current,prev:pe,next:Ie}));const Fe=Bo(()=>{!document.hidden&&GN(Ne.current)&&(X?pe():Ie())}),Me=se==="next"?"start":"end";FN(()=>{i||(p==null||p(me,Me),y==null||y(me,Me))},[me]);const ke=`${Z}-item-${se}`,Ge=`${Z}-item-${Me}`,K=S.useCallback(we=>{ux(we),p==null||p(me,Me)},[p,me,Me]),ne=S.useCallback(()=>{Ae(!1),y==null||y(me,Me)},[y,me,Me]),ae=S.useCallback(we=>
861{if(x&&!/input|textarea/i.test(we.target.tagName))switch(we.key){case"ArrowLeft":we.preventDefault(),X?Ie(we):pe(we);return;case"ArrowRight":we.preventDefault(),X?pe(we):Ie(we);return}b==null||b(we)},[x,b,pe,Ie,X]),P=S.useCallback(we=>{E==="hover"&&Ee(!0),T==null||T(we)},[E,T]),D=S.useCallback(we=>{Ee(!1),w==null||w(we)},[w]),B=S.useRef(0),V=S.useRef(0),Y=UN(),H=S.useCallback(we=>{B.current=we.touches[0].clientX,V.current=0,E==="hover"&&Ee(!0),L==null||L(we)},[E,L]),q=S.useCallback(we=>{we.touches&&we.touches.length>1?V.current=0:V.current=we.touches[0].clientX-B.current,N==null||N(we)},[N]),re=S.useCallback(we=>{if(I){const Be=V.current;Math.abs(Be)>zN&&(Be>0?pe(we):Ie(we))}E==="hover"&&Y.set(()=>{Ee(!1)},v||void 0),_==null||_(we)},[I,E,pe,Ie,Y,v,_]),ce=v!=null&&!ee&&!Ce,be=S.useRef();S.useEffect(()=>{var we,Be;if(!ce)return;const Ye=X?pe:Ie;return be.current=window.setInterval(document.visibilityState?Fe:Ye,(we=(Be=le.current)!=null?Be:v)!=null?we:void 0),()=>{be.current!==null&&clearInterval(be.current)}},[ce,pe,Ie,le,v,Fe,X]);const Re=S.useMemo(()=>u&&Array.from({length:Q},(we,Be)=>Ye=>{m==null||m(Be,Ye)}),[u,Q,m]);return o.jsxs(r,{ref:Ne,...ie,onKeyDown:ae,onMouseOver:P,onMouseOut:D,onTouchStart:H,onTouchMove:q,onTouchEnd:re,className:Ct(J,Z,i&&"slide",a&&`${Z}-fade`,W&&`${Z}-${W}`),children:[u&&o.jsx("div",{className:`${Z}-indicators`,children:q1(oe,(we,Be)=>o.jsx("button",{type:"button","data-bs-target":"","aria-label":d!=null&&d.length?d[Be]:`Slide ${Be+1}`,className:Be===me?"active":void 0,onClick:Re?Re[Be]:void 0,"aria-current":Be===me},Be))}),o.jsx("div",{className:`${Z}-inner`,children:q1(oe,(we,Be)=>{const Ye=Be===me;return i?o.jsx(ap,{in:Ye,onEnter:Ye?K:void 0,onEntered:Ye?ne:void 0,addEndListener:cx,children:(at,ht)=>S.cloneElement(we,{...ht,className:Ct(we.props.className,Ye&&at!=="entered"&&ke,(at==="entered"||at==="exiting")&&"active",(at==="entering"||at==="exiting")&&Ge)})}):S.cloneElement(we,{className:Ct(we.props.className,Ye&&"active")})})}),l&&o.jsxs(o.Fragment,{children:[(R||f!==0)&&o.jsxs(Tc,{className:`${Z}-control-prev`,onClick:pe,children:[j,F&&o.jsx("span",{className:"visually-hidden",children:F})]}),(R||f!==Q-1)&&o.jsxs(Tc,{className:`${Z}-control-next`,onClick:Ie,children:[$,z&&o.jsx("span",{className:"visually-hidden",children:z})]})]})]})});Cx.displayName="Carousel";const K3=Object.assign(Cx,{Caption:yx,Item:vx});function HN({as:n,bsPrefix:e,className:t,...r}){e=Lt(e,"col");const s=sN(),i=iN(),a=[],l=[];return s.forEach(u=>{const d=r[u];delete r[u];let f,m,p;typeof d=="object"&&d!=null?{span:f,offset:m,order:p}=d:f=d;const y=u!==i?`-${u}`:"";f&&a.push(f===!0?`${e}${y}`:`${e}${y}-${f}`),p!=null&&l.push(`order${y}-${p}`),m!=null&&l.push(`offset${y}-${m}`)}),[{...r,className:Ct(t,...a,...l)},{as:n,bsPrefix:e,spans:a}]}const bx=S.forwardRef((n,e)=>{const[{className:t,...r},{as:s="div",bsPrefix:i,spans:a}]=HN(n);return o.jsx(s,{...r,ref:e,className:Ct(t,!a.length&&i)})});bx.displayName="Col";var WN=Function.prototype.bind.call(Function.prototype.call,[].slice);function Us(n,e){return WN(n.querySelectorAll(e))}function Sx(n,e,t){const r=S.useRef(n!==void 0),[s,i]=S.useState(e),a=n!==void 0,l=r.current;return r.current=a,!a&&l&&s!==e&&i(e),[a?n:s,S.useCallback((...u)=>{const[d,...f]=u;let m=t==null?void 0:t(d,...f);return i(d),m},[t])]}function Ex(){const[,n]=S.useReducer(e=>e+1,0);return n}const _f=S.createContext(null);var q3=Object.prototype.hasOwnProperty;function Y3(n,e,t){for(t of n.keys())if(uc(t,e))return t}function uc(n,e){var t,r,s;if(n===e)return!0;if(n&&e&&(t=n.constructor)===e.constructor){if(t===Date)return n.getTime()===e.getTime();if(t===RegExp)return n.toString()===e.toString();if(t===Array){if((r=n.length)===e.length)for(;r--&&uc(n[r],e[r]););return r===-1}if(t===Set){if(n.size!==e.size)return!1;for(r of n)if(s=r,s&&typeof s=="object"&&(s=Y3(e,s),!s)||!e.has(s))return!1;return!0}if(t===Map){if(n.size!==e.size)return!1;for(r of n)if(s=r[0],s&&typeof s=="object"&&(s=Y3(e,s),!s)||!uc(r[1],e.get(s)))return!1;return!0}if(t===ArrayBuffer)n=new Uint8Array(n),e=new Uint8Array(e);else if(t===DataView){if((r=n.byteLength)===e.byteLength)for(;r--&&n.getInt8(r)===e.getInt8(r););return r===-1}if(ArrayBuffer.isView(n)){if((r=n.byteLength)===e.byteLength)for(;r--&&n[r]===e[r];);return r===-1}if(!t||typeof n=="object"){r=0;for(t in n)if(q3.call(n,t)&&++r&&!q3.call(e,t)||!(t in e)||!uc(n[t],e[t]))return!1;return Object.keys(e).length===r}}return n!==n&&e!==e}function KN(n){const e=fx();return[n[0],S.useCallback(t=>{if(e())return n[1](t)},[e,n[1]])]}var ir="top",kr="bottom",Pr="right",ar="left",up="auto",su=[ir,kr,Pr,ar],Uo="start",Ic="end",qN="clippingParents",wx="viewport",Kl="popper",YN="reference",X3=su.reduce(function(n,e){return n.concat([e+"-"+Uo,e+"-"+Ic])},[]),Tx=[].concat(su,[up]).reduce(function(n,e){return n.concat([e,e+"-"+Uo,e+"-"+Ic])},[]),XN="beforeRead",ZN="read",QN="afterRead",JN="beforeMain",ek="main",tk="afterMain",nk="beforeWrite",rk="write",sk="afterWrite",ik=[XN,ZN,QN,JN,ek,tk,nk,rk,sk];function Es(n){return n.split("-")[0]}function Cr(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Na(n){var e=Cr(n).Element;return n instanceof e||n instanceof Element}function ws(n){var e=Cr(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function dp(n){if(typeof ShadowRoot>"u")return!1;var e=Cr(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}var Sa=Math.max,Y1=Math.min,Vo=Math.round;function Pm(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ix(){return!/^((?!chrome|android).)*safari/i.test(Pm())}function zo(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),s=1,i=1;e&&ws(n)&&(s=n.offsetWidth>0&&Vo(r.width)/n.offsetWidth||1,i=n.offsetHeight>0&&Vo(r.height)/n.offsetHeight||1);
vendor: 15,106 bytes, line 861
861var a=Na(n)?Cr(n):window,l=a.visualViewport,u=!Ix()&&t,d=(r.left+(u&&l?l.offsetLeft:0))/s,f=(r.top+(u&&l?l.offsetTop:0))/i,m=r.width/s,p=r.height/i;return{width:m,height:p,top:f,right:d+m,bottom:f+p,left:d,x:d,y:f}}function fp(n){var e=zo(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function Rx(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&dp(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ji(n){return n?(n.nodeName||"").toLowerCase():null}function qs(n){return Cr(n).getComputedStyle(n)}function ak(n){return["table","td","th"].indexOf(ji(n))>=0}function Hi(n){return((Na(n)?n.ownerDocument:n.document)||window.document).documentElement}function Of(n){return ji(n)==="html"?n:n.assignedSlot||n.parentNode||(dp(n)?n.host:null)||Hi(n)}function Z3(n){return!ws(n)||qs(n).position==="fixed"?null:n.offsetParent}function ok(n){var e=/firefox/i.test(Pm()),t=/Trident/i.test(Pm());if(t&&ws(n)){var r=qs(n);if(r.position==="fixed")return null}var s=Of(n);for(dp(s)&&(s=s.host);ws(s)&&["html","body"].indexOf(ji(s))<0;){var i=qs(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function iu(n){for(var e=Cr(n),t=Z3(n);t&&ak(t)&&qs(t).position==="static";)t=Z3(t);return t&&(ji(t)==="html"||ji(t)==="body"&&qs(t).position==="static")?e:t||ok(n)||e}function hp(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function dc(n,e,t){return Sa(n,Y1(e,t))}function lk(n,e,t){var r=dc(n,e,t);return r>t?t:r}function Ax(){return{top:0,right:0,bottom:0,left:0}}function Lx(n){return Object.assign({},Ax(),n)}function Nx(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var ck=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Lx(typeof e!="number"?e:Nx(e,su))};function uk(n){var e,t=n.state,r=n.name,s=n.options,i=t.elements.arrow,a=t.modifiersData.popperOffsets,l=Es(t.placement),u=hp(l),d=[ar,Pr].indexOf(l)>=0,f=d?"height":"width";if(!(!i||!a)){var m=ck(s.padding,t),p=fp(i),y=u==="y"?ir:ar,v=u==="y"?kr:Pr,x=t.rects.reference[f]+t.rects.reference[u]-a[u]-t.rects.popper[f],b=a[u]-t.rects.reference[u],E=iu(i),T=E?u==="y"?E.clientHeight||0:E.clientWidth||0:0,w=x/2-b/2,R=m[y],I=T-p[f]-m[v],L=T/2-p[f]/2+w,N=dc(R,L,I),_=u;t.modifiersData[r]=(e={},e[_]=N,e.centerOffset=N-L,e)}}function dk(n){var e=n.state,t=n.options,r=t.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||Rx(e.elements.popper,s)&&(e.elements.arrow=s))}const fk={name:"arrow",enabled:!0,phase:"main",fn:uk,effect:dk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Go(n){return n.split("-")[1]}var hk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mk(n,e){var t=n.x,r=n.y,s=e.devicePixelRatio||1;return{x:Vo(t*s)/s||0,y:Vo(r*s)/s||0}}function Q3(n){var e,t=n.popper,r=n.popperRect,s=n.placement,i=n.variation,a=n.offsets,l=n.position,u=n.gpuAcceleration,d=n.adaptive,f=n.roundOffsets,m=n.isFixed,p=a.x,y=p===void 0?0:p,v=a.y,x=v===void 0?0:v,b=typeof f=="function"?f({x:y,y:x}):{x:y,y:x};y=b.x,x=b.y;var E=a.hasOwnProperty("x"),T=a.hasOwnProperty("y"),w=ar,R=ir,I=window;if(d){var L=iu(t),N="clientHeight",_="clientWidth";if(L===Cr(t)&&(L=Hi(t),qs(L).position!=="static"&&l==="absolute"&&(N="scrollHeight",_="scrollWidth")),L=L,s===ir||(s===ar||s===Pr)&&i===Ic){R=kr;var j=m&&L===I&&I.visualViewport?I.visualViewport.height:L[N];x-=j-r.height,x*=u?1:-1}if(s===ar||(s===ir||s===kr)&&i===Ic){w=Pr;var F=m&&L===I&&I.visualViewport?I.visualViewport.width:L[_];y-=F-r.width,y*=u?1:-1}}var $=Object.assign({position:l},d&&hk),z=f===!0?mk({x:y,y:x},Cr(t)):{x:y,y:x};if(y=z.x,x=z.y,u){var W;return Object.assign({},$,(W={},W[R]=T?"0":"",W[w]=E?"0":"",W.transform=(I.devicePixelRatio||1)<=1?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",W))}return Object.assign({},$,(e={},e[R]=T?x+"px":"",e[w]=E?y+"px":"",e.transform="",e))}function pk(n){var e=n.state,t=n.options,r=t.gpuAcceleration,s=r===void 0?!0:r,i=t.adaptive,a=i===void 0?!0:i,l=t.roundOffsets,u=l===void 0?!0:l,d={placement:Es(e.placement),variation:Go(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Q3(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Q3(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const gk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:pk,data:{}};var _d={passive:!0};function yk(n){var e=n.state,t=n.instance,r=n.options,s=r.scroll,i=s===void 0?!0:s,a=r.resize,l=a===void 0?!0:a,u=Cr(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&d.forEach(function(f){f.addEventListener("scroll",t.update,_d)}),l&&u.addEventListener("resize",t.update,_d),function(){i&&d.forEach(function(f){f.removeEventListener("scroll",t.update,_d)}),l&&u.removeEventListener("resize",t.update,_d)}}const vk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yk,data:{}};var xk={left:"right",right:"left",bottom:"top",top:"bottom"};function N1(n){return n.replace(/left|right|bottom|top/g,function(e){return xk[e]})}var Ck={start:"end",end:"start"};function J3(n){return n.replace(/start|end/g,function(e){return Ck[e]})}function mp(n){var e=Cr(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function pp(n){return zo(Hi(n)).left+mp(n).scrollLeft}function bk(n,e){var t=Cr(n),r=Hi(n),s=t.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(s){i=s.width,a=s.height;var d=Ix();(d||!d&&e==="fixed")&&(l=s.offsetLeft,u=s.offsetTop)}return{width:i,height:a,x:l+pp(n),y:u}}function Sk(n){var e,t=Hi(n),r=mp(n),s=(e=n.ownerDocument)==null?void 0:e.body,i=Sa(t.scrollWidth,t.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=Sa(t.scrollHeight,t.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-r.scrollLeft+pp(n),u=-r.scrollTop;return qs(s||t).direction==="rtl"&&(l+=Sa(t.clientWidth,s?s.clientWidth:0)-i),{width:i,height:a,x:l,y:u}}function gp(n){var e=qs(n),t=e.overflow,r=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+s+r)}function kx(n){return["html","body","#document"].indexOf(ji(n))>=0?n.ownerDocument.body:ws(n)&&gp(n)?n:kx(Of(n))}function fc(n,e){var t;e===void 0&&(e=[]);var r=kx(n),s=r===((t=n.ownerDocument)==null?void 0:t.body),i=Cr(r),a=s?[i].concat(i.visualViewport||[],gp(r)?r:[]):r,l=e.concat(a);return s?l:l.concat(fc(Of(a)))}function _m(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Ek(n,e){var t=zo(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function eg(n,e,t){return e===wx?_m(bk(n,t)):Na(e)?Ek(e,t):_m(Sk(Hi(n)))}function wk(n){var e=fc(Of(n)),t=["absolute","fixed"].indexOf(qs(n).position)>=0,r=t&&ws(n)?iu(n):n;return Na(r)?e.filter(function(s){return Na(s)&&Rx(s,r)&&ji(s)!=="body"}):[]}function Tk(n,e,t,r){var s=e==="clippingParents"?wk(n):[].concat(e),i=[].concat(s,[t]),a=i[0],l=i.reduce(function(u,d){var f=eg(n,d,r);return u.top=Sa(f.top,u.top),u.right=Y1(f.right,u.right),u.bottom=Y1(f.bottom,u.bottom),u.left=Sa(f.left,u.left),u},eg(n,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Px(n){var e=n.reference,t=n.element,r=n.placement,s=r?Es(r):null,i=r?Go(r):null,a=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,u;switch(s){case ir:u={x:a,y:e.y-t.height};break;case kr:u={x:a,y:e.y+e.height};break;case Pr:u={x:e.x+e.width,y:l};break;case ar:u={x:e.x-t.width,y:l};break;default:u={x:e.x,y:e.y}}var d=s?hp(s):null;if(d!=null){var f=d==="y"?"height":"width";switch(i){case Uo:u[d]=u[d]-(e[f]/2-t[f]/2);break;case Ic:u[d]=u[d]+(e[f]/2-t[f]/2);break}}return u}function Rc(n,e){e===void 0&&(e={});var t=e,r=t.placement,s=r===void 0?n.placement:r,i=t.strategy,a=i===void 0?n.strategy:i,l=t.boundary,u=l===void 0?qN:l,d=t.rootBoundary,f=d===void 0?wx:d,m=t.elementContext,p=m===void 0?Kl:m,y=t.altBoundary,v=y===void 0?!1:y,x=t.padding,b=x===void 0?0:x,E=Lx(typeof b!="number"?b:Nx(b,su)),T=p===Kl?YN:Kl,w=n.rects.popper,R=n.elements[v?T:p],I=Tk(Na(R)?R:R.contextElement||Hi(n.elements.popper),u,f,a),L=zo(n.elements.reference),N=Px({reference:L,element:w,placement:s}),_=_m(Object.assign({},w,N)),j=p===Kl?_:L,F={top:I.top-j.top+E.top,bottom:j.bottom-I.bottom+E.bottom,left:I.left-j.left+E.left,right:j.right-I.right+E.right},$=n.modifiersData.offset;if(p===Kl&&$){var z=$[s];Object.keys(F).forEach(function(W){var J=[Pr,kr].indexOf(W)>=0?1:-1,oe=[ir,kr].indexOf(W)>=0?"y":"x";F[W]+=z[oe]*J})}return F}function Ik(n,e){e===void 0&&(e={});var t=e,r=t.placement,s=t.boundary,i=t.rootBoundary,a=t.padding,l=t.flipVariations,u=t.allowedAutoPlacements,d=u===void 0?Tx:u,f=Go(r),m=f?l?X3:X3.filter(function(v){return Go(v)===f}):su,p=m.filter(function(v){return d.indexOf(v)>=0});p.length===0&&(p=m);var y=p.reduce(function(v,x){return v[x]=Rc(n,{placement:x,boundary:s,rootBoundary:i,padding:a})[Es(x)],v},{});return Object.keys(y).sort(function(v,x){return y[v]-y[x]})}function Rk(n){if(Es(n)===up)return[];var e=N1(n);return[J3(n),e,J3(e)]}function Ak(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var s=t.mainAxis,i=s===void 0?!0:s,a=t.altAxis,l=a===void 0?!0:a,u=t.fallbackPlacements,d=t.padding,f=t.boundary,m=t.rootBoundary,p=t.altBoundary,y=t.flipVariations,v=y===void 0?!0:y,x=t.allowedAutoPlacements,b=e.options.placement,E=Es(b),T=E===b,w=u||(T||!v?[N1(b)]:Rk(b)),R=[b].concat(w).reduce(function(Ce,Ae){return Ce.concat(Es(Ae)===up?Ik(e,{placement:Ae,boundary:f,rootBoundary:m,padding:d,flipVariations:v,allowedAutoPlacements:x}):Ae)},[]),I=e.rects.reference,L=e.rects.popper,N=new Map,_=!0,j=R[0],F=0;F<R.length;F++){var $=R[F],z=Es($),W=Go($)===Uo,J=[ir,kr].indexOf(z)>=0,oe=J?"width":"height",ie=Rc(e,{placement:$,boundary:f,rootBoundary:m,altBoundary:p,padding:d}),Z=J?W?Pr:ar:W?kr:ir;I[oe]>L[oe]&&(Z=N1(Z));var X=N1(Z),ue=[];if(i&&ue.push(ie[z]<=0),l&&ue.push(ie[Z]<=0,ie[X]<=0),ue.every(function(Ce){return Ce})){j=$,_=!1;break}N.set($,ue)}if(_)for(var se=v?3:1,G=function(Ae){var me=R.find(function(ve){var Q=N.get(ve);if(Q)return Q.slice(0,Ae).every(function(ge){return ge})});if(me)return j=me,"break"},ee=se;ee>0;ee--){var Ee=G(ee);if(Ee==="break")break}e.placement!==j&&(e.modifiersData[r]._skip=!0,e.placement=j,e.reset=!0)}}const Lk={name:"flip",enabled:!0,phase:"main",fn:Ak,requiresIfExists:["offset"],data:{_skip:!1}};function tg(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function ng(n){return[ir,Pr,kr,ar].some(function(e){return n[e]>=0})}function Nk(n){var e=n.state,t=n.name,r=e.rects.reference,s=e.rects.popper,i=e.modifiersData.preventOverflow,a=Rc(e,{elementContext:"reference"}),l=Rc(e,{altBoundary:!0}),u=tg(a,r),d=tg(l,s,i),f=ng(u),m=ng(d);e.modifiersData[t]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":m})}const kk={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Nk};function Pk(n,e,t){var r=Es(n),s=[ar,ir].indexOf(r)>=0?-1:1,i=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,a=i[0],l=i[1];return a=a||0,l=(l||0)*s,[ar,Pr].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function _k(n){var e=n.state,t=n.options,r=n.name,s=t.offset,i=s===void 0?[0,0]:s,a=Tx.reduce(function(f,m){return f[m]=Pk(m,e.rects,i),f},{}),l=a[e.placement],u=l.x,d=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=d),e.modifiersData[r]=a}const Ok={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_k};function Dk(n){var e=n.state,t=n.name;e.modifiersData[t]=Px({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const jk={name:"popperOffsets",enabled:!0,phase:"read",fn:Dk,data:{}};function Mk(n){return n==="x"?"y":"x"}function Fk(n){var e=n.state,t=n.options,r=n.name,s=t.mainAxis,i=s===void 0?!0:s,a=t.altAxis,l=a===void 0?!1:a,u=t.boundary,d=t.rootBoundary,f=t.altBoundary,m=t.padding,p=t.tether,y=p===void 0?!0:p,v=t.tetherOffset,x=v===void 0?0:v,b=Rc(e,{boundary:u,rootBoundary:d,padding:m,altBoundary:f}),E=Es(e.placement),T=Go(e.placement),w=!T,R=hp(E),I=Mk(R),L=e.modifiersData.popperOffsets,N=e.rects.reference,_=e.rects.popper,j=typeof x=="function"?x(Object.assign({},e.rects,{placement:e.placement})):x,F=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,z={x:0,y:0};if(L){if(i){var W,J=R==="y"?ir:ar,oe=R==="y"?kr:Pr,ie=R==="y"?"height":"width",Z=L[R],X=Z+b[J],ue=Z-b[oe],se=y?-_[ie]/2:0,G=T===Uo?N[ie]:_[ie],ee=T===Uo?-_[ie]:-N[ie],Ee=e.elements.arrow,Ce=y&&Ee?fp(Ee):{width:0,height:0},Ae=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ax(),me=Ae[J],ve=Ae[oe],Q=dc(0,N[ie],Ce[ie]),ge=w?N[ie]/2-se-Q-me-F.mainAxis:G-Q-me-F.mainAxis,le=w?-N[ie]/2+se+Q+ve+F.mainAxis:ee+Q+ve+F.mainAxis,pe=e.elements.arrow&&iu(e.elements.arrow),Ie=pe?R==="y"?pe.clientTop||0:pe.clientLeft||0:0,Ne=(W=$==null?void 0:$[R])!=null?W:0,Fe=Z+ge-Ne-Ie,Me=Z+le-Ne,ke=dc(y?Y1(X,Fe):X,Z,y?Sa(ue,Me):ue);L[R]=ke,z[R]=ke-Z}if(l){var Ge,K=R==="x"?ir:ar,ne=R==="x"?kr:Pr,ae=L[I],P=I==="y"?"height":"width",D=ae+b[K],B=ae-b[ne],V=[ir,ar].indexOf(E)!==-1,Y=(Ge=$==null?void 0:$[I])!=null?Ge:0,H=V?D:ae-N[P]-_[P]-Y+F.altAxis,q=V?ae+N[P]+_[P]-Y-F.altAxis:B,re=y&&V?lk(H,ae,q):dc(y?H:D,ae,y?q:B);L[I]=re,z[I]=re-ae}e.modifiersData[r]=z}}const $k={name:"preventOverflow",enabled:!0,phase:"main",fn:Fk,requiresIfExists:["offset"]};function Bk(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Uk(n){return n===Cr(n)||!ws(n)?mp(n):Bk(n)}function Vk(n){var e=n.getBoundingClientRect(),t=Vo(e.width)/n.offsetWidth||1,r=Vo(e.height)/n.offsetHeight||1;return t!==1||r!==1}function zk(n,e,t){t===void 0&&(t=!1);var r=ws(e),s=ws(e)&&Vk(e),i=Hi(e),a=zo(n,s,t),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!t)&&((ji(e)!=="body"||gp(i))&&(l=Uk(e)),ws(e)?(u=zo(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):i&&(u.x=pp(i))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function Gk(n){var e=new Map,t=new Set,r=[];
vendor: 4,128 bytes, line 861
861n.forEach(function(i){e.set(i.name,i)});function s(i){t.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!t.has(l)){var u=e.get(l);u&&s(u)}}),r.push(i)}return n.forEach(function(i){t.has(i.name)||s(i)}),r}function Hk(n){var e=Gk(n);return ik.reduce(function(t,r){return t.concat(e.filter(function(s){return s.phase===r}))},[])}function Wk(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Kk(n){var e=n.reduce(function(t,r){var s=t[r.name];return t[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var rg={placement:"bottom",modifiers:[],strategy:"absolute"};function sg(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function qk(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,s=e.defaultOptions,i=s===void 0?rg:s;return function(l,u,d){d===void 0&&(d=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},rg,i),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},m=[],p=!1,y={state:f,setOptions:function(E){var T=typeof E=="function"?E(f.options):E;x(),f.options=Object.assign({},i,f.options,T),f.scrollParents={reference:Na(l)?fc(l):l.contextElement?fc(l.contextElement):[],popper:fc(u)};var w=Hk(Kk([].concat(r,f.options.modifiers)));return f.orderedModifiers=w.filter(function(R){return R.enabled}),v(),y.update()},forceUpdate:function(){if(!p){var E=f.elements,T=E.reference,w=E.popper;if(sg(T,w)){f.rects={reference:zk(T,iu(w),f.options.strategy==="fixed"),popper:fp(w)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(F){return f.modifiersData[F.name]=Object.assign({},F.data)});for(var R=0;R<f.orderedModifiers.length;R++){if(f.reset===!0){f.reset=!1,R=-1;continue}var I=f.orderedModifiers[R],L=I.fn,N=I.options,_=N===void 0?{}:N,j=I.name;typeof L=="function"&&(f=L({state:f,options:_,name:j,instance:y})||f)}}}},update:Wk(function(){return new Promise(function(b){y.forceUpdate(),b(f)})}),destroy:function(){x(),p=!0}};if(!sg(l,u))return y;y.setOptions(d).then(function(b){!p&&d.onFirstUpdate&&d.onFirstUpdate(b)});function v(){f.orderedModifiers.forEach(function(b){var E=b.name,T=b.options,w=T===void 0?{}:T,R=b.effect;if(typeof R=="function"){var I=R({state:f,name:E,instance:y,options:w}),L=function(){};m.push(I||L)}})}function x(){m.forEach(function(b){return b()}),m=[]}return y}}const Yk=qk({defaultModifiers:[kk,jk,gk,vk,Ok,Lk,$k,fk]}),Xk=["enabled","placement","strategy","modifiers"];function Zk(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}const Qk={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Jk={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:n})=>()=>{const{reference:e,popper:t}=n.elements;if("removeAttribute"in e){const r=(e.getAttribute("aria-describedby")||"").split(",").filter(s=>s.trim()!==t.id);r.length?e.setAttribute("aria-describedby",r.join(",")):e.removeAttribute("aria-describedby")}},fn:({state:n})=>{var e;const{popper:t,reference:r}=n.elements,s=(e=t.getAttribute("role"))==null?void 0:e.toLowerCase();if(t.id&&s==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(t.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${t.id}`:t.id)}}},eP=[];function tP(n,e,t={}){let{enabled:r=!0,placement:s="bottom",strategy:i="absolute",modifiers:a=eP}=t,l=Zk(t,Xk);const u=S.useRef(a),d=S.useRef(),f=S.useCallback(()=>{var b;(b=d.current)==null||b.update()},[]),m=S.useCallback(()=>{var b;(b=d.current)==null||b.forceUpdate()},[]),[p,y]=KN(S.useState({placement:s,update:f,forceUpdate:m,attributes:{},styles:{popper:{},arrow:{}}})),v=S.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:b})=>{const E={},T={};
861Object.keys(b.elements).forEach(w=>{E[w]=b.styles[w],T[w]=b.attributes[w]}),y({state:b,styles:E,attributes:T,update:f,forceUpdate:m,placement:b.placement})}}),[f,m,y]),x=S.useMemo(()=>(uc(u.current,a)||(u.current=a),u.current),[a]);return S.useEffect(()=>{!d.current||!r||d.current.setOptions({placement:s,strategy:i,modifiers:[...x,v,Qk]})},[i,s,v,r,x]),S.useEffect(()=>{if(!(!r||n==null||e==null))return d.current=Yk(n,e,Object.assign({},l,{placement:s,strategy:i,modifiers:[...x,Jk,v]})),()=>{d.current!=null&&(d.current.destroy(),d.current=void 0,y(b=>Object.assign({},b,{attributes:{},styles:{popper:{}}})))}},[r,n,e]),p}function X1(n,e){if(n.contains)return n.contains(e);if(n.compareDocumentPosition)return n===e||!!(n.compareDocumentPosition(e)&16)}var o0,ig;function nP(){if(ig)return o0;ig=1;var n=function(){};return o0=n,o0}var rP=nP();const sP=Gi(rP),ag=()=>{};function iP(n){return n.button===0}function aP(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}const l0=n=>n&&("current"in n?n.current:n),og={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function oP(n,e=ag,{disabled:t,clickTrigger:r="click"}={}){const s=S.useRef(!1),i=S.useRef(!1),a=S.useCallback(d=>{const f=l0(n);sP(!!f,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),s.current=!f||aP(d)||!iP(d)||!!X1(f,d.target)||i.current,i.current=!1},[n]),l=Bn(d=>{const f=l0(n);f&&X1(f,d.target)?i.current=!0:i.current=!1}),u=Bn(d=>{s.current||e(d)});S.useEffect(()=>{var d,f;if(t||n==null)return;const m=nu(l0(n)),p=m.defaultView||window;let y=(d=p.event)!=null?d:(f=p.parent)==null?void 0:f.event,v=null;og[r]&&(v=Pi(m,og[r],l,!0));const x=Pi(m,r,a,!0),b=Pi(m,r,T=>{if(T===y){y=void 0;return}u(T)});let E=[];return"ontouchstart"in m.documentElement&&(E=[].slice.call(m.body.children).map(T=>Pi(T,"mousemove",ag))),()=>{v==null||v(),x(),b(),E.forEach(T=>T())}},[n,t,r,a,l,u])}function lP(n){const e={};return Array.isArray(n)?(n==null||n.forEach(t=>{e[t.name]=t}),e):n||e}function cP(n={}){return Array.isArray(n)?n:Object.keys(n).map(e=>(n[e].name=e,n[e]))}function uP({enabled:n,enableEvents:e,placement:t,flip:r,offset:s,fixed:i,containerPadding:a,arrowElement:l,popperConfig:u={}}){var d,f,m,p,y;const v=lP(u.modifiers);return Object.assign({},u,{placement:t,enabled:n,strategy:i?"fixed":u.strategy,modifiers:cP(Object.assign({},v,{eventListeners:{enabled:e,options:(d=v.eventListeners)==null?void 0:d.options},preventOverflow:Object.assign({},v.preventOverflow,{options:a?Object.assign({padding:a},(f=v.preventOverflow)==null?void 0:f.options):(m=v.preventOverflow)==null?void 0:m.options}),offset:{options:Object.assign({offset:s},(p=v.offset)==null?void 0:p.options)},arrow:Object.assign({},v.arrow,{enabled:!!l,options:Object.assign({},(y=v.arrow)==null?void 0:y.options,{element:l})}),flip:Object.assign({enabled:!!r},v.flip)}))})}const dP=["children","usePopper"];function fP(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}const hP=()=>{};function _x(n={}){const e=S.useContext(_f),[t,r]=TN(),s=S.useRef(!1),{flip:i,offset:a,rootCloseEvent:l,fixed:u=!1,placement:d,popperConfig:f={},enableEventListeners:m=!0,usePopper:p=!!e}=n,y=(e==null?void 0:e.show)==null?!!n.show:e.show;y&&!s.current&&(s.current=!0);const v=L=>{e==null||e.toggle(!1,L)},{placement:x,setMenu:b,menuElement:E,toggleElement:T}=e||{},w=tP(T,E,uP({placement:d||x||"bottom-start",enabled:p,enableEvents:m??y,offset:a,flip:i,fixed:u,arrowElement:t,popperConfig:f})),R=Object.assign({ref:b||hP,"aria-labelledby":T==null?void 0:T.id},w.attributes.popper,{style:w.styles.popper}),I={show:y,placement:x,hasShown:s.current,toggle:e==null?void 0:e.toggle,popper:p?w:null,arrowProps:p?Object.assign({ref:r},w.attributes.arrow,{style:w.styles.arrow}):{}};return oP(E,v,{clickTrigger:l,disabled:!y}),[R,I]}function Ox(n){let{children:e,usePopper:t=!0}=n,r=fP(n,dP);const[s,i]=_x(Object.assign({},r,{usePopper:t}));return o.jsx(o.Fragment,{children:e(s,i)})}Ox.displayName="DropdownMenu";const Dx={prefix:String(Math.round(Math.random()*1e10)),current:0},jx=Ke.createContext(Dx),mP=Ke.createContext(!1);let c0=new WeakMap;function pP(n=!1){var r,s;let e=S.useContext(jx),t=S.useRef(null);
861if(t.current===null&&!n){let i=(s=(r=Ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:r.ReactCurrentOwner)==null?void 0:s.current;if(i){let a=c0.get(i);a==null?c0.set(i,{id:e.current,state:i.memoizedState}):i.memoizedState!==a.state&&(e.current=a.id,c0.delete(i))}t.current=++e.current}return t.current}function gP(n){let e=S.useContext(jx),t=pP(!!n),r=`react-aria${e.prefix}`;return n||`${r}-${t}`}function yP(n){let e=Ke.useId(),[t]=S.useState(bP()),r=t?"react-aria":`react-aria${Dx.prefix}`;return n||`${r}-${e}`}const Mx=typeof Ke.useId=="function"?yP:gP;function vP(){return!1}function xP(){return!0}function CP(n){return()=>{}}function bP(){return typeof Ke.useSyncExternalStore=="function"?Ke.useSyncExternalStore(CP,vP,xP):S.useContext(mP)}const Fx=n=>{var e;return((e=n.getAttribute("role"))==null?void 0:e.toLowerCase())==="menu"},lg=()=>{};function $x(){const n=Mx(),{show:e=!1,toggle:t=lg,setToggle:r,menuElement:s}=S.useContext(_f)||{},i=S.useCallback(l=>{t(!e,l)},[e,t]),a={id:n,ref:r||lg,onClick:i,"aria-expanded":!!e};return s&&Fx(s)&&(a["aria-haspopup"]=!0),[a,{show:e,toggle:t}]}function Bx({children:n}){const[e,t]=$x();return o.jsx(o.Fragment,{children:n(e,t)})}Bx.displayName="DropdownToggle";const Ys=S.createContext(null),ka=(n,e=null)=>n!=null?String(n):e||null,Df=S.createContext(null);Df.displayName="NavContext";const SP="data-rr-ui-",EP="rrUi";function el(n){return`${SP}${n}`}function wP(n){return`${EP}${n}`}const TP=["eventKey","disabled","onClick","active","as"];function IP(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function Ux({key:n,href:e,active:t,disabled:r,onClick:s}){const i=S.useContext(Ys),a=S.useContext(Df),{activeKey:l}=a||{},u=ka(n,e),d=t==null&&n!=null?ka(l)===u:t;return[{onClick:Bn(m=>{r||(s==null||s(m),i&&!m.isPropagationStopped()&&i(u,m))}),"aria-disabled":r||void 0,"aria-selected":d,[el("dropdown-item")]:""},{isActive:d}]}const Vx=S.forwardRef((n,e)=>{let{eventKey:t,disabled:r,onClick:s,active:i,as:a=lp}=n,l=IP(n,TP);const[u]=Ux({key:t,href:l.href,disabled:r,onClick:s,active:i});return o.jsx(a,Object.assign({},l,{ref:e},u))});Vx.displayName="DropdownItem";const zx=S.createContext(Jo?window:void 0);zx.Provider;function jf(){return S.useContext(zx)}function cg(){const n=Ex(),e=S.useRef(null),t=S.useCallback(r=>{e.current=r,n()},[n]);return[e,t]}function au({defaultShow:n,show:e,onSelect:t,onToggle:r,itemSelector:s=`* [${el("dropdown-item")}]`,focusFirstItemOnShow:i,placement:a="bottom-start",children:l}){const u=jf(),[d,f]=Sx(e,n,r),[m,p]=cg(),y=m.current,[v,x]=cg(),b=v.current,E=hx(d),T=S.useRef(null),w=S.useRef(!1),R=S.useContext(Ys),I=S.useCallback(($,z,W=z==null?void 0:z.type)=>{f($,{originalEvent:z,source:W})},[f]),L=Bn(($,z)=>{t==null||t($,z),I(!1,z,"select"),z.isPropagationStopped()||R==null||R($,z)}),N=S.useMemo(()=>({toggle:I,placement:a,show:d,menuElement:y,toggleElement:b,setMenu:p,setToggle:x}),[I,a,d,y,b,p,x]);y&&E&&!d&&(w.current=y.contains(y.ownerDocument.activeElement));const _=Bn(()=>{b&&b.focus&&b.focus()}),j=Bn(()=>{const $=T.current;let z=i;if(z==null&&(z=m.current&&Fx(m.current)?"keyboard":!1),z===!1||z==="keyboard"&&!/^key.+$/.test($))return;const W=Us(m.current,s)[0];W&&W.focus&&W.focus()});S.useEffect(()=>{d?j():w.current&&(w.current=!1,_())},[d,w,_,j]),S.useEffect(()=>{T.current=null});const F=($,z)=>{if(!m.current)return null;const W=Us(m.current,s);let J=W.indexOf($)+z;return J=Math.max(0,Math.min(J,W.length)),W[J]};return RN(S.useCallback(()=>u.document,[u]),"keydown",$=>{var z,W;const{key:J}=$,oe=$.target,ie=(z=m.current)==null?void 0:z.contains(oe),Z=(W=v.current)==null?void 0:W.contains(oe);if(/input|textarea/i.test(oe.tagName)&&(J===" "||J!=="Escape"&&ie||J==="Escape"&&oe.type==="search")||!ie&&!Z||J==="Tab"&&(!m.current||!d))return;T.current=$.type;const ue={originalEvent:$,source:$.type};switch(J){case"ArrowUp":{const se=F(oe,-1);
861se&&se.focus&&se.focus(),$.preventDefault();return}case"ArrowDown":if($.preventDefault(),!d)f(!0,ue);else{const se=F(oe,1);se&&se.focus&&se.focus()}return;case"Tab":ip(oe.ownerDocument,"keyup",se=>{var G;(se.key==="Tab"&&!se.target||!((G=m.current)!=null&&G.contains(se.target)))&&f(!1,ue)},{once:!0});break;case"Escape":J==="Escape"&&($.preventDefault(),$.stopPropagation()),f(!1,ue);break}}),o.jsx(Ys.Provider,{value:L,children:o.jsx(_f.Provider,{value:N,children:l})})}au.displayName="Dropdown";au.Menu=Ox;au.Toggle=Bx;au.Item=Vx;const yp=S.createContext({});yp.displayName="DropdownContext";const Gx=S.forwardRef(({className:n,bsPrefix:e,as:t="hr",role:r="separator",...s},i)=>(e=Lt(e,"dropdown-divider"),o.jsx(t,{ref:i,className:Ct(n,e),role:r,...s})));Gx.displayName="DropdownDivider";const Hx=S.forwardRef(({className:n,bsPrefix:e,as:t="div",role:r="heading",...s},i)=>(e=Lt(e,"dropdown-header"),o.jsx(t,{ref:i,className:Ct(n,e),role:r,...s})));Hx.displayName="DropdownHeader";const Wx=S.forwardRef(({bsPrefix:n,className:e,eventKey:t,disabled:r=!1,onClick:s,active:i,as:a=Tc,...l},u)=>{const d=Lt(n,"dropdown-item"),[f,m]=Ux({key:t,href:l.href,disabled:r,onClick:s,active:i});return o.jsx(a,{...l,...f,ref:u,className:Ct(e,d,m.isActive&&"active",r&&"disabled")})});Wx.displayName="DropdownItem";const Kx=S.forwardRef(({className:n,bsPrefix:e,as:t="span",...r},s)=>(e=Lt(e,"dropdown-item-text"),o.jsx(t,{ref:s,className:Ct(n,e),...r})));Kx.displayName="DropdownItemText";const RP=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",AP=typeof document<"u",LP=AP||RP?S.useLayoutEffect:S.useEffect,Mf=S.createContext(null);Mf.displayName="InputGroupContext";const vp=S.createContext(null);vp.displayName="NavbarContext";function qx(n,e){return n}function Yx(n,e,t){const r=t?"top-end":"top-start",s=t?"top-start":"top-end",i=t?"bottom-end":"bottom-start",a=t?"bottom-start":"bottom-end",l=t?"right-start":"left-start",u=t?"right-end":"left-end",d=t?"left-start":"right-start",f=t?"left-end":"right-end";let m=n?a:i;return e==="up"?m=n?s:r:e==="end"?m=n?f:d:e==="start"?m=n?u:l:e==="down-centered"?m="bottom":e==="up-centered"&&(m="top"),m}const Xx=S.forwardRef(({bsPrefix:n,className:e,align:t,rootCloseEvent:r,flip:s=!0,show:i,renderOnMount:a,as:l="div",popperConfig:u,variant:d,...f},m)=>{let p=!1;const y=S.useContext(vp),v=Lt(n,"dropdown-menu"),{align:x,drop:b,isRTL:E}=S.useContext(yp);t=t||x;const T=S.useContext(Mf),w=[];if(t)if(typeof t=="object"){const $=Object.keys(t);if($.length){const z=$[0],W=t[z];p=W==="start",w.push(`${v}-${z}-${W}`)}}else t==="end"&&(p=!0);const R=Yx(p,b,E),[I,{hasShown:L,popper:N,show:_,toggle:j}]=_x({flip:s,rootCloseEvent:r,show:i,usePopper:!y&&w.length===0,offset:[0,2],popperConfig:u,placement:R});if(I.ref=Pf(qx(m),I.ref),LP(()=>{_&&(N==null||N.update())},[_]),!L&&!a&&!T)return null;typeof l!="string"&&(I.show=_,I.close=()=>j==null?void 0:j(!1),I.align=t);let F=f.style;return N!=null&&N.placement&&(F={...f.style,...I.style},f["x-placement"]=N.placement),o.jsx(l,{...f,...I,style:F,...(w.length||y)&&{"data-bs-popper":"static"},className:Ct(e,v,_&&"show",p&&`${v}-end`,d&&`${v}-${d}`,...w)})});Xx.displayName="DropdownMenu";const Zx=S.forwardRef(({bsPrefix:n,split:e,className:t,childBsPrefix:r,as:s=Je,...i},a)=>{const l=Lt(n,"dropdown-toggle"),u=S.useContext(_f);r!==void 0&&(i.bsPrefix=r);const[d]=$x();return d.ref=Pf(d.ref,qx(a)),o.jsx(s,{className:Ct(t,l,e&&`${l}-split`,(u==null?void 0:u.show)&&"show"),...d,...i})});Zx.displayName="DropdownToggle";const Qx=S.forwardRef((n,e)=>{const{bsPrefix:t,drop:r="down",show:s,className:i,align:a="start",onSelect:l,onToggle:u,focusFirstItemOnShow:d,as:f="div",navbar:m,autoClose:p=!0,...y}=Lf(n,{show:"onToggle"}),v=S.useContext(Mf),x=Lt(t,"dropdown"),b=sp(),E=N=>p===!1?N==="click":p==="inside"?N!=="rootClose":p==="outside"?N!=="select":!0,T=Bo((N,_)=>{var j;!((j=_.originalEvent)==null||(j=j.target)==null)&&j.classList.contains("dropdown-toggle")&&_.source==="mousedown"||(_.originalEvent.currentTarget===document&&(_.source!=="keydown"||_.originalEvent.key==="Escape")&&(_.source="rootClose"),E(_.source)&&(u==null||u(N,_)))}),R=Yx(a==="end",r,b),I=S.useMemo(()=>({align:a,drop:r,isRTL:b}),[a,r,b]),L={down:x,"down-centered":`${x}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return o.jsx(yp.Provider,{value:I,children:o.jsx(au,{placement:R,show:s,onSelect:l,onToggle:T,focusFirstItemOnShow:d,itemSelector:`.${x}-item:not(.disabled):not(:disabled)`,children:v?y.children:o.jsx(f,{...y,ref:e,className:Ct(i,s&&"show",
861L[r])})})})});Qx.displayName="Dropdown";const bt=Object.assign(Qx,{Toggle:Zx,Menu:Xx,Item:Wx,ItemText:Kx,Divider:Gx,Header:Hx});ct.string,ct.bool,ct.bool,ct.bool,ct.bool;const Ts=S.forwardRef(({bsPrefix:n,className:e,fluid:t=!1,rounded:r=!1,roundedCircle:s=!1,thumbnail:i=!1,...a},l)=>(n=Lt(n,"img"),o.jsx("img",{ref:l,...a,className:Ct(e,t&&`${n}-fluid`,r&&"rounded",s&&"rounded-circle",i&&`${n}-thumbnail`)})));Ts.displayName="Image";const NP={type:ct.string,tooltip:ct.bool,as:ct.elementType},Ff=S.forwardRef(({as:n="div",className:e,type:t="valid",tooltip:r=!1,...s},i)=>o.jsx(n,{...s,ref:i,className:Ct(e,`${t}-${r?"tooltip":"feedback"}`)}));Ff.displayName="Feedback";Ff.propTypes=NP;const Xs=S.createContext({}),ou=S.forwardRef(({id:n,bsPrefix:e,className:t,type:r="checkbox",isValid:s=!1,isInvalid:i=!1,as:a="input",...l},u)=>{const{controlId:d}=S.useContext(Xs);return e=Lt(e,"form-check-input"),o.jsx(a,{...l,ref:u,type:r,id:n||d,className:Ct(t,e,s&&"is-valid",i&&"is-invalid")})});ou.displayName="FormCheckInput";const Z1=S.forwardRef(({bsPrefix:n,className:e,htmlFor:t,...r},s)=>{const{controlId:i}=S.useContext(Xs);return n=Lt(n,"form-check-label"),o.jsx("label",{...r,ref:s,htmlFor:t||i,className:Ct(e,n)})});Z1.displayName="FormCheckLabel";const Jx=S.forwardRef(({id:n,bsPrefix:e,bsSwitchPrefix:t,inline:r=!1,reverse:s=!1,disabled:i=!1,isValid:a=!1,isInvalid:l=!1,feedbackTooltip:u=!1,feedback:d,feedbackType:f,className:m,style:p,title:y="",type:v="checkbox",label:x,children:b,as:E="input",...T},w)=>{e=Lt(e,"form-check"),t=Lt(t,"form-switch");const{controlId:R}=S.useContext(Xs),I=S.useMemo(()=>({controlId:n||R}),[R,n]),L=!b&&x!=null&&x!==!1||VN(b,Z1),N=o.jsx(ou,{...T,type:v==="switch"?"checkbox":v,ref:w,isValid:a,isInvalid:l,disabled:i,as:E});return o.jsx(Xs.Provider,{value:I,children:o.jsx("div",{style:p,className:Ct(m,L&&e,r&&`${e}-inline`,s&&`${e}-reverse`,v==="switch"&&t),children:b||o.jsxs(o.Fragment,{children:[N,L&&o.jsx(Z1,{title:y,children:x}),d&&o.jsx(Ff,{type:f,tooltip:u,children:d})]})})})});Jx.displayName="FormCheck";const Q1=Object.assign(Jx,{Input:ou,Label:Z1}),eC=S.forwardRef(({bsPrefix:n,type:e,size:t,htmlSize:r,id:s,className:i,isValid:a=!1,isInvalid:l=!1,plaintext:u,readOnly:d,as:f="input",...m},p)=>{const{controlId:y}=S.useContext(Xs);return n=Lt(n,"form-control"),o.jsx(f,{...m,type:e,size:r,ref:p,readOnly:d,id:s||y,className:Ct(i,u?`${n}-plaintext`:n,t&&`${n}-${t}`,e==="color"&&`${n}-color`,a&&"is-valid",l&&"is-invalid")})});eC.displayName="FormControl";const kP=Object.assign(eC,{Feedback:Ff}),tC=S.forwardRef(({className:n,bsPrefix:e,as:t="div",...r},s)=>(e=Lt(e,"form-floating"),o.jsx(t,{ref:s,className:Ct(n,e),...r})));tC.displayName="FormFloating";const xp=S.forwardRef(({controlId:n,as:e="div",...t},r)=>{const s=S.useMemo(()=>({controlId:n}),[n]);return o.jsx(Xs.Provider,{value:s,children:o.jsx(e,{...t,ref:r})})});xp.displayName="FormGroup";const nC=S.forwardRef(({as:n="label",bsPrefix:e,column:t=!1,visuallyHidden:r=!1,className:s,htmlFor:i,...a},l)=>{const{controlId:u}=S.useContext(Xs);e=Lt(e,"form-label");let d="col-form-label";typeof t=="string"&&(d=`${d} ${d}-${t}`);const f=Ct(s,e,r&&"visually-hidden",t&&d);return i=i||u,t?o.jsx(bx,{ref:l,as:"label",className:f,htmlFor:i,...a}):o.jsx(n,{ref:l,className:f,htmlFor:i,...a})});nC.displayName="FormLabel";const rC=S.forwardRef(({bsPrefix:n,className:e,id:t,...r},s)=>{const{controlId:i}=S.useContext(Xs);return n=Lt(n,"form-range"),o.jsx("input",{...r,type:"range",ref:s,className:Ct(e,n),id:t||i})});rC.displayName="FormRange";const sC=S.forwardRef(({bsPrefix:n,size:e,htmlSize:t,className:r,isValid:s=!1,isInvalid:i=!1,id:a,...l},u)=>{const{controlId:d}=S.useContext(Xs);return n=Lt(n,"form-select"),o.jsx("select",{...l,size:t,ref:u,className:Ct(r,n,e&&`${n}-${e}`,s&&"is-valid",i&&"is-invalid"),id:a||d})});sC.displayName="FormSelect";const iC=S.forwardRef(({bsPrefix:n,className:e,as:t="small",muted:r,...s},i)=>(n=Lt(n,"form-text"),o.jsx(t,{...s,ref:i,className:Ct(e,n,r&&"text-muted")})));iC.displayName="FormText";const aC=S.forwardRef((n,e)=>o.jsx(Q1,{...n,ref:e,type:"switch"}));aC.displayName="Switch";const PP=Object.assign(aC,{Input:Q1.Input,Label:Q1.Label}),oC=S.forwardRef(({bsPrefix:n,className:e,children:t,controlId:r,label:s,...i},a)=>(n=Lt(n,"form-floating"),o.jsxs(xp,{ref:a,className:Ct(e,n),controlId:r,...i,children:[t,o.jsx("label",{htmlFor:r,children:s})]})));oC.displayName="FloatingLabel";const _P={_ref:ct.any,validated:ct.bool,as:ct.elementType},Cp=S.forwardRef(({className:n,validated:e,as:t="form",...r},s)=>o.jsx(t,{...r,ref:s,className:Ct(n,e&&"was-validated")}));Cp.displayName="Form";Cp.propTypes=_P;const et=Object.assign(Cp,{Group:xp,Control:kP,Floating:tC,Check:Q1,Switch:PP,Label:nC,Text:iC,Range:rC,Select:sC,FloatingLabel:oC}),$f=S.forwardRef(({className:n,bsPrefix:e,as:t="span",...r},s)=>
861(e=Lt(e,"input-group-text"),o.jsx(t,{ref:s,className:Ct(n,e),...r})));$f.displayName="InputGroupText";const OP=n=>o.jsx($f,{children:o.jsx(ou,{type:"checkbox",...n})}),DP=n=>o.jsx($f,{children:o.jsx(ou,{type:"radio",...n})}),lC=S.forwardRef(({bsPrefix:n,size:e,hasValidation:t,className:r,as:s="div",...i},a)=>{n=Lt(n,"input-group");const l=S.useMemo(()=>({}),[]);return o.jsx(Mf.Provider,{value:l,children:o.jsx(s,{ref:a,...i,className:Ct(r,n,e&&`${n}-${e}`,t&&"has-validation")})})});lC.displayName="InputGroup";const Ac=Object.assign(lC,{Text:$f,Radio:DP,Checkbox:OP}),ug=n=>!n||typeof n=="function"?n:e=>{n.current=e};function jP(n,e){const t=ug(n),r=ug(e);return s=>{t&&t(s),r&&r(s)}}function Bf(n,e){return S.useMemo(()=>jP(n,e),[n,e])}const tl=S.createContext(null),MP=["as","active","eventKey"];function FP(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function cC({key:n,onClick:e,active:t,id:r,role:s,disabled:i}){const a=S.useContext(Ys),l=S.useContext(Df),u=S.useContext(tl);let d=t;const f={role:s};if(l){!s&&l.role==="tablist"&&(f.role="tab");const m=l.getControllerId(n??null),p=l.getControlledId(n??null);f[el("event-key")]=n,f.id=m||r,d=t==null&&n!=null?l.activeKey===n:t,(d||!(u!=null&&u.unmountOnExit)&&!(u!=null&&u.mountOnEnter))&&(f["aria-controls"]=p)}return f.role==="tab"&&(f["aria-selected"]=d,d||(f.tabIndex=-1),i&&(f.tabIndex=-1,f["aria-disabled"]=!0)),f.onClick=Bn(m=>{i||(e==null||e(m),n!=null&&a&&!m.isPropagationStopped()&&a(n,m))}),[f,{isActive:d}]}const uC=S.forwardRef((n,e)=>{let{as:t=lp,active:r,eventKey:s}=n,i=FP(n,MP);const[a,l]=cC(Object.assign({key:ka(s,i.href),active:r},i));return a[el("active")]=l.isActive,o.jsx(t,Object.assign({},i,a,{ref:e}))});uC.displayName="NavItem";const $P=["as","onSelect","activeKey","role","onKeyDown"];function BP(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}const dg=()=>{},fg=el("event-key"),dC=S.forwardRef((n,e)=>{let{as:t="div",onSelect:r,activeKey:s,role:i,onKeyDown:a}=n,l=BP(n,$P);const u=Ex(),d=S.useRef(!1),f=S.useContext(Ys),m=S.useContext(tl);let p,y;m&&(i=i||"tablist",s=m.activeKey,p=m.getControlledId,y=m.getControllerId);const v=S.useRef(null),x=w=>{const R=v.current;if(!R)return null;const I=Us(R,`[${fg}]:not([aria-disabled=true])`),L=R.querySelector("[aria-selected=true]");if(!L||L!==document.activeElement)return null;const N=I.indexOf(L);if(N===-1)return null;let _=N+w;return _>=I.length&&(_=0),_<0&&(_=I.length-1),I[_]},b=(w,R)=>{w!=null&&(r==null||r(w,R),f==null||f(w,R))},E=w=>{if(a==null||a(w),!m)return;let R;switch(w.key){case"ArrowLeft":case"ArrowUp":R=x(-1);break;case"ArrowRight":case"ArrowDown":R=x(1);break;default:return}R&&(w.preventDefault(),b(R.dataset[wP("EventKey")]||null,w),d.current=!0,u())};S.useEffect(()=>{if(v.current&&d.current){const w=v.current.querySelector(`[${fg}][aria-selected=true]`);w==null||w.focus()}d.current=!1});const T=Bf(e,v);return o.jsx(Ys.Provider,{value:b,children:o.jsx(Df.Provider,{value:{role:i,activeKey:ka(s),getControlledId:p||dg,getControllerId:y||dg},children:o.jsx(t,Object.assign({},l,{onKeyDown:E,ref:T,role:i}))})})});dC.displayName="Nav";const UP=Object.assign(dC,{Item:uC});var Od;function hg(n){if((!Od&&Od!==0||n)&&Jo){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),Od=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Od}function VP(){return S.useState(null)}function u0(n){n===void 0&&(n=nu());try{var e=n.activeElement;return!e||!e.nodeName?null:e}catch{return n.body}}function zP(n){const e=S.useRef(n);return e.current=n,e}function GP(n){const e=zP(n);S.useEffect(()=>()=>e.current(),[])}function HP(n=document){const e=n.defaultView;return Math.abs(e.innerWidth-n.documentElement.clientWidth)}const mg=el("modal-open");class bp{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:r=!1}={}){this.handleContainerOverflow=t,this.isRTL=r,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return HP(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",s=this.getElement();e.style={overflow:s.style.overflow,[r]:s.style[r]},e.scrollBarWidth&&(t[r]=`${parseInt(ba(s,r)||"0",10)+e.scrollBarWidth}px`),s.setAttribute(mg,""),ba(s,t)}
861reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(mg),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return t!==-1||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),t!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),t}remove(e){const t=this.modals.indexOf(e);t!==-1&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}const d0=(n,e)=>Jo?n==null?(e||nu()).body:(typeof n=="function"&&(n=n()),n&&"current"in n&&(n=n.current),n&&("nodeType"in n||n.getBoundingClientRect)?n:null):null;function WP(n,e){const t=jf(),[r,s]=S.useState(()=>d0(n,t==null?void 0:t.document));if(!r){const i=d0(n);i&&s(i)}return S.useEffect(()=>{},[e,r]),S.useEffect(()=>{const i=d0(n);i!==r&&s(i)},[n,r]),r}function Sp({children:n,in:e,onExited:t,mountOnEnter:r,unmountOnExit:s}){const i=S.useRef(null),a=S.useRef(e),l=Bn(t);S.useEffect(()=>{e?a.current=!0:l(i.current)},[e,l]);const u=Bf(i,kf(n)),d=S.cloneElement(n,{ref:u});return e?d:s||!a.current&&r?null:d}const KP=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function qP(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function YP(n){let{onEnter:e,onEntering:t,onEntered:r,onExit:s,onExiting:i,onExited:a,addEndListener:l,children:u}=n,d=qP(n,KP);const f=S.useRef(null),m=Bf(f,kf(u)),p=R=>I=>{R&&f.current&&R(f.current,I)},y=S.useCallback(p(e),[e]),v=S.useCallback(p(t),[t]),x=S.useCallback(p(r),[r]),b=S.useCallback(p(s),[s]),E=S.useCallback(p(i),[i]),T=S.useCallback(p(a),[a]),w=S.useCallback(p(l),[l]);return Object.assign({},d,{nodeRef:f},e&&{onEnter:y},t&&{onEntering:v},r&&{onEntered:x},s&&{onExit:b},i&&{onExiting:E},a&&{onExited:T},l&&{addEndListener:w},{children:typeof u=="function"?(R,I)=>u(R,Object.assign({},I,{ref:m})):S.cloneElement(u,{ref:m})})}const XP=["component"];function ZP(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}const QP=S.forwardRef((n,e)=>{let{component:t}=n,r=ZP(n,XP);const s=YP(r);return o.jsx(t,Object.assign({ref:e},s))});function JP({in:n,onTransition:e}){const t=S.useRef(null),r=S.useRef(!0),s=Bn(e);return W3(()=>{if(!t.current)return;let i=!1;return s({in:n,element:t.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[n,s]),W3(()=>(r.current=!1,()=>{r.current=!0}),[]),t}function e_({children:n,in:e,onExited:t,onEntered:r,transition:s}){const[i,a]=S.useState(!e);e&&i&&a(!1);const l=JP({in:!!e,onTransition:d=>{const f=()=>{d.isStale()||(d.in?r==null||r(d.element,d.initial):(a(!0),t==null||t(d.element)))};Promise.resolve(s(d)).then(f,m=>{throw d.in||a(!0),m})}}),u=Bf(l,kf(n));return i&&!e?null:S.cloneElement(n,{ref:u})}function pg(n,e,t){return n?o.jsx(QP,Object.assign({},t,{component:n})):e?o.jsx(e_,Object.assign({},t,{transition:e})):o.jsx(Sp,Object.assign({},t))}const t_=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function n_(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}let f0;function r_(n){return f0||(f0=new bp({ownerDocument:n==null?void 0:n.document})),f0}function s_(n){const e=jf(),t=n||r_(e),r=S.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>t.add(r.current),remove:()=>t.remove(r.current),isTopModal:()=>t.isTopModal(r.current),setDialogRef:S.useCallback(s=>{r.current.dialog=s},[]),setBackdropRef:S.useCallback(s=>{r.current.backdrop=s},[])})}const fC=S.forwardRef((n,e)=>{let{show:t=!1,role:r="dialog",className:s,style:i,children:a,backdrop:l=!0,keyboard:u=!0,onBackdropClick:d,onEscapeKeyDown:f,transition:m,runTransition:p,backdropTransition:y,runBackdropTransition:v,autoFocus:x=!0,enforceFocus:b=!0,restoreFocus:E=!0,restoreFocusOptions:T,renderDialog:w,renderBackdrop:R=Me=>o.jsx("div",Object.assign({},Me)),manager:I,container:L,onShow:N,onHide:_=()=>{},onExit:j,onExited:F,onExiting:$,onEnter:z,onEntering:W,onEntered:J}=n,oe=n_(n,t_);const ie=jf(),Z=WP(L),X=s_(I),ue=fx(),se=hx(t),[G,ee]=S.useState(!t),Ee=S.useRef(null);S.useImperativeHandle(e,()=>X,[X]),Jo&&!se&&t&&(Ee.current=u0(ie==null?void 0:ie.document)),t&&G&&ee(!1);const Ce=Bn(()=>
861{if(X.add(),le.current=Pi(document,"keydown",Q),ge.current=Pi(document,"focus",()=>setTimeout(me),!0),N&&N(),x){var Me,ke;const Ge=u0((Me=(ke=X.dialog)==null?void 0:ke.ownerDocument)!=null?Me:ie==null?void 0:ie.document);X.dialog&&Ge&&!X1(X.dialog,Ge)&&(Ee.current=Ge,X.dialog.focus())}}),Ae=Bn(()=>{if(X.remove(),le.current==null||le.current(),ge.current==null||ge.current(),E){var Me;(Me=Ee.current)==null||Me.focus==null||Me.focus(T),Ee.current=null}});S.useEffect(()=>{!t||!Z||Ce()},[t,Z,Ce]),S.useEffect(()=>{G&&Ae()},[G,Ae]),GP(()=>{Ae()});const me=Bn(()=>{if(!b||!ue()||!X.isTopModal())return;const Me=u0(ie==null?void 0:ie.document);X.dialog&&Me&&!X1(X.dialog,Me)&&X.dialog.focus()}),ve=Bn(Me=>{Me.target===Me.currentTarget&&(d==null||d(Me),l===!0&&_())}),Q=Bn(Me=>{u&&yN(Me)&&X.isTopModal()&&(f==null||f(Me),Me.defaultPrevented||_())}),ge=S.useRef(),le=S.useRef(),pe=(...Me)=>{ee(!0),F==null||F(...Me)};if(!Z)return null;const Ie=Object.assign({role:r,ref:X.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},oe,{style:i,className:s,tabIndex:-1});let Ne=w?w(Ie):o.jsx("div",Object.assign({},Ie,{children:S.cloneElement(a,{role:"document"})}));Ne=pg(m,p,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!t,onExit:j,onExiting:$,onExited:pe,onEnter:z,onEntering:W,onEntered:J,children:Ne});let Fe=null;return l&&(Fe=R({ref:X.setBackdropRef,onClick:ve}),Fe=pg(y,v,{in:!!t,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Fe})),o.jsx(o.Fragment,{children:Ao.createPortal(o.jsxs(o.Fragment,{children:[Fe,Ne]}),Z)})});fC.displayName="Modal";const i_=Object.assign(fC,{Manager:bp});function a_(n,e){return n.classList?n.classList.contains(e):(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+e+" ")!==-1}function o_(n,e){n.classList?n.classList.add(e):a_(n,e)||(typeof n.className=="string"?n.className=n.className+" "+e:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+e))}function gg(n,e){return n.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function l_(n,e){n.classList?n.classList.remove(e):typeof n.className=="string"?n.className=gg(n.className,e):n.setAttribute("class",gg(n.className&&n.className.baseVal||"",e))}const xo={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class c_ extends bp{adjustAndStore(e,t,r){const s=t.style[e];t.dataset[e]=s,ba(t,{[e]:`${parseFloat(ba(t,e))+r}px`})}restore(e,t){const r=t.dataset[e];r!==void 0&&(delete t.dataset[e],ba(t,{[e]:r}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();if(o_(t,"modal-open"),!e.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";Us(t,xo.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,e.scrollBarWidth)),Us(t,xo.STICKY_CONTENT).forEach(i=>this.adjustAndStore(s,i,-e.scrollBarWidth)),Us(t,xo.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(s,i,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();l_(t,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";Us(t,xo.FIXED_CONTENT).forEach(i=>this.restore(r,i)),Us(t,xo.STICKY_CONTENT).forEach(i=>this.restore(s,i)),Us(t,xo.NAVBAR_TOGGLER).forEach(i=>this.restore(s,i))}}let h0;function u_(n){return h0||(h0=new c_(n)),h0}const hC=S.forwardRef(({className:n,bsPrefix:e,as:t="div",...r},s)=>(e=Lt(e,"modal-body"),o.jsx(t,{ref:s,className:Ct(n,e),...r})));hC.displayName="ModalBody";const mC=S.createContext({onHide(){}}),Ep=S.forwardRef(({bsPrefix:n,className:e,contentClassName:t,centered:r,size:s,fullscreen:i,children:a,scrollable:l,...u},d)=>{n=Lt(n,"modal");const f=`${n}-dialog`,m=typeof i=="string"?`${n}-fullscreen-${i}`:`${n}-fullscreen`;return o.jsx("div",{...u,ref:d,className:Ct(f,e,s&&`${n}-${s}`,r&&`${f}-centered`,l&&`${f}-scrollable`,i&&m),children:o.jsx("div",{className:Ct(`${n}-content`,t),children:a})})});Ep.displayName="ModalDialog";const pC=S.forwardRef(({className:n,bsPrefix:e,as:t="div",...r},s)=>
861(e=Lt(e,"modal-footer"),o.jsx(t,{ref:s,className:Ct(n,e),...r})));pC.displayName="ModalFooter";const gC=S.forwardRef(({closeLabel:n="Close",closeVariant:e,closeButton:t=!1,onHide:r,children:s,...i},a)=>{const l=S.useContext(mC),u=Bo(()=>{l==null||l.onHide(),r==null||r()});return o.jsxs("div",{ref:a,...i,children:[s,t&&o.jsx(cp,{"aria-label":n,variant:e,onClick:u})]})});gC.displayName="AbstractModalHeader";const yC=S.forwardRef(({bsPrefix:n,className:e,closeLabel:t="Close",closeButton:r=!1,...s},i)=>(n=Lt(n,"modal-header"),o.jsx(gC,{ref:i,...s,className:Ct(e,n),closeLabel:t,closeButton:r})));yC.displayName="ModalHeader";const d_=wN("h4"),vC=S.forwardRef(({className:n,bsPrefix:e,as:t=d_,...r},s)=>(e=Lt(e,"modal-title"),o.jsx(t,{ref:s,className:Ct(n,e),...r})));vC.displayName="ModalTitle";function f_(n){return o.jsx(ru,{...n,timeout:null})}function h_(n){return o.jsx(ru,{...n,timeout:null})}const xC=S.forwardRef(({bsPrefix:n,className:e,style:t,dialogClassName:r,contentClassName:s,children:i,dialogAs:a=Ep,"data-bs-theme":l,"aria-labelledby":u,"aria-describedby":d,"aria-label":f,show:m=!1,animation:p=!0,backdrop:y=!0,keyboard:v=!0,onEscapeKeyDown:x,onShow:b,onHide:E,container:T,autoFocus:w=!0,enforceFocus:R=!0,restoreFocus:I=!0,restoreFocusOptions:L,onEntered:N,onExit:_,onExiting:j,onEnter:F,onEntering:$,onExited:z,backdropClassName:W,manager:J,...oe},ie)=>{const[Z,X]=S.useState({}),[ue,se]=S.useState(!1),G=S.useRef(!1),ee=S.useRef(!1),Ee=S.useRef(null),[Ce,Ae]=VP(),me=Pf(ie,Ae),ve=Bo(E),Q=sp();n=Lt(n,"modal");const ge=S.useMemo(()=>({onHide:ve}),[ve]);function le(){return J||u_({isRTL:Q})}function pe(H){if(!Jo)return;const q=le().getScrollbarWidth()>0,re=H.scrollHeight>nu(H).documentElement.clientHeight;X({paddingRight:q&&!re?hg():void 0,paddingLeft:!q&&re?hg():void 0})}const Ie=Bo(()=>{Ce&&pe(Ce.dialog)});px(()=>{Nm(window,"resize",Ie),Ee.current==null||Ee.current()});const Ne=()=>{G.current=!0},Fe=H=>{G.current&&Ce&&H.target===Ce.dialog&&(ee.current=!0),G.current=!1},Me=()=>{se(!0),Ee.current=lx(Ce.dialog,()=>{se(!1)})},ke=H=>{H.target===H.currentTarget&&Me()},Ge=H=>{if(y==="static"){ke(H);return}if(ee.current||H.target!==H.currentTarget){ee.current=!1;return}E==null||E()},K=H=>{v?x==null||x(H):(H.preventDefault(),y==="static"&&Me())},ne=(H,q)=>{H&&pe(H),F==null||F(H,q)},ae=H=>{Ee.current==null||Ee.current(),_==null||_(H)},P=(H,q)=>{$==null||$(H,q),ip(window,"resize",Ie)},D=H=>{H&&(H.style.display=""),z==null||z(H),Nm(window,"resize",Ie)},B=S.useCallback(H=>o.jsx("div",{...H,className:Ct(`${n}-backdrop`,W,!p&&"show")}),[p,W,n]),V={...t,...Z};V.display="block";const Y=H=>o.jsx("div",{role:"dialog",...H,style:V,className:Ct(e,n,ue&&`${n}-static`,!p&&"show"),onClick:y?Ge:void 0,onMouseUp:Fe,"data-bs-theme":l,"aria-label":f,"aria-labelledby":u,"aria-describedby":d,children:o.jsx(a,{...oe,onMouseDown:Ne,className:r,contentClassName:s,children:i})});return o.jsx(mC.Provider,{value:ge,children:o.jsx(i_,{show:m,ref:me,backdrop:y,container:T,keyboard:!0,autoFocus:w,enforceFocus:R,restoreFocus:I,restoreFocusOptions:L,onEscapeKeyDown:K,onShow:b,onHide:E,onEnter:ne,onEntering:P,onEntered:N,onExit:ae,onExiting:j,onExited:D,manager:le(),transition:p?f_:void 0,backdropTransition:p?h_:void 0,renderBackdrop:B,renderDialog:Y})})});xC.displayName="Modal";const ut=Object.assign(xC,{Body:hC,Header:yC,Title:vC,Footer:pC,Dialog:Ep,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),wp=S.forwardRef(({className:n,bsPrefix:e,as:t="div",...r},s)=>(e=Lt(e,"nav-item"),o.jsx(t,{ref:s,className:Ct(n,e),...r})));wp.displayName="NavItem";const Tp=S.forwardRef(({bsPrefix:n,className:e,as:t=Tc,active:r,eventKey:s,disabled:i=!1,...a},l)=>{n=Lt(n,"nav-link");const[u,d]=cC({key:ka(s,a.href),active:r,disabled:i,...a});return o.jsx(t,{...a,...u,ref:l,disabled:i,className:Ct(e,n,i&&"disabled",d.isActive&&"active")})});Tp.displayName="NavLink";const CC=S.forwardRef((n,e)=>{const{as:t="div",bsPrefix:r,variant:s,fill:i=!1,justify:a=!1,navbar:l,navbarScroll:u,className:d,activeKey:f,...m}=Lf(n,{activeKey:"onSelect"}),p=Lt(r,"nav");let y,v,x=!1;const b=S.useContext(vp),E=S.useContext(mx);return b?(y=b.bsPrefix,x=l??!0):E&&({cardHeaderBsPrefix:v}=E),o.jsx(UP,{as:t,ref:e,activeKey:f,className:Ct(d,{[p]:!x,[`${y}-nav`]:x,[`${y}-nav-scroll`]:x&&u,[`${v}-${s}`]:!!v,[`${p}-${s}`]:!!s,[`${p}-fill`]:i,[`${p}-justified`]:a}),...m})});CC.displayName="Nav";const m_=Object.assign(CC,{Item:wp,Link:Tp}),Ua=S.forwardRef(({bsPrefix:n,variant:e,animation:t="border",size:r,as:s="div",className:i,...a},l)=>{n=Lt(n,"spinner");const u=`${n}-${t}`;return o.jsx(s,{ref:l,...a,className:Ct(i,u,r&&`${u}-${r}`,e&&`text-${e}`)})});Ua.displayName="Spinner";
861const p_=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],g_=["activeKey","getControlledId","getControllerId"],y_=["as"];function Om(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function bC(n){let{active:e,eventKey:t,mountOnEnter:r,transition:s,unmountOnExit:i,role:a="tabpanel",onEnter:l,onEntering:u,onEntered:d,onExit:f,onExiting:m,onExited:p}=n,y=Om(n,p_);const v=S.useContext(tl);if(!v)return[Object.assign({},y,{role:a}),{eventKey:t,isActive:e,mountOnEnter:r,transition:s,unmountOnExit:i,onEnter:l,onEntering:u,onEntered:d,onExit:f,onExiting:m,onExited:p}];const{activeKey:x,getControlledId:b,getControllerId:E}=v,T=Om(v,g_),w=ka(t);return[Object.assign({},y,{role:a,id:b(t),"aria-labelledby":E(t)}),{eventKey:t,isActive:e==null&&w!=null?ka(x)===w:e,transition:s||T.transition,mountOnEnter:r??T.mountOnEnter,unmountOnExit:i??T.unmountOnExit,onEnter:l,onEntering:u,onEntered:d,onExit:f,onExiting:m,onExited:p}]}const SC=S.forwardRef((n,e)=>{let{as:t="div"}=n,r=Om(n,y_);const[s,{isActive:i,onEnter:a,onEntering:l,onEntered:u,onExit:d,onExiting:f,onExited:m,mountOnEnter:p,unmountOnExit:y,transition:v=Sp}]=bC(r);return o.jsx(tl.Provider,{value:null,children:o.jsx(Ys.Provider,{value:null,children:o.jsx(v,{in:i,onEnter:a,onEntering:l,onEntered:u,onExit:d,onExiting:f,onExited:m,mountOnEnter:p,unmountOnExit:y,children:o.jsx(t,Object.assign({},s,{ref:e,hidden:!i,"aria-hidden":!i}))})})})});SC.displayName="TabPanel";const Ip=n=>{const{id:e,generateChildId:t,onSelect:r,activeKey:s,defaultActiveKey:i,transition:a,mountOnEnter:l,unmountOnExit:u,children:d}=n,[f,m]=Sx(s,i,r),p=Mx(e),y=S.useMemo(()=>t||((x,b)=>p?`${p}-${b}-${x}`:null),[p,t]),v=S.useMemo(()=>({onSelect:m,activeKey:f,transition:a,mountOnEnter:l||!1,unmountOnExit:u||!1,getControlledId:x=>y(x,"tabpane"),getControllerId:x=>y(x,"tab")}),[m,f,a,l,u,y]);return o.jsx(tl.Provider,{value:v,children:o.jsx(Ys.Provider,{value:m||null,children:d})})};Ip.Panel=SC;function Rp(n){return typeof n=="boolean"?n?ru:Sp:n}const EC=({transition:n,...e})=>o.jsx(Ip,{...e,transition:Rp(n)});EC.displayName="TabContainer";const Ap=S.forwardRef(({className:n,bsPrefix:e,as:t="div",...r},s)=>(e=Lt(e,"tab-content"),o.jsx(t,{ref:s,className:Ct(n,e),...r})));Ap.displayName="TabContent";const Lp=S.forwardRef(({bsPrefix:n,transition:e,...t},r)=>{const[{className:s,as:i="div",...a},{isActive:l,onEnter:u,onEntering:d,onEntered:f,onExit:m,onExiting:p,onExited:y,mountOnEnter:v,unmountOnExit:x,transition:b=ru}]=bC({...t,transition:Rp(e)}),E=Lt(n,"tab-pane");return o.jsx(tl.Provider,{value:null,children:o.jsx(Ys.Provider,{value:null,children:o.jsx(b,{in:l,onEnter:u,onEntering:d,onEntered:f,onExit:m,onExiting:p,onExited:y,mountOnEnter:v,unmountOnExit:x,children:o.jsx(i,{...a,ref:r,className:Ct(s,E,l&&"active")})})})})});Lp.displayName="TabPane";const v_={eventKey:ct.oneOfType([ct.string,ct.number]),title:ct.node.isRequired,disabled:ct.bool,tabClassName:ct.string,tabAttrs:ct.object},wC=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};wC.propTypes=v_;const $n=Object.assign(wC,{Container:EC,Content:Ap,Pane:Lp});function x_(n){let e;return xx(n,t=>{e==null&&(e=t.props.eventKey)}),e}function C_(n){const{title:e,eventKey:t,disabled:r,tabClassName:s,tabAttrs:i,id:a}=n.props;return e==null?null:o.jsx(wp,{as:"li",role:"presentation",children:o.jsx(Tp,{as:"button",type:"button",eventKey:t,disabled:r,id:a,className:s,...i,children:e})})}const Uf=n=>{const{id:e,onSelect:t,transition:r,mountOnEnter:s=!1,unmountOnExit:i=!1,variant:a="tabs",children:l,activeKey:u=x_(l),...d}=Lf(n,{activeKey:"onSelect"});return o.jsxs(Ip,{id:e,activeKey:u,onSelect:t,transition:Rp(r),mountOnEnter:s,unmountOnExit:i,children:[o.jsx(m_,{id:e,...d,role:"tablist",as:"ul",variant:a,children:q1(l,C_)}),o.jsx(Ap,{children:q1(l,f=>{const m={...f.props};return delete m.title,delete m.disabled,delete m.tabClassName,delete m.tabAttrs,o.jsx(Lp,{...m})})})]})};Uf.displayName="Tabs";var Dd={exports:{}},jd={exports:{}},Md={exports:{}}
861,Fd={exports:{}},yg;function b_(){return yg||(yg=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});var t={overlay:function(s){return{position:"fixed",zIndex:1e3,width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.3)",opacity:s?1:0,MozTransform:s?"":"translate3d(100%, 0, 0)",MsTransform:s?"":"translate3d(100%, 0, 0)",OTransform:s?"":"translate3d(100%, 0, 0)",WebkitTransform:s?"":"translate3d(100%, 0, 0)",transform:s?"":"translate3d(100%, 0, 0)",transition:s?"opacity 0.3s":"opacity 0.3s, transform 0s 0.3s"}},menuWrap:function(s,i,a){return{position:"fixed",right:a?0:"inherit",zIndex:1100,width:i,height:"100%",MozTransform:s?"":a?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",MsTransform:s?"":a?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",OTransform:s?"":a?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",WebkitTransform:s?"":a?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transform:s?"":a?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transition:"all 0.5s"}},menu:function(){return{height:"100%",boxSizing:"border-box",overflow:"auto"}},itemList:function(){return{height:"100%"}},item:function(){return{display:"block"}}};e.default=t,n.exports=e.default})(Fd,Fd.exports)),Fd.exports}var us={},vg;function S_(){if(vg)return us;vg=1,Object.defineProperty(us,"__esModule",{value:!0}),us.focusOnFirstMenuItem=n,us.focusOnLastMenuItem=e,us.focusOnCrossButton=t,us.focusOnMenuButton=r,us.focusOnMenuItem=s,us.focusOnNextMenuItem=i,us.focusOnPreviousMenuItem=a;function n(){var l=Array.from(document.getElementsByClassName("bm-item")).shift();l&&l.focus()}function e(){var l=Array.from(document.getElementsByClassName("bm-item")).pop();l&&l.focus()}function t(){var l=document.getElementById("react-burger-cross-btn");l&&l.focus()}function r(){var l=document.getElementById("react-burger-menu-btn");l&&l.focus()}function s(l){if(document.activeElement.className.includes("bm-item")){var u=document.activeElement[l];u?u.focus():t()}else l==="previousElementSibling"?e():n()}function i(){s("nextElementSibling")}function a(){s("previousElementSibling")}return us}var $d={exports:{}},xg;function E_(){return xg||(xg=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(y){for(var v=1;v<arguments.length;v++){var x=arguments[v];for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&(y[b]=x[b])}return y},r=(function(){function y(v,x){for(var b=0;b<x.length;b++){var E=x[b];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(v,E.key,E)}}return function(v,x,b){return x&&y(v.prototype,x),b&&y(v,b),v}})(),s=function(v,x,b){var E=!0;e:for(;E;){var T=v,w=x,R=b;E=!1,T===null&&(T=Function.prototype);var I=Object.getOwnPropertyDescriptor(T,w);if(I===void 0){var L=Object.getPrototypeOf(T);if(L===null)return;v=L,x=w,b=R,E=!0,I=L=void 0;continue e}else{if("value"in I)return I.value;var N=I.get;return N===void 0?void 0:N.call(R)}}};function i(y){return y&&y.__esModule?y:{default:y}}function a(y,v){if(!(y instanceof v))throw new TypeError("Cannot call a class as a function")}function l(y,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);y.prototype=Object.create(v&&v.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(y,v):y.__proto__=v)}var u=Xo(),d=i(u),f=Nf(),m=i(f),p=(function(y){l(v,y);function v(x){a(this,v),s(Object.getPrototypeOf(v.prototype),"constructor",this).call(this,x),this.state={hover:!1}}return r(v,[{key:"getLineStyle",value:function(b){return t({position:"absolute",height:"20%",left:0,right:0,top:20*(b*2)+"%",opacity:this.state.hover?.6:1},this.state.hover&&this.props.styles.bmBurgerBarsHover)}},{key:"render",value:function(){var b=this,E=void 0,T={position:"absolute",left:0,top:0,zIndex:1,width:"100%",height:"100%",margin:0,padding:0,border:"none",fontSize:0,background:"transparent",cursor:"pointer"};if(this.props.customIcon){var w={className:("bm-icon "+(this.props.customIcon.props.className||"")).trim(),style:t({width:"100%",height:"100%"},this.props.styles.bmIcon)};E=d.default.cloneElement(this.props.customIcon,w)}else E=d.default.createElement("span",null,[0,1,2].map(function(R){return d.default.createElement("span",{key:R,className:("bm-burger-bars "+b.props.barClassName+" "+(b.state.hover?"bm-burger-bars-hover":"")).trim(),style:t({},b.getLineStyle(R),b.props.styles.bmBurgerBars)})}));return d.default.createElement("div",{className:("bm-burger-button "+this.props.className).trim(),style:t({zIndex:1e3},this.props.styles.bmBurgerButton)},d.default.createElement("button",{type:"button",id:"react-burger-menu
861-btn",onClick:this.props.onClick,onMouseOver:function(){b.setState({hover:!0}),b.props.onIconHoverChange&&b.props.onIconHoverChange({isMouseIn:!0})},onMouseOut:function(){b.setState({hover:!1}),b.props.onIconHoverChange&&b.props.onIconHoverChange({isMouseIn:!1})},style:T},"Open Menu"),E)}}]),v})(u.Component);e.default=p,p.propTypes={barClassName:m.default.string,customIcon:m.default.element,styles:m.default.object},p.defaultProps={barClassName:"",className:"",styles:{}},n.exports=e.default})($d,$d.exports)),$d.exports}var Bd={exports:{}},Cg;function w_(){return Cg||(Cg=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(y){for(var v=1;v<arguments.length;v++){var x=arguments[v];for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&(y[b]=x[b])}return y},r=(function(){function y(v,x){for(var b=0;b<x.length;b++){var E=x[b];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(v,E.key,E)}}return function(v,x,b){return x&&y(v.prototype,x),b&&y(v,b),v}})(),s=function(v,x,b){var E=!0;e:for(;E;){var T=v,w=x,R=b;E=!1,T===null&&(T=Function.prototype);var I=Object.getOwnPropertyDescriptor(T,w);if(I===void 0){var L=Object.getPrototypeOf(T);if(L===null)return;v=L,x=w,b=R,E=!0,I=L=void 0;continue e}else{if("value"in I)return I.value;var N=I.get;return N===void 0?void 0:N.call(R)}}};function i(y){return y&&y.__esModule?y:{default:y}}function a(y,v){if(!(y instanceof v))throw new TypeError("Cannot call a class as a function")}function l(y,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);y.prototype=Object.create(v&&v.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(y,v):y.__proto__=v)}var u=Xo(),d=i(u),f=Nf(),m=i(f),p=(function(y){l(v,y);function v(){a(this,v),s(Object.getPrototypeOf(v.prototype),"constructor",this).apply(this,arguments)}return r(v,[{key:"getCrossStyle",value:function(b){return{position:"absolute",width:3,height:14,transform:b==="before"?"rotate(45deg)":"rotate(-45deg)"}}},{key:"render",value:function(){var b=this,E,T={position:"absolute",width:24,height:24,right:8,top:8},w={position:"absolute",left:0,top:0,zIndex:1,width:"100%",height:"100%",margin:0,padding:0,border:"none",fontSize:0,background:"transparent",cursor:"pointer"};if(this.props.customIcon){var R={className:("bm-cross "+(this.props.customIcon.props.className||"")).trim(),style:t({width:"100%",height:"100%"},this.props.styles.bmCross)};E=d.default.cloneElement(this.props.customIcon,R)}else E=d.default.createElement("span",{style:{position:"absolute",top:"6px",right:"14px"}},["before","after"].map(function(I,L){return d.default.createElement("span",{key:L,className:("bm-cross "+b.props.crossClassName).trim(),style:t({},b.getCrossStyle(I),b.props.styles.bmCross)})}));return d.default.createElement("div",{className:("bm-cross-button "+this.props.className).trim(),style:t({},T,this.props.styles.bmCrossButton)},d.default.createElement("button",t({type:"button",id:"react-burger-cross-btn",onClick:this.props.onClick,style:w},!this.props.isOpen&&{tabIndex:-1}),"Close Menu"),E)}}]),v})(u.Component);e.default=p,p.propTypes={crossClassName:m.default.string,customIcon:m.default.element,isOpen:m.default.bool,styles:m.default.object},p.defaultProps={crossClassName:"",className:"",styles:{},isOpen:!1},n.exports=e.default})(Bd,Bd.exports)),Bd.exports}var bg;function Rs(){return bg||(bg=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});var t=(function(){function E(T,w){var R=[],I=!0,L=!1,N=void 0;try{for(var _=T[Symbol.iterator](),j;!(I=(j=_.next()).done)&&(R.push(j.value),!(w&&R.length===w));I=!0);}catch(F){L=!0,N=F}finally{try{!I&&_.return&&_.return()}finally{if(L)throw N}}return R}return function(T,w){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return E(T,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),r=Object.assign||function(E){for(var T=1;T<arguments.length;T++){var w=arguments[T];for(var R in w)Object.prototype.hasOwnProperty.call(w,R)&&(E[R]=w[R])}return E};function s(E){return E&&E.__esModule?E:{default:E}
861}var i=Xo(),a=s(i),l=q5();s(l);var u=Nf(),d=s(u),f=b_(),m=s(f),p=S_(),y=E_(),v=s(y),x=w_(),b=s(x);e.default=function(E){if(!E)throw new Error("No styles supplied");var T="ArrowDown",w="ArrowUp",R="Escape",I=" ",L="Home",N="End";function _(F){var $=a.default.useRef(F);return a.default.useEffect(function(){$.current=F}),$.current}var j=function($){var z={bodyClassName:"",burgerBarClassName:"",burgerButtonClassName:"",className:"",crossButtonClassName:"",crossClassName:"",disableAutoFocus:!1,disableCloseOnEsc:!1,htmlClassName:"",id:"",itemClassName:"",itemListClassName:"",menuClassName:"",morphShapeClassName:"",noOverlay:!1,noTransition:!1,onStateChange:function(){},outerContainerId:"",overlayClassName:"",pageWrapId:"",styles:{},width:300,onIconHoverChange:function(){},itemListElement:"nav"};$=r({},z,$);var W=a.default.useState(!1),J=t(W,2),oe=J[0],ie=J[1],Z=a.default.useRef(),X=a.default.useRef({}),ue=_($.isOpen);a.default.useEffect(function(){return $.isOpen&&se({isOpen:!0,noStateChange:!0}),function(){me(!1),ve()}},[]),a.default.useEffect(function(){var pe=typeof $.isOpen<"u"&&$.isOpen!==oe&&$.isOpen!==ue;if(pe){se();return}E.svg&&(function(){var Ie=document.getElementById("bm-morph-shape"),Ne=E.svg.lib(Ie).select("path");oe?E.svg.animate(Ne):setTimeout(function(){Ne.attr("d",E.svg.pathInitial)},300)})()}),a.default.useEffect(function(){var pe=X.current,Ie=pe.noStateChange,Ne=pe.focusOnLastItem;Ie||$.onStateChange({isOpen:oe}),$.disableAutoFocus||(oe?Ne?(0,p.focusOnLastMenuItem)():(0,p.focusOnFirstMenuItem)():document.activeElement?document.activeElement.blur():document.body.blur()),ve(),Z.current=setTimeout(function(){Z.current=null,oe||me(!1)},500);var Fe=oe?Q:ge,Me=$.customOnKeyDown||Fe;return window.addEventListener("keydown",Me),function(){window.removeEventListener("keydown",Me)}},[oe]);function se(){var pe=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];X.current=pe,me(),setTimeout(function(){ie(function(Ie){return typeof pe.isOpen<"u"?pe.isOpen:!Ie})})}function G(){typeof $.onOpen=="function"?$.onOpen():se()}function ee(){typeof $.onClose=="function"?$.onClose():se()}function Ee(pe,Ie){var Ne=$,Fe=Ne.width,Me=Ne.right,ke=typeof Fe!="string"?Fe+"px":Fe;return pe(oe,ke,Me,Ie)}function Ce(pe,Ie,Ne){var Fe="bm"+pe.replace(pe.charAt(0),pe.charAt(0).toUpperCase()),Me=m.default[pe]?Ee(m.default[pe]):{};return E[pe]&&(Me=r({},Me,Ee(E[pe],Ie+1))),$.styles[Fe]&&(Me=r({},Me,$.styles[Fe])),Ne&&(Me=r({},Me,Ne)),$.noTransition&&delete Me.transition,Me}function Ae(pe,Ie,Ne){var Fe=document.getElementById(pe);
861if(!Fe){console.error("Element with ID '"+pe+"' not found");return}var Me=Ee(Ie);for(var ke in Me)Me.hasOwnProperty(ke)&&(Fe.style[ke]=Ne?Me[ke]:"");var Ge=function(ne){return ne.style["overflow-x"]=Ne?"hidden":""};$.htmlClassName||Ge(document.querySelector("html")),$.bodyClassName||Ge(document.querySelector("body"))}function me(){var pe=arguments.length<=0||arguments[0]===void 0?!0:arguments[0],Ie=function(Me,ke){return Me.classList[pe?"add":"remove"](ke)};$.htmlClassName&&Ie(document.querySelector("html"),$.htmlClassName),$.bodyClassName&&Ie(document.querySelector("body"),$.bodyClassName),E.pageWrap&&$.pageWrapId&&Ae($.pageWrapId,E.pageWrap,pe),E.outerContainer&&$.outerContainerId&&Ae($.outerContainerId,E.outerContainer,pe);var Ne=document.querySelector(".bm-menu-wrap");Ne&&(pe?Ne.removeAttribute("hidden"):Ne.setAttribute("hidden",!0))}function ve(){Z.current&&clearTimeout(Z.current)}function Q(pe){switch(pe=pe||window.event,pe.key){case R:$.disableCloseOnEsc||(ee(),(0,p.focusOnMenuButton)());break;case T:(0,p.focusOnNextMenuItem)();break;case w:(0,p.focusOnPreviousMenuItem)();break;case L:(0,p.focusOnFirstMenuItem)();break;case N:(0,p.focusOnLastMenuItem)();break}}function ge(pe){if(pe=pe||window.event,pe.target===document.getElementById("react-burger-menu-btn"))switch(pe.key){case T:case I:se();break;case w:se({focusOnLastItem:!0});break}}function le(){$.disableOverlayClick===!0||typeof $.disableOverlayClick=="function"&&$.disableOverlayClick()||ee()}return a.default.createElement("div",null,!$.noOverlay&&a.default.createElement("div",{className:("bm-overlay "+$.overlayClassName).trim(),onClick:le,style:Ce("overlay")}),$.customBurgerIcon!==!1&&a.default.createElement("div",{style:Ce("burgerIcon")},a.default.createElement(v.default,{onClick:G,styles:$.styles,customIcon:$.customBurgerIcon,className:$.burgerButtonClassName,barClassName:$.burgerBarClassName,onIconStateChange:$.onIconStateChange})),a.default.createElement("div",{id:$.id,className:("bm-menu-wrap "+$.className).trim(),style:Ce("menuWrap"),"aria-hidden":!oe},E.svg&&a.default.createElement("div",{id:"bm-morph-shape",className:("bm-morph-shape "+$.morphShapeClassName).trim(),style:Ce("morphShape")},a.default.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 100 800",preserveAspectRatio:"none"},a.default.createElement("path",{d:E.svg.pathInitial}))),a.default.createElement("div",{className:("bm-menu "+$.menuClassName).trim(),style:Ce("menu")},a.default.createElement($.itemListElement,{className:("bm-item-list "+$.itemListClassName).trim(),style:Ce("itemList")},a.default.Children.map($.children,function(pe,Ie){if(pe){var Ne=["bm-item",$.itemClassName,pe.props.className].filter(function(Me){return!!Me}).join(" "),Fe=r({key:Ie,className:Ne,style:Ce("item",Ie,pe.props.style)},!oe&&{tabIndex:-1});return a.default.cloneElement(pe,Fe)}}))),$.customCrossIcon!==!1&&a.default.createElement("div",{style:Ce("closeButton")},a.default.createElement(b.default,{onClick:ee,styles:$.styles,customIcon:$.customCrossIcon,className:$.crossButtonClassName,crossClassName:$.crossClassName,isOpen:oe}))))};return j.propTypes={bodyClassName:d.default.string,burgerBarClassName:d.default.string,burgerButtonClassName:d.default.string,className:d.default.string,crossButtonClassName:d.default.string,crossClassName:d.default.string,customBurgerIcon:d.default.oneOfType([d.default.element,d.default.oneOf([
861!1])]),customCrossIcon:d.default.oneOfType([d.default.element,d.default.oneOf([!1])]),customOnKeyDown:d.default.func,disableAutoFocus:d.default.bool,disableCloseOnEsc:d.default.bool,disableOverlayClick:d.default.oneOfType([d.default.bool,d.default.func]),htmlClassName:d.default.string,id:d.default.string,isOpen:d.default.bool,itemClassName:d.default.string,itemListClassName:d.default.string,itemListElement:d.default.oneOf(["div","nav"]),menuClassName:d.default.string,morphShapeClassName:d.default.string,noOverlay:d.default.bool,noTransition:d.default.bool,onClose:d.default.func,onIconHoverChange:d.default.func,onOpen:d.default.func,onStateChange:d.default.func,outerContainerId:E&&E.outerContainer?d.default.string.isRequired:d.default.string,overlayClassName:d.default.string,pageWrapId:E&&E.pageWrap?d.default.string.isRequired:d.default.string,right:d.default.bool,styles:d.default.object,width:d.default.oneOfType([d.default.number,d.default.string])},j},n.exports=e.default})(Md,Md.exports)),Md.exports}var Sg;function T_(){return Sg||(Sg=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});function t(a){return a&&a.__esModule?a:{default:a}}var r=Rs(),s=t(r),i={};e.default=(0,s.default)(i),n.exports=e.default})(jd,jd.exports)),jd.exports}var Ud={exports:{}},Eg;function I_(){return Eg||(Eg=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});function t(a){return a&&a.__esModule?a:{default:a}}var r=Rs(),s=t(r),i={menuWrap:function(l,u,d){return{MozTransform:l?"":d?"translate3d("+u+", 0, 0)":"translate3d(-"+u+", 0, 0)",MsTransform:l?"":d?"translate3d("+u+", 0, 0)":"translate3d(-"+u+", 0, 0)",OTransform:l?"":d?"translate3d("+u+", 0, 0)":"translate3d(-"+u+", 0, 0)",WebkitTransform:l?"":d?"translate3d("+u+", 0, 0)":"translate3d(-"+u+", 0, 0)",transform:l?"":d?"translate3d("+u+", 0, 0)":"translate3d(-"+u+", 0, 0)",transition:l?"transform 0.8s cubic-bezier(0.7, 0, 0.3, 1)":"transform 0.4s cubic-bezier(0.7, 0, 0.3, 1)"}},item:function(l,u,d,f){return{MozTransform:l?"":"translate3d(0, "+f*500+"px, 0)",MsTransform:l?"":"translate3d(0, "+f*500+"px, 0)",OTransform:l?"":"translate3d(0, "+f*500+"px, 0)",WebkitTransform:l?"":"translate3d(0, "+f*500+"px, 0)",transform:l?"":"translate3d(0, "+f*500+"px, 0)",transition:l?"transform 0.8s cubic-bezier(0.7, 0, 0.3, 1)":"transform 0s 0.2s cubic-bezier(0.7, 0, 0.3, 1)"}}};e.default=(0,s.default)(i),n.exports=e.default})(Ud,Ud.exports)),Ud.exports}var Vd={exports:{}},zd={exports:{}},k1={exports:{}},R_=k1.exports,wg;function A_(){return wg||(wg=1,(function(n){(function(e){var t="0.5.4",r="hasOwnProperty",s=/[\.\/]/,i=/\s*,\s*/,a="*",l=function(E,T){return E-T},u,d,f={n:{}},m=function(){for(var E=0,T=this.length;E<T;E++)if(typeof this[E]<"u")return this[E]},p=function(){for(var E=this.length;--E;)if(typeof this[E]<"u")return this[E]},y=Object.prototype.toString,v=String,x=Array.isArray||function(E){return E instanceof Array||y.call(E)=="[object Array]"},b=function(E,T){var w=d,R=Array.prototype.slice.call(arguments,2),I=b.listeners(E),L=0,N,_=[],j={},F=[],$=u;F.firstDefined=m,F.lastDefined=p,u=E,d=0;for(var z=0,W=I.length;z<W;z++)"zIndex"in I[z]&&(_.push(I[z].zIndex),I[z].zIndex<0&&(j[I[z].zIndex]=I[z]));for(_.sort(l);_[L]<0;)if(N=j[_[L++]],F.push(N.apply(T,R)),d)return d=w,F;for(z=0;z<W;z++)if(N=I[z],"zIndex"in N)if(N.zIndex==_[L]){if(F.push(N.apply(T,R)),d)break;do if(L++,N=j[_[L]],N&&F.push(N.apply(T,R)),d)break;while(N)}else j[N.zIndex]=N;else if(F.push(N.apply(T,R)),d)break;return d=w,u=$,F};b._events=f,b.listeners=function(E){var T=x(E)?E:E.split(s),w=f,R,I,L,N,_,j,F,$,z=[w],W=[];for(N=0,_=T.length;N<_;N++){for($=[],j=0,F=z.length;j<F;j++)for(w=z[j].n,I=[w[T[N]],w[a]],L=2;L--;)R=I[L],R&&($.push(R),W=W.concat(R.f||[]));z=$}return W},b.separator=function(E){E?(E=v(E).replace(/(?=[\.\^\]\[\-])/g,"\\"),E="["+E+"]",s=new RegExp(E)):s=/[\.\/]/},b.on=function(E,T){if(typeof T!="function")return function(){};for(var w=x(E)?x(E[0])?E:[E]:v(E).split(i),R=0,I=w.length;R<I;R++)(function(L){for(var N=x(L)?L:v(L).split(s),_=f,j,F=0,$=N.length;F<$;F++)_=_.n,_=_.hasOwnProperty(N[F])&&_[N[F]]||(_[N[F]]={n:{}});for(_.f=_.f||[],F=0,$=_.f.length;F<$;F++)if(_.f[F]==T){j=!0;break}!j&&_.f.push(T)})(w[R]);return function(L){+L==+L&&(T.zIndex=+L)}}
861,b.f=function(E){var T=[].slice.call(arguments,1);return function(){b.apply(null,[E,null].concat(T).concat([].slice.call(arguments,0)))}},b.stop=function(){d=1},b.nt=function(E){var T=x(u)?u.join("."):u;return E?new RegExp("(?:\\.|\\/|^)"+E+"(?:\\.|\\/|$)").test(T):T},b.nts=function(){return x(u)?u:u.split(s)},b.off=b.unbind=function(E,T){if(!E){b._events=f={n:{}};return}var w=x(E)?x(E[0])?E:[E]:v(E).split(i);if(w.length>1){for(var N=0,_=w.length;N<_;N++)b.off(w[N],T);return}w=x(E)?E:v(E).split(s);var R,I,L,N,_,j,F,$=[f],z=[];for(N=0,_=w.length;N<_;N++)for(j=0;j<$.length;j+=L.length-2){if(L=[j,1],R=$[j].n,w[N]!=a)R[w[N]]&&(L.push(R[w[N]]),z.unshift({n:R,name:w[N]}));else for(I in R)R[r](I)&&(L.push(R[I]),z.unshift({n:R,name:I}));$.splice.apply($,L)}for(N=0,_=$.length;N<_;N++)for(R=$[N];R.n;){if(T){if(R.f){for(j=0,F=R.f.length;j<F;j++)if(R.f[j]==T){R.f.splice(j,1);break}!R.f.length&&delete R.f}for(I in R.n)if(R.n[r](I)&&R.n[I].f){var W=R.n[I].f;for(j=0,F=W.length;j<F;j++)if(W[j]==T){W.splice(j,1);break}!W.length&&delete R.n[I].f}}else{delete R.f;for(I in R.n)R.n[r](I)&&R.n[I].f&&delete R.n[I].f}R=R.n}e:for(N=0,_=z.length;N<_;N++){R=z[N];for(I in R.n[R.name].f)continue e;for(I in R.n[R.name].n)continue e;delete R.n[R.name]}},b.once=function(E,T){var w=function(){return b.off(E,w),T.apply(this,arguments)};return b.on(E,w)},b.version=t,b.toString=function(){return"You are running Eve "+t},e.eve=b,n.exports?n.exports=b:e.eve=b})(typeof window<"u"?window:R_)})(k1)),k1.exports}var Gd,Tg;function L_(){if(Tg)return Gd;Tg=1,window.eve=A_();var n=(function(t){var r={},s=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(R){return setTimeout(R,16,new Date().getTime()),!0},i,a=Array.isArray||function(R){return R instanceof Array||Object.prototype.toString.call(R)=="[object Array]"},l=0,u="M"+(+new Date).toString(36),d=function(){return u+(l++).toString(36)},f=Date.now||function(){return+new Date},m=function(R){var I=this;if(R==null)return I.s;var L=I.s-R;I.b+=I.dur*L,I.B+=I.dur*L,I.s=R},p=function(R){var I=this;if(R==null)return I.spd;I.spd=R},y=function(R){var I=this;if(R==null)return I.dur;I.s=I.s*R/I.dur,I.dur=R},v=function(){var R=this;delete r[R.id],R.update(),t("mina.stop."+R.id,R)},x=function(){var R=this;R.pdif||(delete r[R.id],R.update(),R.pdif=R.get()-R.b)},b=function(){var R=this;R.pdif&&(R.b=R.get()-R.pdif,delete R.pdif,r[R.id]=R,T())},E=function(){var R=this,I;if(a(R.start)){I=[];for(var L=0,N=R.start.length;L<N;L++)I[L]=+R.start[L]+(R.end[L]-R.start[L])*R.easing(R.s)}else I=+R.start+(R.end-R.start)*R.easing(R.s);R.set(I)},T=function(R){if(!R){i||(i=s(T));return}var I=0;for(var L in r)if(r.hasOwnProperty(L)){var N=r[L],_=N.get();I++,N.s=(_-N.b)/(N.dur/N.spd),N.s>=1&&(delete r[L],N.s=1,I--,(function(j){setTimeout(function(){t("mina.finish."+j.id,j)})})(N)),N.update()}i=I?s(T):!1},w=function(R,I,L,N,_,j,F){var $={id:d(),start:R,end:I,b:L,s:0,dur:N-L,spd:1,get:_,set:j,easing:F||w.linear,status:m,speed:p,duration:y,stop:v,pause:x,resume:b,update:E};r[$.id]=$;var z=0,W;for(W in r)if(r.hasOwnProperty(W)&&(z++,z==2))break;return z==1&&T(),$};return w.time=f,w.getById=function(R){return r[R]||null},w.linear=function(R){return R},w.easeout=function(R){return Math.pow(R,1.7)},w.easein=function(R){return Math.pow(R,.48)},w.easeinout=function(R){if(R==1)return 1;if(R==0)return 0;var I=.48-R/1.04,L=Math.sqrt(.1734+I*I),N=L-I,_=Math.pow(Math.abs(N),1/3)*(N<0?-1:1),j=-L-I,F=Math.pow(Math.abs(j),1/3)*(j<0?-1:1),$=_+F+.5;return(1-$)*3*$*$+$*$*$},w.backin=function(R){if(R==1)return 1;var I=1.70158;return R*R*((I+1)*R-I)},w.backout=function(R){if(R==0)return 0;R=R-1;var I=1.70158;return R*R*((I+1)*R+I)+1},w.elastic=function(R){return R==!!R?R:Math.pow(2,-10*R)*Math.sin((R-.075)*(2*Math.PI)/.3)+1},w.bounce=function(R){var I=7.5625,L=2.75,N;return R<1/L?N=I*R*R:R<2/L?(R-=1.5/L,N=I*R*R+.75):R<2.5/L?(R-=2.25/L,N=I*R*R+.9375):(R-=2.625/L,N=I*R*R+.984375),N},window.mina=w,w})(typeof eve>"u"?function(){}:eve),e=(function(t){r.version="0.5.1";function r(P,D){if(P){if(P.nodeType)return Ge(P);if(W(P,"array")&&r.set)return r.set.apply(r,P);if(P instanceof Ne)return P;if(D==null)try{return P=s.doc.querySelector(String(P)),Ge(P)}
861catch{return null}}return P=P??"100%",D=D??"100%",new ke(P,D)}r.toString=function(){return"Snap v"+this.version},r._={};var s={win:t.window,doc:t.window.document};r._.glob=s;var i="hasOwnProperty",a=String,l=parseFloat,u=parseInt,d=Math,f=d.max,m=d.min,p=d.abs,y=d.PI,v="",x=Object.prototype.toString,b=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i;r._.separator=/[,\s]+/;var E=/[\s]*,[\s]*/,T={hs:1,rg:1},w=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/ig,R=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/ig,I=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\s]*,?[\s]*/ig,L=0,N="S"+(+new Date).toString(36),_=function(P){return(P&&P.type?P.type:v)+N+(L++).toString(36)},j="http://www.w3.org/1999/xlink",F="http://www.w3.org/2000/svg",$={};r.url=function(P){return"url('#"+P+"')"};function z(P,D){if(D){if(P=="#text"&&(P=s.doc.createTextNode(D.text||D["#text"]||"")),P=="#comment"&&(P=s.doc.createComment(D.text||D["#text"]||"")),typeof P=="string"&&(P=z(P)),typeof D=="str
861ing")return P.nodeType==1?D.substring(0,6)=="xlink:"?P.getAttributeNS(j,D.substring(6)):D.substring(0,4)=="xml:"?P.getAttributeNS(F,D.substring(4)):P.getAttribute(D):D=="text"?P.nodeValue:null;if(P.nodeType==1){for(var B in D)if(D[i](B)){var V=a(D[B]);V?B.substring(0,6)=="xlink:"?P.setAttributeNS(j,B.substring(6),V):B.substring(0,4)=="xml:"?P.setAttributeNS(F,B.substring(4),V):P.setAttribute(B,V):P.removeAttribute(B)}}else"text"in D&&(P.nodeValue=D.text)}else P=s.doc.createElementNS(F,P);return P}r._.$=z,r._.id=_;function W(P,D){return D=a.prototype.toLowerCase.call(D),D=="finite"?isFinite(P):D=="array"&&(P instanceof Array||Array.isArray&&Array.isArray(P))?!0:D=="null"&&P===null||D==typeof P&&P!==null||D=="object"&&P===Object(P)||x.call(P).slice(8,-1).toLowerCase()==D}r.format=(function(){var P=/\{([^\}]+)\}/g,D=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,B=function(V,Y,H){var q=H;return Y.replace(D,function(re,ce,be,Re,we){ce=ce||Re,q&&(ce in q&&(q=q[ce]),typeof q=="function"&&we&&(q=q()))}),q=(q==null||q==H?V:q)+"",q};return function(V,Y){return a(V).replace(P,function(H,q){return B(H,q,Y)})}})();function J(P){if(typeof P=="function"||Object(P)!==P)return P;var D=new P.constructor;for(var B in P)P[i](B)&&(D[B]=J(P[B]));return D}r._.clone=J;function oe(P,D){for(var B=0,V=P.length;B<V;B++)if(P[B]===D)return P.push(P.splice(B,1)[0])}function ie(P,D,B){function V(){var Y=Array.prototype.slice.call(arguments,0),H=Y.join("␀"),q=V.cache=V.cache||{},re=V.count=V.count||[];return q[i](H)?(oe(re,H),B?B(q[H]):q[H]):(re.length>=1e3&&delete q[re.shift()],re.push(H),q[H]=P.apply(D,Y),B?B(q[H]):q[H])}return V}r._.cacher=ie;function Z(P,D,B,V,Y,H){if(Y==null){var q=P-B,re=D-V;return!q&&!re?0:(180+d.atan2(-re,-q)*180/y+360)%360}else return Z(P,D,Y,H)-Z(B,V,Y,H)}function X(P){return P%360*y/180}function ue(P){return P*180/y%360}r.rad=X,r.deg=ue,r.sin=function(P){return d.sin(r.rad(P))},r.tan=function(P){return d.tan(r.rad(P))},r.cos=function(P){return d.cos(r.rad(P))},r.asin=function(P){return r.deg(d.asin(P))},r.acos=function(P){return r.deg(d.acos(P))},r.atan=function(P){return r.deg(d.atan(P))},r.atan2=function(P){return r.deg(d.atan2(P))},r.angle=Z,r.len=function(P,D,B,V){return Math.sqrt(r.len2(P,D,B,V))},r.len2=function(P,D,B,V){return(P-B)*(P-B)+(D-V)*(D-V)},r.closestPoint=function(P,D,B){function V(It){var wt=It.x-D,vt=It.y-B;return wt*wt+vt*vt}for(var Y=P.node,H=Y.getTotalLength(),q=H/Y.pathSegList.numberOfItems*.125,re,ce,be=1/0,Re,we=0,Be;we<=H;we+=q)(Be=V(Re=Y.getPointAtLength(we)))<be&&(re=Re,ce=we,be=Be);for(q*=.5;q>.5;){var Ye,at,ht,Nt,Xe,Oe;(ht=ce-q)>=0&&(Xe=V(Ye=Y.getPointAtLength(ht)))<be?(re=Ye,ce=ht,be=Xe):(Nt=ce+q)<=H&&(Oe=V(at=Y.getPointAtLength(Nt)))<be?(re=at,ce=Nt,be=Oe):q*=.5}return re={x:re.x,y:re.y,length:ce,distance:Math.sqrt(be)},re},r.is=W,r.snapTo=function(P,D,B){if(B=W(B,"finite")?B:10,W(P,"array")){for(var V=P.length;V--;)if(p(P[V]-D)<=B)return P[V]}else{P=+P;var Y=D%P;if(Y<B)return D-Y;if(Y>P-B)return D-Y+P}return D},r.getRGB=ie(function(P){if(!P||(P=a(P)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ee};if(P=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:Ee};if(!(T[i](P.toLowerCase().substring(0,2))||P.charAt()=="#")&&(P=se(P)),!P)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ee};var D,B,V,Y,H,q,re=P.match(b);return re?(re[2]&&(V=u(re[2].substring(5),16),B=u(re[2].substring(3,5),16),D=u(re[2].substring(1,3),16)),re[3]&&(V=u((H=re[3].charAt(3))+H,16),B=u((H=re[3].charAt(2))+H,16),D=u((H=re[3].charAt(1))+H,16)),re[4]&&(q=re[4].split(E),D=l(q[0]),q[0].slice(-1)=="%"&&(D*=2.55),B=l(q[1]),q[1].slice(-1)=="%"&&(B*=2.55),V=l(q[2]),q[2].slice(-1)=="%"&&(V*=2.55),re[1].toLowerCase().slice(0,4)=="rgba"&&(Y=l(q[3])),q[3]&&q[3].slice(-1)=="%"&&(Y/=100)),re[5]?(q=re[5].split(E),D=l(q[0]),q[0].slice(-1)=="%"&&(D/=100),B=l(q[1]),q[1].slice(-1)=="%"&&(B/=100),V=l(q[2]),q[2].slice(-1)=="%"&&(V/=100),(q[0].slice(-3)=="deg"||q[0].slice(-1)=="°")&&(D/=360),re[1].toLowerCase().slice(0,4)=="hsba"&&(Y=l(q[3])),q[3]&&q[3].slice(-1)=="%"&&(Y/=100),r.hsb2rgb(D,B,V,Y)):re[6]?(q=re[6].split(E),D=l(q[0]),q[0].slice(-1)=="%"&&(D/=100),B=l(q[1]),q[1].slice(-1)=="%"&&(B/=100),V=l(q[2]),q[2].slice(-1)=="%"&&(V/=100),(q[0].slice(-3)=="deg"||q[0].slice(-1)=="°")&&(D/=360),re[1].toLowerCase().slice(0,4)=="hsla"&&(Y=l(q[3])),q[3]&&q[3].slice(-1)=="%"&&(Y/=100),r.hsl2rgb(D,B,V,Y)):(D=m(d.round(D),255),B=m(d.round(B),255),V=m(d.round(V),255),Y=m(f(Y,0),1),re={r:D,g:B,b:V,toString:Ee},re.hex="#"+(16777216|V|B<<8|D<<16).toString(16).slice(1),re.opacity=W(Y,"finite")?Y:1,re)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ee}},r),r.hsb=ie(function(P,D,B){return r.hsb2rgb(P,D,B).hex}),r.hsl=ie(function(P,D,B){return r.hsl2rgb(P,D,B).hex}),r.rgb=ie(function(P,D,B,V){if(W(V,"finite")){var Y=d.round;return"rgba("+[Y(P),Y(D),Y(B),+V.toFixed(2)]+")"}return"#"+(16777216|B|D<<8|P<<16).toString(16).slice(1)});var se=function(P){var D=s.doc.getElementsByTagName("head")[0]||s.doc.getElementsByTagName("svg")[0],B="rgb(255, 0, 0)";return se=ie(function(V){if(V.toLowerCase()=="red")return B;D.style.color=B,D.style.color=V;var Y=s.doc.defaultView.getComputedStyle(D,v).getPropertyValue("color");return Y==B?null:Y}),se(P)},G=function(){return"hsb("+[this.h,this.s,this.b]+")"},ee=function(){return"hsl("+[this.h,this.s,this.l]+")"},Ee=function(){return this.opacity==1||this.opacity==null?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},Ce=function(P,D,B){if(D==null&&W(P,"object")&&"r"in P&&"g"in P&&"b"in P&&(B=P.b,D=P.g,P=P.r),D==null&&W(P,string)){var V=r.getRGB(P);P=V.r,D=V.g,B=V.b}return(P>1||D>1||B>1)&&(P/=255,D/=255,B/=255),[P,D,B]},Ae=function(P,D,B,V){P=d.round(P*255),D=d.round(D*255),B=d.round(B*255);var Y={r:P,g:D,b:B,opacity:W(V,"finite")?V:1,hex:r.rgb(P,D,B),toString:Ee};return W(V,"finite")&&(Y.opacity=V),Y};r.color=function(P){var D;return W(P,"object")&&"h"in P&&"s"in P&&"b"in P?(D=r.hsb2rgb(P),P.r=D.r,P.g=D.g,P.b=D.b,P.opacity=1,P.hex=D.hex):W(P,"object")&&"h"in P&&"s"in P&&"l"in P?(D=r.hsl2rgb(P),P.r=D.r,P.g=D.g,P.b=D.b,P.opacity=1,P.hex=D.hex):(W(P,"string")&&(P=r.getRGB(P)),W(P,"object")&&"r"in P&&"g"in P&&"b"in P&&!("error"in P)?(D=r.rgb2hsl(P),P.h=D.h,P.s=D.s,P.l=D.l,D=r.rgb2hsb(P),P.v=D.b):(P={hex:"none"},P.r=P.g=P.b=P.h=P.s=P.v=P.l=-1,P.error=1)),P.toString=Ee,P},r.hsb2rgb=function(P,D,B,V){W(P,"object")&&"h"in P&&"s"in P&&"b"in P&&(B=P.b,D=P.s,V=P.o,P=P.h),P*=360;var Y,H,q,re,ce;return P=P%360/60,ce=B*D,re=ce*(1-p(P%2-1)),Y=H=q=B-ce,P=~~P,Y+=[ce,re,0,0,re,ce][P],H+=[re,ce,ce,re,0,0][P],q+=[0,0,re,ce,ce,re][P],Ae(Y,H,q,V)},r.hsl2rgb=function(P,D,B,V){W(P,"object")&&"h"in P&&"s"in P&&"l"in P&&(B=P.l,D=P.s,P=P.h),(P>1||D>1||B>1)&&(P/=360,D/=100,B/=100),P*=360;var Y,H,q,re,ce;return P=P%360/60,ce=2*D*(B<.5?B:1-B),re=ce*(1-p(P%2-1)),Y=H=q=B-ce/2,P=~~P,Y+=[ce,re,0,0,re,ce][P],H+=[re,ce,ce,re,0,0][P],q+=[0,0,re,ce,ce,re][P],Ae(Y,H,q,V)},r.rgb2hsb=function(P,D,B){B=Ce(P,D,B),P=B[0],D=B[1],B=B[2];var V,Y,H,q;return H=f(P,D,B),q=H-m(P,D,B),V=q==0?null:H==P?(D-B)/q:H==D?(B-P)/q+2:(P-D)/q+4,V=(V+360)%6*60/360,Y=q==0?0:q/
861H,{h:V,s:Y,b:H,toString:G}},r.rgb2hsl=function(P,D,B){B=Ce(P,D,B),P=B[0],D=B[1],B=B[2];var V,Y,H,q,re,ce;return q=f(P,D,B),re=m(P,D,B),ce=q-re,V=ce==0?null:q==P?(D-B)/ce:q==D?(B-P)/ce+2:(P-D)/ce+4,V=(V+360)%6*60/360,H=(q+re)/2,Y=ce==0?0:H<.5?ce/(2*H):ce/(2-2*H),{h:V,s:Y,l:H,toString:ee}},r.parsePathString=function(P){if(!P)return null;var D=r.path(P);if(D.arr)return r.path.clone(D.arr);var B={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},V=[];return W(P,"array")&&W(P[0],"array")&&(V=r.path.clone(P)),V.length||a(P).replace(w,function(Y,H,q){var re=[],ce=H.toLowerCase();if(q.replace(I,function(be,Re){Re&&re.push(+Re)}),ce=="m"&&re.length>2&&(V.push([H].concat(re.splice(0,2))),ce="l",H=H=="m"?"l":"L"),ce=="o"&&re.length==1&&V.push([H,re[0]]),ce=="r")V.push([H].concat(re));else for(;re.length>=B[ce]&&(V.push([H].concat(re.splice(0,B[ce]))),!!B[ce]););}),V.toString=r.path.toString,D.arr=r.path.clone(V),V};var me=r.parseTransformString=function(P){if(!P)return null;var D=[];return W(P,"array")&&W(P[0],"array")&&(D=r.path.clone(P)),D.length||a(P).replace(R,function(B,V,Y){var H=[];V.toLowerCase(),Y.replace(I,function(q,re){re&&H.push(+re)}),D.push([V].concat(H))}),D.toString=r.path.toString,D};function ve(P){var D=[];return P=P.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(B,V,Y){return Y=Y.split(/\s*,\s*|\s+/),V=="rotate"&&Y.length==1&&Y.push(0,0),V=="scale"&&(Y.length>2?Y=Y.slice(0,2):Y.length==2&&Y.push(0,0),Y.length==1&&Y.push(Y[0],0,0)),V=="skewX"?D.push(["m",1,0,d.tan(X(Y[0])),1,0,0]):V=="skewY"?D.push(["m",1,d.tan(X(Y[0])),0,1,0,0]):D.push([V.charAt(0)].concat(Y)),B}),D}r._.svgTransform2string=ve,r._.rgTransform=/^[a-z][\s]*-?\.?\d/i;function Q(P,D){var B=me(P),V=new r.Matrix;if(B)for(var Y=0,H=B.length;Y<H;Y++){var q=B[Y],re=q.length,ce=a(q[0]).toLowerCase(),be=q[0]!=ce,Re=be?V.invert():0,we,Be,Ye,at,ht;ce=="t"&&re==2?V.translate(q[1],0):ce=="t"&&re==3?be?(we=Re.x(0,0),Be=Re.y(0,0),Ye=Re.x(q[1],q[2]),at=Re.y(q[1],q[2]),V.translate(Ye-we,at-Be)):V.translate(q[1],q[2]):ce=="r"?re==2?(ht=ht||D,V.rotate(q[1],ht.x+ht.width/2,ht.y+ht.height/2)):re==4&&(be?(Ye=Re.x(q[2],q[3]),at=Re.y(q[2],q[3]),V.rotate(q[1],Ye,at)):V.rotate(q[1],q[2],q[3])):ce=="s"?re==2||re==3?(ht=ht||D,V.scale(q[1],q[re-1],ht.x+ht.width/2,ht.y+ht.height/2)):re==4?be?(Ye=Re.x(q[2],q[3]),at=Re.y(q[2],q[3]),V.scale(q[1],q[1],Ye,at)):V.scale(q[1],q[1],q[2],q[3]):re==5&&(be?(Ye=Re.x(q[3],q[4]),at=Re.y(q[3],q[4]),V.scale(q[1],q[2],Ye,at)):V.scale(q[1],q[2],q[3],q[4])):ce=="m"&&re==7&&V.add(q[1],q[2],q[3],q[4],q[5],q[6])}return V}r._.transform2matrix=Q,r._unit2px=pe,s.doc.contains||s.doc.compareDocumentPosition;function ge(P){var D=P.node.ownerSVGElement&&Ge(P.node.ownerSVGElement)||P.node.parentNode&&Ge(P.node.parentNode)||r.select("svg")||r(0,0),B=D.select("defs"),V=B==null?!1:B.node;return V||(V=Me("defs",D.node).node),V}function le(P){return P.node.ownerSVGElement&&Ge(P.node.ownerSVGElement)||r.select("svg")}r._.getSomeDefs=ge,r._.getSomeSVG=le;function pe(P,D,B){var V=le(P).node,Y={},H=V.querySelector(".svg---mgr");H||(H=z("rect"),z(H,{x:-9e9,y:-9e9,width:10,height:10,class:"svg---mgr",fill:"none"}),V.appendChild(H));function q(be){if(be==null)return v;if(be==+be)return be;z(H,{width:be});try{return H.getBBox().width}catch{return 0}}function re(be){if(be==null)return v;if(be==+be)return be;z(H,{height:be});try{return H.getBBox().height}catch{return 0}}function ce(be,Re){D==null?Y[be]=Re(P.attr(be)||0):be==D&&(Y=Re(B??(P.attr(be)||0)))}switch(P.type){case"rect":ce("rx",q),ce("ry",re);case"image":ce("width",q),ce("height",re);case"text":ce("x",q),ce("y",re);break;case"circle":ce("cx",q),ce("cy",re),ce("r",q);break;case"ellipse":ce("cx",q),ce("cy",re),ce("rx",q),ce("ry",re);break;case"line":ce("x1",q),ce("x2",q),ce("y1",re),ce("y2",re);break;case"marker":ce("refX",q),ce("markerWidth",q),ce("refY",re),ce("markerHeight",re);break;case"radialGradient":ce("fx",q),ce("fy",re);break;case"tspan":ce("dx",q),ce("dy",re);break;default:ce(D,q)}return V.removeChild(H),Y}r.select=function(P){return P=a(P).replace(/([^\\]):/g,"$1\\:"),Ge(s.doc.querySelector(P))},r.selectAll=function(P){for(var D=s.doc.querySelectorAll(P),B=(r.set||Array)(),V=0;V<D.length;V++)B.push(Ge(D[V]));return B};function Ie(P){W(P,"array")||(P=Array.prototype.slice.call(arguments,0));for(var D=0,B=0,V=this.node;this[D];)delete this[D++];for(D=0;D<P.length;
861D++)P[D].type=="set"?P[D].forEach(function(H){V.appendChild(H.node)}):V.appendChild(P[D].node);var Y=V.childNodes;for(D=0;D<Y.length;D++)this[B++]=Ge(Y[D]);return this}setInterval(function(){for(var P in $)if($[i](P)){var D=$[P],B=D.node;(D.type!="svg"&&!B.ownerSVGElement||D.type=="svg"&&(!B.parentNode||"ownerSVGElement"in B.parentNode&&!B.ownerSVGElement))&&delete $[P]}},1e4);function Ne(P){if(P.snap in $)return $[P.snap];var D;try{D=P.ownerSVGElement}catch{}this.node=P,D&&(this.paper=new ke(D)),this.type=P.tagName||P.nodeName;var B=this.id=_(this);if(this.anims={},this._={transform:[]},P.snap=B,$[B]=this,this.type=="g"&&(this.add=Ie),this.type in{g:1,mask:1,pattern:1,symbol:1})for(var V in ke.prototype)ke.prototype[i](V)&&(this[V]=ke.prototype[V])}Ne.prototype.attr=function(P,D){var B=this,V=B.node;if(!P){if(V.nodeType!=1)return{text:V.nodeValue};for(var Y=V.attributes,H={},q=0,re=Y.length;q<re;q++)H[Y[q].nodeName]=Y[q].nodeValue;return H}if(W(P,"string"))if(arguments.length>1){var ce={};ce[P]=D,P=ce}else return eve("snap.util.getattr."+P,B).firstDefined();for(var be in P)P[i](be)&&eve("snap.util.attr."+be,B,P[be]);return B},r.parse=function(P){var D=s.doc.createDocumentFragment(),B=!0,V=s.doc.createElement("div");if(P=a(P),P.match(/^\s*<\s*svg(?:\s|>)/)||(P="<svg>"+P+"</svg>",B=!1),V.innerHTML=P,P=V.getElementsByTagName("svg")[0],P)if(B)D=P;else for(;P.firstChild;)D.appendChild(P.firstChild);return new Fe(D)};function Fe(P){this.node=P}r.fragment=function(){for(var P=Array.prototype.slice.call(arguments,0),D=s.doc.createDocumentFragment(),B=0,V=P.length;B<V;B++){var Y=P[B];Y.node&&Y.node.nodeType&&D.appendChild(Y.node),Y.nodeType&&D.appendChild(Y),typeof Y=="string"&&D.appendChild(r.parse(Y).node)}return new Fe(D)};function Me(P,D){var B=z(P);D.appendChild(B);var V=Ge(B);return V}function ke(P,D){var B,V,Y,H=ke.prototype;if(P&&P.tagName&&P.tagName.toLowerCase()=="svg"){if(P.snap in $)return $[P.snap];var q=P.ownerDocument;B=new Ne(P),V=P.getElementsByTagName("desc")[0],Y=P.getElementsByTagName("defs")[0],V||(V=z("desc"),V.appendChild(q.createTextNode("Created with Snap")),B.node.appendChild(V)),Y||(Y=z("defs"),B.node.appendChild(Y)),B.defs=Y;for(var re in H)H[i](re)&&(B[re]=H[re]);B.paper=B.root=B}else B=Me("svg",s.doc.body),z(B.node,{height:D,version:1.1,width:P,xmlns:F});return B}function Ge(P){return!P||P instanceof Ne||P instanceof Fe?P:P.tagName&&P.tagName.toLowerCase()=="svg"?new ke(P):P.tagName&&P.tagName.toLowerCase()=="object"&&P.type=="image/svg+xml"?new ke(P.contentDocument.getElementsByTagName("svg")[0]):new Ne(P)}r._.make=Me,r._.wrap=Ge,ke.prototype.el=function(P,D){var B=Me(P,this.node);return D&&B.attr(D),B},Ne.prototype.children=function(){for(var P=[],D=this.node.childNodes,B=0,V=D.length;B<V;B++)P[B]=r(D[B]);return P};function K(P,D){for(var B=0,V=P.length;B<V;B++){var Y={type:P[B].type,attr:P[B].attr()},H=P[B].children();D.push(Y),H.length&&K(H,Y.childNodes=[])}}Ne.prototype.toJSON=function(){var P=[];return K([this],P),P[0]},eve.on("snap.util.getattr",function(){var P=eve.nt();P=P.substring(P.lastIndexOf(".")+1);var D=P.replace(/[A-Z]/g,function(B){return"-"+B.toLowerCase()});return ne[i](D)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(D):z(this.node,P)});var ne={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode
861-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};eve.on("snap.util.attr",function(P){var D=eve.nt(),B={};D=D.substring(D.lastIndexOf(".")+1),B[D]=P;var V=D.replace(/-(\w)/gi,function(H,q){return q.toUpperCase()}),Y=D.replace(/[A-Z]/g,function(H){return"-"+H.toLowerCase()});ne[i](Y)?this.node.style[V]=P??v:z(this.node,B)}),ke.prototype,r.ajax=function(P,D,B,V){var Y=new XMLHttpRequest,H=_();if(Y){if(W(D,"function"))V=B,B=D,D=null;else if(W(D,"object")){var q=[];for(var re in D)D.hasOwnProperty(re)&&q.push(encodeURIComponent(re)+"="+encodeURIComponent(D[re]));D=q.join("&")}return Y.open(D?"POST":"GET",P,!0),D&&(Y.setRequestHeader("X-Requested-With","XMLHttpRequest"),Y.setRequestHeader("Content-type","application/x-www-form-urlencoded")),B&&(eve.once("snap.ajax."+H+".0",B),eve.once("snap.ajax."+H+".200",B),eve.once("snap.ajax."+H+".304",B)),Y.onreadystatechange=function(){Y.readyState==4&&eve("snap.ajax."+H+"."+Y.status,V,Y)},Y.readyState==4||Y.send(D),Y}},r.load=function(P,D,B){r.ajax(P,function(V){var Y=r.parse(V.responseText);B?D.call(B,Y):D(Y)})};var ae=function(P){var D=P.getBoundingClientRect(),B=P.ownerDocument,V=B.body,Y=B.documentElement,H=Y.clientTop||V.clientTop||0,q=Y.clientLeft||V.clientLeft||0,re=D.top+(g.win.pageYOffset||Y.scrollTop||V.scrollTop)-H,ce=D.left+(g.win.pageXOffset||Y.scrollLeft||V.scrollLeft)-q;return{y:re,x:ce}};return r.getElementByPoint=function(P,D){var B=this;B.canvas;var V=s.doc.elementFromPoint(P,D);if(s.win.opera&&V.tagName=="svg"){var Y=ae(V),H=V.createSVGRect();H.x=P-Y.x,H.y=D-Y.y,H.width=H.height=1;var q=V.getIntersectionList(H,null);q.length&&(V=q[q.length-1])}return V?Ge(V):null},r.plugin=function(P){P(r,Ne,ke,s,Fe)},s.win.Snap=r,r})(window||Gd);return e.plugin(function(t,r,s,i,a){var l=r.prototype,u=t.is,d=String,f=t._unit2px,m=t._.$,p=t._.make,y=t._.getSomeDefs,v="hasOwnProperty",x=t._.wrap;l.getBBox=function(I){if(this.type=="tspan")return t._.box(this.node.getClientRects().item(0));if(!t.Matrix||!t.path)return this.node.getBBox();var L=this,N=new t.Matrix;if(L.removed)return t._.box();for(;L.type=="use";)if(I||(N=N.add(L.transform().localMatrix.translate(L.attr("x")||0,L.attr("y")||0))),L.original)L=L.original;else{var _=L.attr("xlink:href");L=L.original=L.node.ownerDocument.getElementById(_.substring(_.indexOf("#")+1))}var j=L._,F=t.path.get[L.type]||t.path.get.deflt;try{return I?(j.bboxwt=F?t.path.getBBox(L.realPath=F(L)):t._.box(L.node.getBBox()),t._.box(j.bboxwt)):(L.realPath=F(L),L.matrix=L.transform().localMatrix,j.bbox=t.path.getBBox(t.path.map(L.realPath,N.add(L.matrix))),t._.box(j.bbox))}catch{return t._.box()}};var b=function(){return this.string};function E(I,L){if(L==null){var N=!0;if(I.type=="linearGradient"||I.type=="radialGradient"?L=I.node.getAttribute("gradientTransform"):I.type=="pattern"?L=I.node.getAttribute("patternTransform"):L=I.node.getAttribute("transform"),!L)return new t.Matrix;L=t._.svgTransform2string(L)}else t._.rgTransform.test(L)?L=d(L).replace(/\.{3}|\u2026/g,I._.transform||""):L=t._.svgTransform2string(L),u(L,"array")&&(L=t.path?t.path.toString.call(L):d(L)),I._.transform=L;var _=t._.transform2matrix(L,I.getBBox(1));if(N)return _;I.matrix=_}l.transform=function(I){var L=this._;if(I==null){for(var N=this,_=new t.Matrix(this.node.getCTM()),j=E(this),F=[j],$=new t.Matrix,z,W=j.toTransformString(),J=d(j)==d(this.matrix)?d(L.transform):W;N.type!="svg"&&(N=N.parent());)F.push(E(N));for(z=F.length;z--;)$.add(F[z]);return{string:J,globalMatrix:_,totalMatrix:$,localMatrix:j,diffMatrix:_.clone().add(j.invert()),global:_.toTransformString(),total:$.toTransformString(),local:W,toString:b}}return I instanceof t.Matrix?(this.matrix=I,this._.transform=I.toTransformString()):E(this,I),this.node&&(this.t
861ype=="linearGradient"||this.type=="radialGradient"?m(this.node,{gradientTransform:this.matrix}):this.type=="pattern"?m(this.node,{patternTransform:this.matrix}):m(this.node,{transform:this.matrix})),this},l.parent=function(){return x(this.node.parentNode)},l.append=l.add=function(I){if(I){if(I.type=="set"){var L=this;return I.forEach(function(N){L.add(N)}),this}I=x(I),this.node.appendChild(I.node),I.paper=this.paper}return this},l.appendTo=function(I){return I&&(I=x(I),I.append(this)),this},l.prepend=function(I){if(I){if(I.type=="set"){var L=this,N;return I.forEach(function(j){N?N.after(j):L.prepend(j),N=j}),this}I=x(I);var _=I.parent();this.node.insertBefore(I.node,this.node.firstChild),this.add&&this.add(),I.paper=this.paper,this.parent()&&this.parent().add(),_&&_.add()}return this},l.prependTo=function(I){return I=x(I),I.prepend(this),this},l.before=function(I){if(I.type=="set"){var L=this;return I.forEach(function(_){var j=_.parent();L.node.parentNode.insertBefore(_.node,L.node),j&&j.add()}),this.parent().add(),this}I=x(I);var N=I.parent();return this.node.parentNode.insertBefore(I.node,this.node),this.parent()&&this.parent().add(),N&&N.add(),I.paper=this.paper,this},l.after=function(I){I=x(I);var L=I.parent();return this.node.nextSibling?this.node.parentNode.insertBefore(I.node,this.node.nextSibling):this.node.parentNode.appendChild(I.node),this.parent()&&this.parent().add(),L&&L.add(),I.paper=this.paper,this},l.insertBefore=function(I){I=x(I);var L=this.parent();return I.node.parentNode.insertBefore(this.node,I.node),this.paper=I.paper,L&&L.add(),I.parent()&&I.parent().add(),this},l.insertAfter=function(I){I=x(I);var L=this.parent();return I.node.parentNode.insertBefore(this.node,I.node.nextSibling),this.paper=I.paper,L&&L.add(),I.parent()&&I.parent().add(),this},l.remove=function(){var I=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,I&&I.add(),this},l.select=function(I){return x(this.node.querySelector(I))},l.selectAll=function(I){for(var L=this.node.querySelectorAll(I),N=(t.set||Array)(),_=0;_<L.length;_++)N.push(x(L[_]));return N},l.asPX=function(I,L){return L==null&&(L=this.attr(I)),+f(this,I,L)},l.use=function(){var I,L=this.node.id;return L||(L=this.id,m(this.node,{id:L})),this.type=="linearGradient"||this.type=="radialGradient"||this.type=="pattern"?I=p(this.type,this.node.parentNode):I=p("use",this.node.parentNode),m(I.node,{"xlink:href":"#"+L}),I.original=this,I};function T(I){var L=I.selectAll("*"),N,_=/^\s*url\(("|'|)(.*)\1\)\s*$/,j=[],F={};function $(ue,se){var G=m(ue.node,se);if(G=G&&G.match(_),G=G&&G[2],G&&G.charAt()=="#")G=G.substring(1);else return;G&&(F[G]=(F[G]||[]).concat(function(ee){var Ee={};Ee[se]=t.url(ee),m(ue.node,Ee)}))}function z(ue){var se=m(ue.node,"xlink:href");if(se&&se.charAt()=="#")se=se.substring(1);else return;se&&(F[se]=(F[se]||[]).concat(function(G){ue.attr("xlink:href","#"+G)}))}for(var W=0,J=L.length;W<J;W++){N=L[W],$(N,"fill"),$(N,"stroke"),$(N,"filter"),$(N,"mask"),$(N,"clip-path"),z(N);var oe=m(N.node,"id");oe&&(m(N.node,{id:N.id}),j.push({old:oe,id:N.id}))}for(W=0,J=j.length;W<J;W++){var ie=F[j[W].old];if(ie)for(var Z=0,X=ie.length;Z<X;Z++)ie[Z](j[W].id)}}l.clone=function(){var I=x(this.node.cloneNode(!0));return m(I.node,"id")&&m(I.node,{id:I.id}),T(I),I.insertAfter(this),I},l.toDefs=function(){var I=y(this);return I.appendChild(this.node),this},l.pattern=l.toPattern=function(I,L,N,_){var j=p("pattern",y(this));return I==null&&(I=this.getBBox()),u(I,"object")&&"x"in I&&(L=I.y,N=I.width,_=I.height,I=I.x),m(j.node,{x:I,y:L,width:N,height:_,patternUnits:"userSpaceOnUse",id:j.id,viewBox:[I,L,N,_].join(" ")}),j.node.appendChild(this.node),j},l.marker=function(I,L,N,_,j,F){var $=p("marker",y(this));return I==null&&(I=this.getBBox()),u(I,"object")&&"x"in I&&(L=I.y,N=I.width,_=I.height,j=I.refX||I.cx,F=I.refY||I.cy,I=I.x),m($.node,{viewBox:[I,L,N,_].join(" "),markerWidth:N,markerHeight:_,orient:"auto",refX:j||0,refY:F||0,id:$.id}),$.node.appendChild(this.node),$};var w={};l.data=function(I,L){var N=w[this.id]=w[this.id]||{};if(arguments.length==0)return eve("snap.data.get."+this.id,this,N,null),N;if(arguments.length==1){if(t.is(I,"object")){for(var _ in I)I[v](_)&&this.data(_,I[_]);return this}return eve("snap.data.get."+this.id,this,N[I],I),N[I]}return N[I]=L,eve("snap.data.set."+this.id,this,L,I),this},l.removeData=function(I){return I==null?w[this.id]={}:w[this.id]&&delete w[this.id][I],this},l.outerSVG=l.toString=R(1),l.innerSVG=R();
861function R(I){return function(){var L=I?"<"+this.type:"",N=this.node.attributes,_=this.node.childNodes;if(I)for(var j=0,F=N.length;j<F;j++)L+=" "+N[j].name+'="'+N[j].value.replace(/"/g,'\\"')+'"';if(_.length){for(I&&(L+=">"),j=0,F=_.length;j<F;j++)_[j].nodeType==3?L+=_[j].nodeValue:_[j].nodeType==1&&(L+=x(_[j]).toString());I&&(L+="</"+this.type+">")}else I&&(L+="/>");return L}}l.toDataURL=function(){if(window&&window.btoa){var I=this.getBBox(),L=t.format('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{width}" height="{height}" viewBox="{x} {y} {width} {height}">{contents}</svg>',{x:+I.x.toFixed(3),y:+I.y.toFixed(3),width:+I.width.toFixed(3),height:+I.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(L)))}},a.prototype.select=l.select,a.prototype.selectAll=l.selectAll}),e.plugin(function(t,r,s,i,a){var l=Object.prototype.toString,u=String,d=Math,f="";function m(p,y,v,x,b,E){if(y==null&&l.call(p)=="[object SVGMatrix]"){this.a=p.a,this.b=p.b,this.c=p.c,this.d=p.d,this.e=p.e,this.f=p.f;return}p!=null?(this.a=+p,this.b=+y,this.c=+v,this.d=+x,this.e=+b,this.f=+E):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}(function(p){p.add=function(x,b,E,T,w,R){if(x&&x instanceof m)return this.add(x.a,x.b,x.c,x.d,x.e,x.f);var I=x*this.a+b*this.c,L=x*this.b+b*this.d;return this.e+=w*this.a+R*this.c,this.f+=w*this.b+R*this.d,this.c=E*this.a+T*this.c,this.d=E*this.b+T*this.d,this.a=I,this.b=L,this},m.prototype.multLeft=function(x,b,E,T,w,R){if(x&&x instanceof m)return this.multLeft(x.a,x.b,x.c,x.d,x.e,x.f);var I=x*this.a+E*this.b,L=x*this.c+E*this.d,N=x*this.e+E*this.f+w;return this.b=b*this.a+T*this.b,this.d=b*this.c+T*this.d,this.f=b*this.e+T*this.f+R,this.a=I,this.c=L,this.e=N,this},p.invert=function(){var x=this,b=x.a*x.d-x.b*x.c;return new m(x.d/b,-x.b/b,-x.c/b,x.a/b,(x.c*x.f-x.d*x.e)/b,(x.b*x.e-x.a*x.f)/b)},p.clone=function(){return new m(this.a,this.b,this.c,this.d,this.e,this.f)},p.translate=function(x,b){return this.e+=x*this.a+b*this.c,this.f+=x*this.b+b*this.d,this},p.scale=function(x,b,E,T){return b==null&&(b=x),(E||T)&&this.translate(E,T),this.a*=x,this.b*=x,this.c*=b,this.d*=b,(E||T)&&this.translate(-E,-T),this},p.rotate=function(x,b,E){x=t.rad(x),b=b||0,E=E||0;var T=+d.cos(x).toFixed(9),w=+d.sin(x).toFixed(9);return this.add(T,w,-w,T,b,E),this.add(1,0,0,1,-b,-E)},p.skewX=function(x){return this.skew(x,0)},p.skewY=function(x){return this.skew(0,x)},p.skew=function(x,b){x=x||0,b=b||0,x=t.rad(x),b=t.rad(b);var E=d.tan(x).toFixed(9),T=d.tan(b).toFixed(9);return this.add(1,T,E,1,0,0)},p.x=function(x,b){return x*this.a+b*this.c+this.e},p.y=function(x,b){return x*this.b+b*this.d+this.f},p.get=function(x){return+this[u.fromCharCode(97+x)].toFixed(4)},p.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},p.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};function y(x){return x[0]*x[0]+x[1]*x[1]}function v(x){var b=d.sqrt(y(x));x[0]&&(x[0]/=b),x[1]&&(x[1]/=b)}p.determinant=function(){return this.a*this.d-this.b*this.c},p.split=function(){var x={};x.dx=this.e,x.dy=this.f;var b=[[this.a,this.b],[this.c,this.d]];x.scalex=d.sqrt(y(b[0])),v(b[0]),x.shear=b[0][0]*b[1][0]+b[0][1]*b[1][1],b[1]=[b[1][0]-b[0][0]*x.shear,b[1][1]-b[0][1]*x.shear],x.scaley=d.sqrt(y(b[1])),v(b[1]),x.shear/=x.scaley,this.determinant()<0&&(x.scalex=-x.scalex);var E=b[0][1],T=b[1][1];return T<0?(x.rotate=t.deg(d.acos(T)),E<0&&(x.rotate=360-x.rotate)):x.rotate=t.deg(d.asin(E)),x.isSimple=!+x.shear.toFixed(9)&&(x.scalex.toFixed(9)==x.scaley.toFixed(9)||!x.rotate),x.isSuperSimple=!+x.shear.toFixed(9)&&x.scalex.toFixed(9)==x.scaley.toFixed(9)&&!x.rotate,x.noRotation=!+x.shear.toFixed(9)&&!x.rotate,x},p.toTransformString=function(x){var b=x||this.split();return+b.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(b.scalex=+b.scalex.toFixed(4),b.scaley=+b.scaley.toFixed(4),b.rotate=+b.rotate.toFixed(4),(b.dx||b.dy?"t"+[+b.dx.toFixed(4),+b.dy.toFixed(4)]:f)+(b.rotate?"r"+[+b.rotate.toFixed(4),0,0]:f)+(b.scalex!=1||b.scaley!=1?"s"+[b.scalex,b.scaley,0,0]:f))}})(m.prototype),t.Matrix=m,t.matrix=function(p,y,v,x,b,E){return new m(p,y,v,x,b,E)}}),e.plugin(function(t,r,s,i,a){var l=t._.make,u=t._.wrap,d=t.is,f=t._.getSomeDefs,m=/^url\((['"]?)([^)]+)\1\)$/,p=t._.$,y=t.url,v=String,x=t._.separator,b="";t.deurl=function(L){var N=String(L).match(m);return N?N[2]:L},eve.on("snap.util.attr.mask",function(L){if(L instanceof r||L instanceof a){if(eve.stop(),L instanceof a&&L.node.childNodes.length==1&&(L=L.node.firstChild,f(this).appendChild(L),L=u(L)),L.type=="mask")var N=L;else N=l("mask",f(this)),N.node.appendChild(L.node);!N.node.id&&p(N.node,{id:N.id}),p(this.node,{mask:y(N.id)})}}),(function(L){eve.on("snap.util.attr.clip",L),eve.on("snap.util.attr.clip-path",L),eve.on("snap.util.attr.clipPath",L)})(function(L){if(L instanceof r||L instanceof a){eve.stop();for(var N,_=L.node;_;){if(_.nodeName==="clipPath"){N=new r(_);break}if(_.nodeName==="svg"){N=void 0;break}_=_.parentNode}N||(N=l("clipPath",f(this)),N.node.appendChild(L.node),!N.node.id&&p(N.node,{id:N.id})),p(this.node,{"clip-path":y(N.node.id||N.id)})}});function E(L){return function(N){if(eve.stop(),N instanceof a&&N.node.childNodes.length==1&&(N.node.firstChild.tagName=="radialGradient"||N.node.firstChild.tagName=="linearGradient"||N.node.firstChild.tagName=="pattern")&&(N=N.node.firstChild,f(this).appendChild(N),N=u(N)),N instanceof r)if(N.type=="radialGradient"||N.type=="linearGradient"||N.type=="pattern"){N.node.id||p(N.node,{id:N.id});var _=y(N.node.id)}else _=N.attr(L);else if(_=t.color(N),_.error){var j=t(f(this).ownerSVGElement).gradient(N);j?(j.node.id||p(j.node,{id:j.id}),_=y(j.node.id)):_=N}else _=v(_);var F={};F[L]=_,p(this.node,F),this.node.style[L]=b}}eve.on("snap.util.attr.fill",E("fill")),eve.on("snap.util.attr.stroke",E("stroke"));var T=/^([lr])(?:\(([^)]*)\))?(.*)$/i;eve.on("snap.util.grad.parse",function(N){N=v(N);var _=N.match(T);if(!_)return null;var j=_[1],F=_[2],$=_[3];F=F.split(/\s*,\s*/).map(function(Z){return+Z==Z?+Z:Z}),F.length==1&&F[0]==0&&(F=[]),$=$.split("-"),$=$.map(function(Z){Z=Z.split(":");var X={color:Z[0]};return Z[1]&&(X.offset=parseFloat(Z[1])),X});var z=$.length,W=0,J=0;function oe(Z,X){for(var ue=(X-W)/(Z-J),se=J;se<Z;se++)$[se].offset=+(+W+ue*(se-J)).toFixed(2);J=Z,W=X}z--;for(var ie=0;ie<z;ie++)"offset"in $[ie]&&oe(ie,$[ie].offset);return $[z].offset=$[z].offset||100,oe(z,$[z].offset),{type:j,params:F,stops:$}}),eve.on("snap.util.attr.d",function(L){eve.stop(),d(L,"array")&&d(L[0],"array")&&(L=t.path.toString.call(L)),L=v(L),L.match(/[ruo]/i)&&(L=t.path.toAbsolute(L)),p(this.node,{d:L})})(-1),eve.on("snap.util.attr.#text",function(L){eve.stop(),L=v(L);for(var N=i.doc.createTextNode(L);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(N)})(-1),eve.on("snap.util.attr.path",function(L){eve.stop(),this.attr({d:L})})(-1),eve.on("snap.util.attr.class",function(L){eve.stop(),this.node.className.baseVal=L})(-1),eve.on("snap.util.attr.viewBox",function(L){var N;d(L,"object")&&"x"in L?N=[L.x,L.y,L.width,L.height].join(" "):d(L,"array")?N=L.join(" "):N=L,p(this.node,{viewBox:N}),eve.stop()})(-1),eve.on("snap.util.attr.transform",function(L){this.transform(L),eve.stop()})(-1),eve.on("snap.util.attr.r",function(L){this.type=="rect"&&(eve.stop(),p(this.node,{rx:L,ry:L}))})(-1),eve.on("snap.util.attr.textpath",function(L){if(eve.stop(),this.type=="text"){var N,_,j;if(!L&&this.textPath){for(_=this.textPath;_.node.firstChild;)this.node.appendChild(_.node.firstChild);_.remove(),delete this.textPath;return}if(d(L,"string")){var F=f(this),$=u(F.parentNode).path(L);F.appendChild($.node),N=$.id,$.attr({id:N})}else L=u(L),L instanceof r&&(N=L.attr("id"),N||(N=L.id,L.attr({id:N})));if(N)if(_=this.textPath,j=this.node,_)_.attr({"xlink:href":"#"+N});else{for(_=p("textPath",{"xlink:href":"#"+N});j.firstChild;)_.appendChild(j.firstChild);j.appendChild(_),this.textPath=u(_)}}}
861)(-1),eve.on("snap.util.attr.text",function(L){if(this.type=="text"){for(var N=this.node,_=function(F){var $=p("tspan");if(d(F,"array"))for(var z=0;z<F.length;z++)$.appendChild(_(F[z]));else $.appendChild(i.doc.createTextNode(F));return $.normalize&&$.normalize(),$};N.firstChild;)N.removeChild(N.firstChild);for(var j=_(L);j.firstChild;)N.appendChild(j.firstChild)}eve.stop()})(-1);function w(L){eve.stop(),L==+L&&(L+="px"),this.node.style.fontSize=L}eve.on("snap.util.attr.fontSize",w)(-1),eve.on("snap.util.attr.font-size",w)(-1),eve.on("snap.util.getattr.transform",function(){return eve.stop(),this.transform()})(-1),eve.on("snap.util.getattr.textpath",function(){return eve.stop(),this.textPath})(-1),(function(){function L(_){return function(){eve.stop();var j=i.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+_);return j=="none"?j:t(i.doc.getElementById(j.match(m)[1]))}}function N(_){return function(j){eve.stop();var F="marker"+_.charAt(0).toUpperCase()+_.substring(1);if(j==""||!j){this.node.style[F]="none";return}if(j.type=="marker"){var $=j.node.id;$||p(j.node,{id:j.id}),this.node.style[F]=y($);return}}}eve.on("snap.util.getattr.marker-end",L("end"))(-1),eve.on("snap.util.getattr.markerEnd",L("end"))(-1),eve.on("snap.util.getattr.marker-start",L("start"))(-1),eve.on("snap.util.getattr.markerStart",L("start"))(-1),eve.on("snap.util.getattr.marker-mid",L("mid"))(-1),eve.on("snap.util.getattr.markerMid",L("mid"))(-1),eve.on("snap.util.attr.marker-end",N("end"))(-1),eve.on("snap.util.attr.markerEnd",N("end"))(-1),eve.on("snap.util.attr.marker-start",N("start"))(-1),eve.on("snap.util.attr.markerStart",N("start"))(-1),eve.on("snap.util.attr.marker-mid",N("mid"))(-1),eve.on("snap.util.attr.markerMid",N("mid"))(-1)})(),eve.on("snap.util.getattr.r",function(){if(this.type=="rect"&&p(this.node,"rx")==p(this.node,"ry"))return eve.stop(),p(this.node,"rx")})(-1);function R(L){for(var N=[],_=L.childNodes,j=0,F=_.length;j<F;j++){var $=_[j];$.nodeType==3&&N.push($.nodeValue),$.tagName=="tspan"&&($.childNodes.length==1&&$.firstChild.nodeType==3?N.push($.firstChild.nodeValue):N.push(R($)))}return N}eve.on("snap.util.getattr.text",function(){if(this.type=="text"||this.type=="tspan"){eve.stop();var L=R(this.node);return L.length==1?L[0]:L}})(-1),eve.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1),eve.on("snap.util.getattr.fill",function(L){if(!L){eve.stop();var N=eve("snap.util.getattr.fill",this,!0).firstDefined();return t(t.deurl(N))||N}})(-1),eve.on("snap.util.getattr.stroke",function(L){if(!L){eve.stop();var N=eve("snap.util.getattr.stroke",this,!0).firstDefined();return t(t.deurl(N))||N}})(-1),eve.on("snap.util.getattr.viewBox",function(){eve.stop();var L=p(this.node,"viewBox");if(L)return L=L.split(x),t._.box(+L[0],+L[1],+L[2],+L[3])})(-1),eve.on("snap.util.getattr.points",function(){var L=p(this.node,"points");if(eve.stop(),L)return L.split(x)})(-1),eve.on("snap.util.getattr.path",function(){var L=p(this.node,"d");return eve.stop(),L})(-1),eve.on("snap.util.getattr.class",function(){return this.node.className.baseVal})(-1);function I(){return eve.stop(),this.node.style.fontSize}eve.on("snap.util.getattr.fontSize",I)(-1),eve.on("snap.util.getattr.font-size",I)(-1)}),e.plugin(function(t,r,s,i,a){var l=/\S+/g,u=String,d=r.prototype;d.addClass=function(f){var m=u(f||"").match(l)||[],p=this.node,y=p.className.baseVal,v=y.match(l)||[],x,b,E,T;if(m.length){for(x=0;E=m[x++];)b=v.indexOf(E),~b||v.push(E);T=v.join(" "),y!=T&&(p.className.baseVal=T)}return this},d.removeClass=function(f){var m=u(f||"").match(l)||[],p=this.node,y=p.className.baseVal,v=y.match(l)||[],x,b,E,T;if(v.length){for(x=0;E=m[x++];)b=v.indexOf(E),~b&&v.splice(b,1);T=v.join(" "),y!=T&&(p.className.baseVal=T)}return this},d.hasClass=function(f){var m=this.node,p=m.className.baseVal,y=p.match(l)||[];return!!~y.indexOf(f)},d.toggleClass=function(f,m){if(m!=null)return m?this.addClass(f):this.removeClass(f);var p=(f||"").match(l)||[],y=this.node,v=y.className.baseVal,x=v.match(l)||[],b,E,T,w;for(b=0;T=p[b++];)E=x.indexOf(T),~E?x.splice(E,1):x.push(T);return w=x.join(" "),v!=w&&(y.className.baseVal=w),this}}),e.plugin(function(t,r,s,i,a){var l={"+":function(y,v){return y+v},"-":function(y,v){return y-v},"/":function(y,v){return y/v},"*":function(y,v){return y*v}},u=String,d=/[a-z]+$/i,f=/^\s*([+\-\/*])\s*=\s*([\d.eE+\-]+)\s*([^\d\s]+)?\s*$/;function m(y){return y}function p(y){return function(v){return+v.toFixed(3)+y}}eve.on("snap.util.attr",function(y){var v=u(y).match(f);if(v){var x=eve.nt(),b=x.substring(x.lastIndexOf(".")+1),E=this.attr(b),T={};eve.stop();var w=v[3]||"",R=E.match(d),I=l[v[1]];if(R&&R==w?y=I(parseFloat(E),+v[2]):(E=this.asPX(b),y=I(this.asPX(b),this.asPX(b,v[2]+w))),isNaN(E)||isNaN(y))return;T[b]=y,this.attr(T)}})(-10),eve.on("snap.util.equal",function(y,v){var x=u(this.attr(y)||""),b=u(v).match(f);if(b){eve.stop();var E=b[3]||"",T=x.match(d),w=l[b[1]];return T&&T==E?{from:parseFloat(x),to:w(parseFloat(x),+b[2]),f:p(T)}:(x=this.asPX(y),{from:x,to:w(x,this.asPX(y,b[2]+E)),f:m})}})(-10)}),e.plugin(function(t,r,s,i,a){var l=s.prototype,u=t.is;l.rect=function(f,m,p,y,v,x){var b;return x==null&&(x=v),u(f,"object")&&f=="[object Object]"?b=f:f!=null&&(b={x:f,y:m,width:p,height:y},v!=null&&(b.rx=v,b.ry=x)),this.el("rect",b)},l.circle=function(f,m,p){var y;return u(f,"object")&&f=="[object Object]"?y=f:f!=null&&(y={cx:f,cy:m,r:p}),this.el("circle",y)};var d=(function(){function f(){this.parentNode.removeChild(this)}return function(m,p){var y=i.doc.createElement("img"),v=i.doc.body;y.style.cssText="position:absolute;
861left:-9999em;top:-9999em",y.onload=function(){p.call(y),y.onload=y.onerror=null,v.removeChild(y)},y.onerror=f,v.appendChild(y),y.src=m}})();l.image=function(f,m,p,y,v){var x=this.el("image");if(u(f,"object")&&"src"in f)x.attr(f);else if(f!=null){var b={"xlink:href":f,preserveAspectRatio:"none"};m!=null&&p!=null&&(b.x=m,b.y=p),y!=null&&v!=null?(b.width=y,b.height=v):d(f,function(){t._.$(x.node,{width:this.offsetWidth,height:this.offsetHeight})}),t._.$(x.node,b)}return x},l.ellipse=function(f,m,p,y){var v;return u(f,"object")&&f=="[object Object]"?v=f:f!=null&&(v={cx:f,cy:m,rx:p,ry:y}),this.el("ellipse",v)},l.path=function(f){var m;return u(f,"object")&&!u(f,"array")?m=f:f&&(m={d:f}),this.el("path",m)},l.group=l.g=function(f){var m=this.el("g");return arguments.length==1&&f&&!f.type?m.attr(f):arguments.length&&m.add(Array.prototype.slice.call(arguments,0)),m},l.svg=function(f,m,p,y,v,x,b,E){var T={};return u(f,"object")&&m==null?T=f:(f!=null&&(T.x=f),m!=null&&(T.y=m),p!=null&&(T.width=p),y!=null&&(T.height=y),v!=null&&x!=null&&b!=null&&E!=null&&(T.viewBox=[v,x,b,E])),this.el("svg",T)},l.mask=function(f){var m=this.el("mask");return arguments.length==1&&f&&!f.type?m.attr(f):arguments.length&&m.add(Array.prototype.slice.call(arguments,0)),m},l.ptrn=function(f,m,p,y,v,x,b,E){if(u(f,"object"))var T=f;else T={patternUnits:"userSpaceOnUse"},f&&(T.x=f),m&&(T.y=m),p!=null&&(T.width=p),y!=null&&(T.height=y),v!=null&&x!=null&&b!=null&&E!=null?T.viewBox=[v,x,b,E]:T.viewBox=[f||0,m||0,p||0,y||0];return this.el("pattern",T)},l.use=function(f){return f!=null?(f instanceof r&&(f.attr("id")||f.attr({id:t._.id(f)}),f=f.attr("id")),String(f).charAt()=="#"&&(f=f.substring(1)),this.el("use",{"xlink:href":"#"+f})):r.prototype.use.call(this)},l.symbol=function(f,m,p,y){var v={};return f!=null&&m!=null&&p!=null&&y!=null&&(v.viewBox=[f,m,p,y]),this.el("symbol",v)},l.text=function(f,m,p){var y={};return u(f,"object")?y=f:f!=null&&(y={x:f,y:m,text:p||""}),this.el("text",y)},l.line=function(f,m,p,y){var v={};return u(f,"object")?v=f:f!=null&&(v={x1:f,x2:p,y1:m,y2:y}),this.el("line",v)},l.polyline=function(f){arguments.length>1&&(f=Array.prototype.slice.call(arguments,0));var m={};return u(f,"object")&&!u(f,"array")?m=f:f!=null&&(m={points:f}),this.el("polyline",m)},l.polygon=function(f){arguments.length>1&&(f=Array.prototype.slice.call(arguments,0));var m={};return u(f,"object")&&!u(f,"array")?m=f:f!=null&&(m={points:f}),this.el("polygon",m)},(function(){var f=t._.$;function m(){return this.selectAll("stop")}function p(T,w){var R=f("stop"),I={offset:+w+"%"};T=t.color(T),I["stop-color"]=T.hex,T.opacity<1&&(I["stop-opacity"]=T.opacity),f(R,I);for(var L=this.stops(),N,_=0;_<L.length;_++){var j=parseFloat(L[_].attr("offset"));if(j>w){this.node.insertBefore(R,L[_].node),N=!0;break}}return N||this.node.appendChild(R),this}function y(){if(this.type=="linearGradient"){var T=f(this.node,"x1")||0,w=f(this.node,"x2")||1,R=f(this.node,"y1")||0,I=f(this.node,"y2")||0;return t._.box(T,R,math.abs(w-T),math.abs(I-R))}else{var L=this.node.cx||.5,N=this.node.cy||.5,_=this.node.r||0;return t._.box(L-_,N-_,_*2,_*2)}}function v(T){var w=T,R=this.stops();if(typeof T=="string"&&(w=eve("snap.util.grad.parse",null,"l(0,0,0,1)"+T).firstDefined().stops),!!t.is(w,"array")){for(var I=0;I<R.length;I++)if(w[I]){var L=t.color(w[I].color),N={offset:w[I].offset+"%"};N["stop-color"]=L.hex,L.opacity<1&&(N["stop-opacity"]=L.opacity),R[I].attr(N)}else R[I].remove();for(I=R.length;I<w.length;I++)this.addStop(w[I].color,w[I].offset);return this}}function x(T,w){var R=eve("snap.util.grad.parse",null,w).firstDefined(),I;if(!R)return null;R.params.unshift(T),R.type.toLowerCase()=="l"?I=b.apply(0,R.params):I=E.apply(0,R.params),R.type!=R.type.toLowerCase()&&f(I.node,{gradientUnits:"userSpaceOnUse"});for(var L=R.stops,N=L.length,_=0;_<N;_++){var j=L[_];I.addStop(j.color,j.offset)}return I}function b(T,w,R,I,L){var N=t._.make("linearGradient",T);return N.stops=m,N.addStop=p,N.getBBox=y,N.setStops=v,w!=null&&f(N.node,{x1:w,y1:R,x2:I,y2:L}),N}function E(T,w,R,I,L,N){var _=t._.make("radialGradient",T);return _.stops=m,_.addStop=p,_.getBBox=y,w!=null&&f(_.node,{cx:w,cy:R,r:I}),L!=null&&N!=null&&f(_.node,{fx:L,fy:N}),_}l.gradient=function(T){return x(this.defs,T)},l.gradientLinear=function(T,w,R,I){return b(this.defs,T,w,R,I)},l.gradientRadial=function(T,w,R,I,L){return E(this.defs,T,w,R,I,L)},l.toString=function(){var T=this.node.ownerDocument,w=T.createDocumentFragment(),R=T.createElement("div"),I=this.node.cloneNode(!0),L;return w.appendChild(R),R.appendChild(I),t._.$(I,{xmlns:"http://www.w3.org/2000/svg"}),L=R.innerHTML,w.removeChild(w.firstChild),L},l.toDataURL=function(){if(window&&window.btoa)return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(this)))},l.clear=function(){for(var T=this.node.firstChild,w;T;)w=T.nextSibling,T.tagName!="defs"?T.parentNode.removeChild(T):l.clear.call({node:T}),T=w}})()}),e.plugin(function(t,r,s,i){var a=r.prototype,l=t.is,u=t._.clone,d="hasOwnProperty",f=/,?([a-z]),?/gi,m=parseFloat,p=Math,y=p.PI,v=p.min,x=p.max,b=p.pow,E=p.abs;function T(K){var ne=T.ps=T.ps||{};return ne[K]?ne[K].sleep=100:ne[K]={sleep:100},setTimeout(function(){for(var ae in ne)ne[d](ae)&&ae!=K&&(ne[ae].sleep--,!ne[ae].sleep&&delete ne[ae])}),ne[K]}function w(K,ne,ae,P){return K==null&&(K=ne=ae=P=0),ne==null&&(ne=K.y,ae=K.width,P=K.height,K=K.x),{x:K,y:ne,width:ae,w:ae,he
861ight:P,h:P,x2:K+ae,y2:ne+P,cx:K+ae/2,cy:ne+P/2,r1:p.min(ae,P)/2,r2:p.max(ae,P)/2,r0:p.sqrt(ae*ae+P*P)/2,path:Ae(K,ne,ae,P),vb:[K,ne,ae,P].join(" ")}}function R(){return this.join(",").replace(f,"$1")}function I(K){var ne=u(K);return ne.toString=R,ne}function L(K,ne,ae,P,D,B,V,Y,H){return H==null?ie(K,ne,ae,P,D,B,V,Y):$(K,ne,ae,P,D,B,V,Y,Z(K,ne,ae,P,D,B,V,Y,H))}function N(K,ne){function ae(P){return+(+P).toFixed(3)}return t._.cacher(function(P,D,B){P instanceof r&&(P=P.attr("d")),P=Me(P);for(var V,Y,H,q,re="",ce={},be,Re=0,we=0,Be=P.length;we<Be;we++){if(H=P[we],H[0]=="M")V=+H[1],Y=+H[2];else{if(q=L(V,Y,H[1],H[2],H[3],H[4],H[5],H[6]),Re+q>D){if(ne&&!ce.start){if(be=L(V,Y,H[1],H[2],H[3],H[4],H[5],H[6],D-Re),re+=["C"+ae(be.start.x),ae(be.start.y),ae(be.m.x),ae(be.m.y),ae(be.x),ae(be.y)],B)return re;ce.start=re,re=["M"+ae(be.x),ae(be.y)+"C"+ae(be.n.x),ae(be.n.y),ae(be.end.x),ae(be.end.y),ae(H[5]),ae(H[6])].join(),Re+=q,V=+H[5],Y=+H[6];continue}if(!K&&!ne)return be=L(V,Y,H[1],H[2],H[3],H[4],H[5],H[6],D-Re),be}Re+=q,V=+H[5],Y=+H[6]}re+=H.shift()+H}return ce.end=re,be=K?Re:ne?ce:$(V,Y,H[0],H[1],H[2],H[3],H[4],H[5],1),be},null,t._.clone)}var _=N(1),j=N(),F=N(0,1);function $(K,ne,ae,P,D,B,V,Y,H){var q=1-H,re=b(q,3),ce=b(q,2),be=H*H,Re=be*H,we=re*K+ce*3*H*ae+q*3*H*H*D+Re*V,Be=re*ne+ce*3*H*P+q*3*H*H*B+Re*Y,Ye=K+2*H*(ae-K)+be*(D-2*ae+K),at=ne+2*H*(P-ne)+be*(B-2*P+ne),ht=ae+2*H*(D-ae)+be*(V-2*D+ae),Nt=P+2*H*(B-P)+be*(Y-2*B+P),Xe=q*K+H*ae,Oe=q*ne+H*P,It=q*D+H*V,wt=q*B+H*Y,vt=90-p.atan2(Ye-ht,at-Nt)*180/y;return{x:we,y:Be,m:{x:Ye,y:at},n:{x:ht,y:Nt},start:{x:Xe,y:Oe},end:{x:It,y:wt},alpha:vt}}function z(K,ne,ae,P,D,B,V,Y){t.is(K,"array")||(K=[K,ne,ae,P,D,B,V,Y]);var H=Fe.apply(null,K);return w(H.min.x,H.min.y,H.max.x-H.min.x,H.max.y-H.min.y)}function W(K,ne,ae){return ne>=K.x&&ne<=K.x+K.width&&ae>=K.y&&ae<=K.y+K.height}function J(K,ne){return K=w(K),ne=w(ne),W(ne,K.x,K.y)||W(ne,K.x2,K.y)||W(ne,K.x,K.y2)||W(ne,K.x2,K.y2)||W(K,ne.x,ne.y)||W(K,ne.x2,ne.y)||W(K,ne.x,ne.y2)||W(K,ne.x2,ne.y2)||(K.x<ne.x2&&K.x>ne.x||ne.x<K.x2&&ne.x>K.x)&&(K.y<ne.y2&&K.y>ne.y||ne.y<K.y2&&ne.y>K.y)}function oe(K,ne,ae,P,D){var B=-3*ne+9*ae-9*P+3*D,V=K*B+6*ne-12*ae+6*P;return K*V-3*ne+3*ae}function ie(K,ne,ae,P,D,B,V,Y,H){H==null&&(H=1),H=H>1?1:H<0?0:H;for(var q=H/2,re=12,ce=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],be=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],Re=0,we=0;we<re;we++){var Be=q*ce[we]+q,Ye=oe(Be,K,ae,D,V),at=oe(Be,ne,P,B,Y),ht=Ye*Ye+at*at;Re+=be[we]*p.sqrt(ht)}return q*Re}function Z(K,ne,ae,P,D,B,V,Y,H){if(!(H<0||ie(K,ne,ae,P,D,B,V,Y)<H)){var q=1,re=q/2,ce=q-re,be,Re=.01;for(be=ie(K,ne,ae,P,D,B,V,Y,ce);E(be-H)>Re;)re/=2,ce+=(be<H?1:-1)*re,be=ie(K,ne,ae,P,D,B,V,Y,ce);return ce}}function X(K,ne,ae,P,D,B,V,Y){if(!(x(K,ae)<v(D,V)||v(K,ae)>x(D,V)||x(ne,P)<v(B,Y)||v(ne,P)>x(B,Y))){var H=(K*P-ne*ae)*(D-V)-(K-ae)*(D*Y-B*V),q=(K*P-ne*ae)*(B-Y)-(ne-P)*(D*Y-B*V),re=(K-ae)*(B-Y)-(ne-P)*(D-V);if(re){var ce=H/re,be=q/re,Re=+ce.toFixed(2),we=+be.toFixed(2);if(!(Re<+v(K,ae).toFixed(2)||Re>+x(K,ae).toFixed(2)||Re<+v(D,V).toFixed(2)||Re>+x(D,V).toFixed(2)||we<+v(ne,P).toFixed(2)||we>+x(ne,P).toFixed(2)||we<+v(B,Y).toFixed(2)||we>+x(B,Y).toFixed(2)))return{x:ce,y:be}}}}function ue(K,ne,ae){var P=z(K),D=z(ne);if(!J(P,D))return ae?0:[];for(var B=ie.apply(0,K),V=ie.apply(0,ne),Y=~~(B/8),H=~~(V/8),q=[],re=[],ce={},be=ae?0:[],Re=0;Re<Y+1;Re++){var we=$.apply(0,K.concat(Re/Y));q.push({x:we.x,y:we.y,t:Re/Y})}for(Re=0;Re<H+1;Re++)we=$.apply(0,ne.concat(Re/H)),re.push({x:we.x,y:we.y,t:Re/H});for(Re=0;Re<Y;Re++)for(var Be=0;Be<H;Be++){var Ye=q[Re],at=q[Re+1],ht=re[Be],Nt=re[Be+1],Xe=E(at.x-Ye.x)<.001?"y":"x",Oe=E(Nt.x-ht.x)<.001?"y":"x",It=X(Ye.x,Ye.y,at.x,at.y,ht.x,ht.y,Nt.x,Nt.y);if(It){if(ce[It.x.toFixed(4)]==It.y.toFixed(4))continue;ce[It.x.toFixed(4)]=It.y.toFixed(4);var wt=Ye.t+E((It[Xe]-Ye[Xe])/(at[Xe]-Ye[Xe]))*(at.t-Ye.t),vt=ht.t+E((It[Oe]-ht[Oe])/(Nt[Oe]-ht[Oe]))*(Nt.t-ht.t);wt>=0&&wt<=1&&vt>=0&&vt<=1&&(ae?be++:be.push({x:It.x,y:It.y,t1:wt,t2:vt}))}}return be}function se(K,ne){return ee(K,ne)}function G(K,ne){return ee(K,ne,1)}function ee(K,ne,ae){K=Me(K),ne=Me(ne);for(var P,D,B,V,Y,H,q,re,ce,be,Re=ae?0:[],we=0,Be=K.length;we<Be;we++){var Ye=K[we];
861if(Ye[0]=="M")P=Y=Ye[1],D=H=Ye[2];else{Ye[0]=="C"?(ce=[P,D].concat(Ye.slice(1)),P=ce[6],D=ce[7]):(ce=[P,D,P,D,Y,H,Y,H],P=Y,D=H);for(var at=0,ht=ne.length;at<ht;at++){var Nt=ne[at];if(Nt[0]=="M")B=q=Nt[1],V=re=Nt[2];else{Nt[0]=="C"?(be=[B,V].concat(Nt.slice(1)),B=be[6],V=be[7]):(be=[B,V,B,V,q,re,q,re],B=q,V=re);var Xe=ue(ce,be,ae);if(ae)Re+=Xe;else{for(var Oe=0,It=Xe.length;Oe<It;Oe++)Xe[Oe].segment1=we,Xe[Oe].segment2=at,Xe[Oe].bez1=ce,Xe[Oe].bez2=be;Re=Re.concat(Xe)}}}}}return Re}function Ee(K,ne,ae){var P=Ce(K);return W(P,ne,ae)&&ee(K,[["M",ne,ae],["H",P.x2+10]],1)%2==1}function Ce(K){var ne=T(K);if(ne.bbox)return u(ne.bbox);if(!K)return w();K=Me(K);for(var ae=0,P=0,D=[],B=[],V,Y=0,H=K.length;Y<H;Y++)if(V=K[Y],V[0]=="M")ae=V[1],P=V[2],D.push(ae),B.push(P);else{var q=Fe(ae,P,V[1],V[2],V[3],V[4],V[5],V[6]);D=D.concat(q.min.x,q.max.x),B=B.concat(q.min.y,q.max.y),ae=V[5],P=V[6]}var re=v.apply(0,D),ce=v.apply(0,B),be=x.apply(0,D),Re=x.apply(0,B),we=w(re,ce,be-re,Re-ce);return ne.bbox=u(we),we}function Ae(K,ne,ae,P,D){if(D)return[["M",+K+ +D,ne],["l",ae-D*2,0],["a",D,D,0,0,1,D,D],["l",0,P-D*2],["a",D,D,0,0,1,-D,D],["l",D*2-ae,0],["a",D,D,0,0,1,-D,-D],["l",0,D*2-P],["a",D,D,0,0,1,D,-D],["z"]];var B=[["M",K,ne],["l",ae,0],["l",0,P],["l",-ae,0],["z"]];return B.toString=R,B}function me(K,ne,ae,P,D){if(D==null&&P==null&&(P=ae),K=+K,ne=+ne,ae=+ae,P=+P,D!=null)var B=Math.PI/180,V=K+ae*Math.cos(-P*B),Y=K+ae*Math.cos(-D*B),H=ne+ae*Math.sin(-P*B),q=ne+ae*Math.sin(-D*B),re=[["M",V,H],["A",ae,ae,0,+(D-P>180),0,Y,q]];else re=[["M",K,ne],["m",0,-P],["a",ae,P,0,1,1,0,2*P],["a",ae,P,0,1,1,0,-2*P],["z"]];return re.toString=R,re}var ve=t._unit2px,Q={path:function(K){return K.attr("path")},circle:function(K){var ne=ve(K);return me(ne.cx,ne.cy,ne.r)},ellipse:function(K){var ne=ve(K);return me(ne.cx||0,ne.cy||0,ne.rx,ne.ry)},rect:function(K){var ne=ve(K);return Ae(ne.x||0,ne.y||0,ne.width,ne.height,ne.rx,ne.ry)},image:function(K){var ne=ve(K);return Ae(ne.x||0,ne.y||0,ne.width,ne.height)},line:function(K){return"M"+[K.attr("x1")||0,K.attr("y1")||0,K.attr("x2"),K.attr("y2")]},polyline:function(K){return"M"+K.attr("points")},polygon:function(K){return"M"+K.attr("points")+"z"},deflt:function(K){var ne=K.node.getBBox();return Ae(ne.x,ne.y,ne.width,ne.height)}};function ge(K){var ne=T(K),ae=String.prototype.toLowerCase;if(ne.rel)return I(ne.rel);(!t.is(K,"array")||!t.is(K&&K[0],"array"))&&(K=t.parsePathString(K));var P=[],D=0,B=0,V=0,Y=0,H=0;K[0][0]=="M"&&(D=K[0][1],B=K[0][2],V=D,Y=B,H++,P.push(["M",D,B]));for(var q=H,re=K.length;q<re;q++){var ce=P[q]=[],be=K[q];if(be[0]!=ae.call(be[0]))switch(ce[0]=ae.call(be[0]),ce[0]){case"a":ce[1]=be[1],ce[2]=be[2],ce[3]=be[3],ce[4]=be[4],ce[5]=be[5],ce[6]=+(be[6]-D).toFixed(3),ce[7]=+(be[7]-B).toFixed(3);break;case"v":ce[1]=+(be[1]-B).toFixed(3);break;case"m":V=be[1],Y=be[2];default:for(var Re=1,we=be.length;Re<we;Re++)ce[Re]=+(be[Re]-(Re%2?D:B)).toFixed(3)}else{ce=P[q]=[],be[0]=="m"&&(V=be[1]+D,Y=be[2]+B);for(var Be=0,Ye=be.length;Be<Ye;Be++)P[q][Be]=be[Be]}var at=P[q].length;switch(P[q][0]){case"z":D=V,B=Y;break;case"h":D+=+P[q][at-1];break;case"v":B+=+P[q][at-1];break;default:D+=+P[q][at-2],B+=+P[q][at-1]}}return P.toString=R,ne.rel=I(P),P}function le(K){var ne=T(K);if(ne.abs)return I(ne.abs);if((!l(K,"array")||!l(K&&K[0],"array"))&&(K=t.parsePathString(K)),!K||!K.length)return[["M",0,0]];var ae=[],P=0,D=0,B=0,V=0,Y=0,H;K[0][0]=="M"&&(P=+K[0][1],D=+K[0][2],B=P,V=D,Y++,ae[0]=["M",P,D]);for(var q=K.length==3&&K[0][0]=="M"&&K[1][0].toUpperCase()=="R"&&K[2][0].toUpperCase()=="Z",re,ce,be=Y,Re=K.length;be<Re;be++){if(ae.push(re=[]),ce=K[be],H=ce[0],H!=H.toUpperCase())switch(re[0]=H.toUpperCase(),re[0]){case"A":re[1]=ce[1],re[2]=ce[2],re[3]=ce[3],re[4]=ce[4],re[5]=ce[5],re[6]=+ce[6]+P,re[7]=+ce[7]+D;break;case"V":re[1]=+ce[1]+D;break;case"H":re[1]=+ce[1]+P;break;case"R":for(var we=[P,D].concat(ce.slice(1)),Be=2,Ye=we.length;Be<Ye;Be++)we[Be]=+we[Be]+P,we[++Be]=+we[Be]+D;ae.pop(),ae=ae.concat(Ge(we,q));break;case"O":ae.pop(),we=me(P,D,ce[1],ce[2]),we.push(we[0]),ae=ae.concat(we);break;case"U":ae.pop(),ae=ae.concat(me(P,D,ce[1],ce[2],ce[3])),re=["U"].concat(ae[ae.length-1].slice(-2));break;case"M":B=+ce[1]+P,V=+ce[2]+D;default:for(Be=1,Ye=ce.length;Be<Ye;Be++)re[Be]=+ce[Be]+(Be%2?P:D)}else if(H=="R")we=[P,D].concat(ce.slice(1)),ae.pop(),ae=ae.concat(Ge(we,q)),re=["R"].concat(ce.slice(-2));else if(H=="O")ae.pop(),we=me(P,D,ce[1],ce[2]),we.push(we[0]),ae=ae.concat(we);else if(H=="U")ae.pop(),ae=ae.concat(me(P,D,ce[1],ce[2],ce[3])),re=["U"].concat(ae[ae.length-1].slice(-2));else for(var at=0,ht=ce.length;at<ht;at++)re[at]=ce[at];if(H=H.toUpperCase(),H!="O")switch(re[0]){case"Z":P=+B,D=+V;break;case"H":P=re[1];break;case"V":D=re[1];break;case"M":B=re[re.length-2],V=re[re.length-1];default:P=re[re.length-2],D=re[re.length-1]}}return ae.toString=R,ne.abs=I(ae),ae}function pe(K,ne,ae,P){return[K,ne,ae,P,ae,P]}function Ie(K,ne,ae,P,D,B){var V=.3333333333333333,Y=2/3;return[V*K+Y*ae,V*ne+Y*P,V*D+Y*ae,V*B+Y*P,D,B]}function Ne(K,ne,ae,P,D,B,V,Y,H,q){var re=y*120/180,ce=y/180*(+D||0),be=[],Re,we=t._.cacher(function(ss,ul,Xi){var fh=ss*p.cos(Xi)-ul*p.sin(Xi),wu=ss*p.sin(Xi)+ul*p.cos(Xi);return{x:fh,y:wu}});if(!ae||!P)return[K,ne,Y,H,Y,H];if(q)wt=q[0],vt=q[1],Oe=q[2],It=q[3];else{Re=we(K,ne,-ce),K=Re.x,ne=Re.y,Re=we(Y,H,-ce),Y=Re.x,H=Re.y;var Be=(K-Y)/2,Ye=(ne-H)/2,at=Be*Be/(ae*ae)+Ye*Ye/(P*P);at>1&&(at=p.sqrt(at),ae=at*ae,P=at*P);var ht=ae*ae,Nt=P*P,Xe=(B==V?-1:1)*p.sqrt(E((ht*Nt-ht*Ye*Ye-Nt*Be*Be)/(ht*Ye*Ye+Nt*Be*Be))),Oe=Xe*ae*Ye/P+(K+Y)/2,It=Xe*-P*Be/ae+(ne+H)/2,wt=p.asin(((ne-It)/P).toFixed(9)),vt=p.asin(((H-It)/P).toFixed(9));wt=K<Oe?y-wt:wt,vt=Y<Oe?y-vt:vt,wt<0&&(wt=y*2+wt),vt<0&&(vt=y*2+vt),V&&wt>vt&&(wt=wt-y*2),!V&&vt>wt&&(vt=vt-y*2)}var Wa=vt-wt;if(E(Wa)>re){var yu=vt,vu=Y,xu=H;vt=wt+re*(V&&vt>wt?1:-1),Y=Oe+ae*p.cos(vt),H=It+P*p.sin(vt),be=Ne(Y,H,ae,P,D,0,V,vu,xu,[vt,yu,Oe,It])}Wa=vt-wt;
vendor: 8,645 bytes, line 861
861var Cu=p.cos(wt),cl=p.sin(wt),bu=p.cos(vt),qi=p.sin(vt),Ka=p.tan(Wa/4),ri=4/3*ae*Ka,Su=4/3*P*Ka,si=[K,ne],jr=[K+ri*cl,ne-Su*Cu],Yi=[Y+ri*qi,H-Su*bu],qa=[Y,H];if(jr[0]=2*si[0]-jr[0],jr[1]=2*si[1]-jr[1],q)return[jr,Yi,qa].concat(be);be=[jr,Yi,qa].concat(be).join().split(",");for(var Eu=[],rs=0,dh=be.length;rs<dh;rs++)Eu[rs]=rs%2?we(be[rs-1],be[rs],ce).y:we(be[rs],be[rs+1],ce).x;return Eu}function Fe(K,ne,ae,P,D,B,V,Y){for(var H=[],q=[[],[]],re,ce,be,Re,we,Be,Ye,at,ht=0;ht<2;++ht){if(ht==0?(ce=6*K-12*ae+6*D,re=-3*K+9*ae-9*D+3*V,be=3*ae-3*K):(ce=6*ne-12*P+6*B,re=-3*ne+9*P-9*B+3*Y,be=3*P-3*ne),E(re)<1e-12){if(E(ce)<1e-12)continue;Re=-be/ce,0<Re&&Re<1&&H.push(Re);continue}Ye=ce*ce-4*be*re,at=p.sqrt(Ye),!(Ye<0)&&(we=(-ce+at)/(2*re),0<we&&we<1&&H.push(we),Be=(-ce-at)/(2*re),0<Be&&Be<1&&H.push(Be))}for(var Nt=H.length,Xe=Nt,Oe;Nt--;)Re=H[Nt],Oe=1-Re,q[0][Nt]=Oe*Oe*Oe*K+3*Oe*Oe*Re*ae+3*Oe*Re*Re*D+Re*Re*Re*V,q[1][Nt]=Oe*Oe*Oe*ne+3*Oe*Oe*Re*P+3*Oe*Re*Re*B+Re*Re*Re*Y;return q[0][Xe]=K,q[1][Xe]=ne,q[0][Xe+1]=V,q[1][Xe+1]=Y,q[0].length=q[1].length=Xe+2,{min:{x:v.apply(0,q[0]),y:v.apply(0,q[1])},max:{x:x.apply(0,q[0]),y:x.apply(0,q[1])}}}function Me(K,ne){var ae=!ne&&T(K);if(!ne&&ae.curve)return I(ae.curve);for(var P=le(K),D=ne&&le(ne),B={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},V={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},Y=function(Xe,Oe,It){var wt,vt;if(!Xe)return["C",Oe.x,Oe.y,Oe.x,Oe.y,Oe.x,Oe.y];switch(!(Xe[0]in{T:1,Q:1})&&(Oe.qx=Oe.qy=null),Xe[0]){case"M":Oe.X=Xe[1],Oe.Y=Xe[2];break;case"A":Xe=["C"].concat(Ne.apply(0,[Oe.x,Oe.y].concat(Xe.slice(1))));break;case"S":It=="C"||It=="S"?(wt=Oe.x*2-Oe.bx,vt=Oe.y*2-Oe.by):(wt=Oe.x,vt=Oe.y),Xe=["C",wt,vt].concat(Xe.slice(1));break;case"T":It=="Q"||It=="T"?(Oe.qx=Oe.x*2-Oe.qx,Oe.qy=Oe.y*2-Oe.qy):(Oe.qx=Oe.x,Oe.qy=Oe.y),Xe=["C"].concat(Ie(Oe.x,Oe.y,Oe.qx,Oe.qy,Xe[1],Xe[2]));break;case"Q":Oe.qx=Xe[1],Oe.qy=Xe[2],Xe=["C"].concat(Ie(Oe.x,Oe.y,Xe[1],Xe[2],Xe[3],Xe[4]));break;case"L":Xe=["C"].concat(pe(Oe.x,Oe.y,Xe[1],Xe[2]));break;case"H":Xe=["C"].concat(pe(Oe.x,Oe.y,Xe[1],Oe.y));break;case"V":Xe=["C"].concat(pe(Oe.x,Oe.y,Oe.x,Xe[1]));break;case"Z":Xe=["C"].concat(pe(Oe.x,Oe.y,Oe.X,Oe.Y));break}return Xe},H=function(Xe,Oe){if(Xe[Oe].length>7){Xe[Oe].shift();for(var It=Xe[Oe];It.length;)re[Oe]="A",D&&(ce[Oe]="A"),Xe.splice(Oe++,0,["C"].concat(It.splice(0,6)));Xe.splice(Oe,1),Be=x(P.length,D&&D.length||0)}},q=function(Xe,Oe,It,wt,vt){Xe&&Oe&&Xe[vt][0]=="M"&&Oe[vt][0]!="M"&&(Oe.splice(vt,0,["M",wt.x,wt.y]),It.bx=0,It.by=0,It.x=Xe[vt][1],It.y=Xe[vt][2],Be=x(P.length,D&&D.length||0))},re=[],ce=[],be="",Re="",we=0,Be=x(P.length,D&&D.length||0);we<Be;we++){P[we]&&(be=P[we][0]),be!="C"&&(re[we]=be,we&&(Re=re[we-1])),P[we]=Y(P[we],B,Re),re[we]!="A"&&be=="C"&&(re[we]="C"),H(P,we),D&&(D[we]&&(be=D[we][0]),be!="C"&&(ce[we]=be,we&&(Re=ce[we-1])),D[we]=Y(D[we],V,Re),ce[we]!="A"&&be=="C"&&(ce[we]="C"),H(D,we)),q(P,D,B,V,we),q(D,P,V,B,we);var Ye=P[we],at=D&&D[we],ht=Ye.length,Nt=D&&at.length;B.x=Ye[ht-2],B.y=Ye[ht-1],B.bx=m(Ye[ht-4])||B.x,B.by=m(Ye[ht-3])||B.y,V.bx=D&&(m(at[Nt-4])||V.x),V.by=D&&(m(at[Nt-3])||V.y),V.x=D&&at[Nt-2],V.y=D&&at[Nt-1]}return D||(ae.curve=I(P)),D?[P,D]:P}function ke(K,ne){if(!ne)return K;var ae,P,D,B,V,Y,H;for(K=Me(K),D=0,V=K.length;D<V;D++)for(H=K[D],B=1,Y=H.length;B<Y;B+=2)ae=ne.x(H[B],H[B+1]),P=ne.y(H[B],H[B+1]),H[B]=ae,H[B+1]=P;return K}function Ge(K,ne){for(var ae=[],P=0,D=K.length;D-2*!ne>P;P+=2){var B=[{x:+K[P-2],y:+K[P-1]},{x:+K[P],y:+K[P+1]},{x:+K[P+2],y:+K[P+3]},{x:+K[P+4],y:+K[P+5]}];ne?P?D-4==P?B[3]={x:+K[0],y:+K[1]}:D-2==P&&(B[2]={x:+K[0],y:+K[1]},B[3]={x:+K[2],y:+K[3]}):B[0]={x:+K[D-2],y:+K[D-1]}:D-4==P?B[3]=B[2]:P||(B[0]={x:+K[P],y:+K[P+1]}),ae.push(["C",(-B[0].x+6*B[1].x+B[2].x)/6,(-B[0].y+6*B[1].y+B[2].y)/6,(B[1].x+6*B[2].x-B[3].x)/6,(B[1].y+6*B[2].y-B[3].y)/6,B[2].x,B[2].y])}return ae}t.path=T,t.path.getTotalLength=_,t.path.getPointAtLength=j,t.path.getSubpath=function(K,ne,ae){if(this.getTotalLength(K)-ae<1e-6)return F(K,ne).end;var P=F(K,ae,1);return ne?F(P,ne).end:P},a.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()},a.getPointAtLength=function(K){return j(this.attr("d"),K)},a.getSubpath=function(K,ne){return t.path.getSubpath(this.attr("d"),K,ne)},t._.box=w,t.path.findDotsAtSegment=$,t.path.bezierBBox=z,t.path.isPointInsideBBox=W,t.closest=function(K,ne,ae,P){for(var D=100,B=w(K-D/2,ne-D/2,D,D),V=[],Y=ae[0].hasOwnProperty("x")?function(Be){return{x:ae[Be].x,y:ae[Be].y}}:function(Be){return{x:ae[Be],y:P[Be]}},H=0;D<=1e6&&!H;){for(var q=0,re=ae.length;q<re;q++){var ce=Y(q);if(W(B,ce.x,ce.y)){H++,V.push(ce);break}}H||(D*=2,B=w(K-D/2,ne-D/2,D,D))}if(D!=1e6){var be=1/0,Re;for(q=0,re=V.length;q<re;q++){var we=t.len(K,ne,V[q].x,V[q].y);be>we&&(be=we,V[q].len=we,Re=V[q])}return Re}},t.path.isBBoxIntersect=J,t.path.intersection=se,t.path.intersectionNumber=G,t.path.isPointInside=Ee,t.path.getBBox=Ce,t.path.get=Q,t.path.toRelative=ge,t.path.toAbsolute=le,t.path.toCubic=Me,t.path.map=ke,t.path.toString=R,t.path.clone=I}),e.plugin(function(t,r,s,i){var a=Math.max,l=Math.min,u=function(f){if(this.items=[],this.bindings={},this.length=0,this.type="set",f)for(var m=0,p=f.length;m<p;m++)f[m]&&(this[this.items.length]=this.items[this.items.length]=f[m],this.length++)},d=u.prototype;d.push=function(){for(var f,m,p=0,y=arguments.length;p<y;p++)f=arguments[p],f&&(m=this.items.length,this[m]=this.items[m]=f,this.length++);return this},d.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},d.forEach=function(f,m){for(var p=0,y=this.items.length;p<y;p++)if(f.call(m,this.items[p],p)===!1)return this;return this},d.animate=function(f,m,p,y){typeof p=="function"&&!p.length&&(y=p,p=n.linear),f instanceof t._.Animation&&(y=f.callback,p=f.easing,m=p.dur,f=f.attr);var v=arguments;if(t.is(f,"array")&&t.is(v[v.length-1],"array"))var x=!0;var b,E=function(){b?this.b=b:b=this.b},T=0,w=this,R=y&&function(){++T==w.length&&y.call(this)};return this.forEach(function(I,L){eve.once("snap.animcreated."+I.id,E),x?v[L]&&I.animate.apply(I,v[L]):I.animate(f,m,p,R)})},d.remove=function(){for(;this.length;)this.pop().remove();return this},d.bind=function(f,m,p){var y={};if(typeof m=="function")this.bindings[f]=m;else{var v=p||f;this.bindings[f]=function(x){y[v]=x,m.attr(y)}}return this},d.attr=function(f){var m={};for(var p in f)this.bindings[p]?this.bindings[p](f[p]):m[p]=f[p];for(var y=0,v=this.items.length;y<v;y++)this.items[y].attr(m);return this},d.clear=function(){for(;this.length;)this.pop()},d.splice=function(f,m,p){f=f<0?a(this.length+f,0):f,m=a(0,l(this.length-f,m));var y=[],v=[],x=[],b;for(b=2;b<arguments.length;b++)x.push(arguments[b]);for(b=0;b<m;b++)v.push(this[f+b]);for(;b<this.length-f;b++)y.push(this[f+b]);var E=x.length;for(b=0;b<E+y.length;b++)this.items[f+b]=this[f+b]=b<E?x[b]:y[b-E];for(b=this.items.length=this.length-=m-E;this[b];)delete this[b++];return new u(v)},d.exclude=function(f){for(var m=0,p=this.length;m<p;m++)if(this[m]==f)return this.splice(m,1),!0;return!1},d.insertAfter=function(f){for(var m=this.items.length;m--;)this.items[m].insertAfter(f);return this},d.getBBox=function(){for(var f=[],m=[],p=[],y=[],v=this.items.length;v--;)if(!this.items[v].removed){var x=this.items[v].getBBox();f.push(x.x),m.push(x.y),p.push(x.x+x.width),y.push(x.y+x.height)}return f=l.apply(0,f),m=l.apply(0,m),p=a.apply(0,p),y=a.apply(0,y),{x:f,y:m,x2:p,y2:y,width:p-f,height:y-m,cx:f+(p-f)/2,cy:m+(y-m)/2}},d.clone=function(f){f=new u;for(var m=0,p=this.items.length;m<p;m++)f.push(this.items[m].clone());return f},d.toString=function(){return"Snap‘s set"},d.type="set",t.Set=u,t.set=function(){var f=new u;return arguments.length&&f.push.apply(f,Array.prototype.slice.call(arguments,0)),f}}),e.plugin(function(t,r,s,i){var a={},l=/[%a-z]+$/i,u=String;a.stroke=a.fill="colour";function d(w){var R=w[0];switch(R.toLowerCase()){case"t":return[R,0,0];case"m":return[R,1,0,0,1,0,0];case"r":return w.length==4?[R,0,w[2],w[3]]:[R,0];case"s":return w.length==5?[R,1,1,w[3],w[4]]:w.length==3?[R,1,1]:[R,1]}}function f(w,R,I){w=w||new t.Matrix,R=R||new t.Matrix,w=t.parseTransformString(w.toTransformString())||[],R=t.parseTransformString(R.toTransformString())||[];for(var L=Math.max(w.length,R.length),N=[],_=[],j=0,F,$,z,W;j<L;j++){if(z=w[j]||d(R[j]),W=R[j]||d(z),z[0]!=W[0]||z[0].toLowerCase()=="r"&&(z[2]!=W[2]||z[3]!=W[3])||z[0].toLowerCase()=="s"&&(z[3]!=W[3]||z[4]!=W[4])){w=t._.transform2matrix(w,I()),R=t._.transform2matrix(R,I()),N=[["m",w.a,w.b,w.c,w.d,w.e,w.f]],_=[["m",R.a,R.b,R.c,R.d,R.e,R.f]];break}for(N[j]=[],_[j]=[],F=0,$=Math.max(z.length,W.length);F<$;F++)F in z&&(N[j][F]=z[F]),F in W&&(_[j][F]=W[F])}
861return{from:b(N),to:b(_),f:x(N)}}function m(w){return w}function p(w){return function(R){return+R.toFixed(3)+w}}function y(w){return w.join(" ")}function v(w){return t.rgb(w[0],w[1],w[2],w[3])}function x(w){var R=0,I,L,N,_,j,F,$=[];for(I=0,L=w.length;I<L;I++){for(j="[",F=['"'+w[I][0]+'"'],N=1,_=w[I].length;N<_;N++)F[N]="val["+R+++"]";j+=F+"]",$[I]=j}return Function("val","return Snap.path.toString.call(["+$+"])")}function b(w){for(var R=[],I=0,L=w.length;I<L;I++)for(var N=1,_=w[I].length;N<_;N++)R.push(w[I][N]);return R}function E(w){return isFinite(w)}function T(w,R){return!t.is(w,"array")||!t.is(R,"array")?!1:w.toString()==R.toString()}r.prototype.equal=function(w,R){return eve("snap.util.equal",this,w,R).firstDefined()},eve.on("snap.util.equal",function(w,R){var I,L,N=u(this.attr(w)||""),_=this;if(a[w]=="colour")return I=t.color(N),L=t.color(R),{from:[I.r,I.g,I.b,I.opacity],to:[L.r,L.g,L.b,L.opacity],f:v};if(w=="viewBox")return I=this.attr(w).vb.split(" ").map(Number),L=R.split(" ").map(Number),{from:I,to:L,f:y};if(w=="transform"||w=="gradientTransform"||w=="patternTransform")return typeof R=="string"&&(R=u(R).replace(/\.{3}|\u2026/g,N)),N=this.matrix,t._.rgTransform.test(R)?R=t._.transform2matrix(R,this.getBBox()):R=t._.transform2matrix(t._.svgTransform2string(R),this.getBBox()),f(N,R,function(){return _.getBBox(1)});if(w=="d"||w=="path")return I=t.path.toCubic(N,R),{from:b(I[0]),to:b(I[1]),f:x(I[0])};if(w=="points")return I=u(N).split(t._.separator),L=u(R).split(t._.separator),{from:I,to:L,f:function($){return $}};if(E(N)&&E(R))return{from:parseFloat(N),to:parseFloat(R),f:m};var j=N.match(l),F=u(R).match(l);return j&&T(j,F)?{from:parseFloat(N),to:parseFloat(R),f:p(j)}:{from:this.asPX(w),to:this.asPX(w,R),f:m}})}),e.plugin(function(t,r,s,i){for(var a=r.prototype,l="hasOwnProperty",u=("createTouch"in i.doc),d=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],f={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},m=function(R,I){var L=R=="y"?"scrollTop":"scrollLeft",N=I&&I.node?I.node.ownerDocument:i.doc;return N[L in N.documentElement?"documentElement":"body"][L]},p=function(){return this.originalEvent.preventDefault()},y=function(){return this.originalEvent.stopPropagation()},v=function(R,I,L,N){var _=u&&f[I]?f[I]:I,j=function(F){var $=m("y",N),z=m("x",N);if(u&&f[l](I)){for(var W=0,J=F.targetTouches&&F.targetTouches.length;W<J;W++)if(F.targetTouches[W].target==R||R.contains(F.targetTouches[W].target)){var oe=F;F=F.targetTouches[W],F.originalEvent=oe,F.preventDefault=p,F.stopPropagation=y;break}}var ie=F.clientX+z,Z=F.clientY+$;return L.call(N,F,ie,Z)};return I!==_&&R.addEventListener(I,j,!1),R.addEventListener(_,j,!1),function(){return I!==_&&R.removeEventListener(I,j,!1),R.removeEventListener(_,j,!1),!0}},x=[],b=function(R){for(var I=R.clientX,L=R.clientY,N=m("y"),_=m("x"),j,F=x.length;F--;){if(j=x[F],u){for(var $=R.touches&&R.touches.length,z;$--;)if(z=R.touches[$],z.identifier==j.el._drag.id||j.el.node.contains(z.target)){I=z.clientX,L=z.clientY,(R.originalEvent?R.originalEvent:R).preventDefault();break}}else R.preventDefault();var W=j.el.node;W.nextSibling,W.parentNode,W.style.display,I+=_,L+=N,eve("snap.drag.move."+j.el.id,j.move_scope||j.el,I-j.el._drag.x,L-j.el._drag.y,I,L,R)}},E=function(R){t.unmousemove(b).unmouseup(E);for(var I=x.length,L;I--;)L=x[I],L.el._drag={},eve("snap.drag.end."+L.el.id,L.end_scope||L.start_scope||L.move_scope||L.el,R),eve.off("snap.drag.*."+L.el.id);x=[]},T=d.length;T--;)(function(R){t[R]=a[R]=function(I,L){if(t.is(I,"function"))this.events=this.events||[],this.events.push({name:R,f:I,unbind:v(this.node||document,R,I,L||this)});else for(var N=0,_=this.events.length;N<_;N++)if(this.events[N].name==R)try{this.events[N].f.call(this)}catch{}return this},t["un"+R]=a["un"+R]=function(I){for(var L=this.events||[],N=L.length;N--;)if(L[N].name==R&&(L[N].f==I||!I))return L[N].unbind(),L.splice(N,1),!L.length&&delete this.events,this;return this}})(d[T]);
861a.hover=function(R,I,L,N){return this.mouseover(R,L).mouseout(I,N||L)},a.unhover=function(R,I){return this.unmouseover(R).unmouseout(I)};var w=[];a.drag=function(R,I,L,N,_,j){var F=this;if(!arguments.length){var $;return F.drag(function(J,oe){this.attr({transform:$+($?"T":"t")+[J,oe]})},function(){$=this.transform().local})}function z(J,oe,ie){(J.originalEvent||J).preventDefault(),F._drag.x=oe,F._drag.y=ie,F._drag.id=J.identifier,!x.length&&t.mousemove(b).mouseup(E),x.push({el:F,move_scope:N,start_scope:_,end_scope:j}),I&&eve.on("snap.drag.start."+F.id,I),R&&eve.on("snap.drag.move."+F.id,R),L&&eve.on("snap.drag.end."+F.id,L),eve("snap.drag.start."+F.id,_||N||F,oe,ie,J)}function W(J,oe,ie){eve("snap.draginit."+F.id,F,J,oe,ie)}return eve.on("snap.draginit."+F.id,z),F._drag={},w.push({el:F,start:z,init:W}),F.mousedown(W),F},a.undrag=function(){for(var R=w.length;R--;)w[R].el==this&&(this.unmousedown(w[R].init),w.splice(R,1),eve.unbind("snap.drag.*."+this.id),eve.unbind("snap.draginit."+this.id));return!w.length&&t.unmousemove(b).unmouseup(E),this}}),e.plugin(function(t,r,s,i){r.prototype;var a=s.prototype,l=/^\s*url\((.+)\)/,u=String,d=t._.$;t.filter={},a.filter=function(f){var m=this;m.type!="svg"&&(m=m.paper);var p=t.parse(u(f)),y=t._.id();m.node.offsetWidth,m.node.offsetHeight;var v=d("filter");return d(v,{id:y,filterUnits:"userSpaceOnUse"}),v.appendChild(p.node),m.defs.appendChild(v),new r(v)},eve.on("snap.util.getattr.filter",function(){eve.stop();var f=d(this.node,"filter");if(f){var m=u(f).match(l);return m&&t.select(m[1])}}),eve.on("snap.util.attr.filter",function(f){if(f instanceof r&&f.type=="filter"){eve.stop();var m=f.node.id;m||(d(f.node,{id:f.id}),m=f.id),d(this.node,{filter:t.url(m)})}(!f||f=="none")&&(eve.stop(),this.node.removeAttribute("filter"))}),t.filter.blur=function(f,m){f==null&&(f=2);var p=m==null?f:[f,m];return t.format('<feGaussianBlur stdDeviation="{def}"/>',{def:p})},t.filter.blur.toString=function(){return this()},t.filter.shadow=function(f,m,p,y,v){return v==null&&(y==null?(v=p,p=4,y="#000"):(v=y,y=p,p=4)),p==null&&(p=4),v==null&&(v=1),f==null&&(f=0,m=2),m==null&&(m=f),y=t.color(y),t.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feComponentTransfer><feFuncA type="linear" slope="{opacity}"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>',{color:y,dx:f,dy:m,blur:p,opacity:v})},t.filter.shadow.toString=function(){return this()},t.filter.grayscale=function(f){return f==null&&(f=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-f),b:.7152-.7152*(1-f),c:.0722-.0722*(1-f),d:.2126-.2126*(1-f),e:.7152+.2848*(1-f),f:.0722-.0722*(1-f),g:.2126-.2126*(1-f),h:.0722+.9278*(1-f)})},t.filter.grayscale.toString=function(){return this()},t.filter.sepia=function(f){return f==null&&(f=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-f),b:.769-.769*(1-f),c:.189-.189*(1-f),d:.349-.349*(1-f),e:.686+.314*(1-f),f:.168-.168*(1-f),g:.272-.272*(1-f),h:.534-.534*(1-f),i:.131+.869*(1-f)})},t.filter.sepia.toString=function(){return this()},t.filter.saturate=function(f){return f==null&&(f=1),t.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-f})},t.filter.saturate.toString=function(){return this()},t.filter.hueRotate=function(f){return f=f||0,t.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:f})},t.filter.hueRotate.toString=function(){return this()},t.filter.invert=function(f){return f==null&&(f=1),t.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>',{amount:f,amount2:1-f})},t.filter.invert.toString=function(){return this()},t.filter.brightness=function(f){return f==null&&(f=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>',{amount:f})},t.filter.brightness.toString=function(){return this()},t.filter.contrast=function(f){return f==null&&(f=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>',{amount:f,amount2:.5-f/2})},t.filter.contrast.toString=function(){return this()}}),e.plugin(function(t,r,s,i,a){var l=t._.box,u=t.is,d=/^[^a-z]*([tbmlrc])/i,f=function(){return"T"+this.dx+","+this.dy};r.prototype.getAlign=function(m,p){p==null&&u(m,"string")&&(p=m,m=null),m=m||this.paper;var y=m.getBBox?m.getBBox():l(m),v=this.getBBox(),x={};switch(p=p&&p.match(d),p=p?p[1].toLowerCase():"c",p){case"t":x.dx=0,x.dy=y.y-v.y;break;case"b":x.dx=0,x.dy=y.y2-v.y2;break;case"m":x.dx=0,x.dy=y.cy-v.cy;break;case"l":x.dx=y.x-v.x,x.dy=0;break;case"r":x.dx=y.x2-v.x2,x.dy=0;break;default:x.dx=y.cx-v.cx,x.dy=0;break}return x.toString=f,x},r.prototype.align=function(m,p){return this.transform("..."+this.getAlign(m,p))}}),e.plugin(function(t,r,s,i,a){var l=r.prototype,u=t.is,d=String,f="hasOwnProperty";function m(y,v,x){return function(b){var E=b.slice(y,v);return E.length==1&&(E=E[0]),x?x(E):E}}var p=function(y,v,x,b){typeof x=="function"&&!x.length&&(b=x,x=n.linear),this.attr=y,this.dur=v,x&&(this.easing=
861x),b&&(this.callback=b)};t._.Animation=p,t.animation=function(y,v,x,b){return new p(y,v,x,b)},l.inAnim=function(){var y=this,v=[];for(var x in y.anims)y.anims[f](x)&&(function(b){v.push({anim:new p(b._attrs,b.dur,b.easing,b._callback),mina:b,curStatus:b.status(),status:function(E){return b.status(E)},stop:function(){b.stop()}})})(y.anims[x]);return v},t.animate=function(y,v,x,b,E,T){typeof E=="function"&&!E.length&&(T=E,E=n.linear);var w=n.time(),R=n(y,v,w,w+b,n.time,x,E);return T&&eve.once("mina.finish."+R.id,T),R},l.stop=function(){for(var y=this.inAnim(),v=0,x=y.length;v<x;v++)y[v].stop();return this},l.animate=function(y,v,x,b){typeof x=="function"&&!x.length&&(b=x,x=n.linear),y instanceof p&&(b=y.callback,x=y.easing,v=y.dur,y=y.attr);var E=[],T=[],w={},R,I,L,N,_=this;for(var j in y)if(y[f](j)){_.equal?(N=_.equal(j,d(y[j])),R=N.from,I=N.to,L=N.f):(R=+_.attr(j),I=+y[j]);var F=u(R,"array")?R.length:1;w[j]=m(E.length,E.length+F,L),E=E.concat(R),T=T.concat(I)}var $=n.time(),z=n(E,T,$,$+v,n.time,function(W){var J={};for(var oe in w)w[f](oe)&&(J[oe]=w[oe](W));_.attr(J)},x);return _.anims[z.id]=z,z._attrs=y,z._callback=b,eve("snap.animcreated."+_.id,z),eve.once("mina.finish."+z.id,function(){eve.off("mina.*."+z.id),delete _.anims[z.id],b&&b.call(_)}),eve.once("mina.stop."+z.id,function(){eve.off("mina.*."+z.id),delete _.anims[z.id]}),_}}),e.plugin(function(t,r,s,i){var a="#ffebee#ffcdd2#ef9a9a#e57373#ef5350#f44336#e53935#d32f2f#c62828#b71c1c#ff8a80#ff5252#ff1744#d50000",l="#FCE4EC#F8BBD0#F48FB1#F06292#EC407A#E91E63#D81B60#C2185B#AD1457#880E4F#FF80AB#FF4081#F50057#C51162",u="#F3E5F5#E1BEE7#CE93D8#BA68C8#AB47BC#9C27B0#8E24AA#7B1FA2#6A1B9A#4A148C#EA80FC#E040FB#D500F9#AA00FF",d="#EDE7F6#D1C4E9#B39DDB#9575CD#7E57C2#673AB7#5E35B1#512DA8#4527A0#311B92#B388FF#7C4DFF#651FFF#6200EA",f="#E8EAF6#C5CAE9#9FA8DA#7986CB#5C6BC0#3F51B5#3949AB#303F9F#283593#1A237E#8C9EFF#536DFE#3D5AFE#304FFE",m="#E3F2FD#BBDEFB#90CAF9#64B5F6#64B5F6#2196F3#1E88E5#1976D2#1565C0#0D47A1#82B1FF#448AFF#2979FF#2962FF",p="#E1F5FE#B3E5FC#81D4FA#4FC3F7#29B6F6#03A9F4#039BE5#0288D1#0277BD#01579B#80D8FF#40C4FF#00B0FF#0091EA",y="#E0F7FA#B2EBF2#80DEEA#4DD0E1#26C6DA#00BCD4#00ACC1#0097A7#00838F#006064#84FFFF#18FFFF#00E5FF#00B8D4",v="#E0F2F1#B2DFDB#80CBC4#4DB6AC#26A69A#009688#00897B#00796B#00695C#004D40#A7FFEB#64FFDA#1DE9B6#00BFA5",x="#E8F5E9#C8E6C9#A5D6A7#81C784#66BB6A#4CAF50#43A047#388E3C#2E7D32#1B5E20#B9F6CA#69F0AE#00E676#00C853",b="#F1F8E9#DCEDC8#C5E1A5#AED581#9CCC65#8BC34A#7CB342#689F38#558B2F#33691E#CCFF90#B2FF59#76FF03#64DD17",E="#F9FBE7#F0F4C3#E6EE9C#DCE775#D4E157#CDDC39#C0CA33#AFB42B#9E9D24#827717#F4FF81#EEFF41#C6FF00#AEEA00",T="#FFFDE7#FFF9C4#FFF59D#FFF176#FFEE58#FFEB3B#FDD835#FBC02D#F9A825#F57F17#FFFF8D#FFFF00#FFEA00#FFD600",w="#FFF8E1#FFECB3#FFE082#FFD54F#FFCA28#FFC107#FFB300#FFA000#FF8F00#FF6F00#FFE57F#FFD740#FFC400#FFAB00",R="#FFF3E0#FFE0B2#FFCC80#FFB74D#FFA726#FF9800#FB8C00#F57C00#EF6C00#E65100#FFD180#FFAB40#FF9100#FF6D00",I="#FBE9E7#FFCCBC#FFAB91#FF8A65#FF7043#FF5722#F4511E#E64A19#D84315#BF360C#FF9E80#FF6E40#FF3D00#DD2C00",L="#EFEBE9#D7CCC8#BCAAA4#A1887F#8D6E63#795548#6D4C41#5D4037#4E342E#3E2723",N="#FAFAFA#F5F5F5#EEEEEE#E0E0E0#BDBDBD#9E9E9E#757575#616161#424242#212121",_="#ECEFF1#CFD8DC#B0BEC5#90A4AE#78909C#607D8B#546E7A#455A64#37474F#263238";t.mui={},t.flat={};function j(F){F=F.split(/(?=#)/);var $=new String(F[5]);return $[50]=F[0],$[100]=F[1],$[200]=F[2],$[300]=F[3],$[400]=F[4],$[500]=F[5],$[600]=F[6],$[700]=F[7],$[800]=F[8],$[900]=F[9],F[10]&&($.A100=F[10],$.A200=F[11],$.A400=F[12],$.A700=F[13]),$}t.mui.red=j(a),t.mui.pink=j(l),t.mui.purple=j(u),t.mui.deeppurple=j(d),t.mui.indigo=j(f),t.mui.blue=j(m),t.mui.lightblue=j(p),t.mui.cyan=j(y),t.mui.teal=j(v),t.mui.green=j(x),t.mui.lightgreen=j(b),t.mui.lime=j(E),t.mui.yellow=j(T),t.mui.amber=j(w),t.mui.orange=j(R),t.mui.deeporange=j(I),t.mui.brown=j(L),t.mui.grey=j(N),t.mui.bluegrey=j(_),t.flat.turquoise="#1abc9c",t.flat.greensea="#16a085",t.flat.sunflower="#f1c40f",t.flat.orange="#f39c12",t.flat.emerland="#2ecc71",t.flat.nephritis="#27ae60",t.flat.carrot="#e67e22",t.flat.pumpkin="#d35400",t.flat.peterriver="#3498db",t.flat.belizehole="#2980b9",t.flat.alizarin="#e74c3c",t.flat.pomegranate="#c0392b",t.flat.amethyst="#9b59b6",t.flat.wisteria="#8e44ad",t.flat.clouds="#ecf0f1",t.flat.silver="#bdc3c7",t.flat.wetasphalt="#34495e",t.flat.midnightblue="#2c3e50",t.flat.concrete="#95a5a6",t.flat.asbestos="#7f8c8d",t.importMUIColors=function(){for(var F in t.mui)t.mui.hasOwnProperty(F)&&(window[F
861]=t.mui[F])}}),Gd=e,Gd}var Ig;function TC(){return Ig||(Ig=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=void 0;try{t=L_()}finally{return t}},n.exports=e.default})(zd,zd.exports)),zd.exports}var Hd={},Rg;function IC(){if(Rg)return Hd;Rg=1,Object.defineProperty(Hd,"__esModule",{value:!0});var n=function(t){return parseInt(t.slice(0,-2),10)};return Hd.pxToNum=n,Hd}var Ag;function N_(){return Ag||(Ag=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});function t(f){return f&&f.__esModule?f:{default:f}}var r=TC(),s=t(r),i=Rs(),a=t(i),l=IC(),u=120,d={svg:{lib:s.default,pathInitial:"M-1,0h101c0,0-97.833,153.603-97.833,396.167C2.167,627.579,100,800,100,800H-1V0z",pathOpen:"M-1,0h101c0,0,0-1,0,395c0,404,0,405,0,405H-1V0z",animate:function(m){m.animate({path:this.pathOpen},400,window.mina.easeinout)}},morphShape:function(m,p,y){return{position:"absolute",width:u,height:"100%",right:y?"inherit":0,left:y?0:"inherit",MozTransform:y?"rotateY(180deg)":"",MsTransform:y?"rotateY(180deg)":"",OTransform:y?"rotateY(180deg)":"",WebkitTransform:y?"rotateY(180deg)":"",transform:y?"rotateY(180deg)":""}},menuWrap:function(m,p,y){return{MozTransform:m?"translate3d(0, 0, 0)":y?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",MsTransform:m?"translate3d(0, 0, 0)":y?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",OTransform:m?"translate3d(0, 0, 0)":y?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",WebkitTransform:m?"translate3d(0, 0, 0)":y?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transform:m?"translate3d(0, 0, 0)":y?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transition:"all 0.3s"}},menu:function(m,p,y){return{position:"fixed",right:y?0:"inherit",width:(0,l.pxToNum)(p)-u,whiteSpace:"nowrap",boxSizing:"border-box",overflow:"visible"}},itemList:function(m,p,y){if(y)return{position:"relative",left:"-110px",width:"170%",overflow:"auto"}},pageWrap:function(m,p,y){return{MozTransform:m?"":y?"translate3d(-100px, 0, 0)":"translate3d(100px, 0, 0)",MsTransform:m?"":y?"translate3d(-100px, 0, 0)":"translate3d(100px, 0, 0)",OTransform:m?"":y?"translate3d(-100px, 0, 0)":"translate3d(100px, 0, 0)",WebkitTransform:m?"":y?"translate3d(-100px, 0, 0)":"translate3d(100px, 0, 0)",transform:m?"":y?"translate3d(-100px, 0, 0)":"translate3d(100px, 0, 0)",transition:m?"all 0.3s":"all 0.3s 0.1s"}},outerContainer:function(m){return{overflow:m?"":"hidden"}}};e.default=(0,a.default)(d),n.exports=e.default})(Vd,Vd.exports)),Vd.exports}var Wd={exports:{}},Lg;function k_(){return Lg||(Lg=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});function t(f){return f&&f.__esModule?f:{default:f}}var r=TC(),s=t(r),i=Rs(),a=t(i),l=IC(),u=140,d={svg:{lib:s.default,pathInitial:"M-7.312,0H0c0,0,0,113.839,0,400c0,264.506,0,400,0,400h-7.312V0z",pathOpen:"M-7.312,0H15c0,0,66,113.339,66,399.5C81,664.006,15,800,15,800H-7.312V0z;M-7.312,0H100c0,0,0,113.839,0,400c0,264.506,0,400,0,400H-7.312V0z",animate:function(m){var p=0,y=this.pathOpen.split(";"),v=y.length,x=window.mina,b=function E(){p>v-1||(m.animate({path:y[p]},p===0?400:500,p===0?x.easein:x.elastic,function(){E()}),p++)};b()}},morphShape:function(m,p,y){return{position:"absolute",width:"100%",height:"100%",right:y?"inherit":0,left:y?0:"inherit",MozTransform:y?"rotateY(180deg)":"rotateY(0deg)",MsTransform:y?"rotateY(180deg)":"rotateY(0deg)",OTransform:y?"rotateY(180deg)":"rotateY(0deg)",WebkitTransform:y?"rotateY(180deg)":"rotateY(0deg)",transform:y?"rotateY(180deg)":"rotateY(0deg)"}},menuWrap:function(m,p,y){return{MozTransform:m?"translate3d(0, 0, 0)":y?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",MsTransform:m?"translate3d(0, 0, 0)":y?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",OTransform:m?"translate3d(0, 0, 0)":y?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",WebkitTransform:m?"translate3d(0, 0, 0)":y?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transform:m?"translate3d(0, 0, 0)":y?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transition:m?"transform 0.4s 0s":"transform 0.4s"}},menu:function(m,p,y){var v=(0,l.pxToNum)(p)-u;return{position:"fixed",MozTransform:m?"":y?"translate3d("+v+", 0, 0)":"translate3d(-"+v+", 0, 0)",MsTransform:m?"":y?"translate3d("+v+", 0, 0)":"translate3d(-"+v+", 0, 0)",OTransform:m?"":y?"translate3d("+v+", 0, 0)":"translate3d(-"+v+", 0, 0)",WebkitTransform:m?"":y?"translate3d("+v+", 0, 0)":"translate3d(-"+v+", 0, 0)",transform:m?"":y?"translate3d("+v+", 0, 0)":"translate3d(-"+v+", 0, 0)",transition:m?"opacity 0.1s 0.4s cubic-bezier(.17, .67, .1, 1.27), transform 0.1s 0.4s cubic-bezier(.17, .67, .1, 1.27)":"opacity 0s 0.3s cubic-bezier(.17, .67, .1, 1.27), transform 0s 0.3s cubic-bezier(.17, .67, .1, 1.27)",opacity:m?1:0}},item:function(m,p,y,v){var x=(0,l.pxToNum)(p)-u;return{MozTransform:m?"translate3d(0, 0, 0)":y?"translate3d("+x+", 0, 0
861)":"translate3d(-"+x+", 0, 0)",MsTransform:m?"translate3d(0, 0, 0)":y?"translate3d("+x+", 0, 0)":"translate3d(-"+x+", 0, 0)",OTransform:m?"translate3d(0, 0, 0)":y?"translate3d("+x+", 0, 0)":"translate3d(-"+x+", 0, 0)",WebkitTransform:m?"translate3d(0, 0, 0)":y?"translate3d("+x+", 0, 0)":"translate3d(-"+x+", 0, 0)",transform:m?"translate3d(0, 0, 0)":y?"translate3d("+x+", 0, 0)":"translate3d(-"+x+", 0, 0)",transition:m?"opacity 0.3s 0.4s, transform 0.3s 0.4s":"opacity 0s 0.3s cubic-bezier(.17, .67, .1, 1.27), transform 0s 0.3s cubic-bezier(.17, .67, .1, 1.27)",opacity:m?1:0}},closeButton:function(m,p,y){var v=(0,l.pxToNum)(p)-u;return{MozTransform:m?"translate3d(0, 0, 0)":y?"translate3d("+v+", 0, 0)":"translate3d(-"+v+", 0, 0)",MsTransform:m?"translate3d(0, 0, 0)":y?"translate3d("+v+", 0, 0)":"translate3d(-"+v+", 0, 0)",OTransform:m?"translate3d(0, 0, 0)":y?"translate3d("+v+", 0, 0)":"translate3d(-"+v+", 0, 0)",WebkitTransform:m?"translate3d(0, 0, 0)":y?"translate3d("+v+", 0, 0)":"translate3d(-"+v+", 0, 0)",transform:m?"translate3d(0, 0, 0)":y?"translate3d("+v+", 0, 0)":"translate3d(-"+v+", 0, 0)",transition:m?"opacity 0.3s 0.4s cubic-bezier(.17, .67, .1, 1.27), transform 0.3s 0.4s cubic-bezier(.17, .67, .1, 1.27)":"opacity 0s 0.3s cubic-bezier(.17, .67, .1, 1.27), transform 0s 0.3s cubic-bezier(.17, .67, .1, 1.27)",opacity:m?1:0}}};e.default=(0,a.default)(d),n.exports=e.default})(Wd,Wd.exports)),Wd.exports}var Kd={exports:{}},Ng;function P_(){return Ng||(Ng=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});function t(a){return a&&a.__esModule?a:{default:a}}var r=Rs(),s=t(r),i={pageWrap:function(l,u,d){return{MozTransform:l?"":d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)",MsTransform:l?"":d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)",OTransform:l?"":d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)",WebkitTransform:l?"":d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)",transform:l?"":d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)",transition:"all 0.5s"}},outerContainer:function(l){return{overflow:l?"":"hidden"}}};e.default=(0,s.default)(i),n.exports=e.default})(Kd,Kd.exports)),Kd.exports}var qd={exports:{}},kg;function __(){return kg||(kg=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});function t(a){return a&&a.__esModule?a:{default:a}}var r=Rs(),s=t(r),i={pageWrap:function(l,u,d){return{MozTransform:l?"":d?"translate3d(-"+u+", 0, 0) rotateY(15deg)":"translate3d("+u+", 0, 0) rotateY(-15deg)",MsTransform:l?"":d?"translate3d(-"+u+", 0, 0) rotateY(15deg)":"translate3d("+u+", 0, 0) rotateY(-15deg)",OTransform:l?"":d?"translate3d(-"+u+", 0, 0) rotateY(15deg)":"translate3d("+u+", 0, 0) rotateY(-15deg)",WebkitTransform:l?"":d?"translate3d(-"+u+", 0, 0) rotateY(15deg)":"translate3d("+u+", 0, 0) rotateY(-15deg)",transform:l?"":d?"translate3d(-"+u+", 0, 0) rotateY(15deg)":"translate3d("+u+", 0, 0) rotateY(-15deg)",transformOrigin:d?"100% 50%":"0% 50%",transformStyle:"preserve-3d",transition:"all 0.5s"}},outerContainer:function(l){return{perspective:"1500px",overflow:l?"":"hidden"}}};e.default=(0,s.default)(i),n.exports=e.default})(qd,qd.exports)),qd.exports}var Yd={exports:{}},Pg;function O_(){return Pg||(Pg=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});function t(a){return a&&a.__esModule?a:{default:a}}var r=Rs(),s=t(r),i={pageWrap:function(l,u){return{MozTransform:l?"":"translate3d(0, 0, -"+u+")",MsTransform:l?"":"translate3d(0, 0, -"+u+")",OTransform:l?"":"translate3d(0, 0, -"+u+")",WebkitTransform:l?"":"translate3d(0, 0, -"+u+")",transform:l?"":"translate3d(0, 0, -"+u+")",transformOrigin:"100%",transformStyle:"preserve-3d",transition:"all 0.5s"}},outerContainer:function(){return{perspective:"1500px"}}};e.default=(0,s.default)(i),n.exports=e.default})(Yd,Yd.exports)),Yd.exports}var Xd={exports:{}},_g;function D_(){return _g||(_g=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});function t(a){return a&&a.__esModule?a:{default:a}}var r=Rs(),s=t(r),i={pageWrap:function(l,u,d){return{MozTransform:l?"":d?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",MsTransform:l?"":d?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",OTransform:l?"":d?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",WebkitTransform:l?"":d?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",transform:l?"":d?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",transformStyle:"preserve-3d",transition:"all 0.5s",overflow:l?"":"hidden"}},outerContainer:function(l){return{perspective:"1500px",overflow:l?"":"hidden"}}};e.default=(0,s.default)(i),n.exports=e.default}
861)(Xd,Xd.exports)),Xd.exports}var Zd={exports:{}},Og;function j_(){return Og||(Og=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});function t(a){return a&&a.__esModule?a:{default:a}}var r=Rs(),s=t(r),i={menuWrap:function(l){return{MozTransform:l?"":"translate3d(0, -100%, 0)",MsTransform:l?"":"translate3d(0, -100%, 0)",OTransform:l?"":"translate3d(0, -100%, 0)",WebkitTransform:l?"":"translate3d(0, -100%, 0)",transform:l?"":"translate3d(0, -100%, 0)",transition:"all 0.5s ease-in-out"}},pageWrap:function(l,u,d){return{MozTransform:l?"":d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)",MsTransform:l?"":d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)",OTransform:l?"":d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)",WebkitTransform:l?"":d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)",transform:l?"":d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)",transition:"all 0.5s"}},outerContainer:function(l){return{perspective:"1500px",perspectiveOrigin:"0% 50%",overflow:l?"":"hidden"}}};e.default=(0,s.default)(i),n.exports=e.default})(Zd,Zd.exports)),Zd.exports}var Qd={exports:{}},Dg;function M_(){return Dg||(Dg=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});function t(a){return a&&a.__esModule?a:{default:a}}var r=Rs(),s=t(r),i={menuWrap:function(l,u,d){return{MozTransform:"translate3d(0, 0, 0)",MsTransform:"translate3d(0, 0, 0)",OTransform:"translate3d(0, 0, 0)",WebkitTransform:"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)",zIndex:l?1e3:-1}},overlay:function(l,u,d){return{zIndex:1400,MozTransform:l?d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)":"translate3d(0, 0, 0)",MsTransform:l?d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)":"translate3d(0, 0, 0)",OTransform:l?d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)":"translate3d(0, 0, 0)",WebkitTransform:l?d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)":"translate3d(0, 0, 0)",transform:l?d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)":"translate3d(0, 0, 0)",transition:"all 0.5s",visibility:l?"visible":"hidden"}},pageWrap:function(l,u,d){return{MozTransform:l?"":d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)",MsTransform:l?"":d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)",OTransform:l?"":d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)",WebkitTransform:l?"":d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)",transform:l?"":d?"translate3d(-"+u+", 0, 0)":"translate3d("+u+", 0, 0)",transition:"all 0.5s",zIndex:1200,position:"relative"}},burgerIcon:function(l,u,d){return{MozTransform:l?d?"translate3d("+u+", 0, 0)":"translate3d(-"+u+", 0, 0)":"translate3d(0, 0, 0)",MsTransform:l?d?"translate3d("+u+", 0, 0)":"translate3d(-"+u+", 0, 0)":"translate3d(0, 0, 0)",OTransform:l?d?"translate3d("+u+", 0, 0)":"translate3d(-"+u+", 0, 0)":"translate3d(0, 0, 0)",WebkitTransform:l?d?"translate3d("+u+", 0, 0)":"translate3d(-"+u+", 0, 0)":"translate3d(0, 0, 0)",transform:l?d?"translate3d("+u+", 0, 0)":"translate3d(-"+u+", 0, 0)":"translate3d(0, 0, 0)",transition:"all 0.1s",position:"relative",zIndex:1300}},outerContainer:function(l){return{overflow:l?"":"hidden"}}};e.default=(0,s.default)(i),n.exports=e.default})(Qd,Qd.exports)),Qd.exports}var jg;function F_(){return jg||(jg=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default={slide:T_(),stack:I_(),elastic:N_(),bubble:k_(),push:P_(),pushRotate:__(),scaleDown:O_(),scaleRotate:D_(),fallDown:j_(),reveal:M_()},n.exports=e.default})(Dd,Dd.exports)),Dd.exports}var $_=F_();function RC(n,e){return function(){return n.apply(e,arguments)}}const{toString:B_}=Object.prototype,{getPrototypeOf:Mi}=Object,{iterator:lu,toStringTag:AC}=Symbol,Lc=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),LC=n=>typeof n=="string"&&(n==="__proto__"||n==="constructor"||n==="prototype"),NC=(n,e,t)=>n===Object.prototype||!t&&e===null,U_=n=>{if(!Object.isExtensible(n))return!1;const e=Object.getOwnPropertyNames(n);return Object.getOwnPropertySymbols&&e.push(...Object.getOwnPropertySymbols(n)),e.every(t=>{if(LC(t))return!1;const r=Object.getOwnPropertyDescriptor(n,t);return!!r&&r.configurable&&r.writable===!0})},Nc=(n,e)=>{let t=n;const r=[];for(;t!=null;){if(r.indexOf(t)!==-1)return!1;r.push(t);const s=Mi(t);if(NC(t,s,t===n))return!1;if(Lc(t,e))return!0;t=s}return!1},V_=(n,e)=>n!=null&&Nc(n,e)?n[e]:void 0,z_=n=>{if(n==null||typeof n!="object"&&typeof n!="function")return n;const e=Mi(n);if(e===null&&U_(n))return n;const t=Object.create(null),r=Object.create(null),s=[];let i=n;for(;i!=null&&s.indexOf(i)===-1;){s.push(i);const a=i===n?e:Mi(i);if(NC(i,a,i===n))break;const l=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&l.push(...Object.getOwnPropertySymbols(i));for(const u of l)LC(u)||Lc(r,u)||(t[u]=n[u],r[u]=!0);i=a}return t},Np=(n=>e=>{const t=B_.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Dr=n=>(n=n.toLowerCase(),e=>Np(e)===n),Vf=n=>e=>typeof e===n,{isArray:Pa}=Array,_a=Vf("undefined");function nl(n){return n!==null&&!_a(n)&&n.constructor!==null&&!_a(n.constructor)&&or(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const kC=Dr("ArrayBuffer");function G_(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&kC(n.buffer),e}const H_=Vf("string"),or=Vf("function"),PC=Vf("number"),rl=n=>n!==null&&typeof n=="object",W_=n=>n===!0||n===!1,P1=n=>{if(!rl(n))return!1;const e=Mi(n);return(e===null||e===Object.prototype||Mi(e)===null)&&!Nc(n,AC)&&!Nc(n,lu)},K_=n=>{if(!rl(n)||nl(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},q_=Dr("Date"),Y_=Dr("File"),X_=n=>!!(n&&typeof n.uri<"u"),Z_=n=>n&&typeof n.getParts<"u",Q_=Dr("Blob"),J_=Dr("FileList"),eO=Dr("Set"),tO=n=>rl(n)&&or(n.pipe);function nO(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Mg=nO(),Fg=typeof Mg.FormData<"u"?Mg.FormData:void 0,rO=n=>{if(!n)return!1;if(Fg&&n instanceof Fg)return!0;const e=Mi(n);if(!e||e===Object.prototype||!or(n.append))return!1;const t=Np(n);return t==="formdata"||t==="object"&&or(n.toString)&&n.toString()==="[object FormData]"},sO=Dr("URLSearchParams"),[iO,aO,oO,lO]=["ReadableStream","Request","Response","Headers"].map(Dr),cO=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cu(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,s;if(typeof n!="object"&&(n=[n]),Pa(n))for(r=0,s=n.length;r<s;r++)e.call(null,n[r],r,n);else{if(nl(n))return;const i=t?Object.getOwnPropertyNames(n):Object.keys(n),a=i.length;let l;for(r=0;r<a;r++)l=i[r],e.call(null,n[l],l,n)}}function _C(n,e){if(nl(n))return null;e=e.toLowerCase();const t=Object.keys(n);let r=t.length,s;for(;r-- >0;)if(s=t[r],e===s.toLowerCase())return s;return null}const ya=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,OC=n=>!_a(n)&&n!==ya;function Dm(...n){const{caseless:e,skipUndefined:t}=OC(this)&&this||{},r={},s=(i,a)=>
vendor: 10,150 bytes, lines 861-863
861{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const l=e&&typeof a=="string"&&_C(r,a)||a,u=Lc(r,l)?r[l]:void 0;P1(u)&&P1(i)?r[l]=Dm(u,i):P1(i)?r[l]=Dm({},i):Pa(i)?r[l]=i.slice():(!t||!_a(i))&&(r[l]=i)};for(let i=0,a=n.length;i<a;i++){const l=n[i];if(!l||nl(l)||(cu(l,s),typeof l!="object"||Pa(l)))continue;const u=Object.getOwnPropertySymbols(l);for(let d=0;d<u.length;d++){const f=u[d];bO.call(l,f)&&s(l[f],f)}}return r}const uO=(n,e,t,{allOwnKeys:r}={})=>(cu(e,(s,i)=>{t&&or(s)?Object.defineProperty(n,i,{__proto__:null,value:RC(s,t),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,i,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),n),dO=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),fO=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),Object.defineProperty(n.prototype,"constructor",{__proto__:null,value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{__proto__:null,value:e.prototype}),t&&Object.assign(n.prototype,t)},hO=(n,e,t,r)=>{let s,i,a;const l={};if(e=e||{},n==null)return e;do{for(s=Object.getOwnPropertyNames(n),i=s.length;i-- >0;)a=s[i],(!r||r(a,n,e))&&!l[a]&&(e[a]=n[a],l[a]=!0);n=t!==!1&&Mi(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},mO=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},pO=n=>{if(!n)return null;if(Pa(n))return n;let e=n.length;if(!PC(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},gO=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&Mi(Uint8Array)),yO=(n,e)=>{const r=(n&&n[lu]).call(n);let s;for(;(s=r.next())&&!s.done;){const i=s.value;e.call(n,i[0],i[1])}},vO=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},xO=Dr("HTMLFormElement"),CO=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,s){return r.toUpperCase()+s}),{propertyIsEnumerable:bO}=Object.prototype,SO=Dr("RegExp"),DC=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};cu(t,(s,i)=>{let a;(a=e(s,i,n))!==!1&&(r[i]=a||s)}),Object.defineProperties(n,r)},EO=n=>{DC(n,(e,t)=>{if(or(n)&&["arguments","caller","callee"].includes(t))return!1;const r=n[t];if(or(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},wO=(n,e)=>{const t={},r=s=>{s.forEach(i=>{t[i]=!0})};return Pa(n)?r(n):r(String(n).split(e)),t},TO=()=>{},IO=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function RO(n){return!!(n&&or(n.append)&&n[AC]==="FormData"&&n[lu])}const AO=n=>{const e=new WeakSet,t=r=>{if(rl(r)){if(e.has(r))return;if(nl(r))return r;if(!("toJSON"in r)){e.add(r);let s;if(eO(r)){s=[];for(const i of r){const a=t(i);!_a(a)&&s.push(a)}}else s=Pa(r)?[]:{},cu(r,(i,a)=>{const l=t(i);!_a(l)&&(s[a]=l)});return e.delete(r),s}}return r};return t(n)},LO=Dr("AsyncFunction"),NO=n=>n&&(rl(n)||or(n))&&or(n.then)&&or(n.catch),jC=((n,e)=>n?setImmediate:e?((t,r)=>(ya.addEventListener("message",({source:s,data:i})=>{s===ya&&i===t&&r.length&&r.shift()()},!1),s=>{r.push(s),ya.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",or(ya.postMessage)),kO=typeof queueMicrotask<"u"?queueMicrotask.bind(ya):typeof process<"u"&&process.nextTick||jC,MC=n=>n!=null&&or(n[lu]),PO=n=>n!=null&&Nc(n,lu)&&MC(n),fe={isArray:Pa,isArrayBuffer:kC,isBuffer:nl,isFormData:rO,isArrayBufferView:G_,isString:H_,isNumber:PC,isBoolean:W_,isObject:rl,isPlainObject:P1,isEmptyObject:K_,isReadableStream:iO,isRequest:aO,isResponse:oO,isHeaders:lO,isUndefined:_a,isDate:q_,isFile:Y_,isReactNativeBlob:X_,isReactNative:Z_,isBlob:Q_,isRegExp:SO,isFunction:or,isStream:tO,isURLSearchParams:sO,isTypedArray:gO,isFileList:J_,forEach:cu,merge:Dm,extend:uO,trim:cO,stripBOM:dO,inherits:fO,toFlatObject:hO,kindOf:Np,kindOfTest:Dr,endsWith:mO,toArray:pO,forEachEntry:yO,matchAll:vO,isHTMLForm:xO,hasOwnProperty:Lc,hasOwnProp:Lc,hasOwnInPrototypeChain:Nc,getSafeProp:V_,toSafeFlatObject:z_,reduceDescriptors:DC,freezeMethods:EO,toObjectSet:wO,toCamelCase:CO,noop:TO,toFiniteNumber:IO,findKey:_C,global:ya,isContextDefined:OC,isSpecCompliantForm:RO,toJSONObject:AO,isAsyncFn:LO,isThenable:NO,setImmediate:jC,asap:kO,isIterable:MC,isSafeIterable:PO},_O=fe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),OO=n=>{const e={};let t,r,s;return n&&n.split(`
862`).forEach(function(a){s=a.indexOf(":"),t=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim();const l=fe.hasOwnProp(e,t);!t||l&&fe.hasOwnProp(_O,t)||(t==="set-cookie"?l?e[t].push(r):e[t]=[r]:e[t]=l?e[t]+", "+r:r)}),e};function DO(n){let e=0,t=n.length;for(;e<t;){const r=n.charCodeAt(e);if(r!==9&&r!==32)break;e+=1}for(;t>e;){const r=n.charCodeAt(t-1);if(r!==9&&r!==32)break;t-=1}return e===0&&t===n.length?n:n.slice(e,t)}const jO=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),MO=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function kp(n,e){return fe.isArray(n)?n.map(t=>kp(t,e)):DO(String(n).replace(e,""))}const FO=n=>kp(n,jO),$O=n=>kp(n,MO);function FC(n){const e=Object.create(null);return fe.forEach(n.toJSON(),(t,r)=>{e[r]=$O(t)}),e}const $g=Symbol("internals");function ql(n){return n&&String(n).trim().toLowerCase()}function _1(n){return n===!1||n==null?n:fe.isArray(n)?n.map(_1):FO(String(n))}function BO(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const UO=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function m0(n){let e=0,t=n.length;for(;e<t;){const r=n.charCodeAt(e);if(r!==9&&r!==32)break;e+=1}for(;t>e;){const r=n.charCodeAt(t-1);if(r!==9&&r!==32)break;t-=1}return e===0&&t===n.length?n:n.slice(e,t)}function VO(n){const e=n.length-1;if(e<1||n.charCodeAt(0)!==34||n.charCodeAt(e)!==34)return n;let t="";for(let r=1;r<e;r++){const s=n.charCodeAt(r);if(s===34||s===92&&(r+=1,r>=e))return n;t+=n[r]}return t}function zO(n){const e=Object.create(null),t=String(n);let r=0,s=!1,i=!1;function a(l){const u=m0(t.slice(r,l)),d=u.indexOf("=");if(d<1)return;const f=m0(u.slice(0,d));if(!UO.test(f))return;const m=f.toLowerCase();if(m==="__proto__"||m==="constructor"||m==="prototype")return;const p=m0(u.slice(d+1));e[m]=VO(p)}for(let l=0;l<t.length;l++){const u=t.charCodeAt(l);s?i?i=!1:u===92?i=!0:u===34&&(s=!1):u===34?s=!0:(u===44||u===59)&&(a(l),r=l+1)}return a(t.length),e}const GO=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function p0(n,e,t,r,s){if(fe.isFunction(r))return r.call(this,e,t);if(s&&(e=t),!!fe.isString(e)){if(fe.isString(r))return e.indexOf(r)!==-1;if(fe.isRegExp(r))return r.test(e)}}function HO(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function WO(n,e){const t=fe.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{__proto__:null,value:function(s,i,a){return this[r].call(this,e,s,i,a)},configurable:!0})})}let Un=class{constructor(e){e&&this.set(e)}set(e,t,r){const s=this;function i(l,u,d){const f=ql(u);if(!f)return;const m=fe.findKey(s,f);(!m||s[m]===void 0||d===!0||d===void 0&&s[m]!==!1)&&(s[m||u]=_1(l))}const a=(l,u)=>fe.forEach(l,(d,f)=>i(d,f,u));if(fe.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(fe.isString(e)&&(e=e.trim())&&!GO(e))a(OO(e),t);else if(fe.isObject(e)&&fe.isSafeIterable(e)){let l=Object.create(null),u,d;for(const f of e){if(!fe.isArray(f))throw new TypeError("Object iterator must return a key-value pair");d=f[0],fe.hasOwnProp(l,d)?(u=l[d],l[d]=fe.isArray(u)?[...u,f[1]]:[u,f[1]]):l[d]=f[1]}a(l,t)}else e!=null&&i(t,e,r);return this}get(e,t){if(e=ql(e),e){const r=fe.findKey(this,e);if(r){const s=this[r];if(!t)return s;if(t===!0)return BO(s);if(fe.isFunction(t))return t.call(this,s,r);if(fe.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ql(e),e){const r=fe.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||p0(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let s=!1;function i(a){if(a=ql(a),a){const l=fe.findKey(r,a);l&&(!t||p0(r,r[l],l,t))&&(delete r[l],s=!0)}}return fe.isArray(e)?e.forEach(i):i(e),s}clear(e){const t=Object.keys(this);let r=t.length,s=!1;for(;r--;){const i=t[r];(!e||p0(this,this[i],i,e,!0))&&(delete this[i],s=!0)}return s}normalize(e){const t=this,r={};return fe.forEach(this,(s,i)=>{const a=fe.findKey(r,i);if(a){t[a]=_1(s),delete t[i];return}const l=e?HO(i):String(i).trim();l!==i&&delete t[i],t[l]=_1(s),r[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return fe.forEach(this,(r,s)=>{r!=null&&r!==!1&&(t[s]=e&&fe.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
863`)}getSetCookie(){const e=this.get("set-cookie");return fe.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return zO(e)}static concat(e,...t){const r=new this(e);return t.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[$g]=this[$g]={accessors:{}}).accessors,s=this.prototype;function i(a){const l=ql(a);r[l]||(WO(s,a),r[l]=!0)}return fe.isArray(e)?e.forEach(i):i(e),this}};Un.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);fe.reduceDescriptors(Un.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}});fe.freezeMethods(Un);const J1="[REDACTED ****]";function KO(n){if(fe.hasOwnProp(n,"toJSON"))return!0;let e=Object.getPrototypeOf(n);for(;e&&e!==Object.prototype;){if(fe.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function qO(n,e){const t=new Set(e.map(i=>String(i).toLowerCase())),r=[],s=i=>{if(i===null||typeof i!="object"||fe.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof Un&&(i=i.toJSON()),r.push(i);let a;
vendor: 4,420 bytes, line 863
863if(fe.isArray(i))a=[],i.forEach((l,u)=>{const d=s(l);fe.isUndefined(d)||(a[u]=d)});else{if(!fe.isPlainObject(i)&&KO(i))return r.pop(),i;a=Object.create(null);for(const[l,u]of Object.entries(i)){const d=t.has(l.toLowerCase())?J1:s(u);fe.isUndefined(d)||(a[l]=d)}}return r.pop(),a};return s(n)}function Bg(n){try{return String(n)}catch{return""}}function YO(n){return n.errors.map(t=>{try{return t&&t.message?Bg(t.message):Bg(t)}catch{return""}}).filter(Boolean).join("; ")||n.name||"AggregateError"}let We=class $C extends Error{static from(e,t,r,s,i,a){let l=e.message;!l&&fe.isArray(e.errors)&&e.errors.length&&(l=YO(e));const u=new $C(l,t||e.code,r,s,i);return Object.defineProperty(u,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),u.name=e.name,e.status!=null&&u.status==null&&(u.status=e.status),a&&Object.assign(u,a),u}constructor(e,t,r,s,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),s&&(this.request=s),i&&(this.response=i,this.status=i.status)}toJSON(){const e=this.config,t=e&&fe.hasOwnProp(e,"redact")?e.redact:void 0,r=fe.isArray(t)&&t.length>0?qO(e,t):fe.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};We.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";We.ERR_BAD_OPTION="ERR_BAD_OPTION";We.ECONNABORTED="ECONNABORTED";We.ETIMEDOUT="ETIMEDOUT";We.ECONNREFUSED="ECONNREFUSED";We.ERR_NETWORK="ERR_NETWORK";We.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";We.ERR_DEPRECATED="ERR_DEPRECATED";We.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";We.ERR_BAD_REQUEST="ERR_BAD_REQUEST";We.ERR_CANCELED="ERR_CANCELED";We.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";We.ERR_INVALID_URL="ERR_INVALID_URL";We.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const XO=null,BC=100;function jm(n){return fe.isPlainObject(n)||fe.isArray(n)}function UC(n){return fe.endsWith(n,"[]")?n.slice(0,-2):n}function g0(n,e,t){return n?n.concat(e).map(function(s,i){return s=UC(s),!t&&i?"["+s+"]":s}).join(t?".":""):e}function ZO(n){return fe.isArray(n)&&!n.some(jm)}const QO=fe.toFlatObject(fe,{},null,function(e){return/^is[A-Z]/.test(e)});function zf(n,e,t){if(!fe.isObject(n))throw new TypeError("target must be an object");e=e||new FormData;const r=(T,w)=>{const R=fe.getSafeProp(t,T);return fe.isUndefined(R)?w:R},s=r("metaTokens",!0),i=r("visitor")||x,a=r("dots",!1),l=r("indexes",!1),u=r("Blob")||typeof Blob<"u"&&Blob,d=r("maxDepth",BC),f=u&&fe.isSpecCompliantForm(e),m=[];if(!fe.isFunction(i))throw new TypeError("visitor must be a function");function p(T){if(T===null)return"";if(fe.isDate(T))return T.toISOString();if(fe.isBoolean(T))return T.toString();if(!f&&fe.isBlob(T))throw new We("Blob is not supported. Use a Buffer instead.");if(fe.isArrayBuffer(T)||fe.isTypedArray(T)){if(f&&typeof u=="function")return new u([T]);throw new We("Blob is not supported. Use a Buffer instead.",We.ERR_NOT_SUPPORT)}return T}function y(T){if(T>d)throw new We("Object is too deeply nested ("+T+" levels). Max depth: "+d,We.ERR_FORM_DATA_DEPTH_EXCEEDED)}function v(T,w){if(d===1/0)return JSON.stringify(T);const R=[];return JSON.stringify(T,function(L,N){if(!fe.isObject(N))return N;for(;R.length&&R[R.length-1]!==this;)R.pop();return R.push(N),y(w+R.length-1),N})}function x(T,w,R){let I=T;if(fe.isReactNative(e)&&fe.isReactNativeBlob(T))return e.append(g0(R,w,a),p(T)),!1;if(T&&!R&&typeof T=="object"){if(fe.endsWith(w,"{}"))w=s?w:w.slice(0,-2),T=v(T,1);else if(fe.isArray(T)&&ZO(T)||(fe.isFileList(T)||fe.endsWith(w,"[]"))&&(I=fe.toArray(T)))return w=UC(w),I.forEach(function(N,_){!(fe.isUndefined(N)||N===null)&&e.append(l===!0?g0([w],_,a):l===null?w:w+"[]",p(N))}),!1}return jm(T)?!0:(e.append(g0(R,w,a),p(T)),!1)}const b=Object.assign(QO,{defaultVisitor:x,convertValue:p,isVisitable:jm});function E(T,w,R=0){if(!fe.isUndefined(T)){if(y(R),m.indexOf(T)!==-1)throw new Error("Circular reference detected in "+w.join("."));m.push(T),fe.forEach(T,function(L,N){(!(fe.isUndefined(L)||L===null)&&i.call(e,L,fe.isString(N)?N.trim():N,w,b))===!0&&E(L,w?w.concat(N):[N],R+1)}),m.pop()}}if(!fe.isObject(n))throw new TypeError("data must be an object");return E(n),e}
863function Ug(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(n).replace(/[!'()~]|%20/g,function(r){return e[r]})}function Pp(n,e){this._pairs=[],n&&zf(n,this,e)}const VC=Pp.prototype;VC.append=function(e,t){this._pairs.push([e,t])};VC.toString=function(e){const t=e?r=>e.call(this,r,Ug):Ug;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function JO(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function zC(n,e,t){if(!e)return n;n=n||"";const r=fe.isFunction(t)?{serialize:t}:t,s=fe.getSafeProp(r,"encode")||JO,i=fe.getSafeProp(r,"serialize");let a;if(i?a=i(e,r):a=fe.isURLSearchParams(e)?e.toString():new Pp(e,r).toString(s),a){const l=n.indexOf("#");l!==-1&&(n=n.slice(0,l)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}const Yl=Symbol("internals");function GC(n){return n?n.length:0}function Vg(n){if(n)for(;n.length&&n[n.length-1]===null;)n.pop()}function Xl(n,e){const t=n.handlers,r=GC(t);t!==e.handlersRef?(e.handlersRef=t,e.handlerEntries.clear()):r!==e.handlersLength&&(r?e.handlerEntries.forEach(function(i,a){t[i.index]!==i.handler&&e.handlerEntries.delete(a)}):e.handlerEntries.clear()),e.handlersLength=r}class zg{constructor(){this.handlers=[],this[Yl]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,r){const s={fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},i=this[Yl];this.handlers==null&&(this.handlers=[]),Xl(this,i);const a=i.nextId++;return this.handlers.push(s),i.handlerEntries.set(a,{handler:s,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){const t=this[Yl];Xl(this,t);const r=t.handlerEntries.get(e);if(r){if(t.handlerEntries.delete(e),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(Vg(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Xl(this,this[Yl]))}forEach(e){const t=this[Yl];Xl(this,t),t.iterationDepth++;try{fe.forEach(this.handlers,function(s){s!==null&&e(s)})}finally{--t.iterationDepth||(Xl(this,t),Vg(this.handlers),t.handlersLength=GC(this.handlers))}}}const _p={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},eD=typeof URLSearchParams<"u"?URLSearchParams:Pp,tD=typeof FormData<"u"?FormData:null,nD=typeof Blob<"u"?Blob:null,rD={isBrowser:!0,classes:{URLSearchParams:eD,FormData:tD,Blob:nD},protocols:["http","https","file","blob","url","data"]},Op=typeof window<"u"&&typeof document<"u",Mm=typeof navigator=="object"&&navigator||void 0,sD=Op&&(!Mm||["ReactNative","NativeScript","NS"].indexOf(Mm.product)<0),iD=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",aD=Op&&window.location.href||"http://localhost",oD=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Op,hasStandardBrowserEnv:sD,hasStandardBrowserWebWorkerEnv:iD,navigator:Mm,origin:aD},Symbol.toStringTag,{value:"Module"})),Rn={...oD,...rD};function lD(n,e){return zf(n,new Rn.classes.URLSearchParams,{visitor:function(t,r,s,i){return Rn.isNode&&fe.isBuffer(t)?(this.append(r,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}const Gg=BC;function HC(n){if(n>Gg)throw new We("FormData field is too deeply nested ("+n+" levels). Max depth: "+Gg,We.ERR_FORM_DATA_DEPTH_EXCEEDED)}function cD(n){const e=[],t=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=t.exec(n))!==null;)HC(e.length),e.push(r[0]==="[]"?"":r[1]||r[0]);return e}function uD(n){const e={},t=Object.keys(n);let r;const s=t.length;let i;for(r=0;r<s;r++)i=t[r],e[i]=n[i];return e}function WC(n){function e(t,r,s,i){HC(i);let a=t[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),u=i>=t.length;return a=!a&&fe.isArray(s)?s.length:a,u?(fe.hasOwnProp(s,a)?s[a]=fe.isArray(s[a])?s[a].concat(r):[s[a],r]:s[a]=r,!l):((!fe.hasOwnProp(s,a)||!fe.isObject(s[a]))&&
vendor: 11,459 bytes, line 863
863(s[a]=[]),e(t,r,s[a],i)&&fe.isArray(s[a])&&(s[a]=uD(s[a])),!l)}if(fe.isFormData(n)&&fe.isFunction(n.entries)){const t={};return fe.forEachEntry(n,(r,s)=>{e(cD(r),s,t,0)}),t}return null}const KC=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Co=(n,e)=>n!=null&&fe.hasOwnProp(n,e)?n[e]:void 0;function dD(n,e,t){if(fe.isString(n))try{return(e||JSON.parse)(n),fe.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const uu={transitional:_p,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",s=r.indexOf("application/json")>-1,i=fe.isObject(e);if(i&&fe.isHTMLForm(e)&&(e=new FormData(e)),fe.isFormData(e))return s?JSON.stringify(WC(e)):e;if(fe.isArrayBuffer(e)||fe.isBuffer(e)||fe.isStream(e)||fe.isFile(e)||fe.isBlob(e)||fe.isReadableStream(e))return e;if(fe.isArrayBufferView(e))return e.buffer;if(fe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(i){const u=Co(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return lD(e,u).toString();if((l=fe.isFileList(e))||r.indexOf("multipart/form-data")>-1){const d=Co(this,"env"),f=d&&d.FormData;return zf(l?{"files[]":e}:e,f&&new f,u)}}return i||s?(t.setContentType("application/json",!1),dD(e)):e}],transformResponse:[function(e){const t=Co(this,"transitional")||uu.transitional,r=t&&t.forcedJSONParsing,s=Co(this,"responseType"),i=s==="json";if(fe.isResponse(e)||fe.isReadableStream(e))return e;if(e&&fe.isString(e)&&(r&&!s||i)){const l=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Co(this,"parseReviver"))}catch(u){if(l)throw u.name==="SyntaxError"?We.from(u,We.ERR_BAD_RESPONSE,this,null,Co(this,"response")):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rn.classes.FormData,Blob:Rn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fe.forEach(KC,n=>{uu.headers[n]={}});function y0(n,e){const t=this||uu,r=e||t,s=Un.from(r.headers);let i=r.data;return fe.forEach(n,function(l){i=l.call(t,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function qC(n){return!!(n&&n.__CANCEL__)}let du=class extends We{constructor(e,t,r){super(e??"canceled",We.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function YC(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new We("Request failed with status code "+t.status,t.status>=400&&t.status<500?We.ERR_BAD_REQUEST:We.ERR_BAD_RESPONSE,t.config,t.request,t))}const fD=/[\t\n\r]/g;function XC(n){if(typeof n!="string")return n;let e=0;for(;e<n.length&&n.charCodeAt(e)<=32;)e++;return n.slice(e).replace(fD,"")}function v0(n){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n);return e&&e[1]||""}function hD(n,e){n=n||10;const t=new Array(n),r=new Array(n);let s=0,i=0,a;return e=e!==void 0?e:1e3,function(u){const d=Date.now(),f=r[i];a||(a=d),t[s]=u,r[s]=d;let m=i,p=0;for(;m!==s;)p+=t[m++],m=m%n;if(s=(s+1)%n,s===i&&(i=(i+1)%n),d-a<e)return;const y=f&&d-f;return y?Math.round(p*1e3/y):void 0}}function mD(n,e){let t=0,r=1e3/e,s,i;const a=(f,m=Date.now())=>{t=m,s=null,i&&(clearTimeout(i),i=null),n(...f)};return[(...f)=>{const m=Date.now(),p=m-t;p>=r?a(f,m):(s=f,i||(i=setTimeout(()=>{i=null,a(s)},r-p)))},()=>s&&a(s),(...f)=>a(f)]}const ef=(n,e,t=3)=>{let r=0;const s=hD(50,250);return mD(i=>{if(!i||!fe.isNumber(i.loaded))return;const a=i.loaded,l=i.lengthComputable?i.total:void 0,u=Math.max(0,l!=null?Math.min(a,l):a),d=Math.max(0,u-r),f=s(d);r=Math.max(r,u);const m={loaded:u,total:l,progress:l?u/l:void 0,bytes:d,rate:f||void 0,estimated:f&&l?(l-u)/f:void 0,event:i,lengthComputable:l!=null,[e?"download":"upload"]:!0};n(m)},t)},Hg=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},Wg=(n,e=fe.asap)=>(...t)=>e(()=>n(...t)),pD=Rn.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,Rn.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(Rn.origin),Rn.navigator&&/(msie|trident)/i.test(Rn.navigator.userAgent)):()=>!0,gD=Rn.hasStandardBrowserEnv?{write(n,e,t,r,s,i,a){if(typeof document>"u")return;const l=[`${n}=${encodeURIComponent(e)}`];fe.isNumber(t)&&l.push(`expires=${new Date(t).toUTCString()}`),fe.isString(r)&&l.push(`path=${r}`),fe.isString(s)&&l.push(`domain=${s}`),i===!0&&l.push("secure"),fe.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(n){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let t=0;t<e.length;t++){const r=e[t].replace(/^\s+/,""),s=r.indexOf("=");if(s!==-1&&r.slice(0,s)===n)try{return decodeURIComponent(r.slice(s+1))}catch{return r.slice(s+1)}}return null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function yD(n){return typeof n!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function vD(n,e){if(!e)return n;let t=n.length;for(;t>0&&n.charCodeAt(t-1)===47;)t--;return n.slice(0,t)+"/"+e.replace(/^\/+/,"")}const xD=/^https?:(?!\/\/)/i;function CD(n){return n&&n.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,r="")=>`${t}${r}${J1}`)}function bD(n){const e=n.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${J1}@`),t=e.indexOf("#"),s=(t===-1?e:e.slice(0,t)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${J1}`);return t===-1?s:`${s}#${CD(e.slice(t+1))}`}function Kg(n,e){if(typeof n=="string"){const t=XC(n);if(xD.test(t))throw new We(`Invalid URL ${JSON.stringify(bD(t))}: missing "//" after protocol`,We.ERR_INVALID_URL,e)}}function ZC(n,e,t,r){Kg(e,r);let s=!yD(e);return n&&(s||t===!1)?(Kg(n,r),vD(n,e)):e}const qg=n=>n instanceof Un?{...n}:n,SD=n=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(n).concat(Object.getOwnPropertySymbols(n).filter(e=>Object.getOwnPropertyDescriptor(n,e).enumerable)):Object.keys(n);function Oa(n,e){n=n||{},e=e||{};const t=Object.create(null);Object.defineProperty(t,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,m,p,y){return fe.isPlainObject(f)&&fe.isPlainObject(m)?fe.merge.call({caseless:y},f,m):fe.isPlainObject(m)?fe.merge({},m):fe.isArray(m)?m.slice():m}function s(f,m,p,y){if(fe.isUndefined(m)){if(!fe.isUndefined(f))return r(void 0,f,p,y)}else return r(f,m,p,y)}function i(f,m){if(!fe.isUndefined(m))return r(void 0,m)}function a(f,m){if(fe.isUndefined(m)){if(!fe.isUndefined(f))return r(void 0,f)}else return r(void 0,m)}function l(f){const m=fe.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!fe.isUndefined(m))if(fe.isPlainObject(m)){if(fe.hasOwnProp(m,f))return m[f]}else return;const p=fe.hasOwnProp(n,"transitional")?n.transitional:void 0;if(fe.isPlainObject(p)&&fe.hasOwnProp(p,f))return p[f]}function u(f,m,p){if(fe.hasOwnProp(e,p))return r(f,m);if(fe.hasOwnProp(n,p))return r(void 0,f)}const d={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutErrorMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:u,headers:(f,m,p)=>s(qg(f),qg(m),p,!0)};return fe.forEach(SD({...n,...e}),function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;const p=fe.hasOwnProp(d,m)?d[m]:s,y=fe.hasOwnProp(n,m)?n[m]:void 0,v=fe.hasOwnProp(e,m)?e[m]:void 0,x=p(y,v,m);fe.isUndefined(x)&&p!==u||(t[m]=x)}),fe.hasOwnProp(e,"validateStatus")&&fe.isUndefined(e.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(fe.hasOwnProp(n,"validateStatus")?t.validateStatus=r(void 0,n.validateStatus):delete t.validateStatus),t}const ED=["content-type","content-length"];function wD(n,e,t){if(t!=="content-only"){n.set(e);return}Object.entries(e||{}).forEach(([r,s])=>{ED.includes(r.toLowerCase())&&n.set(r,s)})}const TD=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function QC(n){const e=Oa({},n),t=p=>fe.hasOwnProp(e,p)?e[p]:void 0,r=t("data");let s=t("withXSRFToken");const i=t("xsrfHeaderName"),a=t("xsrfCookieName");let l=t("headers");const u=t("auth"),d=t("baseURL"),f=t("allowAbsoluteUrls"),m=t("url");if(e.headers=l=Un.from(l),e.url=zC(ZC(d,m,f,e),t("params"),t("paramsSerializer")),u){const p=fe.getSafeProp(u,"username")||"",y=fe.getSafeProp(u,"password")||"";try{l.set("Authorization","Basic "+btoa(p+":"+(y?TD(y):"")))}catch(v){throw We.from(v,We.ERR_BAD_OPTION_VALUE,n)}}if(fe.isFormData(r)){const p=fe.getSafeProp(r,"getHeaders");Rn.hasStandardBrowserEnv||Rn.hasStandardBrowserWebWorkerEnv||fe.isReactNative(r)?l.setContentType(void 0):fe.isFunction(p)&&wD(l,p.call(r),t("formDataHeaderPolicy"))}if(Rn.hasStandardBrowserEnv&&(fe.isFunction(s)&&(s=s(e)),s===!0||s==null&&pD(e.url))){const y=i&&a&&gD.read(a);y&&l.set(i,y)}return e}const ID=typeof XMLHttpRequest<"u",RD=ID&&function(n){return new Promise(function(t,r){const s=QC(n);let i=s.data;const a=Un.from(s.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:d}=s,f,m,p,y,v,x;function b(){y&&y(),v&&v(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let E=new XMLHttpRequest;E.open(s.method.toUpperCase(),s.url,!0),E.timeout=s.timeout;function T(R){if(!E)return;if(E.status===0&&(v0(XC(s.url))||v0(Rn.origin))!=="file"&&!(E.responseURL&&E.responseURL.startsWith("file:"))){r(new We("Request aborted",We.ECONNABORTED,n,E)),b(),E=null;return}try{R?x&&x(R):v&&v()}catch(_){setTimeout(()=>{throw _})}if(!E)return;const I=Un.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),N={data:!l||l==="text"||l==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:I,config:n,request:E};YC(function(j){t(j),b()},function(j){r(j),b()},N),E=null}"onloadend"in E?E.onloadend=T:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.startsWith("file:"))||setTimeout(T)},E.onabort=function(){E&&(r(new We("Request aborted",We.ECONNABORTED,n,E)),b(),E=null)},E.onerror=function(I){const L=I&&I.message?I.message:"Network Error",N=new We(L,We.ERR_NETWORK,n,E);N.event=I||null,r(N),b(),E=null},E.ontimeout=function(){let I=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const L=s.transitional||_p;s.timeoutErrorMessage&&(I=s.timeoutErrorMessage),r(new We(I,L.clarifyTimeoutError?We.ETIMEDOUT:We.ECONNABORTED,n,E)),b(),E=null},i===void 0&&a.setContentType(null),"setRequestHeader"in E&&fe.forEach(FC(a),function(I,L){E.setRequestHeader(L,I)}),fe.isUndefined(s.withCredentials)||(E.withCredentials=!!s.withCredentials),l&&l!=="json"&&(E.responseType=s.responseType),d&&([p,v,x]=ef(d,!0),E.addEventListener("progress",p)),u&&E.upload&&([m,y]=ef(u),E.upload.addEventListener("progress",m),E.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(f=R=>{E&&(r(!R||R.type?new du(null,n,E):R),E.abort(),b(),E=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const w=v0(s.url);if(w&&!Rn.protocols.includes(w)){r(new We("Unsupported protocol "+w+":",We.ERR_BAD_REQUEST,n)),b();return}E.send(i||null)})},AD=(n,e)=>
863{if(n=n?n.filter(Boolean):[],!e&&!n.length)return;const t=new AbortController;let r=!1;const s=function(u){if(!r){r=!0,a();const d=u instanceof Error?u:this.reason;t.abort(d instanceof We?d:new du(d instanceof Error?d.message:d))}};let i=e&&setTimeout(()=>{i=null,s(new We(`timeout of ${e}ms exceeded`,We.ETIMEDOUT))},e);const a=()=>{n&&(i&&clearTimeout(i),i=null,n.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),n=null)};n.forEach(u=>{if(!r){if(u.aborted){s.call(u);return}u.addEventListener("abort",s,{once:!0})}});const{signal:l}=t;return l.unsubscribe=()=>fe.asap(a),l},LD=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,s;for(;r<t;)s=r+e,yield n.slice(r,s),r=s},ND=async function*(n,e){for await(const t of kD(n))yield*LD(t,e)},kD=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},Yg=(n,e,t,r)=>{const s=ND(n,e);let i=0,a,l=u=>{a||(a=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:f}=await s.next();if(d){l(),u.close();return}let m=f.byteLength;if(t){let p=i+=m;t(p)}u.enqueue(new Uint8Array(f))}catch(d){throw l(d),d}},cancel(u){return l(u),s.return()}},{highWaterMark:2})},Xg=n=>n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102,JC=(n,e,t)=>e+2<t&&Xg(n.charCodeAt(e+1))&&Xg(n.charCodeAt(e+2)),Zg=n=>n<=57?n-48:(n&223)-55,PD=n=>n>=65&&n<=90||n>=97&&n<=122||n>=48&&n<=57||n===43||n===47||n===45||n===95,_D=n=>n===9||n===10||n===12||n===13||n===32,OD=n=>{const e=Math.floor(n/4),t=n%4;return e*3+(t===2?1:t===3?2:0)},DD=n=>{const e=n.length;let t=0;return e>0&&n.charCodeAt(e-1)===61&&(t++,e>1&&n.charCodeAt(e-2)===61&&t++),Math.floor((e-t)*3/4)},jD=n=>{const e=n.length;let t=0,r=0,s=!1;for(let i=0;i<e;i++){let a=n.charCodeAt(i);if(a===37&&JC(n,i,e)&&(a=Zg(n.charCodeAt(i+1))*16+Zg(n.charCodeAt(i+2)),i+=2),!_D(a)){if(a===61){r++;continue}if(!PD(a)||r>0){s=!0;continue}t++}}return s||r>2||r>0&&(t+r)%4!==0||t%4===1?DD(n):OD(t)},MD=(n,e)=>{if(!n||typeof n!="string"||!n.startsWith("data:"))return 0;const t=n.indexOf(",");if(t<0)return 0;const r=n.slice(5,t),s=n.slice(t+1);if(/;base64/i.test(r))return e(s);let a=0;for(let l=0,u=s.length;l<u;l++){const d=s.charCodeAt(l);if(d===37&&JC(s,l,u))a+=1,l+=2;else if(d<128)a+=1;else if(d<2048)a+=2;else if(d>=55296&&d<=56319&&l+1<u){const f=s.charCodeAt(l+1);f>=56320&&f<=57343?(a+=4,l++):a+=3}else a+=3}return a};function FD(n){const e=typeof n=="string"?n.indexOf("#"):-1;return MD(e===-1?n:n.slice(0,e),jD)}const Dp="1.20.0",Qg=64*1024,$D={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Jd}=fe,BD=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Jg=n=>{if(!fe.isString(n))return n;try{return decodeURIComponent(n)}catch{return n}},e9=(n,...e)=>{try{return!!n(...e)}
vendor: 4,713 bytes, line 863
863catch{return!1}},UD=n=>{const e=n.indexOf("://");let t=n;return e!==-1&&(t=t.slice(e+3)),t.includes("@")||t.includes(":")},VD=n=>{const e=fe.global!==void 0&&fe.global!==null?fe.global:globalThis,{ReadableStream:t,TextEncoder:r}=e;n=fe.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},n);const{fetch:s,Request:i,Response:a}=n,l=s?Jd(s):typeof fetch=="function",u=Jd(i),d=Jd(a);if(!l)return!1;const f=l&&Jd(t),m=l&&(typeof r=="function"?(E=>T=>E.encode(T))(new r):async E=>new Uint8Array(await new i(E).arrayBuffer())),p=u&&f&&e9(()=>{let E=!1;const T=new i(Rn.origin,{body:new t,method:"POST",get duplex(){return E=!0,"half"}}),w=T.headers.has("Content-Type");return T.body!=null&&T.body.cancel(),E&&!w}),y=d&&f&&e9(()=>fe.isReadableStream(new a("").body)),v={stream:y&&(E=>E.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(E=>{!v[E]&&(v[E]=(T,w)=>{let R=T&&T[E];if(R)return R.call(T);throw new We(`Response type '${E}' is not supported`,We.ERR_NOT_SUPPORT,w)})});const x=async E=>{if(E==null)return 0;if(fe.isBlob(E))return E.size;if(fe.isSpecCompliantForm(E))return(await new i(Rn.origin,{method:"POST",body:E}).arrayBuffer()).byteLength;if(fe.isArrayBufferView(E)||fe.isArrayBuffer(E))return E.byteLength;if(fe.isURLSearchParams(E)&&(E=E+""),fe.isString(E))return(await m(E)).byteLength},b=async(E,T)=>{const w=fe.toFiniteNumber(E.getContentLength());return w??x(T)};return async E=>{let{url:T,method:w,data:R,signal:I,cancelToken:L,timeout:N,onDownloadProgress:_,onUploadProgress:j,responseType:F,headers:$,withCredentials:z="same-origin",fetchOptions:W,maxContentLength:J,maxBodyLength:oe,maxRedirects:ie}=QC(E);const Z=fe.isNumber(J)&&J>-1,X=fe.isNumber(oe)&&oe>-1,ue=ve=>fe.hasOwnProp(E,ve)?E[ve]:void 0;let se=s||fetch;F=F?(F+"").toLowerCase():"text";let G=AD([I,L&&L.toAbortSignal()],N),ee=null;const Ee=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let Ce,Ae=null;const me=()=>new We("Request body larger than maxBodyLength limit",We.ERR_BAD_REQUEST,E,ee);try{let ve;const Q=ue("auth");if(Q){const K=fe.getSafeProp(Q,"username")||"",ne=fe.getSafeProp(Q,"password")||"";ve={username:K,password:ne}}if(UD(T)){const K=new URL(T,Rn.origin);if(!ve&&(K.username||K.password)){const ne=Jg(K.username),ae=Jg(K.password);ve={username:ne,password:ae}}(K.username||K.password)&&(K.username="",K.password="",T=K.href)}if(ve&&($.delete("authorization"),$.set("Authorization","Basic "+btoa(BD((ve.username||"")+":"+(ve.password||""))))),Z&&typeof T=="string"&&T.startsWith("data:")&&FD(T)>J)throw new We("maxContentLength size of "+J+" exceeded",We.ERR_BAD_RESPONSE,E,ee);if(X&&w!=="get"&&w!=="head"){const K=await x(R);if(typeof K=="number"&&isFinite(K)&&(Ce=K,K>oe))throw me()}const ge=X&&(fe.isReadableStream(R)||fe.isStream(R)),le=(K,ne,ae)=>Yg(K,Qg,P=>{if(X&&P>oe)throw Ae=me();ne&&ne(P)},ae);if(p&&w!=="get"&&w!=="head"&&(j||ge)){if(Ce=Ce??await b($,R),Ce!==0||ge){let K=new i(T,{method:"POST",body:R,duplex:"half"}),ne;if(fe.isFormData(R)&&(ne=K.headers.get("content-type"))&&$.setContentType(ne),K.body){const[ae,P]=j&&Hg(Ce,ef(Wg(j)))||[];R=le(K.body,ae,P)}}}else if(ge&&!u&&f&&w!=="get"&&w!=="head")R=le(R);else if(ge&&u&&!p&&w!=="get"&&w!=="head")throw new We("Stream request bodies are not supported by the current fetch implementation",We.ERR_NOT_SUPPORT,E,ee);fe.isString(z)||(z=z?"include":"omit");const pe=u&&"credentials"in i.prototype;if(fe.isFormData(R)){const K=$.getContentType();K&&/^multipart\/form-data/i.test(K)&&!/boundary=/i.test(K)&&$.delete("content-type")}$.set("User-Agent","axios/"+Dp,!1);const Ie=W==null?W:Object.assign(Object.create(null),W);Ie&&(delete Ie.body,delete Ie.headers,delete Ie.method,delete Ie.signal,delete Ie.duplex,delete Ie.credentials);const Ne=Object.assign(Object.create(null),Ie,{signal:G,method:w.toUpperCase(),headers:FC($.normalize()),body:R,duplex:"half",credentials:pe?z:void 0});u&&(fe.forEach($D,(K,ne)=>{Ne[ne]===void 0&&(Ne[ne]=K)}),Ne.signal===void 0&&(Ne.signal=null),Ne.body===void 0&&(Ne.body=null)),ie===0&&(Ne.redirect="manual",Ie&&(Ie.redirect="manual")),ee=u&&new i(T,Ne);let Fe=await(u?se(ee,Ie):se(T,Ne));const Me=Un.from(Fe.headers);if(Z){const K=fe.toFiniteNumber(Me.getContentLength());if(K!=null&&K>J)throw new We("maxContentLength size of "+J+" exceeded",We.ERR_BAD_RESPONSE,E,ee)}const ke=y&&(F==="stream"||F==="response");if(y&&Fe.body&&(_||Z||ke&&Ee)){const K={};["status","statusText","headers"].forEach(V=>{K[V]=Fe[V]});const ne=fe.toFiniteNumber(Me.getContentLength()),[ae,P]=_&&Hg(ne,ef(Wg(_),!0))||[];let D=0;const B=V=>{if(Z&&(D=V,D>J))throw new We("maxContentLength size of "+J+" exceeded",We.ERR_BAD_RESPONSE,E,ee);ae&&ae(V)};Fe=new a(Yg(Fe.body,Qg,B,()=>{P&&P(),Ee&&Ee()}),K)}F=F||"text";
vendor: 4,612 bytes, lines 863-868
863let Ge=await v[fe.findKey(v,F)||"text"](Fe,E);if(Z&&!y&&!ke){let K;if(Ge!=null&&(typeof Ge.byteLength=="number"?K=Ge.byteLength:typeof Ge.size=="number"?K=Ge.size:typeof Ge=="string"&&(K=typeof r=="function"?new r().encode(Ge).byteLength:Ge.length)),typeof K=="number"&&K>J)throw new We("maxContentLength size of "+J+" exceeded",We.ERR_BAD_RESPONSE,E,ee)}return!ke&&Ee&&Ee(),await new Promise((K,ne)=>{YC(K,ne,{data:Ge,headers:Un.from(Fe.headers),status:Fe.status,statusText:Fe.statusText,config:E,request:ee})})}catch(ve){if(Ee&&Ee(),G&&G.aborted&&G.reason instanceof We){const Q=G.reason;throw Q.config=E,ee&&(Q.request=ee),ve!==Q&&Object.defineProperty(Q,"cause",{__proto__:null,value:ve,writable:!0,enumerable:!1,configurable:!0}),Q}if(Ae)throw ee&&!Ae.request&&(Ae.request=ee),Ae;if(ve instanceof We)throw ee&&!ve.request&&(ve.request=ee),ve;if(ve&&ve.name==="TypeError"&&/Load failed|fetch/i.test(ve.message)){const Q=new We("Network Error",We.ERR_NETWORK,E,ee,ve&&ve.response);throw Object.defineProperty(Q,"cause",{__proto__:null,value:ve.cause||ve,writable:!0,enumerable:!1,configurable:!0}),Q}throw We.from(ve,ve&&ve.code,E,ee,ve&&ve.response)}}},zD=new Map,eb=n=>{let e=n&&n.env||{};const{fetch:t,Request:r,Response:s}=e,i=[r,s,t];let a=i.length,l=a,u,d,f=zD;for(;l--;)u=i[l],d=f.get(u),d===void 0&&f.set(u,d=l?new Map:VD(e)),f=d;return d};eb();const jp={http:XO,xhr:RD,fetch:{get:eb}};fe.forEach(jp,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(n,"adapterName",{__proto__:null,value:e})}});const t9=n=>`- ${n}`,GD=n=>fe.isFunction(n)||n===null||n===!1;function HD(n,e){n=fe.isArray(n)?n:[n];const{length:t}=n;let r,s;const i={};for(let a=0;a<t;a++){r=n[a];let l;if(s=r,!GD(r)&&(s=jp[(l=String(r)).toLowerCase()],s===void 0))throw new We(`Unknown adapter '${l}'`);if(s&&(fe.isFunction(s)||(s=s.get(e))))break;i[l||"#"+a]=s}if(!s){const a=Object.entries(i).map(([u,d])=>`adapter ${u} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=t?a.length>1?`since :
864`+a.map(t9).join(`
865`):" "+t9(a[0]):"as no adapter specified";throw new We("There is no suitable adapter to dispatch the request "+l,We.ERR_NOT_SUPPORT)}return s}const tb={getAdapter:HD,adapters:jp};function x0(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new du(null,n)}function C0(n){const e=fe.toSafeFlatObject(n);return x0(e),e.headers=Un.from(fe.getSafeProp(e,"headers")),e.data=y0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tb.getAdapter(e.adapter||uu.adapter,e)(e).then(function(s){x0(e),e.response=s;try{s.data=y0.call(e,e.transformResponse,s)}finally{delete e.response}return s.headers=Un.from(s.headers),s},function(s){if(!qC(s)&&(x0(e),s&&s.response)){e.response=s.response;try{s.response.data=y0.call(e,e.transformResponse,s.response)}finally{delete e.response}s.response.headers=Un.from(s.response.headers)}return Promise.reject(s)})}const Gf={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Gf[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});const n9={};Gf.transitional=function(e,t,r){function s(i,a){return"[Axios v"+Dp+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(e===!1)throw new We(s(a," has been removed"+(t?" in "+t:"")),We.ERR_DEPRECATED);return t&&!n9[a]&&(n9[a]=!0,console.warn(s(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,a,l):!0}};Gf.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function WD(n,e,t){if(typeof n!="object"||n===null)throw new We("options must be an object",We.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let s=r.length;for(;s-- >0;){const i=r[s],a=Object.prototype.hasOwnProperty.call(e,i)?e[i]:void 0;if(a){const l=n[i],u=l===void 0||a(l,i,n);if(u!==!0)throw new We("option "+i+" must be "+u,We.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new We("Unknown option "+i,We.ERR_BAD_OPTION)}}const O1={assertOptions:WD,validators:Gf},Fn=O1.validators;let Ea=class{constructor(e){this.defaults=e||{},this.interceptors={request:new zg,response:new zg}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error)try{let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack;let a="";if(typeof i=="string"){const l=i.indexOf(`
866`);a=l===-1?"":i.slice(l+1)}if(!r.stack)r.stack=a;else if(a){const l=a.indexOf(`
867`),u=l===-1?-1:a.indexOf(`
868`,l+1),d=u===-1?"":a.slice(u+1);
vendor: 3,857 bytes, lines 868-869
868String(r.stack).endsWith(d)||(r.stack+=`
869`+a)}}catch{}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Oa(this.defaults,t);const{transitional:r,paramsSerializer:s,headers:i}=t;r!==void 0&&O1.assertOptions(r,{silentJSONParsing:Fn.transitional(Fn.boolean),forcedJSONParsing:Fn.transitional(Fn.boolean),clarifyTimeoutError:Fn.transitional(Fn.boolean),legacyInterceptorReqResOrdering:Fn.transitional(Fn.boolean),advertiseZstdAcceptEncoding:Fn.transitional(Fn.boolean),validateStatusUndefinedResolves:Fn.transitional(Fn.boolean)},!1),s!=null&&(fe.isFunction(s)?t.paramsSerializer={serialize:s}:O1.assertOptions(s,{encode:Fn.function,serialize:Fn.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),O1.assertOptions(t,{baseUrl:Fn.spelling("baseURL"),withXsrfToken:Fn.spelling("withXSRFToken")},!0),t.method=(fe.getSafeProp(t,"method")||fe.getSafeProp(this.defaults,"method")||"get").toLowerCase();let a=i&&fe.merge(i.common,i[t.method]);i&&fe.forEach(KC.concat("common"),v=>{delete i[v]}),t.headers=Un.concat(a,i);const l=[];let u=!0;this.interceptors.request.forEach(function(x){if(typeof x.runWhen=="function"&&x.runWhen(t)===!1)return;u=u&&x.synchronous;const b=t.transitional||_p;b&&b.legacyInterceptorReqResOrdering?l.unshift(x.fulfilled,x.rejected):l.push(x.fulfilled,x.rejected)});const d=[];this.interceptors.response.forEach(function(x){d.push(x.fulfilled,x.rejected)});let f,m=0,p;if(!u){const v=[C0.bind(this),void 0];for(v.unshift(...l),v.push(...d),p=v.length,f=Promise.resolve(t);m<p;)f=f.then(v[m++],v[m++]);return f}p=l.length;let y=t;for(;m<p;){const v=l[m++],x=l[m++];try{y=v?v(y):y}catch(b){if(!x){f=Promise.reject(b);break}try{const E=x.call(this,b);fe.isThenable(E)&&(f=Promise.resolve(E).then(()=>C0.call(this,y)))}catch(E){f=Promise.reject(E)}break}}if(!f)try{f=C0.call(this,y)}catch(v){f=Promise.reject(v)}for(m=0,p=d.length;m<p;)f=f.then(d[m++],d[m++]);return f}getUri(e){e=Oa(this.defaults,e);const t=ZC(e.baseURL,e.url,e.allowAbsoluteUrls,e);return zC(t,e.params,e.paramsSerializer)}};fe.forEach(["delete","get","head","options"],function(e){Ea.prototype[e]=function(t,r){return this.request(Oa(r||{},{method:e,url:t,data:r&&fe.hasOwnProp(r,"data")?r.data:void 0}))}});fe.forEach(["post","put","patch","query"],function(e){function t(r){return function(i,a,l){return this.request(Oa(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ea.prototype[e]=t(),e!=="query"&&(Ea.prototype[e+"Form"]=t(!0))});let KD=class nb{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(s);return a.cancel=function(){r.unsubscribe(i)},a},e(function(i,a,l){r.reason||(r.reason=new du(i,a,l),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new nb(function(s){e=s}),cancel:e}}};function qD(n){return function(t){return n.apply(null,t)}}function YD(n){return fe.isObject(n)&&n.isAxiosError===!0}const D1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
869alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};
869Object.entries(D1).forEach(([n,e])=>{D1[e]===void 0&&(D1[e]=n)});function rb(n){const e=new Ea(n),t=RC(Ea.prototype.request,e);return fe.extend(t,Ea.prototype,e,{allOwnKeys:!0}),fe.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return rb(Oa(n,s))},t}const Pe=rb(uu);Pe.Axios=Ea;Pe.CanceledError=du;Pe.CancelToken=KD;Pe.isCancel=qC;Pe.VERSION=Dp;Pe.toFormData=zf;Pe.AxiosError=We;Pe.Cancel=Pe.CanceledError;Pe.all=function(e){return Promise.all(e)};Pe.spread=qD;Pe.isAxiosError=YD;Pe.mergeConfig=Oa;Pe.AxiosHeaders=Un;Pe.formToJSON=n=>WC(fe.isHTMLForm(n)?new FormData(n):n);Pe.getAdapter=tb.getAdapter;Pe.HttpStatusCode=D1;Pe.default=Pe;const{Axios:ete,AxiosError:tte,CanceledError:nte,isCancel:rte,CancelToken:ste,VERSION:ite,all:ate,Cancel:ote,isAxiosError:lte,spread:cte,toFormData:ute,AxiosHeaders:dte,HttpStatusCode:Hf,formToJSON:fte,getAdapter:hte,mergeConfig:mte,create:pte}=Pe,XD="/assets/loading-DBbdAG7k.gif",ZD="user_id",QD="token",JD="tokenExpiry",e1="settings_need_load",Wf=".jpeg,.jpg,.png",ej="image/*",Kf="2560Kb";function bn(){if(document.cookie.includes("userId")){let n=document.cookie.split(";");for(let e=0;e<n.length;e++)if(n[e].trim().split("=")[0]==="userId")return n[e].trim().split("=")[1]}return null}const va=()=>bn(),Lo=()=>document.cookie.includes("token"),tj=n=>{localStorage.setItem("favoriteChannels",n)},nj=n=>{localStorage.setItem("followedChannels",n)},sb=n=>{localStorage.setItem("settings",n)},ib=()=>{Pe.get(kt+"/user").then(n=>{let e=n.data;tj(JSON.stringify(e.favoriteChannels)),nj(JSON.stringify(e.favoriteChannels)),sb(JSON.stringify(e.favoriteChannels))}).catch(n=>{console.log("exception: "+n)})},rj=()=>!!(!localStorage.getItem(e1)===void 0||localStorage.getItem(e1)===null||localStorage.getItem(e1)===""||localStorage.getItem(e1)),ab=n=>Pe.get(`${Ft}/user/channel?channel=${n}`),ic=()=>Pe.get(`${kt}/channel`).then(n=>n.data),ob=n=>Pe.get(`${kt}/channel/${n}`).then(e=>e.data),sj=n=>sl(`${kt}/categories${n}`),ij=n=>sl(`${kt}/categories/url${n}`),lb=()=>Pe.get(`${Ft}/user`),Ht=(n,e,t,r,s,i,a,l)=>o.jsx(Ts,{itemProp:"image",id:t,src:"data:image/"+n+";base64,"+e,alt:r||t,style:s,className:i,onClick:a,title:l||t}),cb=(n,e,t,r,s,i)=>o.jsx(Ts,{itemProp:"Profile Picture",id:t,src:"data:image/"+n+";base64,"+e,alt:r,style:s,roundedCircle:!0,className:i}),aj=()=>sl(kt+"/homePage"),oj=()=>sl(kt+"/channel/live"),lj=n=>sl(kt+"/user/"+n),cj=()=>sl(kt+"/homeTabs"),sl=async n=>{try{return(await Pe.get(n)).data}catch(e){console.log(e)}},Da=n=>/[\s$@#^%!*()/\\]/g.test(n),uj=n=>/[\s$@#^%!*()\\]/g.test(n),dj=n=>/[$@#^%!*()]\/\\/g.test(n),Mp={position:"bottom-center",autoClose:2048,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0,theme:"dark",width:25,toastId:"onlyToast"},Et=n=>{Ut.info(n,Mp)},Tt=n=>{Ut.success(n,Mp)},je=n=>{Ut.error(n,Mp)},fj=n=>{const[e,t]=S.useState(!1),[r,s]=S.useState(!1),i=(n==null?void 0:n.imageSrc)??XD;return o.jsxs("div",{className:"loading-screen",style:{zIndex:"99",width:"100%",height:"100vh",backgroundColor:"var(--default-background-color, #372f2b)",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",...n==null?void 0:n.style},children:[(!e||r||!i)&&o.jsx(Ua,{animation:"border",role:"status","aria-label":"Loading",style:{color:"var(--a-color, #60e1b7)",width:"3rem",height:"3rem"},children:o.jsx("span",{className:"visually-hidden",children:"Loading..."})}),i&&!r&&o.jsx("img",{src:i,alt:"loading",className:"loading-img",style:{display:e?"block":"none"},onLoad:()=>t(!0),onError:()=>s(!0)})]})},_n=o.jsx(fj,{}),hj=(n,e)=>(!n||n.length===0||n.forEach(t=>{if(t.userName===e)return!0}),!1),kc=n=>{if(!n||typeof n!="string")return n;const e=/(https?:\/\/\S+|[\w-]+(?:\.[\w-]+)*\.[a-zA-Z]{2,}(?:\/\S*)?)/g;return n.replace(e,function(t){return'<a href="'+t+'">'+t+"</a>"})},r9=n=>!n||typeof n!="string"?n:n.replace(/(<a\b[^>]*>.*?<\/a>)|((?:^|[^a-zA-Z0-9_])@([a-zA-Z0-9_]+))/g,(e,t,r,s)=>t||e.slice(0,e.indexOf("@"))+"<b>@"+s+"</b>"),s9=(n,e)=>{if(!n||!e||typeof n!="string"||typeof e!="string")return!1;const t=e.trim().toLowerCase();if(!t)return!1;
869const r=/(?:^|[^a-zA-Z0-9_])@([a-zA-Z0-9_]+)/g;let s;for(;(s=r.exec(n))!==null;)if(s[1].toLowerCase()===t)return!0;return!1},ze=Number.isFinite||function(n){return typeof n=="number"&&isFinite(n)},mj=Number.isSafeInteger||function(n){return typeof n=="number"&&Math.abs(n)<=pj},pj=Number.MAX_SAFE_INTEGER||9007199254740991;let nt=(function(n){return n.NETWORK_ERROR="networkError",n.MEDIA_ERROR="mediaError",n.KEY_SYSTEM_ERROR="keySystemError",n.MUX_ERROR="muxError",n.OTHER_ERROR="otherError",n})({}),ye=(function(n){return n.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",n.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",n.KEY_SYSTEM_NO_SESSION="keySystemNoSession",n.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",n.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",n.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",n.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",n.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",n.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",n.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",n.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",n.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",n.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",n.MANIFEST_LOAD_ERROR="manifestLoadError",n.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",n.MANIFEST_PARSING_ERROR="manifestParsingError",n.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",n.LEVEL_EMPTY_ERROR="levelEmptyError",n.PLAYLIST_UNCHANGED_ERROR="playlistUnchangedError",n.LEVEL_LOAD_ERROR="levelLoadError",n.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",n.LEVEL_PARSING_ERROR="levelParsingError",n.LEVEL_SWITCH_ERROR="levelSwitchError",n.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",n.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",n.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",n.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",n.FRAG_LOAD_ERROR="fragLoadError",n.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",n.FRAG_DECRYPT_ERROR="fragDecryptError",n.FRAG_PARSING_ERROR="fragParsingError",n.FRAG_GAP="fragGap",n.REMUX_ALLOC_ERROR="remuxAllocError",n.KEY_LOAD_ERROR="keyLoadError",n.KEY_LOAD_TIMEOUT="keyLoadTimeOut",n.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",n.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",n.BUFFER_APPEND_ERROR="bufferAppendError",n.BUFFER_APPENDING_ERROR="bufferAppendingError",n.BUFFER_APPEND_NO_PROGRESS="bufferAppendNoProgress",n.BUFFER_STALLED_ERROR="bufferStalledError",n.BUFFER_FULL_ERROR="bufferFullError",n.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",n.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",n.ASSET_LIST_LOAD_ERROR="assetListLoadError",n.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",n.ASSET_LIST_PARSING_ERROR="assetListParsingError",n.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",n.INTERNAL_EXCEPTION="internalException",n.INTERNAL_ABORTED="aborted",n.ATTACH_MEDIA_ERROR="attachMediaError",n.MEDIA_SOURCE_REQUIRES_RESET="mediaSourceRequiresReset",n.UNKNOWN="unknown",n})({}),M=(function(n){return n.MEDIA_ATTACHING="hlsMediaAttaching",n.MEDIA_ATTACHED="hlsMediaAttached",n.MEDIA_DETACHING="hlsMediaDetaching",n.MEDIA_DETACHED="hlsMediaDetached",n.MEDIA_ENDED="hlsMediaEnded",n.STALL_RESOLVED="hlsStallResolved",n.BUFFER_RESET="hlsBufferReset",n.BUFFER_CODECS="hlsBufferCodecs",n.BUFFER_CREATED="hlsBufferCreated",n.BUFFER_APPENDING="hlsBufferAppending",n.BUFFER_APPENDED="hlsBufferAppended",n.BUFFER_EOS="hlsBufferEos",n.BUFFERED_TO_END="hlsBufferedToEnd",n.BUFFER_FLUSHING="hlsBufferFlushing",n.BUFFER_FLUSHED="hlsBufferFlushed",n.MANIFEST_LOADING="hlsManifestLoading",n.MANIFEST_LOADED="hlsManifestLoaded",n.MANIFEST_PARSED="hlsManifestParsed",n.LEVEL_SWITCHING="hlsLevelSwitching",n.LEVEL_SWITCHED="hlsLevelSwitched",n.LEVEL_LOADING="hlsLevelLoading",n.LEVEL_LOADED="hlsLevelLoaded",n.LEVEL_UPDATED="hlsLevelUpdated",n.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",n.LEVELS_UPDATED="hlsLevelsUpdated",n.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",n.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",n.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",n.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",n.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",n.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",n.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUp
869dated",n.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",n.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",n.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",n.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",n.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",n.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",n.CUES_PARSED="hlsCuesParsed",n.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",n.INIT_PTS_FOUND="hlsInitPtsFound",n.FRAG_LOADING="hlsFragLoading",n.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",n.FRAG_LOADED="hlsFragLoaded",n.FRAG_DECRYPTED="hlsFragDecrypted",n.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",n.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",n.FRAG_PARSING_METADATA="hlsFragParsingMetadata",n.FRAG_PARSED="hlsFragParsed",n.FRAG_BUFFERED="hlsFragBuffered",n.FRAG_CHANGED="hlsFragChanged",n.FPS_DROP="hlsFpsDrop",n.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",n.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",n.ERROR="hlsError",n.DESTROYING="hlsDestroying",n.KEY_LOADING="hlsKeyLoading",n.KEY_LOADED="hlsKeyLoaded",n.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",n.BACK_BUFFER_REACHED="hlsBackBufferReached",n.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",n.ASSET_LIST_LOADING="hlsAssetListLoading",n.ASSET_LIST_LOADED="hlsAssetListLoaded",n.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",n.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",n.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",n.INTERSTITIAL_STARTED="hlsInterstitialStarted",n.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",n.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",n.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",n.INTERSTITIAL_ENDED="hlsInterstitialEnded",n.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",n.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",n.EVENT_CUE_ENTER="hlsEventCueEnter",n})({});function gj(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var b0={exports:{}},i9;function yj(){return i9||(i9=1,(function(n,e){(function(t){var r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,s=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,l={buildAbsoluteURL:function(u,d,f){if(f=f||{},u=u.trim(),d=d.trim(),!d){if(!f.alwaysNormalize)return u;var m=l.parseURL(u);if(!m)throw new Error("Error trying to parse base URL.");return m.path=l.normalizePath(m.path),l.buildURLFromParts(m)}var p=l.parseURL(d);if(!p)throw new Error("Error trying to parse relative URL.");if(p.scheme)return f.alwaysNormalize?(p.path=l.normalizePath(p.path),l.buildURLFromParts(p)):d;var y=l.parseURL(u);if(!y)throw new Error("Error trying to parse base URL.");if(!y.netLoc&&y.path&&y.path[0]!=="/"){var v=s.exec(y.path);y.netLoc=v[1],y.path=v[2]}y.netLoc&&!y.path&&(y.path="/");var x={scheme:y.scheme,netLoc:p.netLoc,path:null,params:p.params,query:p.query,fragment:p.fragment};if(!p.netLoc&&(x.netLoc=y.netLoc,p.path[0]!=="/"))if(!p.path)x.path=y.path,p.params||(x.params=y.params,p.query||(x.query=y.query));else{var b=y.path,E=b.substring(0,b.lastIndexOf("/")+1)+p.path;x.path=l.normalizePath(E)}return x.path===null&&(x.path=f.alwaysNormalize?l.normalizePath(p.path):p.path),l.buildURLFromParts(x)},parseURL:function(u){var d=r.exec(u);return d?{scheme:d[1]||"",netLoc:d[2]||"",path:d[3]||"",params:d[4]||"",query:d[5]||"",fragment:d[6]||""}:null},normalizePath:function(u){for(u=u.split("").reverse().join("").replace(i,"");u.length!==(u=u.replace(a,"")).length;);return u.split("").reverse().join("")},buildURLFromParts:function(u){return u.scheme+u.netLoc+u.path+u.params+u.query+u.fragment}};n.exports=l})()})(b0)),b0.exports}var Fp=yj();class $p{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}let St=(function(n){return n.MANIFEST="manifest",n.LEVEL="level",n.AUDIO_TRACK="audioTrack",
vendor: 60,162 bytes, lines 869-879
869n.SUBTITLE_TRACK="subtitleTrack",n.MEDIA_FRAGMENT="media-fragment",n.KEY="key",n.STEERING_MANIFEST="steering-manifest",n.SERVER_CERTIFICATE="server-certificate",n.INTERSTITIAL_ASSET_LIST="interstitial-asset-list",n})({}),Qe=(function(n){return n.MAIN="main",n.AUDIO="audio",n.SUBTITLE="subtitle",n})({});var Kt={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class ub{constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,typeof e=="string"&&(e={url:e}),this.base=e,xj(this,"stats")}setByteRange(e,t){const r=e.split("@",2);let s;r.length===1?s=(t==null?void 0:t.byteRangeEndOffset)||0:s=parseInt(r[1]),this._byteRange=[s,parseInt(r[0])+s]}get baseurl(){return this.base.url}get byteRange(){return this._byteRange===null?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return this._streams===null&&(this._streams={[Kt.AUDIO]:null,[Kt.VIDEO]:null,[Kt.AUDIOVIDEO]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return this._stats!==null}get hasStreams(){return this._streams!==null}get stats(){return this._stats===null&&(this._stats=new $p),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.relurl&&(this._url=Fp.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[Kt.AUDIO]=null,e[Kt.VIDEO]=null,e[Kt.AUDIOVIDEO]=null,this.url=null}}function un(n){return n.sn!=="initSegment"}function ac(n,e){return n.sn===(e==null?void 0:e.sn)&&n.level===e.level}function Fm(n,e){return n.sn===(e==null?void 0:e.sn)&&n.level===e.level&&n.cc===e.cc}class t1 extends ub{constructor(e,t){super(t),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get byteLength(){if(this.hasStats){const e=this.stats.total;if(e)return e}if(this.byteRange.length){const e=this.byteRange[0],t=this.byteRange[1];if(ze(e)&&ze(t))return t-e}return null}get bitrate(){return this.byteLength?this.byteLength*8/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){var e;const{levelkeys:t}=this;if(!t||t.NONE)return null;if(t.identity)this._decryptdata||(this._decryptdata=t.identity.getDecryptData(this.sn));else if(!((e=this._decryptdata)!=null&&e.keyId)){const r=Object.keys(t);if(r.length===1){const s=this._decryptdata=t[r[0]]||null;s&&(this._decryptdata=s.getDecryptData(this.sn,t))}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)return null;const e=ze(this.duration)?this.duration:0;return this.programDateTime+e*1e3}get encrypted(){var e;if((e=this._decryptdata)!=null&&e.encrypted)return!0;if(this.levelkeys){var t;const r=Object.keys(this.levelkeys),s=r.length;if(s>1||s===1&&(t=this.levelkeys[r[0]])!=null&&t.encrypted)return!0}return!1}get programDateTime(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){if(!ze(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return un(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){const t=this.levelkeys;if(t){var r;const s=t[e];s&&!((r=this._decryptdata)!=null&&r.keyId)&&(this._decryptdata=s.getDecryptData(this.sn,t))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,r,s,i,a=!1){const{elementaryStreams:l}=this,u=l[e];if(!u){l[e]={startPTS:t,endPTS:r,startDTS:s,endDTS:i,partial:a};return}u.startPTS=Math.min(u.startPTS,t),u.endPTS=Math.max(u.endPTS,r),u.startDTS=Math.min(u.startDTS,s),u.endDTS=Math.max(u.endDTS,i)}}class vj extends ub{constructor(e,t,r,s,i){super(r),this.fragOffset=0,this.duration=0,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.gap=!1,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=s;const a=e.enumeratedString("BYTERANGE");a&&this.setByteRange(a,i),i&&(this.fragOffset=i.fragOffset+i.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo||this.fragment.type===Qe.SUBTITLE&&this.stats.loading.end>0)}}function db(n,e){const t=Object.getPrototypeOf(n);if(t){const r=Object.getOwnPropertyDescriptor(t,e);return r||db(t,e)}}function xj(n,e){const t=db(n,e);t&&(t.enumerable=!0,Object.defineProperty(n,e,t))}function Cj(n,e,t){return(e=Ej(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Vt(){return Vt=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Vt.apply(null,arguments)}function a9(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),t.push.apply(t,r)}return t}function st(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?a9(Object(t),!0).forEach(function(r){Cj(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):a9(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function qf(n,e){if(n==null)return{};var t,r,s=bj(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(n,t)&&(s[t]=n[t])}return s}function bj(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)!==-1)continue;t[r]=n[r]}return t}function Sj(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Ej(n){var e=Sj(n,"string");return typeof e=="symbol"?e:e+""}function tf(n){switch(n.details){case ye.FRAG_LOAD_TIMEOUT:case ye.KEY_LOAD_TIMEOUT:case ye.LEVEL_LOAD_TIMEOUT:case ye.MANIFEST_LOAD_TIMEOUT:case ye.AUDIO_TRACK_LOAD_TIMEOUT:case ye.SUBTITLE_TRACK_LOAD_TIMEOUT:case ye.ASSET_LIST_LOAD_TIMEOUT:return!0}return!1}function fb(n){return n.details.startsWith("key")}function hb(n){return fb(n)&&!!n.frag&&!n.frag.decryptdata}function o9(n,e){const t=tf(e);return n.default[`${t?"timeout":"error"}Retry`]}function Bp(n,e){const t=n.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*n.retryDelayMs,n.maxRetryDelayMs)}function l9(n){return st(st({},n),{errorRetry:null,timeoutRetry:null})}function Pc(n,e,t,r){if(!n)return!1;const s=r==null?void 0:r.code,i=e<n.maxNumRetry&&(wj(s)||!!t);return n.shouldRetry?n.shouldRetry(n,e,t,r,i):i}function wj(n){return _c(n)||!!n&&(n<400||n>499)}function _c(n){return n===0&&navigator.onLine===!1}function mb(n,e){return e>0&&n.loadError>0&&n.loadErrorTime!==0&&self.performance.now()-n.loadErrorTime>e}class bo{constructor(e,t=0,r=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=r}sample(e,t){const r=Math.pow(this.alpha_,e);this.estimate_=t*(1-r)+r*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class Tj{constructor(e,t,r,s=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new bo(e),this.fast_=new bo(t),this.defaultTTFB_=s,this.ttfb_=new bo(e)}update(e,t){const{slow_:r,fast_:s,ttfb_:i}=this;r.halfLife!==e&&(this.slow_=new bo(e,r.getEstimate(),r.getTotalWeight())),s.halfLife!==t&&(this.fast_=new bo(t,s.getEstimate(),s.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new bo(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){if(t<=0)return;const r=Math.min(this.minDelayMs_,t/1e5),s=8*t,i=Math.max(e,r)/1e3,a=s/i;this.fast_.sample(i,a),this.slow_.sample(i,a)}sampleTTFB(e){const t=e/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(r,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}class Sr{constructor(e,t){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;const r=`[${e}]:`;this.trace=Ai,this.debug=t.debug.bind(null,r),this.log=t.log.bind(null,r),this.warn=t.warn.bind(null,r),this.info=t.info.bind(null,r),this.error=t.error.bind(null,r)}}const Ai=function(){},Ij={trace:Ai,debug:Ai,log:Ai,warn:Ai,info:Ai,error:Ai};function $m(){return Vt({},Ij)}function Rj(n,e){const t=self.console[n];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${n}] >`):Ai}function c9(n,e,t){return e[n]?e[n].bind(e):Rj(n,t)}const Bm=$m();function Aj(n,e,t){const r=$m();if(typeof console=="object"&&n===!0||typeof n=="object"){const s=["debug","log","info","warn","error"];s.forEach(i=>{r[i]=c9(i,n,t)});try{r.log(`Debug logs enabled for "${e}" in hls.js version 1.7.3`)}catch{return $m()}s.forEach(i=>{Bm[i]=c9(i,n)})}else Vt(Bm,r);return r}const Ot=Bm;function Fi(n=!0){return typeof self>"u"?void 0:(n||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Lj(n){return typeof self<"u"&&n===self.ManagedMediaSource}function pb(n,e){const t=Object.keys(n),r=Object.keys(e),s=t.length,i=r.length;return!s||!i||s===i&&!t.some(a=>r.indexOf(a)===-1)}function Nj(n){return btoa(String.fromCharCode(...n))}function Yf(n){return n instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&n instanceof SharedArrayBuffer}const kj="utf-16",S0="utf-16be",u9="utf-16le",j1="utf-8";function Pj(n,e={}){let t;Yf(n)?t=new DataView(n):t=new DataView(n.buffer,n.byteOffset,n.byteLength);let r=0,{encoding:s}=e;if(!s){const d=t.getUint8(0),f=t.getUint8(1);d==239&&f==187&&t.getUint8(2)==191?(s=j1,r=3):d==254&&f==255?(s=S0,r=2):d==255&&f==254?(s=u9,r=2):s=j1}if(typeof TextDecoder<"u")return new TextDecoder(s).decode(t);const{byteLength:i}=t,a=s!==S0;let l="",u;for(;r<i;){switch(s){case j1:if(u=t.getUint8(r),u<128)r++;else if(u>=194&&u<=223)if(r+1<i){const d=t.getUint8(r+1);d>=128&&d<=191?(u=(u&31)<<6|d&63,r+=2):r++}else r++;else if(u>=224&&u<=239)if(r+2<=i-1){const d=t.getUint8(r+1),f=t.getUint8(r+2);d>=128&&d<=191&&f>=128&&f<=191?(u=(u&15)<<12|(d&63)<<6|f&63,r+=3):r++}else r++;else if(u>=240&&u<=244)if(r+3<=i-1){const d=t.getUint8(r+1),f=t.getUint8(r+2),m=t.getUint8(r+3);d>=128&&d<=191&&f>=128&&f<=191&&m>=128&&m<=191?(u=(u&7)<<18|(d&63)<<12|(f&63)<<6|m&63,r+=4):r++}else r++;else r++;break;case S0:case kj:case u9:u=t.getUint16(r,a),r+=2;break}l+=String.fromCodePoint(u)}return l}function _j(n){const e=typeof n=="string"?new URL(n):n;return e.origin+e.pathname.substring(0,e.pathname.lastIndexOf("/")+1)}function gb(n,e){if(n<0)return-gb(-n,e);const t=Math.pow(10,e);if(Math.abs(n*t%1-.5)<Number.EPSILON){const r=Math.floor(n*t);return(r%2===0?r:r+1)/t}else return Math.round(n*t)/t}function Oj(n,e){let t;try{t=new URL(n)}catch{return n}const r=new URL(e);if(t.origin!==r.origin)return n;const s=t.pathname.split("/").slice(1),i=r.pathname.split("/").slice(1,-1),a=Math.min(s.length,i.length);for(let l=0;l<a&&s[l]===i[l];l++)s.shift(),i.shift();for(;i.length;)i.shift(),s.unshift("..");return s.join("/")+t.search+t.hash}function yb(){try{return crypto.randomUUID()}catch{try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch{let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const s=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(r=="x"?s:s&3|8).toString(16)})}}}function Up(n,e){return e+10<=n.length&&n[e]===73&&n[e+1]===68&&n[e+2]===51&&n[e+3]<255&&n[e+4]<255&&n[e+6]<128&&n[e+7]<128&&n[e+8]<128&&n[e+9]<128}function Xf(n,e){let t=0;return t=(n[e]&127)<<21,t|=(n[e+1]&127)<<14,t|=(n[e+2]&127)<<7,t|=n[e+3]&127,t}function Dj(n,e){return Up(n,e)&&Xf(n,e+6)+10<=n.length-e}function vb(n,e){return e+10<=n.length&&n[e]===51&&n[e+1]===68&&n[e+2]===73&&n[e+3]<255&&n[e+4]<255&&n[e+6]<128&&n[e+7]<128&&n[e+8]<128&&n[e+9]<128}function Oc(n,e){const t=e;let r=0;for(;Up(n,e);){r+=10;const s=Xf(n,e+6);r+=s,vb(n,e+10)&&(r+=10),e+=r}if(r>0)return n.subarray(t,t+r)}function jj(n){return Yf(n)?n:n.byteOffset==0&&n.byteLength==n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer}function E0(n,e=0,t=1/0){return Mj(n,e,t,Uint8Array)}function Mj(n,e,t,r){const s=Fj(n);let i=1;"BYTES_PER_ELEMENT"in r&&(i=r.BYTES_PER_ELEMENT);const a=$j(n)?n.byteOffset:0,l=(a+n.byteLength)/i,u=(a+e)/i,d=Math.floor(Math.max(0,Math.min(u,l)));return new r(s,d,Math.floor(Math.min(d+Math.max(t,0),l))-d)}function Fj(n){return Yf(n)?n:n.buffer}function $j(n){return n&&Yf(n.buffer)&&n.byteLength!==void 0&&n.byteOffset!==void 0}function vr(n,e=!1){const t=e?n.indexOf(0):n.length,r=Pj(new DataView(n.buffer,n.byteOffset,t),{encoding:j1});return e?r:r.replace(/\0/g,"")}function Bj(n){const e={key:n.type,description:"",data:"",mimeType:null,pictureType:null},t=3;if(n.size<2)return;if(n.data[0]!==t){console.log("Ignore frame with unrecognized character encoding");return}const r=n.data.subarray(1).indexOf(0);if(r===-1)return;const s=vr(E0(n.data,1,r)),i=n.data[2+r],a=n.data.subarray(3+r).indexOf(0);if(a===-1)return;const l=vr(E0(n.data,3+r,a));let u;return s==="-->"?u=vr(E0(n.data,4+r+a)):u=jj(n.data.subarray(4+r+a)),e.mimeType=s,e.pictureType=i,e.description=l,e.data=u,e}function Uj(n){if(n.size<2)return;const e=vr(n.data,!0),t=new Uint8Array(n.data.subarray(e.length+1));return{key:n.type,info:e,data:t.buffer}}function Vj(n){if(n.size<2)return;if(n.type==="TXXX"){let t=1;const{data:r}=n,s=vr(r.subarray(t),!0);t+=s.length+1;const i=vr(r.subarray(t));return{key:n.type,info:s,data:i}}const e=vr(n.data.subarray(1));return{key:n.type,info:"",data:e}}function zj(n){if(n.type==="WXXX"){if(n.size<2)return;let t=1;const r=vr(n.data.subarray(t),!0);t+=r.length+1;const s=vr(n.data.subarray(t));return{key:n.type,info:r,data:s}}const e=vr(n.data);return{key:n.type,info:"",data:e}}function Gj(n){return n.type==="PRIV"?Uj(n):n.type[0]==="W"?zj(n):n.type==="APIC"?Bj(n):Vj(n)}function Hj(n){const e=String.fromCharCode(n[0],n[1],n[2],n[3]),t=Xf(n,4),r=10;return{type:e,size:t,data:n.subarray(r,r+t)}}const n1=10,Wj=10;function xb(n){let e=0;const t=[];for(;Up(n,e);){const r=Xf(n,e+6);n[e+5]>>6&1&&(e+=n1),e+=n1;const s=e+r;for(;e+Wj<s;){const i=Hj(n.subarray(e)),a=Gj(i);a&&t.push(a),e+=i.size+n1}vb(n,e)&&(e+=n1)}return t}function Cb(n){return n&&n.key==="PRIV"&&n.info==="com.apple.streaming.transportStreamTimestamp"}function Kj(n){if(n.data.byteLength===8){const e=new Uint8Array(n.data),t=e[3]&1;let r=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return r/=45,t&&(r+=4772185884e-2),Math.round(r)}}function Vp(n){const e=xb(n);for(const t of e)if(Cb(t))return Kj(t)}function vn(n){let e="";for(let t=0;t<n.length;t++){let r=n[t].toString(16);r.length<2&&(r="0"+r),e+=r}return e}function bb(n){return Uint8Array.from(n.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function zp(n){return Uint8Array.from(atob(n),e=>e.charCodeAt(0))}function Zr(n){return String.fromCharCode.apply(null,n)}const hs=Math.pow(2,32)-1,gt={avc1:1635148593,avcC:1635148611,hvc1:1752589105,hvcC:1752589123,btrt:1651798644,dinf:1684631142,dref:1685218662,esds:1702061171,free:1718773093,ftyp:1718909296,hdlr:1751411826,mdat:1835295092,mdhd:1835296868,mdia:1835297121,mfhd:1835427940,minf:1835626086,moof:1836019558,moov:1836019574,mp4a:1836069985,".mp3":778924083,dac3:1684103987,"ac-3":1633889587,mvex:1836475768,mvhd:1836476516,pasp:1885434736,sdtp:1935963248,stbl:1937007212,stco:1937007471,stsc:1937011555,stsd:1937011556,stsz:1937011578,stts:1937011827,tfdt:1952867444,tfhd:1952868452,traf:1953653094,trak:1953653099,trun:1953658222,trex:1953654136,tkhd:1953196132,vmhd:1986881636,smhd:1936549988},Sb={video:1,audio:2,id3:3,text:4};function Eb(n,e){const t=n[e]<<8|n[e+1];return t<0?65536+t:t}function qe(n,e){const t=n[e]<<24|n[e+1]<<16|n[e+2]<<8|n[e+3];return t<0?4294967296+t:t}function d9(n,e){let t=qe(n,e);return t*=Math.pow(2,32),t+=qe(n,e+4),t}function r1(n,e){let t="";for(let r=e;r<n.length;r++)if(t+=String.fromCharCode(n[r]),n[r]===0)return t;return null}function Um(n,e){return n[e]<<24|n[e+1]<<16|n[e+2]<<8|n[e+3]}function pn(n,e,t){n[e]=t>>24,n[e+1]=t>>16&255,n[e+2]=t>>8&255,n[e+3]=t&255}function f9(n,e,t){const r=e.byteOffset-n.byteOffset-8,s=8+t,i=e.byteLength+8-s;i<8||(pn(n,r,s),pn(n,r+s,i),pn(n,r+s+4,gt.free))}function Vm(n,e){return[n.byteOffset-e-8,n.byteOffset-e+n.byteLength]}function wb(n,e){e.sort((l,u)=>l[0]-u[0]);const t=e.reduce((l,[u,d])=>l+d-u,0),r=new Uint8Array(n.byteLength-t);let s=0,i=0;for(let l=0;l<e.length;l++){const[u,d]=e[l];r.set(n.subarray(s,u),i),i+=u-s,s=d}return r.set(n.subarray(s),i),{result:r,dropped:t,droppedBefore:l=>e.reduce((u,[d,f])=>f<=l?u+f-d:u,0)}}function qj(n){const e=yt(n,["moov"]);if(e.length!==1||yt(n,["moof"]).length)return null;const t=n.byteOffset,r=[],s=[];let i=!1;const a=yt(e[0],["trak"]);for(let y=0;y<a.length;y++){const v=a[y],x=yt(v,["mdia","hdlr"])[0];if((x?Zr(x.subarray(8,12)):"")==="vide"){i=!0;continue}const E=yt(v,["tkhd"])[0];if(!E)return null;const T=E[0];s.push(qe(E,T===0?12:20)),r.push(Vm(v,t))}if(!i||!r.length)return null;const l=yt(e[0],["mvex"])[0];let u=0;if(l){const y=yt(l,["trex"]);for(let v=0;v<y.length;v++){const x=y[v];s.indexOf(qe(x,4))!==-1&&(r.push(Vm(x,t)),u+=x.byteLength+8)}}const{result:d,dropped:f,droppedBefore:m}=wb(n,r),p=e[0].byteOffset-t-8;if(pn(d,p,e[0].byteLength+8-f),l&&u){const y=l.byteOffset-t-8;pn(d,y-m(y),l.byteLength+8-u)}return d}function Yj(n,e,t,r,s){if(t<1)return null;const i=yt(n,["moof"]);if(i.length!==1)return null;const a=i[0],l=n.byteOffset,u=[],d=[],f=yt(a,["traf"]);let m=!0;for(let x=0;x<f.length;x++){const b=f[x],E=yt(b,["tfhd"])[0];if(!E)return null;qe(E,4)===e?(u.push(b),qe(E,0)&131072||(m=!1)):d.push(Vm(b,l))}if(!u.length||d.length&&!m)return null;if(r!==void 0){let x=t;for(let E=0;E<u.length;E++){const T=u[E];let w=0;const R=yt(T,["trun"]);for(let N=0;N<R.length;N++){const _=R[N],j=Math.min(x,qe(_,4));if(j){pn(n,_.byteOffset-l+4,j);const F=qe(_,0)&16777215,$=(F&256?4:0)+(F&512?4:0)+(F&1024?4:0)+(F&2048?4:0);f9(n,_,8+(F&1?4:0)+(F&4?4:0)+j*$)}else pn(n,_.byteOffset-l-4,gt.free);x-=j,w+=j}const I=yt(T,["senc"])[0];I&&pn(n,I.byteOffset-l+4,w);const L=yt(T,["saiz"])[0];if(L){const N=L[1]<<16|L[2]<<8|L[3];let _=4;N&1&&(_+=8);const j=L[_];_+=1,pn(n,L.byteOffset-l+_,w),f9(n,L,_+4+(j===0?w:0))}}const b=yt(n,["mdat"]);if(b.length===1){const E=b[0].byteOffset-l-8;pn(n,E,r-E)}}let p=n,y=0,v=()=>0;if(d.length){({result:p,dropped:y,droppedBefore:v}=wb(n,d)),pn(p,a.byteOffset-l-8,a.byteLength+8-y);for(let x=0;x<u.length;x++){const b=u[x],E=v(b.byteOffset-l),T=yt(b,["trun"]);for(let w=0;w<T.length;w++){const R=T[w];qe(R,0)&1&&pn(p,R.byteOffset-l-E+8,qe(R,8)-y)}if(E){const w=yt(b,["saio"]);for(let R=0;R<w.length;R++){const I=w[R],L=I[0]===0?4:8;let N=qe(I,0)&1?12:4,_=qe(I,N);for(N+=4;_--;N+=L){const j=N+L-4;pn(p,I.byteOffset-l-E+j,qe(I,j)-E)}}}}}if(s){const{durationOffset:x,value:b}=s;pn(p,x-v(x),b)}return r!==void 0?p.subarray(0,r-y):p}function Xj(n,e){const t=n.byteLength;for(let r=0;r<t;){const s=qe(n,r);if(s>8&&qe(n,r+4)===gt[e])return!0;r=s>1?r+s:t}return!1}function yt(n,e){const t=[];return e.length&&Tb(n,e,0,0,n.byteLength,t),t}function Tb(n,e,t,r,s,i){const a=e[t];if((a==null?void 0:a.length)!==4)return;const l=a.charCodeAt(0),u=a.charCodeAt(1),d=a.charCodeAt(2),f=a.charCodeAt(3),m=e.length-1;for(let p=r;p<s;){const y=p+8<=s,v=p+4<=s?n[p]*16777216+(n[p+1]<<16|n[p+2]<<8|n[p+3]):qe(n,p),x=v>1?p+v:s;if(y&&n[p+4]===l&&n[p+5]===u&&n[p+6]===d&&n[p+7]===f){const b=Math.min(x,s);t===m?i.push(n.subarray(p+8,b)):Tb(n,e,t+1,p+8,b,i)}p=x}}function Zj(n){const e=[],t=n[0];let r=8;const s=qe(n,r);r+=4;let i=0,a=0;t===0?(i=qe(n,r),a=qe(n,r+4),r+=8):(i=d9(n,r),a=d9(n,r+8),r+=16),r+=2;let l=n.length+a;const u=Eb(n,r);r+=2;for(let d=0;d<u;d++){let f=r;const m=qe(n,f);f+=4;const p=m&2147483647;if((m&2147483648)>>>31===1)return Ot.warn("SIDX has hierarchical references (not supported)"),null;const v=qe(n,f);f+=4,e.push({referenceSize:p,subsegmentDuration:v,info:{duration:v/s,start:l,end:l+p-1}}),l+=p,f+=4,r=f}return{earliestPresentationTime:i,timescale:s,version:t,referencesCount:u,references:e}}function Ib(n){const e=[],t=yt(n,["moov","trak"]);for(let s=0;s<t.length;s++){const i=t[s],a=yt(i,["tkhd"])[0];if(a){let l=a[0];const u=qe(a,l===0?12:20),d=yt(i,["mdia","mdhd"])[0];if(d){l=d[0];const f=qe(d,l===0?12:20),m=yt(i,["mdia","hdlr"])[0];if(m){const p=Zr(m.subarray(8,12)),y={soun:Kt.AUDIO,vide:Kt.VIDEO}[p],v=yt(i,["mdia","minf","stbl","stsd"])[0],x=Qj(v);y?(e[u]={timescale:f,type:y,stsd:x},e[y]=st({timescale:f,id:u},x)):e[u]={timescale:f,type:p,stsd:x}}}}}return yt(n,["moov","mvex","trex"]).forEach(s=>{const i=qe(s,4),a=e[i];a&&(a.default={duration:qe(s,12),sampleSize:qe(s,16),flags:qe(s,20)})}),e}function Qj(n){const e=n.subarray(8),t=e.subarray(86),r=Zr(e.subarray(4,8));let s=r,i;const a=r==="enca"||r==="encv";if(a){const d=yt(e,[r])[0].subarray(r==="enca"?28:78);yt(d,["sinf"]).forEach(m=>{const p=yt(m,["schm"])[0];if(p){const y=Zr(p.subarray(4,8));if(y==="cbcs"||y==="cenc"){const v=yt(m,["frma"])[0];v&&(s=Zr(v))}}})}const l=s;switch(s){case"avc1":case"avc2":case"avc3":case"avc4":{const u=yt(t,["avcC"])[0];u&&u.length>3&&(s+="."+i1(u[1])+i1(u[2])+i1(u[3]),i=s1(l==="avc1"?"dva1":"dvav",t));break}case"mp4a":{const u=yt(e,[r])[0],d=yt(u.subarray(28),["esds"])[0];if(d&&d.length>7){let f=4;if(d[f++]!==3)break;f=w0(d,f),f+=2;const m=d[f++];if(m&128&&(f+=2),m&64&&(f+=d[f++]),d[f++]!==4)break;f=w0(d,f);const p=d[f++];if(p===64)s+="."+i1(p);else break;if(f+=12,d[f++]!==5)break;f=w0(d,f);const y=d[f++];let v=(y&248)>>3;v===31&&(v+=1+((y&7)<<3)+((d[f]&224)>>5)),s+="."+v}break}case"hvc1":case"hev1":{const u=yt(t,["hvcC"])[0];if(u&&u.length>12){const d=u[1],f=["","A","B","C"][d>>6],m=d&31,p=qe(u,2),y=(d&32)>>5?"H":"L",v=u[12],x=u.subarray(6,12);s+="."+f+m,s+="."+Jj(p).toString(16).toUpperCase(),s+="."+y+v;let b="";for(let E=x.length;E--;){const T=x[E];(T||b)&&(b="."+T.toString(16).toUpperCase()+b)}s+=b}i=s1(l=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{s=s1(s,t)||s;break}case"vp09":{const u=yt(t,["vpcC"])[0];if(u&&u.length>6){const d=u[4],f=u[5],m=u[6]>>4&15;s+="."+ms(d)+"."+ms(f)+"."+ms(m)}break}case"av01":{const u=yt(t,["av1C"])[0];if(u&&u.length>2){const d=u[1]>>>5,f=u[1]&31,m=u[2]>>>7?"H":"M",p=(u[2]&64)>>6,y=(u[2]&32)>>5,v=d===2&&p?y?12:10:p?10:8,x=(u[2]&16)>>4,b=(u[2]&8)>>3,E=(u[2]&4)>>2,T=u[2]&3;s+="."+d+"."+ms(f)+m+"."+ms(v)+"."+x+"."+b+E+T+"."+ms(1)+"."+ms(1)+"."+ms(1)+"."+0,i=s1("dav1",t)}break}}return{codec:s,encrypted:a,supplemental:i}}function s1(n,e){const t=yt(e,["dvvC"]),r=t.length?t[0]:yt(e,["dvcC"])[0];if(r){const s=r[2]>>1&127,i=r[2]<<5&32|r[3]>>3&31;return n+"."+ms(s)+"."+ms(i)}}function Jj(n){let e=0;for(let t=0;t<32;t++)e|=(n>>t&1)<<31-t;return e>>>0}function w0(n,e){const t=e+5;for(;n[e++]&128&&e<t;);return e}function i1(n){return("0"+n.toString(16).toUpperCase()).slice(-2)}function ms(n){return(n<10?"0":"")+n}function eM(n,e){if(!n||!e)return;const t=e.keyId;(t==null?void 0:t.byteLength)===16&&e.isCommonEncryption&&Rb(n,(r,s)=>{const i=r.subarray(8,24);i.some(a=>a!==0)||(Ot.log(`[eme] Patching keyId in 'enc${s?"a":"v"}>sinf>>tenc' box: ${vn(i)} -> ${vn(t)}`),r.set(t,8))})}function tM(n){const e=[];return Rb(n,t=>e.push(t.subarray(8,24))),e}function Rb(n,e){yt(n,["moov","trak"]).forEach(r=>{const s=yt(r,["mdia","minf","stbl","stsd"])[0];if(!s)return;const i=s.subarray(8);let a=yt(i,["enca"]);const l=a.length>0;l||(a=yt(i,["encv"])),a.forEach(u=>{const d=l?u.subarray(28):u.subarray(78);yt(d,["sinf"]).forEach(m=>{const p=Ab(m);p&&e(p,l)})})})}function Ab(n){const e=yt(n,["schm"])[0];if(e){const t=Zr(e.subarray(4,8));if(t==="cbcs"||t==="cenc"){const r=yt(n,["schi","tenc"])[0];if(r)return r}}}let h9;function nM(n){return typeof TextDecoder>"u"?vr(n):(h9||(h9=new TextDecoder("utf-8"))).decode(n).replace(/\0/g,"")}function rM(n){const e=n.byteLength,t=[];for(let r=0;r<e;){const s=r+8<=e,i=r+4<=e?n[r]*16777216+(n[r+1]<<16|n[r+2]<<8|n[r+3]):qe(n,r),a=i>1?r+i:e;if(s&&n[r+4]===109&&n[r+5]===111&&n[r+6]===111&&n[r+7]===102){const l=Math.min(a,e);for(let u=r+8;u<l;){const d=u+8<=l,f=u+4<=l?n[u]*16777216+(n[u+1]<<16|n[u+2]<<8|n[u+3]):qe(n,u),m=f>1?u+f:l;if(d&&n[u+4]===116&&n[u+5]===114&&n[u+6]===97&&n[u+7]===102){const p=Math.min(m,l);let y,v;const x=[];for(let b=u+8;b<p;){const E=b+8<=p,T=b+4<=p?n[b]*16777216+(n[b+1]<<16|n[b+2]<<8|n[b+3]):qe(n,b),w=T>1?b+T:p;if(E&&n[b+4]===116){const R=Math.min(w,p);n[b+5]===102&&n[b+6]===104&&n[b+7]===100?v||(v=n.subarray(b+8,R)):n[b+5]===102&&n[b+6]===100&&n[b+7]===116?y||(y=n.subarray(b+8,R)):n[b+5]===114&&n[b+6]===117&&n[b+7]===110&&x.push(n.subarray(b+8,R))}b=w}t.push({moofOffset:n.byteOffset+r,tfdt:y,tfhd:v,truns:x})}u=m}}r=a}return t}function sM(n,e,t,r,s=!0){return Lb(n,e,r,s)}function iM(n,e,t,r,s=!1){const i=[],a=e.samples,l=Lb(a,t,r,s,{isHEVCFlavor:fu(e.codec),samples:i,timeOffset:n,timescale:e.timescale,trackId:e.id});return{samples:i,sampleData:{includeSampleDetails:s,tracks:l}}}function Lb(n,e,t,r,s){const i={};let a=!1;const l=rM(n),u=n.byteLength;for(let m=0;m<l.length;m++){const{moofOffset:p,tfdt:y,tfhd:v,truns:x}=l[m],b=qe(v,4),E=e[b];if(!E)continue;const T=i[b]||(i[b]={start:NaN,duration:0,sampleCount:0,trun:[],timescale:E.timescale,type:E.type});let w;if(y){const Z=y[0];w=qe(y,4),Z===1&&(w===hs?t.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(w*=hs+1,w+=qe(y,8))),ze(w)&&(!ze(T.start)||w<T.start)&&(T.start=w),s&&ze(w)&&(s.timeOffset=w/s.timescale)}const R=(s==null?void 0:s.trackId)===b&&E.type===Kt.VIDEO,I=E.default,L=qe(v,0)&16777215;let N=(I==null?void 0:I.duration)||0,_,j=(I==null?void 0:I.sampleSize)||0,F=8;L&1&&(F+=8),L&2&&(F+=4),L&8&&(N=qe(v,F),_=v.byteOffset-n.byteOffset+F,F+=4),L&16&&(j=qe(v,F));let $=0;const z=(L&1)!==0,W=!z&&(L&131072)!==0;z?($=qe(v,8),$*=Math.pow(2,32),$+=qe(v,12)):W&&($=p);let J=w||0,oe=0,ie=N;for(let Z=0;Z<x.length;Z++){const X=x[Z],ue=qe(X,4),se=T.sampleCount;T.sampleCount+=ue;const G=X[3]&1;let ee=0;const Ee=X[3]&4,Ce=X[2]&1,Ae=X[2]&2,me=X[2]&4,ve=X[2]&8;let Q=8;G&&(ee=Um(X,Q),Q+=4),Ee&&(!(X[Q+1]&1)&&T.keyFrameIndex===void 0&&(T.keyFrameIndex=se),Q+=4);let ge=$+ee;if(!r&&X[1]===0&&X[2]===6&&X[3]===1){var d,f;const Ne=J,Fe=ge,Me=Q;let ke=-1,Ge=0,K=0,ne=(d=s==null?void 0:s.timeOffset)!=null?d:0;const ae=N/((f=s==null?void 0:s.timescale)!=null?f:1),P=(s==null?void 0:s.isHEVCFlavor)===!0,D=P?2:1;for(let V=0;V<ue;V++){const Y=X[Q]===0?X[Q+1]<<16|X[Q+2]<<8|X[Q+3]:qe(X,Q),H=ke===-1&&T.keyFrameIndex===void 0&&(X[Q+5]&1)===0;Q+=8;const q=ge+Y;if(R){if(Y>0){let re=ge;do{const ce=n[re]===0?n[re+1]<<16|n[re+2]<<8|n[re+3]:qe(n,re);re+=4;const be=n[re],Re=P?be>>1&63:be&31;(P?Re===39||Re===40:Re===6)&&Dc(n.subarray(re,re+ce),D,ne,s.samples),re+=ce}while(re<q)}ne+=ae}ge=q,H&&(ke=V,Ge=ge)}if(ge<=u)K=ue;else{let V=Fe,Y=Me;for(let H=0;H<ue;H++){const q=X[Y]===0?X[Y+1]<<16|X[Y+2]<<8|X[Y+3]:qe(X,Y);if(V+=q,V>u)break;K=H+1,Y+=8}}if(R&&(s.timeOffset=ne),ke!==-1&&Ge<=u&&T.keyFrameIndex===void 0&&(T.keyFrameIndex=ke,T.keyFrameStart=Ne+ke*N),K){(!ze(T.ptsMin)||Ne<T.ptsMin)&&(T.ptsMin=Ne);const V=Ne+K*N;(!ze(T.ptsMax)||V>T.ptsMax)&&(T.ptsMax=V)}const B=N*ue;J=Ne+B,oe+=B;continue}let le,pe;r&&(le=[],pe={sampleOffset:ge,samples:le,defaultSampleDurationOffset:_},ge<=u&&T.trun.push(pe));let Ie;for(let Ne=0;Ne<ue;Ne++){let Fe;Ce?(r&&(Fe=X.byteOffset-n.byteOffset+Q),ie=qe(X,Q),Q+=4):ie=N,Ae?(Ie=qe(X,Q),Q+=4):Ie=j;let Me,ke;me&&(ke=X[Q+1]&1?1:0,r&&(Me={isNonSync:ke,dependsOn:(X[Q]&3)===1?1:2}),Q+=4);let Ge=0;if(ve&&(Ge=X[0]===0?qe(X,Q):Um(X,Q),Q+=4),R){let K=ge,ne=0;for(;ne<Ie;){const ae=qe(n,K);K+=4,Nb(s.isHEVCFlavor,n[K])&&Dc(n.subarray(K,K+ae),s.isHEVCFlavor?2:1,s.timeOffset+Ge/s.timescale,s.samples),K+=ae,ne+=ae+4}s.timeOffset+=ie/s.timescale}if(ge+=Ie,ge<=u){pe&&Fe!==void 0&&(pe.lastSampleDurationOffset=Fe),ke===0&&T.keyFrameIndex===void 0&&(T.keyFrameIndex=Ne,T.keyFrameStart=J);const K=J+Ge;(!ze(T.ptsMin)||K<T.ptsMin)&&(T.ptsMin=K),(!ze(T.ptsMax)||K+ie>T.ptsMax)&&(T.ptsMax=K+ie),le&&(le[Ne]={cts:Ge,duration:ie,flags:Me,size:Ie})}J+=ie,oe+=ie}!oe&&N&&(oe+=N*ue)}T.duration+=oe,T.duration&&(a=!0)}if(!a){let m=1/0,p=0;const y=yt(n,["sidx"]);for(let v=0;v<y.length;v++){const x=Zj(y[v]);if(x!=null&&x.references){m=Math.min(m,x.earliestPresentationTime/x.timescale);const b=x.references.reduce((E,T)=>E+T.info.duration||0,0);p=Math.max(p,b+x.earliestPresentationTime/x.timescale)}}p&&ze(p)&&Object.keys(i).forEach(v=>{i[v].duration||(i[v].duration=p*i[v].timescale-i[v].start)})}return i}function aM(n){const e={valid:null,remainder:null},t=yt(n,["moof"]);if(t.length<2)return e.remainder=n,e;const r=t[t.length-1];return e.valid=n.slice(0,r.byteOffset-8),e.remainder=n.slice(r.byteOffset-8),e}function _r(n,e){const t=new Uint8Array(n.length+e.length);return t.set(n),t.set(e,n.length),t}function oM(n,e){const t=[],r=e.samples,s=e.timescale,i=e.id;let a=!1;return yt(r,["moof"]).map(u=>{const d=u.byteOffset-8;yt(u,["traf"]).map(m=>{const p=yt(m,["tfdt"]).map(y=>{const v=y[0];let x=qe(y,4);return v===1&&(x*=Math.pow(2,32),x+=qe(y,8)),x/s})[0];return p!==void 0&&(n=p),yt(m,["tfhd"]).map(y=>{const v=qe(y,4),x=qe(y,0)&16777215,b=(x&1)!==0;let E=0;const T=(x&2)!==0,w=(x&8)!==0;let R=0;const I=(x&16)!==0;let L=0;const N=(x&32)!==0,_=!b&&(x&131072)!==0;let j=8;v===i&&(b?(E=qe(y,j),j+=4,E*=Math.pow(2,32),E+=qe(y,j),j+=4):_&&(E=d),T&&(j+=4),w&&(R=qe(y,j),j+=4),I&&(L=qe(y,j),j+=4),N&&(j+=4),e.type==="video"&&(a=fu(e.codec)),yt(m,["trun"]).map(F=>{const $=F[0],z=qe(F,0)&16777215,W=(z&1)!==0;let J=0;const oe=(z&4)!==0,ie=(z&256)!==0;let Z=0;const X=(z&512)!==0;let ue=0;const se=(z&1024)!==0,G=(z&2048)!==0;let ee=0;const Ee=qe(F,4);let Ce=8;W&&(J=qe(F,Ce),Ce+=4),oe&&(Ce+=4);let Ae=E+J;for(let me=0;me<Ee;me++){if(ie?(Z=qe(F,Ce),Ce+=4):Z=R,X?(ue=qe(F,Ce),Ce+=4):ue=L,se&&(Ce+=4),G&&($===0?ee=qe(F,Ce):ee=Um(F,Ce),Ce+=4),e.type===Kt.VIDEO){let ve=0;for(;ve<ue;){const Q=qe(r,Ae);if(Ae+=4,Nb(a,r[Ae])){const ge=r.subarray(Ae,Ae+Q);Dc(ge,a?2:1,n+ee/s,t)}Ae+=Q,ve+=Q+4}}n+=Z/s}}))})})}),t}function fu(n){if(!n)return!1;const e=n.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function Nb(n,e){if(n){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Dc(n,e,t,r){const s=kb(n);let i=0;i+=e;let a=0,l=0,u=0;for(;i<s.length;){a=0;do{if(i>=s.length)break;u=s[i++],a+=u}while(u===255);l=0;do{if(i>=s.length)break;u=s[i++],l+=u}while(u===255);const d=s.length-i;let f=i;if(l<d)i+=l;else if(l>d){Ot.error(`Malformed SEI payload. ${l} is too small, only ${d} bytes left to parse.`);break}if(a===4){if(s[f++]===181){const p=Eb(s,f);if(f+=2,p===49){const y=qe(s,f);if(f+=4,y===1195456820){const v=s[f++];if(v===3){const x=s[f++],b=31&x,E=64&x,T=E?2+b*3:0,w=new Uint8Array(T);if(E){w[0]=x;for(let R=1;R<T;R++)w[R]=s[f++]}r.push({type:v,payloadType:a,pts:t,bytes:w})}}}}}else if(a===5&&l>16){const m=[];for(let v=0;v<16;v++){const x=s[f++].toString(16);m.push(x.length==1?"0"+x:x),(v===3||v===5||v===7||v===9)&&m.push("-")}const p=l-16,y=new Uint8Array(p);for(let v=0;v<p;v++)y[v]=s[f++];r.push({payloadType:a,pts:t,uuid:m.join(""),userData:nM(y),userDataBytes:y})}}}function kb(n){const e=n.byteLength;let t,r=n.indexOf(3,3);for(;r!==-1;)n[r-1]===0&&n[r-2]===0&&(t||(t=[])).push(r),r=n.indexOf(3,r+1);if(!t)return n;const s=e-t.length,i=new Uint8Array(s);let a=0,l=0;for(let u=0;u<s;l++,u++)l===t[a]&&(l++,a++),i[u]=n[l];return i}function lM(n){const e=n[0];let t="",r="",s=0,i=0,a,l=0,u=0,d=4;if(e===0){const m=r1(n,d),p=m!==null?r1(n,d+m.length):null;m!==null&&p!==null?(t=m,r=p,d+=m.length+p.length,s=qe(n,d),d+=4,i=qe(n,d),d+=4,l=qe(n,d),d+=4,u=qe(n,d),d+=4):(Ot.warn(`Unterminated ${m===null?"scheme_id_uri":"value"} in parsing emsg box: version 0 box ends inside a string, dropping all of its fields`),d=n.length)}else if(e===1){s=qe(n,d),d+=4;const m=qe(n,d);d+=4;const p=qe(n,d);d+=4,a=2**32*m+p,mj(a)||(a=Number.MAX_SAFE_INTEGER,Ot.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=qe(n,d),d+=4,u=qe(n,d),d+=4;const y=r1(n,d),v=y!==null?r1(n,d+y.length):null;y!==null&&(t=y,d+=y.length),v!==null?(r=v,d+=v.length):(Ot.warn(`Unterminated ${y===null?"scheme_id_uri":"value"} in parsing emsg box: version 1 box ends inside a string, dropping its ${y===null?"strings and payload":"value and payload"}`),d=n.length)}const f=n.subarray(d,n.byteLength);return{schemeIdUri:t,value:r,timeScale:s,presentationTime:a,presentationTimeDelta:i,eventDuration:l,id:u,payload:f}}function cM(n,...e){const t=e.length;let r=8,s=t;for(;s--;)r+=e[s].byteLength;const i=new Uint8Array(r);for(i[0]=r>>24&255,i[1]=r>>16&255,i[2]=r>>8&255,i[3]=r&255,i.set(n,4),s=0,r=8;s<t;s++)i.set(e[s],r),r+=e[s].byteLength;return i}function uM(n,e,t){if(n.byteLength!==16)throw new RangeError("Invalid system id");let r,s;r=0,s=new Uint8Array;let i;r>0?(i=new Uint8Array(4),e.length>0&&new DataView(i.buffer).setUint32(0,e.length,!1)):i=new Uint8Array;const a=new Uint8Array(4);return t.byteLength>0&&new DataView(a.buffer).setUint32(0,t.byteLength,!1),cM([112,115,115,104],new Uint8Array([r,0,0,0]),n,i,s,a,t)}function Pb(n){const e=[];if(n instanceof ArrayBuffer){const t=n.byteLength;let r=0;for(;r+32<t;){const s=new DataView(n,r),i=fM(s);e.push(i),r+=i.size}}return e}function dM(n){const e=[];for(let t=0;t<n.length;){const r=n[t++],s=r&7;if(s===0){for(;n[t++]&128;);continue}if(s!==2){t+=s===1?8:4;continue}let i=0;for(let a=0,l=128;l&128;a+=7)i|=((l=n[t++])&127)<<a;if(r>>3===2)if(i===32){const a=new Uint8Array(16);for(let l=0;l<16;l++)a[l]=parseInt(String.fromCharCode(n[t+l*2],n[t+l*2+1]),16);e.push(a)}else i===16&&e.push(n.subarray(t,t+16));t+=i}return e}function fM(n){const e=n.getUint32(0),t=n.byteOffset,r=n.byteLength;if(r<e)return{offset:t,size:r};if(n.getUint32(4)!==1886614376)return{offset:t,size:e};const i=n.getUint32(8)>>>24;if(i!==0&&i!==1)return{offset:t,size:e};const a=n.buffer,l=vn(new Uint8Array(a,t+12,16));let u=null,d=null,f=0;if(i===0)f=28;else{const p=n.getUint32(28);if(!p||r<32+p*16)return{offset:t,size:e};u=[];for(let y=0;y<p;y++)u.push(new Uint8Array(a,t+32+y*16,16));f=32+p*16}if(!f)return{offset:t,size:e};const m=n.getUint32(f);return e-32<m?{offset:t,size:e}:(d=new Uint8Array(a,t+f+4,m),i===0&&(u=dM(d)),{version:i,systemId:l,kids:u,data:d,offset:t,size:e})}const il=_b("userAgent"),hM=_b("vendor");let T0,I0,R0;function _b(n){try{return navigator[n]||""}catch{}return""}function mM(){if(R0===void 0){const n=il.match(/Safari\/(\d+)/i);R0=n?parseInt(n[1]):0}return R0}function hc(){if(T0===void 0){const n=il.match(/Chrome\/(\d+)/i);T0=n?parseInt(n[1]):0}return T0}function pM(){if(I0===void 0){const n=il.match(/Firefox\/(\d+)/i);I0=n?parseInt(n[1]):0}return I0}function Ob(){return/\(Windows.+Firefox\//i.test(il)}function gM(){return hM.indexOf("Apple")>-1||/iPhone|iPad|iPod/.test(il)}function yM(){return/Android/.test(il)}const Ho={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1},image:{mjpg:1}};function Gp(n,e){const t=Ho[e];return!!t&&!!t[n.slice(0,4)]}function jc(n,e,t=!0){return!n.split(",").some(r=>!Hp(r,e,t))}function Hp(n,e,t=!0){var r;const s=Fi(t);return(r=s==null?void 0:s.isTypeSupported(Mc(n,e)))!=null?r:!1}function Mc(n,e){return`${e}/mp4;codecs=${n}`}function m9(n){if(n){const e=n.substring(0,4);return Ho.video[e]}return 2}function nf(n){const e=Ob();return n.split(",").reduce((t,r)=>{const i=e&&fu(r)?9:Ho.video[r];return i?(i*2+t)/(t?3:2):(Ho.audio[r]+t)/(t?2:1)},0)}const A0={};function vM(n,e=!0){if(A0[n])return A0[n];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[n];for(let s=0;s<t.length;s++){var r;if(Hp(t[s],"audio",e))return A0[n]=t[s],t[s];if(t[s]==="mp3"&&(r=Fi(e))!=null&&r.isTypeSupported("audio/mpeg"))return""}return n}const xM=/flac|opus|mp4a\.40\.34/i;function rf(n,e=!0){return n.replace(xM,t=>vM(t.toLowerCase(),e))}function CM(n,e){const t=[];if(n){const r=n.split(",");for(let s=0;s<r.length;s++)Gp(r[s],"video")||t.push(r[s])}return e&&t.push(e),t.join(",")}function M1(n,e){if(n&&(n.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(n)!==-1)&&(p9(n,"audio")||p9(n,"video")))return n;if(e){const t=e.split(",");if(t.length>1){if(n){for(let r=t.length;r--;)if(t[r].substring(0,4)===n.substring(0,4))return t[r]}return t[0]}}return e||n}function p9(n,e){return Gp(n,e)&&Hp(n,e)}function bM(n){const e=n.split(",");for(let t=0;t<e.length;t++){const r=e[t].split(".");r.length>2&&r[0]==="avc1"&&(e[t]=`avc1.${parseInt(r[1]).toString(16)}${("000"+parseInt(r[2]).toString(16)).slice(-4)}`)}return e.join(",")}function SM(n){if(n.startsWith("av01.")){const e=n.split("."),t=["0","111","01","01","01","0"];for(let r=e.length;r>4&&r<10;r++)e[r]=t[r-4];return e.join(".")}return n}function g9(n){const e=Fi(n)||{isTypeSupported:()=>!1};return{mpeg:e.isTypeSupported("audio/mpeg"),mp3:e.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:e.isTypeSupported('audio/mp4; codecs="ac-3"')}}function zm(n){return n.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const EM={supported:!0,powerEfficient:!0,smooth:!0},wM={supported:!1,smooth:!1,powerEfficient:!1},Db={supported:!0,configurations:[],decodingInfoResults:[EM]};function jb(n,e){return{supported:!1,configurations:e,decodingInfoResults:[wM],error:n}}function TM(n,e,t,r,s,i){const a=n.videoCodec,l=n.audioCodec?n.audioGroups:null,u=i==null?void 0:i.audioCodec,d=i==null?void 0:i.channels,f=d?parseInt(d):u?1/0:2;let m=null;if(l!=null&&l.length)try{l.length===1&&l[0]?m=e.groups[l[0]].channels:m=l.reduce((p,y)=>{if(y){const v=e.groups[y];if(!v)throw new Error(`Audio track group ${y} not found`);Object.keys(v.channels).forEach(x=>{p[x]=(p[x]||0)+v.channels[x]})}return p},{2:0})}catch{return!0}return a!==void 0&&(a.split(",").some(p=>fu(p))||n.width>1920&&n.height>1088||n.height>1920&&n.width>1088||n.frameRate>Math.max(r,30)||n.videoRange!=="SDR"&&n.videoRange!==t||n.bitrate>Math.max(s,8e6))||!!m&&ze(f)&&Object.keys(m).some(p=>parseInt(p)>f)}function Mb(n,e,t,r={}){const s=n.videoCodec;if(!s&&!n.audioCodec||!t)return Promise.resolve(Db);const i=[],a=IM(n),l=a.length,u=RM(n,e,l>0),d=u.length;for(let f=l||1*d||1;f--;){const m={type:"media-source"};if(l&&(m.video=a[f%l]),d){m.audio=u[f%d];const p=m.audio.bitrate;m.video&&p&&(m.video.bitrate-=p)}i.push(m)}if(s){const f=navigator.userAgent;if(s.split(",").some(m=>fu(m))&&Ob())return Promise.resolve(jb(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${f})`),i))}return Promise.all(i.map(f=>{const m=AM(f);return r[m]||(r[m]=t.decodingInfo(f))})).then(f=>({supported:!f.some(m=>!m.supported),configurations:i,decodingInfoResults:f})).catch(f=>({supported:!1,configurations:i,decodingInfoResults:[],error:f}))}function IM(n){var e;const t=(e=n.videoCodec)==null?void 0:e.split(","),r=$b(n),s=n.width||640,i=n.height||480,a=n.frameRate||30,l=n.videoRange.toLowerCase();return t?t.map(u=>{const d={contentType:Mc(SM(u),"video"),width:s,height:i,bitrate:r,framerate:a};return l!=="sdr"&&(d.transferFunction=l),d}):[]}function RM(n,e,t){var r;const s=(r=n.audioCodec)==null?void 0:r.split(","),i=$b(n);return s&&n.audioGroups?n.audioGroups.reduce((a,l)=>{var u;const d=l?(u=e.groups[l])==null?void 0:u.tracks:null;return d?d.reduce((f,m)=>{if(m.groupId===l){const p=parseFloat(m.channels||"");s.forEach(y=>{const v={contentType:Mc(y,"audio"),bitrate:t?Fb(y,i):i};p&&(v.channels=""+p),f.push(v)})}return f},a):a},[]):[]}function Fb(n,e){if(e<=1)return 1;let t=128e3;return n==="ec-3"?t=768e3:n==="ac-3"&&(t=64e4),Math.min(e/2,t)}function $b(n){return Math.ceil(Math.max(n.bitrate*.9,n.averageBitrate)/1e3)*1e3||1}function AM(n){let e="";const{audio:t,video:r}=n;if(r){const s=zm(r.contentType);e+=`${s}_r${r.height}x${r.width}f${Math.ceil(r.framerate)}${r.transferFunction||"sd"}_${Math.ceil(r.bitrate/1e5)}`}if(t){const s=zm(t.contentType);e+=`${r?"_":""}${s}_c${t.channels}`}return e}function _i(n,e,t){const r=encodeURIComponent(e),s=`${r}=${encodeURIComponent(t)}`;let i=!1;const a=[];n.search.substring(1).split("&").forEach(l=>{l===r||l.startsWith(r+"=")?i||(a.push(s),i=!0):l&&a.push(l)}),i||a.push(s),n.search=a.join("&")}const Gm=["NONE","TYPE-0","TYPE-1",null];function LM(n){return Gm.indexOf(n)>-1}const sf=["SDR","PQ","HLG"];function NM(n){return!!n&&sf.indexOf(n)>-1}var F1={No:"",Yes:"YES",v2:"v2"};function y9(n){const{canSkipUntil:e,canSkipDateRanges:t,age:r}=n,s=r<e/2;return e&&s?t?F1.v2:F1.Yes:F1.No}class v9{constructor(e,t,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=r}addDirectives(e){const t=new self.URL(e);return this.msn!==void 0&&_i(t,"_HLS_msn",this.msn.toString()),this.part!==void 0&&_i(t,"_HLS_part",this.part.toString()),this.skip&&_i(t,"_HLS_skip",this.skip),t.href}}class Fc{constructor(e){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.imageCodec=void 0,this.iframes=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loadErrorTime=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,"imageCodec"in e&&(this.imageCodec=e.imageCodec),this.codecSet=[e.videoCodec,e.audioCodec].filter(r=>!!r).map(r=>r.substring(0,4)).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const r=(t=e.supplemental)==null?void 0:t.videoCodec;r&&r!==e.videoCodec&&(this.codecSet+=`,${r.substring(0,4)}`)}"iframes"in e&&e.iframes?this.iframes=!0:(this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES))}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return x9(this._audioGroups,e)}hasSubtitleGroup(e){return x9(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let r=this._audioGroups;r||(r=this._audioGroups=[]),r.indexOf(t)===-1&&r.push(t)}else if(e==="text"){let r=this._subtitleGroups;r||(r=this._subtitleGroups=[]),r.indexOf(t)===-1&&r.push(t)}}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return(e=this.audioGroups)==null?void 0:e[0]}get textGroupId(){var e;return(e=this.subtitleGroups)==null?void 0:e[0]}addFallback(){}}function x9(n,e){return!e||!n?!1:n.indexOf(e)!==-1}function kM(){if(typeof matchMedia=="function"){const n=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(n.media!==e.media)return n.matches===!0}return!1}function PM(n,e){let t=!1,r=[];if(n&&(t=n!=="SDR",r=[n]),e){r=e.allowedVideoRanges||sf.slice(0);const s=r.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:s&&kM(),t||(r=["SDR"])}return{preferHDR:t,allowedVideoRanges:r}}const _M=n=>{const e=new WeakSet;return(t,r)=>{if(n&&(r=n(t,r)),typeof r=="object"&&r!==null){if(e.has(r))return;e.add(r)}return r}},qt=(n,e)=>JSON.stringify(n,_M(e));function OM(n,e,t,r,s){const i=Object.keys(n),a=r==null?void 0:r.channels,l=r==null?void 0:r.audioCodec,u=s==null?void 0:s.videoCodec,d=a&&parseInt(a)===2;let f=!1,m=!1,p=1/0,y=1/0,v=1/0,x=1/0,b=0,E=[];const{preferHDR:T,allowedVideoRanges:w}=PM(e,s);for(let _=i.length;_--;){const j=n[i[_]];f||(f=j.channels[2]>0),p=Math.min(p,j.minHeight),y=Math.min(y,j.minFramerate),v=Math.min(v,j.minBitrate),w.filter($=>j.videoRanges[$]>0).length>0&&(m=!0)}p=ze(p)?p:0,y=ze(y)?y:0;const R=Math.max(1080,p),I=Math.max(30,y);v=ze(v)?v:t,t=Math.max(v,t),m||(e=void 0);const L=i.length>1;return{codecSet:i.reduce((_,j)=>{const F=n[j];if(j===_)return _;if(E=m?w.filter($=>F.videoRanges[$]>0):[],L){if(F.minBitrate>t)return ds(j,`min bitrate of ${F.minBitrate} > current estimate of ${t}`),_;if(!F.hasDefaultAudio)return ds(j,"no renditions with default or auto-select sound found"),_;if(l&&j.indexOf(l.substring(0,4))%5!==0)return ds(j,`audio codec preference "${l}" not found`),_;if(a&&!d){if(!F.channels[a])return ds(j,`no renditions with ${a} channel sound found (channels options: ${Object.keys(F.channels)})`),_}else if((!l||d)&&f&&F.channels[2]===0)return ds(j,"no renditions with stereo sound found"),_;if(F.minHeight>R)return ds(j,`min resolution of ${F.minHeight} > maximum of ${R}`),_;if(F.minFramerate>I)return ds(j,`min framerate of ${F.minFramerate} > maximum of ${I}`),_;if(!E.some($=>F.videoRanges[$]>0))return ds(j,`no variants with VIDEO-RANGE of ${qt(E)} found`),_;if(u&&j.indexOf(u.substring(0,4))%5!==0)return ds(j,`video codec preference "${u}" not found`),_;if(F.maxScore<b)return ds(j,`max score of ${F.maxScore} < selected max of ${b}`),_}return _&&(nf(j)>=nf(_)||F.fragmentError>n[_].fragmentError)?_:(x=F.minIndex,b=F.maxScore,j)},void 0),videoRanges:E,preferHDR:T,minFramerate:y,minBitrate:v,minIndex:x}}function ds(n,e){Ot.log(`[abr] start candidates with "${n}" ignored because ${e}`)}function Bb(n){return n.reduce((e,t)=>{let r=e.groups[t.groupId];r||(r=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(t);const s=t.channels||"2";return r.channels[s]=(r.channels[s]||0)+1,r.hasDefault=r.hasDefault||t.default,r.hasAutoSelect=r.hasAutoSelect||t.autoselect,r.hasDefault&&(e.hasDefaultAudio=!0),r.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function DM(n,e,t,r){return n.slice(t,r+1).reduce((s,i,a)=>{if(!i.codecSet)return s;const l=i.audioGroups;let u=s[i.codecSet];u||(s[i.codecSet]=u={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:a,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!l,fragmentError:0}),u.minBitrate=Math.min(u.minBitrate,i.bitrate);const d=Math.min(i.height,i.width);return u.minHeight=Math.min(u.minHeight,d),u.minFramerate=Math.min(u.minFramerate,i.frameRate),u.minIndex=Math.min(u.minIndex,a),u.maxScore=Math.max(u.maxScore,i.score),u.fragmentError+=i.fragmentError,u.videoRanges[i.videoRange]=(u.videoRanges[i.videoRange]||0)+1,l&&l.forEach(f=>{if(!f)return;const m=e.groups[f];m&&(u.hasDefaultAudio=u.hasDefaultAudio||e.hasDefaultAudio?m.hasDefault:m.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(m.channels).forEach(p=>{u.channels[p]=(u.channels[p]||0)+m.channels[p]}))}),s},{})}function C9(n){if(!n)return n;const{lang:e,assocLang:t,characteristics:r,channels:s,audioCodec:i}=n;return{lang:e,assocLang:t,characteristics:r,channels:s,audioCodec:i}}function xs(n,e,t){if("attrs"in n){const r=e.indexOf(n);if(r!==-1)return r}for(let r=0;r<e.length;r++){const s=e[r];if(wa(n,s,t))return r}return-1}function wa(n,e,t){const{groupId:r,name:s,lang:i,assocLang:a,default:l}=n,u=n.forced;return(r===void 0||e.groupId===r)&&(s===void 0||e.name===s)&&(i===void 0||jM(i,e.lang))&&(a===void 0||e.assocLang===a)&&(l===void 0||e.default===l)&&(u===void 0||e.forced===u)&&(!("characteristics"in n)||MM(n.characteristics||"",e.characteristics))&&(t===void 0||t(n,e))}function jM(n,e="--"){return n.length===e.length?n===e:n.startsWith(e)||e.startsWith(n)}function MM(n,e=""){const t=n.split(","),r=e.split(",");return t.length===r.length&&!t.some(s=>r.indexOf(s)===-1)}function ma(n,e){const{audioCodec:t,channels:r}=n;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(r===void 0||r===(e.channels||"2"))}function FM(n,e,t,r,s){const i=e[r],l=e.reduce((p,y,v)=>{const x=y.uri;return(p[x]||(p[x]=[])).push(v),p},{})[i.uri];l.length>1&&(r=Math.max.apply(Math,l));const u=i.videoRange,d=i.frameRate,f=i.codecSet.substring(0,4),m=b9(e,r,p=>{if(p.videoRange!==u||p.frameRate!==d||p.codecSet.substring(0,4)!==f)return!1;const y=p.audioGroups,v=t.filter(x=>$c(x.groupId,y));return xs(n,v,s)>-1});return m>-1?m:b9(e,r,p=>{const y=p.audioGroups,v=t.filter(x=>$c(x.groupId,y));return xs(n,v,s)>-1})}function b9(n,e,t){for(let r=e;r>-1;r--)if(t(n[r]))return r;for(let r=e+1;r<n.length;r++)if(t(n[r]))return r;return-1}function af(n,e){var t;return!!n&&n!==((t=e.loadLevelObj)==null?void 0:t.uri)}function $c(n,e){return e?e.indexOf(n)!==-1:!0}function Ub(n,e){if(e||n){const t=Vt({},e);return n&&(n.videoCodec&&(t.videoCodec=n.videoCodec),n.videoRange&&(t.allowedVideoRanges=[n.videoRange])),t}}class $M extends Sr{constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.firstAutoFloor=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.supportedCache={},this.bwEstimator=void 0,this._abandonRulesCheck=t=>{var r;const{fragCurrent:s,partCurrent:i,hls:a}=this;if(!a)return;const{autoLevelEnabled:l,media:u}=a;if(!s||!u)return;const d=performance.now(),f=i?i.stats:s.stats,m=i?i.duration:s.duration,p=d-f.loading.start,y=a.minAutoLevel,v=s.level,x=this._nextAutoLevel;if(f.aborted||f.loaded&&f.loaded===f.total||v<=y){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const b=x>-1&&x!==v,E=!!t||b;if(!E&&(u.paused||!u.playbackRate||!u.readyState))return;const T=a.mainForwardBufferInfo;if(!E&&T===null)return;const w=this.bwEstimator.getEstimateTTFB(),R=Math.abs(u.playbackRate);if(p<=Math.max(w,1e3*(m/(R*2))))return;const I=T?T.len/R:0,L=f.loading.first?f.loading.first-f.loading.start:-1,N=f.loaded&&L>-1,_=this.getBwEstimate(),j=a.levels,F=j[v],$=Math.max(f.loaded,Math.round(m*(s.bitrate||F.averageBitrate)/8));let z=N?p-L:p;z<1&&N&&(z=Math.min(p,f.loaded*8/_));const W=N?f.loaded*1e3/z:0,J=w/1e3,oe=W?($-f.loaded)/W:$*8/_+J;if(oe<=I)return;const ie=W?W*8:_,Z=((r=(t==null?void 0:t.details)||a.latestLevelDetails)==null?void 0:r.live)===!0,X=a.config.abrBandWidthUpFactor;let ue=Number.POSITIVE_INFINITY,se;for(se=v-1;se>y;se--){const Ce=j[se].maxBitrate,Ae=!j[se].details||Z;if(ue=this.getTimeToLoadFrag(J,ie,m*Ce,Ae),ue<Math.min(I,m+J))break}if(ue>=oe||ue>m*10)return;N?this.bwEstimator.sample(p-Math.min(w,L),f.loaded):this.bwEstimator.sampleTTFB(p);const G=j[se].maxBitrate;this.getBwEstimate()*X>G&&(this.firstAutoFloor=Math.min(se,a.firstLevel),this.resetEstimator(G));const ee=this.findBestLevel(G,y,se,0,I,1,1);ee>-1&&(se=ee),this.warn(`Fragment ${s.sn}${i?" part "+i.index:""} of level ${v} is loading too slowly;
870      Fragment duration: ${s.duration.toFixed(3)}
871      Time to underbuffer: ${I.toFixed(3)} s
872      Estimated load time for current fragment: ${oe.toFixed(3)} s
873      Estimated load time for down switch fragment: ${ue.toFixed(3)} s
874      TTFB estimate: ${L|0} ms
875      Current BW estimate: ${ze(_)?_|0:"Unknown"} bps
876      New BW estimate: ${this.getBwEstimate()|0} bps
877      Switching to level ${se} @ ${G|0} bps`),a.nextLoadLevel=a.nextAutoLevel=se,this.clearTimer();const Ee=()=>{this.clearTimer();const Ce=this.hls;if(this.fragCurrent===s&&Ce.loadLevel===se&&se>0){const Ae=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${se>0?"and switching down":""}
878      Fragment duration: ${s.duration.toFixed(3)} s
879      Time to underbuffer: ${Ae.toFixed(3)} s`),s.abortRequests(),this.fragCurrent=this.partCurrent=null,se>y){let me=this.findBestLevel(Ce.levels[y].bitrate,y,se,0,Ae,1,1);me===-1&&(me=y),Ce.nextLoadLevel=Ce.nextAutoLevel=me,this.firstAutoFloor=Math.min(me,Ce.firstLevel),this.resetEstimator(Ce.levels[me].bitrate)}}};b||oe>ue*2?Ee():this.timer=self.setInterval(Ee,ue*1e3),a.trigger(M.FRAG_LOAD_EMERGENCY_ABORTED,{frag:s,part:i,stats:f})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){this.hls&&(e&&(this.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator())}initEstimator(){const e=this.hls.config;return new Tj(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const e=this.hls;e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.FRAG_LOADING,this.onFragLoading,this),e.on(M.FRAG_LOADED,this.onFragLoaded,this),e.on(M.FRAG_BUFFERED,this.onFragBuffered,this),e.on(M.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(M.LEVEL_LOADED,this.onLevelLoaded,this),e.on(M.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(M.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(M.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.FRAG_LOADING,this.onFragLoading,this),e.off(M.FRAG_LOADED,this.onFragLoaded,this),e.off(M.FRAG_BUFFERED,this.onFragBuffered,this),e.off(M.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(M.LEVEL_LOADED,this.onLevelLoaded,this),e.off(M.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(M.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(M.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=this.supportedCache=null,this.audioTracksByGroup=this.codecTiers=this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.firstAutoFloor=-1,this.lastLevelLoadSec=0,this.supportedCache={},this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const r=t.frag;if(!this.ignoreFragment(r)){if(!r.bitrateTest){var s;this.fragCurrent=r,this.partCurrent=(s=t.part)!=null?s:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case ye.BUFFER_ADD_CODEC_ERROR:case ye.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case ye.FRAG_LOAD_TIMEOUT:{const r=t.frag,{fragCurrent:s,partCurrent:i}=this;if(r&&Fm(r,s)){const a=performance.now(),l=i?i.stats:r.stats,u=a-l.loading.start,d=l.loading.first?l.loading.first-l.loading.start:-1;if(l.loaded&&d>-1){const m=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(u-Math.min(m,d),l.loaded)}else this.bwEstimator.sampleTTFB(u)}break}}}getTimeToLoadFrag(e,t,r,s){const i=e+r/t,a=s?e+this.lastLevelLoadSec:0;return i+a}onLevelLoaded(e,t){const r=this.hls.config,{loading:s}=t.stats,i=s.end-s.first;ze(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,t){var r;const{frag:s,part:i}=t,a=i?i.stats:s.stats;if(s.type===Qe.MAIN&&this.bwEstimator.sampleTTFB(a.loading.first-a.loading.start),!this.ignoreFragment(s)){if(this.clearTimer(),s.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,(r=this.hls)!=null&&r.config.abrMaxWithRealBitrate){const l=i?i.duration:s.duration,u=this.hls.levels[s.level],d=(u.loaded?u.loaded.bytes:0)+a.loaded,f=(u.loaded?u.loaded.duration:0)+l;u.loaded={bytes:d,duration:f},u.realBitrate=Math.round(8*d/f)}if(s.bitrateTest){const l={stats:a,frag:s,part:i,id:s.type};this.onFragBuffered(M.FRAG_BUFFERED,l),s.bitrateTest=!1}else this.lastLoadedFragLevel=s.level}}onFragBuffered(e,t){const{frag:r,part:s}=t,i=s!=null&&s.stats.loaded?s.stats:r.stats;if(i.aborted||this.ignoreFragment(r))return;const l=((r.bitrate||0)>=1e5?i.parsing.end:i.loading.end)-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(l,i.loaded),i.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=l/1e3:(this.bitrateTestDelay=0,this.firstAutoFloor>-1&&this.bwEstimator.canEstimate()&&(this.firstAutoFloor=-1))}ignoreFragment(e){return e.type!==Qe.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{hls:e}=this;if(!e)return 0;const{maxAutoLevel:t,minAutoLevel:r}=e,s=this.getBwEstimate(),i=this.getStarvationDelay(),a=e.config.maxStarvationDelay,l=this.findBestLevel(s,r,t,i/2,a,1,1);if(l>-1)return l;const u=e.firstLevel,d=this.firstAutoFloor===-1?1/0:this.firstAutoFloor,f=Math.min(Math.max(u,r),t,d);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${u} clamped to ${f}`),f}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){if(!this.hls)return-1;const e=this.forcedAutoLevel,r=this.bwEstimator.canEstimate(),s=this.lastLoadedFragLevel>-1;if(e!==-1&&(!r||!s||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const i=r&&s?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const a=this.hls.levels;if(a.length>Math.max(e,i)&&a[e].loadError<=a[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}
879_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:r}=this;if(!r)return-1;if(r.levels.length<=1)return r.loadLevel;const{maxAutoLevel:s,config:i,minAutoLevel:a}=r,l=t?t.duration:e?e.duration:0,u=this.getBwEstimate(),d=this.getStarvationDelay();let f=i.abrBandWidthFactor,m=i.abrBandWidthUpFactor;if(d){const b=this.findBestLevel(u,a,s,d,0,f,m);if(b>=0)return this.rebufferNotice=-1,b}let p=l?Math.min(l,i.maxStarvationDelay):i.maxStarvationDelay;if(!d){const b=this.bitrateTestDelay;b&&(p=(l?Math.min(l,i.maxLoadingDelay):i.maxLoadingDelay)-b,this.info(`bitrate test took ${Math.round(1e3*b)}ms, set first fragment max fetchDuration to ${Math.round(1e3*p)} ms`),f=m=1)}const y=this.findBestLevel(u,a,s,d,p,f,m);if(this.rebufferNotice!==y&&(this.rebufferNotice=y,this.info(`${d?"rebuffering expected":"buffer is empty"}, optimal quality level ${y}`)),y>-1)return y;const v=r.levels[a],x=r.loadLevelObj;return x&&(v==null?void 0:v.bitrate)<x.bitrate?a:r.loadLevel}getStarvationDelay(){const e=this.hls,t=e==null?void 0:e.media;if(!t)return 1/0;const r=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,s=e.mainForwardBufferInfo;return(s?s.len:0)/r}getBwEstimate(){return this.bwEstimator.getEstimate()}findBestLevel(e,t,r,s,i,a,l){const{hls:u,lastLoadedFragLevel:d,fragCurrent:f,partCurrent:m}=this;if(!u)return-1;const p=s+i,y=d===-1?u.firstLevel:d,{levels:v,allAudioTracks:x,loadLevel:b,latestLevelDetails:E,config:T}=u;if(v.length===1)return 0;const w=v[y],R=!!(E!=null&&E.live),I=b===-1||d===-1;let L,N="SDR",_=(w==null?void 0:w.frameRate)||0;const{audioPreference:j,videoPreference:F}=T,$=this.audioTracksByGroup||(this.audioTracksByGroup=Bb(x));let z=-1;if(I){if(this.firstSelection!==-1)return this.firstSelection;const Z=this.codecTiers||(this.codecTiers=DM(v,$,t,r)),X=OM(Z,N,e,j,F),{codecSet:ue,videoRanges:se,minFramerate:G,minBitrate:ee,minIndex:Ee,preferHDR:Ce}=X;z=Ee,L=ue,N=Ce?se[se.length-1]:se[0],_=G,e=Math.max(e,ee),this.log(`picked start tier ${qt(X)}`)}else L=w==null?void 0:w.codecSet,N=w==null?void 0:w.videoRange;const W=m?m.duration:f?f.duration:0,J=this.bwEstimator.getEstimateTTFB()/1e3,oe=[];for(let Z=r;Z>=t;Z--){var ie;const X=v[Z],ue=Z>y;if(!X)continue;if(T.useMediaCapabilities&&!X.supportedResult&&!X.supportedPromise){const me=navigator.mediaCapabilities;typeof(me==null?void 0:me.decodingInfo)=="function"&&TM(X,$,N,_,e,j)?(X.supportedPromise=Mb(X,$,me,this.supportedCache),X.supportedPromise.then(ve=>{if(!this.hls)return;X.supportedResult=ve;const Q=this.hls.levels,ge=Q.indexOf(X);ve.error?this.warn(`MediaCapabilities decodingInfo error: "${ve.error}" for level ${ge} ${qt(ve)}`):ve.supported?ve.decodingInfoResults.some(le=>le.smooth===!1||le.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${ge} not smooth or powerEfficient: ${qt(ve)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${ge} ${qt(ve)}`),ge>-1&&Q.length>1&&(this.log(`Removing unsupported level ${ge}`),this.hls.removeLevel(ge),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(ve=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${ve}`)})):X.supportedResult=Db}if((L&&X.codecSet!==L||N&&X.videoRange!==N||ue&&_>X.frameRate||!ue&&_>0&&_<X.frameRate||(ie=X.supportedResult)!=null&&(ie=ie.decodingInfoResults)!=null&&ie.some(me=>me.smooth===!1))&&(!I||Z!==z)){oe.push(Z);continue}const se=X.details,G=(m?se==null?void 0:se.partTarget:se==null?void 0:se.averagetargetduration)||W||1;let ee;ue?ee=l*e:ee=a*e;const Ee=W&&s>=W*2&&i===0?X.averageBitrate:X.maxBitrate,Ce=this.getTimeToLoadFrag(J,ee,Ee*G,!se||se.live);if(ee>=Ee&&(Z===d||X.loadError===0&&X.fragmentError===0||mb(X,T.errorPenaltyExpireMs))&&(Ce<=J||!ze(Ce)||R&&!this.bitrateTestDelay||Ce<p)){const me=this.forcedAutoLevel;return Z!==b&&(me===-1||me!==b)&&(oe.length&&this.trace(`Skipped level(s) ${oe.join(",")} of ${r} max with CODECS and VIDEO-RANGE:"${v[oe[0]].codecs}" ${v[oe[0]].videoRange}; not compatible with "${L}" ${N}`),this.info(`switch candidate:${y}->${Z} adjustedbw(${Math.round(ee)})-bitrate=${Math.round(ee-Ee)} ttfb:${J.toFixed(1)} avgDuration:${G.toFixed(1)} maxFetchDuration:${p.toFixed(1)} fetchDuration:${Ce.toFixed(1)}
879 firstSelection:${I} codecSet:${X.codecSet} videoRange:${X.videoRange} hls.loadLevel:${b}`)),I&&(this.firstSelection=Z),Z}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){if(!this.hls)return-1;const{maxAutoLevel:t,minAutoLevel:r}=this.hls;return Math.min(Math.max(e,r),t)}}const Vb={search:function(n,e){let t=0,r=n.length-1,s=null,i=null;for(;t<=r;){s=(t+r)/2|0,i=n[s];const a=e(i);if(a>0)t=s+1;else if(a<0)r=s-1;else return i}return null}};function BM(n,e,t){if(e===null||!Array.isArray(n)||!n.length||!ze(e))return null;const r=n[0].programDateTime;if(e<(r||0))return null;const s=n[n.length-1].endProgramDateTime;if(e>=(s||0))return null;for(let i=0;i<n.length;++i){const a=n[i];if(VM(e,t,a))return a}return null}function Wo(n,e,t=0,r=0,s=.005){let i=null;if(n){i=e[1+n.sn-e[0].sn]||null;const l=n.endDTS-t;l>0&&l<15e-7&&(t+=15e-7),i&&n.level!==i.level&&i.end<=n.end&&(i=e[2+n.sn-e[0].sn]||null)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!n||n.level===i.level)&&S9(t,r,i)===0||UM(i,n,Math.min(s,r))))return i;const a=Vb.search(e,S9.bind(null,t,r));return a&&(a!==n||!i)?a:i}function UM(n,e,t){if((e==null?void 0:e.start)===0&&e.level<n.level&&(e.endPTS||0)>0){const r=e.tagList.reduce((s,i)=>(i[0]==="INF"&&(s+=parseFloat(i[1])),s),t);return n.start<=r}return!1}function S9(n=0,e=0,t){if(t.start<=n&&t.start+t.duration>n)return 0;const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-r<=n?1:t.start-r>n&&t.start?-1:0}function VM(n,e,t){const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-r>n}function zb(n,e,t){if(n&&n.startCC<=e&&n.endCC>=e){let r=n.fragments;const{fragmentHint:s}=n;s&&(r=r.concat(s));let i;return Vb.search(r,a=>a.cc<e?1:a.cc>e?-1:(i=a,a.end<=t?1:a.start>t?-1:0)),i||null}return null}function Gb(n,e){return e===n.endSN&&n.fragmentHint?n.fragmentHint:n.fragments[1+e-n.startSN]||null}var kn={DoNothing:0,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,RetryRequest:5},Tn={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4,SwitchToSDR:8,ResetMediaSource:16};class zM extends Sr{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(M.ERROR,this.onError,this),e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(M.ERROR,this.onError,this),e.off(M.ERROR,this.onErrorOut,this),e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===Qe.MAIN?e.level:this.getVariantIndex()}getVariantIndex(){var e;const t=this.hls,r=t.currentLevel;return(e=t.loadLevelObj)!=null&&e.details||r===-1?t.loadLevel:r}variantHasKey(e,t){if(e){var r;if((r=e.details)!=null&&r.hasKey(t))return!0;const s=e.audioGroups;if(s)return this.hls.allAudioTracks.filter(a=>s.indexOf(a.groupId)>=0).some(a=>{var l;return(l=a.details)==null?void 0:l.hasKey(t)})}return!1}onManifestLoading(){this.playlistError=0}onLevelUpdated(){this.playlistError=0}onError(e,t){var r;if(t.fatal)return;const s=this.hls,i=t.context;switch(t.details){case ye.FRAG_LOAD_ERROR:case ye.FRAG_LOAD_TIMEOUT:case ye.KEY_LOAD_ERROR:case ye.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case ye.FRAG_PARSING_ERROR:if((r=t.frag)!=null&&r.gap){t.errorAction=mc();return}case ye.FRAG_GAP:case ye.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=kn.SendAlternateToPenaltyBox;return}case ye.PLAYLIST_UNCHANGED_ERROR:case ye.LEVEL_EMPTY_ERROR:case ye.LEVEL_PARSING_ERROR:{var a;const l=t.parent===Qe.MAIN?t.level:s.loadLevel;t.details===ye.LEVEL_EMPTY_ERROR&&((a=t.context)!=null&&(a=a.levelDetails)!=null&&a.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,l):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,l))}return;case ye.LEVEL_LOAD_ERROR:case ye.LEVEL_LOAD_TIMEOUT:typeof(i==null?void 0:i.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.level));return;case ye.AUDIO_TRACK_LOAD_ERROR:case ye.AUDIO_TRACK_LOAD_TIMEOUT:case ye.SUBTITLE_LOAD_ERROR:case ye.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){const l=s.loadLevelObj;if(l&&(i.type===St.AUDIO_TRACK&&l.hasAudioGroup(i.groupId)||i.type===St.SUBTITLE_TRACK&&l.hasSubtitleGroup(i.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.loadLevel),t.errorAction.action=kn.SendAlternateToPenaltyBox,t.errorAction.flags=Tn.MoveAllAlternatesMatchingHost;return}}return;case ye.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:t.errorAction={action:kn.SendAlternateToPenaltyBox,flags:T
vendor: 50,793 bytes, line 879
879n.MoveAllAlternatesMatchingHDCP};return;case ye.KEY_SYSTEM_SESSION_UPDATE_FAILED:case ye.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case ye.KEY_SYSTEM_NO_SESSION:t.errorAction={action:kn.SendAlternateToPenaltyBox,flags:Tn.MoveAllAlternatesMatchingKey};return;case ye.BUFFER_ADD_CODEC_ERROR:case ye.REMUX_ALLOC_ERROR:case ye.BUFFER_APPEND_ERROR:t.errorAction||(t.errorAction=this.getLevelSwitchAction(t,t.level));return;case ye.MEDIA_SOURCE_REQUIRES_RESET:t.errorAction||(t.errorAction=this.getLevelSwitchAction(t,t.level)),t.errorAction.flags|=Tn.ResetMediaSource|Tn.SwitchToSDR;return;case ye.INTERNAL_EXCEPTION:case ye.BUFFER_APPENDING_ERROR:case ye.BUFFER_APPEND_NO_PROGRESS:case ye.BUFFER_FULL_ERROR:case ye.LEVEL_SWITCH_ERROR:case ye.BUFFER_STALLED_ERROR:case ye.BUFFER_SEEK_OVER_HOLE:case ye.BUFFER_NUDGE_ON_STALL:t.errorAction=mc();return}t.type===nt.KEY_SYSTEM_ERROR&&(t.levelRetry=!1,t.errorAction=mc())}getPlaylistRetryOrSwitchAction(e,t){const r=this.hls,s=o9(r.config.playlistLoadPolicy,e),i=this.playlistError++;if(Pc(s,i,tf(e),e.response))return{action:kn.RetryRequest,flags:Tn.None,retryConfig:s,retryCount:i};const l=this.getLevelSwitchAction(e,t);return s&&(l.retryConfig=s,l.retryCount=i),l}getFragRetryOrSwitchAction(e){const t=this.hls,r=this.getVariantLevelIndex(e.frag),s=t.levels[r],{fragLoadPolicy:i,keyLoadPolicy:a}=t.config,l=o9(fb(e)?a:i,e),u=t.levels.reduce((f,m)=>f+m.fragmentError,0);if(s&&(e.details!==ye.FRAG_GAP&&s.fragmentError++,!hb(e)&&Pc(l,u,tf(e),e.response)))return{action:kn.RetryRequest,flags:Tn.None,retryConfig:l,retryCount:u};const d=this.getLevelSwitchAction(e,r);return l&&(d.retryConfig=l,d.retryCount=u),d}getLevelSwitchAction(e,t){const r=this.hls;t==null&&(t=r.loadLevel);const s=this.hls.levels[t];if(s){var i,a;const d=e.details;s.loadError++,s.loadErrorTime=self.performance.now(),d===ye.BUFFER_APPEND_ERROR&&s.fragmentError++;let f=-1;const{levels:m,loadLevel:p,minAutoLevel:y,maxAutoLevel:v}=r;!r.autoLevelEnabled&&!r.config.preserveManualLevelOnError&&(r.loadLevel=-1);const x=(i=e.frag)==null?void 0:i.type,E=(x===Qe.AUDIO&&d===ye.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&E9(e))&&m.some(({audioCodec:L})=>s.audioCodec!==L),w=e.sourceBufferName==="video"&&E9(e)&&m.some(({codecSet:L,audioCodec:N})=>s.codecSet!==L&&s.audioCodec===N),{type:R,groupId:I}=(a=e.context)!=null?a:{};for(let L=m.length;L--;){const N=(L+p)%m.length;if(N!==p&&N>=y&&N<=v&&(m[N].loadError===0||mb(m[N],r.config.errorPenaltyExpireMs))){var l,u;const _=m[N];if(d===ye.FRAG_GAP&&x===Qe.MAIN&&e.frag){const j=m[N].details;if(j){const F=Wo(e.frag,j.fragments,e.frag.start);if(F!=null&&F.gap)continue}}else{if(R===St.AUDIO_TRACK&&_.hasAudioGroup(I)||R===St.SUBTITLE_TRACK&&_.hasSubtitleGroup(I))continue;if(x===Qe.AUDIO&&(l=s.audioGroups)!=null&&l.some(j=>_.hasAudioGroup(j))||x===Qe.SUBTITLE&&(u=s.subtitleGroups)!=null&&u.some(j=>_.hasSubtitleGroup(j))||E&&s.audioCodec===_.audioCodec||w&&s.codecSet===_.codecSet||!E&&s.audioCodec!==_.audioCodec)continue}f=N;break}}if(f>-1&&r.loadLevel!==f)return e.levelRetry=!0,this.playlistError=0,{action:kn.SendAlternateToPenaltyBox,flags:Tn.None,nextAutoLevel:f}}return{action:kn.SendAlternateToPenaltyBox,flags:Tn.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var r,s;switch((r=t.errorAction)==null?void 0:r.action){case kn.DoNothing:break;case kn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==ye.FRAG_GAP&&t.details!==ye.PLAYLIST_UNCHANGED_ERROR&&!Hb(t)&&(t.fatal=!0);break}if((((s=t.errorAction)==null?void 0:s.flags)||0)&Tn.ResetMediaSource&&this.hls.recoverMediaError(),t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,r=e.errorAction;if(!r)return;let s=r.nextAutoLevel;if(r.flags===Tn.None)this.switchLevel(e,s);else if(r.flags&Tn.SwitchToSDR){const l=this.hls.levels,u=l.length;for(let d=u;d--;)l[d].videoRange!=="SDR"?(l[d].fragmentError++,l[d].loadError++):s===void 0&&(s=d)}else if(r.flags&Tn.MoveAllAlternatesMatchingHDCP){const l=this.getVariantLevelIndex(e.frag),u=t.levels[l],d=u==null?void 0:u.attrs["HDCP-LEVEL"];r.hdcpLevel=d;const f=d==="NONE";d&&!f?(t.maxHdcpLevel=Gm[Gm.indexOf(d)-1],r.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`)):(f&&this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE"),r.flags|=Tn.MoveAllAlternatesMatchingKey)}if(r.flags&Tn.MoveAllAlternatesMatchingKey){const l=e.decryptdata;if(l){const u=this.hls.levels,d=u.length;for(let m=d;m--;)if(this.variantHasKey(u[m],l)){var i,a;this.log(`Banned key found in level ${m} (${u[m].bitrate}bps) or audio group "${(i=u[m].audioGroups)==null?void 0:i.join(",")}" (${(a=e.frag)==null?void 0:a.type} fragment) ${vn(l.keyId||[])}`),u[m].fragmentError++,u[m].loadError++,this.log(`Removing level ${m} with key error (${e.error})`),this.hls.removeLevel(m)}const f=e.frag;if(this.hls.levels.length<d)r.resolved=!0;else if(f&&f.type!==Qe.MAIN){const m=f.decryptdata;m&&!l.matches(m)&&(r.resolved=!0)}}}r.resolved||this.switchLevel(e,s)}switchLevel(e,t){if(t!==void 0&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===ye.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const r=zm(e.mimeType),s=this.hls.levels;for(let i=s.length;i--;)s[i][`${e.sourceBufferName}Codec`]===r&&(this.log(`Removing level ${i} for ${e.details} ("${r}" not supported)`),this.hls.removeLevel(i))}}}function E9(n){const e=n.details;return e===ye.BUFFER_ADD_CODEC_ERROR||e===ye.MEDIA_SOURCE_REQUIRES_RESET||e===ye.BUFFER_APPEND_ERROR&&!Hb(n)}function Hb(n){return n.details===ye.BUFFER_APPEND_ERROR&&(n.error.name==="QuotaExceededError"||n.error.name==="InvalidStateError")}function mc(n){const e={action:kn.DoNothing,flags:Tn.None};return n&&(e.resolved=!0),e}var on={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class GM{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e&&(e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.BUFFER_APPENDED,this.onBufferAppended,this),e.on(M.FRAG_BUFFERED,this.onFragBuffered,this),e.on(M.FRAG_LOADED,this.onFragLoaded,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.BUFFER_APPENDED,this.onBufferAppended,this),e.off(M.FRAG_BUFFERED,this.onFragBuffered,this),e.off(M.FRAG_LOADED,this.onFragLoaded,this))}destroy(){this._unregisterListeners(),this.hls=this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const r=this.activePartLists[t];if(r)for(let s=r.length;s--;){const i=r[s];if(!i)break;if(i.start<=e&&e<=i.end&&i.loaded)return i}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,r){const{fragments:s}=this,i=Object.keys(s);for(let a=i.length;a--;){const l=s[i[a]];if((l==null?void 0:l.body.type)===t&&(!r||l.buffered)){const u=l.body;if(u.start<=e&&e<=u.end)return u}}return null}detectEvictedFragments(e,t,r,s,i,a){this.timeRanges&&(this.timeRanges[e]=t);const l=(i==null?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach(u=>{const d=this.fragments[u];if(!d||!this.hls)return;const f=d.body;if(l>=f.sn)return;if(!d.buffered&&(!d.loaded||a)){f.type===r&&this.removeFragment(f);return}const m=d.range[e];if(m){if(m.time.length===0){this.removeFragment(f);return}if(m.time.some(p=>{const y=!this.isTimeBuffered(p.startPTS,p.endPTS,t);return y&&this.removeFragment(f),y}),s&&s!==f&&hc()){const p=s.endPTS,y=f.startPTS;if(p&&y&&d.range.video){const v=y-p;v<0&&v>-.1&&(this.removeFragment(f),this.hls.trigger(M.BUFFER_FLUSHING,{startOffset:p+.004,endOffset:1/0,type:"video"}))}}}})}detectPartialFragments(e){const t=this.timeRanges,{frag:r,part:s,id:i}=e;if(!t||!un(r))return;const a=So(r),l=this.fragments[a];if(!l||l.buffered&&r.gap)return;const u=!r.relurl;Object.keys(t).forEach(f=>{const m=r.elementaryStreams[f];if(!m)return;const p=t[f],y=u||m.partial===!0;l.range[f]=this.getBufferedTimes(r,s,y,p),this.detectEvictedFragments(f,p,i,r,s)}),l.loaded=null;const d=Object.keys(l.range);if(d.length){if(this.bufferedEnd(l,r),a1(l)||this.removeParts(r.sn-1,r.type),!s){const f=Math.min(.004,r.duration);d.some(m=>{var p;const y=(p=l.range[m])==null?void 0:p.time,v=y.length===0||y.length===1&&y[0].endPTS-y[0].startPTS<f;return v&&this.addAsGap(r),v})}}else this.removeFragment(r)}addAsGap(e){e.gap=!0,this.removeFragment(e),this.fragBuffered(e,!0)}bufferedEnd(e,t){e.buffered=!0,(e.body.endList=t.endList||e.body.endList)&&!t.gap&&(this.endListFragments[e.body.type]=e)}removeParts(e,t){const r=this.activePartLists[t];r&&(this.activePartLists[t]=w9(r,s=>s.fragment.sn>=e))}fragBuffered(e,t){const r=So(e);let s=this.fragments[r];return!s&&t&&(s=this.fragments[r]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),s&&(s.loaded=null,this.bufferedEnd(s,e)),s}getBufferedTimes(e,t,r,s){const i={time:[],partial:r},a=e.start,l=e.end,u=e.minEndPTS||l,d=e.maxStartPTS||a;for(let f=0;f<s.length;f++){const m=s.start(f)-this.bufferPadding,p=s.end(f)+this.bufferPadding;if(d>=m&&u<=p){i.time.push({startPTS:Math.max(a,s.start(f)),endPTS:Math.min(l,s.end(f))});break}else if(a<p&&l>m){const y=Math.max(a,s.start(f)),v=Math.min(l,s.end(f));v>y&&(i.partial=!0,i.time.push({startPTS:y,endPTS:v}))}else if(l<=m)break}return i}getPartialFragment(e){let t=null,r,s,i,a=0;const{bufferPadding:l,fragments:u}=this;return Object.keys(u).forEach(d=>{const f=u[d];f&&a1(f)&&(s=f.body.start-l,i=f.body.end+l,e>=s&&e<=i&&(r=Math.min(e-s,i-e),a<=r&&(t=f.body,a=r)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||a1(t))}getState(e){const t=So(e),r=this.fragments[t];return r?r.buffered?a1(r)?on.PARTIAL:on.OK:on.APPENDING:on.NOT_LOADED}isTimeBuffered(e,t,r){let s,i;for(let a=0;a<r.length;a++){if(s=r.start(a)-this.bufferPadding,i=r.end(a)+this.bufferPadding,e>=s&&t<=i)return!0;if(t<=s)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if(!un(t.frag)||t.frag.bitrateTest)return;const r=t.frag,s=t.part?null:t,i=So(r);this.fragments[i]={body:r,appendedPTS:null,loaded:s,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:r,part:s,timeRanges:i}=t;if(!un(r))return;const a=r.type;if(s){let l=this.activePartLists[a];l||(this.activePartLists[a]=l=[]),l.push(s)}this.timeRanges=i}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=So(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,r=Object.keys(t);if(!e)return r.length>0;for(let s=r.length;s--;){const i=t[r[s]];if((i==null?void 0:i.body.type)===e)return!0}return!1}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}getBackBufferEvictionEnd(e,t,r){const{fragments:s}=this;let i=0,a=0;const l=Object.keys(s);for(let u=0;u<l.length;u++){const d=s[l[u]];if(!d||!d.buffered||d.body.type!==t)continue;const f=d.body;if(f.gap)return 0;const m=f.hasStats&&f.stats.loaded||f.byteLength||f.bitrate&&f.bitrate*8*f.duration;if(f.end<=e&&m&&(i+=m,a=Math.max(a,f.end),i>=r))return a}return a>0?a:0}removeFragmentsInRange(e,t,r,s,i){s&&!this.hasGaps||Object.keys(this.fragments).forEach(a=>{const l=this.fragments[a];if(!l)return;const u=l.body;u.type!==r||s&&!u.gap||u.start<t&&u.end>e&&(l.buffered||i)&&this.removeFragment(u)})}removeFragment(e){const t=So(e);e.clearElementaryStreamInfo();const r=this.activePartLists[e.type];if(r){const s=e.sn;this.activePartLists[e.type]=w9(r,i=>i.fragment.sn!==s)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const t=(e=this.hls)==null||(e=e.latestLevelDetails)==null?void 0:e.partList;t&&t.forEach(r=>r.clearElementaryStreamInfo())}}function a1(n){var e,t,r,s;return n.buffered&&!!(n.body.gap||(e=n.range.video)!=null&&e.partial||(t=n.range.audio)!=null&&t.partial||(r=n.range.audiovideo)!=null&&r.partial||(s=n.range.subs)!=null&&s.partial)}function So(n){return`${n.type}_${n.level}_${n.sn}`}function w9(n,e){return n.filter(t=>{const r=e(t);return r||t.clearElementaryStreamInfo(),r})}var $i={cbc:0,ctr:1};class HM{constructor(e,t,r){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=r}decrypt(e,t){switch(this.aesMode){case $i.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case $i.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function WM(n){const e=n.byteLength,t=e&&new DataView(n.buffer).getUint8(e-1);return t?n.slice(0,e-t):n}class KM{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),r=new Uint32Array(4);for(let s=0;s<4;s++)r[s]=t.getUint32(s*4);return r}initTable(){const e=this.sBox,t=this.invSBox,r=this.subMix,s=r[0],i=r[1],a=r[2],l=r[3],u=this.invSubMix,d=u[0],f=u[1],m=u[2],p=u[3],y=new Uint32Array(256);let v=0,x=0,b=0;for(b=0;b<256;b++)b<128?y[b]=b<<1:y[b]=b<<1^283;for(b=0;b<256;b++){let E=x^x<<1^x<<2^x<<3^x<<4;E=E>>>8^E&255^99,e[v]=E,t[E]=v;const T=y[v],w=y[T],R=y[w];let I=y[E]*257^E*16843008;s[v]=I<<24|I>>>8,i[v]=I<<16|I>>>16,a[v]=I<<8|I>>>24,l[v]=I,I=R*16843009^w*65537^T*257^v*16843008,d[E]=I<<24|I>>>8,f[E]=I<<16|I>>>16,m[E]=I<<8|I>>>24,p[E]=I,v?(v=T^y[y[y[R^T]]],x^=y[y[x]]):v=x=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let r=!0,s=0;for(;s<t.length&&r;)r=t[s]===this.key[s],s++;if(r)return;this.key=t;const i=this.keySize=t.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);const a=this.ksRows=(i+6+1)*4;let l,u;const d=this.keySchedule=new Uint32Array(a),f=this.invKeySchedule=new Uint32Array(a),m=this.sBox,p=this.rcon,y=this.invSubMix,v=y[0],x=y[1],b=y[2],E=y[3];let T,w;for(l=0;l<a;l++){if(l<i){T=d[l]=t[l];continue}w=T,l%i===0?(w=w<<8|w>>>24,w=m[w>>>24]<<24|m[w>>>16&255]<<16|m[w>>>8&255]<<8|m[w&255],w^=p[l/i|0]<<24):i>6&&l%i===4&&(w=m[w>>>24]<<24|m[w>>>16&255]<<16|m[w>>>8&255]<<8|m[w&255]),d[l]=T=(d[l-i]^w)>>>0}for(u=0;u<a;u++)l=a-u,u&3?w=d[l]:w=d[l-4],u<4||l<=4?f[u]=w:f[u]=v[m[w>>>24]]^x[m[w>>>16&255]]^b[m[w>>>8&255]]^E[m[w&255]],f[u]=f[u]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,r){const s=this.keySize+6,i=this.invKeySchedule,a=this.invSBox,l=this.invSubMix,u=l[0],d=l[1],f=l[2],m=l[3],p=this.uint8ArrayToUint32Array_(r);let y=p[0],v=p[1],x=p[2],b=p[3];const E=new Int32Array(e),T=new Int32Array(E.length);let w,R,I,L,N,_,j,F,$,z,W,J,oe,ie;const Z=this.networkToHostOrderSwap;for(;t<E.length;){for($=Z(E[t]),z=Z(E[t+1]),W=Z(E[t+2]),J=Z(E[t+3]),N=$^i[0],_=J^i[1],j=W^i[2],F=z^i[3],oe=4,ie=1;ie<s;ie++)w=u[N>>>24]^d[_>>16&255]^f[j>>8&255]^m[F&255]^i[oe],R=u[_>>>24]^d[j>>16&255]^f[F>>8&255]^m[N&255]^i[oe+1],I=u[j>>>24]^d[F>>16&255]^f[N>>8&255]^m[_&255]^i[oe+2],L=u[F>>>24]^d[N>>16&255]^f[_>>8&255]^m[j&255]^i[oe+3],N=w,_=R,j=I,F=L,oe=oe+4;w=a[N>>>24]<<24^a[_>>16&255]<<16^a[j>>8&255]<<8^a[F&255]^i[oe],R=a[_>>>24]<<24^a[j>>16&255]<<16^a[F>>8&255]<<8^a[N&255]^i[oe+1],I=a[j>>>24]<<24^a[F>>16&255]<<16^a[N>>8&255]<<8^a[_&255]^i[oe+2],L=a[F>>>24]<<24^a[N>>16&255]<<16^a[_>>8&255]<<8^a[j&255]^i[oe+3],T[t]=Z(w^y),T[t+1]=Z(L^v),T[t+2]=Z(I^x),T[t+3]=Z(R^b),y=$,v=z,x=W,b=J,t=t+4}return T.buffer}}class qM{constructor(e,t,r){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=r}expandKey(){const e=YM(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function YM(n){switch(n){case $i.cbc:return"AES-CBC";case $i.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${n}`)}}const XM=16;class Wp{constructor(e,t){if(this.logEnabled=!0,this.decryptRange=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,t!==!0)try{const r=self.crypto;r&&(this.subtle=r.subtle||r.webkitSubtle)}catch{}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const r=new Uint8Array(e);this.reset();const s=this.decryptRange;return s?s.start===0&&s.end>=r.length?r:r.slice(s.start,s.end):WM(r)}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,r,s,i){return this.decryptRange=i,this.useSoftware||i?new Promise((a,l)=>{const u=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(u,t,r,s);const d=this.flush();d?a(d.buffer):l(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,r,s)}softwareDecrypt(e,t,r,s){const{currentIV:i,currentResult:a,remainderData:l}=this;if(s!==$i.cbc||t.byteLength!==16)return Ot.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(e=_r(l,e),this.remainderData=null);const u=this.getValidChunk(e);if(!u.length)return null;i&&(r=i);let d=this.softwareDecrypter;d||(d=this.softwareDecrypter=new KM),d.expandKey(t);const f=a;return this.currentResult=d.decrypt(u.buffer,0,r),this.currentIV=u.slice(-16).buffer,f||null}webCryptoDecrypt(e,t,r,s){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,r,s));this.key=t,this.fastAesKey=new qM(this.subtle,t,s)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new HM(this.subtle,new Uint8Array(r),s).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(Ot.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,t,r,s)))}onWebCryptoError(e,t,r,s){const i=this.enableSoftwareAES;if(i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,r,s);const a=this.flush();if(a)return a.buffer}throw new Error("WebCrypto"+(i?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const r=e.length-e.length%XM;return r!==e.length&&(t=e.slice(0,r),this.remainderData=e.slice(r)),t}logOnce(e){this.logEnabled&&(Ot.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const T9=Math.pow(2,17);class I9{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t,r,s){const i=e.url;if(!i)return Promise.reject(new ps({type:nt.NETWORK_ERROR,details:ye.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${i?"part list":"url"}`),networkDetails:null}));this.abort();const a=this.config,l=a.fLoader,u=a.loader;return new Promise((d,f)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(b=>b[0]==="GAP")){f(A9(e));return}else e.gap=!1;const m=this.loader=l?new l(a):new u(a),p=R9(e,null,t);e.loader=m;const y=l9(a.fragLoadPolicy.default),v={loadPolicy:y,timeout:y.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:T9};m.stats.retry=e.stats.retry,e.stats=m.stats;const x={onSuccess:(b,E,T,w)=>{this.resetLoader(e,m);let R=b.data;T.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(R.slice(0,16)),R=R.slice(16)),d({frag:e,part:null,payload:R,networkDetails:w})},onError:(b,E,T,w)=>{this.resetLoader(e,m),f(new ps({type:nt.NETWORK_ERROR,details:ye.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:st({url:i,data:void 0},b),error:new Error(`HTTP Error ${b.code} ${b.text}`),networkDetails:T,stats:w}))},onAbort:(b,E,T)=>{this.resetLoader(e,m),f(new ps({type:nt.NETWORK_ERROR,details:ye.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:T,stats:b}))},onTimeout:(b,E,T)=>{this.resetLoader(e,m),f(new ps({type:nt.NETWORK_ERROR,details:ye.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${v.timeout}ms`),networkDetails:T,stats:b}))}};if(r){const b=this.gateProgress(r,s);x.onProgress=(E,T,w,R)=>b({frag:e,part:null,payload:w,networkDetails:R})}m.load(p,v,x)})}gateProgress(e,t){let r=e;if(t){const s=[];let i=!1;t.then(()=>{i=!0,s.forEach(a=>e(a)),s.length=0}).catch(()=>{}),r=a=>{i?e(a):s.push(a)}}return r}loadPart(e,t,r){this.abort();const s=this.config,i=s.fLoader,a=s.loader;return new Promise((l,u)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){u(A9(e,t));return}const d=this.loader=i?new i(s):new a(s),f=R9(e,t);e.loader=d;const m=l9(s.fragLoadPolicy.default),p={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:T9};t.stats=d.stats,d.load(f,p,{onSuccess:(y,v,x,b)=>{this.resetLoader(e,d),this.updateStatsFromPart(e,t);const E={frag:e,part:t,payload:y.data,networkDetails:b};r(E),l(E)},onError:(y,v,x,b)=>{this.resetLoader(e,d),u(new ps({type:nt.NETWORK_ERROR,details:ye.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:st({url:f.url,data:void 0},y),error:new Error(`HTTP Error ${y.code} ${y.text}`),networkDetails:x,stats:b}))},onAbort:(y,v,x)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,d),u(new ps({type:nt.NETWORK_ERROR,details:ye.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:x,stats:y}))},onTimeout:(y,v,x)=>{this.resetLoader(e,d),u(new ps({type:nt.NETWORK_ERROR,details:ye.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${p.timeout}ms`),networkDetails:x,stats:y}))}})})}updateStatsFromPart(e,t){const r=e.stats,s=t.stats,i=s.total;if(r.loaded+=s.loaded,i){const u=Math.round(e.duration/t.duration),d=Math.min(Math.round(r.loaded/i),u),m=(u-d)*Math.round(r.loaded/d);r.total=r.loaded+m}else r.total=Math.max(r.loaded,r.total);const a=r.loading,l=s.loading;a.start?a.first+=l.first-l.start:(a.start=l.start,a.first=l.first),a.end=l.end}resetLoader(e,t){e.loader=null,e.url=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function R9(n,e=null,t){const r=e||n,s={type:St.MEDIA_FRAGMENT,frag:n,part:e,responseType:"arraybuffer",url:r.url,headers:{},rangeStart:0,rangeEnd:0},i=of(n,e,t);return i.resetIV&&(s.resetIV=!0),i.byteRange&&(s.rangeStart=i.byteRange.start,s.rangeEnd=i.byteRange.end),s}function of(n,e=null,t){const r={},s=e||n,i=s.byteRangeStartOffset,a=s.byteRangeEndOffset;if(ze(i)&&ze(a)){var l;if((n.sn==="initSegment"||t)&&ZM((l=n.decryptdata)==null?void 0:l.method)){let u=Math.floor(i/16)*16;const d=Math.ceil(a/16)*16;r.decryptRange={start:i-u,end:a-u},u>=16&&(r.resetIV=!0,u=u-16),r.byteRange={start:u,end:d}}else r.byteRange={start:i,end:a}}return r}function A9(n,e){const t=new Error(`GAP ${n.gap?"tag":"attribute"} found`),r={type:nt.MEDIA_ERROR,details:ye.FRAG_GAP,fatal:!1,frag:n,error:t,networkDetails:null};return e&&(r.part=e),(e||n).stats.aborted=!0,new ps(r)}function ZM(n){return n==="AES-128"||n==="AES-256"}class ps extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class Wb extends Sr{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1?(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0):(this.log(`possible exception thrown in task-loop (${this.constructor.name}.doTick)`),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class Kp{constructor(e,t,r,s=0,i=-1,a=!1,l,u,d){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.iframe=void 0,this.duration=void 0,this.decryptRange=void 0,this.transmuxing=o1(),this.buffering={audio:o1(),video:o1(),audiovideo:o1()},this.level=e,this.sn=t,this.id=r,this.size=s,this.part=i,this.partial=a,this.duration=l||0,this.decryptRange=d,this.iframe=u||!1}}function o1(){return{start:0,executeStart:0,executeEnd:0,end:0}}const L9={length:0,start:()=>0,end:()=>0};class ft{static isBuffered(e,t){if(e){const r=ft.getBuffered(e);for(let s=r.length;s--;)if(t>=r.start(s)&&t<=r.end(s))return!0}return!1}static bufferedRanges(e){if(e){const t=ft.getBuffered(e);return ft.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let r=0;r<e.length;r++)t.push({start:e.start(r),end:e.end(r)});return t}static bufferInfo(e,t,r){if(e){const s=ft.bufferedRanges(e);if(s.length)return ft.bufferedInfo(s,t,r)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,r){t=Math.max(0,t),e.length>1&&e.sort((f,m)=>f.start-m.start||m.end-f.end);let s=-1,i=[];if(r)for(let f=0;f<e.length;f++){t>=e[f].start&&t<=e[f].end&&(s=f);const m=i.length;if(m){const p=i[m-1].end;e[f].start-p<r?e[f].end>p&&(i[m-1].end=e[f].end):i.push(e[f])}else i.push(e[f])}else i=e;let a=0,l,u=t,d=t;for(let f=0;f<i.length;f++){const m=i[f].start,p=i[f].end;if(s===-1&&t>=m&&t<=p&&(s=f),t+r>=m&&t<p)u=m,d=p,a=d-t;else if(t+r<m){l=m;break}}return{len:a,start:u||0,end:d||0,nextStart:l,buffered:e,bufferedIndex:s}}static getBuffered(e){try{return e.buffered||L9}catch(t){return Ot.log("failed to get media.buffered",t),L9}}}const Hm=/\{\$([a-zA-Z0-9-_]+)\}/g;function N9(n){return Hm.lastIndex=0,Hm.test(n)}function qp(n,e){if(n.variableList!==null||n.hasVariableRefs){const t=n.variableList;return e.replace(Hm,r=>{const s=r.substring(2,r.length-1),i=t==null?void 0:t[s];return i===void 0?(n.playlistParsingError||(n.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${s}"`)),r):i})}return e}function k9(n,e,t){let r=n.variableList;r||(n.variableList=r={});let s,i;if("QUERYPARAM"in e){s=e.QUERYPARAM;try{const a=new self.URL(t).searchParams;if(a.has(s))i=a.get(s);else throw new Error(`"${s}" does not match any query parameter in URI: "${t}"`)}catch(a){n.playlistParsingError||(n.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${a.message}`))}}else s=e.NAME,i=e.VALUE;s in r?n.playlistParsingError||(n.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${s}"`)):r[s]=i||""}function QM(n,e,t){const r=e.IMPORT;if(t&&r in t){let s=n.variableList;s||(n.variableList=s={}),s[r]=t[r]}else n.playlistParsingError||(n.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}const JM=/^(\d+)x(\d+)$/,P9=/(.+?)=(".*?"|.*?)(?:,|$)/g;class an{constructor(e,t){typeof e=="string"&&(e=an.parseAttrList(e,t)),Vt(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(t.length&1?"0":"")+t;const r=new Uint8Array(t.length/2);for(let s=0;s<t.length/2;s++)r[s]=parseInt(t.slice(s*2,s*2+2),16);return r}return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const r=this[e];return r?parseFloat(r):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const r=this[e];return(r?r.split(/[ ,]+/):[]).reduce((s,i)=>(s[i.toLowerCase()]=!0,s),t)}bool(e){return this[e]==="YES"}decimalResolution(e){const t=JM.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let r;const s={};for(P9.lastIndex=0;(r=P9.exec(e))!==null;){const a=r[1].trim();let l=r[2];const u=l.indexOf('"')===0&&l.lastIndexOf('"')===l.length-1;let d=!1;if(u)l=l.slice(1,-1);else switch(a){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":d=!0}if(t&&(u||d))l=qp(t,l);else if(!d&&!u)switch(a){case"CLOSED-CAPTIONS":if(l==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":Ot.warn(`${e}: attribute ${a} is missing quotes`)}s[a]=l}return s}}const eF="com.apple.hls.interstitial";function tF(n){return n!=="ID"&&n!=="CLASS"&&n!=="CUE"&&n!=="START-DATE"&&n!=="DURATION"&&n!=="END-DATE"&&n!=="END-ON-NEXT"}function nF(n){return n==="SCTE35-OUT"||n==="SCTE35-IN"||n==="SCTE35-CMD"}class Kb{constructor(e,t,r=0){var s;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(t==null?void 0:t.tagAnchor)||null,this.tagOrder=(s=t==null?void 0:t.tagOrder)!=null?s:r,t){const i=t.attr;for(const a in i)if(Object.prototype.hasOwnProperty.call(e,a)&&e[a]!==i[a]){Ot.warn(`DATERANGE tag attribute: "${a}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=a;break}e=Vt(new an({}),i,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in e){const i=(t==null?void 0:t.endDate)||new Date(e["END-DATE"]);ze(i.getTime())&&(this._endDate=i)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return e===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){const{tagAnchor:e}=this;return e===null||e.programDateTime===null?(Ot.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return t!==null?this._dateAtEnd=new Date(this._startDate.getTime()+t*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(ze(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===eF}get isValid(){return!!this.id&&!this._badValueForSameId&&ze(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}get invalidReason(){return this.id?this._badValueForSameId?`Date range ${this._badValueForSameId} mismatch`:ze(this.startDate.getTime())?this.isInterstitial&&!("X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)?"Interstitial Date range missing X-ASSET-(LIST|URI)":this.isValid?null:"Unknown (check DURATION(|END|NEXT), CLASS, and CUE)":"Date range invalid start date":"Missing ID"}}const qb=10;class rF{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.iframesOnly=!1,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}const t=this.lastPartSn-e.lastPartSn,r=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!r||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&r>0,this.updated||this.advanced?this.misses=0:this.misses=e.misses+1}hasKey(e){return this.encryptedFragments.some(t=>{let r=t.decryptdata;return r||(t.setKeyFormat(e.keyFormat),r=t.decryptdata),!!r&&e.matches(r)})}get hasProgramDateTime(){return this.fragments.length?ze(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||qb}get drift(){const e=this.driftEndTime-this.driftStartTime;return e>0?(this.driftEnd-this.driftStart)*1e3/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){return this.fragments.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){return this.fragments.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(t!==-1){for(let r=e.length;r--;)if(e[r].index>t)return e[r].index;return t}}return 0}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function lf(n,e){return n.length===e.length?!n.some((t,r)=>t!==e[r]):!1}function _9(n,e){return!n&&!e?!0:!n||!e?!1:lf(n,e)}function Do(n){return n==="AES-128"||n==="AES-256"||n==="AES-256-CTR"}function Yp(n){switch(n){case"AES-128":case"AES-256":return $i.cbc;case"AES-256-CTR":return $i.ctr;default:throw new Error(`invalid full segment method ${n}`)}}function Wm(n){return Uint8Array.from(unescape(encodeURIComponent(n)),e=>e.charCodeAt(0))}function sF(n){const e=Wm(n).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function Yb(n){const e=function(r,s,i){const a=r[s];r[s]=r[i],r[i]=a};e(n,0,3),e(n,1,2),e(n,4,5),e(n,6,7)}function Xb(n){const e=n.split(":");let t=null;if(e[0]==="data"&&e.length===2){const r=e[1].split(";"),s=r[r.length-1].split(",");if(s.length===2){const i=s[0]==="base64",a=s[1];i?(r.splice(-1,1),t=zp(a)):t=sF(a)}}return t}const cf=typeof self<"u"?self:void 0;var tn={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Pn={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function l1(n){switch(n){case Pn.FAIRPLAY:return tn.FAIRPLAY;case Pn.PLAYREADY:return tn.PLAYREADY;case Pn.WIDEVINE:return tn.WIDEVINE;case Pn.CLEARKEY:return tn.CLEARKEY}}var Zb={WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function L0(n){switch(n){case tn.FAIRPLAY:return Pn.FAIRPLAY;case tn.PLAYREADY:return Pn.PLAYREADY;case tn.WIDEVINE:return Pn.WIDEVINE;case tn.CLEARKEY:return Pn.CLEARKEY}}function Zl(n){const{drmSystems:e,widevineLicenseUrl:t}=n,r=e?[tn.FAIRPLAY,tn.WIDEVINE,tn.PLAYREADY,tn.CLEARKEY].filter(s=>!!e[s]):[];return!r[tn.WIDEVINE]&&t&&r.push(tn.WIDEVINE),r}const Qb=(function(n){return cf!=null&&(n=cf.navigator)!=null&&n.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null})();function iF(n,e,t,r){let s;switch(n){case tn.FAIRPLAY:s=["cenc","sinf"];break;case tn.WIDEVINE:case tn.PLAYREADY:s=["cenc"];break;case tn.CLEARKEY:s=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${n}`)}return aF(s,e,t,r)}function aF(n,e,t,r){return[{initDataTypes:n,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:e.map(i=>({contentType:`audio/mp4; codecs=${i}`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:t.map(i=>({contentType:`video/mp4; codecs=${i}`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}function oF(n){var e;return!!n&&(n.sessionType==="persistent-license"||!!((e=n.sessionTypes)!=null&&e.some(t=>t==="persistent-license")))}function Xp(n){const e=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2),t=Zr(e),r=t.substring(t.indexOf("<"),t.length),a=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(a){const l=a.childNodes[0]?a.childNodes[0].nodeValue:a.getAttribute("VALUE");if(l){const u=zp(l).subarray(0,16);return Yb(u),u}}return null}let Eo={};class Hs{static clearKeyUriToKeyIdMap(){Eo={}}static setKeyIdForUri(e,t){Eo[e]=t}static addKeyIdForUri(e){const t=Object.keys(Eo).length%Number.MAX_SAFE_INTEGER,r=new Uint8Array(16);return new DataView(r.buffer,12,4).setUint32(0,t),Eo[e]=r,r}constructor(e,t,r,s=[1],i=null,a){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.scheme=void 0,this.method=e,this.uri=t,this.keyFormat=r,this.keyFormatVersions=s,this.iv=i,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!Do(e),a!=null&&a.startsWith("0x")&&(this.keyId=new Uint8Array(bb(a)))}matches(e){return e.uri===this.uri&&e.method===this.method&&e.encrypted===this.encrypted&&e.keyFormat===this.keyFormat&&lf(e.keyFormatVersions,this.keyFormatVersions)&&_9(e.iv,this.iv)&&_9(e.keyId,this.keyId)}isSupported(){if(this.method){if(Do(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Pn.FAIRPLAY:case Pn.WIDEVINE:case Pn.PLAYREADY:case Pn.CLEARKEY:return["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e,t){var r;if(!this.encrypted||!this.uri)return null;if(Do(this.method)){let a=this.iv;return a||(typeof e!="number"&&(Ot.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0),a=cF(e)),new Hs(this.method,this.uri,"identity",this.keyFormatVersions,a)}if(this.keyId){const a=Eo[this.uri];if(a&&!lf(this.keyId,a)&&Hs.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const s=Xb(this.uri);if(s)switch(this.keyFormat){case Pn.WIDEVINE:if(this.pssh=s,!this.keyId){const a=Pb(s.buffer).filter(l=>l.systemId===Zb.WIDEVINE);if(a.length){var i;const l=a[0];this.keyId=(i=l.kids)!=null&&i.length?l.kids[0]:null}}this.keyId||(this.keyId=O9(t));break;case Pn.PLAYREADY:{const a=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=uM(a,null,s),this.keyId=Xp(s);break}default:{let a=s.subarray(0,16);if(a.length!==16){const l=new Uint8Array(16);l.set(a,16-a.length),a=l}this.keyId=a;break}}if(((r=this.keyId)==null?void 0:r.byteLength)!==16){let a;a=lF(t),a||(a=O9(t),a||(a=Eo[this.uri])),a&&(this.keyId=a,Hs.setKeyIdForUri(this.uri,a))}return this}}function lF(n){const e=n==null?void 0:n[Pn.WIDEVINE];return e?e.keyId:null}function O9(n){const e=n==null?void 0:n[Pn.PLAYREADY];if(e){const t=Xb(e.uri);if(t)return Xp(t)}return null}function cF(n){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=n>>8*(15-t)&255;return e}const D9=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(I-FRAME-STREAM-INF|SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)(?:[\r\n]+|$)/g,j9=/#EXT-X-MEDIA:(.*)/g,uF=/^#EXT(?:INF|-X-TARGETDURATION):/m,N0=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),dF=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS|I-FRAMES-ONLY)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class Cs{static findGroup(e,t){for(let r=0;r<e.length;r++){const s=e[r];if(s.id===t)return s}}static resolve(e,t){return Fp.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return uF.test(e)}static parseMasterPlaylist(e,t){const r=N9(e),s={contentSteering:null,levels:[],iframeVariants:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:r},i=[];if(D9.lastIndex=0,!e.startsWith("#EXTM3U"))return s.playlistParsingError=new Error("no EXTM3U delimiter"),s;let a;for(;(a=D9.exec(e))!=null;)if(a[1]){const u=new an(a[1],s),d=M9(u,a[2],t,s,i);d&&s.levels.push(d)}else if(a[3]){const u=a[3],d=a[4];switch(u){case"I-FRAME-STREAM-INF":{const f=new an(d,s),m=M9(f,f.URI,t,s,i,!0);m&&s.iframeVariants.push(m)}break;case"SESSION-DATA":{const f=new an(d,s),m=f["DATA-ID"];m&&(s.sessionData===null&&(s.sessionData={}),s.sessionData[m]=f);break}case"SESSION-KEY":{const f=F9(d,t,s);f.encrypted&&f.isSupported()?(s.sessionKeys===null&&(s.sessionKeys=[]),s.sessionKeys.push(f)):Ot.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${d}"`);break}case"DEFINE":{{const f=new an(d,s);k9(s,f,t)}break}case"CONTENT-STEERING":{const f=new an(d,s);s.contentSteering={uri:Cs.resolve(f["SERVER-URI"],t),pathwayId:f["PATHWAY-ID"]||"."};break}case"START":{s.startTimeOffset=$9(d);break}}}const l=i.length>0&&i.length<s.levels.length;return s.levels=l?i:s.levels,s.levels.length===0&&(s.playlistParsingError=new Error("no levels found in manifest")),s}static parseMasterPlaylistMedia(e,t,r){let s;const i={},a=r.levels,l={AUDIO:a.map(d=>({id:d.attrs.AUDIO,audioCodec:d.audioCodec})),SUBTITLES:a.map(d=>({id:d.attrs.SUBTITLES,textCodec:d.textCodec})),"CLOSED-CAPTIONS":[]};let u=0;for(j9.lastIndex=0;(s=j9.exec(e))!==null;){const d=new an(s[1],r),f=d.TYPE;if(f){const m=l[f],p=i[f]||[];i[f]=p;const y=d.LANGUAGE,v=d["ASSOC-LANGUAGE"],x=d.CHANNELS,b=d.CHARACTERISTICS,E=d["INSTREAM-ID"],T={attrs:d,bitrate:0,id:u++,groupId:d["GROUP-ID"]||"",name:d.NAME||y||"",type:f,default:d.bool("DEFAULT"),autoselect:d.bool("AUTOSELECT"),forced:d.bool("FORCED"),lang:y,url:d.URI?Cs.resolve(d.URI,t):""};if(v&&(T.assocLang=v),x&&(T.channels=x),b&&(T.characteristics=b),E&&(T.instreamId=E),m!=null&&m.length){const w=Cs.findGroup(m,T.groupId)||m[0];U9(T,w,"audioCodec"),U9(T,w,"textCodec")}p.push(T)}}return i}static parseLevelPlaylist(e,t,r,s,i,a){var l;const u={url:t},d=new rF(t),f=d.fragments,m=[];let p=null,y=0,v=0,x=0,b=0,E=0,T=null,w=new t1(s,u),R,I,L,N=-1,_=!1,j=null,F;if(N0.lastIndex=0,d.m3u8=e,d.hasVariableRefs=N9(e),((l=N0.exec(e))==null?void 0:l[0])!=="#EXTM3U")return d.playlistParsingError=new Error("Missing format identifier #EXTM3U"),d;for(;(R=N0.exec(e))!==null;){_&&(_=!1,w=new t1(s,u),w.playlistOffset=x,w.setStart(x),w.sn=y,w.cc=b,E&&(w.bitrate=E),w.level=r,p&&(w.initSegment=p,p.rawProgramDateTime&&(w.rawProgramDateTime=p.rawProgramDateTime,p.rawProgramDateTime=null),j&&(w.setByteRange(j),j=null)));const oe=R[1];if(oe){w.duration=parseFloat(oe);const ie=(" "+R[2]).slice(1);w.title=ie||null,w.tagList.push(ie?["INF",oe,ie]:["INF",oe])}else if(R[3]){if(ze(w.duration)){var $;w.playlistOffset=x,w.setStart(x),L&&z9(w,L,d),w.sn=y,w.level=r,w.cc=b;const ie=(" "+R[3]).slice(1);w.relurl=qp(d,ie),Km(w,T,m),T=w,x+=w.duration,y++,v=0;const Z=w.byteRange;if(Z.length===2&&(w.bitrate=(Z[1]-Z[0])*8/w.duration|0),d.iframesOnly&&Z[0]&&(($=p)==null?void 0:$.cc)!==b){const X=new t1(s,u);X.relurl=w.relurl,X.setByteRange(`${Math.min(Z[0],1316)}@0`),X.level=r,X.sn="initSegment",L&&(X.levelkeys=L,L.identity&&(X._decryptdata=L.identity.getDecryptData(0))),p=X,w.initSegment=p}f.push(w),_=!0}}else{if(R=R[0].match(dF),!R){Ot.warn("No matches on slow regex match for level playlist!");continue}for(I=1;I<R.length&&R[I]===void 0;I++);const ie=(" "+R[I]).slice(1),Z=(" "+R[I+1]).slice(1),X=R[I+2]?(" "+R[I+2]).slice(1):null;switch(ie){case"BYTERANGE":T?w.setByteRange(Z,T):w.setByteRange(Z);break;case"PROGRAM-DATE-TIME":w.rawProgramDateTime=Z,w.tagList.push(["PROGRAM-DATE-TIME",Z]),N===-1&&(N=f.length);break;case"PLAYLIST-TYPE":d.type&&Ms(d,ie,R),d.type=Z.toUpperCase();break;case"MEDIA-SEQUENCE":d.startSN!==0?Ms(d,ie,R):T!==null&&mF(d,ie,R),d.startSN=parseInt(Z),y=d.startSN+d.skippedSegments;break;case"SKIP":{d.skippedSegments&&Ms(d,ie,R);const ue=new an(Z,d),se=ue.decimalInteger("SKIPPED-SEGMENTS");if(ze(se)){d.skippedSegments+=se;for(let ee=se;ee--;)f.push(null);y+=se}const G=ue.enumeratedString("RECENTLY-REMOVED-DATERANGES");G&&(d.recentlyRemovedDateranges=(d.recentlyRemovedDateranges||[]).concat(G.split("	")));break}case"TARGETDURATION":d.targetduration!==0&&Ms(d,ie,R),d.targetduration=Math.max(parseInt(Z),1);break;case"VERSION":d.version!==null&&Ms(d,ie,R),d.version=parseInt(Z);break;case"INDEPENDENT-SEGMENTS":break;case"I-FRAMES-ONLY":d.iframesOnly=!0;break;case"ENDLIST":d.live||Ms(d,ie,R),d.live=!1;break;case"#":(Z||X)&&w.tagList.push(X?[Z,X]:[Z]);break;case"DISCONTINUITY":b++,w.tagList.push(["DIS"]);break;case"GAP":w.gap=!0,w.tagList.push([ie]);break;case"BITRATE":w.tagList.push([ie,Z]),E=parseInt(Z)*1e3,ze(E)?w.bitrate=E:E=0;break;case"DATERANGE":{const ue=new an(Z,d),se=new Kb(ue,d.dateRanges[ue.ID],d.dateRangeTagCount);d.dateRangeTagCount++,se.isValid||d.skippedSegments?d.dateRanges[se.id]=se:Ot.log(`Ignoring invalid DATERANGE tag: ${se.invalidReason}: ${Z}`),w.tagList.push(["EXT-X-DATERANGE",Z]);break}case"DEFINE":{{const ue=new an(Z,d);"IMPORT"in ue?QM(d,ue,a):k9(d,ue,t)}break}case"DISCONTINUITY-SEQUENCE":d.startCC!==0&&Ms(d,ie,R),d.startCC=b=parseInt(Z),f.forEach(ue=>ue&&(ue.cc=b));break;case"KEY":{const ue=F9(Z,t,d);if(ue.isSupported()){if(ue.method==="NONE"){L=void 0;break}L||(L={});const se=L[ue.keyFormat];se!=null&&se.matches(ue)||(se&&(L=Vt({},L)),L[ue.keyFormat]=ue)}else Ot.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${Z}"`);break}case"START":d.startTimeOffset=$9(Z);break;case"MAP":{const ue=new an(Z,d);if(w.duration){const se=new t1(s,u);V9(se,ue,r,L),p=se,w.initSegment=p,p.rawProgramDateTime&&!w.rawProgramDateTime&&(w.rawProgramDateTime=p.rawProgramDateTime)}else{const se=w.byteRangeEndOffset;if(se){const G=w.byteRangeStartOffset;j=`${se-G}@${G}`}else j=null;V9(w,ue,r,L),p=w,_=!0}p.cc=b;break}case"SERVER-CONTROL":{F&&Ms(d,ie,R),F=new an(Z),d.canBlockReload=F.bool("CAN-BLOCK-RELOAD"),d.canSkipUntil=F.optionalFloat("CAN-SKIP-UNTIL",0),d.canSkipDateRanges=d.canSkipUntil>0&&F.bool("CAN-SKIP-DATERANGES"),d.partHoldBack=F.optionalFloat("PART-HOLD-BACK",0),d.holdBack=F.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{d.partTarget&&Ms(d,ie,R);const ue=new an(Z);d.partTarget=ue.decimalFloatingPoint("PART-TARGET");break}case"PART":{let ue=d.partList;ue||(ue=d.partList=[]);const se=v>0?ue[ue.length-1]:void 0,G=v++,ee=new an(Z,d),Ee=new vj(ee,w,u,G,se);ue.push(Ee),w.duration+=Ee.duration;break}case"PRELOAD-HINT":{const ue=new an(Z,d);d.preloadHint=ue;break}case"RENDITION-REPORT":{const ue=new an(Z,d);d.renditionReports=d.renditionReports||[],d.renditionReports.push(ue);break}default:Ot.warn(`line parsed but not handled: ${R}`);break}}}T&&!T.relurl?(f.pop(),x-=T.duration,d.partList&&(d.fragmentHint=T)):d.partList&&(Km(w,T,m),w.cc=b,d.fragmentHint=w,L&&z9(w,L,d)),d.targetduration||(d.playlistParsingError=new Error("Missing Target Duration"));const z=f.length,W=f[0],J=f[z-1];if(x+=d.skippedSegments*d.targetduration,x>0&&z&&J){d.averagetargetduration=x/z;const oe=J.sn;d.endSN=oe!=="initSegment"?oe:0,d.live||(J.endList=!0),N>0&&(hF(f,N,N>z-1?w:null),W&&m.unshift(W))}return d.fragmentHint&&(x+=d.fragmentHint.duration),d.totalduration=x,m.length&&d.dateRangeTagCount&&W&&Jb(m,d),d.endCC=b,d}}function M9(n,e,t,r,s,i){var a;if(e===void 0)return null;const l=qp(r,e),u={attrs:n,bitrate:n.decimalInteger("BANDWIDTH")||n.decimalInteger("AVERAGE-BANDWIDTH"),name:n.NAME,url:Cs.resolve(l,t)},d=n.decimalResolution("RESOLUTION");d&&(u.width=d.width,u.height=d.height),B9(n.CODECS,u);const f=n["SUPPLEMENTAL-CODECS"];return f&&(u.supplemental={},B9(f,u.supplemental)),(a=u.unknownCodecs)!=null&&a.length||s.push(u),i&&(u.iframes=!0),u}function Jb(n,e){let t=n.length;if(!t)if(e.hasProgramDateTime){const l=e.fragments[e.fragments.length-1];n.push(l),t++}else return;const r=n[t-1],s=e.live?1/0:e.totalduration,i=Object.keys(e.dateRanges);for(let l=i.length;l--;){const u=e.dateRanges[i[l]],d=u.startDate.getTime();u.tagAnchor=r.ref;for(let f=t;f--;){var a;if(((a=n[f])==null?void 0:a.sn)<e.startSN)break;const m=fF(e,d,n,f,s);if(m){u.tagAnchor=m.ref;break}}}}function fF(n,e,t,r,s){const i=t[r];
vendor: 4,216 bytes, line 879
879if(i){const l=i.programDateTime;if(e>=l||r===0){var a;const u=(((a=t[r+1])==null?void 0:a.start)||s)-i.start;if(e<=l+u*1e3){const d=i.sn-n.startSN,f=n.fragments;if(d>=0&&d<f.length){if(f.length>t.length){const m=t[r+1]||f[f.length-1],p=Math.min(m.sn-n.startSN,f.length-1);for(let y=p;y>d;y--){const v=f[y].programDateTime;if(e>=v&&e<v+f[y].duration*1e3)return f[y]}}return f[d]}}}}return null}function F9(n,e,t){var r,s;const i=new an(n,t),a=(r=i.METHOD)!=null?r:"",l=i.URI,u=i.hexadecimalInteger("IV"),d=i.KEYFORMATVERSIONS,f=(s=i.KEYFORMAT)!=null?s:"identity";l&&i.IV&&!u&&Ot.error(`Invalid IV: ${i.IV}`);const m=l?Cs.resolve(l,e):"",p=(d||"1").split("/").map(Number).filter(Number.isFinite);return new Hs(a,m,f,p,u,i.KEYID)}function $9(n){const t=new an(n).decimalFloatingPoint("TIME-OFFSET");return ze(t)?t:null}function B9(n,e){let t=(n||"").split(/[ ,]+/).filter(r=>r);["video","audio","text","image"].forEach(r=>{const s=t.filter(i=>Gp(i,r));s.length&&(e[`${r}Codec`]=s.map(i=>i.split("/")[0]).join(","),t=t.filter(i=>s.indexOf(i)===-1))}),e.unknownCodecs=t}function U9(n,e,t){const r=e[t];r&&(n[t]=r)}function hF(n,e,t){if(t||(t=n[e]),!!t)for(let r=e;r--;){const s=n[r];if(!s)return;s.programDateTime=t.programDateTime-s.duration*1e3,t=s}}function Km(n,e,t){n.rawProgramDateTime?t.push(n):e!=null&&e.programDateTime&&(n.programDateTime=e.endProgramDateTime)}function V9(n,e,t,r){n.relurl=e.URI,e.BYTERANGE&&n.setByteRange(e.BYTERANGE),n.level=t,n.sn="initSegment",r&&(n.levelkeys=r),n.initSegment=null}function z9(n,e,t){n.levelkeys=e;const{encryptedFragments:r}=t;(!r.length||r[r.length-1].levelkeys!==e)&&Object.keys(e).some(s=>e[s].isCommonEncryption)&&r.push(n)}function Ms(n,e,t){n.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function mF(n,e,t){n.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function k0(n,e){const t=e.startPTS;if(ze(t)){let r=0,s;e.sn>n.sn?(r=t-n.start,s=n):(r=n.start-t,s=e),s.duration!==r&&s.setDuration(r)}else e.sn>n.sn?n.cc===e.cc&&n.minEndPTS?e.setStart(n.start+(n.minEndPTS-n.start)):e.setStart(n.start+n.duration):e.setStart(Math.max(n.start-e.duration,0))}function eS(n,e,t,r,s,i,a,l){r-t<=0&&(l.warn("Fragment should have a positive duration",e),r=t+e.duration,i=s+e.duration);let d=t,f=r;const m=e.startPTS,p=e.endPTS;if(ze(m)){const T=Math.abs(m-t);n&&T>n.totalduration?l.warn(`media timestamps and playlist times differ by ${T}s for level ${e.level} ${n.url}`):ze(e.deltaPTS)?e.deltaPTS=Math.max(T,e.deltaPTS):e.deltaPTS=T,d=Math.max(t,m),t=Math.min(t,m),s=e.startDTS!==void 0?Math.min(s,e.startDTS):s,f=Math.min(r,p),r=Math.max(r,p),i=e.endDTS!==void 0?Math.max(i,e.endDTS):i}const y=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(r-e.start),e.startPTS=t,e.maxStartPTS=d,e.startDTS=s,e.endPTS=r,e.minEndPTS=f,e.endDTS=i;const v=e.sn;if(!n||v<n.startSN||v>n.endSN)return 0;let x;const b=v-n.startSN,E=n.fragments;for(E[b]=e,x=b;x>0;x--)k0(E[x],E[x-1]);for(x=b;x<E.length-1;x++)k0(E[x],E[x+1]);return n.fragmentHint&&k0(E[E.length-1],n.fragmentHint),n.PTSKnown=n.alignedSliding=!0,y}function pF(n,e,t){if(n===e)return;let r=null;const s=n.fragments;for(let f=s.length-1;f>=0;f--){const m=s[f].initSegment;if(m){r=m;break}}n.fragmentHint&&delete n.fragmentHint.endPTS;let i;vF(n,e,(f,m,p,y)=>{if((!e.startCC||e.skippedSegments)&&m.cc!==f.cc){const v=f.cc-m.cc;for(let x=p;x<y.length;x++)y[x].cc+=v;e.endCC=y[y.length-1].cc}ze(f.startPTS)&&ze(f.endPTS)&&(m.setStart(m.startPTS=f.startPTS),m.startDTS=f.startDTS,m.maxStartPTS=f.maxStartPTS,m.endPTS=f.endPTS,m.endDTS=f.endDTS,m.minEndPTS=f.minEndPTS,m.setDuration(f.endPTS-f.startPTS),m.duration&&(i=m),e.PTSKnown=e.alignedSliding=!0),f.hasStreams&&(m.elementaryStreams=f.elementaryStreams),m.loader=f.loader,f.hasStats&&(m.stats=f.stats),f.initSegment&&(m.initSegment=f.initSegment,r=f.initSegment)});const a=e.fragments,l=e.fragmentHint?a.concat(e.fragmentHint):a;if(r&&l.forEach(f=>{var m;f&&(!f.initSegment||f.initSegment.relurl===((m=r)==null?void 0:m.relurl))&&(f.initSegment=r)}),e.skippedSegments){if(e.deltaUpdateFailed=a.some(f=>!f),e.deltaUpdateFailed){t.warn("[level-helper] Previous playlist missing segments ski
879pped in delta playlist");for(let f=e.skippedSegments;f--;)a.shift();e.startSN=a[0].sn}else{e.canSkipDateRanges&&(e.dateRanges=gF(n.dateRanges,e,t));const f=n.fragments.filter(m=>m.rawProgramDateTime);if(n.hasProgramDateTime&&!e.hasProgramDateTime)for(let m=1;m<l.length;m++)l[m].programDateTime===null&&Km(l[m],l[m-1],f);Jb(f,e)}e.endCC=a[a.length-1].cc}if(!e.startCC){var u;const f=rS(n,e.startSN-1);e.startCC=(u=f==null?void 0:f.cc)!=null?u:a[0].cc}if(yF(n.partList,e.partList,(f,m)=>{m.elementaryStreams=f.elementaryStreams,m.stats=f.stats,m.gap=f.gap||m.gap}),i){const f=e.iframesOnly&&i.type===Qe.MAIN;eS(e,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS,f,t)}else tS(n,e);a.length&&(e.totalduration=e.edge-a[0].start),e.driftStartTime=n.driftStartTime,e.driftStart=n.driftStart;const d=e.advancedDateTime;if(e.advanced&&d){const f=e.edge;e.driftStart||(e.driftStartTime=d,e.driftStart=f),e.driftEndTime=d,e.driftEnd=f}else e.driftEndTime=n.driftEndTime,e.driftEnd=n.driftEnd,e.advancedDateTime=n.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=n.requestScheduled)}function gF(n,e,t){const{dateRanges:r,recentlyRemovedDateranges:s}=e,i=Vt({},n);s&&s.forEach(u=>{delete i[u]});const l=Object.keys(i).length;return l?(Object.keys(r).forEach(u=>{const d=i[u],f=new Kb(r[u].attr,d);f.isValid?(i[u]=f,d||(f.tagOrder+=l)):t.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${qt(r[u].attr)}"`)}),i):r}function yF(n,e,t){if(n&&e){let r=0;for(let s=0,i=n.length;s<i;s++){const a=n[s],l=e[s+r];a&&l&&a.index===l.index&&a.fragment.sn===l.fragment.sn?t(a,l):r--}}}function vF(n,e,t){var r;const s=e.skippedSegments,i=Math.max(n.startSN,e.startSN)-e.startSN,a=(n.fragmentHint?1:0)+(s?e.endSN:Math.min(n.endSN,e.endSN))-e.startSN,l=e.startSN-n.startSN,u=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,d=(r=n.fragmentHint)!=null&&r.duration?n.fragments.concat(n.fragmentHint):n.fragments;for(let f=i;f<=a;f++){const m=d[l+f];let p=u[f];if(s&&!p&&m&&(p=e.fragments[f]=m),m&&p){t(m,p,f,u);const y=m.relurl,v=p.relurl;if(y&&CF(y,v)){e.playlistParsingError=G9(`media sequence mismatch ${p.sn}:`,n,e,m,p);return}else if(m.cc!==p.cc){e.playlistParsingError=G9(`discontinuity sequence mismatch (${m.cc}!=${p.cc})`,n,e,m,p);return}}}}function G9(n,e,t,r,s){return new Error(`${n} ${s.url}
880Playlist starting @${e.startSN}
881${e.m3u8}
882
883Playlist starting @${t.startSN}
884${t.m3u8}`)}function tS(n,e,t=!0,r){const s=e.startSN+e.skippedSegments-n.startSN,i=n.fragments,a=s>=0;let l=0;if(a&&s<i.length)l=i[s].start,r==null||r.log(`Aligning playlists based on SN ${e.startSN} (diff: ${l})`);else if(a&&e.startSN===n.endSN+1)l=n.fragmentEnd,r==null||r.log(`Aligning playlists based on first/last SN ${e.startSN} (diff: ${l})`);else if(a&&t)l=n.fragmentStart+s*e.levelTargetDuration;else if(!e.skippedSegments&&e.fragmentStart===0)l=n.fragmentStart,r==null||r.log(`Aligning playlists based on first SN ${e.startSN} (diff: ${l})`);else return l;return xF(e,l),l}function xF(n,e){if(e){const t=n.fragments;for(let r=n.skippedSegments;r<t.length;r++)t[r].addStart(e);n.fragmentHint&&n.fragmentHint.addStart(e)}}function nS(n,e=1/0){let t=1e3*n.targetduration;if(n.updated){const r=n.fragments;if(r.length&&t*4>e){const i=r[r.length-1].duration*1e3;i>0&&i<t&&(t=i)}}else t/=2;return Math.round(t)}function rS(n,e,t){var r;if(!n)return null;let s=n.fragments[e-n.startSN];return s||(s=n.fragmentHint,((r=s)==null?void 0:r.sn)===e)?s:t&&e<n.startSN&&t.sn===e?t:null}function H9(n,e,t){return n?sS(n.partList,e,t):null}function sS(n,e,t){if(n)for(let r=n.length;r--;){const s=n[r];if(s.index===t&&s.fragment.sn===e)return s}return null}function iS(n){n.forEach((e,t)=>{var r;(r=e.details)==null||r.fragments.forEach(s=>{s.level=t,s.initSegment&&(s.initSegment.level=t)})})}function CF(n,e){return n!==e&&e?W9(n)!==W9(e):!1}function W9(n){return n.replace(/\?[^?]*$/,"")}function pc(n,e){for(let r=0,s=n.length;r<s;r++){var t;if(((t=n[r])==null?void 0:t.cc)===e)return n[r]}return null}function bF(n,e){return!!(n&&e.startCC<n.endCC&&e.endCC>n.startCC)}function K9(n,e){const t=n.start+e;n.setStart(t)}function aS(n,e){const t=e.fragments;for(let r=0,s=t.length;r<s;r++)K9(t[r],n);e.fragmentHint&&K9(e.fragmentHint,n),e.alignedSliding=!0}function uf(n,e,t){n&&(SF(e,n,t),e.alignedSliding||EF(e,n,t),!e.alignedSliding&&!e.skippedSegments&&tS(n,e,!1,t))}function SF(n,e,t){if(!bF(e,n))return;const r=Math.min(e.endCC,n.endCC),s=pc(e.fragments,r),i=pc(n.fragments,r);if(!s||!i)return;const a=s.start-i.start;t.log(`Aligning playlists using dicontinuity sequence ${r} (diff: ${a})`),aS(a,n)}function EF(n,e,t){if(!n.hasProgramDateTime||!e.hasProgramDateTime)return;const r=n.fragments,s=e.fragments;if(!r.length||!s.length)return;let i,a;const l=Math.min(e.endCC,n.endCC);e.startCC<l&&n.startCC<l&&(i=pc(s,l),a=pc(r,l)),(!i||!a)&&(i=s[Math.floor(s.length/2)]||s.filter(p=>!!p)[0],a=pc(r,i.cc)||r[Math.floor(r.length/2)]);const u=i.programDateTime,d=a.programDateTime;if(!u||!d)return;const f=(d-u)/1e3;if(Math.abs(f)>Math.max(60,n.totalduration)){t.log(`Cannot align playlists using PDT without overlap (${Math.abs(f)} > ${n.totalduration})`);return}const m=f-(a.start-i.start);t.log(`Aligning playlists using PDT (diff: ${m})`),aS(m,n)}function Mt(n,e,t){jt(n,e,t),n.addEventListener(e,t)}function jt(n,e,t){n.removeEventListener(e,t)}function df(n){let e="";const t=n.length;for(let r=0;r<t;r++)e+=`[${n.start(r).toFixed(3)}-${n.end(r).toFixed(3)}]`;return e}const Le={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class Zp extends Wb{constructor(e,t,r,s,i){super(s,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragPlaying=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=Le.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=-1,this.startTimeOffset=null,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.initFragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{const{config:a,fragCurrent:l,media:u,mediaBuffer:d,state:f}=this,m=u?u.currentTime:0,p=ft.bufferInfo(d||u,m,a.maxBufferHole),y=p.len;if(this.log(`Media seeking to ${m}, state: ${f}, ${y?"in":"out of"} buffer`),this.state===Le.ENDED)this.resetLoadingState();else if(l){const x=a.maxFragLookUpTolerance,b=l.start-x,E=l.start+l.duration+x;if(!y||E<p.start||b>p.end){const T=m<b,w=m>E;
vendor: 15,634 bytes, line 884
884(T||w)&&(l.loader&&(w||!this.isFragmentNearlyDownloaded(l))?(this.log(`Cancelling fragment load for seek (sn: ${l.sn}) - ${T?"backward":"forward"} seek`),l.abortRequests(),this.resetLoadingState()):this.fragPrevious=null)}}if(u){this.fragmentTracker.removeFragmentsInRange(m,1/0,this.playlistType,!0);const x=this.lastCurrentTime;if(m>x&&(this.lastCurrentTime=m),!this.loadingParts){const b=Math.max(p.end,m),E=this.shouldLoadParts(this.getLevelDetails(),b);E&&(this.log(`LL-Part loading ON after seeking to ${m} with buffer @${b}`),this.loadingParts=E)}}const v=!ft.isBuffered(u,m);(!this.hls.hasEnoughToStart||v)&&(this.log(`Setting ${v?"startPosition":"nextLoadPosition"} to ${m} for seek without enough to start`),this.nextLoadPosition=m,v&&(this.startPosition=m)),y<1&&this.state===Le.IDLE&&this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=i,this.hls=e,this.fragmentLoader=new I9(e.config),this.initFragmentLoader=new I9(e.config),this.keyLoader=r,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Wp(e.config)}registerListeners(){const{hls:e}=this;e.on(M.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(M.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(M.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(M.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===Le.STOPPED)return;this.fragmentLoader.abort(),this.initFragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Le.STOPPED}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;if(t===-1&&e){const r=this.getLevelDetails();return r!=null&&r.live?(this.hls.liveSyncPosition||r.fragmentStart)+this.timelineOffset:e}return t}get bufferingEnabled(){return this.buffering}get backtrackFragment(){}set backtrackFragment(e){}get couldBacktrack(){return!1}set couldBacktrack(e){}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;const r=e.end||0,s=this.config.timelineOffset||0;if(r<=s)return!1;const i=e.buffered;this.config.maxBufferHole&&i&&i.length>1&&(e=ft.bufferedInfo(i,e.start,0));const a=e.nextStart;if(a&&a>s&&a<t.edge||this.media.currentTime<e.start)return!1;const u=t.partList;if(u!=null&&u.length){const f=u[u.length-1];return ft.isBuffered(this.media,f.start+f.duration/2)}const d=t.fragments[t.fragments.length-1];return this.fragmentTracker.isEndListAppended(d.type)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null)return this.levelLastLoaded.details}get timelineOffset(){const e=this.config.timelineOffset;if(e){var t;return((t=this.getLevelDetails())==null?void 0:t.appliedTimelineOffset)||e}return 0}onMediaAttached(e,t){const r=this.media=this.mediaBuffer=t.media;Mt(r,"seeking",this.onMediaSeeking),Mt(r,"ended",this.onMediaEnded);const s=this.config;this.levels&&s.autoStartLoad&&this.state===Le.STOPPED&&this.startLoad(s.startPosition)}onMediaDetaching(e,t){this.fragPlaying=null;const r=!!t.transferMedia,s=this.media;if(s!==null){if(s.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),jt(s,"seeking",this.onMediaSeeking),jt(s,"ended",this.onMediaEnded),this.media=this.mediaBuffer=null,this.loopSn=void 0,r){this.resetLoadingState(),this.resetTransmuxer();return}this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.fragPlaying=this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=0,this.startPosition=-1,this.startFragRequested=!1}onError(e,t){}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=Le.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.initFragmentLoader&&this.initFragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.decrypter=this.keyLoader=null,this.fragmentLoader=this.initFragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,r){this.startFragRequested=!0,this._loadFragForPlayback(e,t,r)}_loadFragForPlayback(e,t,r){const s=i=>{const a=i.frag;if(this.fragContextChanged(a)){this.warn(`${a.type} sn: ${a.sn}${i.part?" part: "+i.part.index:""} of ${this.fragInfo(a,!1,i.part)} was dropped during download.`),this.fragmentTracker.removeFragment(a);return}const l=++a.stats.chunkCount;this.log(`load progress ${a.type} sn: ${a.sn}${i.part?" part: "+i.part.index:""} of ${this.fragInfo(a,!1,i.part)} chunk: ${l}`),this._handleFragmentLoadProgress(i)};this._doFragLoad(e,t,r,s).then(i=>{if(!i)return;const a=this.state,l=i.frag;if(this.fragContextChanged(l)){(a===Le.FRAG_LOADING||!this.fragCurrent&&a===Le.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=Le.IDLE);return}"payload"in i&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level} (bytes ${l.stats.loaded})`),this.hls.trigger(M.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===Le.STOPPED||this.state===Le.ERROR||(this.log(`Frag error ${e.type} sn:${e.sn} cc:${e.cc}: ${(i==null?void 0:i.message)||i}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:r}=this;if(r.getState(e)===on.APPENDING){const i=e.type,a=this.getFwdBufferInfo(this.mediaBuffer,i),l=Math.max(e.duration,a?a.len:this.config.maxBufferLength),u=this.backtrackFragment;((u?e.sn-u.sn:0)===1||this.reduceMaxBufferLength(l,e.duration))&&r.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?r.removeAllFragments():r.hasParts(e.type)&&(r.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),r.getState(e)===on.PARTIAL&&r.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=this.fragmentTracker,r=e.fragments[e.fragments.length-1];if(r.endList&&!t.isEndListAppended(this.playlistType)){const s=t.getPartialFragment(r.end);s&&(t.removeFragment(s),t.fragBuffered(r,!0))}t.detectPartialFragments({frag:r,part:null,stats:r.stats,id:r.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){const t=e.details;return(t==null?void 0:t.live)&&t.type!=="EVENT"&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,r=null){if(!(e-t))return;const s={startOffset:e,endOffset:t,type:r};this.hls.trigger(M.BUFFER_FLUSHING,s)}_loadInitSegment(e){const{hls:t}=this;return this.initFragmentLoader.abort(),t.trigger(M.FRAG_LOADING,{frag:e,targetBufferTime:0}),this.initFragmentLoader.load(e).then(r=>{var s;const i=r.frag;if(!this.levels||!Fm(i,(s=this.fragCurrent)==null?void 0:s.initSegment))throw new ps({type:nt.NETWORK_ERROR,details:ye.INTERNAL_ABORTED,error:new Error("init load aborted"),fatal:!1,frag:i,networkDetails:null});return r}).then(r=>{const{frag:s,payload:i}=r,a=s.decryptdata;if(i&&i.byteLength>0&&a!=null&&a.key&&a.iv&&Do(a.method)){const l=self.performance.now(),{decryptRange:u}=of(s,null,this.iframesOnly);return this.decrypter.decrypt(new Uint8Array(i),a.key.buffer,a.iv.buffer,Yp(a.method),u).catch(d=>{throw t.trigger(M.ERROR,{type:nt.MEDIA_ERROR,details:ye.FRAG_DECRYPT_ERROR,fatal:!1,error:d,reason:d.message,frag:s}),this.fragmentLoader.abort(),d}).then(d=>{const f=self.performance.now();return t.trigger(M.FRAG_DECRYPTED,{frag:s,part:null,payload:d,stats:{tstart:l,tdecrypt:f}}),r.payload=d,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)})}completeInitSegmentLoad(e){const t=e.frag.stats;e.frag.data=new Uint8Array(e.payload),t.parsing.start=t.buffering.start=self.performance.now(),t.parsing.end=t.buffering.end=self.performance.now()}loadInitSegmentIfNeeded(e){const{initSegment:t}=e;if(!this.bitrateTest&&un(e)&&t&&!t.data){var r;return(t.encrypted&&!((r=t.decryptdata)!=null&&r.key)?this.keyLoader.load(t).then(()=>this._loadInitSegment(t)):this._loadInitSegment(t)).catch(i=>{throw this.state===Le.STOPPED||this.state===Le.ERROR||("data"in i&&(i.data.frag=e,this.fragmentLoader.abort(),this.handleFragLoadError(i)),this.resetFragmentLoading(e)),i})}}unhandledEncryptionError(e,t){var r,s;const i=e.tracks;if(i&&!t.encrypted&&((r=i.audio)!=null&&r.encrypted||(s=i.video)!=null&&s.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){const a=this.media,l=new Error(`Encrypted track with no key in ${this.fragInfo(t)} (media ${a?"attached mediaKeys: "+a.mediaKeys:"detached"})`);return this.warn(l.message),!a||a.mediaKeys?!1:(this.hls.trigger(M.ERROR,{type:nt.KEY_SYSTEM_ERROR,details:ye.KEY_SYSTEM_NO_KEYS,fatal:!1,error:l,frag:t}),this.resetTransmuxer(),!0)}return!1}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!Fm(e,t)}fragBufferedComplete(e,t){const r=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${r?df(ft.getBuffered(r)):"(detached)"})`),un(e)){var s;if(e.type!==Qe.SUBTITLE){const a=e.elementaryStreams;if(!Object.keys(a).some(l=>!!a[l])){this.state=Le.IDLE;return}}const i=(s=this.levels)==null?void 0:s[e.level];i!=null&&i.fragmentError&&(t||this.fragmentTracker.getState(e)!==on.PARTIAL)&&(this.log(`Resetting level fragment error count of ${i.fragmentError} on frag buffered`),i.fragmentError=0,e.stats.retry=0)}this.state=Le.IDLE}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const r=e.frag,{part:s,partsLoaded:i}=e,a=!i||i.length===0||i.some(d=>!d),{decryptRange:l}=of(r,s),u=new Kp(r.level,r.sn,r.stats.chunkCount+1,0,s?s.index:-1,!a,r.duration,this.iframesOnly,l);this.log(`load complete ${r.type} sn: ${r.sn}${s?" part: "+s.index:""} of ${this.fragInfo(r,!1,s)}`),t.flush(u)}_handleFragmentLoadProgress(e){}loadKeyFor(e,t,r){var s;let i=null;return e.encrypted&&!((s=e.decryptdata)!=null&&s.key)?(this.log(`Loading key for ${e.sn} of [${t.startSN}-${t.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=Le.KEY_LOADING,i=this.keyLoader.load(e,r).then(a=>{if(!this.fragContextChanged(a.frag))return this.hls.trigger(M.KEY_LOADED,a),this.state===Le.KEY_LOADING&&(this.state=Le.IDLE),a}),this.hls.trigger(M.KEY_LOADING,{frag:e})):e.encrypted||(i=this.keyLoader.loadClear(e,t.encryptedFragments,this.startFragRequested),i&&this.log(`[eme] blocking frag sn: ${e.sn} load until media-keys acquired`)),i}_doFragLoad(e,t,r=null,s){this.fragCurrent=e;const i=t.details;if(!this.levels||!i)throw new Error(`frag load aborted, missing level${i?"":" detail"}s`);const a=this.fragPrevious;if(!ac(e,a)){const y=this.shouldLoadParts(t.details,e.end);y!==this.loadingParts&&(this.log(`LL-Part loading ${y?"ON":"OFF"} loading sn ${a==null?void 0:a.sn}->${e.sn}`),this.loadingParts=y)}if(r=Math.max(e.start,r||0),this.loadingParts){const y=i.partList;if(y&&s){r>i.fragmentEnd&&i.fragmentHint&&(e=i.fragmentHint);const v=this.getNextPart(y,e,r);if(v>-1){const x=y[v];if(e=this.fragCurrent=x.fragment,!ac(e,a)&&!this.shouldLoadParts(t.details,e.end))return this.log(`LL-Part loading OFF @${this.playhead} next part: ${this.fragInfo(e,!1,x)}`),this.loadingParts=!1,Promise.resolve(null);if(!this.filterReplacedPrimary(x,t.details))return Promise.resolve(null);const b=this.loadKeyFor(e,i);if(this.fragContextChanged(e))return Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} part: ${x.index} (${v}/${y.length-1}) of ${this.fragInfo(e,!1,x)} cc: ${e.cc} [${i.startSN}-${i.endSN}], target: ${r}${x.byteRange.length?` range:${x.byteRange.join("-")}`:""}`),this.nextLoadPosition=x.start+x.duration,this.state=Le.FRAG_LOADING;let E;const T=this.loadInitSegmentIfNeeded(e);if(b||T){const w=!!b;E=Promise.all([b,T]).then(([R])=>w&&(!R||this.fragContextChanged(R.frag))?null:this.doFragPartsLoad(e,x,t,s)).catch(R=>this.handleFragLoadError(R))}else E=this.doFragPartsLoad(e,x,t,s).catch(w=>this.handleFragLoadError(w));return this.hls.trigger(M.FRAG_LOADING,{frag:e,part:x,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):E}else if(!e.url||this.loadedEndOfParts(y,r))return Promise.resolve(null)}}if(this.loadingParts){var l;this.log(`LL-Part loading OFF after next part miss @${r} Check buffer at sn: ${e.sn} loaded parts: ${(l=i.partList)==null?void 0:l.filter(y=>y.loaded).map(y=>`[${y.start}-${y.end}]`)}`),this.loadingParts=!1}else if(!e.url)return Promise.resolve(null);if(!this.filterReplacedPrimary(e,t.details))return Promise.resolve(null);const u=this.loadInitSegmentIfNeeded(e),d=this.loadKeyFor(e,i,u);if(this.fragContextChanged(e)){var f;return this.log(`Context changed in KEY_LOADING sn: ${e.sn} ${e.relurl} > ${(f=this.fragCurrent)==null?void 0:f.relurl}`),u==null||u.catch(()=>null),d==null||d.catch(()=>null),Promise.resolve(null)}this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)} cc: ${e.cc} ${"["+i.startSN+"-"+i.endSN+"]"}, target: ${r}${e.byteRange.length?` range:${e.byteRange.join("-")}`:""}`),ze(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=Le.FRAG_LOADING;const m=this.config.progressive&&e.type!==Qe.SUBTITLE;let p;return m&&d?p=d.then(y=>!y||this.fragContextChanged(y.frag)?null:this.fragmentLoader.load(e,this.iframesOnly,s,u)).catch(y=>this.handleFragLoadError(y)):p=Promise.all([this.fragmentLoader.load(e,this.iframesOnly,m?s:void 0,m?u:void 0),d,u]).then(([y])=>(!m&&s&&s(y),y)).catch(y=>this.handleFragLoadError(y)),this.hls.trigger(M.FRAG_LOADING,{frag:e,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):Promise.all([p,u]).then(([y])=>y)}doFragPartsLoad(e,t,r,s){return new Promise((i,a)=>{var l;const u=[],d=(l=r.details)==null?void 0:l.partList,f=m=>{this.fragmentLoader.loadPart(e,m,s).then(p=>{u[m.index]=p;const y=p.part;this.hls.trigger(M.FRAG_LOADED,p);const v=H9(r.details,e.sn,m.index+1)||sS(d,e.sn,m.index+1);if(v)f(v);else return i({frag:e,part:y,partsLoaded:u})}).catch(a)};f(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;t.frag&&t.details===ye.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):t.frag&&t.type===nt.KEY_SYSTEM_ERROR&&!t.fatal&&(t.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(t.frag)),this.hls.trigger(M.ERROR,t)}else this.hls.trigger(M.ERROR,{type:nt.OTHER_ERROR,details:ye.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==Le.PARSING){!this.fragCurrent&&this.state!==Le.STOPPED&&this.state!==Le.ERROR&&(this.state=Le.IDLE);return}const{frag:r,part:s,level:i}=t,a=self.performance.now();r.stats.parsing.end=a,s&&(s.stats.parsing.end=a);const l=this.getLevelDetails(),d=l&&r.sn>l.endSN||this.shouldLoadParts(l,r.end);d!==this.loadingParts&&(this.log(`LL-Part loading ${d?"ON":"OFF"} after parsing segment ending @${r.end}
884`),this.loadingParts=d),this.updateLevelTiming(r,s,i,e)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e.partList&&!this.iframesOnly){var r;const s=e.partList[0],i=s.end+(((r=e.fragmentHint)==null?void 0:r.duration)||0);if(t>=i&&this.playhead>s.start-s.fragment.duration)return!0}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:r}=this,{level:s,sn:i,part:a}=e;if(!(t!=null&&t[s]))return this.warn(`Levels object was unset while buffering fragment ${i} of ${this.playlistLabel()} ${s}. The current chunk will not be buffered.`),null;const l=t[s],u=l.details,d=a>-1?H9(u,i,a):null,f=d?d.fragment:rS(u,i,r);return f?(r&&r!==f&&(f.stats=r.stats),{frag:f,part:d,level:l}):null}bufferFragmentData(e,t,r,s,i){if(this.state!==Le.PARSING)return;un(t)&&!this.fragContextChanged(t)&&(this.fragPrevious=t);const{data1:a,data2:l}=e;let u=a;if(l&&(u=_r(a,l)),!u.length)return;const d=this.initPTS[t.cc],f=d?-d.baseTime/d.timescale:void 0,m={type:e.type,frag:t,part:r,chunkMeta:s,offset:f,parent:t.type,data:u};if(this.hls.trigger(M.BUFFER_APPENDING,m),e.dropped&&e.independent&&!r){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!ft.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const r=t.currentTime,s=ft.bufferInfo(t,r,0),i=e.duration,a=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),l=Math.max(Math.min(e.start-a,s.end-a),r+a);e.start-l>a&&this.flushMainBuffer(l,e.start)}getFwdBufferInfo(e,t){var r;const s=this.playhead,a=this.lastCurrentTime>s||(r=this.media)!=null&&r.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,s,t,a)}getFwdBufferInfoAtPos(e,t,r,s){const i=ft.bufferInfo(e,t,s);if(i.len===0&&i.nextStart!==void 0){const a=this.fragmentTracker.getBufferedFrag(t,r);if(a&&(i.nextStart<=a.end||a.gap)){const l=Math.max(Math.min(i.nextStart,a.end)-t,s);return ft.bufferInfo(e,t,l)}}return i}getMaxBufferLength(e){const{config:t}=this;let r;return e?r=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):r=t.maxBufferLength,Math.min(r,t.maxMaxBufferLength)}exceedsMaxBuffer(e,t,r){const s=e.nextStart;if(s&&r.start>s){const i=e.buffered;if(i){let a=e.len;const l=e.bufferedIndex;for(let u=i.length-1;u>l;u--)i[u].start<r.start&&(a+=i[u].end-i[u].start);return a>=t}}return!1}reduceMaxBufferLength(e,t){const r=this.config,s=Math.max(Math.min(e-t,r.maxBufferLength),t/2),i=Math.max(e-t*3,r.maxMaxBufferLength/2,s);return i>=s?(r.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}s`),!0):!1}getAppendedFrag(e){const t=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(e,this.playlistType):null;return t&&"fragment"in t?t.fragment:t}getNextFragment(e,t){const r=t.fragments,s=r.length;if(!s)return null;const{config:i}=this,a=t.fragmentStart,l=i.lowLatencyMode&&!!t.partList;let u=null;if(t.live){const m=i.initialLiveManifestSize;if(s<m)return this.warn(`Not enough fragments to start playback (have: ${s}, need: ${m})`),null;if(!this.startFragRequested&&l&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<a){var d;u=this.getInitialLiveFragment(t);const p=this.config.startPosition,y=this.hls.startPosition,v=this.hls.liveSyncPosition,x=((d=u)==null?void 0:d.start)||0;let b,E;if(y!==-1&&y>=a?(b=y,E=y===p?"config":"next load start"):v?(b=v,E="live edge"):(b=e,E="buffer pos"),b<x&&(b=x,E="live frag start"),b<a&&(b=a,E="playlist start"),this.startPosition!=b||this.nextLoadPosition!=b){const w=t.live&&!this.filterReplacedPrimary(u,t)?-1:b;this.log(`Setting startPosition to ${w} next load ${b} ${y===-1?"":`(from ${p}) `}based on ${E}. live edge: ${v} live frag start: ${x} playlist start: ${a} buffer pos: ${e}`),this.startPosition=w,this.nextLoadPosition=b}}}else e<=a&&(u=r[0]);if(!u){const m=this.loadingParts?t.partEnd:t.fragmentEnd;u=this.getFragmentAtPosition(e,m,t)}let f=this.filterReplacedPrimary(u,t);return!f&&u&&(f=Gb(t,u.sn),f&&(this.nextLoadPosition=f.start)),f}isLoopLoading(e,t){if(this.nextLoadPosition<=t)return!1;const r=this.fragmentTracker.getState(e);return!!(r===on.OK||r===on.PARTIAL&&(e.gap||e.stats.retry>1))}getNextFragmentLoopLoading(e,t,r,s,i){let a=null;
vendor: 124,949 bytes, lines 884-893
884if(e.gap&&(a=this.getNextFragment(this.nextLoadPosition,t),a&&!a.gap&&r.nextStart)){const l=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,s,0);if(l!==null&&r.len+l.len>=i){const u=a.sn;return this.loopSn!==u&&(this.log(`buffer full after gaps in "${s}" playlist starting at sn: ${u}`),this.loopSn=u),null}}return this.loopSn=void 0,a}get primaryPrefetch(){if(ff(this.config)){var e;if((e=this.hls.interstitialsManager)==null||(e=e.playingItem)==null?void 0:e.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(ff(this.config)&&("type"in e?e:e.fragment).type!==Qe.SUBTITLE){const r=this.hls.interstitialsManager,s=r==null?void 0:r.bufferingItem;if(s){const i=s.event;if(i){if(!i.appendInPlace&&(Math.abs(e.start-s.start)>1||s.start===0))return null}else if(e.end<=s.start&&(t==null?void 0:t.live)===!1||e.start>=s.end&&s.nextEvent&&(s.nextEvent.appendInPlace&&!s.nextEvent.hasPlayed||e.start-s.end>1))return null}if(oS(e,r==null?void 0:r.playerQueue,this.playhead))return null}return e}getNextPart(e,t,r){let s=-1,i=!1,a=!0;for(let u=0,d=e.length;u<d;u++){const f=e[u];if(a=a&&!f.independent,s>-1&&r<f.start)break;const m=f.loaded||f.gap;m?s=-1:(i||(f.independent||a)&&f.fragment===t)&&(s=u),i=m&&!f.gap}const l=e[s];return l&&l.fragment!==t&&this.log(`Need buffer at ${r} but next unloaded part starts at ${l.start} (sn: ${t.sn} -> ${l.fragment.sn})`),s}loadedEndOfParts(e,t){let r;for(let s=e.length;s--;){if(r=e[s],!r.loaded)return!1;if(t>r.start)return!0}return!1}getInitialLiveFragment(e){const t=e.fragments,r=this.fragPrevious;let s=null;if(r){if(e.hasProgramDateTime&&(s=BM(t,r.endProgramDateTime,this.config.maxFragLookUpTolerance),s&&this.log(`Live playlist, switching playlist, load frag with same PDT: ${r.programDateTime}`)),!s){const i=r.sn+1;if(i>=e.startSN&&i<=e.endSN){const a=t[i-e.startSN];r.cc===a.cc&&(s=a,this.log(`Live playlist, switching playlist, load frag with next SN: ${s.sn}`))}s||(s=zb(e,r.cc,r.end),s&&this.log(`Live playlist, switching playlist, load frag with same CC: ${s.sn}`))}}else{const i=this.hls.liveSyncPosition;i!==null&&(s=this.getFragmentAtPosition(i,this.bitrateTest?e.fragmentEnd:e.edge,e))}return s}getFragmentAtPosition(e,t,r){const{config:s}=this;let{fragPrevious:i}=this,{fragments:a,endSN:l}=r;const{fragmentHint:u}=r,{maxFragLookUpTolerance:d}=s,f=r.partList,m=!!(this.loadingParts&&f!=null&&f.length&&u);m&&!this.bitrateTest&&f[f.length-1].fragment.sn===u.sn&&(a=a.concat(u),l=u.sn),i&&this.fragmentTracker.getState(i)===on.NOT_LOADED&&(i=null);let p;if(e<t){var y;const x=e<this.lastCurrentTime||e>t-d||(y=this.media)!=null&&y.paused||!this.startFragRequested?0:d;p=Wo(i,a,e,x)}else p=a[a.length-1];if(p){const v=p.sn-r.startSN,x=this.fragmentTracker.getState(p);if((x===on.OK||x===on.PARTIAL&&p.gap)&&(i=p),ac(p,i)&&(!m||f[0].fragment.sn>p.sn||!r.live)){const b=a[v+1];p.sn<l&&this.fragmentTracker.getState(b)!==on.OK?p=b:p=null}}return p}alignPlaylists(e,t,r){const s=e.fragments.length;if(!s)return this.warn("No fragments in live playlist"),0;const i=e.fragmentStart,a=!t,l=e.alignedSliding&&ze(i);if(a||!l&&!i){uf(r,e,this);const u=e.fragmentStart;return this.log(`Live playlist sliding: ${u} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${s}`),u}return i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let r=this.startPosition;r<t&&(r=-1);const s=this.timelineOffset;if(r===-1){const i=this.startTimeOffset!==null,a=i?this.startTimeOffset:e.startTimeOffset;if(a!==null&&ze(a))r=t+a,a<0&&(r+=e.edge),r=Math.min(Math.max(t,r),t+e.totalduration),this.log(`Setting startPosition to ${r} for start time offset ${a} found in ${i?"multivariant":"media"} playlist`),this.startPosition=r;else if(e.live){const l=this.hls.liveSyncPosition;r=l||t,this.log(`Setting startPosition to -1 to start at ${l?"live edge":"playlist start"} ${r}`),this.startPosition=-1}else this.log("setting startPosition to 0 by default"),this.startPosition=r=0;this.lastCurrentTime=r+s}this.nextLoadPosition=r+s}getLoadPosition(){var e;const{media:t}=this;let r=0;return(e=this.hls)!=null&&e.hasEnoughToStart&&t&&!this.iframesOnly?r=t.currentTime:this.nextLoadPosition>=0&&(r=this.nextLoadPosition),r}get playhead(){var e;if((e=this.hls)!=null&&e.hasEnoughToStart){var t;const r=(t=this.media)==null?void 0:t.currentTime;return ze(r)?r:this.lastCurrentTime}return this.getLoadPosition()}get iframesOnly(){var e;if(this.playlistType!==Qe.MAIN)return!1;const t=this.getLevelDetails();return t?t.iframesOnly:(e=this.levelLastLoaded)==null?void 0:e.iframes}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&un(e)&&e.stats.aborted&&(this.log(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==Le.FRAG_LOADING_WAITING_RETRY)&&(this.state=Le.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const T=this.getCurrentContext(t.chunkMeta);T&&(t.frag=T.frag)}const{frag:r,part:s}=t;if(!r||!this.levels||r.type!==e)return;if(this.fragContextChanged(r)){var i;this.warn(`Frag load error must match current frag to retry ${r.relurl} > ${(i=this.fragCurrent)==null?void 0:i.relurl}`);return}const a=t.details===ye.FRAG_GAP;a&&this.fragmentTracker.addAsGap(r);const l=t.errorAction;if(!l){this.state=Le.ERROR;return}const{action:u,flags:d,retryCount:f=0,retryConfig:m}=l,p=!!m,y=p&&u===kn.RetryRequest,v=p&&!l.resolved&&d&Tn.MoveAllAlternatesMatchingHost,x=this.hls.latestLevelDetails,b=x==null?void 0:x.live;if(!y&&v&&un(r)&&b&&r.sn<x.endSN&&!hb(t))this.resetFragmentErrors(e),s?s.gap=!0:this.treatAsGap(r),l.resolved=!0;else if((y||v)&&f<m.maxNumRetry){var E;const T=_c((E=t.response)==null?void 0:E.code),w=Bp(m,f);if(this.resetStartWhenNotLoaded(),this.retryDate=self.performance.now()+w,this.state=Le.FRAG_LOADING_WAITING_RETRY,l.resolved=!0,T){this.log("Waiting for connection (offline)"),this.retryDate=1/0,t.reason="offline";return}this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${f+1}/${m.maxNumRetry} in ${w}ms`)}else if(m)if(this.resetFragmentErrors(e),f<m.maxNumRetry)!a&&u!==kn.RemoveAlternatePermanently&&(l.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${f})`);return}else u===kn.SendAlternateToPenaltyBox?this.state=Le.WAITING_LEVEL:this.state=Le.ERROR;this.tickImmediate()}checkRetryDate(){const e=self.performance.now(),t=this.retryDate,r=t===1/0;(!t||e>=t||r&&!_c(0))&&(r&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=Le.IDLE)}reduceLengthAndFlushBuffer(e){if(this.state===Le.PARSING||this.state===Le.PARSED){const t=e.frag,r=e.parent,s=this.getFwdBufferInfo(this.mediaBuffer,r),i=s&&s.len>.5;i&&this.reduceMaxBufferLength(s.len,(t==null?void 0:t.duration)||10);const a=!i;return a?this.warn(`Buffer full error while media.currentTime (${this.playhead}) is not buffered, flush ${r} buffer`):s.nextStart&&t&&s.nextStart>t.start&&this.flushMainBuffer(s.nextStart,Number.POSITIVE_INFINITY,r===Qe.AUDIO?r:void 0),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),a}return!1}resetFragmentErrors(e){e===Qe.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==Le.STOPPED&&(this.state=Le.IDLE)}afterBufferFlushed(e,t){if(!e)return;const r=ft.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,this.playlistType),this.state===Le.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==Le.STOPPED&&(this.state=Le.IDLE)}resetStartWhenNotLoaded(){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const e=this.getLevelDetails();e!=null&&e.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(e,e.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.log(`Loading context changed while buffering sn ${e.sn} of ${this.playlistLabel()} ${e.level===-1?"<removed>":e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,r,s){const i=r.details;if(!i){this.warn("level.details undefined");return}if(this.log(`update level timing ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)}`),!Object.keys(e.elementaryStreams).reduce((m,p)=>{const y=e.elementaryStreams[p];if(y){const v=y.endPTS-y.startPTS;if(v<=0)return this.warn(`Could not parse fragment ${e.sn} ${p} duration reliably (${v})`),m||!1;const x=s.partial?0:eS(i,e,y.startPTS,y.endPTS,y.startDTS,y.endDTS,this.iframesOnly,this);return this.hls.trigger(M.LEVEL_PTS_UPDATED,{details:i,level:r,drift:x,type:p,frag:e,start:y.startPTS,end:y.endPTS}),!0}return m},!1)){var l,u,d,f;const m=((l=this.transmuxer)==null?void 0:l.error)===null,p=((u=this.transmuxer)==null?void 0:u.error)!=null,y=((d=(f=this.levels)==null?void 0:f.length)!=null?d:0)>1;if((r.fragmentError===0||m&&(r.fragmentError<2||e.endList)||p&&y)&&this.treatAsGap(e,r),m){const v=new Error(`Found no media in ${this.playlistLabel()} ${e.level} ${t?`part: ${t.index} of `:""}sn: ${e.sn} at playlist time: ${e.start}. Resetting transmuxer to fallback to playlist timing`);if(this.warn(v.message),this.hls.trigger(M.ERROR,{type:nt.MEDIA_ERROR,details:ye.FRAG_PARSING_ERROR,fatal:!1,error:v,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=Le.PARSED,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)}`),this.hls.trigger(M.FRAG_PARSED,{frag:e,part:t,chunkMeta:s})}playlistLabel(){return`${this.playlistType} playlist`}fragInfo(e,t=!0,r){var s,i;return`${this.playlistLabel()} ${e.level} (${r?"part":"frag"}:[${(s=t&&!r?e.startPTS:(r||e).start)!=null?s:NaN}-${(i=t&&!r?e.endPTS:(r||e).end)!=null?i:NaN}]${r&&e.type==="main"?"INDEPENDENT="+(r.independent?"YES":"NO"):""})`}treatAsGap(e,t){t&&t.fragmentError++,this.fragmentTracker.addAsGap(e)}resetTransmuxer(){var e;(e=this.transmuxer)==null||e.reset()}isFragmentNearlyDownloaded(e){var t;const r=(t=e.loader)==null?void 0:t.stats;if(!r)return!1;const s=r.loading.first>0,a=(r.total-r.loaded)/(this.hls.bandwidthEstimate||this.hls.config.abrEwmaDefaultEstimate);return s&&a<=.15}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}calculateOptimalSwitchPoint(e,t){let r=0;const{hls:s,media:i,config:a,levels:l,playlistType:u}=this,d=this.getLevelDetails();if(i&&!i.paused&&l){var f;const y=u===Qe.AUDIO?Fb(e.audioCodec,128e3):e.maxBitrate,v=1+s.ttfbEstimate/1e3,x=s.bandwidthEstimate*a.abrBandWidthUpFactor,b=d&&(this.loadingParts?d.partTarget:d.averagetargetduration)||((f=this.fragCurrent)==null?void 0:f.duration)||6;r=v+y*b/x,e.details||(r+=v)}const m=this.playhead,p=!(d!=null&&d.live)||t.end-m>r*1.5;return{fetchdelay:r,okToFlushForwardBuffer:p}}scheduleTrackSwitch(e,t,r){const{media:s,playlistType:i}=this;if(!s||!e)return;const a=r?this.getBufferedFrag(this.playhead+t):null;if(a){const u=this.followingBufferedFrag(a);if(u){var l;this.abortCurrentFrag();const d=u.maxStartPTS?u.maxStartPTS:u.start,f=u.duration,m=Math.max(a.end,d+Math.min(Math.max(f-this.config.maxFragLookUpTolerance,f*(this.couldBacktrack?.5:.125)),f*(this.couldBacktrack?.75:.25)));if((((l=this.getLevelDetails())==null?void 0:l.fragmentStart)||0)>m)return;const y=i===Qe.MAIN?null:"audio";this.flushMainBuffer(m,Number.POSITIVE_INFINITY,y),this.cleanupBackBuffer()}}}cleanupBackBuffer(){const{media:e,playlistType:t}=this;if(!e)return;const r=this.getAppendedFrag(this.playhead);if(r&&r.start>1){const s=t===Qe.AUDIO;this.flushMainBuffer(0,r.start-(s?0:1),s?"audio":null)}}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,this.playlistType)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}abortCurrentFrag(){const e=this.fragCurrent;switch(this.fragCurrent=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case Le.KEY_LOADING:case Le.FRAG_LOADING:case Le.FRAG_LOADING_WAITING_RETRY:case Le.PARSING:case Le.PARSED:this.state=Le.IDLE;break}this.nextLoadPosition=this.playhead}checkFragPlaying(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const r=e.currentTime;if(ft.isBuffered(e,r)?t=this.getAppendedFrag(r):ft.isBuffered(e,r+.1)&&(t=this.getAppendedFrag(r+.1)),t&&(this.backtrackFragment=void 0,!ac(t,this.fragPlaying)))return this.fragPlaying=t,!0}return!1}getBufferOutput(){return null}nextLevelSwitch(){const{levels:e,media:t,hls:r,config:s,playlistType:i}=this;if(t!=null&&t.readyState&&e&&r&&s){const a=this.getBufferOutput(),l=this.getFwdBufferInfo(a,i);if(!l)return;const u=i===Qe.AUDIO?r.nextAudioTrack:r.nextLoadLevel,d=e[u],{fetchdelay:f,okToFlushForwardBuffer:m}=this.calculateOptimalSwitchPoint(d,l);this.scheduleTrackSwitch(l,f,m)}this.tickImmediate()}}function oS(n,e,t){if(e)for(let r=e.length;r--;){const s=e[r].interstitial,i=s.startTime,a=Math.min(i+s.duration,s.resumeTime);if(s.appendInPlace&&(n.start>=i&&n.end<=a||t>n.start&&n.end>i&&n.start<a))return!0}return!1}function ff(n){return!!n.interstitialsController&&n.enableInterstitialPlayback!==!1}class lS{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let r;if(e.length)e.length===1?r=e[0]:r=wF(e,t);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function wF(n,e){const t=new Uint8Array(e);let r=0;for(let s=0;s<n.length;s++){const i=n[s];t.set(i,r),r+=i.length}return t}var P0={exports:{}},q9;function TF(){return q9||(q9=1,(function(n){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function s(u,d,f){this.fn=u,this.context=d,this.once=f||!1}function i(u,d,f,m,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var y=new s(f,m||u,p),v=t?t+d:d;return u._events[v]?u._events[v].fn?u._events[v]=[u._events[v],y]:u._events[v].push(y):(u._events[v]=y,u._eventsCount++),u}function a(u,d){--u._eventsCount===0?u._events=new r:delete u._events[d]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var d=[],f,m;if(this._eventsCount===0)return d;for(m in f=this._events)e.call(f,m)&&d.push(t?m.slice(1):m);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(f)):d},l.prototype.listeners=function(d){var f=t?t+d:d,m=this._events[f];if(!m)return[];if(m.fn)return[m.fn];for(var p=0,y=m.length,v=new Array(y);p<y;p++)v[p]=m[p].fn;return v},l.prototype.listenerCount=function(d){var f=t?t+d:d,m=this._events[f];return m?m.fn?1:m.length:0},l.prototype.emit=function(d,f,m,p,y,v){var x=t?t+d:d;if(!this._events[x])return!1;var b=this._events[x],E=arguments.length,T,w;if(b.fn){switch(b.once&&this.removeListener(d,b.fn,void 0,!0),E){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,f),!0;case 3:return b.fn.call(b.context,f,m),!0;case 4:return b.fn.call(b.context,f,m,p),!0;case 5:return b.fn.call(b.context,f,m,p,y),!0;case 6:return b.fn.call(b.context,f,m,p,y,v),!0}for(w=1,T=new Array(E-1);w<E;w++)T[w-1]=arguments[w];b.fn.apply(b.context,T)}else{var R=b.length,I;for(w=0;w<R;w++)switch(b[w].once&&this.removeListener(d,b[w].fn,void 0,!0),E){case 1:b[w].fn.call(b[w].context);break;case 2:b[w].fn.call(b[w].context,f);break;case 3:b[w].fn.call(b[w].context,f,m);break;case 4:b[w].fn.call(b[w].context,f,m,p);break;default:if(!T)for(I=1,T=new Array(E-1);I<E;I++)T[I-1]=arguments[I];b[w].fn.apply(b[w].context,T)}}return!0},l.prototype.on=function(d,f,m){return i(this,d,f,m,!1)},l.prototype.once=function(d,f,m){return i(this,d,f,m,!0)},l.prototype.removeListener=function(d,f,m,p){var y=t?t+d:d;if(!this._events[y])return this;if(!f)return a(this,y),this;var v=this._events[y];if(v.fn)v.fn===f&&(!p||v.once)&&(!m||v.context===m)&&a(this,y);else{for(var x=0,b=[],E=v.length;x<E;x++)(v[x].fn!==f||p&&!v[x].once||m&&v[x].context!==m)&&b.push(v[x]);b.length?this._events[y]=b.length===1?b[0]:b:a(this,y)}return this},l.prototype.removeAllListeners=function(d){var f;return d?(f=t?t+d:d,this._events[f]&&a(this,f)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=t,l.EventEmitter=l,n.exports=l})(P0)),P0.exports}var IF=TF(),Qp=gj(IF);const Bc="1.7.3",Ko={};function RF(){return typeof __HLS_WORKER_BUNDLE__=="function"}function AF(){const n=Ko[Bc];if(n)return n.clientCount++,n;const e=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),t=self.URL.createObjectURL(e),s={worker:new self.Worker(t),objectURL:t,clientCount:1};return Ko[Bc]=s,s}function LF(n){const e=Ko[n];if(e)return e.clientCount++,e;const t=new self.URL(n,self.location.href).href,s={worker:new self.Worker(t),scriptURL:t,clientCount:1};return Ko[n]=s,s}function NF(n){const e=Ko[n||Bc];if(e&&e.clientCount--===1){const{worker:r,objectURL:s}=e;delete Ko[n||Bc],s&&self.URL.revokeObjectURL(s),r.terminate()}}function kF(n,e,t,r){const s=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=e[t+2],a=i>>2&15;if(a>12){const b=new Error(`invalid ADTS sampling index:${a}`);n.emit(M.ERROR,M.ERROR,{type:nt.MEDIA_ERROR,details:ye.FRAG_PARSING_ERROR,fatal:!0,error:b,reason:b.message});return}const l=(i>>6&3)+1,u=e[t+3]>>6&3|(i&1)<<2,d=s[a];let f=a;(l===5||l===29)&&(f-=3);let m;const p=(f&14)>>1,y=(f&1)<<7|u<<3;let v=0;if(l===1&&a>=6){v=5;const b=a-3;m=[v<<3|p,y|(b&14)>>1,(b&1)<<7|8,0]}else m=[l<<3|p,y];const x="mp4a.40."+(v||l);return Ot.log(`manifest codec:${r}, parsed codec:${x}, channels:${u}, rate:${d} (ADTS object type:${l} sampling index:${a} esds config:[${m.join(",")}])`),{config:m,samplerate:d,channelCount:u,codec:x,parsedCodec:x,manifestCodec:r}}function cS(n,e){return n[e]===255&&(n[e+1]&246)===240}function uS(n,e){return n[e+1]&1?7:9}function Jp(n,e){return(n[e+3]&3)<<11|n[e+4]<<3|(n[e+5]&224)>>>5}function PF(n,e){return e+5<n.length}function hf(n,e){return e+1<n.length&&cS(n,e)}function _F(n,e){return PF(n,e)&&cS(n,e)&&Jp(n,e)<=n.length-e}function OF(n,e){if(hf(n,e)){const t=uS(n,e);if(e+t>=n.length)return!1;const r=Jp(n,e);if(r<=t)return!1;const s=e+r;return s===n.length||hf(n,s)}return!1}function dS(n,e,t,r,s){if(!n.samplerate){const i=kF(e,t,r,s);if(!i)return;Vt(n,i)}}function fS(n){return 1024*9e4/n}function DF(n,e){const t=uS(n,e);if(e+t<=n.length){const r=Jp(n,e)-t;if(r>0)return{headerLength:t,frameLength:r}}}function hS(n,e,t,r,s){const i=fS(n.samplerate),a=r+s*i,l=DF(e,t);let u;if(l){const{frameLength:m,headerLength:p}=l,y=p+m,v=Math.max(0,t+y-e.length);v?(u=new Uint8Array(y-p),u.set(e.subarray(t+p,e.length),0)):u=e.subarray(t+p,t+y);const x={unit:u,pts:a};return v||n.samples.push(x),{sample:x,length:y,missing:v}}const d=e.length-t;return u=new Uint8Array(d),u.set(e.subarray(t,e.length),0),{sample:{unit:u,pts:a},length:d,missing:-1}}let Kn=(function(n){return n.audioId3="org.id3",n.dateRange="com.apple.quicktime.HLS",n.emsg="https://aomedia.org/emsg/ID3",n.misbklv="urn:misb:KLV:bin:1910.1",n})({});function ys(n="",e=9e4){return{type:n,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class e8{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,r,s){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,r){}demux(e,t){this.cachedData&&(e=_r(this.cachedData,e),this.cachedData=null);let r=Oc(e,0),s=r?r.length:0,i;const a=this._audioTrack,l=this._id3Track,u=r?Vp(r):void 0,d=e.length;for((this.basePTS===null||this.frameIndex===0&&ze(u))&&(this.basePTS=jF(u,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),r&&r.length>0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Kn.audioId3,duration:Number.POSITIVE_INFINITY});s<d;){if(this.canParse(e,s)){const f=this.appendFrame(a,e,s);f?(this.frameIndex++,this.lastPTS=f.sample.pts,s+=f.length,i=s):s=d}else Dj(e,s)?(r=Oc(e,s),l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Kn.audioId3,duration:Number.POSITIVE_INFINITY}),s+=r.length,i=s):s++;if(s===d&&i!==d){const f=e.slice(i);this.cachedData?this.cachedData=_r(this.cachedData,f):this.cachedData=f}}return{audioTrack:a,videoTrack:ys(),id3Track:l,textTrack:ys()}}demuxSampleAes(e,t,r){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:ys(),id3Track:this._id3Track,textTrack:ys()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const jF=(n,e,t)=>{if(ze(n))return n*90;const r=t?t.baseTime*9e4/t.timescale:0;return e*9e4+r},MF=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],FF=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],$F=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],BF=[0,1,1,4];function mS(n,e,t,r,s){if(t+24>e.length)return;const i=pS(e,t);if(i&&t+i.frameLength<=e.length){const a=i.samplesPerFrame*9e4/i.sampleRate,l=r+s*a,u={unit:e.subarray(t,t+i.frameLength),pts:l,dts:l};return n.config=[],n.channelCount=i.channelCount,n.samplerate=i.sampleRate,n.samples.push(u),{sample:u,length:i.frameLength,missing:0}}}function pS(n,e){const t=n[e+1]>>3&3,r=n[e+1]>>1&3,s=n[e+2]>>4&15,i=n[e+2]>>2&3;if(t!==1&&s!==0&&s!==15&&i!==3){const a=n[e+2]>>1&1,l=n[e+3]>>6,u=t===3?3-r:r===3?3:4,d=MF[u*14+s-1]*1e3,m=FF[(t===3?0:t===2?1:2)*3+i],p=l===3?1:2,y=$F[t][r],v=BF[r],x=y*8*v,b=Math.floor(y*d/m+a)*v,E=hc();return!!E&&E<=87&&r===2&&d>=224e3&&l===0&&(n[e+3]=n[e+3]|128),{sampleRate:m,channelCount:p,frameLength:b,samplesPerFrame:x}}}function t8(n,e){return n[e]===255&&(n[e+1]&224)===224&&(n[e+1]&6)!==0}function gS(n,e){return e+1<n.length&&t8(n,e)}function UF(n,e){return t8(n,e)&&4<=n.length-e}function yS(n,e){if(e+1<n.length&&t8(n,e)){const r=pS(n,e);let s=4;r!=null&&r.frameLength&&(s=r.frameLength);const i=e+s;return i===n.length||gS(n,i)}return!1}class vS{constructor(e,t,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new Wp(t,!0)}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,$i.cbc,{start:0,end:e.byteLength})}decryptAacSample(e,t,r){const s=e[t].unit;if(s.length<=16)return;const i=s.subarray(16,s.length-s.length%16),a=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(a).then(l=>{const u=new Uint8Array(l);s.set(u,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,r)}).catch(r)}decryptAacSamples(e,t,r){for(;;t++){if(t>=e.length){r();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,r),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,r=new Int8Array(t);let s=0;for(let i=32;i<e.length-16;i+=160,s+=16)r.set(e.subarray(i,i+16),s);return r}getAvcDecryptedUnit(e,t){const r=new Uint8Array(t);let s=0;for(let i=32;i<e.length-16;i+=160,s+=16)e.set(r.subarray(s,s+16),i);return e}decryptAvcSample(e,t,r,s,i){const a=kb(i.data),l=this.getAvcEncryptedData(a);this.decryptBuffer(l.buffer).then(u=>{i.data=this.getAvcDecryptedUnit(a,u),this.decrypter.isSync()||this.decryptAvcSamples(e,t,r+1,s)}).catch(s)}decryptAvcSamples(e,t,r,s){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,r=0){if(t>=e.length){s();return}const i=e[t].units;for(;!(r>=i.length);r++){const a=i[r];if(!(a.data.length<=48||a.type!==1&&a.type!==5)&&(this.decryptAvcSample(e,t,r,s,a),!this.decrypter.isSync()))return}}}}class VF extends e8{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.sampleAes=null,this.observer=e,this.config=t}resetInitSegment(e,t,r,s){super.resetInitSegment(e,t,r,s),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:s,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const r=Oc(e,0);let s=(r==null?void 0:r.length)||0;if(yS(e,s))return!1;for(let i=e.length;s<i;s++)if(OF(e,s))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return _F(e,t)}appendFrame(e,t,r){dS(e,this.observer,t,r,e.manifestCodec);const s=hS(e,t,r,this.basePTS,this.frameIndex);if((s==null?void 0:s.missing)===0)return s}demuxSampleAes(e,t,r){const s=this.demux(e,r),i=this.sampleAes=new vS(this.observer,this.config,t);return new Promise(a=>{i.decryptAacSamples(s.audioTrack.samples,0,()=>{a(s)})})}}const xS=(n,e)=>{let t=0,r=5;e+=r;const s=new Uint32Array(1),i=new Uint32Array(1),a=new Uint8Array(1);for(;r>0;){a[0]=n[e];const l=Math.min(r,8),u=8-l;i[0]=4278190080>>>24+u<<u,s[0]=(a[0]&i[0])>>u,t=t?t<<l|s[0]:s[0],e+=1,r-=l}return t};class zF extends e8{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,r,s){super.resetInitSegment(e,t,r,s),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:s,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,r){const s=CS(e,t,r,this.basePTS,this.frameIndex);if(s!==-1)return{sample:e.samples[e.samples.length-1],length:s,missing:0}}static probe(e){if(!e)return!1;const t=Oc(e,0);if(!t)return!1;const r=t.length;if(e[r]===11&&e[r+1]===119&&Vp(t)!==void 0){if(xS(e,r)<16)return!0;throw new Error("Containerless ec-3 is not supported")}return!1}}function CS(n,e,t,r,s){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const i=e[t+4]>>6;if(i>=3)return-1;const l=[48e3,44100,32e3][i],u=e[t+4]&63,f=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][u*3+i]*2;if(t+f>e.length)return-1;const m=e[t+6]>>5;let p=0;m===2?p+=2:(m&1&&m!==1&&(p+=2),m&4&&(p+=2));const y=(e[t+6]<<8|e[t+7])>>12-p&1,x=[2,1,2,3,3,4,4,5][m]+y,b=e[t+5]>>3,E=e[t+5]&7,T=new Uint8Array([i<<6|b<<1|E>>2,(E&3)<<6|m<<3|y<<2|u>>4,u<<4&224]),w=1536/l*9e4,R=r+s*w,I=e.subarray(t,t+f);return n.config=T,n.channelCount=x,n.samplerate=l,n.samples.push({unit:I,pts:R}),f}class GF extends e8{resetInitSegment(e,t,r,s){super.resetInitSegment(e,t,r,s),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:s,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=Oc(e,0);let r=(t==null?void 0:t.length)||0;if(t&&e[r]===11&&e[r+1]===119&&Vp(t)!==void 0&&xS(e,r)<=16)return!1;for(let s=e.length;r<s;r++)if(yS(e,r))return Ot.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return UF(e,t)}appendFrame(e,t,r){if(this.basePTS!==null)return mS(e,t,r,this.basePTS,this.frameIndex)}}const HF=/\/emsg[-/]ID3/i;class WF{constructor(e,t,r,s=Ot){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.initData=void 0,this.logger=void 0,this.config=t,this.logger=s}resetTimeStamp(){}resetInitSegment(e,t,r,s){const i=this.videoTrack=ys("video",1),a=this.audioTrack=ys("audio",1),l=this.txtTrack=ys("text",1);if(this.id3Track=ys("id3",1),this.initData=void 0,this.timeOffset=0,!(e!=null&&e.byteLength))return;const u=this.initData=Ib(e);if(u.video){const{id:d,timescale:f,codec:m,supplemental:p}=u.video;i.id=d,i.timescale=l.timescale=f,i.codec=m,i.supplemental=p}if(u.audio){const{id:d,timescale:f,codec:m}=u.audio;a.id=d,a.timescale=f,a.codec=m}l.id=Sb.text,i.sampleDuration=0,i.duration=a.duration=s}resetContiguity(){this.remainderData=null}static probe(e){return Xj(e,"moof")}demux(e,t,r){this.timeOffset=t;let s=e;const i=this.videoTrack,a=this.txtTrack;if(this.config.progressive){this.remainderData&&(s=_r(this.remainderData,e));const d=aM(s);this.remainderData=d.remainder,i.samples=d.valid||new Uint8Array}else i.samples=s;const l=this.extractID3Track(i,t),u=this.parseFragment(i,a,t,r);return{videoTrack:i,audioTrack:this.audioTrack,id3Track:l,textTrack:this.txtTrack,initData:this.initData,sampleData:u}}flush(e,t){const r=this.timeOffset,s=this.videoTrack,i=this.txtTrack;s.samples=this.remainderData||new Uint8Array,this.remainderData=null;const a=this.extractID3Track(s,this.timeOffset),l=this.parseFragment(s,i,r,t);return{videoTrack:s,audioTrack:ys(),id3Track:a,textTrack:ys(),initData:this.initData,sampleData:l}}parseFragment(e,t,r,s){const i=this.initData;if(i&&s){const{samples:a,sampleData:l}=iM(r,e,i,this.logger,s.iframe);return t.samples=a,l}t.samples=oM(r,e)}extractID3Track(e,t){const r=this.id3Track;if(e.samples.length){const s=yt(e.samples,["emsg"]);s&&s.forEach(i=>{const a=lM(i);if(HF.test(a.schemeIdUri)){const l=Y9(a,t);let u=a.eventDuration===4294967295?Number.POSITIVE_INFINITY:a.eventDuration/a.timeScale;u<=.001&&(u=Number.POSITIVE_INFINITY);const d=a.payload;r.samples.push({data:d,len:d.byteLength,dts:l,pts:l,type:Kn.emsg,duration:u})}else if(this.config.enableEmsgKLVMetadata){const l=this.config.emsgKLVSchemaUri||Kn.misbklv;if(a.schemeIdUri.startsWith(l)){const u=Y9(a,t);r.samples.push({data:a.payload,len:a.payload.byteLength,dts:u,pts:u,type:Kn.misbklv,duration:Number.POSITIVE_INFINITY})}}})}return r}demuxSampleAes(e,t,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0,this.initData=void 0}}function Y9(n,e){return ze(n.presentationTime)?n.presentationTime/n.timeScale:e+n.presentationTimeDelta/n.timeScale}const KF=1,qF=2,Ql=-1;class bS{constructor(){this.VideoSample=null}createVideoSample(e,t,r){return{key:e,frame:!1,pts:t,dts:r,units:[],length:0}}getLastNalUnit(e){var t;let r=this.VideoSample,s;if((!r||r.units.length===0)&&(r=e[e.length-1]),(t=r)!=null&&t.units){const i=r.units;s=i[i.length-1]}return s}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const r=t.samples,s=r.length;if(s){const i=r[s-1];e.pts=i.pts,e.dts=i.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,r){const s=t.byteLength;if(s===0)return[];const i=e.naluState||0,a=i===Ql?0:i,l=[];let u=0,d=0,f=-1,m=0;for(i===Ql&&(f=0,m=this.getNALuType(t,0),d=1);d<s;){const p=t.indexOf(KF,d);if(p===-1)break;d=p+1;let y=p;for(;y>0&&t[y-1]===0;)y--;if(!(p-y+(y===0?a:0)<qF)){if(f>=0)l.push({data:t.subarray(f,y),type:m});else{const x=this.getLastNalUnit(e.samples);x&&(y>0?x.data=_r(x.data,t.subarray(0,y)):a>0&&(x.data=x.data.subarray(0,x.data.byteLength-a)),x.state=0)}if(d<s)f=d,m=this.getNALuType(t,d);else{u=Ql,f=-1;break}}}if(u!==Ql){let p=s;for(;p>0&&t[p-1]===0;)p--;u=s-p+(p===0?a:0)}if(f>=0)l.push({data:t.subarray(f),type:m,state:u});else if(l.length===0&&u!==Ql){const p=this.getLastNalUnit(e.samples);p&&(p.data=_r(p.data,t),p.state=u)}return e.naluState=u,l}}class gc{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,r=e.byteLength-t,s=new Uint8Array(4),i=Math.min(4,t);if(i===0)throw new Error("no bytes available");s.set(e.subarray(r,r+i)),this.word=new DataView(s.buffer).getUint32(0),this.bitsAvailable=i*8,this.bytesAvailable-=i}skipBits(e){let t;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const r=this.word>>>32-t;if(e>32&&Ot.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?r<<t|this.readBits(t):r}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if((this.word&2147483648>>>e)!==0)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}}class YF extends bS{parsePES(e,t,r,s,i){const a=i.iframe,l=this.parseNALu(e,r.data,s);let u=this.VideoSample,d,f=!1;r.data=null,u&&l.length&&!e.audFound&&(this.pushAccessUnit(u,e),u=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),l.forEach(m=>{var p,y;switch(m.type){case 1:{if(a)break;let E=!1;d=!0;const T=m.data;if(f&&T.length>4){const w=this.readSliceType(T);(w===2||w===4||w===7||w===9)&&(E=!0)}if(E){var v;(v=u)!=null&&v.frame&&!u.key&&(this.pushAccessUnit(u,e),u=this.VideoSample=null)}u||(u=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),u.frame=!0,u.key=E;break}case 5:d=!0,(p=u)!=null&&p.frame&&!u.key&&(this.pushAccessUnit(u,e),u=this.VideoSample=null),u||(u=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),u.key=!0,u.frame=!0;break;case 6:{if(a)break;d=!0,Dc(m.data,1,r.pts,t.samples);break}case 7:{var x,b;d=!0,f=!0;const E=m.data,T=this.readSPS(E);if(!e.sps||e.width!==T.width||e.height!==T.height||((x=e.pixelRatio)==null?void 0:x[0])!==T.pixelRatio[0]||((b=e.pixelRatio)==null?void 0:b[1])!==T.pixelRatio[1]){e.width=T.width,e.height=T.height,e.pixelRatio=T.pixelRatio,e.sps=[E];const w=E.subarray(1,4);let R="avc1.";for(let I=0;I<3;I++){let L=w[I].toString(16);L.length<2&&(L="0"+L),R+=L}e.codec=R}break}case 8:d=!0,e.pps=[m.data];break;case 9:d=!0,e.audFound=!0,(y=u)!=null&&y.frame&&(this.pushAccessUnit(u,e),u=null),u||(u=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;case 12:d=!0;break;default:d=!1;break}u&&d&&u.units.push(m)}),s&&u&&(this.pushAccessUnit(u,e),this.VideoSample=null)}getNALuType(e,t){return e[t]&31}readSliceType(e){const t=new gc(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let r=8,s=8,i;for(let a=0;a<e;a++)s!==0&&(i=t.readEG(),s=(r+i+256)%256),r=s===0?r:s}readSPS(e){const t=new gc(e);let r=0,s=0,i=0,a=0,l,u,d;const f=t.readUByte.bind(t),m=t.readBits.bind(t),p=t.readUEG.bind(t),y=t.readBoolean.bind(t),v=t.skipBits.bind(t),x=t.skipEG.bind(t),b=t.skipUEG.bind(t),E=this.skipScalingList.bind(this);f();const T=f();if(m(5),v(3),f(),b(),T===100||T===110||T===122||T===244||T===44||T===83||T===86||T===118||T===128){const _=p();if(_===3&&v(1),b(),b(),v(1),y())for(u=_!==3?8:12,d=0;d<u;d++)y()&&(d<6?E(16,t):E(64,t))}b();const w=p();if(w===0)p();else if(w===1)for(v(1),x(),x(),l=p(),d=0;d<l;d++)x();b(),v(1);const R=p(),I=p(),L=m(1);L===0&&v(1),v(1),y()&&(r=p(),s=p(),i=p(),a=p());let N=[1,1];if(y()&&y())switch(f()){case 1:N=[1,1];break;case 2:N=[12,11];break;case 3:N=[10,11];break;case 4:N=[16,11];break;case 5:N=[40,33];break;case 6:N=[24,11];break;case 7:N=[20,11];break;case 8:N=[32,11];break;case 9:N=[80,33];break;case 10:N=[18,11];break;case 11:N=[15,11];break;case 12:N=[64,33];break;case 13:N=[160,99];break;case 14:N=[4,3];break;case 15:N=[3,2];break;case 16:N=[2,1];break;case 255:{N=[f()<<8|f(),f()<<8|f()];break}}return{width:Math.ceil((R+1)*16-r*2-s*2),height:(2-L)*(I+1)*16-(L?2:4)*(i+a),pixelRatio:N}}}class XF extends bS{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,r,s){const i=this.parseNALu(e,r.data,s);let a=this.VideoSample,l,u=!1;r.data=null;const d=f=>(a=this.VideoSample=this.createVideoSample(f,r.pts,r.dts),a);i.forEach((f,m)=>{var p,y;if(this.startsNewAccessUnit(a,e,f,m)){this.pushAccessUnit(a,e);const x=f.type>=16&&f.type<=23;a=d(x),u=!1}switch(f.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:a||(a=d(!1)),a.frame=!0,l=!0;break;case 16:case 17:case 18:case 21:case 22:case 23:if(l=!0,u){var v;(v=a)!=null&&v.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null)}a||(a=d(!0)),a.key=!0,a.frame=!0;break;case 19:case 20:l=!0,(p=a)!=null&&p.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null),a||(a=d(!0)),a.key=!0,a.frame=!0;break;case 39:l=!0,Dc(f.data,2,r.pts,t.samples);break;case 32:l=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=Vt(e.params,this.readVPS(f.data)),this.initVPS=f.data),e.vps=[f.data];break;case 33:if(l=!0,u=!0,e.vps!==void 0&&e.vps[0]!==this.initVPS&&e.sps!==void 0&&!this.matchSPS(e.sps[0],f.data)&&(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const x=this.readSPS(f.data);e.width=x.width,e.height=x.height,e.pixelRatio=x.pixelRatio,e.codec=x.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const b in x.params)e.params[b]=x.params[b]}this.pushParameterSet(e.sps,f.data,e.vps),a||(a=d(!1));break;case 34:if(l=!0,typeof e.params=="object"){if(!e.pps){e.pps=[];const x=this.readPPS(f.data);for(const b in x)e.params[b]=x[b]}this.pushParameterSet(e.pps,f.data,e.vps)}break;case 35:l=!0,e.audFound=!0,(y=a)!=null&&y.frame&&(this.pushAccessUnit(a,e),a=null),a||(a=d(!1));break;default:l=!1;break}a&&l&&a.units.push(f)}),s&&a&&(this.pushAccessUnit(a,e),this.VideoSample=null)}pushParameterSet(e,t,r){(r&&r[0]===this.initVPS||!r&&!e.length)&&e.push(t)}startsNewAccessUnit(e,t,r,s){if(!e)return!1;if(!t.audFound&&s===0)return!0;if(!e.frame)return!1;const{type:i,data:a}=r;return i>=32&&i<=35||i===39||i>=41&&i<=44||i>=48&&i<=55?!0:i<=31&&a.length>2&&(a[2]&128)!==0}getNALuType(e,t){return(e[t]&126)>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let r=0;for(let s=0;s<e.byteLength;s++)s>=2&&e[s]===3&&e[s-1]===0&&e[s-2]===0||(t[r]=e[s],r++);return new Uint8Array(t.buffer,0,r)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new gc(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);const r=t.readBits(3),s=t.readBoolean();return{numTemporalLayers:r+1,temporalIdNested:s}}readSPS(e){const t=new gc(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const r=t.readBits(3);t.readBoolean();const s=t.readBits(2),i=t.readBoolean(),a=t.readBits(5),l=t.readUByte(),u=t.readUByte(),d=t.readUByte(),f=t.readUByte(),m=t.readUByte(),p=t.readUByte(),y=t.readUByte(),v=t.readUByte(),x=t.readUByte(),b=t.readUByte(),E=t.readUByte(),T=[],w=[];for(let ke=0;ke<r;ke++)T.push(t.readBoolean()),w.push(t.readBoolean());if(r>0)for(let ke=r;ke<8;ke++)t.readBits(2);for(let ke=0;ke<r;ke++)T[ke]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),w[ke]&&t.readUByte();t.readUEG();const R=t.readUEG();R==3&&t.skipBits(1);const I=t.readUEG(),L=t.readUEG(),N=t.readBoolean();let _=0,j=0,F=0,$=0;N&&(_+=t.readUEG(),j+=t.readUEG(),F+=t.readUEG(),$+=t.readUEG());const z=t.readUEG(),W=t.readUEG(),J=t.readUEG(),oe=t.readBoolean();for(let ke=oe?0:r;ke<=r;ke++)t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.readBoolean()&&t.readBoolean())for(let Ge=0;Ge<4;Ge++)for(let K=0;K<(Ge===3?2:6);K++)if(!t.readBoolean())t.readUEG();else{const ae=Math.min(64,1<<4+(Ge<<1));Ge>1&&t.readEG();for(let P=0;P<ae;P++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const X=t.readUEG();let ue=0;for(let ke=0;ke<X;ke++){let Ge=!1;if(ke!==0&&(Ge=t.readBoolean()),Ge){ke===X&&t.readUEG(),t.readBoolean(),t.readUEG();let K=0;for(let ne=0;ne<=ue;ne++){const ae=t.readBoolean();let P=!1;ae||(P=t.readBoolean()),(ae||P)&&K++}ue=K}else{const K=t.readUEG(),ne=t.readUEG();ue=K+ne;for(let ae=0;ae<K;ae++)t.readUEG(),t.readBoolean();for(let ae=0;ae<ne;ae++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const ke=t.readUEG();for(let Ge=0;Ge<ke;Ge++){for(let K=0;K<J+4;K++)t.readBits(1);t.readBits(1)}}let G=0,ee=1,Ee=1,Ce=!0,Ae=1,me=0;t.readBoolean(),t.readBoolean();let ve=!1;if(t.readBoolean()){if(t.readBoolean()){const D=t.readUByte(),B=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],V=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];D>0&&D<16?(ee=B[D-1],Ee=V[D-1]):D===255&&(ee=t.readBits(16),Ee=t.readBits(16))}if(t.readBoolean()&&t.readBoolean(),t.readBoolean()&&(t.readBits(3),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())),t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),ve=t.readBoolean(),ve&&(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG()),t.readBoolean()&&(Ae=t.readBits(32),me=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const V=t.readBoolean(),Y=t.readBoolean();let H=!1;(V||Y)&&(H=t.readBoolean(),H&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),H&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let q=0;q<=r;q++){Ce=t.readBoolean();const re=Ce||t.readBoolean();let ce=!1;re?t.readEG():ce=t.readBoolean();const be=ce?1:t.readUEG()+1;if(V)for(let Re=0;Re<be;Re++)t.readUEG(),t.readUEG(),H&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(Y)for(let Re=0;Re<be;Re++)t.readUEG(),t.readUEG(),H&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),G=t.readUEG())}let ge=I,le=L;if(N){let ke=1,Ge=1;R===1?ke=Ge=2:R==2&&(ke=2),ge=I-ke*j-ke*_,le=L-Ge*$-Ge*F}const pe=s?["A","B","C"][s]:"",Ie=l<<24|u<<16|d<<8|f;let Ne=0;for(let ke=0;ke<32;ke++)Ne=(Ne|(Ie>>ke&1)<<31-ke)>>>0;let Fe=Ne.toString(16);return a===1&&Fe==="2"&&(Fe="6"),{codecString:`hvc1.${pe}${a}.${Fe}.${i?"H":"L"}${E}.B0`,params:{general_tier_flag:i,general_profile_idc:a,general_profile_space:s,general_profile_compatibility_flags:[l,u,d,f],general_constraint_indicator_flags:[m,p,y,v,x,b],general_level_idc:E,bit_depth:z+8,bit_depth_luma_minus8:z,bit_depth_chroma_minus8:W,min_spatial_segmentation_idc:G,chroma_format_idc:R,frame_rate:{fixed:Ce,fps:me/Ae}},width:ge,height:le,pixelRatio:[ee,Ee]}}readPPS(e){const t=new gc(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2),t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);const s=t.readBoolean(),i=t.readBoolean();let a=1;return i&&s?a=0:i?a=3:s&&(a=2),{parallelismType:a}}matchSPS(e,t){return Zr(e).substring(3)===Zr(t).substring(3)}}const yn=188;class Vs{constructor(e,t,r,s){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this._klvPid=-1,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.videoIntegrityChecker=null,this.observer=e,this.config=t,this.typeSupported=r,this.logger=s,this.videoParser=null}static probe(e,t){const r=Vs.syncOffset(e);return r>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${r}`),r!==-1}static syncOffset(e){const t=e.length;let r=Math.min(yn*5,t-yn)+1,s=0;for(;s<r;){let i=!1,a=-1,l=0;for(let u=s;u<t;u+=yn)if(e[u]===71&&(t-u===yn||e[u+yn]===71)){if(l++,a===-1&&(a=u,a!==0&&(r=Math.min(a+yn*99,e.length-yn)+1)),i||(i=mf(e,u)===0),i&&l>1&&(a===0&&l>2||u+yn>r))return a}else{if(l)return-1;break}s++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:Sb[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,r,s,i,a){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=Vs.createTrack("video"),this._videoTrack.duration=s,this.videoIntegrityChecker=this.config.handleMpegTsVideoIntegrityErrors==="skip"?new JF(this.logger):null,this._audioTrack=Vs.createTrack("audio",s),this._id3Track=Vs.createTrack("id3"),this._txtTrack=Vs.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=r,e&&this.demux(e,0,a,(i==null?void 0:i.method)==="SAMPLE-AES")}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:r}=this;e&&(e.pesData=null),t&&(t.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,r,s=!1,i=!1){s||(this.sampleAes=null);let a;const l=this._videoTrack,u=this.videoIntegrityChecker,d=this._audioTrack,f=this._id3Track,m=this._txtTrack,p=r.iframe;let y=l.pid,v=l.pesData,x=d.pid,b=f.pid,E=this._klvPid,T=d.pesData,w=f.pesData,R=null,I=null,L=this.pmtParsed,N=this._pmtId,_=e.length;if(this.remainderData&&(e=_r(this.remainderData,e),_=e.length,this.remainderData=null),_<yn&&!i)return this.remainderData=e,{audioTrack:d,videoTrack:l,id3Track:f,textTrack:m};const j=Math.max(0,Vs.syncOffset(e));_-=(_-j)%yn,_<e.byteLength&&!i&&(this.remainderData=new Uint8Array(e.buffer,_,e.buffer.byteLength-_));let F=0;for(let z=j;z<_;z+=yn)if(e[z]===71){const W=!!(e[z+1]&64),J=mf(e,z),oe=(e[z+3]&48)>>4;let ie;if(oe>1){if(ie=z+5+e[z+4],ie===z+yn)continue}else ie=z+4;switch(J){case y:W&&(v&&!(u!=null&&u.isCorrupted)&&(a=ca(v,this.logger))&&(this.readyVideoParser(l.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(l,m,a,!1,r)),v={data:[],size:0},u==null||u.reset(y)),u==null||u.handlePacket(e.subarray(z)),v&&(v.data.push(e.subarray(ie,z+yn)),v.size+=z+yn-ie);break;case x:if(p)break;if(W){if(T&&(a=ca(T,this.logger)))switch(d.segmentCodec){case"aac":this.parseAACPES(d,a,r);break;case"mp3":this.parseMPEGPES(d,a);break;case"ac3":this.parseAC3PES(d,a);break}T={data:[],size:0}}T&&(T.data.push(e.subarray(ie,z+yn)),T.size+=z+yn-ie);break;case b:if(p)break;W&&(w&&(a=ca(w,this.logger))&&this.parseID3PES(f,a),w={data:[],size:0}),w&&(w.data.push(e.subarray(ie,z+yn)),w.size+=z+yn-ie);break;case E:if(p)break;W&&(R&&(a=ca(R,this.logger))&&this.parseKlvPES(f,a),R={data:[],size:0}),R&&(R.data.push(e.subarray(ie,z+yn)),R.size+=z+yn-ie);break;case 0:W&&(ie+=e[ie]+1),N=this._pmtId=ZF(e,ie);break;case N:{W&&(ie+=e[ie]+1);const Z=QF(e,ie,this.typeSupported,s,this.observer,this.logger,this.config,r);y=Z.videoPid,y>0&&(l.pid=y,l.segmentCodec=Z.segmentVideoCodec),x=Z.audioPid,x>0&&(d.pid=x,d.segmentCodec=Z.segmentAudioCodec),b=Z.id3Pid,b>0&&(f.pid=b),E=Z.klvPid,E>0&&(this._klvPid=E),I!==null&&!L&&(this.logger.warn(`MPEG-TS PMT found at ${z} after unknown PID '${I}'. Backtracking to sync byte @${j} to parse all TS packets.`),I=null,z=j-188),L=this.pmtParsed=!0;break}case 17:case 8191:break;default:I=J;break}}else F++;F>0&&qm(this.observer,new Error(`Found ${F} TS packet/s that do not start with 0x47`),r,void 0,this.logger),l.pesData=v,d.pesData=T,f.pesData=w;const $={audioTrack:d,videoTrack:l,id3Track:f,textTrack:m};return i&&this.extractRemainingSamples($,r),$}flush(e,t){const{remainderData:r}=this;this.remainderData=null;let s;return r?s=this.demux(r,0,t,!1,!0):s={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(s,t),this.sampleAes?this.decrypt(s,this.sampleAes):s}extractRemainingSamples(e,t){const{audioTrack:r,videoTrack:s,id3Track:i,textTrack:a}=e,l=s.pesData,u=r.pesData,d=i.pesData,f=this.videoIntegrityChecker;let m;if(l&&!(f!=null&&f.isCorrupted)&&(m=ca(l,this.logger))?(this.readyVideoParser(s.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(s,a,m,!0,t),s.pesData=null)):s.pesData=l,u&&(m=ca(u,this.logger))){switch(r.segmentCodec){case"aac":this.parseAACPES(r,m,t);break;case"mp3":this.parseMPEGPES(r,m);break;case"ac3":this.parseAC3PES(r,m);break}r.pesData=null}else u!=null&&u.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),r.pesData=u;d&&(m=ca(d,this.logger))?(this.parseID3PES(i,m),i.pesData=null):i.pesData=d}demuxSampleAes(e,t,r,s){const i=this.demux(e,r,s,!0,!this.config.progressive),a=this.sampleAes=new vS(this.observer,this.config,t);return this.decrypt(i,a)}readyVideoParser(e){this.videoParser===null&&(e==="avc"?this.videoParser=new YF:e==="hevc"&&(this.videoParser=new XF))}decrypt(e,t){return new Promise(r=>{const{audioTrack:s,videoTrack:i}=e;s.samples&&s.segmentCodec==="aac"?t.decryptAacSamples(s.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{r(e)}):r(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{r(e)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0,this.videoIntegrityChecker=null}parseAACPES(e,t,r){let s=0;const i=this.aacOverFlow;let a=t.data;if(i){this.aacOverFlow=null;const p=i.missing,y=i.sample.unit.byteLength;if(p===-1)a=_r(i.sample.unit,a);else{const v=y-p;i.sample.unit.set(a.subarray(0,p),v),e.samples.push(i.sample),s=i.missing}}let l,u;for(l=s,u=a.length;l<u-1&&!hf(a,l);l++);if(l!==s){let p;const y=l<u-1;if(y?p=`AAC PES did not start with ADTS header,offset:${l}`:p="No ADTS header found in AAC PES",qm(this.observer,new Error(p),r,y,this.logger),!y)return}dS(e,this.observer,a,l,this.audioCodec);let d;if(t.pts!==void 0)d=t.pts;else if(i){const p=fS(e.samplerate);d=i.sample.pts+p}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let f=0,m;for(;l<u;)if(m=hS(e,a,l,d,f),l+=m.length,m.missing){this.aacOverFlow=m;break}else for(f++;l<u-1&&!hf(a,l);l++);}parseMPEGPES(e,t){const r=t.data,s=r.length;let i=0,a=0;const l=t.pts;if(l===void 0){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;a<s;)if(gS(r,a)){const u=mS(e,r,a,l,i);if(u)a+=u.length,i++;else break}else a++}parseAC3PES(e,t){{const r=t.data,s=t.pts;if(s===void 0){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=r.length;let a=0,l=0,u;for(;l<i&&(u=CS(e,r,l,s,a++))>0;)l+=u}}parseID3PES(e,t){if(t.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=Vt({},t,{type:this._videoTrack?Kn.emsg:Kn.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(r)}parseKlvPES(e,t){var r;const s=(r=t.pts)!=null?r:t.dts;if(s===void 0){this.logger.warn("[tsdemuxer]: KLV PES unknown PTS and DTS");return}const i=t.data;if(i.length<16){this.logger.warn("[tsdemuxer]: KLV PES payload too short");return}let a=0;for(;a<i.length;){var l;if(a+16>i.length)break;const u=a;if(a+=16,a>=i.length)break;const d=i[a];a+=1;let f=0;if(d&128){const v=d&127;if(v===0||v>4||a+v>i.length){this.logger.warn("[tsdemuxer]: Invalid KLV length encoding");break}for(let x=0;x<v;x++)f=f<<8|i[a+x];a+=v}else f=d;if(a+f>i.length){this.logger.warn("[tsdemuxer]: KLV value extends beyond PES payload");break}const m=a+f,p=i.subarray(u,m),y={data:p,len:p.byteLength,pts:s,dts:(l=t.dts)!=null?l:s,type:Kn.misbklv,duration:Number.POSITIVE_INFINITY};e.samples.push(y),a=m}}}function mf(n,e){return((n[e+1]&31)<<8)+n[e+2]}function ZF(n,e){return(n[e+10]&31)<<8|n[e+11]}function QF(n,e,t,r,s,i,a,l){const u={audioPid:-1,videoPid:-1,id3Pid:-1,klvPid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},d=(n[e+1]&15)<<8|n[e+2],f=e+3+d-4,m=(n[e+10]&15)<<8|n[e+11];for(e+=12+m;e<f;){const p=mf(n,e),y=(n[e+3]&15)<<8|n[e+4];switch(n[e]){case 207:if(!r){_0("ADTS AAC",i);break}case 15:u.audioPid===-1&&(u.audioPid=p);break;case 21:u.id3Pid===-1&&(u.id3Pid=p);break;case 219:if(!r){_0("H.264",i);break}case 27:u.videoPid===-1&&(u.videoPid=p);break;case 3:case 4:!t.mpeg&&!t.mp3?i.log("MPEG audio found, not supported in this browser"):u.audioPid===-1&&(u.audioPid=p,u.segmentAudioCodec="mp3");break;case 193:if(!r){_0("AC-3",i);break}case 129:t.ac3?u.audioPid===-1&&(u.audioPid=p,u.segmentAudioCodec="ac3"):i.log("AC-3 audio found, not supported in this browser");break;case 6:if(y>0){let v=e+5,x=y;for(;x>2;){switch(n[v]){case 106:u.audioPid===-1&&(t.ac3!==!0?i.log("AC-3 audio found, not supported in this browser for now"):(u.audioPid=p,u.segmentAudioCodec="ac3"));break;case 5:u.klvPid===-1&&a.enableEmsgKLVMetadata&&(u.klvPid=p,i.log(`KLV metadata PID found: ${p}`));break}const E=n[v+1]+2;v+=E,x-=E}}break;case 194:case 135:return qm(s,new Error("Unsupported EC-3 in M2TS found"),l,void 0,i),u;case 36:u.videoPid===-1&&(u.videoPid=p,u.segmentVideoCodec="hevc",i.log("HEVC in M2TS found"));break}e+=y+5}return u}function qm(n,e,t,r,s){s.warn(`parsing error: ${e.message}`),n.emit(M.ERROR,M.ERROR,{type:nt.MEDIA_ERROR,details:ye.FRAG_PARSING_ERROR,fatal:!1,levelRetry:r,chunkMeta:t,error:e,reason:e.message})}function _0(n,e){e.log(`${n} with AES-128-CBC encryption found in unencrypted stream`)}function ca(n,e){let t=0,r,s,i,a,l;const u=n.data;if(!n||n.size===0)return null;for(;u[0].length<19&&u.length>1;)u[0]=_r(u[0],u[1]),u.splice(1,1);if(r=u[0],(r[0]<<16)+(r[1]<<8)+r[2]===1){if(s=(r[4]<<8)+r[5],s&&s>n.size-6)return null;const f=r[7];f&192&&(a=(r[9]&14)*536870912+(r[10]&255)*4194304+(r[11]&254)*16384+(r[12]&255)*128+(r[13]&254)/2,f&64?(l=(r[14]&14)*536870912+(r[15]&255)*4194304+(r[16]&254)*16384+(r[17]&255)*128+(r[18]&254)/2,a-l>60*9e4&&(e.warn(`${Math.round((a-l)/9e4)}s delta between PTS and DTS, align them`),a=l)):l=a),i=r[8];let m=i+9;if(n.size<=m)return null;n.size-=m;const p=new Uint8Array(n.size);for(let y=0,v=u.length;y<v;y++){r=u[y];let x=r.byteLength;if(m)if(m>x){m-=x;continue}else r=r.subarray(m),x-=m,m=0;p.set(r,t),t+=x}return s&&(s-=i+3),{data:p,pts:a,dts:l,len:s}}return null}class JF{constructor(e){this.logger=void 0,this.pid=0,this.lastContinuityCounter=-1,this.integrityState="ok",this.logger=e}get isCorrupted(){return this.integrityState!=="ok"}reset(e){this.pid=e,this.lastContinuityCounter=-1,this.integrityState="ok"}handlePacket(e){if(e.byteLength<4)return;const t=mf(e,0);if(t!==this.pid){this.logger.debug(`Packet PID mismatch, expected ${this.pid} got ${t}`);return}const r=(e[3]&48)>>4;if(r===0)return;const s=e[3]&15,i=this.lastContinuityCounter;this.lastContinuityCounter=s;const a=(r&1)!=0;if((r&2)!=0&&e[4]!=0&&(e[5]&128)!=0||i<0)return;const d=a?i+1&15:i;if(s!==d){this.logger.warn(`MPEG-TS Continuity Counter check failed for PID='${t}', CC=${s}, Expected-CC=${d} Last-CC=${i}`),this.integrityState="cc-failed";return}if((e[1]&128)!==0){this.logger.warn(`MPEG-TS Packet had TEI flag set for PID='${t}'`),this.integrityState="tei-bit";return}}}class e${static getSilentFrame(e,t){switch(e){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}var pf;const t$={video:new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),audio:new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0])},O0=new Uint8Array([0,0,0,0,0,0,0,0]),n$=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),r$=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),s$=new Uint8Array([0,0,0,0,0,0,0,0]),Jl=new Uint8Array([0,0,0,0,0,0,0,1]),X9=new Uint8Array([105,115,111,109]),i$=new Uint8Array([97,118,99,49]),a$=new Uint8Array([0,0,0,1]);class He{static box(e,...t){let r=8,s=t.length;const i=s;for(;s--;)r+=t[s].byteLength;const a=new Uint8Array(r);for(pn(a,0,r),pn(a,4,e),s=0,r=8;s<i;s++)a.set(t[s],r),r+=t[s].byteLength;return a}static hdlr(e){return He.box(gt.hdlr,t$[e])}static mdat(e){return He.box(gt.mdat,e)}static mdhd(e,t){t*=e;const r=Math.floor(t/(hs+1)),s=Math.floor(t%(hs+1));return He.box(gt.mdhd,new Uint8Array([1,0,0,0,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,r>>24,r>>16&255,r>>8&255,r&255,s>>24,s>>16&255,s>>8&255,s&255,85,196,0,0]))}static mdia(e){return He.box(gt.mdia,He.mdhd(e.timescale||0,e.duration||0),He.hdlr(e.type),He.minf(e))}static mfhd(e){return He.box(gt.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255]))}static minf(e){return e.type==="audio"?He.box(gt.minf,He.box(gt.smhd,s$),He.DINF,He.stbl(e)):He.box(gt.minf,He.box(gt.vmhd,r$),He.DINF,He.stbl(e))}static moof(e,t,r){return He.box(gt.moof,He.mfhd(e),He.traf(r,t))}static moov(e){let t=e.length;const r=[];for(;t--;)r[t]=He.trak(e[t]);return He.box.apply(null,[gt.moov,He.mvhd(e[0].timescale||0,e[0].duration||0)].concat(r).concat(He.mvex(e)))}static mvex(e){let t=e.length;const r=[];for(;t--;)r[t]=He.trex(e[t]);return He.box.apply(null,[gt.mvex,...r])}static mvhd(e,t){t*=e;const r=Math.floor(t/(hs+1)),s=Math.floor(t%(hs+1)),i=new Uint8Array([1,0,0,0,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,r>>24,r>>16&255,r>>8&255,r&255,s>>24,s>>16&255,s>>8&255,s&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 He.box(gt.mvhd,i)}static sdtp(e){const t=e.samples||[],r=new Uint8Array(4+t.length);let s,i;for(s=0;s<t.length;s++)i=t[s].flags,r[s+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return He.box(gt.sdtp,r)}static stbl(e){return He.box(gt.stbl,He.stsd(e),He.box(gt.stts,O0),He.box(gt.stsc,O0),He.box(gt.stsz,n$),He.box(gt.stco,O0))}static avc1(e){let t=[],r=[],s,i,a;for(s=0;s<e.sps.length;s++)i=e.sps[s],a=i.byteLength,t.push(a>>>8&255),t.push(a&255),t=t.concat(Array.prototype.slice.call(i));for(s=0;s<e.pps.length;s++)i=e.pps[s],a=i.byteLength,r.push(a>>>8&255),r.push(a&255),r=r.concat(Array.prototype.slice.call(i));const l=He.box(gt.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(r))),u=e.width,d=e.height,f=e.pixelRatio[0],m=e.pixelRatio[1];return He.box(gt.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,u>>8&255,u&255,d>>8&255,d&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]),l,He.box(gt.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),He.box(gt.pasp,new Uint8Array([f>>24,f>>16&255,f>>8&255,f&255,m>>24,m>>16&255,m>>8&255,m&255])))}static esds(e){const t=e.config,r=t.length;return new Uint8Array([0,0,0,0,3,23+r,0,1,0,4,15+r,64,21,0,0,0,0,0,0,0,0,0,0,0,5,r,...t,6,1,2])}static audioStsd(e){const t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return He.box(gt.mp4a,He.audioStsd(e),He.box(gt.esds,He.esds(e)))}static mp3(e){return He.box(gt[".mp3"],He.audioStsd(e))}static ac3(e){return He.box(gt["ac-3"],He.audioStsd(e),He.box(gt.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return He.box(gt.stsd,Jl,He.mp4a(e));if(t==="ac3"&&e.config)return He.box(gt.stsd,Jl,He.ac3(e));if(t==="mp3"&&e.codec==="mp3")return He.box(gt.stsd,Jl,He.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return He.box(gt.stsd,Jl,He.avc1(e));if(t==="hevc"&&e.vps)return He.box(gt.stsd,Jl,He.hvc1(e))}else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){const t=e.id,r=(e.duration||0)*(e.timescale||0),s=e.width||0,i=e.height||0,a=Math.floor(r/(hs+1)),l=Math.floor(r%(hs+1));return He.box(gt.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255,l>>24,l>>16&255,l>>8&255,l&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,s>>8&255,s&255,0,0,i>>8&255,i&255,0,0]))}static traf(e,t){const r=He.sdtp(e),s=e.id,i=Math.floor(t/(hs+1)),a=Math.floor(t%(hs+1));return He.box(gt.traf,He.box(gt.tfhd,new Uint8Array([0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255])),He.box(gt.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,a>>24,a>>16&255,a>>8&255,a&255])),He.trun(e,r.length+16+20+8+16+8+8),r)}static trak(e){return e.duration=e.duration||4294967295,He.box(gt.trak,He.tkhd(e),He.mdia(e))}static trex(e){const t=e.id;return He.box(gt.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const r=e.samples||[],s=r.length,i=12+16*s,a=new Uint8Array(i);let l,u,d,f,m,p;for(t+=8+i,a.set([e.type==="video"?1:0,0,15,1,s>>>24&255,s>>>16&255,s>>>8&255,s&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),l=0;l<s;l++)u=r[l],d=u.duration,f=u.size,m=u.flags,p=u.cts,a.set([d>>>24&255,d>>>16&255,d>>>8&255,d&255,f>>>24&255,f>>>16&255,f>>>8&255,f&255,m.isLeading<<2|m.dependsOn,m.isDependedOn<<6|m.hasRedundancy<<4|m.paddingValue<<1|m.isNonSync,m.degradPrio&61440,m.degradPrio&15,p>>>24&255,p>>>16&255,p>>>8&255,p&255],12+16*l);return He.box(gt.trun,a)}static initSegment(e){const t=He.moov(e);return _r(He.FTYP,t)}static hvc1(e){const t=e.params,r=[e.vps,e.sps,e.pps],s=4,i=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),s-1|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),r.length]);let a=i.length;for(let v=0;v<r.length;v+=1){a+=3;for(let x=0;x<r[v].length;x+=1)a+=2+r[v][x].length}const l=new Uint8Array(a);l.set(i,0),a=i.length;const u=r.length-1;for(let v=0;v<r.length;v+=1){l.set(new Uint8Array([32+v|(v===u?128:0),0,r[v].length]),a),a+=3;for(let x=0;x<r[v].length;x+=1)l.set(new Uint8Array([r[v][x].length>>8,r[v][x].length&255]),a),a+=2,l.set(r[v][x],a),a+=r[v][x].length}const d=He.box(gt.hvcC,l),f=e.width,m=e.height,p=e.pixelRatio[0],y=e.pixelRatio[1];return He.box(gt.hvc1,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,f>>8&255,f&255,m>>8&255,m&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]),d,He.box(gt.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),He.box(gt.pasp,new Uint8Array([p>>24,p>>16&255,p>>8&255,p&255,y>>24,y>>16&255,y>>8&255,y&255])))}}pf=He;He.FTYP=pf.box(gt.ftyp,X9,a$,X9,i$);He.DINF=pf.box(gt.dinf,pf.box(gt.dref,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1])));const SS=9e4;function n8(n,e,t=1,r=!1){const s=n*e*t;return r?Math.round(s):s}function o$(n,e,t=1,r=!1){return n8(n,e,1/t,r)}function ec(n,e=!1){return n8(n,1e3,1/SS,e)}function l$(n,e=1){return n8(n,SS,1/e)}function Z9(n){const{baseTime:e,timescale:t,trackId:r}=n;return`${e/t} (${e}/${t}) trackId: ${r}`}const c$=10*1e3,u$=1024,d$=1152,f$=1536,Ym=8589934592;function Q9(n,e,t,r){return{duration:e,size:t,cts:r,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:n?2:1,isNonSync:n?0:1,paddingValue:0}}}class $1 extends Sr{constructor(e,t,r,s){super("mp4-remuxer",s),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=r,this.ISGenerated=!1}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){const t=this._initPTS;(!t||!e||e.trackId!==t.trackId||e.baseTime!==t.baseTime||e.timescale!==t.timescale)&&this.log(`Reset initPTS: ${t&&Z9(t)} > ${e&&Z9(e)}`),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.log("ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const r=e[0].pts,s=e.reduce((i,a)=>{let l=a.pts,u=l-i;return u<-4294967296&&(t=!0,l=pr(l,r),u=l-i),u>0?i:l},r);return t&&this.debug("PTS rollover detected"),s}remux(e,t,r,s,i,a,l,u,d){let f,m,p,y,v,x,b=i,E=i;const w=!d.iframe&&e.pid>-1,R=t.pid>-1,I=t.samples.length,L=e.samples.length>0,N=l&&I>0||I>1;if((!w||L)&&(!R||N)||this.ISGenerated||l){if(this.ISGenerated){var j,F,$,z;const ie=this.videoTrackConfig;(ie&&(t.width!==ie.width||t.height!==ie.height||((j=t.pixelRatio)==null?void 0:j[0])!==((F=ie.pixelRatio)==null?void 0:F[0])||(($=t.pixelRatio)==null?void 0:$[1])!==((z=ie.pixelRatio)==null?void 0:z[1]))||!ie&&N||this.nextAudioTs===null&&L)&&this.resetInitSegment()}this.ISGenerated||(p=this.generateIS(e,t,i,a));const W=this.isVideoContiguous;let J=-1,oe;if(N&&(J=h$(t.samples),!W&&this.config.forceKeyFrameOnDiscontinuity))if(x=!0,J>0){this.warn(`Dropped ${J} out of ${I} video samples due to a missing keyframe`);const ie=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(J),t.dropped+=J,E+=(t.samples[0].pts-ie)/t.inputTimeScale,oe=E}else J===-1&&(this.warn(`No keyframe found out of ${I} video samples`),x=!1);if(this.ISGenerated){if(L&&N&&i){const ie=this.getVideoStartPts(t.samples),X=(pr(e.samples[0].pts,ie)-ie)/t.inputTimeScale;b+=Math.max(0,X),E+=Math.max(0,-X)}if(L){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),p=this.generateIS(e,t,i,a)),m=this.remuxAudio(e,b,this.isAudioContiguous,a,R||N||u===Qe.AUDIO?E:void 0,d),N){const ie=m?m.endPTS-m.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),p=this.generateIS(e,t,i,a)),f=this.remuxVideo(t,E,W,ie,d)}}else N&&(f=this.remuxVideo(t,E,W,0,d));f&&(f.firstKeyFrame=J,f.independent=J!==-1,f.firstKeyFramePTS=oe)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(v=ES(r,i,this._initPTS,this._initDTS)),s.samples.length&&(y=wS(s,i,this._initPTS))),{audio:m,video:f,initSegment:p,independent:x,text:y,id3:v}}computeInitPts(e,t,r,s){const i=Math.round(r*t);let a=pr(e,i);if(a<i)for(this.log(`Adjusting PTS for rollover in timeline near ${(i-a)/t} ${s}`);a<i;)a+=Ym;return a-i}generateIS(e,t,r,s){const i=e.samples,a=t.samples,l=this.typeSupported,u={},d=this._initPTS,f=!d||s;let m="audio/mp4",p,y,v,x=-1;if(f&&(p=y=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":l.mpeg?(m="audio/mpeg",e.codec=""):l.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}if(u.audio={id:"audio",container:m,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&l.mpeg?new Uint8Array(0):He.initSegment([e]),metadata:{channelCount:e.channelCount}},f){x=e.id,v=e.inputTimeScale;const b=this.computeInitPts(i[0].pts,v,r,"audio");(!d||v!==d.timescale||r===0&&b<d.baseTime)&&(p=y=b)}}if(t.sps&&t.pps&&a.length){if(t.timescale=t.inputTimeScale,u.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:He.initSegment([t]),metadata:{width:t.width,height:t.height}},f){x=t.id,v=t.inputTimeScale;const b=this.getVideoStartPts(a),E=pr(a[0].dts,b),T=this.computeInitPts(E,v,r,"video"),w=this.computeInitPts(b,v,r,"video");(!d||v!==d.timescale||ze(p)||r===0&&w<d.baseTime)&&(y=Math.min(y,T),p=Math.min(p,T))}this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(u).length)return this.ISGenerated=!0,f&&ze(p)?(d&&this.warn(`Timestamps at playlist time: ${s?"":"~"}${r} ${p/v} != initPTS: ${d.baseTime/d.timescale} (${d.baseTime}/${d.timescale}) trackId: ${d.trackId}`),this.log(`Found initPTS at playlist time: ${r} offset: ${p/v} (${p}/${v}) trackId: ${x}`),this._initPTS={baseTime:p,timescale:v,trackId:x},this._initDTS={baseTime:y,timescale:v,trackId:x}):p=v=void 0,{tracks:u,initPTS:p,timescale:v,trackId:x}}remuxVideo(e,t,r,s,i){const a=e.inputTimeScale,l=e.samples,u=[],d=l.length,f=this._initPTS,m=f.baseTime*a/f.timescale;let p=this.nextVideoTs,y=8,v=this.videoSampleDuration,x,b,E=Number.POSITIVE_INFINITY,T=Number.NEGATIVE_INFINITY,w=!1;if(!r||p===null){const G=m+t*a,ee=l[0].pts-pr(l[0].dts,l[0].pts);hc()&&p!==null&&Math.abs(G-ee-(p+m))<15e3?r=!0:p=G-ee-m}const R=p+m;for(let G=0;G<d;G++){const ee=l[G];ee.pts=pr(ee.pts,R),ee.dts=pr(ee.dts,R),ee.dts<l[G>0?G-1:G].dts&&(w=!0)}w&&l.sort(function(G,ee){const Ee=G.dts-ee.dts,Ce=G.pts-ee.pts;return Ee||Ce}),x=l[0].dts,b=l[l.length-1].dts;const I=b-x,L=I?Math.round(I/(d-1)):v||e.inputTimeScale/30;if(r){const G=x-R,ee=G>L,Ee=G<-1;if((ee||Ee)&&(ee?this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${ec(G,!0)} ms (${G}dts) hole between fragments detected at ${t.toFixed(3)}`):this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${ec(-G,!0)} ms (${G}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!Ee||R>=l[0].pts||hc())){x=R;const Ce=l[0].pts-G;if(ee)l[0].dts=x,l[0].pts=Ce;else{let Ae=!0;for(let me=0;me<l.length&&!(l[me].dts>Ce&&Ae);me++){const ve=l[me].pts;if(l[me].dts-=G,l[me].pts-=G,me<l.length-1){const Q=l[me+1].pts,ge=l[me].pts,le=Q<=ge,pe=Q<=ve;Ae=le==pe}}}this.log(`Video: Initial PTS/DTS adjusted: ${ec(Ce,!0)}/${ec(x,!0)}, delta: ${ec(G,!0)} ms`)}}x=Math.max(0,x);let N=0,_=0,j=x;for(let G=0;G<d;G++){const ee=l[G],Ee=ee.units,Ce=Ee.length;let Ae=0;for(let me=0;me<Ce;me++)Ae+=Ee[me].data.length;_+=Ae,N+=Ce,ee.length=Ae,ee.dts<j?(ee.dts=j,j+=L/4|0||1):j=ee.dts,E=Math.min(ee.pts,E),T=Math.max(ee.pts,T)}b=l[d-1].dts;const F=_+4*N+8;let $;try{$=new Uint8Array(F)}catch(G){this.observer.emit(M.ERROR,M.ERROR,{type:nt.MUX_ERROR,details:ye.REMUX_ALLOC_ERROR,fatal:!1,chunkMeta:i,error:G,bytes:F,reason:`fail allocating video mdat ${F}`});return}pn($,0,F),pn($,4,gt.mdat);let z=!1,W=Number.POSITIVE_INFINITY,J=Number.POSITIVE_INFINITY,oe=Number.NEGATIVE_INFINITY,ie=Number.NEGATIVE_INFINITY;for(let G=0;G<d;G++){const ee=l[G],Ee=ee.units;let Ce=0;for(let ve=0,Q=Ee.length;ve<Q;ve++){const ge=Ee[ve],le=ge.data,pe=ge.data.byteLength;pn($,y,pe),y+=4,$.set(le,y),y+=pe,Ce+=4+pe}let Ae;if(G<d-1)v=l[G+1].dts-ee.dts,Ae=l[G+1].pts-ee.pts;else{const ve=this.config,Q=G>0?ee.dts-l[G-1].dts:L;if(Ae=G>0?ee.pts-l[G-1].pts:L,ve.stretchShortVideoTrack&&this.nextAudioTs!==null){const ge=Math.floor(ve.maxBufferHole*a),le=(s?E+s*a:this.nextAudioTs+m)-ee.pts;le>ge?(v=le-Q,v<0?v=Q:z=!0,this.log(`It is approximately ${le/90} ms to the next segment; using duration ${v/90} ms for the last video frame.`)):v=Q}else v=Q}let me=Math.round(ee.pts-ee.dts);if(W=Math.min(W,v),oe=Math.max(oe,v),J=Math.min(J,Ae),ie=Math.max(ie,Ae),!r&&G===0&&me>v){const ve=Math.round(me/L)*L;ve-me===1&&(this.log(`pad first CTS ${me} -> ${ve} of sn: ${i.sn}`),me=ve)}u.push(Q9(ee.key,v,Ce,me))}if(u.length){const G=hc();if(G){if(G<70){const ee=u[0].flags;ee.dependsOn=2,ee.isNonSync=0}}else if(mM()&&ie-J<oe-W&&L/oe<.025&&u[0].cts===0){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let ee=x;for(let Ee=0,Ce=u.length;Ee<Ce;Ee++){const Ae=ee+u[Ee].duration,me=ee+u[Ee].cts;if(Ee<Ce-1){const ve=Ae+u[Ee+1].cts;u[Ee].duration=ve-me}else u[Ee].duration=Ee?u[Ee-1].duration:L;u[Ee].cts=0,ee=Ae}}}v=z||!v?L:v;const Z=b+v;this.nextVideoTs=p=Z-m,this.videoSampleDuration=v,this.isVideoContiguous=!0,i.iframe&&(u.length===1?(u[0].duration=v=i.duration*a,this.nextVideoTs=p=x+v-m):this.warn(`Not adjusting IFrame duration (sample count ${u.length})`));const se={data1:He.moof(i.sn,x,Vt(e,{samples:u})),data2:$,startPTS:(E-m)/a,endPTS:(T+v-m)/a,startDTS:(x-m)/a,endDTS:p/a,type:"video",hasAudio:!1,hasVideo:!0,nb:u.length,dropped:e.dropped};return e.samples=[],e.dropped=0,se}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return d$;case"ac3":return f$;default:return u$}}remuxAudio(e,t,r,s,i,a){const l=e.inputTimeScale,u=e.samplerate?e.samplerate:l,d=l/u,f=this.getSamplesPerFrame(e),m=f*d,p=this._initPTS,y=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,v=[],x=i!==void 0;let b=e.samples,E=y?0:8,T=this.nextAudioTs||-1;const w=p.baseTime*l/p.timescale,R=w+t*l;if(this.isAudioContiguous=r=r||b.length&&T>0&&(s&&Math.abs(R-(T+w))<9e3||Math.abs(pr(b[0].pts,R)-(T+w))<20*m),b.forEach(function(Z){Z.pts=pr(Z.pts,R)}),!r||T<0){const Z=b.length;if(b=b.filter(X=>X.pts>=0),Z!==b.length&&this.warn(`Removed ${b.length-Z} of ${Z} samples (initPTS ${w} / ${l})`),!b.length)return;i===0?T=0:s&&!x?T=Math.max(0,R-w):T=b[0].pts-w}if(e.segmentCodec==="aac"){const Z=this.config.maxAudioFramesDrift;for(let X=0,ue=T+w;X<b.length;X++){const se=b[X],G=se.pts,ee=G-ue,Ee=Math.abs(1e3*ee/l);if(ee<=-Z*m&&x)X===0&&(this.warn(`Audio frame @ ${(G/l).toFixed(3)}s overlaps marker by ${Math.round(1e3*ee/l)} ms.`),this.nextAudioTs=T=G-w,ue=G);else if(ee>=Z*m&&Ee<c$&&x){let Ce=Math.round(ee/m);for(ue=G-Ce*m;ue<0&&Ce&&m;)Ce--,ue+=m;X===0&&(this.nextAudioTs=T=ue-w),this.warn(`Injecting ${Ce} audio frames @ ${((ue-w)/l).toFixed(3)}s due to ${Math.round(1e3*ee/l)} ms gap.`);for(let Ae=0;Ae<Ce;Ae++){let me=e$.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);me||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),me=se.unit.subarray()),b.splice(X,0,{unit:me,pts:ue}),ue+=m,X++}}se.pts=ue,ue+=m}}let I=null,L=null,N,_=0,j=b.length;for(;j--;)_+=b[j].unit.byteLength;for(let Z=0,X=b.length;Z<X;Z++){const ue=b[Z],se=ue.unit;let G=ue.pts;if(L!==null){const Ee=v[Z-1];Ee.duration=Math.round((G-L)/d)}else if(r&&e.segmentCodec==="aac"&&(G=T+w),I=G,_>0){_+=E;try{N=new Uint8Array(_)}catch(Ee){this.observer.emit(M.ERROR,M.ERROR,{type:nt.MUX_ERROR,details:ye.REMUX_ALLOC_ERROR,fatal:!1,chunkMeta:a,error:Ee,bytes:_,reason:`fail allocating audio mdat ${_}`});return}y||(pn(N,0,_),pn(N,4,gt.mdat))}else return;N&&N.set(se,E);const ee=se.byteLength;E+=ee,v.push(Q9(!0,f,ee,0)),L=G}const F=v.length;if(!F)return;const $=v[v.length-1];T=L-w,this.nextAudioTs=T+d*$.duration;const z=y?new Uint8Array(0):He.moof(e.sequenceNumber++,I/d,Vt({},e,{samples:v}));e.samples=[];const W=(I-w)/l,J=this.nextAudioTs/l,ie={data1:z,data2:N,startPTS:W,endPTS:J,startDTS:W,endDTS:J,type:"audio",hasAudio:!0,hasVideo:!1,nb:F};return this.isAudioContiguous=!0,ie}}function pr(n,e){let t;if(e===null)return n;for(e<n?t=-Ym:t=Ym;Math.abs(n-e)>4294967296;)n+=t;return n}function h$(n){for(let e=0;e<n.length;e++)if(n[e].key)return e;return-1}function ES(n,e,t,r){const s=n.samples.length;if(!s)return;const i=n.inputTimeScale;for(let l=0;l<s;l++){const u=n.samples[l];u.pts=pr(u.pts-t.baseTime*i/t.timescale,e*i)/i,u.dts=pr(u.dts-r.baseTime*i/r.timescale,e*i)/i}const a=n.samples;return n.samples=[],{samples:a}}function wS(n,e,t){const r=n.samples.length;if(!r)return;const s=n.inputTimeScale;for(let a=0;a<r;a++){const l=n.samples[a];l.pts=pr(l.pts-t.baseTime*s/t.timescale,e*s)/s}n.samples.sort((a,l)=>a.pts-l.pts);const i=n.samples;return n.samples=[],{samples:i}}class m$ extends Sr{constructor(e,t,r,s){super("passthrough-remuxer",s),this.observer=void 0,this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1,this.videoOnlyRemux=!1,this.decryptdata=null,this.pendingInitSegment=void 0,this.observer=e}destroy(){this.observer&&this.observer.removeAllListeners(),this.observer=null}resetTimeStamp(e){this.lastEndTime=null;const t=this.initPTS;t&&e&&t.baseTime===e.baseTime&&t.timescale===e.timescale||(this.initPTS=e)}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(e,t,r,s){this.audioCodec=t,this.videoCodec=r,this.decryptdata=s,this.pendingInitSegment=e,this.videoOnlyRemux=!1,this.initTracks=void 0,this.initData=void 0,this.emitInitSegment=!0}generateInitSegment(e,t,r){this.videoOnlyRemux=!1;let{audioCodec:s,videoCodec:i}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const{audio:a,video:l}=this.initData=r||Ib(e);if(t)eM(e,t);else{const d=a||l;d!=null&&d.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${d.codec}")!`)}a&&(s=J9(a,Kt.AUDIO,this)),l&&(i=J9(l,Kt.VIDEO,this));const u={};a&&l?u.audiovideo={container:"video/mp4",codec:s+","+i,supplemental:l.supplemental,encrypted:l.encrypted,initSegment:e,id:"main"}:a?u.audio={container:"audio/mp4",codec:s,encrypted:a.encrypted,initSegment:e,id:"audio"}:l?u.video={container:"video/mp4",codec:i,supplemental:l.supplemental,encrypted:l.encrypted,initSegment:e,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=u}remux(e,t,r,s,i,a,l,u,d,f,m){var p,y;let{initPTS:v,lastEndTime:x}=this;const b={audio:void 0,video:void 0,text:void 0,id3:r,initSegment:void 0};ze(x)||(x=this.lastEndTime=i||0);const E=t.samples;if(!E.length)return b;const T=this.pendingInitSegment;T&&(this.pendingInitSegment=void 0,this.generateInitSegment(T,this.decryptdata,f));const w={initPTS:void 0,timescale:void 0,trackId:void 0};let R=this.initData;if((p=R)!=null&&p.length||(this.generateInitSegment(E),R=this.initData),!((y=R)!=null&&y.length))return this.warn("Failed to generate initSegment."),b;if(d.iframe&&R.audio&&R.video){var I;const ke=(I=this.initTracks)==null||(I=I.audiovideo)==null?void 0:I.initSegment,Ge=ke?qj(ke):null;if(Ge){var L;this.log("Converted muxed init segment to video-only for I-Frame playback"),this.generateInitSegment(Ge,this.decryptdata),(L=this.initData)!=null&&L.length&&(R=this.initData,this.emitInitSegment=!0,this.videoOnlyRemux=!0)}}this.emitInitSegment&&(w.tracks=this.initTracks,b.initSegment=w,this.emitInitSegment=!1);const N=d.iframe,_=m&&(!N||m.includeSampleDetails)?m.tracks:sM(E,R,d,this,N),j=R.audio?_[R.audio.id]:null,F=R.video?_[R.video.id]:null,$=!!R.audio,z=!!R.video;let W="";$&&(W+="audio"),z&&(W+="video");const J=c1(F,1/0),oe=c1(j,1/0),ie=c1(F,0,!0),Z=c1(j,0,!0);let X=i,ue=0;F&&j&&R.audio&&(oe>ie||J>Z)&&this.warn(`audio and video track sample timestamps do not overlap. v: ${J}-${ie} a: ${oe}-${Z}}`,F,j);const se=!!j&&(!F||!v&&oe<J||!!v&&v.trackId===R.audio.id),G=se?j:F;if(!G)return this.log(`No media samples found in ${u} ${d.level} ${d.part===-1?"":`part: ${d.part} of`} sn: ${d.sn} at playlist time: ${i}`),b;let ee=E,Ee,Ce;if(F&&F.sampleCount>=1&&R.video&&d.iframe){const{trun:ke,start:Ge}=F,K=ke.length===1,ne=ke.length?K?ke[0].samples:ke[0].samples.concat(...ke.slice(1).map(ae=>ae.samples)):[];if(ne.length){const ae=ke[0];let P=ae;for(let q=ke.length;q--;)if(ke[q].samples.length){P=ke[q];break}const D=P.lastSampleDurationOffset,{defaultSampleDurationOffset:B}=ae,V=Math.abs(d.duration-(ie-J))>.05,Y=ne.length<F.sampleCount;if(!(V||Y||this.videoOnlyRemux||!K))ue=ie-J;else{const q=Y?P.sampleOffset+P.samples.reduce((Re,we)=>Re+we.size,0):void 0,re=V?d.duration:ie-J,ce=g$(ne,re*R.video.timescale,D,B),be=Yj(E,R.video.id,ne.length,q,ce);be?(ee=be,Ce=p$(Ge,ne)):this.warn(`IFrame remux skipped (sn ${d.sn}); using native sample duration`),ue=be&&ce?re:ie-J}}else this.warn(`Could not remux IFrame track fragment (no samples in range, trun count ${ke.length})`),ue=ie-J}else ue=se?Z-oe:ie-J;if(this.videoOnlyRemux&&ee===E)return this.warn(`Dropping muxed I-Frame fragment that could not be remuxed to video-only (sn: ${d.sn})`),b;const Ae=G.timescale,me=G.start-i*Ae,ve=se?R.audio.id:R.video.id;if(X=G.start/Ae,(a||!v)&&(y$(v,X,i,ue)||Ae!==v.timescale)){let ke=!1;const Ge=se?"audio":"video";if(v){const K=i!==0?X/i:1+X/1;ke=X>=0&&Math.abs(1-K)<.001,this.log(`${Ge} timestamps in track ${ve} at playlist time: ${a?"":"~"}${i} maps to ${X} with initPTS: ${v.baseTime/v.timescale} (${me/Ae-v.baseTime/v.timescale}s diff) (${W}) drift estimate: ${K} ${ke?"(ignoring drift)":"remapping timestamps (initPTS)"}`)}ke||(this.log(`Found initPTS in ${Ge} track ${ve} at playlist time: ${i} offset: ${X-i} (${me}/${Ae})`),v=null,w.initPTS=me,w.timescale=Ae,w.trackId=ve)}v?(w.initPTS=v.baseTime,w.timescale=v.timescale,w.trackId=v.trackId):((!w.timescale||w.trackId===void 0||w.initPTS===void 0)&&(this.warn("Could not set initPTS"),w.initPTS=X,w.timescale=1,w.trackId=-1),this.initPTS=v={baseTime:w.initPTS,timescale:w.timescale,trackId:w.trackId});const Q=X-v.baseTime/v.timescale,ge=Q+ue,le=z&&(G==null?void 0:G.ptsMin)!==void 0?G.ptsMin/G.timescale-v.baseTime/v.timescale:Q,pe=Ce!==void 0&&F?Ce/F.timescale-v.baseTime/v.timescale:z&&G!=null&&G.ptsMax?G.ptsMax/G.timescale-v.baseTime/v.timescale:ge;ue>0?this.lastEndTime=ge:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const Ie=(R.audio?R.audio.encrypted:!1)||(R.video?R.video.encrypted:!1),Ne={data1:ee,data2:Ee,startPTS:le,startDTS:Q,endPTS:pe,endDTS:ge,type:W,hasAudio:$,hasVideo:z,nb:1,dropped:0,encrypted:Ie};b.audio=$&&!z?Ne:void 0,b.video=z?Ne:void 0;const Fe=this.isVideoContiguous,Me=F==null?void 0:F.sampleCount;if(Me){const ke=F.keyFrameIndex,Ge=ke!==-1;Ne.nb=Me,Ne.dropped=ke===0||Fe?0:Ge?ke:Me,Ne.independent=Ge,Ne.firstKeyFrame=ke,Ge&&F.keyFrameStart&&(Ne.firstKeyFramePTS=(F.keyFrameStart-v.baseTime)/v.timescale),Fe||(b.independent=Ge),this.isVideoContiguous||(this.isVideoContiguous=Ge),Ne.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${ke}/${Me} dropped: ${Ne.dropped} start: ${Ne.firstKeyFramePTS||"NA"}`)}return b.initSegment=w,b.id3=ES(r,i,v,v),s.samples.length&&(b.text=wS(s,i,v)),b}}function c1(n,e,t=!1){return(n==null?void 0:n.start)!==void 0?(n.start+(t?n.duration:0))/n.timescale:e}function p$(n,e){let t=n,r=n;for(let s=0;s<e.length;s++){const{cts:i,duration:a}=e[s];r=Math.max(r,t+(i||0)+a),t+=a}return r}function g$(n,e,t,r){if(t!==void 0){const i=n[n.length-1];let a=e;for(let l=0;l<n.length-1;l++)a-=n[l].duration;return a<=0&&(a=i.duration),i.duration=a,{durationOffset:t,value:a}}if(r===void 0)return;const s=Math.round(e/n.length);for(let i=0;i<n.length;i++)n[i].duration=s;return{durationOffset:r,value:s}}function y$(n,e,t,r){if(n===null)return!0;const s=Math.max(r,1),i=e-n.baseTime/n.timescale;return Math.abs(i-t)>=s}function J9(n,e,t){const r=n.codec;return r&&r.length>4?r:e===Kt.AUDIO?r==="ec-3"||r==="ac-3"||r==="alac"?r:r==="fLaC"||r==="Opus"?rf(r,!1):(t.warn(`Unhandled audio codec "${r}" in mp4 MAP`),r||"mp4a"):r==="mjpg"?r:(t.warn(`Unhandled video codec "${r}" in mp4 MAP`),r||"avc1")}let Li;try{Li=self.performance.now.bind(self.performance)}catch{Li=Date.now}const B1=[{demux:WF,remux:m$},{demux:Vs,remux:$1},{demux:VF,remux:$1},{demux:GF,remux:$1}];B1.splice(2,0,{demux:zF,remux:$1});class e7{constructor(e,t,r,s,i,a){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=r,this.id=i,this.logger=a}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,r,s){if(!this.observer)return u1(r);const i=r.transmuxing;i.executeStart=Li();const a=new Uint8Array(e),{currentTransmuxState:l,transmuxConfig:u}=this;s&&(this.currentTransmuxState=s);const{contiguous:d,discontinuity:f,trackSwitch:m,accurateTimeOffset:p,timeOffset:y,initSegmentChange:v}=s||l,{audioCodec:x,videoCodec:b,defaultInitPts:E,duration:T,initSegmentData:w}=u,R=v$(a,t);if(R&&Do(R.method)){const _=this.getDecrypter(),j=Yp(R.method);return this.asyncResult=!0,this.decryptionPromise=_.decrypt(a,R.key.buffer,R.iv.buffer,j,r.decryptRange).then(F=>{const $=this.push(F,null,r);return this.decryptionPromise=null,$}),this.decryptionPromise}const I=this.needsProbing(f,m);if(I){const _=r.iframe&&w&&Vs.probe(w,this.logger)?w:a,j=this.configureTransmuxer(_);if(j)return this.logger.warn(`[transmuxer] ${j.message}`),this.observer.emit(M.ERROR,M.ERROR,{type:nt.MEDIA_ERROR,details:ye.FRAG_PARSING_ERROR,fatal:!1,error:j,reason:j.message}),i.executeEnd=Li(),u1(r)}(f||m||v||I)&&this.resetInitSegment(w,x,b,T,t,r),(f||v||I)&&this.resetInitialTimestamp(E),d||this.resetContiguity();const L=this.transmux(a,R,y,p,r);this.asyncResult=Uc(L);const N=this.currentTransmuxState;return N.contiguous=!0,N.discontinuity=!1,N.trackSwitch=!1,i.executeEnd=Li(),L}flush(e){const t=e.transmuxing;t.executeStart=Li();const{decrypter:r,currentTransmuxState:s,decryptionPromise:i}=this;if(i)return this.asyncResult=!0,i.then(()=>this.flush(e));const a=[],{timeOffset:l}=s;if(r){const m=r.flush();m&&a.push(this.push(m.buffer,null,e))}const{demuxer:u,remuxer:d}=this;if(!u||!d){t.executeEnd=Li();const m=[u1(e)];return this.asyncResult?Promise.resolve(m):m}const f=u.flush(l,e);return Uc(f)?(this.asyncResult=!0,f.then(m=>(this.flushRemux(a,m,e),a))):(this.flushRemux(a,f,e),this.asyncResult?Promise.resolve(a):a)}flushRemux(e,t,r){if(!this.remuxer)return;const{audioTrack:s,videoTrack:i,id3Track:a,textTrack:l}=t,{accurateTimeOffset:u,timeOffset:d}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${r.sn}${r.part>-1?" part: "+r.part:""} of ${this.id} playlist ${r.level}`);const f=this.remuxer.remux(s,i,a,l,d,u,!0,this.id,r,t.initData,t.sampleData);e.push({remuxResult:f,chunkMeta:r}),r.transmuxing.executeEnd=Li()}resetInitialTimestamp(e){const{demuxer:t,remuxer:r}=this;!t||!r||(t.resetTimeStamp(e),r.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,r,s,i,a){const{demuxer:l,remuxer:u}=this;!l||!u||(l.resetInitSegment(e,t,r,s,i,a),u.resetInitSegment(e,t,r,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0),this.observer&&this.observer.removeAllListeners(),this.decryptionPromise=null,this.decrypter=this.observer=void 0,this.logger=this.config=this.probe=void 0}transmux(e,t,r,s,i){let a;return(t==null?void 0:t.method)==="SAMPLE-AES"?a=this.transmuxSampleAes(e,t,r,s,i):a=this.transmuxUnencrypted(e,r,s,i),a}transmuxUnencrypted(e,t,r,s){const{demuxer:i,remuxer:a}=this;if(!i||!a)return u1(s);const l=i.demux(e,t,s,!1,!this.config.progressive),{audioTrack:u,videoTrack:d,id3Track:f,textTrack:m}=l;return{remuxResult:a.remux(u,d,f,m,t,r,!1,this.id,s,l.initData,l.sampleData),chunkMeta:s}}transmuxSampleAes(e,t,r,s,i){return this.demuxer?this.demuxer.demuxSampleAes(e,t,r,i).then(a=>({remuxResult:this.remuxer.remux(a.audioTrack,a.videoTrack,a.id3Track,a.textTrack,r,s,!1,this.id,i,a.initData,a.sampleData),chunkMeta:i})):Promise.reject(new Error("no demuxer"))}configureTransmuxer(e){const{config:t,observer:r,typeSupported:s}=this;if(!r)return;let i;try{for(let m=0,p=B1.length;m<p;m++){var a;if((a=B1[m].demux)!=null&&a.probe(e,this.logger)){i=B1[m];break}}}catch(m){return m}if(!i)return new Error("Failed to find demuxer by probing fragment data");const l=this.demuxer,u=this.remuxer,d=i.demux,f=i.remux;(!l||!(l instanceof d))&&(this.logger.log(`Using ${d.name}`),this.demuxer=new d(r,t,s,this.logger),this.probe=d.probe),(!u||!(u instanceof f))&&(this.logger.log(`Using ${f.name}`),this.remuxer=new f(r,t,s,this.logger))}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new Wp(this.config)),e}}function v$(n,e){let t=null;return n.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const u1=n=>({remuxResult:{},chunkMeta:n});function Uc(n){return"then"in n&&n.then instanceof Function}class x${constructor(e,t,r,s,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=r,this.duration=s,this.defaultInitPts=i||null}}class C${constructor(e,t,r,s,i,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=r,this.trackSwitch=s,this.timeOffset=i,this.initSegmentChange=a}}let t7=0;class TS{constructor(e,t,r,s){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=t7++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=u=>{const d=u.data,f=this.hls;if(!(!f||!(d!=null&&d.event)||d.instanceNo!==this.instanceNo))switch(d.event){case"init":{var m;const p=(m=this.workerContext)==null?void 0:m.objectURL;p&&self.URL.revokeObjectURL(p);break}case"transmuxComplete":{this.handleTransmuxComplete(d.data);break}case"flush":{this.onFlush(d.data);break}case"workerLog":{f.logger[d.data.logType]&&f.logger[d.data.logType](d.data.message);break}default:{d.data=d.data||{},d.data.frag=this.frag,d.data.part=this.part,d.data.id=this.id,f.trigger(d.event,d.data);break}}},this.onWorkerError=u=>{if(!this.hls)return;const d=new Error(`${u.message}  (${u.filename}:${u.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(M.ERROR,{type:nt.OTHER_ERROR,details:ye.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:d})};const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=r,this.onFlush=s;const a=(u,d)=>{d=d||{},d.frag=this.frag||void 0,u===M.ERROR&&(d=d,d.parent=this.id,d.part=this.part,this.error=d.error),this.hls.trigger(u,d)};this.observer=new Qp,this.observer.on(M.FRAG_DECRYPTED,a),this.observer.on(M.ERROR,a);const l=g9(i.preferManagedMediaSource);if(this.useWorker&&typeof Worker<"u"){const u=this.hls.logger;if(i.workerPath||RF()){try{i.workerPath?(u.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=LF(i.workerPath)):(u.log(`injecting Web Worker for "${t}"`),this.workerContext=AF());const{worker:f}=this.workerContext;f.addEventListener("message",this.onWorkerMessage),f.addEventListener("error",this.onWorkerError),f.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:l,id:t,config:qt(i)})}catch(f){u.warn(`Error setting up "${t}" Web Worker, fallback to inline`,f),this.terminateWorker(),this.error=null,this.transmuxer=new e7(this.observer,l,i,"",t,e.logger)}return}}this.transmuxer=new e7(this.observer,l,i,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=t7++;const t=this.hls.config,r=g9(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:r,id:this.id,config:qt(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),NF(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,r,s,i,a,l,u,d,f){var m,p;d.transmuxing.start=self.performance.now();const{instanceNo:y,transmuxer:v}=this,x=a?a.start:i.start,b=i.decryptdata,E=this.frag,T=E?i.cc!==E.cc:!0,w=E?d.level!==E.level:!0,R=E?d.sn-E.sn:-1,I=this.part?d.part-this.part.index:-1,L=R===0&&d.id>1&&d.id===(E==null?void 0:E.stats.chunkCount),N=!w&&(R===1||R===0&&(I===1||L&&I<=0)),_=self.performance.now();(w||R||i.stats.parsing.start===0)&&(i.stats.parsing.start=_),a&&(I||!N)&&(a.stats.parsing.start=_);const j=!(E&&((m=i.initSegment)==null?void 0:m.url)===((p=E.initSegment)==null?void 0:p.url)),F=new C$(T,N,u,w,x,j);if(!N||T||j){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${d.sn}${d.part>-1?" part: "+d.part:""} ${this.id} playlist: ${d.level} id: ${d.id}
885        discontinuity: ${T}
886        trackSwitch: ${w}
887        contiguous: ${N}
888        accurateTimeOffset: ${u}
889        timeOffset: ${x}
890        initSegmentChange: ${j}`);const $=new x$(r,s,t,l,f);this.configureTransmuxer($)}if(this.frag=i,this.part=a,this.workerContext)this.workerContext.worker.postMessage({instanceNo:y,cmd:"demux",data:e,decryptdata:b,chunkMeta:d,state:F},e instanceof ArrayBuffer?[e]:[]);else if(v){const $=v.push(e,b,d,F);Uc($)?$.then(z=>{this.handleTransmuxComplete(z)}).catch(z=>{this.transmuxerError(z,d,"transmuxer-interface push error")}):this.handleTransmuxComplete($)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:r}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(r){const s=r.flush(e);Uc(s)?s.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")}):this.handleFlushResult(s,e)}}transmuxerError(e,t,r){this.hls&&(this.error=e,this.hls.trigger(M.ERROR,{type:nt.MEDIA_ERROR,details:ye.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:r}))}handleFlushResult(e,t){e.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:r}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):r&&r.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const n7=100;class b$ extends Zp{constructor(e,t,r){super(e,t,r,"audio-stream-controller",Qe.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.nextTrackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(M.LEVEL_LOADED,this.onLevelLoaded,this),e.on(M.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(M.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(M.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(M.BUFFER_RESET,this.onBufferReset,this),e.on(M.BUFFER_CREATED,this.onBufferCreated,this),e.on(M.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(M.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(M.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(M.FRAG_LOADING,this.onFragLoading,this),e.on(M.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(M.LEVEL_LOADED,this.onLevelLoaded,this),e.off(M.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(M.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(M.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(M.BUFFER_RESET,this.onBufferReset,this),e.off(M.BUFFER_CREATED,this.onBufferCreated,this),e.off(M.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(M.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(M.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(M.FRAG_LOADING,this.onFragLoading,this),e.off(M.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,t){const{frag:r,id:s,initPTS:i,timescale:a,trackId:l,timestampOffsets:u}=t;if(s===Qe.MAIN){const d=r.cc,f=this.fragCurrent;if(this.initPTS=u,this.log(`InitPTS for cc: ${d} found from main: ${i/a} (${i}/${a}) trackId: ${l}`),this.mainAnchor=r,this.state===Le.WAITING_INIT_PTS){const m=this.waitingData;(!m&&!this.loadingParts||m&&m.frag.cc!==d)&&this.syncWithAnchor(r,m==null?void 0:m.frag)}else!this.hls.hasEnoughToStart&&f&&f.cc!==d?(f.abortRequests(),this.syncWithAnchor(r,f)):this.state===Le.IDLE&&this.tick()}}getLoadPosition(){var e;return!this.startFragRequested&&this.nextLoadPosition>=0&&((e=this.switchingTrack)==null?void 0:e.flushImmediate)!==!1?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(e,t){var r;const s=((r=this.mainFragLoading)==null?void 0:r.frag)||null;if(t&&(s==null?void 0:s.cc)===t.cc)return;const i=(s||e).cc,a=this.getLevelDetails(),l=this.getLoadPosition(),u=zb(a,i,l);u&&(this.log(`Syncing with main frag at ${u.start} cc ${u.cc}`),this.startFragRequested=!1,this.nextLoadPosition=u.start,this.resetLoadingState(),this.state===Le.IDLE&&this.doTickIdle())}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=Le.STOPPED;return}const r=this.lastCurrentTime;this.stopLoad(),this.setInterval(n7),r>0&&e===-1&&!t&&this.initPTS.length&&(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),e=r),this.state=Le.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,!t&&!this.fragmentTracker.hasFragments(this.playlistType)&&(this.startFragRequested=!1),this.tick()}doTick(){switch(this.state){case Le.IDLE:this.doTickIdle();break;case Le.WAITING_TRACK:{const{levels:e,trackId:t}=this,r=e==null?void 0:e[t],s=r==null?void 0:r.details;if(s&&!this.waitForLive(r)){if(this.waitForCdnTuneIn(s))break;this.state=Le.WAITING_INIT_PTS}break}case Le.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case Le.WAITING_INIT_PTS:{const e=this.waitingData;if(e){const{frag:t,part:r,cache:s,complete:i}=e,a=this.mainAnchor;if(this.initPTS[t.cc]!==void 0){this.waitingData=null,this.state=Le.FRAG_LOADING;const l=s.flush().buffer,u={frag:t,part:r,payload:l,networkDetails:null};this._handleFragmentLoadProgress(u),i&&super._handleFragmentLoadComplete(u)}else a&&a.cc!==e.frag.cc&&this.syncWithAnchor(a,e.frag)}else this.state=Le.IDLE}}this.onTickEnd()}resetLoadingState(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime,this.checkFragmentChanged())}doTickIdle(){var e;const{hls:t,levels:r,media:s,trackId:i}=this,a=t.config;if(!this.buffering||!s&&!this.primaryPrefetch&&(this.startFragRequested||!a.startFragPrefetch)||!(r!=null&&r[i]))return;const l=r[i],u=l.details;if(!u||this.waitForLive(l)||this.waitForCdnTuneIn(u)){this.state=Le.WAITING_TRACK,this.startFragRequested=!1;return}const d=this.getBufferOutput();this.bufferFlushed&&d&&(this.bufferFlushed=!1,this.afterBufferFlushed(d,Kt.AUDIO));const f=this.getFwdBufferInfo();if(f===null)return;if(!this.switchingTrack&&this._streamEnded(f,u)){t.trigger(M.BUFFER_EOS,{type:"audio"}),this.state=Le.ENDED;return}const m=f.len,p=t.maxBufferLength,y=u.fragments,v=y[0].start,x=this.getLoadPosition(),b=this.flushing||this.switchingTrack&&!this.switchingTrack.flushImmediate?x:f.end;if(this.switchingTrack&&s){const w=x;u.PTSKnown&&w<v&&w>=this.timelineOffset&&(f.end>v||f.nextStart)&&(this.log(`Alt audio track ahead of main track, seek to start of alt audio track ${w} -> ${v} + 0.05`),s.currentTime=v+.05)}if(m>=p&&!this.switchingTrack&&b<y[y.length-1].start)return;let E=this.getNextFragment(b,u);if(E&&this.isLoopLoading(E,b)&&(E=this.getNextFragmentLoopLoading(E,u,f,Qe.MAIN,p)),!E){this.bufferFlushed=!0;return}if(this.exceedsMaxBuffer(f,p,E))return;let T=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&T&&un(E)&&!E.endList&&(!u.live||!this.loadingParts&&b<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(T)===on.OK&&(this.mainFragLoading=T=null),T&&un(T))){if(E.start>T.end){const R=this.fragmentTracker.getFragAtPos(b,Qe.MAIN);R&&R.end>T.end&&(T=R,this.mainFragLoading={frag:R,targetBufferTime:null})}if(E.start>T.end)return}this.loadFragment(E,l,b)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(r=>new Fc(r))}onAudioTrackSwitching(e,t){const r=!!t.url;this.trackId=t.id;const{fragCurrent:s}=this;s&&(s.abortRequests(),this.removeUnbufferedFrags(s.start)),this.resetLoadingState(),r?(this.switchingTrack=t,t.flushImmediate||(this.nextTrackId=t.id,this.nextLevelSwitch()),this.flushAudioIfNeeded(t),this.state!==Le.STOPPED&&(this.setInterval(n7),this.state=Le.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const r=this.cachedTrackLoadedData;r&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(M.AUDIO_TRACK_LOADED,r))}onAudioTrackLoaded(e,t){var r;const{levels:s}=this,{details:i,id:a,groupId:l,track:u}=t;if(!s){this.warn(`Audio tracks reset while loading track ${a} "${u.name}" of "${l}"`);return}const d=this.mainDetails;if(!d||i.endCC>d.endCC||d.expired){this.cachedTrackLoadedData=t,this.state!==Le.STOPPED&&(this.state=Le.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${a} "${u.name}" of "${l}" loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const f=s[a];let m=0;if(i.live||(r=f.details)!=null&&r.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;if(f.details){var p;m=this.alignPlaylists(i,f.details,(p=this.levelLastLoaded)==null?void 0:p.details)}i.alignedSliding||(uf(d,i,this),m=i.fragmentStart)}f.details=i,this.levelLastLoaded=f,this.startFragRequested||this.setStartPosition(d,m),this.hls.trigger(M.AUDIO_TRACK_UPDATED,{details:i,id:a,groupId:t.groupId}),this.state===Le.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=Le.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const r=e.frag,{part:s,payload:i}=e,{config:a,trackId:l,levels:u}=this;if(!u){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const d=u[l];if(!d){this.warn("Audio track is undefined on fragment load progress");return}const f=d.details;if(!f){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const m=a.defaultAudioCodec||d.audioCodec||"mp4a.40.2";let p=this.transmuxer;p||(p=this.transmuxer=new TS(this.hls,Qe.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const y=this.initPTS[r.cc],v=(t=r.initSegment)==null?void 0:t.data;if(y!==void 0){const b=s?s.index:-1,E=b!==-1,T=new Kp(r.level,r.sn,r.stats.chunkCount,i.byteLength,b,E,r.duration);p.push(i,v,m,"",r,s,f.totalduration,!1,T,y)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${f.startSN} ,${f.endSN}],track ${l}`);const{cache:x}=this.waitingData=this.waitingData||{frag:r,part:s,cache:new lS,complete:!1};x.push(new Uint8Array(i)),this.state!==Le.STOPPED&&(this.state=Le.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;const r=t.tracks.audio;r&&(this.mediaBuffer=r.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===Qe.MAIN&&un(t.frag)&&(this.mainFragLoading=t,this.state===Le.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:r,part:s}=t;if(r.type!==Qe.AUDIO){!this.audioOnly&&r.type===Qe.MAIN&&!r.elementaryStreams.video&&!r.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${s?" p: "+s.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(un(r)){const i=this.switchingTrack;i&&(this.bufferedTrack=i)}this.fragBufferedComplete(r,s),this.media&&this.tick()}getFwdBufferInfo(){const e=this.getBufferOutput();return super.getFwdBufferInfo(e,Qe.AUDIO)}getBufferOutput(){return this.mediaBuffer?this.mediaBuffer:this.media}checkFragmentChanged(){const e=this.fragPlaying;if(!this.checkFragPlaying())return!1;const r=this.fragPlaying,s=e==null?void 0:e.level;return(!r||r.level!==s)&&(e&&this.cleanupBackBuffer(),this.switchingTrack&&this.completeAudioSwitch(this.switchingTrack)),!0}onError(e,t){var r;if(t.fatal){this.state=Le.ERROR;return}switch(t.details){case ye.FRAG_GAP:case ye.FRAG_PARSING_ERROR:case ye.FRAG_DECRYPT_ERROR:case ye.FRAG_LOAD_ERROR:case ye.FRAG_LOAD_TIMEOUT:case ye.KEY_LOAD_ERROR:case ye.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Qe.AUDIO,t);break;case ye.AUDIO_TRACK_LOAD_ERROR:case ye.AUDIO_TRACK_LOAD_TIMEOUT:case ye.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Le.WAITING_TRACK&&((r=t.context)==null?void 0:r.type)===St.AUDIO_TRACK&&(this.state=Le.IDLE);break;case ye.BUFFER_APPEND_NO_PROGRESS:if(t.parent!=="audio")return;t.frag&&(t.appendsWithoutProgress||0)>=this.config.appendErrorMaxRetry&&(this.warn(`Marking fragment ${t.frag.sn} of track ${t.frag.level} as a gap after ${t.appendsWithoutProgress} appends without buffered range growth, to prevent loop loading`),this.fragmentTracker.addAsGap(t.frag));break;case ye.BUFFER_ADD_CODEC_ERROR:case ye.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)||this.resetLoadingState();break;case ye.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case ye.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==Kt.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==Kt.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===Le.ENDED&&(this.state=Le.IDLE);const r=this.getBufferOutput();r&&(this.afterBufferFlushed(r,t),this.tick())}}_handleTransmuxComplete(e){var t;const r="audio",{hls:s}=this,{remuxResult:i,chunkMeta:a}=e,l=this.getCurrentContext(a);if(!l){this.resetWhenMissingContext(a);return}const{frag:u,part:d,level:f}=l,{details:m}=f,{audio:p,text:y,id3:v,initSegment:x}=i;if(this.fragContextChanged(u)||!m){this.fragmentTracker.removeFragment(u),x!=null&&x.tracks&&this.resetTransmuxer();return}if(this.state=Le.PARSING,p&&this.switchingTrack&&!this.switchingTrack.flushImmediate){const{config:b}=this,E=b.nextAudioTrackBufferFlushForwardOffset,T=Math.max(this.getLoadPosition()+E,u.start);super.flushMainBuffer(T,Number.POSITIVE_INFINITY,Qe.AUDIO)}if(x!=null&&x.tracks){const b=u.initSegment||u;if(this.unhandledEncryptionError(x,u))return;this._bufferInitSegment(f,x.tracks,b,a),s.trigger(M.FRAG_PARSING_INIT_SEGMENT,{frag:b,id:r,tracks:x.tracks})}if(p){const{startPTS:b,endPTS:E,startDTS:T,endDTS:w}=p;d&&(d.elementaryStreams[Kt.AUDIO]={startPTS:b,endPTS:E,startDTS:T,endDTS:w}),u.setElementaryStreamInfo(Kt.AUDIO,b,E,T,w),this.bufferFragmentData(p,u,d,a)}if(v!=null&&(t=v.samples)!=null&&t.length){const b=Vt({id:r,frag:u,details:m},v);s.trigger(M.FRAG_PARSING_METADATA,b)}if(y){const b=Vt({id:r,frag:u,details:m},y);s.trigger(M.FRAG_PARSING_USERDATA,b)}}_bufferInitSegment(e,t,r,s){if(this.state!==Le.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const i=t.audio;i.id=Qe.AUDIO;const a=e.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${a}/${i.codec}]`),(a==null?void 0:a.split(",").length)===1&&(i.levelCodec=a),this.hls.trigger(M.BUFFER_CODECS,t);const l=i.initSegment;if(l!=null&&l.byteLength){const u={type:"audio",frag:r,part:null,chunkMeta:s,parent:r.type,data:l};this.hls.trigger(M.BUFFER_APPENDING,u)}this.tickImmediate()}loadFragment(e,t,r){const s=this.fragmentTracker.getState(e);if(this.switchingTrack||s===on.NOT_LOADED||s===on.PARTIAL){var i;if((i=t.details)!=null&&i.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=Le.WAITING_INIT_PTS;const a=this.mainDetails;a&&a.fragmentStart!==t.details.fragmentStart&&uf(a,t.details,this)}else super.loadFragment(e,t,r)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack&&e.flushImmediate){const{name:t,lang:r,assocLang:s,characteristics:i,audioCodec:a,channels:l}=this.bufferedTrack;wa({name:t,lang:r,assocLang:s,characteristics:i,audioCodec:a,channels:l},e,ma)||(af(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.bufferedTrack=e,this.switchingTrack=null,t.trigger(M.AUDIO_TRACK_SWITCHED,st({},e))}get nextAudioTrack(){return this.nextTrackId}}class r8 extends Sr{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.loadingSync=!1,this.hls=e}destroy(){this.clearTimer(),this.hls=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,r){const s=t==null?void 0:t.renditionReports;if(s){let i=-1;for(let a=0;a<s.length;a++){const l=s[a];let u;try{u=new self.URL(l.URI,t.url).href}catch(d){this.warn(`Could not construct new URL for Rendition Report: ${d}`),u=l.URI||""}if(u===e){i=a;break}else u===e.substring(0,u.length)&&(i=a)}if(i!==-1){const a=s[i],l=parseInt(a["LAST-MSN"])||t.lastPartSn;let u=parseInt(a["LAST-PART"])||t.lastPartIndex;if(this.hls.config.lowLatencyMode){const f=Math.min(t.age-t.partTarget,t.targetduration);u>=0&&f>t.partTarget&&(u+=1)}const d=r&&y9(r);return new v9(l,u>=0?u:void 0,d)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(r){this.warn(`Could not construct new URL with HLS Delivery Directives: ${r}`)}return e}playlistLoaded(e,t,r){const{details:s,stats:i}=t,a=s.fragments,l=self.performance.now(),u=i.loading.first?Math.max(0,Math.floor(l-i.loading.first)):0;s.advancedDateTime=Date.now()-u;const d=this.hls.config.timelineOffset;if(d!==s.appliedTimelineOffset){const m=Math.max(d||0,0);s.appliedTimelineOffset=m,a.forEach(p=>{p==null||p.setStart(p.playlistOffset+m)})}if(s.live||r!=null&&r.live){var f;const m="levelInfo"in t?t.levelInfo:t.track;s.reloaded(r);const p=(f=a[a.length-1])==null?void 0:f.type;if(s.misses>=this.hls.config.liveMaxUnchangedPlaylistRefresh){const I=new Error(`${p} playlist ${m.id} hit max allowed unchanged reloads.`);this.warn(I);const{networkDetails:L,context:N}=t;this.hls.trigger(M.ERROR,{type:nt.NETWORK_ERROR,details:ye.PLAYLIST_UNCHANGED_ERROR,fatal:!1,url:s.url,error:I,reason:I.message,level:t.level,parent:p,context:N,networkDetails:L,stats:i});return}if(r){pF(r,s,this);const I=s.playlistParsingError;if(I){this.warn(I);const L=this.hls;if(!L.config.ignorePlaylistParsingErrors){const{networkDetails:N}=t;L.trigger(M.ERROR,{type:nt.NETWORK_ERROR,details:ye.LEVEL_PARSING_ERROR,fatal:!1,url:s.url,error:I,reason:I.message,level:t.level,parent:p,networkDetails:N,stats:i});return}s.playlistParsingError=null}}s.requestScheduled===-1&&(s.requestScheduled=i.loading.start);const y=this.hls.mainForwardBufferInfo,v=y?y.end-y.len:0,x=(s.edge-v)*1e3,b=nS(s,x);s.requestScheduled+b<l?s.requestScheduled=l:s.requestScheduled<=l&&(s.requestScheduled+=b);const E=t.deliveryDirectives;if(this.log(`live playlist ${e} ${s.advanced?`REFRESHED ${s.lastPartSn} - ${s.lastPartIndex}`:s.updated?"UPDATED":`MISSED (received ${s.lastPartSn} - ${s.lastPartIndex}${E?` | requested ${E.msn} - ${E.part}`:""})`}`),!this.canLoad||!s.live)return;let T,w,R;if(s.canBlockReload&&s.advanced){const I=this.hls.config.lowLatencyMode,L=s.lastPartSn,N=s.endSN,_=s.lastPartIndex,j=_!==-1,F=L===N;j?F?(w=N+1,R=I?0:_):(w=L,R=I?_+1:s.maxPartIndex):w=N+1;const $=s.age,z=$+s.ageHeader;let W=Math.min(z-s.partTarget,s.targetduration*1.5);if(W>0){if(z>s.targetduration*3)this.log(`Playlist last advanced ${$.toFixed(2)}s ago. Omitting segment and part directives.`),w=void 0,R=void 0;else if(r!=null&&r.tuneInGoal&&z-s.partTarget>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${W} with playlist age: ${s.age}`),W=0;else{const J=Math.floor(W/s.targetduration);if(w+=J,R!==void 0){const oe=Math.round(W%s.targetduration/s.partTarget);R+=oe}this.log(`CDN Tune-in age: ${s.ageHeader}s last advanced ${$.toFixed(2)}s goal: ${W} skip sn ${J} to part ${R}`)}s.tuneInGoal=W}if(T=this.getDeliveryDirectives(s,t.deliveryDirectives,w,R),I||!F){s.requestScheduled=l,this.loadingPlaylist(m,T);return}}else(s.canBlockReload||s.canSkipUntil)&&(T=this.getDeliveryDirectives(s,t.deliveryDirectives,w,R));T&&w!==void 0&&s.canBlockReload&&(s.requestScheduled=i.loading.first+Math.max(b-u*2,b/2)),this.scheduleLoading(m,T,s)}else this.clearTimer()}scheduleLoading(e,t,r){const s=r||e.details;if(!s){this.loadingPlaylist(e,t);return}const i=self.performance.now(),a=s.requestScheduled;if(i>=a&&!this.loadingSync){this.loadingSync=!0,this.loadingPlaylist(e,t),this.loadingSync=!1;return}const l=Math.max(a-i,0);this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(l)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(e,t),l)}getDeliveryDirectives(e,t,r,s){let i=y9(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(r=t.msn,s=t.part,i=F1.No),new v9(r,s,i)}checkRetry(e){const t=e.details,r=tf(e),s=e.errorAction,{action:i,retryCount:a=0,retryConfig:l}=s||{},u=!!s&&!!l&&(i===kn.RetryRequest||!s.resolved&&i===kn.SendAlternateToPenaltyBox);if(u){var d;if(a>=l.maxNumRetry)return!1;if(r&&(d=e.context)!=null&&d.deliveryDirectives)this.warn(`Retrying playlist loading ${a+1}/${l.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{var f;const m=_c((f=e.response)==null?void 0:f.code);if(this.clearTimer(),m)this.log("Waiting for connection (offline)"),e.reason="offline",this.timer=self.setTimeout(()=>this.checkOfflineStatus(),1e3);else{const p=Bp(l,a);this.warn(`Retrying playlist loading ${a+1}/${l.maxNumRetry} after "${t}" in ${p}ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(),p)}}e.levelRetry=!0,s.resolved=!0}return u}checkOfflineStatus(){this.clearTimer(),_c(0)?this.timer=self.setTimeout(()=>this.checkOfflineStatus(),1e3):(this.log("Connection restored (online)"),this.loadPlaylist())}}function IS(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(!Vc(n[t].attrs,e[t].attrs))return!1;return!0}function Vc(n,e,t){const r=n["STABLE-RENDITION-ID"];return r&&!t?r===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(s=>n[s]!==e[s])}class S$ extends r8{constructor(e){super(e,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.MANIFEST_PARSED,this.onManifestParsed,this),e.on(M.LEVEL_LOADING,this.onLevelLoading,this),e.on(M.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(M.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(M.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.MANIFEST_PARSED,this.onManifestParsed,this),e.off(M.LEVEL_LOADING,this.onLevelLoading,this),e.off(M.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(M.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(M.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:r,groupId:s,details:i}=t,a=this.tracksInGroup[r];if(!a||a.groupId!==s){this.warn(`Audio track with id:${r} and group:${s} not found in active group ${a==null?void 0:a.groupId}`);return}const l=a.details;a.details=t.details,this.log(`Audio track ${r} "${a.name}" lang:${a.lang} group:${s} loaded [${i.startSN}-${i.endSN}]`),r===this.trackId&&this.playlistLoaded(r,t,l)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const r=t.audioGroups||null,s=this.groupIds;let i=this.currentTrack;if(!r||(s==null?void 0:s.length)!==(r==null?void 0:r.length)||r!=null&&r.some(l=>(s==null?void 0:s.indexOf(l))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const l=this.tracks.filter(p=>$c(p.groupId,r));if(l.length)this.selectDefaultTrack&&!l.some(p=>p.default)&&(this.selectDefaultTrack=!1),l.forEach((p,y)=>{p.id=y});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const u=this.hls.config.audioPreference;if(!i&&u){const p=xs(u,l,ma);if(p>-1)i=l[p];else{const y=xs(u,this.tracks);i=this.tracks[y]}}let d=this.findTrackId(i);d===-1&&i&&(d=this.findTrackId(null));const f={audioTracks:l};this.log(`Updating audio tracks, ${l.length} track(s) found in group(s): ${r==null?void 0:r.join(",")}`),this.hls.trigger(M.AUDIO_TRACKS_UPDATED,f);const m=this.trackId;if(d!==-1&&m===-1)this.setAudioTrack(d);else if(l.length&&m===-1){var a;const p=new Error(`No audio track selected for current audio group-ID(s): ${(a=this.groupIds)==null?void 0:a.join(",")} track count: ${l.length}`);this.warn(p.message),this.hls.trigger(M.ERROR,{type:nt.MEDIA_ERROR,details:ye.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:p})}}}onError(e,t){t.fatal||!t.context||t.context.type===St.AUDIO_TRACK&&t.context.id===this.trackId&&$c(t.context.groupId,this.groupIds)&&this.checkRetry(t)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}get nextAudioTrack(){return this.trackId}set nextAudioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e,!1)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){const s=this.currentTrack;if(s&&wa(e,s,ma))return s;const i=xs(e,this.tracksInGroup,ma);if(i>-1){const a=this.tracksInGroup[i];return this.setAudioTrack(i,"flushImmediate"in e&&e.flushImmediate),a}else if(s){let a=t.loadLevel;a===-1&&(a=t.firstAutoLevel);const l=FM(e,t.levels,r,a,ma);if(l===-1)return null;t.nextLoadLevel=l}if(e.channels||e.audioCodec){const a=xs(e,r);if(a>-1)return r[a]}}}return null}setAudioTrack(e,t=!0){const r=this.tracksInGroup;if(e<0||e>=r.length){this.warn(`Invalid audio track id: ${e}`);return}this.selectDefaultTrack=!1;const s=this.currentTrack,i=r[e],a=i.details&&!i.details.live;if(e===this.trackId&&i===s&&a||(this.log(`Switching to audio-track ${e} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=e,this.currentTrack=i,this.hls.trigger(M.AUDIO_TRACK_SWITCHING,st(st({},i),{},{flushImmediate:t})),a))return;const l=this.switchParams(i.url,s==null?void 0:s.details,i.details);this.loadPlaylist(l)}findTrackId(e){const t=this.tracksInGroup;for(let r=0;r<t.length;r++){const s=t[r];if(!(this.selectDefaultTrack&&!s.default)&&(!e||wa(e,s,ma)))return r}if(e){const{name:r,lang:s,assocLang:i,characteristics:a,audioCodec:l,channels:u}=e;for(let d=0;d<t.length;d++){const f=t[d];if(wa({name:r,lang:s,assocLang:i,characteristics:a,audioCodec:l,channels:u},f,ma))return d}for(let d=0;d<t.length;d++){const f=t[d];if(Vc(e.attrs,f.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return d}for(let d=0;d<t.length;d++){const f=t[d];if(Vc(e.attrs,f.attrs,["LANGUAGE"]))return d}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&af(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const r=e.id,s=e.groupId,i=this.getUrlWithDirectives(e.url,t),a=e.details,l=a==null?void 0:a.age;this.log(`Loading audio-track ${r} "${e.name}" lang:${e.lang} group:${s}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${l&&a.live?" age "+l.toFixed(1)+(a.type&&" "+a.type||""):""} ${i}`),this.hls.trigger(M.AUDIO_TRACK_LOADING,{url:i,id:r,groupId:s,deliveryDirectives:t||null,track:e})}}class E${constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,r){if(this.queues===null||this.tracks===null)return;const s=this.queues[t];s.push(e),s.length===1&&!r&&this.executeNext(t)}appendBlocker(e){return new Promise(t=>{const r={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(r,e)})}prependBlocker(e){return new Promise(t=>{if(this.queues){const r={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(r)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(e=>{var t;const r=(t=e[0])==null?void 0:t.label;r==="async-blocker"||r==="async-blocker-prepend"?(e[0].execute(),e.splice(0,1)):r==="block-audio"&&e.splice(0,1)})}insertNext(e,t){this.queues!==null&&this.queues[t].splice(1,0,...e)}unblockAudio(){var e;this.queues!==null&&((e=this.current("audio"))==null?void 0:e.label)==="block-audio"&&this.shiftAndExecuteNext("audio")}audioBlocking(){return this.queues===null?!1:this.queues.audio.some(e=>e.label==="block-audio")}executeNext(e){if(this.queues===null||this.tracks===null)return;const t=this.queues[e];if(t.length){const s=t[0];try{s.execute()}catch(i){var r;if(s.onError(i),this.queues===null||this.tracks===null)return;const a=(r=this.tracks[e])==null?void 0:r.buffer;a!=null&&a.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues!==null&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return((t=this.queues)==null?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return e===null||t===null?"<destroyed>":`
891${this.list("video")}
892${this.list("audio")}
893${this.list("audiovideo")}}`}list(e){var t,r;return(t=this.queues)!=null&&t[e]||(r=this.tracks)!=null&&r[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const r=(t=this.tracks)==null?void 0:t[e],s=r==null?void 0:r.buffer;return s?`SourceBuffer${s.updating?" updating":""}${r.ended?" ended":""}${r.ending?" ending":""}`:"none"}listOps(e){var t;return((t=this.queues)==null?void 0:t[e].map(r=>r.label).join(", "))||""}}const r7=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,RS="HlsJsTrackRemovedError",w$=.25,T$=.001;
vendor: 4,464 bytes, line 893
893class I$ extends Error{constructor(e){super(e),this.name=RS}}class R$ extends Sr{constructor(e,t){super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.fragmentAppendProgress=Object.create(null),this.appendsWithoutProgress=Object.create(null),this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.appendError=void 0,this._quotaEvictionPending={},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=r=>{var s;this.hls&&((s=this.mediaSource)==null?void 0:s.readyState)==="open"&&(!this.media||this.media.seeking||this.hls.pauseBuffering())},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=r=>{const{media:s,mediaSource:i}=this;r&&this.log("Media source opened"),!(!s||!i)&&(jt(i,"sourceopen",this._onMediaSourceOpen),jt(s,"emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(M.MEDIA_ATTACHED,{media:s,mediaSource:i}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{if(this.log("Media source closed"),this.media){const r=this.media.error,{appendError:s,appendErrors:i}=this;let a=!1;!s&&r&&(a=Math.max(++i.audio,++i.video,++i.audiovideo)>=this.hls.config.appendErrorMaxRetry);const l=new Error(`MediaSource closed while media attached${i7(a,r)}`);this.warn(l),this.hls.trigger(M.ERROR,Vt({fatal:a},s,{type:nt.MEDIA_ERROR,details:ye.MEDIA_SOURCE_REQUIRES_RESET,error:l}))}},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:r,_objectUrl:s}=this;r!==s&&this.error(`Media element src was set while attaching MediaSource (${s} > ${r})`)},this._onMediaError=()=>{const{media:r}=this;if(r){var s,i;this.log(`Media error (code: ${(s=r.error)==null?void 0:s.code}): ${(i=r.error)==null?void 0:i.message}`)}},this.hls=e,this.fragmentTracker=t,this.appendSource=Lj(Fi(e.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null,this._onMediaEmptied=this._onMediaError=null}registerListeners(){const{hls:e}=this;e.on(M.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.MANIFEST_PARSED,this.onManifestParsed,this),e.on(M.BUFFER_RESET,this.onBufferReset,this),e.on(M.BUFFER_APPENDING,this.onBufferAppending,this),e.on(M.BUFFER_CODECS,this.onBufferCodecs,this),e.on(M.BUFFER_EOS,this.onBufferEos,this),e.on(M.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(M.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(M.FRAG_PARSED,this.onFragParsed,this),e.on(M.FRAG_CHANGED,this.onFragChanged,this),e.on(M.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(M.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.MANIFEST_PARSED,this.onManifestParsed,this),e.off(M.BUFFER_RESET,this.onBufferReset,this),e.off(M.BUFFER_APPENDING,this.onBufferAppending,this),e.off(M.BUFFER_CODECS,this.onBufferCodecs,this),e.off(M.BUFFER_EOS,this.onBufferEos,this),e.off(M.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(M.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(M.FRAG_PARSED,this.onFragParsed,this),e.off(M.FRAG_CHANGED,this.onFragChanged,this),e.off(M.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const r={};if(this.operationQueue){const i=this.isUpdating();i||this.operationQueue.removeBlockers();const a=this.isQueued();(i||a)&&this.warn(`Transfering MediaSource with${a?" operations in queue":""}${i?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const s=this.transferData;return s&&!this.sourceBufferCount&&s.mediaSource===t?Vt(r,s.tracks):this.sourceBuffers.forEac
vendor: 25,694 bytes, lines 893-895
893h(i=>{const[a]=i;a&&(r[a]=Vt({},this.tracks[a]),this.removeBuffer(a)),i[0]=i[1]=null}),{media:e,mediaSource:t,tracks:r}}initTracks(){const e={};this.resetAppendProgress(),this.sourceBuffers=[[null,null],[null,null]],this.tracks=e,this.resetQueue(),this.lastMpegAudioChunk=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null,this.resetAppendErrors(),this.resetAppendProgress()}onManifestParsed(e,t){var r;let s=2;(t.audio&&!t.video||!t.altAudio)&&(s=1),this.bufferCodecEventsTotal=s,this.log(`${s} bufferCodec event(s) expected.`),(r=this.transferData)!=null&&r.mediaSource&&this.sourceBufferCount&&s&&this.bufferCreated()}onMediaAttaching(e,t){const r=this.media=t.media;this.transferData=this.overrides=void 0;const s=Fi(this.appendSource);if(s){const i=!!t.mediaSource;(i||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const a=this.mediaSource=t.mediaSource||new s;if(this.assignMediaSource(a),i)this._objectUrl=r.src,this.attachTransferred();else{const l=this._objectUrl=self.URL.createObjectURL(a);if(this.appendSource)try{r.removeAttribute("src");const u=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||u&&a instanceof u,s7(r),A$(r,l),r.load()}catch{r.src=l}else r.src=l}Mt(r,"emptied",this._onMediaEmptied),Mt(r,"error",this._onMediaError),this.appendSource&&Mt(r,"seeking",this._onStartStreaming)}}assignMediaSource(e){var t,r;this.log(`${((t=this.transferData)==null?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${(r=e.constructor)==null?void 0:r.name}`),Mt(e,"sourceopen",this._onMediaSourceOpen),Mt(e,"sourceended",this._onMediaSourceEnded),Mt(e,"sourceclose",this._onMediaSourceClose),this.appendSource&&(Mt(e,"startstreaming",this._onStartStreaming),Mt(e,"endstreaming",this._onEndStreaming))}attachTransferred(){const e=this.media,t=this.transferData;if(!t||!e)return;const r=this.tracks,s=t.tracks,i=s?Object.keys(s):null,a=i?i.length:0,l=()=>{Promise.resolve().then(()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()})};if(s&&i&&a){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})
894required tracks: ${qt(r,(u,d)=>u==="initSegment"?void 0:d)};
895transfer tracks: ${qt(s,(u,d)=>u==="initSegment"?void 0:d)}}`),!pb(s,r)){t.mediaSource=null,t.tracks=void 0;const u=e.currentTime,d=this.details,f=Math.max(u,(d==null?void 0:d.fragments[0].start)||0);if(f-u>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${u} -> ${f}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(s)}"->"${Object.keys(r)}") start time: ${f} currentTime: ${u}`),this.onMediaDetaching(M.MEDIA_DETACHING,{}),this.onMediaAttaching(M.MEDIA_ATTACHING,t),e.currentTime=f;return}this.transferData=void 0,i.forEach(u=>{const d=u,f=s[d];if(f){const m=f.buffer;if(m){const p=this.fragmentTracker,y=f.id;if(p.hasFragments(y)||p.hasParts(y)){const b=ft.getBuffered(m);p.detectEvictedFragments(d,b,y,null,null,!0)}const v=D0(d),x=[d,m];this.sourceBuffers[v]=x,m.updating&&this.operationQueue&&this.operationQueue.prependBlocker(d),this.trackSourceBuffer(d,f)}}}),l(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),l()}get mediaSourceOpenOrEnded(){var e;const t=(e=this.mediaSource)==null?void 0:e.readyState;return t==="open"||t==="ended"}onMediaDetaching(e,t){const r=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:s,mediaSource:i,_objectUrl:a}=this;if(i){if(this.log(`media source ${r?"transferring":"detaching"}`),r)this.sourceBuffers.forEach(([l])=>{l&&this.removeBuffer(l)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const l=i.readyState==="open";try{const u=i.sourceBuffers;for(let d=u.length;d--;)l&&u[d].abort(),i.removeSourceBuffer(u[d]);l&&i.endOfStream()}catch(u){this.warn(`onMediaDetaching: ${u.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}jt(i,"sourceopen",this._onMediaSourceOpen),jt(i,"sourceended",this._onMediaSourceEnded),jt(i,"sourceclose",this._onMediaSourceClose),this.appendSource&&(jt(i,"startstreaming",this._onStartStreaming),jt(i,"endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}s&&(jt(s,"emptied",this._onMediaEmptied),jt(s,"error",this._onMediaError),jt(s,"seeking",this._onStartStreaming),r||(a&&self.URL.revokeObjectURL(a),this.mediaSrc===a?(s.removeAttribute("src"),this.appendSource&&s7(s),s.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null)}onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t;const r=(t=this.tracks[e])==null?void 0:t.buffer;if(this.removeBuffer(e),r)try{var s;(s=this.mediaSource)!=null&&s.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(r)}catch(i){this.warn(`onBufferReset ${e}`,i)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[D0(e)]=[null,null];const t=this.tracks[e];t&&(this.clearBufferAppendTimeoutId(t),t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new E$(this.tracks)}onBufferCodecs(e,t){var r;const s=this.tracks,i=Object.keys(t);this.log(`BUFFER_CODECS: "${i}" (current SB count ${this.sourceBufferCount})`);const a="audiovideo"in t&&(s.audio||s.video)||s.audiovideo&&("audio"in t||"video"in t),l=!a&&this.sourceBufferCount&&this.media&&i.some(u=>!s[u]);if(a||l){this.warn(`Unsupported transition between "${Object.keys(s)}" and "${i}" SourceBuffers`);return}i.forEach(u=>{var d,f;const m=t[u],{id:p,codec:y,levelCodec:v,container:x,metadata:b,supplemental:E}=m;let T=s[u];const w=(d=this.transferData)==null||(d=d.tracks)==null?void 0:d[u],R=w!=null&&w.buffer?w:T,I=(R==null?void 0:R.pendingCodec)||(R==null?void 0:R.codec),L=R==null?void 0:R.levelCodec;T||(T=s[u]={buffer:void 0,listeners:[],codec:y,supplemental:E,container:x,levelCodec:v,metadata:b,id:p});const N=M1(I,L),_=N==null?void 0:N.replace(r7,"$1");let j=M1(y,v);const F=(f=j)==null?void 0:f.replace(r7,"$1");j&&N&&_!==F&&(u.slice(0,5)==="audio"&&(j=rf(j,this.appendSource)),this.log(`switching codec ${I} to ${j}`),j!==(T.pendingCodec||T.codec)&&(T.pendingCodec=j),T.container=x,this.appendChangeType(u,x,j))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!t.video&&((r=t.audio)==null?void 0:r.id)==="main"&&(this.log("Main audio-only"),this.bufferCodecEventsTotal=1),this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((e,t)=>{const r=this.tracks[t];return e[t]={id:r.id,container:r.container,codec:r.codec,levelCodec:r.levelCodec},e},{})}appendChangeType(e,t,r){const s=`${t};codecs=${r}`,i={label:`change-type=${s}`,execute:()=>{const a=this.tracks[e];if(a){const l=a.buffer;l!=null&&l.changeType&&(this.log(`changing ${e} sourceBuffer type to ${s}`),l.changeType(s),a.codec=r,a.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:a=>{this.warn(`Failed to change ${e} SourceBuffer type`,a)}};this.append(i,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const r=e.start,s=r+e.duration*.05;if(((t=this.fragmentTracker.getAppendedFrag(r,Qe.MAIN))==null?void 0:t.gap)===!0)return;const a={label:"block-audio",execute:()=>{var l,u;(this.lastVideoAppendEnd>s||ft.isBuffered((l=this.tracks.video)==null?void 0:l.buffer,s)||((u=this.fragmentTracker.getAppendedFrag(s,Qe.MAIN))==null?void 0:u.gap)===!0)&&this.unblockAudio()},onStart:()=>{},onComplete:()=>{},onError:l=>{this.warn("Error executing block-audio operation",l)}};this.append(a,"audio",!0)}unblockAudio(){this.operationQueue&&this.operationQueue.unblockAudio()}onBufferAppending(e,t){const{tracks:r}=this,{data:s,type:i,parent:a,frag:l,part:u,chunkMeta:d,offset:f}=t,m=d.buffering[i],p=un(l)&&!u&&!l.gap&&!d.partial&&!d.iframe;let y=null,v=!1;const{sn:x,cc:b}=l,E=self.performance.now();m.start=E;const T=l.stats.buffering,w=u?u.stats.buffering:null;T.start===0&&(T.start=E),(w==null?void 0:w.start)===0&&(w.start=E);const R=r.audio;let I=!1;i==="audio"&&(R==null?void 0:R.container)==="audio/mpeg"&&(I=!this.lastMpegAudioChunk||d.id===1||this.lastMpegAudioChunk.sn!==d.sn,this.lastMpegAudioChunk=d);const L=r.video,N=L==null?void 0:L.buffer;if(N&&x!=="initSegment"&&f!==void 0){const F=R==null?void 0:R.buffer,$=u||l;if(i==="audio"&&a!=="main"&&!(L.ending||L.ended)&&F&&ft.getBuffered(F).length){const W=$.start+$.duration*.05,J=ft.getBuffered(N),oe=this.currentOp("video");!J.length&&!oe?this.blockAudio($):!ft.isBuffered(N,W)&&this.lastVideoAppendEnd<W&&this.blockAudio($)}else if(i==="video"){const z=$.end,W=this.lastVideoAppendEnd-z;this.lastVideoAppendEnd=z,W<0||W>$.duration?this.unblockAudio():this.isAudioBlocked()&&this.executeNext("audio")}}const _=(u||l).start,j={label:`append-${i}`,execute:()=>{var F;m.executeStart=self.performance.now();const $=(F=this.tracks[i])==null?void 0:F.buffer;$&&(p&&(y=ft.timeRangesToArray(ft.getBuffered($)),v=o7(j0(y,l),l)),I?this.updateTimestampOffset($,_,.1,i,x,b):f!==void 0&&ze(f)&&this.updateTimestampOffset($,f,1e-6,i,x,b)),this.appendExecutor(s,i)},onStart:()=>{},onComplete:()=>{this.clearBufferAppendTimeoutId(this.tracks[i]);const F=self.performance.now();m.executeEnd=m.end=F,T.first===0&&(T.first=F),(w==null?void 0:w.first)===0&&(w.first=F);const $={};if(this.sourceBuffers.forEach(([z,W])=>{z&&($[z]=ft.getBuffered(W))}),p){const z=this.getFragmentAppendProgress(l),W=$[i];if(W&&y){const J=ft.timeRangesToArray(W),oe=j0(J,l);z.progressed||(z.progressed=oe-j0(y,l)>T$);const ie=v&&o7(oe,l);z.fullyBuffered[i]=(z.fullyBuffered[i]===void 0||z.fullyBuffered[i])&&ie}}this.hls.trigger(M.BUFFER_APPENDED,{type:i,frag:l,part:u,chunkMeta:d,parent:a,timeRanges:$})},onError:F=>{var $;this.clearBufferAppendTimeoutId(this.tracks[i]);const z=F.code===DOMException.QUOTA_EXCEEDED_ERR||F.name=="QuotaExceededError"||"quota"in F;if(z&&!this._quotaEvictionPending[i]){const ie=this.getBackBufferEvictionTarget(i,s.byteLength,l.type);if(ie>0){this._quotaEvictionPending[i]=!0,this.log(`QuotaExceededError on "${i}" append sn: ${x} - evicting back buffer to ${ie.toFixed(3)}s and retrying`);const Z=this.getFlushOp(i,0,ie),X=this.getClearEvictionPendingOp(i);this.insertNext([Z,j,X],i);return}this.warn(`QuotaExceededError on "${i}" sn: ${x} - no back buffer available to evict`)}p&&(this.getFragmentAppendProgress(l).errored=!0);const W={type:nt.MEDIA_ERROR,parent:a,details:ye.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:l,part:u,chunkMeta:d,error:F,err:F,fatal:!1},J=($=this.media)==null?void 0:$.error;if(F.name===RS&&this.sourceBufferCount===0&&(!this.media||this.pendingTrackCount===0))W.errorAction=mc(!0);else{var oe;z&&(W.details=ye.BUFFER_FULL_ERROR);const ie=++this.appendErrors[i],Z=this.hls.config.appendErrorMaxRetry;this.warn(`Failed ${ie}/${Z+1} times to append segment in "${i}" sourceBuffer with error: ${F.message}`),ie>=Z&&(W.fatal=!z);const X=(oe=this.mediaSource)==null?void 0:oe.readyState;(X==="ended"||X==="closed"||J)&&(this.warn(`MediaSource readyState "${X}" during SourceBuffer${i7(W.fatal,J)}`),W.details=ye.MEDIA_SOURCE_REQUIRES_RESET)}this.appendError=W,this.hls.trigger(M.ERROR,W),z&&this.hls&&this.trimBuffers(l.start,1)}};this.log(`queuing "${i}" append sn: ${x}${u?" p: "+u.index:""} of ${a} playlist ${l.level} cc: ${b} offset: ${f} bytes: ${s.byteLength}`),this.append(j,i,this.isPending(this.tracks[i]))}getClearEvictionPendingOp(e){return{label:"clear",execute:()=>{this._quotaEvictionPending[e]=!1,this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:()=>{}}}getFlushOp(e,t,r){return this.log(`queuing "${e}" remove ${t}-${r}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,r)},onStart:()=>{},onComplete:()=>{var s;const i=(s=this.tracks[e])==null?void 0:s.buffer;this.log(`Remove request ${t}-${r} from ${e} Source Buffer complete > buffer: ${i?df(ft.getBuffered(i)):"(detached)"}`),this.hls.trigger(M.BUFFER_FLUSHED,{type:e,start:t,end:r})},onError:s=>{this.warn(`Failed to remove ${t}-${r} from "${e}" SourceBuffer`,s),this.hls.trigger(M.BUFFER_FLUSHED,{type:e,start:0,end:0,error:s})}}}onBufferFlushing(e,t){const{type:r,startOffset:s,endOffset:i}=t;(!r||r==="audio")&&this.unblockAudio(),r?this.append(this.getFlushOp(r,s,i),r):this.sourceBuffers.forEach(([a])=>{a&&this.append(this.getFlushOp(a,s,i),a)})}onFragParsed(e,t){const{frag:r,part:s,chunkMeta:i}=t,a=[],l=s?s.elementaryStreams:r.elementaryStreams;l[Kt.AUDIOVIDEO]?a.push("audiovideo"):(l[Kt.AUDIO]&&a.push("audio"),l[Kt.VIDEO]&&a.push("video"));const u=()=>{const d=self.performance.now();r.stats.buffering.end=d,s&&(s.stats.buffering.end=d);const f=s?s.stats:r.stats;this.checkAppendProgress(r,s,i,a),this.hls&&(this.hls.trigger(M.FRAG_BUFFERED,{frag:r,part:s,stats:f,id:r.type,chunkMeta:i}),!s&&r.gap&&f.retry&&this.log(`Nothing buffered for ${r.type} level: ${r.level} sn: ${r.sn} retries ${f.retry}`))};a.length===0&&this.log(`Fragments must have at least one ElementaryStreamType set. ${r.type} ${r.level} ${s?`part: ${s.index} of `:""}sn: ${r.sn}`),this.blockBuffers(u,a).catch(d=>{this.warn(`Fragment buffered callback ${d.message}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(e,t){var r,s;const i=(r=this.hls)==null?void 0:r.config;if(!i)return;const{backBufferLength:a,frontBufferFlushThreshold:l}=i;this.trimBuffers(l,a,t.frag,t.previousFrag);const u=t.frag.elementaryStreams,{appendErrors:d}=this,f=(s=this.appendError)==null?void 0:s.sourceBufferName;Object.keys(u).forEach(m=>{u[m]&&(d[m]=0,m===f&&(this.appendError=void 0),m==="audio"||m==="video"?(d.audiovideo=0,f==="audiovideo"&&(this.appendError=void 0)):(d.audio=0,d.video=0,f!=="audiovideo"&&(this.appendError=void 0)))})}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{if(e){const t=this.tracks[e];if(t)return!t.ended||t.ending}return!1})}onBufferEos(e,t){var r;this.sourceBuffers.forEach(([a])=>{if(a){const l=this.tracks[a];(!t.type||t.type===a)&&(l.ending=!0,l.ended||(l.ended=!0,this.log(`${a} buffer reached EOS`)))}});const s=((r=this.overrides)==null?void 0:r.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([a])=>{var l;return a&&!((l=this.tracks[a])!=null&&l.ended)})?(this.unblockAudio(),s?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:a}=this;if((a==null?void 0:a.readyState)!=="open"){a&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${a.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),a.endOfStream(),this.hls.trigger(M.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(M.BUFFERED_TO_END,void 0))):t.type==="video"&&this.unblockAudio()}tracksEnded(){this.sourceBuffers.forEach(([e])=>{if(e!==null){const t=this.tracks[e];t&&(t.ending=!1)}})}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){this.blockUntilOpen(()=>{const e=this.getDurationAndRange();e&&this.updateMediaSource(e)})}onError(e,t){if(t.details===ye.BUFFER_APPEND_ERROR&&t.frag){var r;const s=(r=t.errorAction)==null?void 0:r.nextAutoLevel;ze(s)&&s!==t.frag.level&&this.resetAppendErrors()}}getBackBufferEvictionTarget(e,t,r){const{media:s}=this;return s?this.fragmentTracker.getBackBufferEvictionEnd(s.currentTime,r,t):0}getFragmentAppendProgress(e){var t;const r=a7(e);let s=this.fragmentAppendProgress[r];return((t=s)==null?void 0:t.stats)!==e.stats&&(s={stats:e.stats,progressed:!1,errored:!1,fullyBuffered:Object.create(null)},this.fragmentAppendProgress[r]=s),s}checkAppendProgress(e,t,r,s){if(t||!un(e)||e.gap||r.iframe||r.partial)return;const i=a7(e),a=this.fragmentAppendProgress[i];delete this.fragmentAppendProgress[i];const l=e.stats.buffering;if(l.start&&!l.first)return;const u=(a==null?void 0:a.stats)===e.stats?a:void 0;if(u!=null&&u.errored)return;const d=s.length>0&&s.every(y=>(u==null?void 0:u.fullyBuffered[y])===!0);if(u!=null&&u.progressed||d){delete this.appendsWithoutProgress[i];return}if(!u&&s.length===0)return;const f=(this.appendsWithoutProgress[i]||0)+1,m=this.hls;f>=m.config.appendErrorMaxRetry?delete this.appendsWithoutProgress[i]:this.appendsWithoutProgress[i]=f,this.warn(`Fragment ${e.sn} of ${e.type} playlist ${e.level} appended ${f} time${f>1?"s":""} without buffered range growth`),m.trigger(M.ERROR,{type:nt.MEDIA_ERROR,details:ye.BUFFER_APPEND_NO_PROGRESS,fatal:!1,frag:e,chunkMeta:r,parent:e.type,appendsWithoutProgress:f,error:new Error(`Fragment append did not increase buffered coverage (${f})`)})}resetAppendProgress(){this.fragmentAppendProgress=Object.create(null),this.appendsWithoutProgress=Object.create(null)}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0},this.appendError=void 0}trimBuffers(e,t,r,s){const{hls:i,details:a,media:l}=this;if(!l||a===null||!this.sourceBufferCount)return;const u=i.config,d=l.currentTime,f=a.levelTargetDuration;t=a.live&&u.liveBackBufferLength!==null?u.liveBackBufferLength:t;let m=-1/0;if(ze(t)&&t>=0){const p=Math.max(t,f);m=Math.floor(d/f)*f-p}if(r){const p=this.getLoopBackBufferFlushEnd(r,s??null);p>0&&(m=Math.max(m,p))}if(m>0&&this.flushBackBuffer(d,f,m),ze(e)&&e>0){const p=Math.max(u.maxBufferLength,e),y=Math.max(p,f),v=Math.floor(d/f)*f+y;this.flushFrontBuffer(d,f,v)}}getLoopBackBufferFlushEnd(e,t){var r;const{media:s}=this;if(((r=this.hls)==null?void 0:r.config.loopBackBufferFlush)===!1||!(s!=null&&s.loop)||!t||e.level<=t.level)return 0;const{video:i,audiovideo:a}=e.elementaryStreams;if(i!=null&&i.partial||a!=null&&a.partial)return 0;const l=this.getEarliestElementaryStreamStart(e)-w$;return l<=0?0:(this.log(`Flushing lower quality back buffer for loop: level ${e.level}, range [0-${l.toFixed(3)}]`),l)}getEarliestElementaryStreamStart(e){const{audio:t,video:r,audiovideo:s}=e.elementaryStreams;let i=e.start;return s?i=Math.min(i,s.startDTS):(t&&(i=Math.min(i,t.startDTS)),r&&(i=Math.min(i,r.startDTS))),i}flushBackBuffer(e,t,r){this.sourceBuffers.forEach(([s,i])=>{if(i){const d=ft.getBuffered(i);if(d.length>0&&r>d.start(0)){var a,l,u;this.hls.trigger(M.BACK_BUFFER_REACHED,{bufferEnd:r});const f=this.tracks[s];if((a=this.details)!=null&&a.live)this.hls.trigger(M.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(f!=null&&f.ended&&!((l=this.media)!=null&&l.loop&&((u=this.hls)==null?void 0:u.config.loopBackBufferFlush)!==!1)){this.log(`Cannot flush ${s} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(M.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:s})}}})}flushFrontBuffer(e,t,r){this.sourceBuffers.forEach(([s,i])=>{if(i){const a=ft.getBuffered(i),l=a.length;if(l<2)return;const u=a.start(l-1),d=a.end(l-1);if(r>u||e>=u&&e<=d)return;this.hls.trigger(M.BUFFER_FLUSHING,{startOffset:u,endOffset:1/0,type:s})}})}getDurationAndRange(){var e;const{details:t,mediaSource:r}=this;if(!t||!this.media||(r==null?void 0:r.readyState)!=="open")return null;const s=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&r.setLiveSeekableRange){const d=Math.max(0,t.fragmentStart),f=Math.max(d,s);return{duration:1/0,start:d,end:f}}return{duration:1/0}}const i=(e=this.overrides)==null?void 0:e.duration;if(i)return ze(i)?{duration:i}:null;const a=this.media.duration,l=ze(r.duration)?r.duration:0;return s>l&&s>a||!ze(a)?{duration:s}:null}updateMediaSource({duration:e,start:t,end:r}){const s=this.mediaSource;!s||!this.media||s.readyState!=="open"||(s.duration!==e&&(ze(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),s.duration=e),t!==void 0&&r!==void 0&&(this.log(`MediaSource duration is set to ${s.duration}. Setting seekable range to ${t}-${r}.`),s.setLiveSeekableRange(t,r)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:r}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${qt(r)}`),this.tracksReady){var s;const i=(s=this.transferData)==null?void 0:s.tracks;i&&Object.keys(i).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach(([t,r])=>{if(t){const s=this.tracks[t];e[t]={buffer:r,container:s.container,codec:s.codec,supplemental:s.supplemental,levelCodec:s.levelCodec,id:s.id,metadata:s.metadata}}}),this.hls.trigger(M.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([t])=>{this.executeNext(t)})}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(M.ERROR,{type:nt.MEDIA_ERROR,details:ye.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:r}=this;if(!r)throw new Error("createSourceBuffers called when mediaSource was null");for(const i in e){const a=i,l=e[a];if(this.isPending(l)){const u=this.getTrackCodec(l,a),d=`${l.container};codecs=${u}`;l.codec=u,this.log(`creating sourceBuffer(${d})${this.currentOp(a)?" Queued":""} ${qt(l)}`);try{const f=r.addSourceBuffer(d),m=D0(a),p=[a,f];t[m]=p,l.buffer=f}catch(f){var s;this.error(`error while trying to add sourceBuffer: ${f.message}`),this.shiftAndExecuteNext(a),(s=this.operationQueue)==null||s.removeBlockers(),delete this.tracks[a],this.hls.trigger(M.ERROR,{type:nt.MEDIA_ERROR,details:ye.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:f,sourceBufferName:a,mimeType:d,parent:l.id});return}this.trackSourceBuffer(a,l)}}this.bufferCreated()}clearBufferAppendTimeoutId(e){e&&(self.clearTimeout(e.bufferAppendTimeoutId),e.bufferAppendTimeoutId=void 0)}getTrackCodec(e,t){const r=e.supplemental;let s=e.codec;r&&(t==="video"||t==="audiovideo")&&jc(r,"video")&&(s=CM(s,r));const i=M1(s,e.levelCodec);return i?t.slice(0,5)==="audio"?rf(i,this.appendSource):i:""}trackSourceBuffer(e,t){const r=t.buffer;if(!r)return;const s=this.getTrackCodec(t,e);this.tracks[e]={buffer:r,codec:s,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",(i,a)=>{const l=a.removedRanges;l!=null&&l.length&&(this.log(`${i} buffer removed ${df(l)}`),this.hls.trigger(M.BUFFER_FLUSHED,{type:i,start:l.start(0),end:l.end(l.length-1)}))})}get mediaSrc(){var e,t;const r=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return r==null?void 0:r.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t,r;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const s=this.currentOp(e);if(!s)return;if(s.onComplete(),(r=this.tracks[e])==null||(r=r.buffer)==null?void 0:r.updating){this.log(`${e} SourceBuffer updating on "updateend"`),this.blockUntilOpen(()=>{this.shiftAndExecuteNext(e)});return}this.shiftAndExecuteNext(e)}onSBUpdateError(e,t){var r;const s=(r=this.mediaSource)==null?void 0:r.readyState,i=new Error(`${e} SourceBuffer error. MediaSource readyState: ${s}`);this.error(`${i.message}`,t),this.hls.trigger(M.ERROR,{type:nt.MEDIA_ERROR,details:ye.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:i,fatal:!1});const a=this.currentOp(e);a&&a.onError(i)}updateTimestampOffset(e,t,r,s,i,a){const l=t-e.timestampOffset;Math.abs(l)>=r&&(this.log(`Updating ${s} SourceBuffer timestampOffset to ${t} (sn: ${i} cc: ${a})`),e.timestampOffset=t)}removeExecutor(e,t,r){const{media:s,mediaSource:i}=this,a=this.tracks[e],l=a==null?void 0:a.buffer;if(!s||!i||!l)throw new Error(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`);const u=ze(s.duration)?s.duration:1/0,d=ze(i.duration)?i.duration:1/0,f=Math.max(0,t);if(f>=d){var m;(m=this.currentOp(e))==null||m.onComplete(),this.shiftAndExecuteNext(e);return}const p=Math.min(r,u,d);if(p>f&&(!a.ending||a.ended))a.ended=!1,this.log(`Removing [${f},${p}] from the ${e} SourceBuffer`),l.remove(f,p);else throw new Error(`Cannot remove ${p<=f?`invalid range (${f} >= ${p}) `:""}from the ${e} SourceBuffer${a.ending?" while track ending":""}`)}appendExecutor(e,t){const r=this.tracks[t],s=r==null?void 0:r.buffer;if(!s)throw new I$(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);if(r.ending=!1,r.ended=!1,this.hls.config.appendTimeout!==1/0){const i=this.calculateAppendTimeoutTime(s);r.bufferAppendTimeoutId=self.setTimeout(()=>this.appendTimeoutHandler(t,s,i),i)}s.appendBuffer(e)}appendTimeoutHandler(e,t,r){this.log(`Received timeout after ${r}ms for append on ${e} source buffer. Aborting and triggering error.`);try{t.abort()}catch{this.log(`Failed to abort append on ${e} source buffer after timeout.`)}const s=this.currentOp(e);s&&s.onError(new Error(`${e}-append-timeout`))}calculateAppendTimeoutTime(e){let t=qb;this.details&&(t=this.details.levelTargetDuration);let r=2*t*1e3;if(this.media===null)return r;const s=ft.bufferInfo(e,this.media.currentTime,0);return s.len?(r=Math.max(s.len*1e3,r),Math.max(this.hls.config.appendTimeout,r)):r}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch(t=>{this.warn(`SourceBuffer blocked callback ${t}
895`),this.stepOperationQueue(this.sourceBufferTypes)});else try{e()}catch(t){this.warn(`Callback run without blocking ${this.operationQueue} ${t}`)}}isUpdating(){return this.sourceBuffers.some(([e,t])=>e&&t.updating)}isQueued(){return this.sourceBuffers.some(([e])=>e&&!!this.currentOp(e))}isPending(e){return!!e&&!e.buffer}isAudioBlocked(){var e;return((e=this.currentOp("audio"))==null?void 0:e.label)==="block-audio"}isAudioBlocking(){return this.operationQueue?this.operationQueue.audioBlocking():!1}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);const{operationQueue:r}=this,i=t.length===2&&this.isAudioBlocking()?[this.appendBlocker("video")]:t.map(a=>this.appendBlocker(a));return Promise.all(i).then(a=>{r===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(e){e.forEach(t=>{var r;const s=(r=this.tracks[t])==null?void 0:r.buffer;!s||s.updating||t==="audio"&&this.isAudioBlocked()||this.shiftAndExecuteNext(t)})}append(e,t,r){this.operationQueue&&this.operationQueue.append(e,t,r)}insertNext(e,t){this.operationQueue&&this.operationQueue.insertNext(e,t)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((e,t)=>e+(this.isPending(this.tracks[t])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((e,[t])=>e+(t?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([e])=>e).filter(e=>!!e)}addBufferListener(e,t,r){const s=this.tracks[e];if(!s)return;const i=s.buffer;if(!i)return;const a=r.bind(this,e);s.listeners.push({event:t,listener:a}),Mt(i,t,a)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const r=t.buffer;r&&(t.listeners.forEach(s=>{jt(r,s.event,s.listener)}),t.listeners.length=0)}}function s7(n){const e=n.querySelectorAll("source");[].slice.call(e).forEach(t=>{n.removeChild(t)})}function A$(n,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,n.appendChild(t)}function D0(n){return n==="audio"?1:0}function i7(n,e){return`${n?"":" - triggering recovery"}${e?" with HTMLMediaElement Error: "+e.message:""}`}function a7(n){return`${n.type}_${n.sn}_${n.level}`}function j0(n,e){const{start:t,end:r}=e;let s=0;for(let i=0;i<n.length;i++){const a=n[i];if(a.start>=r)break;const l=Math.max(t,a.start),u=Math.min(r,a.end);u>l&&(s+=u-l)}return s}function o7(n,e){return e.duration-n<=.05}class s8{constructor(e){this.hls=null,this.autoLevelCapping=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.observer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.media=null,this.restrictedLevels=[],this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),(this.timer||this.observer)&&this.stopCapping(),this.media=this.clientRect=this.hls=null,this.streamController=void 0}registerListeners(){const{hls:e}=this;e&&(e.on(M.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(M.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(M.MANIFEST_PARSED,this.onManifestParsed,this),e.on(M.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(M.BUFFER_CODECS,this.onBufferCodecs,this),e.on(M.MEDIA_DETACHING,this.onMediaDetaching,this))}unregisterListener(){const{hls:e}=this;e&&(e.off(M.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(M.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(M.MANIFEST_PARSED,this.onManifestParsed,this),e.off(M.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(M.BUFFER_CODECS,this.onBufferCodecs,this),e.off(M.MEDIA_DETACHING,this.onMediaDetaching,this))}onFpsDropLevelCapping(e,t){if(!this.hls)return;const r=this.hls.levels[t.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})}onMediaAttaching(e,t){const r=t.media;this.clientRect=null,this.hls&&(r instanceof HTMLVideoElement?(this.media=r,this.hls.config.capLevelToPlayerSize&&this.observe()):this.media=null,(this.timer||this.observer)&&this.hls.levels.length>1&&this.detectPlayerSize())}onManifestParsed(e,t){this.restrictedLevels=[],t.video&&this.startCapping(),this.onLevelsUpdated()}onLevelsUpdated(){if(this.hls){if((this.timer||this.observer)&&(ze(this.autoLevelCapping)||this.clientRect))this.detectPlayerSize();else if(this.observer===void 0&&this.timer===void 0){const e=this.hls.levels;e.length>1&&e.some(t=>!!t.videoCodec)&&this.startCapping()}}}onBufferCodecs(e,t){t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0||!this.hls){this.clientRect=null;return}const e=this.hls.levels;if(e.length>1){const t=this.hls,r=this.getMaxLevel(e.length-1);r!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${r}: ${e[r].height}p@${e[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=r,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}else e.length===1&&this.stopCapping()}}getMaxLevel(e){if(!this.hls)return-1;const t=this.hls.levels;if(!t.length)return-1;const r=t.filter((s,i)=>this.isLevelAllowed(s)&&i<=e);return this.observer||(this.clientRect=null),s8.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)}observe(){const e=self.ResizeObserver;e&&(this.observer=new e(t=>{var r;const s=(r=t[0])==null?void 0:r.contentRect;s&&(this.clientRect=s,this.detectPlayerSize())})),this.observer&&this.media&&this.observer.observe(this.media)}startCapping(){var e;this.timer||this.observer||!((e=this.hls)!=null&&e.config.capLevelToPlayerSize)||(self.clearInterval(this.timer),this.timer=void 0,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.observe(),this.observer||(this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3)),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0),this.observer&&(this.observer.disconnect(),this.observer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const r=e.getBoundingClientRect();t.width=r.width,t.height=r.height,!t.width&&!t.height&&(t.width=r.right-r.left||e.
vendor: 4,222 bytes, line 895
895width||0,t.height=r.bottom-r.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls)return e;const{ignoreDevicePixelRatio:t,maxDevicePixelRatio:r}=this.hls.config;if(!t)try{e=self.devicePixelRatio}catch{}return Math.min(e,r)}isLevelAllowed(e){return!this.restrictedLevels.some(r=>e.bitrate===r.bitrate&&e.width===r.width&&e.height===r.height)}static getMaxLevelByMediaSize(e,t,r){if(!(e!=null&&e.length))return-1;const s=(l,u)=>u?l.width!==u.width||l.height!==u.height:!0;let i=e.length-1;const a=Math.max(t,r);for(let l=0;l<e.length;l+=1){const u=e[l];if((u.width>=a||u.height>=a)&&s(u,e[l+1])){i=l;break}}return i}}var lr=class Xm{constructor(e,t){Array.isArray(e)&&(e=e.map(r=>r instanceof Xm?r:new Xm(r))),this.value=e,this.params=t}};const L$="Dict";function N$(n){return Array.isArray(n)?JSON.stringify(n):n instanceof Map?"Map{}":n instanceof Set?"Set{}":typeof n=="object"?JSON.stringify(n):String(n)}function k$(n,e,t,r){return new Error(`failed to ${n} "${N$(e)}" as ${t}`,{cause:r})}const l7="Bare Item",P$="Boolean",_$="Byte Sequence",O$="Decimal",D$="Integer";function j$(n){return n<-999999999999999||999999999999999<n}const M$="String",F$=/[\x00-\x1f\x7f]+/;var AS=class{constructor(n){this.description=n}};const $$="Token",B$="Key";function Is(n,e,t){return k$("serialize",n,e,t)}function U$(n){if(typeof n!="boolean")throw Is(n,P$);return n?"?1":"?0"}function V$(n){if(ArrayBuffer.isView(n)===!1)throw Is(n,_$);return`:${Nj(n)}:`}function LS(n){if(j$(n))throw Is(n,D$);return n.toString()}function z$(n){return`@${LS(n.getTime()/1e3)}`}function G$(n){const e=gb(n,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Is(n,O$);const t=e.toString();return t.includes(".")?t:`${t}.0`}function H$(n){if(F$.test(n))throw Is(n,M$);return`"${n.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function W$(n){return n.description||n.toString().slice(7,-1)}function c7(n){const e=W$(n);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Is(e,$$);return e}function Zm(n){switch(typeof n){case"number":if(!ze(n))throw Is(n,l7);return Number.isInteger(n)?LS(n):G$(n);case"string":return H$(n);case"symbol":return c7(n);case"boolean":return U$(n);case"object":if(n instanceof Date)return z$(n);if(n instanceof Uint8Array)return V$(n);if(n instanceof AS)return c7(n);default:throw Is(n,l7)}}function Qm(n){if(/^[a-z*][a-z0-9\-_.*]*$/.test(n)===!1)throw Is(n,B$);return n}function i8(n){return n==null?"":Object.entries(n).map(([e,t])=>t===!0?`;${Qm(e)}`:`;${Qm(e)}=${Zm(t)}`).join("")}function NS(n){return n instanceof lr?`${Zm(n.value)}${i8(n.params)}`:Zm(n)}function K$(n){return`(${n.value.map(NS).join(" ")})${i8(n.params)}`}function q$(n,e={whitespace:!0}){if(typeof n!="object"||n==null)throw Is(n,L$);const t=n instanceof Map?n.entries():Object.entries(n),r=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([s,i])=>{i instanceof lr||(i=new lr(i));let a=Qm(s);return i.value===!0?a+=i8(i.params):(a+="=",Array.isArray(i.value)?a+=K$(i):a+=NS(i)),a}).join(`,${r}`)}function kS(n,e){return q$(n,e)}const Y$=["url"],X$=["version","eventTargets","sid","transmissionMode"],Z$=["customData","headers"],u7=n=>n instanceof lr?new lr(Math.round(n.value),n.params):Math.round(n),M0=n=>Array.isArray(n)?n.map(u7):u7(n),Jm=(n,e)=>Array.isArray(n)?n.map(t=>Jm(t,e)):n instanceof lr&&typeof n.value=="string"?new lr(Jm(n.value,e),n.params):(e.baseUrl&&(n=Oj(n,_j(e.baseUrl))),e.version===1?encodeURIComponent(n):n),d7=n=>n instanceof lr?new lr(Math.round(n.value/100)*100,n.params):Math.round(n/100)*100,d1=n=>Array.isArray(n)?n.map(d7):d7(n),Q$=(n,e)=>{let t=n;return e.version>=2&&(n instanceof lr&&typeof n.value=="string"?t=new lr([n]):typeof n=="string"&&(t=[n])),Jm(t,e)},J$={br:M0,d:M0,bl:d1,dl:d1,mtp:d1,nor:Q$,rtp:d1,tb:M0},zc=2,PS="bc",eB="ps",_S="pr",tB="e",f7="t",nB="c",OS="b",a8="rr",DS="ce",f1={BITRATE_CHANGE:PS,ERROR:tB,RESPONSE_RECEIVED:a8,CUSTOM_EVENT:DS},jS=new Map([[eB,"sta"],[_S,"pr"],[nB,"cid"],[OS,"bg"],[PS,"br"]]),o8="event",l8="request",MS=["cen","e","h","ts"],FS=["ab","bg","bl","br","bs","b
895sa","bsd","bsda","cdn","cid","cs","d","dfa","dl","ec","lab","lb","ltc","msd","mtp","nor","nr","ot","pb","pr","pt","rtp","sf","sid","sn","st","sta","su","tab","tb","tbl","tpb","v"],rB=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function c8(n){return rB.test(n)}const sB=new Set(FS);function $S(n){return sB.has(n)||c8(n)}const BS=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"],iB=new Set(BS);function US(n){return iB.has(n)}const aB=new Set(MS);function oB(n){return $S(n)||US(n)||aB.has(n)}const lB=new Set(["ab","bl","br","bsa","bsd","bsda","lab","lb","mtp","pb","tab","tb","tbl","tpb"]),Zf=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"],cB=new Set(Zf);function uB(n){return cB.has(n)||c8(n)}const dB=new Set(["ot","sf","st","e","sta"]);function fB(n){return dB.has(n)}function hB(n){return typeof n=="number"?ze(n):n!=null&&n!==""&&n!==!1}const mB={[o8]:oB,[l8]:$S};function VS(n,e){if(Array.isArray(n)){let t;return e&&(t=n.find(r=>{var s;return((s=r.params)==null?void 0:s.ot)===e})),t||(t=n[0]),VS(t)}return n instanceof lr?n.value:n}function pB(n){const e={};for(const[r,s]of Object.entries(n)){if(s==null){e[r]=s;continue}if(r==="nor"){const i=(Array.isArray(s)?s:[s])[0];if(i instanceof lr){var t;e.nor=i.value,(t=i.params)!=null&&t.r&&(e.nrr=i.params.r)}else e.nor=i}else lB.has(r)?e[r]=VS(s,n.ot):e[r]=s}return e}function zS(n,e={}){const t={};if(n==null||typeof n!="object")return t;const r=e.version||n.v||zc,s=e.reportingMode||l8,i=r===1?pB(n):n,a=r===1?uB:mB[s];let l=Object.keys(i).filter(a);i.e&&i.e!==a8&&(l=l.filter(y=>!US(y)));const u=e.filter;typeof u=="function"&&(l=l.filter(u));const d=s===o8;if(d){const y=i.e;!l.includes("e")&&y!=null&&l.push("e"),l.includes("ts")||l.push("ts"),!l.includes("cen")&&i.cen!=null&&y===DS&&l.push("cen");const v=y?jS.get(y):void 0;v&&i[v]!=null&&!l.includes(v)&&l.push(v)}if(l.length===0)return t;r>1&&!l.includes("v")&&l.push("v");const f={version:r,reportingMode:s,baseUrl:e.baseUrl};l.sort();for(const y of l){var m,p;let v=i[y];const x=(m=(p=e.formatters)==null?void 0:p[y])!=null?m:J$[y];if(typeof x=="function"&&(v=x(v,f)),y==="v"){if(r===1)continue;v=r}if(y==="pr"&&v===1&&!(d&&i.e===_S))continue;d&&y==="ts"&&!ze(v)&&(v=Date.now());const b=d&&v===!1&&y==="bg"&&i.e===OS;!hB(v)&&!b||(fB(y)&&typeof v=="string"&&(v=new AS(v)),t[y]=v)}return t}const Fs="CMCD-Object",tr="CMCD-Request",wo="CMCD-Session",Gr="CMCD-Status",gB={REQUEST:tr},yB={ab:Fs,br:Fs,d:Fs,lab:Fs,lb:Fs,ot:Fs,tab:Fs,tb:Fs,tpb:Fs,bl:tr,cs:tr,dfa:tr,dl:tr,ltc:tr,mtp:tr,nor:tr,nrr:tr,pb:tr,sn:tr,sta:tr,su:tr,tbl:tr,cid:wo,msd:wo,sf:wo,sid:wo,st:wo,v:wo,bg:Gr,bs:Gr,bsa:Gr,bsd:Gr,bsda:Gr,cdn:Gr,ec:Gr,nr:Gr,pr:Gr,pt:Gr,rtp:Gr};function vB(n){return Object.keys(n).reduce((e,t)=>{var r;return(r=n[t])==null||r.forEach(s=>e[s]=t),e},{})}function xB(n,e){const t={};if(!n)return t;const r=Object.keys(n),s=e?vB(e):{};for(const a of r){var i;const l=yB[a]||s[a]||gB.REQUEST,u=(i=t[l])!=null?i:t[l]={};u[a]=n[a]}return t}function CB(n,e){const t={},r=xB(n,e);for(const[s,i]of Object.entries(r)){const a=kS(i,{whitespace:!1});a&&(t[s]=a)}return t}const h7="CMCD";function GS(n){return kS(n,{whitespace:!1})}function bB(n,e={}){return n?GS(zS(n,e)):""}const SB=30,e5=[...Zf,...FS,...BS,...MS].filter((n,e,t)=>t.indexOf(n)===e),EB="application/cmcd",wB=1,Nn={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",
895KEY:"k",OTHER:"o"},Hr={STARTING:"s",PLAYING:"p",SEEKING:"k",REBUFFERING:"r",PAUSED:"a",ENDED:"e",FATAL_ERROR:"f",PRELOADING:"d"},u8="query",HS="headers";function m7(n,e,t){var r;const s=new Set((r=e.enabledKeys)!=null?r:[]);return{version:e.version||zc,reportingMode:n,filter:i=>s.has(i),baseUrl:t}}function TB(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++){const r=n[t],s=e[t];if(r===s)continue;if(typeof r=="number"||typeof s=="number"||r.value!==s.value)return!1;const i=r.params,a=s.params,l=i&&Object.keys(i)[0],u=a&&Object.keys(a)[0];if(l!==u||l!==void 0&&u!==void 0&&i&&a&&i[l]!==a[u])return!1}return!0}const IB=Object.is,RB=n=>n,WS=Array.from(jS,([n,e])=>e==="br"?{event:n,field:e,equal:(t,r)=>t===void 0||r===void 0?t===r:TB(t,r),snapshot:t=>t.slice()}:{event:n,field:e,equal:IB,snapshot:RB}),AB=new Map(WS.map(n=>[n.event,n]));function LB(n){const{url:e}=n,t=qf(n,Y$);return fetch(e,t)}function NB(n){const{version:e=zc,eventTargets:t=[],sid:r=yb(),transmissionMode:s=u8}=n,i=qf(n,X$);return st(st({},i),{},{version:e,transmissionMode:s,sid:r,eventTargets:t.reduce((a,l)=>{var u,d,f;return l!=null&&l.url&&(u=l.events)!=null&&u.length&&a.push({version:l.version||zc,enabledKeys:((d=l.enabledKeys)==null?void 0:d.slice())||[],url:l.url,events:l.events.slice(),interval:(f=l.interval)!=null?f:SB,batchSize:l.batchSize||1}),a},[])})}var kB=class{constructor(n,e=LB){var t;this.timeOrigin=performance.timeOrigin||((t=performance.timing)==null?void 0:t.fetchStart)||Date.now()-performance.now(),this.data={},this.msd=NaN,this.eventTargets=new Map,this.lastEmitted={},this.requestTarget={sn:0,msdSent:!1},this.config=NB(n),this.data={cid:this.config.cid,sid:this.config.sid,v:this.config.version},this.requester=e;for(const r of this.config.eventTargets)this.eventTargets.set(r,{intervalId:void 0,sn:0,msdSent:!1,queue:[]})}start(){this.eventTargets.forEach((n,e)=>{if(this.disarmInterval(n),e.interval===0||!e.events.includes(f7))return;const t=()=>{this.recordTargetEvent(n,e,f7),this.processEventTargets()};n.intervalId=setInterval(t,e.interval*1e3),t()})}stop(n=!1){n&&this.flush(),this.eventTargets.forEach(e=>{this.disarmInterval(e)})}flush(){this.processEventTargets(!0)}update(n){n.sid&&n.sid!==this.data.sid&&this.resetSession(),n.msd&&!isNaN(n.msd)&&(this.msd=n.msd),this.data=st(st(st({},this.data),n),{},{msd:void 0});for(const e of WS)e.field in n&&!e.equal(this.data[e.field],this.lastEmitted[e.field])&&this.recordEvent(e.event)}recordEvent(n,e={}){const t=AB.get(n);if(t){const r=t.field,s=e[r];s!==void 0&&Vt(this.data,{[r]:s});const i=this.data[r];if(i===void 0||t.equal(i,this.lastEmitted[r]))return;Vt(this.lastEmitted,{[r]:t.snapshot(i)})}this.eventTargets.forEach((r,s)=>{this.recordTargetEvent(r,s,n,e)}),this.processEventTargets()}recordTargetEvent(n,e,t,r={}){var s;if(!e.events.includes(t))return;const i=st(st(st({},this.data),r),{},{e:t,ts:(s=r.ts)!=null?s:Date.now(),sn:n.sn++});!isNaN(this.msd)&&!n.msdSent&&(i.msd=this.msd,n.msdSent=!0),n.queue.push(i)}recordResponseReceived(n,e={}){var t,r,s;const{request:i}=n,a=(t=e.url)!=null?t:i==null?void 0:i.url;if(!a)return;const l=new URL(a);l.searchParams.delete(h7);const u={url:l.toString(),rc:n.status},d=n.resourceTiming;d&&(d.startTime!=null&&(u.ts=Math.round(this.timeOrigin+d.startTime),d.responseStart!=null&&(u.ttfb=Math.round(d.responseStart-d.startTime))),d.duration!=null&&(u.ttlb=Math.round(d.duration)));const f=(r=(s=i.customData)==null?void 0:s.cmcd)!=null?r:{};this.recordEvent(a8,st(st(st({},f),u),e))}applyRequestReport(n){var e;return(e=this.createRequestReport(n))!=null?e:n}isRequestReportingEnabled(){var n;return!!((n=this.config.enabledKeys)!=null&&n.length)}createRequestReport(n,e){var t;const{customData:r={},headers:s={}}=n,i=qf(n,Z$),a=st(st({},i),{},{headers:st({},s),customData:st(st({},r),{},{cmcd:{}})});if(!((t=this.config.enabledKeys)!=null&&t.length)||!a.url)return a;const l=new URL(a.url),u=st(st(st({},this.data),e),{},{sn:this.requestTarget.sn++}),d=m7(l8,this.config,a.url);!isNaN(this.msd)&&!this.requestTarget.msdSent&&(u.msd=this.msd,this.requestTarget.msdSent=!0);const f=a.customData.cmcd=zS(u,d);switch(this.config.transmissionMode){case u8:const m=GS(f);m&&(l.searchParams.set(h7,m),a.url=l.toString());break;
895case HS:Vt(a.headers,CB(f,d.customHeaderMap));break}return a}processEventTargets(n=!1){let e=!1;this.eventTargets.forEach((t,r)=>{const{queue:s}=t;if(!s.length||s.length<r.batchSize&&!n)return;const i=n?s.length:r.batchSize,a=s.splice(0,i);this.sendEventReport(r,a).catch(()=>{t.queue.unshift(...a)}),e||(e=s.length>0)}),e&&this.processEventTargets()}async sendEventReport(n,e){const t=m7(o8,n),{status:r}=await this.requester({url:n.url,method:"POST",headers:{"Content-Type":EB},body:e.map(s=>bB(s,t)).join(`
896`)+`
897`});if(r===410)this.disposeEventTarget(n);else if(r===429||r>499&&r<600)throw new Error(`Event report failed with status ${r}`)}disarmInterval(n){clearInterval(n.intervalId),n.intervalId=void 0}disposeEventTarget(n){const e=this.eventTargets.get(n);e&&(this.disarmInterval(e),this.eventTargets.delete(n))}resetSession(){this.eventTargets.forEach(n=>n.sn=0),this.requestTarget.sn=0,this.lastEmitted={}}};const PB={HLS:"h"},F0={VOD:"v",LIVE:"l",LOW_LATENCY:"ll"};function _B(n,e){return new lr(n,e)}new Set(Zf);new Set(e5);const OB=["includeKeys"];function p7(n){return Object.keys(n).every(c8)}class DB{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.playerState=void 0,this.reporter=void 0,this.playheadLevel=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0,this.setPlayerState(Hr.REBUFFERING)),this.buffering=!0},this.onPlay=()=>{this.initialized||this.setPlayerState(Hr.STARTING)},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1,this.setPlayerState(Hr.PLAYING)},this.onPause=()=>{this.media&&!this.media.ended&&this.setPlayerState(Hr.PAUSED)},this.onSeeking=()=>{this.initialized&&this.setPlayerState(Hr.SEEKING)},this.onSeeked=()=>{var s;this.initialized&&(s=this.media)!=null&&s.paused&&this.setPlayerState(Hr.PAUSED)},this.onRateChange=()=>{this.reporter&&this.media&&this.reporter.update({pr:this.media.playbackRate})},this.applyPlaylistData=s=>{try{this.apply(s,{ot:Nn.MANIFEST,su:!this.initialized})}catch(i){this.hls.logger.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=s=>{try{const{frag:l,part:u}=s,d=this.hls.levels[l.level],f=this.getObjectType(l,d),m={d:(u||l).duration*1e3,ot:f};if(f===Nn.VIDEO||f===Nn.AUDIO||f===Nn.MUXED||f==null&&(l.type==="main"||l.type==="audio")){var i;const y=d.bitrate/1e3;m.br=[y];const{cmcd:v}=this.config,x=(i=v==null?void 0:v.rtpSafetyFactor)!=null?i:5;if(m.rtp=Math.round(y*x/100)*100,f===Nn.MUXED||f==null&&l.type==="main"){const T=this.getTopBandwidth()/1e3;ze(T)&&(m.tb=[T]);const w=this.getLowestBandwidth()/1e3;ze(w)&&(m.lb=[w])}const b=this.getBufferLength(l);if(ze(b)){var a;m.bl=[b];const T=((a=this.media)==null?void 0:a.playbackRate)||1;m.dl=Math.round(b/T/100)*100}this.playheadLevel&&(m.pb=[this.playheadLevel.bitrate/1e3]);const E=this.hls.maxAutoLevel;if(E>=0){const T=this.hls.levels[E];T&&(m.tpb=[T.bitrate/1e3])}}const p=u?this.getNextPart(u):this.getNextFrag(l);p!=null&&p.url&&p.url!==l.url&&(p.byteRange.length>0?m.nor=[_B(p.url,{r:`${p.byteRange[0]}-${p.byteRange[1]}`})]:m.nor=[p.url]),this.apply(s,m)}catch(l){this.hls.logger.warn("Could not generate segment CMCD data.",l)}},this.recordFragmentResponse=(s,i,a)=>{var l;const{cmcd:u}=this.config,d=u==null||(l=u.eventTargets)==null?void 0:l.some(f=>{var m;return(m=f.events)==null?void 0:m.includes(f1.RESPONSE_RECEIVED)});if(!(!this.reporter||!(a.loading.first>0)||!d))try{this.reporter.recordResponseReceived({request:{url:s},status:i.code,resourceTiming:{startTime:a.loading.start,responseStart:a.loading.first,duration:a.loading.end-a.loading.start,encodedBodySize:a.total}})}catch(f){this.hls.logger.warn("Could not record fragment response CMCD data.",f)}},this.hls=e;const t=this.config=e.config,{cmcd:r}=t;r!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.registerListeners())}createReporter(){var e,t;const{cmcd:r}=this.config;if(r==null)return;const s=r.version||wB;if(this.reporter=new kB({sid:r.sessionId||this.hls.sessionId,cid:r.contentId,version:s,transmissionMode:r.useHeaders===!0?HS:u8,enabledKeys:(e=r.includeKeys)!=null?e:[...s>=zc?e5:Zf],eventTargets:((t=r.eventTargets)!=null?t:[]).map(i=>{let{includeKeys:a}=i,l=qf(i,OB);return st(st({},l),{},{enabledKeys:a??e5})})},r.loader),this.reporter.update({sf:PB.HLS,sta:this.playerState}),r.reporterCallback){const i=this.reporter,a={updateCustomData:l=>{p7(l)&&i.update(l)}
897,recordCustomEvent:(l,u={})=>{p7(u)&&i.recordEvent(f1.CUSTOM_EVENT,st({cen:l},u))}};r.reporterCallback(a)}this.reporter.start()}registerListeners(){const e=this.hls;e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(M.MEDIA_DETACHED,this.onMediaDetached,this),e.on(M.MEDIA_ENDED,this.onMediaEnded,this),e.on(M.ERROR,this.onError,this),e.on(M.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(M.LEVEL_SWITCHED,this.onLevelSwitched,this),e.on(M.BUFFER_APPENDED,this.onBufferInfoChange,this),e.on(M.BUFFER_FLUSHED,this.onBufferInfoChange,this)}unregisterListeners(){const e=this.hls;e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(M.MEDIA_DETACHED,this.onMediaDetached,this),e.off(M.MEDIA_ENDED,this.onMediaEnded,this),e.off(M.ERROR,this.onError,this),e.off(M.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(M.LEVEL_SWITCHED,this.onLevelSwitched,this),e.off(M.BUFFER_APPENDED,this.onBufferInfoChange,this),e.off(M.BUFFER_FLUSHED,this.onBufferInfoChange,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.reporter&&(this.reporter.stop(!0),this.reporter=void 0),this.hls=this.config=null,this.onWaiting=this.onPlay=this.onPlaying=this.onPause=null,this.onSeeking=this.onSeeked=this.onRateChange=this.media=null}onMediaAttaching(e,t){const r=this.media=t.media;this.setPlayerState(this.media.autoplay?Hr.STARTING:Hr.PRELOADING),Mt(r,"waiting",this.onWaiting),Mt(r,"play",this.onPlay),Mt(r,"playing",this.onPlaying),Mt(r,"pause",this.onPause),Mt(r,"seeking",this.onSeeking),Mt(r,"seeked",this.onSeeked),Mt(r,"ratechange",this.onRateChange)}onMediaDetached(){const e=this.media;e&&(jt(e,"waiting",this.onWaiting),jt(e,"play",this.onPlay),jt(e,"playing",this.onPlaying),jt(e,"pause",this.onPause),jt(e,"seeking",this.onSeeking),jt(e,"seeked",this.onSeeked),jt(e,"ratechange",this.onRateChange),this.media=null)}onMediaEnded(e,t){this.setPlayerState(Hr.ENDED)}onManifestLoading(e,t){this.initialized=!1,this.starved=!1,this.buffering=!0,this.reporter&&(this.reporter.stop(!0),this.reporter=void 0),this.createReporter(),this.media||this.setPlayerState(Hr.PRELOADING)}onError(e,t){t.fatal&&(this.setPlayerState(Hr.FATAL_ERROR),this.reporter&&this.reporter.recordEvent(f1.ERROR,{ec:[t.details]}))}onLevelSwitching(e,t){var r;if(!this.reporter)return;const s={br:[t.bitrate/1e3]},i=(r=t.details)==null?void 0:r.fragments[0];i&&(s.ot=this.getObjectType(i,t)),this.reporter.recordEvent(f1.BITRATE_CHANGE,s)}onLevelSwitched(e,t){const r=this.hls.levels[t.level];r&&(this.playheadLevel=r)}setPlayerState(e){this.playerState=e,this.reporter&&this.reporter.update({sta:e})}getStreamType(){const e=this.hls.latestLevelDetails;if(e)return e.live?e.partList&&e.canBlockReload?F0.LOW_LATENCY:F0.LIVE:F0.VOD}apply(e,t={}){var r;if(!this.reporter)return;this.reporter.update({mtp:[this.hls.bandwidthEstimate/1e3],pr:(r=this.media)==null?void 0:r.playbackRate,st:this.getStreamType()});const s=t.ot===Nn.INIT||t.ot===Nn.VIDEO||t.ot===Nn.MUXED;this.starved&&s&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const i=this.reporter.createRequestReport({url:e.url,headers:e.headers},t);e.url=i.url,e.headers=i.headers}getNextFrag(e){var t;const r=(t=this.hls.levels[e.level])==null?void 0:t.details;if(r){const s=e.sn-r.startSN;return r.fragments[s+1]}}getNextPart(e){var t;const{index:r,fragment:s}=e,i=(t=this.hls.levels[s.level])==null||(t=t.details)==null?void 0:t.partList;if(i){const{sn:a}=s;for(let l=i.length-1;l>=0;l--){const u=i[l];if(u.index===r&&u.fragment.sn===a)return i[l+1]}}}getObjectType(e,t){const{type:r}=e;if(r==="subtitle")return Nn.TIMED_TEXT;if(e.sn==="initSegment")return Nn.INIT;if(r==="audio")return Nn.AUDIO;if(r==="main"){if(e.hasStreams){const s=e.elementaryStreams;if(s.audiovideo)return Nn.MUXED;if(s.video)return Nn.VIDEO;if(s.audio)return Nn.AUDIO}if(t){const{audioCodec:s,videoCodec:i}=t;if(!this.hls.audioTracks.length){if(s&&i)return Nn.MUXED;if(s)return Nn.AUDIO}if(i)return Nn.VIDEO}}}getTopBandwidth(){let e=0;const t=this.hls,r=t.maxAutoLevel,s=r>-1?r+1:t.levels.length;
897return t.levels.slice(0,s).forEach(a=>{a.bitrate>e&&(e=a.bitrate)}),e>0?e:NaN}getLowestBandwidth(){let e=1/0;const t=this.hls,r=t.maxAutoLevel,s=r>-1?r+1:t.levels.length;return t.levels.slice(0,s).forEach(a=>{a.bitrate<e&&(e=a.bitrate)}),ze(e)?e:NaN}getBufferLength(e){if(!this.media)return NaN;const t=e.type==="audio"?this.hls.audioForwardBufferInfo:this.hls.mainForwardBufferInfo;return t?t.len*1e3:NaN}getEventBufferLength(){if(!this.media)return NaN;const e=this.hls.mainForwardBufferInfo,t=this.hls.audioForwardBufferInfo;if(e&&t)return Math.min(e.len,t.len)*1e3;const r=e||t;return r?r.len*1e3:NaN}onBufferInfoChange(e,t){if(!this.reporter)return;const r=this.getEventBufferLength();ze(r)&&this.reporter.update({bl:[r]})}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,r=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new r(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,a,l){t(i),this.loader.load(i,a,l)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,r=this.recordFragmentResponse,s=e||this.config.loader;return class{constructor(a){this.loader=void 0,this.loader=new s(a)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(a,l,u){t(a);const{onSuccess:d}=u;this.loader.load(a,l,st(st({},u),{},{onSuccess:(f,m,p,y)=>{d(f,m,p,y),r(a.url,f,m)}}))}}}}const jB=3e5;class MB extends Sr{constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(M.MANIFEST_PARSED,this.onManifestParsed,this),e.on(M.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(M.MANIFEST_PARSED,this.onManifestParsed,this),e.off(M.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((e,t)=>(e.indexOf(t.pathwayId)===-1&&e.push(t.pathwayId),e),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(r=>r!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:r}=t;r!==null&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:r}=t;if((r==null?void 0:r.action)===kn.SendAlternateToPenaltyBox&&r.flags&Tn.MoveAllAlternatesMatchingHost){const s=this.levels;let i=this._pathwayPriority,a=this.pathwayId;if(t.context){const{groupId:l,pathwayId:u,type:d}=t.context;l&&s?a=this.getPathwayForGroupId(l,d,a):u&&(a=u)}a in this.penalizedPathways||(this.penalizedPathways[a]=performance.now()),!i&&s&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),r.resolved=this.pathwayId!==a,!r.resolved&&(t.details!==ye.BUFFER_APPEND_ERROR||t.fatal)&&this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${a} levels: ${s&&s.length} priorities: ${qt(i)} penalized: ${qt(this.penalizedPathways)}`))}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const r=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${r}"`),t=this.getLevelsForPathway(r),this.pathwayId=r}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return this.levels===null?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){this._pathwayPriority=e;let t;const r=this.penalizedPathways,s=performance.now();Object.keys(r).forEach(i=>
vendor: 4,363 bytes, line 897
897{s-r[i]>jB&&delete r[i]});for(let i=0;i<e.length;i++){const a=e[i];if(a in r)continue;if(a===this.pathwayId)return;const l=this.hls.nextLoadLevel,u=this.hls.levels[l];if(t=this.getLevelsForPathway(a),t.length>0){this.log(`Setting Pathway to "${a}"`),this.pathwayId=a,iS(t),this.hls.trigger(M.LEVELS_UPDATED,{levels:t});const d=this.hls.levels[l];u&&d&&this.levels&&(d.attrs["STABLE-VARIANT-ID"]!==u.attrs["STABLE-VARIANT-ID"]&&d.bitrate!==u.bitrate&&this.log(`Unstable Pathways change from bitrate ${u.bitrate} to ${d.bitrate}`),this.hls.nextLoadLevel=l);break}}}getPathwayForGroupId(e,t,r){const s=this.getLevelsForPathway(r).concat(this.levels||[]);for(let i=0;i<s.length;i++)if(t===St.AUDIO_TRACK&&s[i].hasAudioGroup(e)||t===St.SUBTITLE_TRACK&&s[i].hasSubtitleGroup(e))return s[i].pathwayId;return r}clonePathways(e){const t=this.levels;if(!t)return;const r={},s={};e.forEach(i=>{const{ID:a,"BASE-ID":l,"URI-REPLACEMENT":u}=i;if(t.some(f=>f.pathwayId===a))return;const d=this.getLevelsForPathway(l).map(f=>{const m=new an(f.attrs);m["PATHWAY-ID"]=a;const p=m.AUDIO&&`${m.AUDIO}_clone_${a}`,y=m.SUBTITLES&&`${m.SUBTITLES}_clone_${a}`;p&&(r[m.AUDIO]=p,m.AUDIO=p),y&&(s[m.SUBTITLES]=y,m.SUBTITLES=y);const v=KS(f.uri,m["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",u),x=new Fc({attrs:m,audioCodec:f.audioCodec,bitrate:f.bitrate,height:f.height,name:f.name,url:v,videoCodec:f.videoCodec,width:f.width});if(f.audioGroups)for(let b=1;b<f.audioGroups.length;b++)x.addGroupId("audio",`${f.audioGroups[b]}_clone_${a}`);if(f.subtitleGroups)for(let b=1;b<f.subtitleGroups.length;b++)x.addGroupId("text",`${f.subtitleGroups[b]}_clone_${a}`);return x});t.push(...d),g7(this.audioTracks,r,u,a),g7(this.subtitleTracks,s,u,a)})}loadSteeringManifest(e){const t=this.hls.config,r=t.loader;this.loader&&this.loader.destroy(),this.loader=new r(t);let s;try{s=new self.URL(e)}catch{this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(s.protocol!=="data:"){const f=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;_i(s,"_HLS_pathway",this.pathwayId),_i(s,"_HLS_throughput",""+f)}const i={type:St.STEERING_MANIFEST,responseType:"json",url:s.href},a=t.steeringManifestLoadPolicy.default,l=a.errorRetry||a.timeoutRetry||{},u={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:l.maxNumRetry||0,retryDelay:l.retryDelayMs||0,maxRetryDelay:l.maxRetryDelayMs||0},d={onSuccess:(f,m,p,y)=>{this.log(`Loaded steering manifest: "${s}"`);const v=f.data;if((v==null?void 0:v.VERSION)!==1){this.log(`Steering VERSION ${v.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=v.TTL;const{"RELOAD-URI":x,"PATHWAY-CLONES":b,"PATHWAY-PRIORITY":E}=v;if(x)try{this.uri=new self.URL(x,s).href}catch{this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${x}`);return}this.scheduleRefresh(this.uri||p.url),b&&this.clonePathways(b);const T={steeringManifest:v,url:s.toString()};this.hls.trigger(M.STEERING_MANIFEST_LOADED,T),E&&this.updatePathwayPriority(E)},onError:(f,m,p,y)=>{if(this.log(`Error loading steering manifest: ${f.code} ${f.text} (${m.url})`),this.stopLoad(),f.code===410){this.enabled=!1,this.log(`Steering manifest ${m.url} no longer available`);return}let v=this.timeToLoad*1e3;if(f.code===429){const x=this.loader;if(typeof(x==null?void 0:x.getResponseHeader)=="function"){const b=x.getResponseHeader("Retry-After");b&&(v=parseFloat(b)*1e3)}this.log(`Steering manifest ${m.url} rate limited`);return}this.scheduleRefresh(this.uri||m.url,v)},onTimeout:(f,m,p)=>{this.log(`Timeout loading steering manifest (${m.url})`),this.scheduleRefresh(this.uri||m.url)}};this.log(`Requesting steering manifest: ${s}`),this.loader.load(i,u,d)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const s=(r=this.hls)==null?void 0:r.media;if(s&&!s.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function g7(n,e,t,r){n&&Object.keys(e).forEach(s=>{const i=n.filter(a=>a.groupId===s).map(a=>{const l=Vt({},a);return l.details=void 0,l.attrs=new an(l.attrs),l.url=l.attrs.URI=KS(a.url,a.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),l.groupId=l.attrs["GROUP-ID"]=e[s],l.attrs["PATHWAY-ID"]=r,l});n.push(...i)})}function KS(n,e,t,r){if(e){const{[t]:l}=r;if(l){const u=l[e];if(u)return u}}const{HOST:s,PARAMS:i}=r,a=new self.URL(n);
897return s&&(a.hostname=s),i&&Object.keys(i).sort().forEach(l=>{l&&_i(a,l,i[l])}),a.href}class FB{constructor(){this.status="initialized",this.requestErrors=[],this.licenseXhr=void 0,this.onmessage=void 0,this.onkeystatuseschange=void 0,this.emitter=new Qp,this.error=void 0,this.ok=void 0}get errored(){return this.error}set errored(e){this.error=e,this.emitter.eventNames().length&&this.emitter.emit("error",e)}get hasListeners(){return this.emitter.eventNames().length>0}get resolved(){return this.ok}resolve(){this.ok=!0,this.emitter.emit("resolved")}get useable(){return this.ok?Promise.resolve():this.error?Promise.reject(this.error):new Promise((e,t)=>{this.emitter.on("error",t),this.emitter.on("resolved",e)})}reset(){this.emitter.removeAllListeners();const e=this.licenseXhr;e&&(e.readyState!==XMLHttpRequest.DONE&&e.abort(),this.licenseXhr=void 0),this.onmessage=this.onkeystatuseschange=void 0}}class Wr extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}class jo extends Sr{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.mediaResolved=void 0,this.keyFormatPromise=null,this.keySystemAccessPromises={},this.sessionSetupByUri={},this.mediaKeySessions=[],this.activeKeys={},this.mediaKeys=null,this.setMediaKeysQueue=jo.CDMCleanupPromise?[jo.CDMCleanupPromise]:[],this.onMediaEncrypted=t=>{const{initDataType:r,initData:s}=t,i=`"${t.type}" event: init data type: "${r}"`;if(this.log(i),s!==null){if(!this.keyFormatPromise){let a=Object.keys(this.keySystemAccessPromises);a.length||(a=Zl(this.config));const l=a.map(L0).filter(u=>!!u);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(a=>{let l;const u=l1(a),d=this.activeLevelKeys();if(u===tn.FAIRPLAY&&r==="sinf")try{const v=Zr(new Uint8Array(s)),x=zp(JSON.parse(v).sinf),b=Ab(x);if(!b)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");l=new Uint8Array(b.subarray(8,24))}catch(v){this.warn(`${i} Failed to parse sinf: ${v}`);return}else if(u===tn.PLAYREADY)l=Xp(new Uint8Array(s));else if(u===tn.WIDEVINE){const v=Pb(s).filter(x=>x.systemId===Zb.WIDEVINE);if(v.length){var f;const x=v[0];l=(f=x.kids)!=null&&f.length?x.kids[0]:null}}let m;if(l){const v=vn(l);for(let x=0;x<d.length;x++){const b=d[x];if(b.keyId&&(lf(l,b.keyId)||b.uri.replace(/-/g,"").indexOf(v)!==-1)){b.pssh||(b.scheme=r,b.pssh=new Uint8Array(s),b.keyId=l,Hs.setKeyIdForUri(b.uri,l)),m=this.getSessionForKey(b,"encrypted-event-key-match");break}}}if(!m){if(d.length){var p,y;return(p=d[0]).scheme||(p.scheme=r),(y=d[0]).pssh||(y.pssh=new Uint8Array(s)),this.getSessionForKey(d[0],"encrypted-event-no-match")}if(l)throw new Error(`Key ID ${vn(l)} not encountered in playlist`);this.log(`Ignoring "${t.type}" event - could not determine keyId`)}return m}).catch(a=>this.handleError(a))}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){const{hls:e}=this;e&&(e.on(M.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(M.MEDIA_DETACHED,this.onMediaDetached,this),e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(M.DESTROYING,this.onDestroying,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(M.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(M.MEDIA_DETACHED,this.onMediaDetached,this),e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(M.DESTROYING,this.onDestroying,this))}attemptKeySystemAccess(e){if(!this.hls)return Promise.reject(new Error("destroyed"));const t=this.hls.levels,r=(a,l,u)=>!!a&&u.indexOf(a)===l,s=t.map(a=>a.audioCodec).filter(r),i=t.map(a=>a.videoCodec).filter(r);return s.length+i.length===0&&i.push("avc1.42e01e"),new Promise((a,l)=>{const u=d=>{const f=d.shift();this.getMediaKeysPromise(f,s,i).then(m=>a({keySystem:f,mediaKeys:m})).catch(m=>{d.length?u(d):m instanceof Wr?l(m):l(new Wr({type:nt.KEY_SYSTEM_ERROR,details:ye.KEY_SYSTEM_NO_ACCESS,error:m,fatal:!0},m.message))})};u(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let s=`Configured requestMediaKeySystemAccess is not a function ${r}`;return Qb===null&&self.location.protocol==="http:"&&(s=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(s))}return r(e,t)}getMediaKeysPromise(e,t,r){var s;const i=iF(e,t,r,this.config.drmSystemOptions||{});let a=this.keySystemAccessPromises[e],l=(s=a)==null?void 0:s.keySystemAccess;if(!l){this.log(`Requesting encrypted media "${e}" key-system access with config: ${qt(i)}`),l=this.requestMediaKeySystemAccess(e,i);const u=a=this.keySystemAccessPromises[e]={keySystemAccess:l};return l.catch(d=>{this.log(`Failed to obtain access to key-system "${e}": ${d}`)}),l.then(d=>{this.throwIfDestroyed(),this.log(`Access for key-system "${d.keySystem}" obtained`);const f=this.fetchServerCertificate(e);this.log(`Create media-keys for "${e}"`);const m=u.mediaKeys=d.createMediaKeys().then(p=>(this.log(`Media-keys created for "${e}"`),u.hasMediaKeys=!0,f.then(y=>y?this.setMediaKeysServerCertificate(p,e,y):p)));return m.catch(p=>{this.error(`Failed to create media-keys for "${e}"}: ${p}`)}),m})}return l.then(()=>a.mediaKeys)}getMediaKeySessionContext(e,t,r,s){const{mediaKeySessions:i}=this,a=` key-session "${e}" keyId: ${vn(r.keyId||[])} keyUri: ${r.uri} for "${s}"`;for(let d=0;d<i.length;d++){const f=i[d];if(!f.initialized&&f.createdFor.levelKey.uri===r.uri)return this.log(`Reusing${a}`),f}this.log(`Creating${a}`);const l=t.createSession(),u={keySystem:e,mediaKeys:t,mediaKeysSession:l,keyRequests:{},keyStatuses:{},createdFor:{levelKey:r,reason:s},initialized:!1};return i.push(u),u}resetMediaKeys(){var e;const t=(e=this.mediaKeySessions[0])==null?void 0:e.keySystem,r=this.keySystemAccessPromises[t];r&&(this.log("reset mediaKeys"),this.mediaKeys=null,r.hasMediaKeys=!1,delete r.mediaKeys,delete this.keySystemAccessPromises[t])}updateKeySession(e,t,r){const s=e.mediaKeysSession;return this.log(`Updating key-session "${s.sessionId}" for keyId ${vn(t.keyId||[])}
898      } (data length: ${r.byteLength})`),s.update(r)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map(e=>({keySystem:e,hasMediaKeys:this.keySystemAccessPromises[e].hasMediaKeys})).filter(({hasMediaKeys:e})=>!!e).map(({keySystem:e})=>L0(e)).filter(e=>!!e)}getKeySystemAccess(e){return this.getKeySystemSelectionPromise(e).then(({keySystem:t,mediaKeys:r})=>this.attemptSetMediaKeys(t,r))}selectKeySystem(e){return this.getKeySystemSelectionPromise(e).then(({keySystem:t})=>{const r=L0(t);
vendor: 145,410 bytes, lines 898-909
898if(!r)throw new Error(`Unable to find format for key-system "${t}"`);return r})}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){const t=Zl(this.config),r=e.map(l1).filter(s=>!!s&&t.indexOf(s)!==-1);return this.selectKeySystem(r)}loadClear(e,t,r){if(this.config.emeEnabled&&!this.getSelectedKeySystemFormats().length){if(t.length)for(let s=0,i=t.length;s<i;s++){const a=t[s];if(e.cc<=a.cc&&(!un(e)||!un(a)||e.sn<a.sn)||!r&&s==i-1)return this.selectKeySystemFormat(a).then(l=>{if(!this.hls)return;a.setKeyFormat(l);const u=l1(l);if(u)return this.getKeySystemAccess([u])})}if(this.config.requireKeySystemAccessOnStart){const s=Zl(this.config);if(s.length)return this.getKeySystemAccess(s)}}return null}getKeyStatus(e){const{mediaKeySessions:t}=this;for(let r=0;r<t.length;r++){const s=$0(e,t[r]);if(s)return s}}loadKey(e){const t=e.decryptdata,r=this.getKeyStatus(t);if(r==="internal-error"){const l=y7(r,t);return l.data.frag=e,this.error(`${l.message} (${vn(t.keyId||[])})`),Promise.reject(l)}const s=e.type,i=this.activeKeys,a=i[s];a&&!t.matches(a.decryptdata)&&(i.previous||(i.previous=[]),i.previous.push(a),delete i[s]),i[s]||(i[s]=e);for(let l=this.mediaKeySessions.length;l--;){const u=this.mediaKeySessions[l];if(t.keyId&&u.keyStatuses[vn(t.keyId)]==="expired")return this.renewKeySession(t,u)}return this.updateUsablePromise(t,"playlist-key",e)}renewKeySession(e,t){return this.resetMediaKeys(),this.removeSession(t).then(()=>(this.throwIfDestroyed(),this.updateUsablePromise(e,"expired")))}updateUsablePromise(e,t,r){const s=this.getSessionForKey(e,t);return s.catch(i=>this.handleError(i,r)),s.then(i=>e)}getSessionForKey(e,t){const r=this.findContextForKey(e);if(r!==void 0)return Promise.resolve(r);const s=e.uri,i=this.sessionSetupByUri[s];let a;i===void 0?a=this.resolveSessionForKey(e,t):a=i.catch(()=>{}).then(()=>(this.throwIfDestroyed(),this.resolveSessionForKey(e,t))),this.sessionSetupByUri[s]=a;const l=()=>{this.sessionSetupByUri[s]===a&&delete this.sessionSetupByUri[s]};return a.then(l,l),a}findContextForKey(e){const{mediaKeySessions:t}=this;for(let r=t.length;r--;){const s=t[r];if($0(e,s))return s}}resolveSessionForKey(e,t){return this.getKeySystemForKeyPromise(e).then(({keySystem:r,mediaKeys:s})=>{this.throwIfDestroyed();for(let i=this.mediaKeySessions.length;i--;){const a=this.mediaKeySessions[i];if($0(e,a))return a;const l=this.getUsableKeyPromise(a,e,t);if(l)return l}return this.attemptSetMediaKeys(r,s).then(()=>(this.throwIfDestroyed(),this.getMediaKeySessionContext(r,s,e,t))).then(i=>{this.throwIfDestroyed();const a=e.scheme||"cenc",l=e.pssh?e.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(i,e,a,l,t)})})}getUsableKeyPromise(e,t,r){const s=e.keyRequests[t.uri];if(s)return this.log(`Waiting for usable key (${r} keyId: ${UB(t)} format: "${t.keyFormat}" URI: ${t.uri})`),s.useable.then(()=>e)}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e,t){if(this.hls)if(e instanceof Wr){t&&(e.data.frag=t);const r=e.data.decryptdata;this.error(`${e.message}${r?` (${vn(r.keyId||[])})`:""}`),this.hls.trigger(M.ERROR,e.data)}else this.error(e.message),this.hls.trigger(M.ERROR,{type:nt.KEY_SYSTEM_ERROR,details:ye.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0})}getKeySystemForKeyPromise(e){const t=l1(e.keyFormat),r=t?[t]:Zl(this.config);return this.attemptKeySystemAccess(r)}getKeySystemSelectionPromise(e){if(e.length||(e=Zl(this.config)),e.length===0)throw new Wr({type:nt.KEY_SYSTEM_ERROR,details:ye.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${qt({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}activeLevelKeys(){const e=this.activeKeys,t=(e.previous||[]).map(r=>r.decryptdata);return e.audio&&t.unshift(e.audio.decryptdata),e.main&&t.unshift(e.main.decryptdata),t}attemptSetMediaKeys(e,t){if(this.mediaResolved=void 0,this.mediaKeys===t)return Promise.resolve();const r=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const s=Promise.all(r).then(()=>this.media?this.media.setMediaKeys(t):new Promise((i,a)=>{this.mediaResolved=()=>{if(this.mediaResolved=void 0,!this.media)return a(new Error("Attempted to set mediaKeys without media element attached"));this.mediaKeys=t,this.media.setMediaKeys(t).then(i).catch(a)}}));return this.mediaKeys=t,this.setMediaKeysQueue.push(s),s.then(()=>{this.log(`Media-keys set for "${e}"`),r.push(s),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(i=>r.indexOf(i)===-1)})}filterInitData(e,t,r,s,i){var a;const l=(a=this.config.drmSystems)==null||(a=a[e.keySystem])==null?void 0:a.generateRequest;if(l)try{const d=l.call(this.hls,r,s,Vt({},e,{decryptdata:t,reason:i}),i);if(!d)throw new Error("Invalid response from configured generateRequest filter");t.scheme=d.initDataType?d.initDataType:"cenc";const f=d.initData?d.initData:null;return t.pssh=f?new Uint8Array(f):null,d}catch(d){var u;if(this.warn(d.message),(u=this.hls)!=null&&u.config.debug)throw d}return{initDataType:r,initData:s}}generateRequestWithPreferredKeySession(e,t,r,s,i){const a=this.getUsableKeyPromise(e,t,i);if(a)return a;const l=this.filterInitData(e,t,r,s,i);if(l&&(s=l.initData?l.initData:null,r=l.initDataType),s===null)return i.startsWith("encrypted-event")?Promise.reject(new Error(`missing initialization data for "${i}"`)):(this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(e));const u=t.uri,d=new FB;e.keyRequests[u]=d;const f=p=>{const y=e.mediaKeysSession;if(!y){const b=new Error("invalid state");d.errored=b;return}const{messageType:v,message:x}=p;d.status=v,this.log(`"${v}" message event for session "${y.sessionId}" message size: ${x.byteLength}`),v==="license-request"||v==="license-renewal"?this.renewLicense(e,t,x).catch(b=>{d.errored=b,d.hasListeners||this.handleError(b),this.removeSession(e)}):v==="license-release"?e.keySystem===tn.FAIRPLAY&&this.updateKeySession(e,t,Wm("acknowledged")).then(()=>this.removeSession(e)).catch(b=>this.handleError(b)):this.warn(`unhandled media key message type "${v}"`)};return d.onmessage=f,Mt(e.mediaKeysSession,"message",f),this.generateRequest(e,t,r,s,i,!1)}generateRequest(e,t,r,s,i,a){if(a){const y=this.filterInitData(e,t,r,s,i);y&&(s=y.initData?y.initData:s,r=y.initDataType)}const l=t.uri,u=e.keyRequests[l],d=vn(t.keyId||[]),f=y=>{let v;y.startsWith("usable")?u.resolve():y==="internal-error"||y==="output-restricted"||y==="output-downscaled"?v=y7(y,t):y==="expired"?v=new Error(`key expired (keyId: ${d})`):y==="released"?v=new Error("key released"):y==="status-pending"||this.warn(`unhandled key status change "${y}" (keyId: ${d})`),v&&(u.errored=v,u.hasListeners||this.handleError(v))},m=y=>{if(!e.mediaKeysSession){const I=new Error("invalid state");u.errored=I;return}const x=e.keyStatuses=this.getKeyStatuses(e);if(!Object.keys(x).some(I=>x[I]!=="status-pending"))return;const E=this.activeLevelKeys();for(let I=0;I<E.length;I++){const L=vn(E[I].keyId||[]);if(x[L]==="expired"){var T;this.log(`Expired key ${qt(x)} in key-session "${(T=e.mediaKeysSession)==null?void 0:T.sessionId}"`),this.renewKeySession(t,e).catch(N=>this.handleError(N));break}}let w=x[d];if(w)f(w);else{var R;e.keyStatusTimeouts||(e.keyStatusTimeouts={}),(R=e.keyStatusTimeouts)[d]||(R[d]=self.setTimeout(()=>{var L;if(!e.mediaKeysSession)return;const N=this.getKeyStatus(t);if(N&&N!=="status-pending"){var _;return this.log(`No status for keyId ${d} in key-session "${(_=e.mediaKeysSession)==null?void 0:_.sessionId}". Using session key-status ${N} from other session.`),f(N)}this.log(`key status for ${d} in key-session "${(L=e.mediaKeysSession)==null?void 0:L.sessionId}" timed out after 1000ms`),w="internal-error",f(w)},1e3)),this.log(`No status for keyId ${d} (${qt(x)}).`)}};u.onkeystatuseschange=m,Mt(e.mediaKeysSession,"keystatuseschange",m);const p=u.useable;return this.log(`Generating key-session request for "${i}" keyId: ${d} URI: ${l} (init data type: ${r} length: ${s.byteLength})`),u.status="started",e.initialized=!0,e.mediaKeysSession.generateRequest(r,s).then(()=>{var y;u.status="generated",this.log(`Request generated for key-session "${(y=e.mediaKeysSession)==null?void 0:y.sessionId}" keyId: ${d} URI: ${l}`)}).catch(y=>{throw this.log(`mediaKeysSession.generateRequest failed: ${y}`),new Wr({type:nt.KEY_SYSTEM_ERROR,details:ye.KEY_SYSTEM_NO_SESSION,error:y,decryptdata:t,fatal:!1},`Error generating key-session request: ${y}`)}).then(()=>p).catch(y=>{var v;this.log(`mediaKeysSession.generateRequest failed: ${y}`);const x=(v=y.data)==null?void 0:v.details;return(x===ye.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED||x===ye.KEY_SYSTEM_STATUS_INTERNAL_ERROR)&&Object.keys(e.keyStatuses).some(b=>e.keyStatuses[b]==="usable")?(this.handleError(y),e):this.removeSession(e).then(()=>{throw y})}).then(()=>e)}getKeyStatuses(e){const t={},r=e.mediaKeysSession.sessionId;return e.mediaKeysSession.keyStatuses.forEach((s,i)=>{if(typeof i=="string"&&typeof s=="object"){const u=i;i=s,s=u}const a="buffer"in i?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i);if(e.keySystem===tn.PLAYREADY&&a.length===16){const u=vn(a);t[u]=s,Yb(a)}const l=vn(a);this.log(`key status change "${s}" for keyStatuses keyId: ${l} key-session "${r}"`),t[l]=s}),t}fetchServerCertificate(e){const t=this.config,r=t.loader,s=new r(t),i=BB(e,t);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise((a,l)=>{const u={type:St.SERVER_CERTIFICATE,responseType:"arraybuffer",url:i},d=t.certLoadPolicy.default,f={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},m={onSuccess:(p,y,v,x)=>{a(p.data)},onError:(p,y,v,x)=>{l(new Wr({type:nt.KEY_SYSTEM_ERROR,details:ye.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:v,response:st({url:u.url,data:void 0},p)},`"${e}" certificate request failed (${i}). Status: ${p.code} (${p.text})`))},onTimeout:(p,y,v)=>{l(new Wr({type:nt.KEY_SYSTEM_ERROR,details:ye.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:v,response:{url:u.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(p,y,v)=>{l(new Error("aborted"))}};s.load(u,f,m)})):(this.log(`No Server Certificate in config.drmSystems["${e}"]`),Promise.resolve())}setMediaKeysServerCertificate(e,t,r){return new Promise((s,i)=>{e.setServerCertificate(r).then(a=>{this.log(`setServerCertificate ${a?"success":"not supported by CDM"} (${r.byteLength}) on "${t}"`),s(e)}).catch(a=>{i(new Wr({type:nt.KEY_SYSTEM_ERROR,details:ye.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:a,fatal:!0},a.message))})})}renewLicense(e,t,r){return this.requestLicense(e,t,new Uint8Array(r)).then(s=>this.updateKeySession(e,t,new Uint8Array(s)).catch(i=>{throw new Wr({type:nt.KEY_SYSTEM_ERROR,details:ye.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:t,error:i,fatal:!1},i.message)}))}unpackPlayReadyKeyMessage(e,t){const r=Zr(new Uint16Array(t.buffer));if(!r.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const s=new DOMParser().parseFromString(r,"application/xml"),i=s.querySelectorAll("HttpHeader");if(i.length>0){let f;for(let m=0,p=i.length;m<p;m++){var a,l;f=i[m];const y=(a=f.querySelector("name"))==null?void 0:a.textContent,v=(l=f.querySelector("value"))==null?void 0:l.textContent;y&&v&&e.setRequestHeader(y,v)}}const u=s.querySelector("Challenge"),d=u==null?void 0:u.textContent;if(!d)throw new Error("Cannot find <Challenge> in key message");return Wm(atob(d))}setupLicenseXHR(e,t,r,s,i){const a=this.config.licenseXhrSetup;return a?Promise.resolve().then(()=>(this.throwIfDestroyed(),a.call(this.hls,e,t,st(st({},r),{},{decryptdata:s}),i))).catch(l=>{if(!r.mediaKeysSession)throw l;return e.open("POST",t,!0),a.call(this.hls,e,t,st(st({},r),{},{decryptdata:s}),i)}).then(l=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:l||i})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:i}))}requestLicense(e,t,r){return new Promise((s,i)=>{const a=$B(e.keySystem,this.config);if(!a)return i(new Error(`no license server URL configured for key-system "${e.keySystem}"`));const l=e.keyRequests[t.uri];if(!l)return i(new Error("License emitter removed"));this.log(`Sending license request to URL: ${a}`);const u=this.config.keyLoadPolicy.default,d=new XMLHttpRequest;d.responseType="arraybuffer",d.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(d.readyState===4)if(d.status===200){l.requestErrors=[];let f=d.response;this.log(`License received ${f instanceof ArrayBuffer?f.byteLength:f}`);const m=this.config.licenseResponseCallback;if(m)try{f=m.call(this.hls,d,a,st(st({},e),{},{decryptdata:t}))}catch(p){this.error(p)}s(f)}else{const f=u.errorRetry,m=f?f.maxNumRetry:0;if(l.requestErrors.push({status:d.status,message:d.statusText}),l.requestErrors.length>m||d.status>=400&&d.status<500)i(new Wr({type:nt.KEY_SYSTEM_ERROR,details:ye.KEY_SYSTEM_LICENSE_REQUEST_FAILED,decryptdata:t,fatal:!0,networkDetails:d,response:{url:a,data:void 0,code:d.status,text:d.statusText}},`License Request XHR failed (${a}). Status: ${d.status} (${d.statusText})`));else{const p=m-l.requestErrors.length;this.warn(`Retrying license request, ${p} attempts left`),this.requestLicense(e,t,r).then(s,i)}}},l.licenseXhr&&l.licenseXhr.readyState!==XMLHttpRequest.DONE&&l.licenseXhr.abort(),l.licenseXhr=d,this.setupLicenseXHR(d,a,e,t,r).then(({xhr:f,licenseChallenge:m})=>{e.keySystem==tn.PLAYREADY&&(m=this.unpackPlayReadyKeyMessage(f,m)),f.send(m)}).catch(i)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const r=t.media;this.media=r,Mt(r,"encrypted",this.onMediaEncrypted),Mt(r,"waitingforkey",this.onWaitingForKey);const s=this.mediaResolved;s?s():this.mediaKeys=r.mediaKeys}onMediaDetached(){const e=this.media;e&&(jt(e,"encrypted",this.onMediaEncrypted),jt(e,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var e;this.keyFormatPromise=null,this.keySystemAccessPromises={},this.activeKeys={},this.sessionSetupByUri={};const t=this.mediaResolved;if(t&&t(),!this.mediaKeys&&!this.mediaKeySessions.length)return;const r=this.media,s=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,Hs.clearKeyUriToKeyIdMap();const i=s.length;jo.CDMCleanupPromise=Promise.all(s.map(a=>this.removeSession(a)).concat((r==null||(e=r.setMediaKeys(null))==null?void 0:e.catch(a=>{this.log(`Could not clear media keys: ${a}`),this.hls&&this.hls.trigger(M.ERROR,{type:nt.OTHER_ERROR,details:ye.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${a}`)})}))||Promise.resolve())).catch(a=>{this.log(`Could not close sessions and clear media keys: ${a}`),this.hls&&this.hls.trigger(M.ERROR,{type:nt.OTHER_ERROR,details:ye.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${a}`)})}).then(()=>{i&&this.log("finished closing key sessions and clearing media keys")})}onManifestLoading(){this._clear(),this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const r=t.reduce((s,i)=>(s.indexOf(i.keyFormat)===-1&&s.push(i.keyFormat),s),[]);this.log(`Selecting key-system from session-keys ${r.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(r),this.keyFormatPromise.catch(()=>{})}}removeSession(e){const{mediaKeysSession:t}=e;if(t){this.log(`Remove licenses and keys and close session "${t.sessionId}"`),Object.keys(e.keyRequests).forEach(l=>{const u=e.keyRequests[l];u.onmessage&&t.removeEventListener("message",u.onmessage),u.onkeystatuseschange&&t.removeEventListener("keystatuseschange",u.onkeystatuseschange),u.reset(),e.keyRequests[l]=void 0}),e.mediaKeysSession=void 0;const r=this.mediaKeySessions.indexOf(e);r>-1&&this.mediaKeySessions.splice(r,1);const{keyStatusTimeouts:s}=e;s&&Object.keys(s).forEach(l=>self.clearTimeout(s[l]));const{drmSystemOptions:i}=this.config;return(oF(i)?new Promise((l,u)=>{self.setTimeout(()=>u(new Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(l).catch(u)}):Promise.resolve()).catch(l=>{this.log(`Could not remove session: ${l}`),this.hls&&this.hls.trigger(M.ERROR,{type:nt.OTHER_ERROR,details:ye.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${l}`)})}).then(()=>t.close()).then(()=>t.closed).catch(l=>{this.log(`Could not close session: ${l}`),this.hls&&this.hls.trigger(M.ERROR,{type:nt.OTHER_ERROR,details:ye.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${l}`)})})}return Promise.resolve()}}jo.CDMCleanupPromise=void 0;function $B(n,e){const{drmSystems:t,widevineLicenseUrl:r}=e,s=t==null?void 0:t[n];if(s)return s.licenseUrl;if(n===tn.WIDEVINE&&r)return r}function BB(n,e){const{drmSystems:t}=e,r=t==null?void 0:t[n];if(r)return r.serverCertificateUrl}function UB(n){if(n.keyFormat===Pn.FAIRPLAY)return n.uri;if(n.keyId===null)throw new Error("keyId is null");return vn(n.keyId)}function $0(n,e){const t=n.keyId,r=e.mediaKeysSession;if(t&&r){const s=e.mediaKeysSession.keyStatuses;if(s.size)return s.has(t)?s.get(t):e.keyStatuses[vn(t)]}}function y7(n,e){const t=n==="output-restricted",r=t?ye.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:ye.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Wr({type:nt.KEY_SYSTEM_ERROR,details:r,fatal:!1,decryptdata:e},t?"HDCP level output restricted":`key status changed to "${n}"`)}class VB{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(M.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(M.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(M.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(M.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const r=this.hls.config;if(r.capLevelOnFPSDrop){const s=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=s,s&&typeof s.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,r){const s=performance.now();if(t){if(this.lastTime){const i=s-this.lastTime,a=r-this.lastDroppedFrames,l=t-this.lastDecodedFrames,u=1e3*a/i,d=this.hls;if(d.trigger(M.FPS_DROP,{currentDropped:a,currentDecoded:l,totalDroppedFrames:r}),u>0&&a>d.config.fpsDroppedMonitoringThreshold*l){let f=d.currentLevel;d.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+f),f>0&&(d.autoLevelCapping===-1||d.autoLevelCapping>=f)&&(f=f-1,d.trigger(M.FPS_DROP_LEVEL_CAPPING,{level:f,droppedLevel:d.currentLevel}),d.autoLevelCapping=f,this.streamController.nextLevelSwitch())}}this.lastTime=s,this.lastDroppedFrames=r,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}var d8=(function(){if(cf!=null&&cf.VTTCue)return self.VTTCue;const n=["","lr","rl"],e=["start","middle","end","left","right"];function t(l,u){if(typeof u!="string"||!Array.isArray(l))return!1;const d=u.toLowerCase();return~l.indexOf(d)?d:!1}function r(l){return t(n,l)}function s(l){return t(e,l)}function i(l,...u){let d=1;for(;d<arguments.length;d++){const f=arguments[d];for(const m in f)l[m]=f[m]}return l}function a(l,u,d){const f=this,m={enumerable:!0};f.hasBeenReset=!1;let p="",y=!1,v=l,x=u,b=d,E=null,T="",w=!0,R="auto",I="start",L=50,N="middle",_=50,j="middle";Object.defineProperty(f,"id",i({},m,{get:function(){return p},set:function(F){p=""+F}})),Object.defineProperty(f,"pauseOnExit",i({},m,{get:function(){return y},set:function(F){y=!!F}})),Object.defineProperty(f,"startTime",i({},m,{get:function(){return v},set:function(F){if(typeof F!="number")throw new TypeError("Start time must be set to a number.");v=F,this.hasBeenReset=!0}})),Object.defineProperty(f,"endTime",i({},m,{get:function(){return x},set:function(F){if(typeof F!="number")throw new TypeError("End time must be set to a number.");x=F,this.hasBeenReset=!0}})),Object.defineProperty(f,"text",i({},m,{get:function(){return b},set:function(F){b=""+F,this.hasBeenReset=!0}})),Object.defineProperty(f,"region",i({},m,{get:function(){return E},set:function(F){E=F,this.hasBeenReset=!0}})),Object.defineProperty(f,"vertical",i({},m,{get:function(){return T},set:function(F){const $=r(F);if($===!1)throw new SyntaxError("An invalid or illegal string was specified.");T=$,this.hasBeenReset=!0}})),Object.defineProperty(f,"snapToLines",i({},m,{get:function(){return w},set:function(F){w=!!F,this.hasBeenReset=!0}})),Object.defineProperty(f,"line",i({},m,{get:function(){return R},set:function(F){if(typeof F!="number"&&F!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");R=F,this.hasBeenReset=!0}})),Object.defineProperty(f,"lineAlign",i({},m,{get:function(){return I},set:function(F){const $=s(F);if(!$)throw new SyntaxError("An invalid or illegal string was specified.");I=$,this.hasBeenReset=!0}})),Object.defineProperty(f,"position",i({},m,{get:function(){return L},set:function(F){if(F<0||F>100)throw new Error("Position must be between 0 and 100.");L=F,this.hasBeenReset=!0}})),Object.defineProperty(f,"positionAlign",i({},m,{get:function(){return N},set:function(F){const $=s(F);if(!$)throw new SyntaxError("An invalid or illegal string was specified.");N=$,this.hasBeenReset=!0}})),Object.defineProperty(f,"size",i({},m,{get:function(){return _},set:function(F){if(F<0||F>100)throw new Error("Size must be between 0 and 100.");_=F,this.hasBeenReset=!0}})),Object.defineProperty(f,"align",i({},m,{get:function(){return j},set:function(F){const $=s(F);if(!$)throw new SyntaxError("An invalid or illegal string was specified.");j=$,this.hasBeenReset=!0}})),f.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a})();class zB{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function qS(n){function e(r,s,i,a){return(r|0)*3600+(s|0)*60+(i|0)+parseFloat(a||0)}const t=n.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return t?parseFloat(t[2])>59?e(t[2],t[3],0,t[4]):e(t[1],t[2],t[3],t[4]):null}class GB{constructor(){this.values=Object.create(null)}set(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)}get(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,r){for(let s=0;s<r.length;++s)if(t===r[s]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){const r=parseFloat(t);if(r>=0&&r<=100)return this.set(e,r),!0}return!1}}function YS(n,e,t,r){const s=r?n.split(r):[n];for(const i in s){if(typeof s[i]!="string")continue;const a=s[i].split(t);if(a.length!==2)continue;const l=a[0],u=a[1];e(l,u)}}const t5=new d8(0,0,""),h1=t5.align==="middle"?"middle":"center";function HB(n,e,t){const r=n;function s(){const l=qS(n);if(l===null)throw new Error("Malformed timestamp: "+r);return n=n.replace(/^[^\sa-zA-Z-]+/,""),l}function i(l,u){const d=new GB;YS(l,function(p,y){let v;switch(p){case"region":for(let x=t.length-1;x>=0;x--)if(t[x].id===y){d.set(p,t[x].region);break}break;case"vertical":d.alt(p,y,["rl","lr"]);break;case"line":v=y.split(","),d.integer(p,v[0]),d.percent(p,v[0])&&d.set("snapToLines",!1),d.alt(p,v[0],["auto"]),v.length===2&&d.alt("lineAlign",v[1],["start",h1,"end"]);break;case"position":v=y.split(","),d.percent(p,v[0]),v.length===2&&d.alt("positionAlign",v[1],["start",h1,"end","line-left","line-right","auto"]);break;case"size":d.percent(p,y);break;case"align":d.alt(p,y,["start",h1,"end","left","right"]);break}},/:/,/\s/),u.region=d.get("region",null),u.vertical=d.get("vertical","");let f=d.get("line","auto");f==="auto"&&t5.line===-1&&(f=-1),u.line=f,u.lineAlign=d.get("lineAlign","start"),u.snapToLines=d.get("snapToLines",!0),u.size=d.get("size",100),u.align=d.get("align",h1);let m=d.get("position","auto");m==="auto"&&t5.position===50&&(m=u.align==="start"||u.align==="left"?0:u.align==="end"||u.align==="right"?100:50),u.position=m}function a(){n=n.replace(/^\s+/,"")}if(a(),e.startTime=s(),a(),n.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);n=n.slice(3),a(),e.endTime=s(),a(),i(n,e)}function XS(n){return n.replace(/<br(?: \/)?>/gi,`
899`)}class WB{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new zB,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function r(){let i=t.buffer,a=0;for(i=XS(i);a<i.length&&i[a]!=="\r"&&i[a]!==`
900`;)++a;const l=i.slice(0,a);return i[a]==="\r"&&++a,i[a]===`
901`&&++a,t.buffer=i.slice(a),l}function s(i){YS(i,function(a,l){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=r();const l=i.match(/^()?WEBVTT([ \t].*)?$/);if(!(l!=null&&l[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let a=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(a?a=!1:i=r(),t.state){case"HEADER":/:/.test(i)?s(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;if(t.cue=new d8(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{HB(i,t.cue,t.regionList)}catch{t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const l=i.indexOf("-->")!==-1;if(!i||l&&(a=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(t.cue===null)continue;t.cue.text&&(t.cue.text+=`
902`),t.cue.text+=i}continue;case"BADCUE":i||(t.state="ID")}}}catch{t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||e.state==="HEADER")&&(e.buffer+=`
903
904`,e.parse()),e.state==="INITIAL"||e.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}function yc(n){let e=5381,t=n.length;for(;t;)e=e*33^n.charCodeAt(--t);return(e>>>0).toString()}const KB=/\r\n|\n\r|\n|\r/g,v7="Missing initPTS for VTT ",qB=function(e){let t=parseInt(e.slice(-3));const r=parseInt(e.slice(-6,-4)),s=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!ze(t)||!ze(r)||!ze(s)||!ze(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*r,t+=60*1e3*s,t+=3600*1e3*i,t};function f8(n,e,t){return yc(n.toString())+yc(e.toString())+yc(t)}function YB(n,e,t,r,s,i,a){const l=new WB,u=vr(new Uint8Array(n)).trim().replace(KB,`
905`).split(`
906`),d=[],f=e?l$(e.baseTime,e.timescale):0;let m="00:00.000",p=0,y=0,v=!1,x,b=!0;l.oncue=function(E){const T=t[r];let w=t.ccOffset;const R=(p-f)/9e4;if(v){if(T!=null&&T.new&&(w=t.ccOffset=T.start),R){if(!e){x=new Error(v7+"MPEGTS");return}w=R-t.presentationOffset}}else if(e)w=-e.baseTime/e.timescale;else{x=new Error(v7+"without X-TIMESTAMP-MAP");return}const I=E.endTime-E.startTime,L=pr((E.startTime+w-y)*9e4,s*9e4)/9e4;E.startTime=Math.max(L,0),E.endTime=Math.max(L+I,0);const N=E.text.trim();E.text=decodeURIComponent(encodeURIComponent(N)),E.id?r&&(E.id=`hlsjscc${r}_${E.id}`):E.id=f8(E.startTime,E.endTime,N),E.endTime>0&&d.push(E)},l.onparsingerror=function(E){x=E},l.onflush=function(){if(x){a(x);return}i(d)},u.forEach(E=>{if(b)if(E.startsWith("X-TIMESTAMP-MAP=")){b=!1,v=!0,E.slice(16).split(",").forEach(T=>{T.startsWith("LOCAL:")?m=T.slice(6):T.startsWith("MPEGTS:")&&(p=parseInt(T.slice(7)))});try{y=qB(m)/1e3}catch(T){x=T}return}else E===""&&(b=!1);l.parse(E+`
907`)}),l.flush()}const n5="stpp.ttml.im1t",ZS=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,QS=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,XB={left:"start",center:"center",right:"end",start:"start",end:"end"};function x7(n,e,t,r){const s=yt(new Uint8Array(n),["mdat"]);if(s.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const i=s.map(l=>vr(l)),a=o$(e.baseTime,1,e.timescale);try{i.forEach(l=>t(ZB(l,a)))}catch(l){r(l)}}function ZB(n,e){const s=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("tt")[0];if(!s)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:1},a=Object.keys(i).reduce((m,p)=>(m[p]=s.getAttribute(`ttp:${p}`)||i[p],m),{});!s.getAttribute("ttp:tickRate")&&s.getAttribute("ttp:frameRate")&&(a.tickRate=Number(a.frameRate)*Number(a.subFrameRate));const l=s.getAttribute("xml:space")!=="preserve",u=C7(B0(s,"styling","style")),d=C7(B0(s,"layout","region")),f=B0(s,"body","[begin]");return[].map.call(f,m=>{const p=JS(m,l);if(!p||!m.hasAttribute("begin"))return null;const y=V0(m.getAttribute("begin"),a),v=V0(m.getAttribute("dur"),a);let x=V0(m.getAttribute("end"),a);if(y===null)throw b7(m);if(x===null){if(v===null)throw b7(m);x=y+v}const b=new d8(y-e,x-e,p);b.id=f8(b.startTime,b.endTime,b.text);const E=d[m.getAttribute("region")],T=u[m.getAttribute("style")],w=QB(E,T,u),{textAlign:R}=w;if(R){const I=XB[R];I&&(b.lineAlign=I),b.align=R}return Vt(b,w),b}).filter(m=>m!==null)}function B0(n,e,t){const r=n.getElementsByTagName(e)[0];return r?[].slice.call(r.querySelectorAll(t)):[]}function C7(n){return n.reduce((e,t)=>{const r=t.getAttribute("xml:id");return r&&(e[r]=t),e},{})}function JS(n,e){return[].slice.call(n.childNodes).reduce((t,r,s)=>{var i;return r.nodeName==="br"&&s?t+`
908`:(i=r.childNodes)!=null&&i.length?JS(r,e):e?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent},"")}function QB(n,e,t){const r="http://www.w3.org/ns/ttml#styling";let s=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],a=n!=null&&n.hasAttribute("style")?n.getAttribute("style"):null;return a&&t.hasOwnProperty(a)&&(s=t[a]),i.reduce((l,u)=>{const d=U0(e,r,u)||U0(n,r,u)||U0(s,r,u);return d&&(l[u]=d),l},{})}function U0(n,e,t){return n&&n.hasAttributeNS(e,t)?n.getAttributeNS(e,t):null}function b7(n){return new Error(`Could not parse ttml timestamp ${n}`)}function V0(n,e){if(!n)return null;let t=qS(n);return t===null&&(ZS.test(n)?t=JB(n,e):QS.test(n)&&(t=eU(n,e))),t}function JB(n,e){const t=ZS.exec(n),r=(t[4]|0)+(t[5]|0)/e.subFrameRate;return(t[1]|0)*3600+(t[2]|0)*60+(t[3]|0)+r/e.frameRate}function eU(n,e){const t=QS.exec(n),r=Number(t[1]);switch(t[2]){case"h":return r*3600;case"m":return r*60;case"ms":return r/1e3;case"f":return r/e.frameRate;case"t":return r/e.tickRate}return r}function h8(n,e,t,r="",s="disabled"){const i=n.ownerDocument.createElement("track");return i.kind=e,i.label=t,r&&(i.srclang=r),i.src="data:,WEBVTT",i.track.mode=s,n.appendChild(i),i}function tU(n){return n.forced&&gM()?"forced":n.characteristics&&/transcribes-spoken-dialog/gi.test(n.characteristics)&&/describes-music-and-sound/gi.test(n.characteristics)?"captions":"subtitles"}function r5(n,e){const t=n.mode;if(t==="disabled"&&(n.mode="hidden"),n.cues&&!n.cues.getCueById(e.id))try{if(n.addCue(e),!n.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(r){Ot.debug(`[texttrack-utils]: ${r}`);try{const s=new self.TextTrackCue(e.startTime,e.endTime,e.text);s.id=e.id,n.addCue(s)}catch(s){Ot.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${s}`)}}t==="disabled"&&(n.mode=t)}function s5(n,e,t,r){const s=n.mode;if(s==="disabled"&&(n.mode="hidden"),n.cues&&n.cues.length>0){const i=rU(n.cues,e,t);for(let a=0;a<i.length;a++)(!r||r(i[a]))&&n.removeCue(i[a])}s==="disabled"&&(n.mode=s)}function nU(n,e){if(e<=n[0].startTime)return 0;const t=n.length-1;if(e>n[t].endTime)return-1;let r=0,s=t,i;for(;r<=s;)if(i=Math.floor((s+r)/2),e<n[i].startTime)s=i-1;else if(e>n[i].startTime&&r<t)r=i+1;else return i;return n[r].startTime-e<e-n[s].startTime?r:s}function rU(n,e,t){const r=[],s=nU(n,e);if(s>-1)for(let i=s,a=n.length;i<a;i++){const l=n[i];if(l.startTime>=e&&l.endTime<=t)r.push(l);else if(l.startTime>t)return r}return r}class sU extends r8{constructor(e){super(e,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=-1,r=!1;if(this.currentTrack){var s;const l=(s=this.currentTrack.trackNode)==null?void 0:s.track.mode;l==="showing"?(t=this.trackId,r=!0):l==="hidden"&&(t=this.trackId)}if(!r)for(let l=0;l<this.tracksInGroup.length;l++){var i;const u=(i=this.tracksInGroup[l].trackNode)==null?void 0:i.track.mode;if(u==="showing"){t=l;break}else t<0&&u==="hidden"&&(t=l)}if(t>-1){var a;this._subtitleDisplay=((a=this.tracksInGroup[t].trackNode)==null?void 0:a.track.mode)==="showing"}this.setSubtitleTrack(t,!0)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(M.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.MANIFEST_PARSED,this.onManifestParsed,this),e.on(M.LEVEL_LOADING,this.onLevelLoading,this),e.on(M.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(M.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(M.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(M.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.MANIFEST_PARSED,this.onManifestParsed,this),e.off(M.LEVEL_LOADING,this.onLevelLoading,this),e.off(M.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(M.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(M.ERROR,this.onError,this)}createTracksInGroup(){var e;if(!this.media||!this.hls.config.renderTextTracksNatively)return;this.tracksInGroup.forEach(r=>{r.trackNode||(r.trackNode=h8(this.media,tU(r),r.name,r.lang))});const t=(e=this.currentTrack)==null||(e=e.trackNode)==null?void 0:e.track;(t==null?void 0:t.mode)==="disabled"&&(t.mode=this._subtitleDisplay?"showing":"hidden")}onMediaAttached(e,t){const r=t.media;this.media=r;let s=this.trackId;this.queuedDefaultTrack>-1&&(s=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.setSubtitleTrack(s),this.createTracksInGroup(),this.useTextTrackPolling=!(r.textTracks&&"onchange"in r.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):r.textTracks.addEventListener("change",this.asyncPollTrackChange)}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){const r=this.media;if(!r)return;const s=!!t.transferMedia;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||r.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId,this.setSubtitleTrack(-1)),this.media=null,!s&&this.hls.config.renderTextTracksNatively&&this.tracksInGroup.forEach(i=>{const a=i.trackNode;a&&(a.track.mode="hidden",a.remove(),i.trackNode=void 0)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:r,groupId:s,details:i}=t,a=this.tracksInGroup[r];if(!a||a.groupId!==s){this.warn(`Subtitle track with id:${r} and group:${s} not found in active group ${a==null?void 0:a.groupId}`);return}const l=a.details;a.details=t.details,this.log(`Subtitle track ${r} "${a.name}" lang:${a.lang} group:${s} loaded [${i.startSN}-${i.endSN}]`),r===this.trackId&&this.playlistLoaded(r,t,l)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const r=t.subtitleGroups||null,s=this.groupIds;let i=this.currentTrack;if(!r||(s==null?void 0:s.length)!==(r==null?void 0:r.length)||r!=null&&r.some(a=>(s==null?void 0:s.indexOf(a))===-1)){this.groupIds=r;const a=[];if(this.tracks.forEach(f=>{(f.textCodec===n5?this.hls.config.enableIMSC1:this.hls.config.enableWebVTT)&&(!r||r.indexOf(f.groupId)>-1?(f.id=a.length,a.push(f)):f.trackNode&&(f.trackNode.remove(),f.trackNode=void 0))}),a.length===this.tracksInGroup.length){let f=!1;for(let m=0;m<a.length;m++)if(a[m]!==this.tracksInGroup[m]){f=!0;break}if(!f)return}a.length&&this.selectDefaultTrack&&!a.some(f=>f.default)&&(this.selectDefaultTrack=!1),this.tracksInGroup=a,this.trackId=-1,this.currentTrack=null;const l=this.hls.config.subtitlePreference;if(!i&&l){this.selectDefaultTrack=!1;const f=xs(l,a);if(f>-1)i=a[f];else{const m=xs(l,this.tracks);i=this.tracks[m]}}let u=this.findTrackId(i);u===-1&&i&&(u=this.findTrackId(null));const d={subtitleTracks:a};this.log(`Updating subtitle tracks, ${a.length} track(s) found in "${r==null?void 0:r.join(",")}" group-id`),this.hls.trigger(M.SUBTITLE_TRACKS_UPDATED,d),this.setSubtitleTrack(u),this.createTracksInGroup()}}findTrackId(e){const t=this.tracksInGroup,r=this.selectDefaultTrack;for(let s=0;s<t.length;s++){const i=t[s];if(!(r&&!i.default||!r&&!e)&&(!e||wa(i,e)))return s}if(e){for(let s=0;s<t.length;s++){const i=t[s];if(Vc(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return s}for(let s=0;s<t.length;s++){const i=t[s];if(Vc(e.attrs,i.attrs,["LANGUAGE"]))return s}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===St.SUBTITLE_TRACK&&t.context.id===this.trackId&&$c(t.context.groupId,this.groupIds)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e,!0)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){if(e.id===-1)return this.setSubtitleTrack(-1,!0),null;const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const r=this.currentTrack;if(r&&wa(e,r))return r;const s=xs(e,this.tracksInGroup);if(s>-1){const i=this.tracksInGroup[s];return this.setSubtitleTrack(s,!0),i}else{if(r)return null;{const i=xs(e,t);if(i>-1)return t[i]}}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const r=e.id,s=e.groupId,i=this.getUrlWithDirectives(e.url,t),a=e.details,l=a==null?void 0:a.age;this.log(`Loading subtitle ${r} "${e.name}" lang:${e.lang} group:${s}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${l&&a.live?" age "+l.toFixed(1)+(a.type&&" "+a.type||""):""} ${i}`),this.hls.trigger(M.SUBTITLE_TRACK_LOADING,{url:i,id:r,groupId:s,deliveryDirectives:t||null,track:e})}toggleTrackModes(){if(!this.media||!this.hls.config.renderTextTracksNatively)return;const e=this.currentTrack;this.tracksInGroup.forEach(t=>{if(t.trackNode){const r=t===e?this._subtitleDisplay?"showing":"hidden":"disabled",s=t.trackNode.track;s.mode!==r&&(s.mode=r)}})}setSubtitleTrack(e,t=!1){const r=this.tracksInGroup;if(this.media||(this.queuedDefaultTrack=e),e<-1||e>=r.length||!ze(e)){this.warn(`Invalid subtitle track id: ${e}`);return}const s=this.currentTrack,i=r[e]||null;if(this.trackId=e,this.currentTrack=i,t&&this.toggleTrackModes(),!i){s&&this.hls.trigger(M.SUBTITLE_TRACK_SWITCH,{id:e});return}const a=!!i.details&&!i.details.live;if(i===s&&a)return;this.log(`Switching to subtitle-track ${e}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:l,groupId:u="",name:d,type:f,url:m}=i;this.hls.trigger(M.SUBTITLE_TRACK_SWITCH,{id:l,groupId:u,name:d,type:f,url:m});const p=this.switchParams(i.url,s==null?void 0:s.details,i.details);this.loadPlaylist(p)}}const U1=2,iU=100;class aU extends Wb{constructor(e,t){super("gap-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.skipRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=void 0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var r;(r=this.media)!=null&&r.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var r;this.ended=((r=this.media)==null?void 0:r.currentTime)||1,this.hls.trigger(M.MEDIA_ENDED,{stalled:!1})}},this.hls=e,this.fragmentTracker=t,this.lastCurrentTime=this.getCurrentTime(),this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(M.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(M.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(M.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(M.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(iU),this.mediaSource=t.mediaSource;const r=this.media=t.media;Mt(r,"playing",this.onMediaPlaying),Mt(r,"waiting",this.onMediaWaiting),Mt(r,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:r}=this;r&&(jt(r,"playing",this.onMediaPlaying),jt(r,"waiting",this.onMediaWaiting),jt(r,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}getCurrentTime(){var e;const t=((e=this.hls)==null?void 0:e.config.timelineOffset)||0;return this.media?Math.max(this.media.currentTime,t):t}tick(){var e;if(!((e=this.media)!=null&&e.readyState)||!this.hasBuffered)return;const t=this.getCurrentTime();this.media.currentTime<t||(this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t)}poll(e,t){var r,s;const i=(r=this.hls)==null?void 0:r.config;if(!i)return;const a=this.media;if(!a)return;const{seeking:l}=a,u=this.seeking&&!l,d=!this.seeking&&l,f=a.paused&&!l||a.ended||a.playbackRate===0;if(this.seeking=l,e!==t){t&&(this.ended=0),this.moved=!0,l||(this.skipRetry=this.nudgeRetry=0,i.nudgeOnVideoHole&&!f&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(d||u){u&&this.stallResolved(e);return}if(f){this.skipRetry=this.nudgeRetry=0,this.stallResolved(e),!this.ended&&a.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(M.MEDIA_ENDED,{stalled:!1}));return}if(!ft.getBuffered(a).length){this.skipRetry=this.nudgeRetry=0;return}const m=ft.bufferInfo(a,e,0),p=this.fragmentTracker;p&&this.hls&&w7(m,e,p,this.hls);const y=m.nextStart||0;if(l&&p&&this.hls){const L=S7(this.hls.inFlightFragments,e),N=m.len>U1,_=!y||L||y-e>U1&&!p.getPartialFragment(e);if(N||_)return;this.moved=!1}const v=(s=this.hls)==null?void 0:s.latestLevelDetails;if(!this.moved&&this.stalled!==null&&p){if(!(m.len>0)&&!y)return;const N=Math.max(y,m.start||0)-e,j=!!(v!=null&&v.live)?v.targetduration*2:U1,F=oc(e,p);if(N>0&&(N<=j||F)){a.paused||this._trySkipBufferHole(F);return}}const x=i.detectStallWithCurrentTimeMs,b=self.performance.now(),E=this.waiting;let T=this.stalled;if(T===null)if(E>0&&b-E<x)T=this.stalled=E;else{this.stalled=b;return}const w=b-T;if(!l&&(w>=x||E&&this.moved)&&this.hls){var R;if(((R=this.mediaSource)==null?void 0:R.readyState)==="ended"&&!(v!=null&&v.live)&&Math.abs(e-((v==null?void 0:v.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(M.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(m),!this.media||!this.hls)return;if(a.currentTime!==e){const L=e;e=a.currentTime,this.moved=!0,this.log(`currentTime changed ${L} > ${e}`);return}}const I=ft.bufferInfo(a,e,i.maxBufferHole);this._tryFixBufferStall(I,w,e)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const r=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(r)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(M.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var r;const s=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(r=this.buffered.audio)!=null&&r.length&&s&&s.length>1&&e>s.end(0)){const i=ft.bufferedInfo(ft.timeRangesToArray(this.buffered.audio),e,0);if(i.len>1&&t>=i.start){const a=ft.timeRangesToArray(s),l=ft.bufferedInfo(a,t,0).bufferedIndex;if(l>-1&&l<a.length-1){const u=ft.bufferedInfo(a,e,0).bufferedIndex,d=a[l].end,f=a[l+1].start;if((u===-1||u>l)&&f-d<1&&e-d<2){const m=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${d} -> ${f} buffered index: ${u}`);this.warn(m.message),this.media.currentTime+=1e-6;let p=oc(e,this.fragmentTracker);p&&"fragment"in p?p=p.fragment:p||(p=void 0);const y=ft.bufferInfo(this.media,e,0);this.hls.trigger(M.ERROR,{type:nt.MEDIA_ERROR,details:ye.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:m,reason:m.message,frag:p,buffer:y.len,bufferInfo:y})}}}}}_tryFixBufferStall(e,t,r){var s,i;const{fragmentTracker:a,media:l}=this,u=(s=this.hls)==null?void 0:s.config;if(!l||!a||!u)return;const d=(i=this.hls)==null?void 0:i.latestLevelDetails,f=oc(r,a);if((f||d!=null&&d.live&&r<d.fragmentStart)&&(this._trySkipBufferHole(f)||!this.media))return;const m=e.buffered,p=this.adjacentTraversal(e,r);(m&&m.length>1&&e.len>u.maxBufferHole||e.nextStart&&(e.nextStart-r<u.maxBufferHole||p))&&(t>u.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}adjacentTraversal(e,t){const r=this.fragmentTracker,s=e.nextStart;if(r&&s){const i=r.getFragAtPos(t,Qe.MAIN),a=r.getFragAtPos(s,Qe.MAIN);if(i&&a)return a.sn-i.sn<2}return!1}_reportStall(e){const{hls:t,media:r,stallReported:s,stalled:i}=this;if(!s&&i!==null&&r&&t){this.stallReported=!0;const a=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${qt(e)})`);this.warn(a.message),t.trigger(M.ERROR,{type:nt.MEDIA_ERROR,details:ye.BUFFER_STALLED_ERROR,fatal:!1,error:a,buffer:e.len,bufferInfo:e,stalled:{start:i}})}}_trySkipBufferHole(e){const{fragmentTracker:t,media:r,hls:s}=this,i=s==null?void 0:s.config;if(!r||!t||!i)return 0;const a=r.currentTime,l=ft.bufferInfo(r,a,0);w7(l,a,t,s);const u=a<l.start?l.start:l.nextStart;if(u){const f=l.len<=i.maxBufferHole,m=l.len>0&&l.len<1&&r.readyState<3,p=u-a;if(p>0&&(f||m)){if(p>i.maxBufferHole){let E=!1;if(a===0){const T=t.getAppendedFrag(0,Qe.MAIN);T&&u<T.end&&(E=!0)}if(!E&&e){var d;if(!((d=s.loadLevelObj)!=null&&d.details)||S7(s.inFlightFragments,u))return 0;let w=!1,R=e.end;for(;R<u;){const I=oc(R,t),L=I?I.duration:0;if(L>0)R+=L;else{w=!0;break}}if(w)return 0}}const{nudgeMaxRetry:y,skipBufferHolePadding:v}=i,x=++this.skipRetry>y,b=Math.max(u,a)+v;if(x||(this.warn(`skipping hole, adjusting currentTime from ${a} to ${b}`),this.moved=!0,r.currentTime=b),!(e!=null&&e.gap)||x){const E=new Error(x?`Playhead still not moving after seeking over buffer hole from ${a} to ${b} after ${i.nudgeMaxRetry} attempts.`:`fragment loaded with buffer holes, seeking from ${a} to ${b}`),T={type:nt.MEDIA_ERROR,details:ye.BUFFER_SEEK_OVER_HOLE,fatal:x,error:E,reason:E.message,buffer:l.len,bufferInfo:l};e&&("fragment"in e?T.part=e:T.frag=e),s.trigger(M.ERROR,T)}return b}}return 0}_tryNudgeBuffer(e){const{hls:t,media:r,nudgeRetry:s}=this,i=t==null?void 0:t.config;if(!r||!i)return 0;const a=r.currentTime;if(this.nudgeRetry++,s<i.nudgeMaxRetry){const l=a+(s+1)*i.nudgeOffset,u=new Error(`Nudging 'currentTime' from ${a} to ${l}`);this.warn(u.message),r.currentTime=l,t.trigger(M.ERROR,{type:nt.MEDIA_ERROR,details:ye.BUFFER_NUDGE_ON_STALL,error:u,fatal:!1,buffer:e.len,bufferInfo:e})}else{const l=new Error(`Playhead still not moving while enough data buffered @${a} after ${i.nudgeMaxRetry} nudges`);this.error(l.message),t.trigger(M.ERROR,{type:nt.MEDIA_ERROR,details:ye.BUFFER_STALLED_ERROR,error:l,fatal:!0,buffer:e.len,bufferInfo:e})}}}function S7(n,e){const t=E7(n.main);if(t&&t.start<=e)return t;const r=E7(n.audio);return r&&r.start<=e?r:null}function E7(n){if(!n)return null;switch(n.state){case Le.IDLE:case Le.STOPPED:case Le.ENDED:case Le.ERROR:return null}return n.frag}function oc(n,e){return e.getAppendedFrag(n,Qe.MAIN)||e.getPartialFragment(n)}function w7(n,e,t,r){const s=r.latestLevelDetails,i=oc(e,t);if(ff(r.config)&&!n.nextStart&&s&&i&&r.interstitialsManager){const a="type"in i?i:i.fragment,l=Gb(s,a.sn);(l==null?void 0:l.level)===a.level&&oS(l,r.interstitialsManager.playerQueue,e)&&(n.nextStart=l.start)}}const oU=.25;function i5(){if(!(typeof self>"u"))return self.VTTCue||self.TextTrackCue}function z0(n,e,t,r,s){let i=new n(e,t,"");try{i.value=r,s&&(i.type=s)}catch{i=new n(e,t,qt(s?st({type:s},r):r))}return i}const m1=(()=>{const n=i5();try{n&&new n(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class lU{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(M.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;e&&(e.on(M.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(M.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(M.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(M.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(M.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(M.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(M.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(M.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(M.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(M.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(e,t){this.media=t.media}onMediaAttached(){var e;const t=(e=this.hls)==null?void 0:e.latestLevelDetails;t&&this.updateDateRangeCues(t)}onMediaDetaching(e,t){this.media=null,!t.transferMedia&&(this.id3Track&&(this.id3Track.remove(),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){return h8(e,"metadata","id3","","hidden")}onFragParsingMetadata(e,t){if(!this.media||!this.hls)return;const{enableEmsgMetadataCues:r,enableID3MetadataCues:s}=this.hls.config;if(!r&&!s)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const a=i5();if(a)for(let l=0;l<i.length;l++){const u=i[l].type;if(u===Kn.emsg&&!r||!s)continue;const d=xb(i[l].data),f=i[l].pts;let m=f+i[l].duration;m>m1&&(m=m1),m-f<=0&&(m=f+oU);for(let y=0;y<d.length;y++){const v=d[y];if(!Cb(v)){this.updateId3CueEnds(f,u);const x=z0(a,f,m,v,u);x&&this.id3Track.track.addCue(x)}}}}updateId3CueEnds(e,t){var r;const s=(r=this.id3Track)==null?void 0:r.track.cues;if(s)for(let i=s.length;i--;){const a=s[i];a.type===t&&a.startTime<e&&a.endTime===m1&&(a.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:r,type:s}){const{id3Track:i,hls:a}=this;if(!a)return;const{config:{enableEmsgMetadataCues:l,enableID3MetadataCues:u}}=a;if(i&&(l||u)){let d;s==="audio"?d=f=>f.type===Kn.audioId3&&u:s==="video"?d=f=>f.type===Kn.emsg&&l:d=f=>f.type===Kn.audioId3&&u||f.type===Kn.emsg&&l,s5(i.track,t,r,d)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.hls||!this.media)return;const{assetPlayerId:r,timelineOffset:s,enableDateRangeMetadataCues:i,interstitialsController:a}=this.hls.config;if(!i)return;const l=i5();if(r&&s&&!a){const{fragmentStart:x,fragmentEnd:b}=e;let E=this.assetCue;E?(E.startTime=x,E.endTime=b):l&&(E=this.assetCue=z0(l,x,b,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),E&&(E.id=r,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.track.addCue(E),E.addEventListener("enter",this.onEventCueEnter)))}if(!e.hasProgramDateTime)return;const{id3Track:u}=this,{dateRanges:d}=e,f=Object.keys(d);let m=this.dateRangeCuesAppended;if(u&&t){var p;if((p=u.track.cues)!=null&&p.length){const x=Object.keys(m).filter(b=>f.indexOf(b)===-1);for(let b=x.length;b--;){var y;const E=x[b],T=(y=m[E])==null?void 0:y.cues;delete m[E],T&&Object.keys(T).forEach(w=>{const R=T[w];if(R){R.removeEventListener("enter",this.onEventCueEnter);try{u.track.removeCue(R)}catch{}}})}}else m=this.dateRangeCuesAppended={}}const v=e.fragments[e.fragments.length-1];if(!(f.length===0||!ze(v==null?void 0:v.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let x=0;x<f.length;x++){const b=f[x],E=d[b],T=E.startTime,w=m[b],R=(w==null?void 0:w.cues)||{};let I=(w==null?void 0:w.durationKnown)||!1,L=m1;const{duration:N,endDate:_}=E;if(_&&N!==null)L=T+N,I=!0;else if(E.endOnNext&&!I){const F=f.reduce(($,z)=>{if(z!==E.id){const W=d[z];if(W.class===E.class&&W.startDate>E.startDate&&(!$||E.startDate<$.startDate))return W}return $},null);F&&(L=F.startTime,I=!0)}const j=Object.keys(E.attr);for(let F=0;F<j.length;F++){const $=j[F];if(!tF($))continue;const z=R[$];if(z)I&&!(w!=null&&w.durationKnown)?z.endTime=L:Math.abs(z.startTime-T)>.01&&(z.startTime=T,z.endTime=L);else if(l){let W=E.attr[$];nF($)&&(W=bb(W));const oe=z0(l,T,L,{key:$,data:W},Kn.dateRange);oe&&(oe.id=b,this.id3Track.track.addCue(oe),R[$]=oe,a&&($==="X-ASSET-LIST"||$==="X-ASSET-URL")&&oe.addEventListener("enter",this.onEventCueEnter))}}m[b]={cues:R,dateRange:E,durationKnown:I}}}}}function eE(){return self.SourceBuffer||self.WebKitSourceBuffer}function tE(){if(!Fi())return!1;const e=eE();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function cU(){if(!tE())return!1;const n=Fi();return typeof(n==null?void 0:n.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>n.isTypeSupported(Mc(e,"video")))||["mp4a.40.2","fLaC"].some(e=>n.isTypeSupported(Mc(e,"audio"))))}function uU(){var n;const e=eE();return typeof(e==null||(n=e.prototype)==null?void 0:n.changeType)=="function"}var fs={DISABLED:0,SWITCHING:1,SWITCHED:2};const dU=100;class nE extends Zp{constructor(e,t,r){super(e,t,r,"stream-controller",Qe.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=fs.DISABLED,this.audioOnly=!1,this._couldBacktrack=!1,this._backtrackFragment=void 0,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const s=this.media,i=s?s.currentTime:null;if(i===null||!ze(i)||(this.log(`Media seeked to ${i}`),!this.getBufferedFrag(i)))return;const a=this.getFwdBufferInfoAtPos(s,i,Qe.MAIN,0);if(!a||a.len===0){this.log(`Main buffer empty at ${i} on "seeked" event: ${a&&a.len}`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(M.MANIFEST_PARSED,this.onManifestParsed,this),e.on(M.LEVEL_LOADING,this.onLevelLoading,this),e.on(M.LEVEL_LOADED,this.onLevelLoaded,this),e.on(M.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(M.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(M.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(M.BUFFER_CREATED,this.onBufferCreated,this),e.on(M.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(M.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(M.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(M.MANIFEST_PARSED,this.onManifestParsed,this),e.off(M.LEVEL_LOADED,this.onLevelLoaded,this),e.off(M.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(M.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(M.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(M.BUFFER_CREATED,this.onBufferCreated,this),e.off(M.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(M.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(M.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){const{lastCurrentTime:r,hls:s}=this;if(this.stopLoad(),this.setInterval(dU),this.level=-1,!this.startFragRequested){let i=s.startLevel;i===-1&&(s.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=s.firstAutoLevel),s.nextLoadLevel=i,this.level=s.loadLevel,this._hasEnoughToStart=!!t}r>0&&e===-1&&!t&&this.initPTS.length&&(this.log(`Override startPosition with lastCurrentTime @${r}`),e=r),this.state=Le.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,!t&&!this.fragmentTracker.hasFragments(this.playlistType)&&(this._hasEnoughToStart=this.startFragRequested=!1),this.tick()}else this._forceStartLoad=!0,this.state=Le.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Le.WAITING_LEVEL:{const{levels:e,level:t}=this,r=e==null?void 0:e[t],s=r==null?void 0:r.details;if(s&&(!s.live||this.levelLastLoaded===r&&!this.waitForLive(r))){if(this.waitForCdnTuneIn(s))break;this.state=Le.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Le.IDLE;break}break}case Le.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===Le.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),(e=this.media)!=null&&e.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:r,media:s}=this;if(t===null||!s&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const i=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(r!=null&&r[i]))return;const a=r[i],l=this.getMainFwdBufferInfo();if(l===null)return;const u=this.getLevelDetails();if(u&&this._streamEnded(l,u)){const x={type:this.targetBufferType()};this.hls.trigger(M.BUFFER_EOS,x),this.state=Le.ENDED;return}if(!this.buffering)return;e.loadLevel!==i&&e.manualLevel===-1&&this.log(`Adapting to level ${i} from level ${this.level}`),this.level=e.nextLoadLevel=i;const d=a.details;if(!d||this.state===Le.WAITING_LEVEL||this.waitForLive(a)){this.level=i,this.state=Le.WAITING_LEVEL,this.startFragRequested=!1;return}const f=l.len,m=this.getMaxBufferLength(a.maxBitrate);if(f>=m)return;this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=void 0);const p=this.backtrackFragment?this.backtrackFragment.start:l.end;let y=this.getNextFragment(p,d);if(this.couldBacktrack&&!this.fragPrevious&&y&&un(y)&&this.fragmentTracker.getState(y)!==on.OK){var v;const b=((v=this.backtrackFragment)!=null?v:y).sn-d.startSN,E=d.fragments[b-1];E&&y.cc===E.cc&&(y=E,this.fragmentTracker.removeFragment(E))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=void 0);if(y&&this.isLoopLoading(y,p)){if(!y.gap){const b=this.audioOnly&&!this.altAudio?Kt.AUDIO:Kt.VIDEO,E=(b===Kt.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;E&&this.afterBufferFlushed(E,b)}y=this.getNextFragmentLoopLoading(y,d,l,Qe.MAIN,m)}y&&(this.exceedsMaxBuffer(l,m,y)||this.loadFragment(y,a,p))}loadFragment(e,t,r){const s=this.fragmentTracker.getState(e);s===on.NOT_LOADED||s===on.PARTIAL?this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):super.loadFragment(e,t,r):this.clearTrackerIfNeeded(e)}immediateLevelSwitch(){if(this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY),this.altAudio!==fs.DISABLED){var e;(((e=this.getLevelDetails())==null?void 0:e.fragmentStart)||0)>this.lastCurrentTime&&super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio")}}getBufferOutput(){return this.mediaBuffer&&this.altAudio===fs.SWITCHED?this.mediaBuffer:this.media}checkFragmentChanged(){const e=this.fragPlaying;if(!this.checkFragPlaying())return!1;const r=this.fragPlaying;if(r){const s=r.level;this.hls.trigger(M.FRAG_CHANGED,{frag:r,previousFrag:e}),(e==null?void 0:e.level)!==s&&this.hls.trigger(M.LEVEL_SWITCHED,{level:s})}return!0}get backtrackFragment(){return this._backtrackFragment}set backtrackFragment(e){this._backtrackFragment=e}get couldBacktrack(){return this._couldBacktrack}set couldBacktrack(e){this._couldBacktrack=e}abortCurrentFrag(){this.backtrackFragment=void 0,super.abortCurrentFrag()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.targetBufferType())}targetBufferType(){return this.altAudio===fs.SWITCHED&&!this.audioOnly?"video":null}onMediaAttached(e,t){super.onMediaAttached(e,t);const r=t.media;Mt(r,"playing",this.onMediaPlaying),Mt(r,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:r}=this;r&&(jt(r,"playing",this.onMediaPlaying),jt(r,"seeked",this.onMediaSeeked)),this.videoBuffer=null,super.onMediaDetaching(e,t),!t.transferMedia&&(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(M.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.backtrackFragment=void 0,this.altAudio=fs.DISABLED,this.audioOnly=!1}onManifestParsed(e,t){let r=!1,s=!1;for(let i=0;i<t.levels.length;i++){const a=t.levels[i].audioCodec;a&&(r=r||a.indexOf("mp4a.40.2")!==-1,s=s||a.indexOf("mp4a.40.5")!==-1)}this.audioCodecSwitch=r&&s&&!uU(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){const{levels:r}=this;if(!r||this.state!==Le.IDLE)return;const s=t.levelInfo;(!s.details||s.details.live&&(this.levelLastLoaded!==s||s.details.expired)||this.waitForCdnTuneIn(s.details))&&(this.state=Le.WAITING_LEVEL)}onLevelLoaded(e,t){var r;const{levels:s,startFragRequested:i}=this,a=t.level,l=t.details,u=l.totalduration;if(!s){this.warn(`Levels were reset while loading level ${a}`);return}this.log(`Level ${a} loaded [${l.startSN},${l.endSN}]${l.lastPartSn?`[part-${l.lastPartSn}-${l.lastPartIndex}]`:""}, cc [${l.startCC}, ${l.endCC}] duration:${u}`);const d=t.levelInfo,f=this.fragCurrent;f&&(this.state===Le.FRAG_LOADING||this.state===Le.FRAG_LOADING_WAITING_RETRY)&&f.level!==t.level&&f.loader&&this.abortCurrentFrag();let m=0;if(l.live||(r=d.details)!=null&&r.live){var p;if(this.checkLiveUpdate(l),l.deltaUpdateFailed)return;m=this.alignPlaylists(l,d.details,(p=this.levelLastLoaded)==null?void 0:p.details)}if(d.details=l,this.levelLastLoaded=d,i||this.setStartPosition(l,m),this.hls.trigger(M.LEVEL_UPDATED,{details:l,level:a}),this.state===Le.WAITING_LEVEL){if(this.waitForCdnTuneIn(l))return;this.state=Le.IDLE}i&&l.live&&this.synchronizeToLiveEdge(l),this.initPTS.some((y,v)=>{if(v>=l.startCC)return!0;delete this.initPTS[v]}),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:r}=this;if(!r)return;const s=this.hls.liveSyncPosition,i=this.playhead,a=e.fragmentStart,l=e.edge,u=i>=a-t.maxFragLookUpTolerance&&i<=l;if(s!==null&&r.duration>s&&(i<s||!u)){const f=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!u&&r.readyState<4||i<l-f)&&(this._hasEnoughToStart||(this.nextLoadPosition=s),r.readyState))if(this.warn(`Playback: ${i} is located too far from the end of live sliding playlist: ${l}, reset currentTime to : ${s}`),this.config.liveSyncMode==="buffered"){var d;const m=ft.bufferInfo(r,s,0);if(!((d=m.buffered)!=null&&d.length)){r.currentTime=s;return}if(m.start<=i){r.currentTime=s;return}const{nextStart:y}=ft.bufferedInfo(m.buffered,i,0);y&&(r.currentTime=y)}else r.currentTime=s}}_handleFragmentLoadProgress(e){var t;const r=e.frag,{part:s,payload:i}=e,{levels:a}=this;if(!a){this.warn(`Levels were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const l=a[r.level];if(!l){this.warn(`Level ${r.level} not found on progress`);return}const u=l.details;if(!u){this.warn(`Dropping fragment ${r.sn} of level ${r.level} after level details were reset`),this.fragmentTracker.removeFragment(r);return}const d=l.videoCodec,f=u.PTSKnown||!u.live,m=(t=r.initSegment)==null?void 0:t.data,p=this._getAudioCodec(l),y=this.transmuxer=this.transmuxer||new TS(this.hls,Qe.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),v=s?s.index:-1,x=v!==-1,{decryptRange:b,byteRange:E}=of(r,s,this.iframesOnly),T=new Kp(r.level,r.sn,r.stats.chunkCount,E?E.end-E.start:i.byteLength,v,x,r.duration,this.iframesOnly,b),w=this.initPTS[r.cc];y.push(i,m,p,d,r,s,u.totalduration,f,T,w)}onAudioTrackSwitching(e,t){const r=this.hls,s=this.altAudio!==fs.DISABLED;if(af(t.url,r))this.altAudio=fs.SWITCHING;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const a=this.fragCurrent;a&&(this.log("Switching to main audio track, cancel main fragment load"),a.abortRequests(),this.fragmentTracker.removeFragment(a)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(s){this.altAudio=fs.DISABLED,this.fragmentTracker.removeAllFragments(),r.once(M.BUFFER_FLUSHED,()=>{this.hls&&this.hls.trigger(M.AUDIO_TRACK_SWITCHED,t)}),r.trigger(M.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}r.trigger(M.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const r=af(t.url,this.hls);if(r){const s=this.videoBuffer;s&&this.mediaBuffer!==s&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=s)}this.altAudio=r?fs.SWITCHED:fs.DISABLED,this.tick()}onBufferCreated(e,t){const r=t.tracks;let s,i,a=!1;for(const l in r){const u=r[l];if(u.id==="main"){if(i=l,s=u,l==="video"){const d=r[l];d&&(this.videoBuffer=d.buffer)}}else a=!0}a&&s?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=s.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:r,part:s}=t,i=r.type===Qe.MAIN;if(i){if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${s?" p: "+s.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}`),this.state===Le.PARSED&&(this.state=Le.IDLE);return}let u=!1;if(un(r)&&(u=!!r.gap&&!r.tagList.some(d=>d[0]==="GAP")),this.fragBufferedComplete(r,s),u){var a;r.stats.retry++;const d=(a=this.levels)==null?void 0:a[r.level];d&&d.fragmentError++}}const l=this.media;l&&(!this._hasEnoughToStart&&ft.getBuffered(l).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),i&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var r;if(t.fatal){this.state=Le.ERROR;return}switch(t.details){case ye.FRAG_GAP:case ye.FRAG_PARSING_ERROR:case ye.FRAG_DECRYPT_ERROR:case ye.FRAG_LOAD_ERROR:case ye.FRAG_LOAD_TIMEOUT:case ye.KEY_LOAD_ERROR:case ye.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Qe.MAIN,t);break;case ye.LEVEL_LOAD_ERROR:case ye.LEVEL_LOAD_TIMEOUT:case ye.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Le.WAITING_LEVEL&&((r=t.context)==null?void 0:r.type)===St.LEVEL&&(this.state=Le.IDLE);break;case ye.BUFFER_APPEND_NO_PROGRESS:if(t.parent!=="main")return;t.frag&&(t.appendsWithoutProgress||0)>=this.config.appendErrorMaxRetry&&(this.warn(`Marking fragment ${t.frag.sn} of level ${t.frag.level} as a gap after ${t.appendsWithoutProgress} appends without buffered range growth, to prevent loop loading`),this.fragmentTracker.addAsGap(t.frag));break;case ye.BUFFER_ADD_CODEC_ERROR:case ye.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.resetLoadingState();break;case ye.BUFFER_FULL_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&(!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY));break;case ye.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=Le.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==Kt.AUDIO||!this.altAudio){const r=(t===Kt.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;r&&(this.afterBufferFlushed(r,t),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let r=this.startPosition;if(r>=0&&t<r){if(e.seeking){this.log(`could not seek to ${r}, already seeking at ${t}`);return}const s=this.timelineOffset;s&&r&&(r+=s);const i=this.getLevelDetails(),a=ft.getBuffered(e),l=a.length?a.start(0):0,u=l-r,d=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||u>0&&(u<d||this.loadingParts&&u<2*((i==null?void 0:i.partTarget)||0)))&&(this.log(`adjusting start position by ${u} to match buffer start`),r+=u,this.startPosition=r),t<r&&(this.log(`seek to target start position ${r} from current time ${t} buffer start ${l}`),e.currentTime=r)}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t.indexOf("mp4a.40.5")!==-1?t="mp4a.40.2":t="mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then(r=>{const{hls:s}=this,i=r==null?void 0:r.frag;if(!i||this.fragContextChanged(i))return;t.fragmentError=0,this.state=Le.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const a=i.stats;a.parsing.start=a.parsing.end=a.buffering.start=a.buffering.end=self.performance.now(),s.trigger(M.FRAG_LOADED,r),i.bitrateTest=!1}).catch(r=>{this.state===Le.STOPPED||this.state===Le.ERROR||(this.warn(r),this.resetFragmentLoading(e))})}_handleTransmuxComplete(e){const t=this.playlistType,{hls:r}=this,{remuxResult:s,chunkMeta:i}=e,a=this.getCurrentContext(i);if(!a){this.resetWhenMissingContext(i);return}const{frag:l,part:u,level:d}=a,{video:f,text:m,id3:p,initSegment:y}=s,{details:v}=d,x=this.altAudio?void 0:s.audio;if(this.fragContextChanged(l)){this.fragmentTracker.removeFragment(l);return}if(this.state=Le.PARSING,y){const b=y.tracks;if(b){const R=l.initSegment||l;if(this.unhandledEncryptionError(y,l))return;this._bufferInitSegment(d,b,R,i),r.trigger(M.FRAG_PARSING_INIT_SEGMENT,{frag:R,id:t,tracks:b})}const E=y.initPTS,T=y.timescale,w=this.initPTS[l.cc];if(ze(E)&&(!w||w.baseTime!==E||w.timescale!==T)){const R=y.trackId;this.initPTS[l.cc]={baseTime:E,timescale:T,trackId:R};const I=this.initPTS.slice(0);r.trigger(M.INIT_PTS_FOUND,{timestampOffsets:I,frag:l,id:t,initPTS:E,timescale:T,trackId:R})}}if(f&&v){x&&f.type==="audiovideo"&&this.logMuxedErr(l);const b=v.fragments[l.sn-1-v.startSN],E=l.sn===v.startSN,T=!b||l.cc>b.cc;if(s.independent!==!1){const{startPTS:w,endPTS:R,startDTS:I,endDTS:L}=f;if(u)u.elementaryStreams[f.type]={startPTS:w,endPTS:R,startDTS:I,endDTS:L};else if(f.firstKeyFrame&&f.independent&&i.id===1&&!T&&(this.couldBacktrack=!0),f.dropped&&f.independent){const N=this.getMainFwdBufferInfo(),_=(N?N.end:this.getLoadPosition())+this.config.maxBufferHole,j=f.firstKeyFramePTS?f.firstKeyFramePTS:w;if(!E&&_<j-this.config.maxBufferHole&&!T){this.backtrack(l);return}else T&&(l.gap=!0);l.setElementaryStreamInfo(f.type,l.start,R,l.start,L,!0)}else E&&w-(v.appliedTimelineOffset||0)>U1&&(l.gap=!0);l.setElementaryStreamInfo(f.type,w,R,I,L),this.backtrackFragment&&(this.backtrackFragment=l),this.bufferFragmentData(f,l,u,i,E||T)}else if(E||T)l.gap=!0;else{this.backtrack(l);return}}if(x){const{startPTS:b,endPTS:E,startDTS:T,endDTS:w}=x;u&&(u.elementaryStreams[Kt.AUDIO]={startPTS:b,endPTS:E,startDTS:T,endDTS:w}),l.setElementaryStreamInfo(Kt.AUDIO,b,E,T,w),this.bufferFragmentData(x,l,u,i)}if(v&&p!=null&&p.samples.length){const b={id:t,frag:l,details:v,samples:p.samples};r.trigger(M.FRAG_PARSING_METADATA,b)}if(v&&m){const b={id:t,frag:l,details:v,samples:m.samples};r.trigger(M.FRAG_PARSING_USERDATA,b)}}logMuxedErr(e){this.warn(`${un(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,r,s){if(this.state!==Le.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(r));const{audio:i,video:a,audiovideo:l}=t;if(i){const d=e.audioCodec;let f=M1(i.codec,d);if(f==="mp4a"&&(f="mp4a.40.5"),this.audioCodecSwitch){f&&(f.indexOf("mp4a.40.5")!==-1?f="mp4a.40.2":f="mp4a.40.5");const m=i.metadata;m&&"channelCount"in m&&(m.channelCount||1)!==1&&!pM()&&(f="mp4a.40.5")}f&&f.indexOf("mp4a.40.5")!==-1&&yM()&&i.container!=="audio/mpeg"&&(f="mp4a.40.2",this.log(`Android: force audio codec to ${f}`)),d&&d!==f&&this.log(`Swapping manifest audio codec "${d}" for "${f}"`),i.levelCodec=f,i.id=Qe.MAIN,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${f||""}/${d||""}/${i.codec}]`),delete t.audiovideo}if(a){a.levelCodec=e.videoCodec,a.id=Qe.MAIN;const d=a.codec;if((d==null?void 0:d.length)===4)switch(d){case"hvc1":case"hev1":a.codec="hvc1.1.6.L120.90";break;case"av01":a.codec="av01.0.04M.08";break;case"avc1":a.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${a.container}, codecs[level/parsed]=[${e.videoCodec||""}/${d}]${a.codec!==d?" parsed-corrected="+a.codec:""}${a.supplemental?" supplemental="+a.supplemental:""}`),delete t.audiovideo}l&&(this.iframesOnly&&this.logMuxedErr(r),this.log(`Init audiovideo buffer, container:${l.container}, codecs[level/parsed]=[${e.codecs}/${l.codec}]`),delete t.video,delete t.audio);const u=Object.keys(t);if(u.length){if(this.hls.trigger(M.BUFFER_CODECS,t),!this.hls)return;u.forEach(d=>{const m=t[d].initSegment;m!=null&&m.byteLength&&this.hls.trigger(M.BUFFER_APPENDING,{type:d,data:m,frag:r,part:null,chunkMeta:s,parent:r.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.getBufferOutput();return this.getFwdBufferInfo(e,Qe.MAIN)}get maxBufferLength(){const{levels:e,level:t}=this,r=e==null?void 0:e[t];return r?this.getMaxBufferLength(r.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=Le.IDLE}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;return ze(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(ze(t)){const r=this.getLevelDetails(),s=this.currentFrag||(r?Wo(null,r.fragments,t):null);if(s){const i=s.programDateTime;if(i!==null){const a=i+(t-s.start)*1e3;return new Date(a)}}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class rE extends nE{constructor(...e){super(...e),this.currentOp=void 0,this.nextOp=void 0,this.cached=[],this.cachedSize=0,this.cacheFragmentData=!0,this.initDetails=void 0,this.onBufferedToEnd=()=>{const t=this.media;t!=null&&t.seeking&&(t.currentTime=t.currentTime)},this.onMediaSeeking=()=>{}}setInitPts(e){this.initPTS=e.slice()}loadMediaAt(e,t){if(!this.hls)return;const{seekOnAppend:r}=t,s=e+this.timelineOffset;switch(this.nextLoadPosition=this.lastCurrentTime=s,this.startPosition=e,this.state){case Le.STOPPED:case Le.ENDED:case Le.ERROR:this.state=Le.IDLE}this.state===Le.IDLE?(this.hls.resumeBuffering(),this.tick(),this.currentOp=[s,t]):this.nextOp=[s,t],this.hls.off(M.BUFFERED_TO_END,this.onBufferedToEnd);const i=this.media;r&&i&&this.seekTo(s)&&(this.currentOp=[s,t],this.nextOp=void 0,this.flushPipeline(s,!0))}seekTo(e){const t=this.media;if(t){var r;const s=(r=this.getLevelDetails())==null?void 0:r.edge,i=s!==void 0?s:t.duration;if(e>=i&&(e=i-.01),ft.bufferInfo(t,e,0).len>0&&this.getBufferedAt(e))return t.currentTime=e,!0}return!1}getBufferedAt(e){return this.fragmentTracker.getBufferedFrag(e,Qe.MAIN)}cacheSet(e,t){if(!this.hls)return;e.data=t;const r=this.cached;r.push(e),this.cachedSize+=t.buffer.byteLength;const s=this.hls.config.iframeCacheLimit;for(;this.cachedSize>s&&r.length>1;){const i=r.shift();if(i.data)this.cachedSize-=i.data.byteLength,i.data=void 0;else{this.cached=r.filter(a=>!!a.data),this.cachedSize=r.reduce((a,{data:l})=>l?l.buffer.byteLength:0,0);break}}}onHandlerDestroying(){this.cached.length=0,this.cachedSize=0,super.onHandlerDestroying()}_handleFragmentLoadProgress(e){const t=e.frag,{part:r,payload:s}=e;this.cacheFragmentData&&!r&&s!=null&&s.byteLength&&!t.data&&un(t)&&this.cacheSet(t,new Uint8Array(s.slice(0))),super._handleFragmentLoadProgress(e)}loadFragment(e,t,r){const s=this.fragmentTracker.getState(e);if((s===on.NOT_LOADED||s===on.PARTIAL)&&this.canReplayCached(e)){this.replayCachedFragment(e);return}super.loadFragment(e,t,r)}canReplayCached(e){var t;if(!this.cacheFragmentData||!((t=e.data)!=null&&t.byteLength))return!1;const r=e.decryptdata;return(r==null?void 0:r.keyFormat)!=="identity"||!!r.key}replayCachedFragment(e){const t=e.data.slice().buffer;this.log(`Buffering cached ${e.type} sn: ${e.sn} of level ${e.level} (${t.byteLength} bytes)`),this.fragCurrent=e,this.startFragRequested=!0;const r=e.stats=new $p;r.loading.start=r.loading.first=r.loading.end=self.performance.now(),r.loaded=r.total=t.byteLength,r.chunkCount=1,this.state=Le.FRAG_LOADING;const s={frag:e,part:null,payload:t,networkDetails:null};this._handleFragmentLoadProgress(s),this.hls.trigger(M.FRAG_LOADED,s),this._handleFragmentLoadComplete(s)}fragBufferedComplete(e,t){super.fragBufferedComplete(e,t);const{currentOp:r,nextOp:s}=this;this.currentOp=this.nextOp=void 0,this.state=Le.STOPPED,r!=null&&r[1].seekOnAppend&&(this.flushPipeline(r[0],!s),this.seekTo(r[0])||this.log(`Could not seek to ${r[0]} after fragment buffered (superseded or flushed) buffer: ${this.media?df(ft.getBuffered(this.media)):"none"}`)),s&&this.loadMediaAt.apply(this,s)}flushPipeline(e,t){if(t){const r=this.media;if(r){const s=ft.bufferInfo(r,e,0),i=s.len?s.nextStart:0;i&&(this.fragmentTracker.removeFragmentsInRange(i,1/0,Qe.MAIN),this.flushMainBuffer(i,1/0))}this.hls.once(M.BUFFERED_TO_END,this.onBufferedToEnd)}this.hls.trigger(M.BUFFER_EOS,{type:"video"})}get playhead(){return this.nextLoadPosition}startLoad(){if(!this.startFragRequested){const e=this.hls;e.nextLoadLevel=e.startLevel===-1?0:e.firstAutoLevel}}seekToStartPos(){}setStartPosition(){}alignPlaylists(e,t,r){const s=this.initDetails;return this.initDetails=null,super.alignPlaylists(e,t,r||s||void 0)}getMainFwdBufferInfo(){const e=this.playhead,t=this.getBufferedAt(e);if(t){const r=t.duration;return{len:r,start:e,end:e+r,bufferedIndex:-1}}return{len:0,start:e,end:e,bufferedIndex:-1}}_streamEnded(){const e=this.playhead,t=this.fragmentTracker.getBufferedFrag(e,Qe.MAIN);return!!(t!=null&&t.endList)}}class fU extends rE{constructor(...e){super(...e),this._img=void 0,this.queued=void 0,this.cacheFragmentData=!1}get image(){return this._img}set image(e){var t;const r=(t=this._img)==null?void 0:t.src;r&&self.URL.revokeObjectURL(r),this._img=e}loadMediaAt(e){if(!this.hls)return;const t=e+this.timelineOffset;switch(this.nextLoadPosition=this.lastCurrentTime=t,this.startPosition=e,this.state){case Le.STOPPED:case Le.ENDED:case Le.ERROR:this.state=Le.IDLE}if(this.state===Le.IDLE){if(this.hls.resumeBuffering(),this.media||(this.media={}),this.tick(),this.state===Le.IDLE){const r=this.getBufferedAt(e);r&&(this.fragCurrent=r,this.updateImage(r,null))}}else{const r=this.fragCurrent;(!r||e>=r.start&&e<r.end)&&(this.queued=[t])}}updateImage(e,t,r){const s=e.data;s||this.fragmentTracker.removeFragment(e);const i=this._img;if(i&&s){const a=self.performance.now(),l=t?t.stats:e.stats;l.buffering.start=e.stats.buffering.start=a,i.onload=()=>{if(!this.hls)return;const f=this.hls.levels[e.level];f!=null&&f.fragmentError&&(f.fragmentError=0,e.stats.retry=0);const m=self.performance.now(),p=t?t.stats:e.stats;p.buffering.end=e.stats.buffering.end=m,this.hls.trigger(M.FRAG_BUFFERED,{frag:e,part:t,stats:p,id:e.type,chunkMeta:r})},i.onerror=()=>{this.handleError("Image decode error",e,t,r)};const u=i.src;u&&self.URL.revokeObjectURL(u);const d=new Blob([s],{type:"image/jpeg"});i.src=self.URL.createObjectURL(d)}else this.state=Le.STOPPED,this.processQueued()}processQueued(){const e=this.queued;this.queued=void 0,e&&this.loadMediaAt.apply(this,e)}handleError(e,t,r,s){if(!this.hls)return;const i=new Error(e);this.hls.trigger(M.ERROR,{type:nt.MEDIA_ERROR,details:ye.FRAG_PARSING_ERROR,chunkMeta:s,frag:t,part:r,fatal:!1,error:i,err:i})}_bufferInitSegment(){}bufferFragmentData(e,t,r,s){super.bufferFragmentData(e,t,r,s,!0);const i=yt(new Uint8Array(e.data1),["mdat"]);if(i.length===0){this.handleError("Could not find I-Frame mdat",t,r,s);return}const a=t;this.cacheSet(a,i[0]),this.updateImage(a,r,s)}fragBufferedComplete(e,t){this.fragmentTracker.fragBuffered(e,!0),super.fragBufferedComplete(e,t),this.processQueued()}checkFragPlaying(){var e;const t=(e=this.fragPrevious)==null?void 0:e.start;if(t!==void 0){const r=this.getAppendedFrag(t);if(r&&!ac(r,this.fragPlaying))return this.fragPlaying=r,!0}return!1}getMainFwdBufferInfo(){return{len:0,start:this.playhead,end:this.playhead,bufferedIndex:-1}}}const hU=10,mU="Image I-Frame player does not accept HTMLMediaElements",T7={seekOnAppend:!0};let p1,G0;class pU extends Sr{constructor(e,t){super("iframes",e.logger),this.hls=void 0,this.stats=void 0,this.variableList=null,this.initPTS=[],this.iframeInstances=void 0,this.instanceCounter=0,p1||(p1=gU(t)),G0||(G0=yU(p1)),this.hls=e,this.iframeInstances=[],this.registerListeners()}registerListeners(){const e=this.hls;e&&(e.on(M.MANIFEST_LOADING,this.clearAsset,this),e.on(M.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(M.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(M.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(M.FRAG_BUFFERED,this.onFragBuffered,this),e.on(M.DESTROYING,this.onDestroying,this))}unregisterListeners(){const e=this.hls;e&&(e.off(M.MANIFEST_LOADING,this.clearAsset,this),e.off(M.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(M.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(M.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(M.FRAG_BUFFERED,this.onFragBuffered,this),e.off(M.DESTROYING,this.onDestroying,this))}clearAsset(){this.stats=void 0,this.variableList=null,this.initPTS=[],this.iframeInstances.forEach(e=>e.destroy()),this.iframeInstances.length=0}onDestroying(){this.unregisterListeners(),this.clearAsset(),this.hls=void 0}onManifestLoaded(e,t){this.stats=t.stats,this.variableList=t.variableList}onLevelsUpdated(e,{levels:t}){var r;const s=(r=this.hls)==null?void 0:r.pathwayPriority;t.length&&s&&this.iframeInstances.forEach(i=>{i.pathwayPriority=s})}onInitPtsFound(e,{id:t,timestampOffsets:r}){t===Qe.MAIN&&(this.initPTS=r)}onFragBuffered(e,t){var r;const s=this.hls;s&&s.hasEnoughToStart&&(((r=s.mainForwardBufferInfo)==null?void 0:r.len)||0)>hU&&this.iframeInstances.forEach(i=>{if(!i.loadingEnabled){var a;i.startLoad(((a=this.hls)==null||(a=a.media)==null?void 0:a.currentTime)||0)}})}createIFramePlayer(e){var t;return this.createInstance(p1,(t=this.hls)==null?void 0:t.iframeVariants,e)}createImageIFramePlayer(e){var t;const r=(t=this.hls)==null?void 0:t.iframeVariants.filter(s=>s.imageCodec);return this.createInstance(G0,r,e,"image-")}createInstance(e,t,r,s){const{hls:i}=this;if(!i)return null;const{url:a,userConfig:l,latestLevelDetails:u,loadLevelObj:d,loadLevel:f,bandwidthEstimate:m,sessionId:p}=i,{stats:y,variableList:v}=this;if(!(t!=null&&t.length)||!y||!a)return null;const x=`${s||""}iframe-player-${this.instanceCounter++}`,b=i.levels,E=d||b[f],T=Ub(E,l.videoPreference),w=(E==null?void 0:E.pathwayId)||".",R=st(st({},l),{},{loggerId:x,primarySessionId:p,videoPreference:T,abrEwmaDefaultEstimate:m,streamController:void 0,audioStreamController:void 0,audioTrackController:void 0,subtitleStreamController:void 0,subtitleTrackController:void 0,timelineController:void 0,id3TrackController:void 0,fpsController:void 0,gapController:void 0,iframeController:void 0,cmcd:void 0,interstitialsController:void 0,backBufferLength:1/0,maxMaxBufferLength:1,capLevelToPlayerSize:!0,enableWorker:!1,autoStartLoad:!1,startFragPrefetch:!1,testBandwidth:!1,progressive:!1},r),I=new e(R,a,this.initPTS,u);return this.iframeInstances=this.iframeInstances.filter(L=>!L.url),this.iframeInstances.push(I),I.trigger(M.MANIFEST_LOADED,{levels:t,contentSteering:{uri:"",pathwayId:w},sessionKeys:null,audioTracks:[],iframeVariants:[],sessionData:null,startTimeOffset:null,stats:y,networkDetails:null,url:a,variableList:v}),I}}function gU(n){return class extends n{constructor(t,r,s,i){t.streamController||(t.streamController=rE),super(t),this._url=r,this.streamController.setInitPts(s),this.streamController.initDetails=i}loadSource(){}loadMediaAt(t,r=T7){if(t<0)return;const s=st(st({},T7),r);this.loadingEnabled||this.startLoad(t),this.streamController.loadMediaAt(t,s)}}}function yU(n){return class extends n{constructor(t,r,s,i){t.cmcdController=void 0,t.emeController=void 0,t.streamController||(t.streamController=fU),t.capLevelController=void 0,t.bufferController=void 0,super(t,r,s,i)}attachImage(t){this.streamController.image=t}detachImage(){this.streamController.image=void 0}loadSource(){}attachMedia(){throw new Error(mU)}detachMedia(){}recoverMediaError(){}transferMedia(){return null}loadMediaAt(t){if(t<0)return null;this.loadingEnabled||this.startLoad(t),this.streamController.loadMediaAt(t)}}}const Oi=.025;let gf=(function(n){return n[n.Point=0]="Point",n[n.Range=1]="Range",n})({});function vU(n,e,t){return`${n.identifier}-${t+1}-${yc(e)}`}class xU{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,(e=this.assetListLoader)==null||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){var t;if(e>0&&e>=this.assetList.length)return!0;const r=this.playoutLimit;return e<=0||isNaN(r)?!1:r===0?!0:(((t=this.assetList[e])==null?void 0:t.startOffset)||0)>r}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const e=this.dateRange.startTime;if(this.snapOptions.out){const t=this.dateRange.tagAnchor;if(t)return I7(t,e)?V1(e,t):e}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(this.startTime===0||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime,r=V1(t,e);return t-r<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=ze(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){const e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const t=this.resumeAnchor;if(t)return I7(t,e)?V1(e,t):e}return e}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<Oi))}set appendInPlace(e){if(this.appendInPlaceStarted){this.resetOnResume=!e;return}this.appendInPlaceDisabled=!e}get timelineStart(){return this._timelineStart!==null?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return this._duration!==null?t=this._duration:this.dateRange.duration?t=this.dateRange.duration:t=this.dateRange.plannedDuration||0,!isNaN(e)&&e<t&&(t=e),t}set duration(e){this._duration=e}get cue(){return this.dateRange.cue}get timelineOccupancy(){return this.dateRange.attr["X-TIMELINE-OCCUPIES"]==="RANGE"?gf.Range:gf.Point}get supplementsPrimary(){return this.dateRange.attr["X-TIMELINE-STYLE"]==="PRIMARY"}get contentMayVary(){return this.dateRange.attr["X-CONTENT-MAY-VARY"]!=="NO"}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||this.assetListResponse!==null}toString(){return CU(this)}}function V1(n,e){return n-e.start<e.duration/2&&!(Math.abs(n-(e.start+e.duration))<Oi)?e.start:e.start+e.duration}function I7(n,e){return e>n.start-Oi&&e<n.start+n.duration+Oi}function sE(n,e,t){const r=new self.URL(n,t);return r.protocol!=="data:"&&_i(r,"_HLS_primary_id",e),r}function H0(n,e){for(;(t=n.assetList[++e])!=null&&t.error;)var t;return e}function CU(n){return`["${n.identifier}" ${n.cue.pre?"<pre>":n.cue.post?"<post>":""}${n.timelineStart.toFixed(2)}-${n.resumeTime.toFixed(2)}]`}function Ro(n){const e=n.timelineStart,t=n.duration||0;return`["${n.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class bU{constructor(e,t,r,s){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{this.reachedPlayout(this.currentTime)&&this.hls&&this.hls.trigger(M.PLAYOUT_LIMIT_REACHED,{})};const i=this.hls=new e(t);this.interstitial=r,this.assetItem=s;const a=()=>{this.hasDetails=!0};i.once(M.LEVEL_LOADED,a),i.once(M.AUDIO_TRACK_LOADED,a),i.once(M.SUBTITLE_TRACK_LOADED,a),i.on(M.MEDIA_ATTACHING,(l,{media:u})=>{this.removeMediaListeners(),this.mediaAttached=u,this.interstitial.playoutLimit&&(u.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&i.on(M.BUFFER_APPENDED,()=>{const f=this.bufferedEnd;this.reachedPlayout(f)&&(this._bufferedEosTime=f,i.trigger(M.BUFFERED_TO_END,void 0))}))})}get appendInPlace(){return this.interstitial.appendInPlace}loadSource(){const e=this.hls;if(e)if(e.url)e.levels.length&&!e.started&&e.startLoad(-1,!0);else{let t=this.assetItem.uri;try{t=sE(t,e.config.primarySessionId||"").href}catch{}e.loadSource(t)}}bufferedInPlaceToEnd(e,t){var r;if(!this.appendInPlace)return!1;if((r=this.hls)!=null&&r.bufferedToEnd)return!0;if(!e)return!1;const s=Math.min(this._bufferedEosTime||1/0,this.duration),i=this.timelineOffset+(t||0),a=ft.bufferInfo(e,i,.02);return this.getAssetTime(a.end)>=s-.02}reachedPlayout(e){const r=this.interstitial.playoutLimit;return this.startOffset+e>=r}get destroyed(){var e;return!((e=this.hls)!=null&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return((e=this.hls)==null?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=ft.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;if(!e)return 0;const t=this.interstitial.playoutLimit;if(t){const r=t-this.startOffset;if(r>0&&r<e)return r}return e}get remaining(){const e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return((e=this.hls)==null?void 0:e.config.timelineOffset)||0}set timelineOffset(e){const t=this.timelineOffset;if(e!==t){const r=e-t;if(Math.abs(r)>1/9e4&&this.hls){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}getAssetTime(e){const t=this.timelineOffset,r=this.duration;return Math.min(Math.max(0,e-t),r)}removeMediaListeners(){const e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var e;(e=this.hls)!=null&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls&&this.hls.destroy(),this.hls=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){var t;this.loadSource(),(t=this.hls)==null||t.attachMedia(e)}detachMedia(){var e;this.removeMediaListeners(),this.mediaAttached=null,(e=this.hls)==null||e.detachMedia()}resumeBuffering(){var e;(e=this.hls)==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.hls)==null||e.pauseBuffering()}transferMedia(){var e;return this.bufferSnapShot(),((e=this.hls)==null?void 0:e.transferMedia())||null}resetDetails(){const e=this.hls;if(e&&this.hasDetails){e.stopLoad();const t=r=>delete r.details;e.levels.forEach(t),e.allAudioTracks.forEach(t),e.allSubtitleTracks.forEach(t),this.hasDetails=!1}}on(e,t,r){var s;(s=this.hls)==null||s.on(e,t)}once(e,t,r){var s;(s=this.hls)==null||s.once(e,t)}off(e,t,r){var s;(s=this.hls)==null||s.off(e,t)}toString(){var e;return`HlsAssetPlayer: ${Ro(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const W0=.033;class SU extends Sr{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(e=>e.reset()),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce((r,s)=>e<=s.startOffset&&t>s.startOffset?(delete s.error,r+1):r,0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let r=-1;e.nextEvent?r=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(r=this.findEventIndex(e.previousEvent.identifier)+1);const s=this.items;if(s)for(s[r]||(t===void 0&&(t=e.start),r=this.findItemIndexAtTime(t));r>=0&&(i=s[r])!=null&&i.event;){var i;r--}return r}findItemIndexAtTime(e,t){const r=this.items;if(r)for(let s=0;s<r.length;s++){let i=r[s];t&&t!=="primary"&&(i=i[t]);const a=i.start,l=r[s].event,u=l!=null&&l.cue.pre?l.duration:i.end;if(e===a||e>a&&e<u)return s}return-1}findJumpRestrictedIndex(e,t){const r=this.items;if(r)for(let s=e;s<=t&&r[s];s++){const i=r[s].event;if(i!=null&&i.restrictions.jump&&!i.appendInPlace)return s}return-1}findEventIndex(e){const t=this.items;if(t)for(let s=t.length;s--;){var r;if(((r=t[s].event)==null?void 0:r.identifier)===e)return s}return-1}findAssetIndex(e,t){const r=e.assetList,s=r.length;if(s>1)for(let i=0;i<s;i++){const a=r[i];if(!a.error){const l=a.timelineStart;if(t===l||t>l&&(t<l+(a.duration||0)||i===s-1))return i}}return 0}get assetIdAtEnd(){var e;const t=(e=this.items)==null||(e=e[this.length-1])==null?void 0:e.event;if(t){const r=t.assetList,s=r[r.length-1];if(s)return s.identifier}return null}parseInterstitialDateRanges(e,t,r=0){const s=e.main.details,{dateRanges:i}=s,a=this.events,l=this.parseDateRanges(i,{url:s.url},t),u=Object.keys(i),d=a?a.filter(f=>u.indexOf(f.identifier)===-1):[];l.length&&l.sort((f,m)=>{const p=f.cue.pre,y=f.cue.post,v=m.cue.pre,x=m.cue.post;if(p&&!v)return-1;if(v&&!p||y&&!x)return 1;if(x&&!y)return-1;if(!p&&!v&&!y&&!x){const b=f.startTime,E=m.startTime;if(b!==E)return b-E}return f.dateRange.tagOrder-m.dateRange.tagOrder}),this.events=l,d.forEach(f=>{this.removeEvent(f)}),this.updateSchedule(e,d,r)}updateSchedule(e,t=[],r=0,s=!1){const i=this.events||[];if(i.length||t.length||this.length<2){const a=this.items,l=this.parseSchedule(i,e,r);(s||t.length||(a==null?void 0:a.length)!==l.length||l.some((d,f)=>Math.abs(d.playout.start-a[f].playout.start)>.005||Math.abs(d.playout.end-a[f].playout.end)>.005))&&(this.items=l,this.onScheduleUpdate(t,a))}}parseDateRanges(e,t,r){const s=[],i=Object.keys(e);for(let a=0;a<i.length;a++){const l=i[a],u=e[l];if(u.isInterstitial){let d=this.eventMap[l];d?d.setDateRange(u):(d=new xU(u,t),this.eventMap[l]=d,r===!1&&(d.appendInPlace=r)),s.push(d)}}return s}parseSchedule(e,t,r=0){const s=[],i=t.main.details,a=i.live?1/0:i.edge;let l=0;if(e=e.filter(d=>!d.error&&!(d.cue.once&&d.hasPlayed)),e.length){this.resolveOffsets(e,t);let d=0,f=0;if(e.forEach((m,p)=>{const y=m.cue.pre,v=m.cue.post,x=e[p-1]||null,b=m.appendInPlace,E=v?a:m.startOffset,T=m.duration,w=m.timelineOccupancy===gf.Range?T:0,R=y&&i.live?r+(m.resumeOffset||0):0,I=R||m.resumptionOffset,L=(x==null?void 0:x.startTime)===E,N=E+m.cumulativeDuration;let _=b?N+T:E+I;if(y||!v&&E<=0){const F=f;f+=w,m.timelineStart=N;const $=l;l+=T,s.push({event:m,start:N,end:_,playout:{start:$,end:l},integrated:{start:F,end:f}})}else if(E<=a){if(!L){const z=E-d;if(z>W0){const W=d,J=f;f+=z;const oe=l;l+=z;const ie={previousEvent:e[p-1]||null,nextEvent:m,start:W,end:W+z,playout:{start:oe,end:l},integrated:{start:J,end:f}};s.push(ie)}else z>0&&x&&(x.cumulativeDuration+=z,s[s.length-1].end=E)}v&&(_=N),m.timelineStart=N;const F=f;f+=w;const $=l;l+=T,s.push({event:m,start:N,end:_,playout:{start:$,end:l},integrated:{start:F,end:f}})}else return;const j=R||m.resumeTime;v||j>a?d=a:!y&&_&&m.appendInPlaceStarted&&j-_>W0?d=_:d=j}),d<a){var u;const m=d,p=f,y=a-d;f+=y;const v=l;l+=y,s.push({previousEvent:((u=s[s.length-1])==null?void 0:u.event)||null,nextEvent:null,start:d,end:m+y,playout:{start:v,end:l},integrated:{start:p,end:f}})}this.setDurations(a,l,f)}else s.push({previousEvent:null,nextEvent:null,start:0,end:a,playout:{start:0,end:a},integrated:{start:0,end:a}}),this.setDurations(a,a,a);return s}setDurations(e,t,r){this.durations={primary:e,playout:t,integrated:r}}resolveOffsets(e,t){const r=t.main.details,s=r.live?1/0:r.edge;let i=0,a=-1;e.forEach((l,u)=>{const d=l.cue.pre,f=l.cue.post,m=d?0:f?s:l.startTime;this.updateAssetDurations(l),a===m?l.cumulativeDuration=i:(i=0,a=m),!f&&l.snapOptions.in&&(l.resumeAnchor=Wo(null,r.fragments,l.startOffset+l.resumptionOffset,0,0)||void 0),l.appendInPlace&&!l.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(l,t)||(l.appendInPlace=!1)),!l.appendInPlace&&u+1<e.length&&e[u+1].startTime-e[u].resumeTime<W0&&(e[u+1].appendInPlace=!1,e[u+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${l}`));const y=ze(l.resumeOffset)?l.resumeOffset:l.duration;i+=y})}primaryCanResumeInPlaceAt(e,t){const r=e.resumeTime,s=e.startTime+e.resumptionOffset;return Math.abs(r-s)>Oi?(this.log(`"${e.identifier}" resumption ${r} not aligned with estimated timeline end ${s}`),!1):!Object.keys(t).some(a=>{const l=t[a].details,u=l.edge;if(r>=u)return this.log(`"${e.identifier}" resumption ${r} past ${a} playlist end ${u}`),!1;const d=Wo(null,l.fragments,r);if(!d)return this.log(`"${e.identifier}" resumption ${r} does not align with any fragments in ${a} playlist (${l.fragStart}-${l.fragmentEnd})`),!0;const f=a==="audio"?.175:0;return Math.abs(d.start-r)<Oi+f||Math.abs(d.end-r)<Oi+f?!1:(this.log(`"${e.identifier}" resumption ${r} not aligned with ${a} fragment bounds (${d.start}-${d.end} sn: ${d.sn} cc: ${d.cc})`),!0)})}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let r=0,s=!1,i=!1;for(let a=0;a<e.assetList.length;a++){const l=e.assetList[a],u=t+r;l.startOffset=r,l.timelineStart=u,s||(s=l.duration===null),i||(i=!!l.error);const d=l.error?0:l.duration||0;r+=d}s&&!i?e.duration=Math.max(r,e.duration):e.duration=r}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function hr(n){return`[${n.event?'"'+n.event.identifier+'"':"primary"}: ${n.start.toFixed(2)}-${n.end.toFixed(2)}]`}class EU{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const r=e.assetListUrl;let s;try{s=sE(r,this.hls.sessionId,e.baseUrl)}catch(p){const y=this.assignAssetListError(e,ye.ASSET_LIST_LOAD_ERROR,p,r);this.hls.trigger(M.ERROR,y);return}t&&s.protocol!=="data:"&&_i(s,"_HLS_start_offset",""+t);const i=this.hls.config,a=i.loader,l=new a(i),u={type:St.INTERSTITIAL_ASSET_LIST,responseType:"json",url:s.href},d=i.interstitialAssetListLoadPolicy.default,f={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},m={onSuccess:(p,y,v,x)=>{const b=p.data,E=b==null?void 0:b.ASSETS;if(!Array.isArray(E)){const T=this.assignAssetListError(e,ye.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),v.url,y,x);this.hls.trigger(M.ERROR,T);return}e.assetListResponse=b,this.hls.trigger(M.ASSET_LIST_LOADED,{event:e,assetListResponse:b,networkDetails:x})},onError:(p,y,v,x)=>{const b=this.assignAssetListError(e,ye.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${p.code} ${p.text} (${y.url})`),y.url,x,v);this.hls.trigger(M.ERROR,b)},onTimeout:(p,y,v)=>{const x=this.assignAssetListError(e,ye.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${y.url})`),y.url,p,v);this.hls.trigger(M.ERROR,x)}};return l.load(u,f,m),this.hls.trigger(M.ASSET_LIST_LOADING,{event:e}),l}assignAssetListError(e,t,r,s,i,a){return e.error=r,{type:nt.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:s,error:r,networkDetails:a,stats:i}}}function R7(n){var e;n==null||(e=n.play())==null||e.catch(()=>{})}function ua(n,e){return`[${n}] Advancing timeline position to ${e}`}class wU extends Sr{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.bufferPastEdge=!1,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled||!this.schedule)return;const s=r-this.timelinePos;if(Math.abs(s)<1/7056e5)return;const a=s<=-.01;this.timelinePos===-1&&!this.effectivePlayingItem&&this.checkStart(),this.timelinePos=r,this.bufferedPos=r;const l=this.playingItem;if(!l){this.checkBuffer();return}if(a&&this.schedule.resetErrorsInRange(r,r-s)&&this.updateSchedule(!0),this.checkBuffer(),a&&r<l.start||r>=l.end){var u;const y=this.findItemIndex(l);let v=this.schedule.findItemIndexAtTime(r);if(v===-1&&(v=y+(a?-1:1),this.log(`seeked ${a?"back ":""}to position not covered by schedule ${r} (resolving from ${y} to ${v})`)),!this.isInterstitial(l)&&(u=this.media)!=null&&u.paused&&(this.shouldPlay=!1),!a&&v>y){const x=this.schedule.findJumpRestrictedIndex(y+1,v);if(x>y){this.setSchedulePosition(x);return}}this.setSchedulePosition(v);return}const d=this.playingAsset;if(!d){if(this.playingLastItem&&this.isInterstitial(l)){const y=l.event.assetList[0];y&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(r,y))}return}const f=d.timelineStart,m=d.duration||0;if(a&&r<f||r>=f+m){var p;(p=l.event)!=null&&p.appendInPlace&&(this.clearAssetPlayers(l.event,l),this.flushFrontBuffer(r)),this.setScheduleToAssetAtTime(r,d)}},this.onTimeupdate=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled)return;if(this.timelinePos===-1&&!this.effectivePlayingItem&&this.checkStart(),r>this.timelinePos)this.timelinePos=r,r>this.bufferedPos&&this.checkBuffer();else return;const s=this.playingItem;if(!s||this.playingLastItem)return;if(r>=s.end){this.timelinePos=s.end;const l=this.findItemIndex(s);this.setSchedulePosition(l+1)}const i=this.playingAsset;if(!i)return;const a=i.timelineStart+(i.duration||0);r>=a&&this.setScheduleToAssetAtTime(r,i)},this.onScheduleUpdate=(r,s)=>{const i=this.schedule;if(!i)return;const a=this.playingItem,l=i.events||[],u=i.items||[],d=i.durations,f=r.map(x=>x.identifier),m=!!(l.length||f.length);(m||s)&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l}
909Schedule: ${u.map(x=>hr(x))} pos: ${this.timelinePos}`),f.length&&this.log(`Removed events ${f}`);let p=null,y=null;a&&(p=this.updateItem(a,this.timelinePos),this.itemsMatch(a,p)?this.playingItem=p:this.waitingItem=null),this.waitingItem=this.updateItem(this.waitingItem);const v=this.bufferingItem;if(v&&(y=this.updateItem(v,this.bufferedPos),this.itemsMatch(v,y)?this.bufferingItem=y:v.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(v.event,null))),r.forEach(x=>{x.assetList.forEach(b=>{this.clearAssetPlayer(b.identifier,null)})}),this.playerQueue.forEach(x=>{if(x.interstitial.appendInPlace){const b=x.assetItem.timelineStart,E=x.timelineOffset-b;if(E)try{x.timelineOffset=b}catch(T){Math.abs(E)>Oi&&this.warn(`${T} ("${x.assetId}" ${x.timelineOffset}->${b})`)}}}),m||s){if(this.hls.trigger(M.INTERSTITIALS_UPDATED,{events:l.slice(0),schedule:u.slice(0),durations:d,removedIds:f}),this.isInterstitial(a)&&f.indexOf(a.event.identifier)>-1){this.warn(`Interstitial "${a.event.identifier}" removed while playing`),this.primaryFallback(a.event);return}a&&this.trimInPlace(p,a),v&&y!==p&&this.trimInPlace(y,v),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new EU(e),this.schedule=new SU(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e&&(e.on(M.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(M.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(M.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(M.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(M.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(M.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(M.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(M.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(M.BUFFER_APPENDED,this.onBufferAppended,this),e.on(M.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(M.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(M.MEDIA_ENDED,this.onMediaEnded,this),e.on(M.ERROR,this.onError,this),e.on(M.DESTROYING,this.onDestroying,this))}unregisterListeners(){const e=this.hls;e&&(e.off(M.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(M.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(M.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(M.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(M.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(M.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(M.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(M.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(M.BUFFER_CODECS,this.onBufferCodecs,this),e.off(M.BUFFER_APPENDED,this.onBufferAppended,this),e.off(M.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(M.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(M.MEDIA_ENDED,this.onMediaEnded,this),e.off(M.ERROR,this.onError,this),e.off(M.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;(e=this.getBufferingPlayer())==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.getBufferingPlayer())==null||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.schedule=this.manager=null,this.hls=this.HlsPlayerClass=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){jt(e,"play",this.onPlay),jt(e,"pause",this.onPause),jt(e,"seeking",this.onSeeking),jt(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const r=this.media=t.media;Mt(r,"seeking",this.onSeeking),Mt(r,"timeupdate",this.onTimeupdate),Mt(r,"play",this.onPlay),Mt(r,"pause",this.onPause)}onMediaAttached(e,t){const r=this.effectivePlayingItem,s=this.detachedData;if(this.detachedData=null,r===null)this.checkStart();else if(!s){this.clearScheduleState();const i=this.findItemIndex(r);this.setSchedulePosition(i)}}clearScheduleState(){this.log("clear schedule state"),this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const r=!!t.transferMedia,s=this.media;if(this.media=null,!r&&(s&&this.removeMediaListeners(s),this.detachedData)){const i=this.getBufferingPlayer();i&&(this.log(`Removing schedule state for detachedData and ${i}`),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,i.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.hls)return null;if(this.manager)return this.manager;const e=this,t=()=>e.bufferingItem||e.waitingItem,r=m=>m&&e.getAssetPlayer(m.identifier),s=(m,p,y,v,x)=>{if(m){let b=m[p].start;const E=m.event;if(E){if(p==="playout"||E.timelineOccupancy!==gf.Point){const T=r(y);(T==null?void 0:T.interstitial)===E&&(b+=T.assetItem.startOffset+T[x])}}else{const T=v==="bufferedPos"?a():e[v];b+=T-m.start}return b}return 0},i=(m,p)=>{var y;if(m!==0&&p!=="primary"&&(y=e.schedule)!=null&&y.length){var v;const x=e.schedule.findItemIndexAtTime(m),b=(v=e.schedule.items)==null?void 0:v[x];if(b){const E=b[p].start-b.start;return m+E}}return m},a=()=>{const m=e.bufferedPos;return m===Number.MAX_VALUE?l("primary"):Math.max(m,0)},l=m=>{var p,y;return(p=e.primaryDetails)!=null&&p.live?e.primaryDetails.edge:((y=e.schedule)==null?void 0:y.durations[m])||0},u=(m,p)=>{var y,v;const x=e.effectivePlayingItem;if(x!=null&&(y=x.event)!=null&&y.restrictions.skip||!e.schedule)return;e.log(`seek to ${m} "${p}"`);const b=e.effectivePlayingItem,E=e.schedule.findItemIndexAtTime(m,p),T=(v=e.schedule.items)==null?void 0:v[E],w=e.getBufferingPlayer(),R=w==null?void 0:w.interstitial,I=R==null?void 0:R.appendInPlace,L=b&&e.itemsMatch(b,T);if(b&&(I||L)){const N=r(e.playingAsset),_=(N==null?void 0:N.media)||e.primaryMedia;if(_){const j=p==="primary"?_.currentTime:s(b,p,e.playingAsset,"timelinePos","currentTime"),F=m-j,$=(I?j:_.currentTime)+F;if($>=0&&(!N||I||$<=N.duration)){_.currentTime=$;return}}}if(T){let N=m;if(p!=="primary"){const j=T[p].start,F=m-j;N=T.start+F}const _=!e.isInterstitial(T);if((!e.isInterstitial(b)||b.event.appendInPlace)&&(_||T.event.appendInPlace)){const j=e.media||(I?w==null?void 0:w.media:null);j&&(j.currentTime=N)}else if(b){const j=e.findItemIndex(b);if(E>j){const $=e.schedule.findJumpRestrictedIndex(j+1,E);if($>j){e.setSchedulePosition($);return}}let F=0;if(_)e.timelinePos=N,e.checkBuffer();else{const $=T.event.assetList,z=m-(T[p]||T).start;for(let W=$.length;W--;){const J=$[W];if(J.duration&&z>=J.startOffset&&z<J.startOffset+J.duration){F=W;break}}}e.setSchedulePosition(E,F)}}},d=()=>{const m=e.effectivePlayingItem;if(e.isInterstitial(m))return m;const p=t();return e.isInterstitial(p)?p:null},f={get bufferedEnd(){const m=t(),p=e.bufferingItem;if(p&&p===m){var y;return s(p,"playout",e.bufferingAsset,"bufferedPos","bufferedEnd")-p.playout.start||((y=e.bufferingAsset)==null?void 0:y.startOffset)||0}return 0},get currentTime(){const m=d(),p=e.effectivePlayingItem;return p&&p===m?s(p,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-p.playout.start:0},set currentTime(m){const p=d(),y=e.effectivePlayingItem;y&&y===p&&u(m+y.playout.start,"playout")},get duration(){const m=d();return m?m.playout.end-m.playout.start:0},get assetPlayers(){var m;const p=(m=d())==null?void 0:m.event.assetList;return p?p.map(y=>e.getAssetPlayer(y.identifier)):[]},get playingIndex(){var m;const p=(m=d())==null?void 0:m.event;return p&&e.effectivePlayingAsset?p.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return d()}};return this.manager={get events(){var m;return((m=e.schedule)==null||(m=m.events)==null?void 0:m.slice(0))||[]},get schedule(){var m;return((m=e.schedule)==null||(m=m.items)==null?void 0:m.slice(0))||[]},get interstitialPlayer(){return d()?f:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const m=t();return e.findItemIndex(m)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const m=e.effectivePlayingItem;return e.findItemIndex(m)},primary:{get bufferedEnd(){return a()},get currentTime(){const m=e.timelinePos;return m>0?m:0},set currentTime(m){u(m,"primary")},get duration(){return l("primary")},get seekableStart(){return e.seekableStart}},integrated:{get bufferedEnd(){return s(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return s(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(m){u(m,"integrated")},get duration(){return l("integrated")},get seekableStart(){return i(e.seekableStart,"integrated")}},skip:()=>{const m=e.effectivePlayingItem,p=m==null?void 0:m.event;if(p&&!p.restrictions.skip){const y=e.findItemIndex(m);if(p.appendInPlace){const v=m.playout.start+m.event.duration;u(v+.001,"playout")}else e.advanceAfterAssetEnded(p,y,1/0)}}}}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;const t=this.playingItem,r=(e=this.schedule)==null?void 0:e.items;return!this.playbackStarted||!t||!r?!1:this.findItemIndex(t)===r.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var e,t;if(this.mediaSelection===null)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let s=this.media;!s&&(e=this.bufferingItem)!=null&&(e=e.event)!=null&&e.appendInPlace&&(s=this.primaryMedia);const i=(t=s)==null?void 0:t.currentTime;if(!(i===void 0||!ze(i)))return i}get primaryMedia(){var e;return this.media||((e=this.detachedData)==null?void 0:e.media)||null}isInterstitial(e){return!!(e!=null&&e.event)}retreiveMediaSource(e,t){const r=this.getAssetPlayer(e);r&&this.transferMediaFromPlayer(r,t)}transferMediaFromPlayer(e,t){const r=e.interstitial.appendInPlace,s=e.media;if(r&&s===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&s){this.detachedData={media:s};return}const i=e.transferMedia();this.log(`transfer MediaSource from ${e} ${qt(i)}`),this.detachedData=i}else t&&s&&(this.shouldPlay||(this.shouldPlay=!s.paused))}transferMediaTo(e,t){var r,s;if(e.media===t)return;let i=null;const a=this.hls,l=e!==a,u=l&&e.interstitial.appendInPlace,d=(r=this.detachedData)==null?void 0:r.mediaSource;let f;if(a.media)u&&(i=a.transferMedia(),this.detachedData=i),f="Primary";else{const v=this.getBufferingPlayer();v?(i=v.transferMedia(),this.detachedData=i,f=`${v}`):d?f="detached MediaSource":f="detached media"}if(!i){if(d)i=this.detachedData,this.log(`using detachedData: MediaSource ${qt(i)}`);else if(!this.detachedData||a.media===t){const v=this.playerQueue;v.length>1&&v.forEach(x=>{if(l&&x.interstitial.appendInPlace!==u){const b=x.interstitial;this.clearInterstitial(x.interstitial,null),b.appendInPlace=!1,b.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${b}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const m=i&&"mediaSource"in i&&((s=i.mediaSource)==null?void 0:s.readyState)!=="closed";if(this.log(`${m?"transfering MediaSource":"attaching media"} to ${l?e:"Primary"} from ${f} (media.currentTime: ${t.currentTime})`),!m&&!l){e.attachMedia(t);return}const p=m&&i?st({},i):{media:t},y=this.schedule;if(y&&l){const v=e.assetId===y.assetIdAtEnd;p.overrides={duration:y.duration,endOfStream:v||e.appendInPlace===!1}}if(!m&&u){const v=e,x=v.assetItem.timelineStart;if(x){const b=v.hls,E=Math.max(this.timelinePos-x,Number.EPSILON);b.startPosition!==E&&(this.log(`Set ${v} startPosition: ${E}`),b.config.startPosition=E,b.loadingEnabled&&b.startLoad(E))}}e.attachMedia(p)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e==null?void 0:e.events,r=this.hls;if(!t||this.playbackDisabled||!this.media||!r)return;this.bufferedPos===-1&&(this.bufferedPos=0);const s=this.timelinePos,i=this.effectivePlayingItem;if(s===-1){if(!r.loadingEnabled){this.log("waiting for startLoad( <startPosition> )");return}const a=r.startPosition;if(this.timelinePos=a,t.length===0)this.setSchedulePosition(0);else if(t[0].cue.pre){this.log(ua("checkStart (preroll)",a));const l=e.findEventIndex(t[0].identifier);this.setSchedulePosition(l)}else if(a>=0||!this.primaryLive){this.log(ua("checkStart",a));const l=this.timelinePos=a>0?a:0,u=e.findItemIndexAtTime(l);this.setSchedulePosition(u)}else r.liveSyncPosition===0?this.setSchedulePosition(0):this.log("[checkStart] waiting for live start")}else if(i&&!this.playingItem){this.log(ua("checkStart (playing item)",i.start));const a=e.findItemIndex(i);this.setSchedulePosition(a)}}advanceAssetBuffering(e,t){const r=e.event,s=r.findAssetIndex(t),i=H0(r,s);if(!r.isAssetPastPlayoutLimit(i))this.bufferedToEvent(e,i);else if(this.schedule){var a;const l=this.getNextItemIndex(e,!0),u=(a=this.schedule.items)==null?void 0:a[l];u&&this.bufferedToItem(u)}}livePrerollResumption(e,t){if(e.cue.pre&&this.primaryLive&&!ze(e.resumeOffset)&&this.hls){const r=this.getLiveStartPos();if(t){const s=this.getBufferingPlayer(),i=s!=null&&s.interstitial.cue.pre?s.remaining:0;return r+i}return r}}getNextItemIndex(e,t){if(this.schedule){const r=this.livePrerollResumption(e.event,t);if(r!==void 0)return this.log(`find next item index @${r}`),this.schedule.findItemIndexAtTime(r)}return this.findItemIndex(e)+1}advanceAfterAssetEnded(e,t,r){const s=H0(e,r);if(e.isAssetPastPlayoutLimit(s)){if(this.schedule){const i=this.schedule.items;if(i){const a=i[t],l=a.event?this.getNextItemIndex(a):t+1,u=i.length;if(l>=u){this.setSchedulePosition(-1);return}const d=e.resumeTime;this.timelinePos<d&&(this.log(ua("advanceAfterAssetEnded",d)),this.timelinePos=d,e.appendInPlace&&!i[l].event&&this.hls.startLoad(d+.01),this.checkBuffer(this.bufferedPos<d)),this.setSchedulePosition(l)}}}else{if(e.appendInPlace){const i=e.assetList[s];i&&this.advanceInPlace(i.timelineStart)}this.setSchedulePosition(t,s)}}setScheduleToAssetAtTime(e,t){const r=this.schedule;if(!r)return;const s=t.parentIdentifier,i=r.getEvent(s);if(i){const a=r.findEventIndex(s),l=r.findAssetIndex(i,e);this.advanceAfterAssetEnded(i,a,l-1)}}setSchedulePosition(e,t){var r;const s=(r=this.schedule)==null?void 0:r.items;if(!s||this.playbackDisabled)return;const i=e>=0?s[e]:null;this.log(`setSchedulePosition ${e}, ${t} (${i&&hr(i)}) pos: ${this.timelinePos}`);const a=this.waitingItem||this.playingItem,l=this.playingLastItem;if(this.isInterstitial(a)){const m=a.event,p=this.playingAsset,y=p==null?void 0:p.identifier,v=y?this.getAssetPlayer(y):null;if(v&&y&&(!this.eventItemsMatch(a,i)||t!==void 0&&y!==m.assetList[t].identifier)){var u;const x=m.findAssetIndex(p);if(this.log(`INTERSTITIAL_ASSET_ENDED ${x+1}/${m.assetList.length} ${Ro(p)}`),this.endedAsset=p,this.playingAsset=null,this.hls.trigger(M.INTERSTITIAL_ASSET_ENDED,{asset:p,assetListIndex:x,event:m,schedule:s.slice(0),scheduleIndex:e,player:v}),a!==this.playingItem){this.itemsMatch(a,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(m,this.findItemIndex(this.playingItem),x);return}this.retreiveMediaSource(y,i),v.media&&!((u=this.detachedData)!=null&&u.mediaSource)&&v.detachMedia()}if(!this.eventItemsMatch(a,i)&&(this.endedItem=a,this.playingItem=this.waitingItem=null,this.log(`INTERSTITIAL_ENDED ${m} ${hr(a)}`),m.hasPlayed=!0,this.hls.trigger(M.INTERSTITIAL_ENDED,{event:m,schedule:s.slice(0),scheduleIndex:e}),m.cue.once&&this.hls)){var d;this.updateSchedule();const x=(d=this.schedule)==null?void 0:d.items;if(i&&x){const b=this.findItemIndex(i),E=this.livePrerollResumption(m);if(E!==void 0){let T=E;const w=this.getNextItemIndex(a);if(!this.isInterstitial(s[w])){var f;const R=(f=this.primaryDetails)==null?void 0:f.fragments;if(m.snapOptions.in&&R){const I=Wo(null,R,E);I&&(T=Math.min(Math.max(s[w].start,V1(T,I)),s[w].end))}}if(this.log(ua("live join (preroll)",T)),this.timelinePos=T,w!==b&&(w||w===0)){this.advanceSchedule(w,x,void 0,a,l);return}}this.advanceSchedule(b,x,t,a,l)}return}}this.advanceSchedule(e,s,t,a,l)}advanceSchedule(e,t,r,s,i){const a=this.schedule;if(!a)return;const l=t[e]||null,u=this.primaryMedia,d=this.playerQueue;if(d.length&&d.forEach(f=>{const m=f.interstitial,p=a.findEventIndex(m.identifier);(p<e||p>e+1)&&this.clearInterstitial(m,l)}),this.isInterstitial(l)){this.timelinePos=Math.min(Math.max(this.timelinePos,l.start),l.end);const f=l.event;if(r===void 0){r=f.cue.pre?0:a.findAssetIndex(f,this.timelinePos);const v=H0(f,r-1);if(f.isAssetPastPlayoutLimit(v)||f.appendInPlace&&this.timelinePos===l.end){this.advanceAfterAssetEnded(f,e,r);return}r=v}const m=this.waitingItem;this.assetsBuffered(l,u)||this.setBufferingItem(l);let p=this.preloadAssets(f,r);if(this.eventItemsMatch(l,m||s)||(this.waitingItem=l,this.log(`INTERSTITIAL_STARTED ${hr(l)} ${f.appendInPlace?"append in place":""}`),f.hasPlayed=!1,this.hls.trigger(M.INTERSTITIAL_STARTED,{event:f,schedule:t.slice(0),scheduleIndex:e})),!f.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${f}`);return}if(f.assetListLoader&&(f.assetListLoader.destroy(),f.assetListLoader=void 0),!u){this.log(`Waiting for attachMedia to start Interstitial ${f}`);return}this.waitingItem=this.endedItem=null,this.playingItem=l;const y=f.assetList[r];if(!y){this.advanceAfterAssetEnded(f,e,r||0);return}if(p||(p=this.getAssetPlayer(y.identifier)),p===null||p.destroyed){const v=f.assetList.length;this.warn(`asset ${r+1}/${v} player destroyed ${f}`),p=this.createAssetPlayer(f,y,r),p.loadSource()}if(!this.eventItemsMatch(l,this.bufferingItem)&&f.appendInPlace&&this.isAssetBuffered(y))return;this.startAssetPlayer(p,r,t,e,u),this.shouldPlay&&R7(p.media)}else l?(this.resumePrimary(l,e,s),this.shouldPlay&&R7(this.hls.media)):i&&this.isInterstitial(s)&&(this.endedItem=null,this.playingItem=s,s.event.appendInPlace||this.attachPrimary(a.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var e;return(e=this.mediaSelection)==null?void 0:e.main.details}get primaryLive(){var e;return!!((e=this.primaryDetails)!=null&&e.live)}resumePrimary(e,t,r){var s,i;this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=null,this.bufferedToItem(e),this.endedItem=null,this.log(`resuming ${hr(e)}`);let a=this.timelinePos;if((s=this.detachedData)!=null&&s.mediaSource?this.primaryLive&&this.startLoadingPrimaryAt(a):((a<e.start||a>=e.end||a<this.seekableStart)&&(a=this.getPrimaryResumption(e,t),this.log(ua("resumePrimary",a)),this.timelinePos=a),this.attachPrimary(a,e)),!r)return;const l=(i=this.schedule)==null?void 0:i.items;l&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${hr(e)}`),this.hls.trigger(M.INTERSTITIALS_PRIMARY_RESUMED,{schedule:l.slice(0),scheduleIndex:t}),this.checkBuffer())}get seekableStart(){var e;return this.primaryLive&&((e=this.primaryDetails)==null?void 0:e.fragmentStart)||0}getPrimaryResumption(e,t,r){const s=e.start;if(this.primaryLive){if(t===0)return this.hls.startPosition;const i=this.endedItem||this.playingItem,a=i!=null&&i.event?this.livePrerollResumption(i.event,r):void 0;if(a!==void 0)return a;const l=this.primaryDetails;if(l){const{fragmentStart:u,edge:d}=l;if(s<u||s>d&&!r){const f=this.hls.liveSyncPosition;return this.log(`primary resumption out of bounds (${s} [${u}-${d}]) snapping to liveSync ${f}`),f||u}}}return this.log(`primary resumption itemStart: ${s}`),s}getLiveStartPos(){var e;const t=this.hls.startPosition,r=this.hls.liveSyncPosition||0,s=(((e=this.primaryDetails)==null?void 0:e.targetduration)||10)*3;return t===-1||r&&r-t<s?r||0:t}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);return t!=null&&t.hls?t.hls.bufferedToEnd:ft.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,r){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const s=this.primaryMedia;if(!s)return;const i=this.hls;i.media?this.checkBuffer():(this.transferMediaTo(i,s),r&&this.startLoadingPrimaryAt(e,r)),r||(this.log(ua("attachPrimary",e)),this.timelinePos=e,this.startLoadingPrimaryAt(e,r))}startLoadingPrimaryAt(e,t){const r=this.hls,{loadingEnabled:s,bufferingEnabled:i,startPosition:a}=r,l=r.hasEnoughToStart;if(this.log(`Start loading primary @${e} bufferedPos: ${this.bufferedPos} startPosition: ${a} skip seek: ${t} has enough ${l} loadingEnabled: ${s} bufferingEnabled: ${i}`),!t&&l||!s||Math.abs(a-e)>.1){const u=this.primaryDetails;if(u!=null&&u.live&&e+.5>=u.edge){const d=this.bufferingItem;this.log(`Resume primary loading when live passes ${e} buffering item: ${d?hr(d):null}`),r.pauseBuffering(),this.bufferPastEdge=!0;return}r.startLoad(e,t)}else i||r.resumeBuffering()}onManifestLoading(){var e;this.stopLoad(),(e=this.schedule)==null||e.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(M.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(M.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(t.level===-1||!this.schedule)return;const r=this.hls.levels[t.level];if(!r.details)return;const s=st(st({},this.mediaSelection||this.altSelection),{},{main:r});this.mediaSelection=s;const i=this.hls.startPosition;if(this.schedule.parseInterstitialDateRanges(s,this.hls.config.interstitialAppendInPlace,i===-1?0:i),!!this.schedule.items){if(!this.effectivePlayingItem)this.checkStart();else if(this.bufferPastEdge){const l=this.primaryDetails,u=this.bufferedPos;if(l!=null&&l.live&&u+.5<l.edge){this.bufferPastEdge=!1;const d=this.bufferingItem;if(this.log(`Live edge ${l.edge} passed buffer: ${u} buffering item: ${d?hr(d):null}`),(d==null?void 0:d.end)===1/0){const m=this.playingItem,p=this.isInterstitial(m)&&m.event.appendInPlace;this.hls.startLoad(Math.max(u,d.start),p)}else{const m=this.getBufferingPlayer();m&&m.bufferedInPlaceToEnd(this.primaryMedia,m.currentTime)&&m.hls&&m.hls.trigger(M.BUFFERED_TO_END,void 0)}}}}}onAudioTrackUpdated(e,t){const r=this.hls.audioTracks[t.id],s=this.mediaSelection;if(!s){this.altSelection=st(st({},this.altSelection),{},{audio:r});return}const i=st(st({},s),{},{audio:r});this.mediaSelection=i}onSubtitleTrackUpdated(e,t){const r=this.hls.subtitleTracks[t.id],s=this.mediaSelection;if(!s){this.altSelection=st(st({},this.altSelection),{},{subtitles:r});return}const i=st(st({},s),{},{subtitles:r});this.mediaSelection=i}onAudioTrackSwitching(e,t){const r=C9(t);this.playerQueue.forEach(({hls:s})=>s&&(s.setAudioOption(t)||s.setAudioOption(r)))}onSubtitleTrackSwitch(e,t){const r=C9(t);this.playerQueue.forEach(({hls:s})=>s&&(s.setSubtitleOption(t)||t.id!==-1&&s.setSubtitleOption(r)))}onBufferCodecs(e,t){const r=t.tracks;r&&(this.requiredTracks=r)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const r=this.playingItem;if(r&&!this.itemsMatch(r,this.bufferingItem)&&!this.isInterstitial(r)){const s=this.timelinePos;this.bufferedPos=s,this.checkBuffer()}}onBufferedToEnd(e){if(!this.schedule)return;const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let r=0;r<t.length;r++){const s=t[r];if(s.cue.post){const i=this.getEventItem(s.identifier);i&&this.eventItemsMatch(i,this.bufferingItem)&&this.bufferedToItem(i,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){const t=this.playingItem;if(!this.playingLastItem&&t){const r=this.findItemIndex(t);this.setSchedulePosition(r+1)}else this.shouldPlay=!1}updateItem(e,t){var r;const s=(r=this.schedule)==null?void 0:r.items;if(e&&s){const i=this.findItemIndex(e,t);return s[i]||null}return null}trimInPlace(e,t){if(this.isInterstitial(e)&&e.event.appendInPlace&&t.end-e.end>.25){e.event.assetList.forEach((i,a)=>{e.event.isAssetPastPlayoutLimit(a)&&this.clearAssetPlayer(i.identifier,null)});const r=e.end+.25,s=ft.bufferInfo(this.primaryMedia,r,0);(s.end>r||(s.nextStart||0)>r)&&(this.log(`trim buffered interstitial ${hr(e)} (was ${hr(t)})`),this.attachPrimary(r,null,!0),this.flushFrontBuffer(r))}}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var r;return!!t&&(e===t||e.event.identifier===((r=t.event)==null?void 0:r.identifier))}findEventIndex(e){return this.schedule?this.schedule.findEventIndex(e):-1}getEventItem(e){if(this.schedule){var t;const r=(t=this.schedule.items)==null?void 0:t[this.findEventIndex(e)];if(this.isInterstitial(r)&&r.event.identifier===e)return r}}findItemIndex(e,t){return e&&this.schedule?this.schedule.findItemIndex(e,t):-1}updateSchedule(e=!1){var t,r;const s=this.mediaSelection;if(!s)return;const i=((t=this.hls)==null?void 0:t.liveSyncPosition)||0;(r=this.schedule)==null||r.updateSchedule(s,[],i,e)}checkBuffer(e){var t;const r=(t=this.schedule)==null?void 0:t.items;if(!r)return;const s=ft.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=s.len<1),this.updateBufferedPos(s.end,r,e)}updateBufferedPos(e,t,r){const s=this.schedule,i=this.bufferingItem;if(this.bufferedPos>e||!s)return;if(t.length===1&&this.itemsMatch(t[0],i)){this.bufferedPos=e;return}const a=this.playingItem,l=this.findItemIndex(a);let u=s.findItemIndexAtTime(e);if(this.bufferedPos<e){var d;const f=this.findItemIndex(i),m=Math.min(f+1,t.length-1),p=t[m];if((u===-1&&i&&e>=i.end||(d=p.event)!=null&&d.appendInPlace&&e+.01>=p.start)&&(u=m),this.isInterstitial(i)){const y=i.event;if(m-l>1&&y.appendInPlace===!1||y.assetList.length===0&&y.assetListLoader)return}if(this.bufferedPos=e,u>f&&u>l)this.bufferedToItem(p);else{const y=this.primaryDetails;this.primaryLive&&y&&e>y.edge-y.targetduration&&p.start<y.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(p)&&this.preloadAssets(p.event,0)}}else r&&a&&!this.itemsMatch(a,i)&&(u===l?this.bufferedToItem(a):u===l+1&&this.bufferedToItem(t[u]))}assetsBuffered(e,t){return e.event.assetList.length===0?!1:!e.event.assetList.some(s=>{const i=this.getAssetPlayer(s.identifier);return!(i!=null&&i.bufferedInPlaceToEnd(t))})}setBufferingItem(e){const t=this.bufferingItem,r=this.schedule;if(!this.itemsMatch(e,t)&&r){const{items:s,events:i}=r;if(!s||!i)return t;const a=this.isInterstitial(e),l=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));const u=l?l.remaining:t?t.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${hr(e)}`+(t?` (${u.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(a){const d=r.findAssetIndex(e.event,this.bufferedPos);e.event.assetList.forEach((f,m)=>{const p=this.getAssetPlayer(f.identifier);p&&(m===d&&p.loadSource(),p.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(d=>d.pauseBuffering());this.hls.trigger(M.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:i.slice(0),schedule:s.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}else this.bufferingItem!==e&&(this.bufferingItem=e);return t}bufferedToItem(e,t=0){const r=this.setBufferingItem(e);if(!this.playbackDisabled){if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(r!==null){this.bufferingAsset=null;const s=this.getPrimaryResumption(e,this.findItemIndex(e),!0),i=this.bufferedPos=Math.max(s,Math.min(this.bufferedPos,e.end),this.timelinePos,e.start),a=this.detachedData;if(a)a.mediaSource?this.attachPrimary(i,e,!0):this.startLoadingPrimaryAt(i);else{const l=this.playingItem,u=this.isInterstitial(l)&&l.event.appendInPlace;this.startLoadingPrimaryAt(i,u)}}}}bufferedToEvent(e,t){const r=e.event,s=r.assetList.length===0&&!r.assetListLoader,i=r.cue.once;if(s||!i){const a=this.preloadAssets(r,t);if(a!=null&&a.interstitial.appendInPlace){const l=this.primaryMedia;l&&this.bufferAssetPlayer(a,l)}}}preloadAssets(e,t){const r=e.assetUrl,s=e.assetList.length,i=s===0&&!e.assetListLoader,a=e.cue.once;if(i){const u=e.timelineStart,d=this.playingItem,f=this.getBufferingPlayer();if(e.appendInPlace){var l;!this.isInterstitial(d)&&(d==null||(l=d.nextEvent)==null?void 0:l.identifier)===e.identifier&&this.flushFrontBuffer(u+.25)}let m,p=0;if((!f||f.interstitial.cue.pre)&&this.primaryLive&&(p=this.getLiveStartPos(),f&&(p+=f.remaining)),p&&!(e.cue.pre||e.cue.post)){const v=p-u;v>0&&(m=Math.round(v*1e3)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${r?1:s} ${e}${p?` live-start: ${p} start-offset: ${m} (timeline-start: ${u})`:""}`),r)return this.createAsset(e,0,0,u,e.duration,r);const y=this.assetListLoader.loadAssetList(e,m);y&&(e.assetListLoader=y)}else if(!a&&s){for(let d=t;d<s;d++){const f=e.assetList[d],m=this.getAssetPlayerQueueIndex(f.identifier);(m===-1||this.playerQueue[m].destroyed)&&!f.error&&this.createAssetPlayer(e,f,d)}const u=e.assetList[t];if(u){const d=this.getAssetPlayer(u.identifier);return d&&d.loadSource(),d}}return null}flushFrontBuffer(e){const t=this.requiredTracks;if(!t)return;const r=this.primaryDetails;if(r&&e>=r.edge)return;this.log(`Removing front buffer starting at ${e}`),Object.keys(t).forEach(i=>{this.hls.trigger(M.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:i})})}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let r=0;r<t.length;r++)if(e===t[r].assetId)return r;return-1}getAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}getBufferingPlayer(){const{playerQueue:e,primaryMedia:t}=this;if(t){for(let r=0;r<e.length;r++)if(e[r].media===t)return e[r]}return null}createAsset(e,t,r,s,i,a){const l={parentIdentifier:e.identifier,identifier:vU(e,a,t),duration:i,startOffset:r,timelineStart:s,uri:a};return this.createAssetPlayer(e,l,t)}createAssetPlayer(e,t,r){const s=this.hls,i=s.userConfig,a=s.loadLevelObj||s.levels[s.currentLevel],l=Ub(a,i.videoPreference),u=s.audioTracks[s.audioTrack],d=s.subtitleTracks[s.subtitleTrack];let f=0;if(this.primaryLive||e.appendInPlace){const R=this.timelinePos-t.timelineStart;if(R>=0){const I=t.duration;I&&R<I&&(f=R)}}const m=t.identifier,p=st(st({},i),{},{maxMaxBufferLength:Math.min(15,s.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:s.sessionId,assetPlayerId:m,abrEwmaDefaultEstimate:s.bandwidthEstimate,interstitialsController:void 0,startPosition:f,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:l,audioPreference:u||i.audioPreference,subtitlePreference:d||i.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(p.timelineOffset=t.timelineStart));const y=p.cmcd;y!=null&&y.sessionId&&y.contentId&&(p.cmcd=Vt({},y,{contentId:yc(t.uri)})),this.getAssetPlayer(m)&&this.warn(`Duplicate date range identifier ${e} and asset ${m}`);const v=new bU(this.HlsPlayerClass,p,e,t);this.playerQueue.push(v),e.assetList[r]=t;let x=!0;const b=R=>{if(R.live){const N=new Error(`Interstitials MUST be VOD assets ${e}`),_={fatal:!0,type:nt.OTHER_ERROR,details:ye.INTERSTITIAL_ASSET_ITEM_ERROR,error:N},j=this.findEventIndex(e.identifier);this.handleAssetItemError(_,e,j,r,N.message);return}const I=R.edge-R.fragmentStart,L=t.duration;(x||L===null||I>L)&&(x=!1,this.log(`Interstitial asset "${m}" duration change ${L} > ${I}`),t.duration=I,this.updateSchedule())};v.on(M.LEVEL_UPDATED,(R,{details:I})=>b(I)),v.on(M.LEVEL_PTS_UPDATED,(R,{details:I})=>b(I)),v.on(M.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const E=(R,I)=>{const L=this.getAssetPlayer(m);if(L&&I.tracks){L.off(M.BUFFER_CODECS,E),L.tracks=I.tracks;const N=this.primaryMedia;this.bufferingAsset===L.assetItem&&N&&!L.media&&this.bufferAssetPlayer(L,N)}};v.on(M.BUFFER_CODECS,E);const T=()=>{const R=this.getAssetPlayer(m);if(this.log(`buffered to end of asset ${R}`),!R||!this.schedule)return;const I=this.getEventItem(e.identifier);I&&this.advanceAssetBuffering(I,R.assetItem)};v.on(M.BUFFERED_TO_END,T);const w=R=>()=>{if(!this.getAssetPlayer(m)||!this.schedule)return;this.shouldPlay=!0;const L=this.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,L,R)};return v.once(M.MEDIA_ENDED,w(r)),v.once(M.PLAYOUT_LIMIT_REACHED,w(1/0)),v.on(M.ERROR,(R,I)=>{if(!this.schedule)return;const L=this.getAssetPlayer(m);if(I.details===ye.BUFFER_STALLED_ERROR){if(L!=null&&L.appendInPlace){this.handleInPlaceStall(e);return}this.onTimeupdate(),this.checkBuffer(!0);return}else if(I.details===ye.BUFFER_SEEK_OVER_HOLE)return;this.handleAssetItemError(I,e,this.findEventIndex(e.identifier),r,`Asset player error ${I.error} ${e}`)}),v.on(M.DESTROYING,()=>{if(!this.getAssetPlayer(m)||!this.schedule)return;const I=new Error(`Asset player destroyed unexpectedly ${m}`),L={fatal:!0,type:nt.OTHER_ERROR,details:ye.INTERSTITIAL_ASSET_ITEM_ERROR,error:I};this.handleAssetItemError(L,e,this.findEventIndex(e.identifier),r,I.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${Ro(t)}`),this.hls.trigger(M.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:r,event:e,player:v}),v}clearInterstitial(e,t){this.clearAssetPlayers(e,t),e.reset()}clearAssetPlayers(e,t){e.assetList.forEach(r=>{this.clearAssetPlayer(r.identifier,t)})}resetAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);if(t!==-1){this.log(`reset asset player "${e}" after error`);const r=this.playerQueue[t];this.transferMediaFromPlayer(r,null),r.resetDetails()}}clearAssetPlayer(e,t){const r=this.getAssetPlayerQueueIndex(e);if(r!==-1){const s=this.playerQueue[r];this.log(`clear ${s} toSegment: ${t&&hr(t)}`),this.transferMediaFromPlayer(s,t),this.playerQueue.splice(r,1),s.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,r,s,i){const{interstitial:a,assetItem:l,assetId:u}=e,d=a.assetList.length,f=this.playingAsset;this.endedAsset=null,this.playingAsset=l,(f==null?void 0:f.identifier)!==u&&(f&&(this.clearAssetPlayer(f.identifier,r[s]),delete f.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${d} ${Ro(l)}`),this.hls.trigger(M.INTERSTITIAL_ASSET_STARTED,{asset:l,assetListIndex:t,event:a,schedule:r.slice(0),scheduleIndex:s,player:e})),this.bufferAssetPlayer(e,i)}bufferAssetPlayer(e,t){var r;if(!this.schedule)return;const{interstitial:s,assetItem:i}=e,a=this.getEventItem(s.identifier);if(!a)return;if(e.loadSource(),this.setBufferingItem(a),this.bufferingAsset=i,e.bufferedInPlaceToEnd(this.primaryMedia,e.currentTime)){this.advanceAssetBuffering(a,i);return}const l=this.getBufferingPlayer();if(l===e)return;const u=s.appendInPlace;if(u&&(l==null?void 0:l.interstitial.appendInPlace)===!1)return;const d=(l==null?void 0:l.tracks)||((r=this.detachedData)==null?void 0:r.tracks)||this.requiredTracks;if(u&&i!==this.playingAsset){if(!e.tracks){this.log(`Waiting for track info before buffering ${e}`);return}if(d&&!pb(d,e.tracks)){const f=new Error(`Asset ${Ro(i)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(d)}')`),m={fatal:!0,type:nt.OTHER_ERROR,details:ye.INTERSTITIAL_ASSET_ITEM_ERROR,error:f},p=s.findAssetIndex(i);this.handleAssetItemError(m,s,this.findEventIndex(s.identifier),p,f.message);return}}this.transferMediaTo(e,t)}handleInPlaceStall(e){const t=this.schedule,r=this.primaryMedia;if(!t||!r)return;const s=r.currentTime,i=t.findAssetIndex(e,s),a=e.assetList[i];if(a){const l=this.getAssetPlayer(a.identifier);if(l){const u=l.currentTime||s-a.timelineStart,d=l.duration-u;if(this.warn(`Stalled at ${u} of ${u+d} in ${l} ${e} (media.currentTime: ${s})`),u&&(d/r.playbackRate<.5||l.bufferedInPlaceToEnd(r,l.currentTime))&&l.hls){const f=t.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,f,i)}}}}advanceInPlace(e){const t=this.primaryMedia;if(t&&t.currentTime<e){const r=`advance currentTime to ${e}, duration: ${t.duration}`;t.duration>e?(this.log(r),t.currentTime=e):this.log(`Cannot ${r}`)}}handleAssetItemError(e,t,r,s,i){if(e.details===ye.BUFFER_STALLED_ERROR)return;const a=t.assetList[s]||null;if(this.warn(`INTERSTITIAL_ASSET_ERROR ${a&&Ro(a)} ${e.error}`),!this.schedule)return;const l=(a==null?void 0:a.identifier)||"",u=this.getAssetPlayerQueueIndex(l),d=this.playerQueue[u]||null,f=this.schedule.items,m=Vt({},e,{fatal:!1,errorAction:mc(!0),asset:a,assetListIndex:s,event:t,schedule:f,scheduleIndex:r,player:d});if(this.hls.trigger(M.INTERSTITIAL_ASSET_ERROR,m),!e.fatal)return;const p=this.playingAsset,y=this.bufferingAsset,v=new Error(i);if(a&&(this.clearAssetPlayer(l,null),a.error=v),!t.assetList.some(x=>!x.error))t.error=v;else for(let x=s;x<t.assetList.length;x++)this.resetAssetPlayer(t.assetList[x].identifier);this.updateSchedule(!0),t.error?this.primaryFallback(t):(p==null?void 0:p.identifier)===l?this.advanceAfterAssetEnded(t,r,s):(y==null?void 0:y.identifier)===l&&this.isInterstitial(this.bufferingItem)&&this.advanceAssetBuffering(this.bufferingItem,y)}primaryFallback(e){const t=e.timelineStart,r=this.effectivePlayingItem,s=this.playingItem,i=this.seekableStart,a=this.hls.startPosition;let l=this.timelinePos;if(this.isInterstitial(r)){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${l} playing: ${hr(r)} startPosition: ${a} seekableStart: ${i} error: ${e.error}`),l===-1&&(l=a),l=Math.max(l,i);const d=this.updateItem(r,l);this.itemsMatch(r,d)&&this.clearInterstitial(e,null),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t))}else if(l===-1){this.checkStart();return}if(!this.schedule||!this.isInterstitial(s))return;const u=this.schedule.findItemIndexAtTime(l);this.setSchedulePosition(u)}onAssetListLoaded(e,t){var r,s;const i=t.event,a=i.identifier,l=t.assetListResponse.ASSETS;if(!((r=this.schedule)!=null&&r.hasEvent(a)))return;const u=i.timelineStart,d=i.duration;let f=0;l.forEach((v,x)=>{const b=parseFloat(v.DURATION);this.createAsset(i,x,f,u+f,b,v.URI),f+=b}),i.duration=f,this.log(`Loaded asset-list with duration: ${f} (was: ${d}) ${i}`);
909const m=this.waitingItem,p=(m==null?void 0:m.event.identifier)===a;this.updateSchedule();const y=(s=this.bufferingItem)==null?void 0:s.event;if(p){const v=this.findEventIndex(a),x=this.getEventItem(a);if(x){if(!this.playingItem&&this.timelinePos>x.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==v){i.error=new Error(`Interstitial ${l.length?"no longer within playback range":"asset-list is empty"} ${this.timelinePos} ${i}`),this.log(i.error.message),this.updateSchedule(!0),this.primaryFallback(i);return}this.setBufferingItem(x)}this.setSchedulePosition(v)}else if((y==null?void 0:y.identifier)===a){const v=i.assetList[0];if(v){const x=this.getAssetPlayer(v.identifier);if(y.appendInPlace){const b=this.primaryMedia;x&&b&&this.bufferAssetPlayer(x,b)}else x&&x.loadSource()}}}onError(e,t){if(this.schedule)switch(t.details){case ye.ASSET_LIST_PARSING_ERROR:case ye.ASSET_LIST_LOAD_ERROR:case ye.ASSET_LIST_LOAD_TIMEOUT:{const r=t.interstitial;r&&(this.updateSchedule(!0),this.primaryFallback(r));break}case ye.BUFFER_STALLED_ERROR:{const r=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&r.event.appendInPlace){this.handleInPlaceStall(r.event);return}const s=this.primaryMedia;this.log(`Primary player stall @${this.timelinePos} currentTime: ${s==null?void 0:s.currentTime} bufferedPos: ${this.bufferedPos}`),this.onTimeupdate(),this.checkBuffer(!0);break}}}}class TU{constructor(e){this.hls=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{var t;const{media:r}=this,s=this.levelDetails;if(!r||!s||!this.hls)return;this.currentTime=r.currentTime;const i=this.hls.config,a=this.computeLatency();if(a===null)return;this._latency=a;const{lowLatencyMode:l,maxLiveSyncPlaybackRate:u}=i;if(!l||u===1||!s.live)return;const d=this.targetLatency;if(d===null)return;const f=a-d,m=Math.min(this.maxLatency,d+s.targetduration),p=f<m,y=ff(i)&&!!((t=this.hls.interstitialsManager)!=null&&(t=t.playingItem)!=null&&t.event);if(p&&f>.05&&this.forwardBufferLength>1&&!y){const v=Math.min(2,Math.max(1,u)),x=Math.round(2/(1+Math.exp(-.75*f-this.edgeStalled))*20)/20,b=Math.min(v,Math.max(1,x));this.changeMediaPlaybackRate(r,b)}else r.playbackRate!==1&&r.playbackRate!==0&&this.changeMediaPlaybackRate(r,1)},this.hls=e,this.registerListeners()}get levelDetails(){var e;return((e=this.hls)==null?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){var e;const t=(e=this.hls)==null?void 0:e.config;if(!t)return 0;if(t.liveMaxLatencyDuration!==void 0)return t.liveMaxLatencyDuration;const r=this.levelDetails;return r?t.liveMaxLatencyDurationCount*r.targetduration:0}get targetLatency(){const e=this.levelDetails;if(e===null||!this.hls)return null;const t=this.hls.config,{holdBack:r,partHoldBack:s,targetduration:i}=e,{liveSyncDuration:a,liveSyncDurationCount:l,lowLatencyMode:u}=t,d=this.hls.userConfig;let f=u&&s||r;(this._targetLatencyUpdated||d.liveSyncDuration||d.liveSyncDurationCount||f===0)&&(f=a!==void 0?a:l*i);const m=i;return f+Math.min(this.stallCount*t.liveSyncOnStallIncrease,m)}set targetLatency(e){this.hls&&(this.stallCount=0,this.hls.config.liveSyncDuration=e,this._targetLatencyUpdated=!0)}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(e===null||t===null||!this.hls)return null;const r=this.levelDetails;if(r===null)return null;const s=r.edge,i=e-t-this.edgeStalled,a=s-r.totalduration,l=s-(this.hls.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(a,i),l)}get drift(){const e=this.levelDetails;return e===null?1:e.drift}get edgeStalled(){const e=this.levelDetails;if(e===null||!this.hls)return 0;const t=(this.hls.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;const r=e.buffered.length;return(r?e.buffered.end(r-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;
vendor: 44,380 bytes, lines 909-910
909e&&(e.on(M.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(M.ERROR,this.onError,this),e.on(M.INTERSTITIAL_ASSET_STARTED,this.onAssetStarted,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(M.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(M.ERROR,this.onError,this),e.off(M.INTERSTITIAL_ASSET_STARTED,this.onAssetStarted,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onAssetStarted(e,t){var r;const s=this.hls,i=this.media||t.event.appendInPlace&&(s==null||(r=s.interstitialsManager)==null?void 0:r.playerQueue.reduce((a,l)=>a||l.media,null));s&&i&&i.playbackRate>1&&i.playbackRate<=s.config.maxLiveSyncPlaybackRate&&this.changeMediaPlaybackRate(i,1)}onError(e,t){var r;t.details===ye.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(r=this.levelDetails)!=null&&r.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var r,s;e.playbackRate!==t&&((r=this.hls)==null||r.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(s=this.targetLatency)==null?void 0:s.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}const A7=500;class IU extends Zp{constructor(e,t,r){super(e,t,r,"subtitle-stream-controller",Qe.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(M.LEVEL_LOADED,this.onLevelLoaded,this),e.on(M.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(M.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(M.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(M.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(M.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(M.LEVEL_LOADED,this.onLevelLoaded,this),e.off(M.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(M.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(M.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(M.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(M.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=Le.IDLE,this.setInterval(A7),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:r,part:s,success:i}=t;if(!i)return;const a=this.tracksBuffered[this.currentTrackId];if(!a)return;let l;const u=(s||r).start;for(let f=0;f<a.length;f++)if(u>=a[f].start&&u<=a[f].end){l=a[f];break}const d=u+(s||r).duration;if(l?l.end=d:(l={start:u,end:d},a.push(l)),!s||d>=r.end){const f=this.fragmentTracker.fragBuffered(r);s&&f&&(f.range.subs={time:[{startPTS:r.start,endPTS:d}],partial:!0}),un(r)&&!this.fragContextChanged(r)&&(this.fragPrevious=r),this.fragBufferedComplete(r,s),this.media&&this.tickImmediate()}}onBufferFlushing(e,t){const{startOffset:r,endOffset:s}=t;if(r===0&&s!==Number.POSITIVE_INFINITY){const i=s-1;if(i<=0)return;t.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach(a=>{if(a)for(let l=0;l<a.length;){if(a[l].end<=i){a.shift();continue}else if(a[l].start<i)a[l].start=i;else break;l++}}),this.fragmentTracker.removeFragmentsInRange(r,i,Qe.SUBTITLE)}}onError(e,t){const r=t.frag;(r==null?void 0:r.type)===Qe.SUBTITLE&&(t.details===ye.FRAG_GAP&&this.fragmentTracker.addAsGap(r),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Le.STOPPED&&(this.state=Le.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&IS(this.levels,t)){this.levels=t.map(r=>new Fc(r));return}this.tracksBuffered=[],this.levels=t.map(r=>{const s=new Fc(r);return this.tracksBuffered[s.id]=[],s}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Qe.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var r;if(this.currentTrackId=t.id,this.abortCurrentFrag(),!((r=this.levels)!=null&&r.length)||this.currentTrackId===-1){this.clearInterval();return}const s=this.levels[this.currentTrackId];if(!(s!=null&&s.details)){this.mediaBuffer=null;return}this.mediaBuffer=this.mediaBufferTimeRanges,this.state!==Le.STOPPED&&this.setInterval(A7)}onSubtitleTrackLoaded(e,t){var r;const{currentTrackId:s,levels:i}=this,{details:a,id:l}=t;if(!i){this.warn(`Subtitle tracks were reset while loading level ${l}`);return}const u=i[l];if(l>=i.length||!u)return;this.log(`Subtitle track ${l} loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""},duration:${a.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;const d=this.mainDetails;let f=0;if(a.live||(r=u.details)!=null&&r.live){if(a.deltaUpdateFailed)return;if(!d){this.startFragRequested=!1;return}if(u.details){var m;f=this.alignPlaylists(a,u.details,(m=this.levelLastLoaded)==null?void 0:m.details)}a.alignedSliding||(uf(d,a,this),f=a.fragmentStart)}u.details=a,this.levelLastLoaded=u,d&&!this.startFragRequested&&this.setStartPosition(d,f),l===s&&(this.hls.trigger(M.SUBTITLE_TRACK_UPDATED,{details:a,id:l,groupId:t.groupId}),this.tickImmediate())}_handleFragmentLoadProgress(e){const{frag:t,part:r,payload:s}=e;!r||!(s!=null&&s.byteLength)||!this.shouldDecrypt(t)||this.decryptPayload(s,t,r)}_handleFragmentLoadComplete(e){const{frag:t,payload:r}=e;this.fragContextChanged(t)||!(r!=null&&r.byteLength)||!this.shouldDecrypt(t)||this.decryptPayload(r,t,null)}shouldDecrypt(e){const t=e.decryptdata;return!!(t!=null&&t.key&&t.iv&&Do(t.method))}decryptPayload(e,t,r){const s=t.decryptdata,i=performance.now();this.decrypter.decrypt(new Uint8Array(e),s.key.buffer,s.iv.buffer,Yp(s.method)).then(a=>{this.fragContextChanged(t)||this.hls.trigger(M.FRAG_DECRYPTED,{frag:t,part:r,payload:a,stats:{tstart:i,tdecrypt:performance.now()}})}).catch(a=>{this.hls.trigger(M.ERROR,{type:nt.MEDIA_ERROR,details:ye.FRAG_DECRYPT_ERROR,fatal:!1,error:a,reason:a.message,frag:t,part:r}),r||(this.warn(`${a.name}: ${a.message}`),this.state=Le.IDLE)})}doTick(){if(this.state===Le.IDLE&&this.levels){var e;if(!this.media&&!this.primaryPrefetch&&(this.startFragRequested||!this.config.startFragPrefetch))return;const{currentTrackId:r,levels:s}=this,i=s[r],a=i==null?void 0:i.details;if(!a||this.waitForLive(i)||this.waitForCdnTuneIn(a)){this.startFragRequested=!1;return}const{config:l}=this,u=this.playhead,d=ft.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],u,l.maxBufferHole),{end:f,len:m}=d,p=Math.max(this.hls.maxBufferLength+a.levelTargetDuration,((e=this.hls.mainForwardBufferInfo)==null?void 0:e.len)||0);if(m>p||m&&!this.buffering)return;let y=this.getNextFragment(f,a);if(!y)return;if(un(y)){var t;const v=y.sn-a.startSN,x=a.fragments[v-1];y.cc===(x==null?void 0:x.cc)&&!((t=a.partList)!=null&&t.length)&&this.fragmentTracker.getState(x)===on.NOT_LOADED&&(y=x)}this.loadFragment(y,i,f)}}loadFragment(e,t,r){const s=this.fragmentTracker.getState(e);(s===on.NOT_LOADED||s===on.PARTIAL)&&super.loadFragment(e,t,r)}get mediaBufferTimeRanges(){return new RU(this.tracksBuffered[this.currentTrackId]||[])}}class RU{constructor(e){this.buffered=void 0;const t=(r,s,i)=>{if(s=s>>>0,s>i-1)throw new DOMException(`Failed to execute '${r}' on 'TimeRanges': The index provided (${s}) is greater than the maximum bound (${i})`);return e[s][r]};this.buffered={get length(){return e.length},end(r){return t("end",r,e.length)},start(r){return t("start",r,e.length)}}}}const AU={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},iE=n=>String.fromCharCode(AU[n]||n),qr=15,Kr=42,LU={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},NU={17:2,18:4,21:6,22:8,23:10,19:13,20:15},kU={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},PU={25:2,26:4,29:6,30:8,31:10,27:13,28:15},_U=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class OU{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const r=typeof t=="function"?t():t;Ot.log(`${this.time} [${e}] ${r}`)}}}const da=function(e){const t=[];for(let r=0;r<e.length;r++)t.push(e[r].toString(16));return t},a5=Object.freeze({foreground:"white",underline:!1,italics:!1,background:"black",flash:!1});class aE{constructor(){this.styles=a5}get foreground(){return this.styles.foreground}set foreground(e){const t=this.styles;this.styles={foreground:e,underline:t.underline,italics:t.italics,background:t.background,flash:t.flash}}get underline(){return this.styles.underline}set underline(e){const t=this.styles;this.styles={foreground:t.foreground,underline:e,italics:t.italics,background:t.background,flash:t.flash}}get italics(){return this.styles.italics}set italics(e){const t=this.styles;this.styles={foreground:t.foreground,underline:t.underline,italics:e,background:t.background,flash:t.flash}}get background(){return this.styles.background}set background(e){const t=this.styles;this.styles={foreground:t.foreground,underline:t.underline,italics:t.italics,background:e,flash:t.flash}}get flash(){return this.styles.flash}set flash(e){const t=this.styles;this.styles={foreground:t.foreground,underline:t.underline,italics:t.italics,background:t.background,flash:e}}reset(){this.styles=a5}setStyles(e){const t=this.styles,r=Object.prototype.hasOwnProperty;this.styles={foreground:r.call(e,"foreground")?e.foreground:t.foreground,underline:r.call(e,"underline")?e.underline:t.underline,italics:r.call(e,"italics")?e.italics:t.italics,background:r.call(e,"background")?e.background:t.background,flash:r.call(e,"flash")?e.flash:t.flash}}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class DU{constructor(){this.uchar=" ",this.penState=new aE}reset(){this.uchar=" ",this.penState.reset()}setChar(e,t){this.uchar=e,this.penState.styles=t.styles}setPenState(e){this.penState.styles=e.styles}copy(e){this.uchar=e.uchar,this.penState.styles=e.penState.styles}}class jU{constructor(e){this.chars=[],this.pos=0,this.currPenState=new aE,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<Kr;t++)this.chars.push(new DU);this.logger=e}equals(e){const t=this.chars,r=e.chars;for(let s=0;s<Kr;s++){const i=t[s],a=r[s];if(i.uchar!==a.uchar)return!1;const l=i.penState.styles,u=a.penState.styles;if(l!==u&&(l.foreground!==u.foreground||l.underline!==u.underline||l.italics!==u.italics||l.background!==u.background||l.flash!==u.flash))return!1}return!0}copy(e){for(let t=0;t<Kr;t++)this.chars[t].copy(e.chars[t])}isEmpty(){const e=this.chars;for(let t=0;t<Kr;t++){const r=e[t];if(r.uchar!==" ")return!1;const s=r.penState.styles;if(s!==a5&&(s.foreground!=="white"||s.underline||s.italics||s.background!=="black"||s.flash))return!1}return!0}setCursor(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>=Kr&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Kr-1)}moveCursor(e){const t=Math.min(this.pos+e,Kr);if(e>1)for(let r=this.pos+1;r<t;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();const t=iE(e);if(this.pos>=Kr){this.logger.log(0,()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1)}clearFromPos(e){let t;for(t=e;t<Kr;t++)this.chars[t].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const e=[];let t=!0;for(let r=0;r<Kr;r++){const s=this.chars[r].uchar;s!==" "&&(t=!1),e.push(s)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class K0{constructor(e){this.rows=[],this.currRow=qr-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<qr;t++)this.rows.push(new jU(e));this.logger=e}reset(){for(let e=0;e<qr;e++)this.rows[e].clear();this.currRow=qr-1}equals(e){let t=!0;for(let r=0;r<qr;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t}copy(e){for(let t=0;t<qr;t++){const r=this.rows[t].chars,s=e.rows[t].chars;for(let i=0;i<Kr;i++){const a=r[i],l=s[i];a.uchar=l.uchar,a.penState.styles=l.penState.styles}}}isEmpty(){let e=!0;for(let t=0;t<qr;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,()=>"pacData = "+qt(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let l=0;l<qr;l++)this.rows[l].clear();const i=this.currRow+1-this.nrRollUpRows,a=this.lastOutputScreen;if(a){const l=a.rows[i].cueStartTime,u=this.logger.time;if(l!==null&&u!==null&&l<u)for(let d=0;d<this.nrRollUpRows;d++)this.rows[t-this.nrRollUpRows+d+1].copy(a.rows[i+d])}}this.currRow=t;const r=this.rows[this.currRow];if(e.indent!==null){const i=e.indent,a=Math.max(i-1,0);r.setCursor(e.indent),e.color=r.chars[a].penState.foreground}const s={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(s)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+qt(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let r="",s=-1;for(let i=0;i<qr;i++){const a=this.rows[i].getTextString();a&&(s=i+1,e?t.push("Row "+s+": '"+a+"'"):t.push(a.trim()))}return t.length>0&&(e?r="["+t.join(" | ")+"]":r=t.join(`
910`)),r}getTextAndFormat(){return this.rows}}class MU{constructor(e,t,r){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.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new K0(r),this.nonDisplayedMemory=new K0(r),this.lastOutputScreen=new K0(r),this.currRollUpRow=this.displayedMemory.rows[qr-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[qr-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),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=e)}insertChars(e){for(let r=0;r<e.length;r++)this.writeScreen.insertChar(e[r]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{const r=Math.floor(e/2)-16,s=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=s[r]}this.logger.log(2,"MIDROW: "+qt(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;t!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=t:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class L7{constructor(e,t,r){this.channels=[null,null,null],this.currentChannel=0,this.cmdHistory=$U(),this.logger=void 0,this.field=void 0,this.outputFilters=void 0,this.logger=new OU,this.field=e,this.outputFilters=[null,t,r]}getHandler(e){return this.outputFilters[e]}setHandler(e,t){var r;this.outputFilters[e]=t,(r=this.channels[e])==null||r.setHandler(t)}getChannel(e){let t=this.channels[e];return t||(t=this.channels[e]=new MU(this.field+e-1,this.outputFilters[e],this.logger)),t}addData(e,t){this.logger.time=e;for(let r=0;r<t.length;r+=2){const s=t[r]&127,i=t[r+1]&127;let a=!1,l=null;if(s===0&&i===0)continue;this.logger.log(3,()=>"["+da([t[r],t[r+1]])+"] -> ("+da([s,i])+")");const u=this.cmdHistory;if(s>=16&&s<=31){if(FU(s,i,u)){g1(null,null,u),this.logger.log(3,()=>"Repeated command ("+da([s,i])+") is dropped");continue}g1(s,i,this.cmdHistory),a=this.parseCmd(s,i),a||(a=this.parseMidrow(s,i)),a||(a=this.parsePAC(s,i)),a||(a=this.parseBackgroundAttributes(s,i))}else g1(null,null,u);if(!a&&(l=this.parseChars(s,i),l)){const f=this.currentChannel;f&&f>0?this.getChannel(f).insertChars(l):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!a&&!l&&this.logger.log(2,()=>"Couldn't parse cleaned data "+da([s,i])+" orig: "+da([t[r],t[r+1]]))}}parseCmd(e,t){const r=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,s=(e===23||e===31)&&t>=33&&t<=35;if(!(r||s))return!1;const i=e===20||e===21||e===23?1:2,a=this.getChannel(i);return e===20||e===21||e===28||e===29?t===32?a.ccRCL():t===33?a.ccBS():t===34?a.ccAOF():t===35?a.ccAON():t===36?a.ccDER():t===37?a.ccRU(2):t===38?a.ccRU(3):t===39?a.ccRU(4):t===40?a.ccFON():t===41?a.ccRDC():t===42?a.ccTR():t===43?a.ccRTD():t===44?a.ccEDM():t===45?a.ccCR():t===46?a.ccENM():t===47&&a.ccEOC():a.ccTO(t-32),this.currentChannel=i,!0}parseMidrow(e,t){let r=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?r=1:r=2,r!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const s=this.channels[r];return s?(s.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+da([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let r;const s=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,i=(e===16||e===24)&&t>=64&&t<=95;if(!(s||i))return!1;const a=e<=23?1:2;return t>=64&&t<=95?r=a===1?LU[e]:kU[e]:r=a===1?NU[e]:PU[e],this.getChannel(a).setPAC(this.interpretPAC(r,t)),this.currentChannel=a,!0}interpretPAC(e,t){let r;const s={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?r=t-96:r=t-64,s.underline=(r&1)===1,r<=13?s.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(s.italics=!0,s.color="white"):s.indent=Math.floor((r-16)/2)*4,s}parseChars(e,t){let r,s=null,i=null;if(e>=25?(r=2,i=e-8):(r=1,i=e),i>=17&&i<=19){let a;i===17?a=t+80:i===18?a=t+112:a=t+144,this.logger.log(2,()=>"Special char '"+iE(a)+"' in channel "+r),s=[a]}else e>=32&&e<=127&&(s=t===0?[e]:[e,t]);return s&&this.logger.log(3,()=>"Char codes =  "+da(s).join(",")),s}parseBackgroundAttributes(e,t){const r=(e===16||e===24)&&t>=32&&t<=47,s=(e===23||e===31)&&t>=45&&t<=47;if(!(r||s))return!1;let i;const a={};e===16||e===24?(i=Math.floor((t-32)/2),a.background=_U[i],t%2===1&&(a.background=a.background+"_semi")):t===45?a.background="transparent":(a.foreground="black",t===47&&(a.underline=!0));const l=e<=23?1:2;return this.getChannel(l).setBkgData(a),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}g1(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const r=this.channels[t];r&&r.cueSplitAtTime(e)}}}function g1(n,e,t){t.a=n,t.b=e}function FU(n,e,t){return t.a===n&&t.b===e}function $U(){return{a:null,b:null}}class y1{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,r){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class BU{constructor(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.cueCache={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=N7(),this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.cueCache={},this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},e.on(M.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(M.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(M.FRAG_LOADING,this.onFragLoading,this),e.on(M.FRAG_LOADED,this.onFragLoaded,this),e.on(M.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(M.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(M.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(M.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(M.BUFFER_APPENDED,this.onBufferAppended,this),e.on(M.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(M.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(M.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(M.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(M.FRAG_LOADING,this.onFragLoading,this),e.off(M.FRAG_LOADED,this.onFragLoaded,this),e.off(M.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(M.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(M.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(M.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(M.BUFFER_APPENDED,this.onBufferAppended,this),e.off(M.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new y1(this,"textTrack1"),t=new y1(this,"textTrack2"),r=new y1(this,"textTrack3"),s=new y1(this,"textTrack4");this.cea608Parser1=new L7(1,e,t),this.cea608Parser2=new L7(3,r,s)}addCues(e,t,r,s,i){let a=!1;for(let u=i.length;u--;){const d=i[u],f=UU(d[0],d[1],t,r);if(f>=0&&(d[0]=Math.min(d[0],t),d[1]=Math.max(d[1],r),a=!0,f/(r-t)>.5))return}if(a||i.push([t,r]),this.config.renderTextTracksNatively){const u=this.cueCache[e];if(u){const d=this.Cues.newCue(null,t,r,s);d.length&&u.push.apply(u,d)}else{const d=this.captionsTracks[e].track;this.Cues.newCue(d,t,r,s)}}else{var l;const u=this.Cues.newCue(null,t,r,s),d=(l=this.captionsProperties[e])==null?void 0:l.media;this.hls.trigger(M.CUES_PARSED,{type:"captions",cues:u,track:e,closedCaptions:d})}}onInitPtsFound(e,{id:t,timestampOffsets:r}){const{unparsedVttFrags:s}=this;t===Qe.MAIN&&(this.initPTS=r),s.length&&(this.unparsedVttFrags=[],s.forEach(i=>{this.initPTS[i.frag.cc]?this.onFragLoaded(M.FRAG_LOADED,i):this.hls.trigger(M.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:i.frag,part:null,error:new Error("Subtitle discontinuity domain does not match main")})}))}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:r,cueCache:s,media:i}=this,{label:a,languageCode:l}=t[e];i&&(s[e]=[],r[e]=h8(i,"captions",a,l,"hidden"))}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const r=t.label,s={_id:e,label:r,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=s,this.hls.trigger(M.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[s]})}onMediaAttaching(e,t){this.media=t.media}onMediaDetaching(e,t){const r=!!t.transferMedia;if(this.media=null,!r){if(this.config.renderTextTracksNatively){const{captionsTracks:s,cueCache:i}=this;for(const a in s)s[a].remove(),delete i[a]}this.cueCache={},this.captionsTracks={},this.nonNativeCaptionsTracks={}}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=N7(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}onSubtitleTracksUpdated(e,t){const r=t.subtitleTracks||[];if(r.length&&!this.config.renderTextTracksNatively&&!IS(this.tracks,r)){const s=r.map(i=>({label:i.name,kind:i.type.toLowerCase(),default:i.default,subtitleTrack:i}));this.hls.trigger(M.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}this.tracks=r}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(r=>{const s=/(?:CC|SERVICE)([1-4])/.exec(r.instreamId);if(!s)return;const i=`textTrack${s[1]}`,a=this.captionsProperties[i];a&&(a.label=r.name,r.lang&&(a.languageCode=r.lang),a.media=r)})}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return t==null?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===Qe.MAIN){var r,s;const{cea608Parser1:i,cea608Parser2:a,lastSn:l}=this,{cc:u,sn:d}=t.frag,f=(r=(s=t.part)==null?void 0:s.index)!=null?r:-1;i&&a&&(d!==l+1||d===l&&f!==this.lastPartIndex+1||u!==this.lastCc)&&(i.reset(),a.reset()),this.lastCc=u,this.lastSn=d,this.lastPartIndex=f}}onFragLoaded(e,t){const{frag:r,payload:s}=t;if(r.level<this.tracks.length&&r.type===Qe.SUBTITLE){var i;if(s.byteLength||(i=r.initSegment)!=null&&(i=i.data)!=null&&i.byteLength){const a=r.decryptdata,l="stats"in t;if(a==null||!a.encrypted||l){const u=this.tracks[r.level],d=this.vttCCs;d[r.cc]||(d[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),(u==null?void 0:u.textCodec)===n5?this._parseIMSC1(t):this._parseVTTs(t)}}else{const a="part"in t?t.part:null;this.hls.trigger(M.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,part:a,error:new Error("Empty subtitle payload")})}}}_parseIMSC1(e){const{frag:t,payload:r}=e,s="part"in e?e.part:null,i=this.hls;x7(r,this.initPTS[t.cc],a=>{this._appendCues(a,t.level),i.trigger(M.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t,part:s})},a=>{i.logger.log(`Cannot parse IMSC1 (sn: ${t.sn} @${t.start}): ${a}`),i.trigger(M.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,part:s,error:a})})}_parseVTTs(e){var t;const{frag:r,payload:s}=e,i="part"in e?e.part:null,{initPTS:a,unparsedVttFrags:l}=this,u=a.length-1;if(!a[r.cc]&&u===-1){l.push(e);return}const d=this.hls,f=(t=r.initSegment)==null?void 0:t.data,m=f?_r(f,new Uint8Array(s)).buffer:s;YB(m,this.initPTS[r.cc],this.vttCCs,r.cc,(i&&!f?i:r).start,p=>{this._appendCues(p,r.level),d.trigger(M.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r,part:i})},p=>{const y=p.message.startsWith("Missing initPTS");if(d.logger.log(`${y?"Deferred parsing of":"Cannot parse"} VTT cue (sn: ${r.sn} @${r.start}): ${p}`),y){l.push(e);return}else this.config.enableIMSC1&&this._fallbackToIMSC1(e);d.trigger(M.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,part:i,error:p})})}_fallbackToIMSC1(e){const{frag:t,payload:r}=e,s=this.tracks[t.level];s.textCodec||x7(r,this.initPTS[t.cc],()=>{s.textCodec=n5,this._parseIMSC1(e)},()=>{s.textCodec="wvtt"})}_appendCues(e,t){const r=this.hls;if(this.config.renderTextTracksNatively){var s;const i=(s=this.tracks[t].trackNode)==null?void 0:s.track;if(!i||i.mode==="disabled")return;e.forEach(a=>r5(i,a))}else{const i=this.tracks[t];if(!i)return;const a=i.default?"default":"subtitles"+t;r.trigger(M.CUES_PARSED,{type:"subtitles",cues:e,track:a,subtitleTrack:i})}}onFragDecrypted(e,t){const{frag:r}=t;r.type===Qe.SUBTITLE&&this.onFragLoaded(M.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:r,samples:s}=t;if(!(r.type===Qe.MAIN&&this.closedCaptionsForLevel(r)==="NONE"))for(let i=0;i<s.length;i++){const a=s[i].bytes;if(a){this.cea608Parser1||this.initCea608Parsers();const l=this.extractCea608Data(a);this.cea608Parser1.addData(s[i].pts,l[0]),this.cea608Parser2.addData(s[i].pts,l[1])}}}onBufferAppended(e,t){if(this.config.renderTextTracksNatively){var r;const{type:s,timeRanges:i}=t;if(s==="video"&&(r=i[s])!=null&&r.length){const{captionsTracks:a,cueCache:l}=this;Object.keys(l).forEach(u=>{var d;const f=(d=a[u])==null?void 0:d.track;if(f){const m=l[u];for(let p=0;p<m.length;p++)r5(f,m[p])}delete l[u]})}}}onBufferFlushing(e,t){const{startOffset:r,endOffset:s,endOffsetSubtitles:i,type:a}=t,{media:l}=this;if(!(!l||l.currentTime<s)){if(!a||a==="video"){const{captionsTracks:u,cueCache:d}=this;Object.keys(u).forEach(f=>s5(u[f].track,r,s)),Object.keys(d).forEach(f=>{const m=d[f];for(let p=m.length;p--;){const y=m[p];y.startTime>=r&&y.endTime<=s&&m.splice(p,1)}})}this.config.renderTextTracksNatively&&r===0&&i!==void 0&&this.tracks.forEach(u=>{var d;const f=(d=u.trackNode)==null?void 0:d.track;f&&s5(f,r,i)})}}extractCea608Data(e){const t=[[],[]],r=e[0]&31;let s=2;for(let i=0;i<r;i++){const a=e[s++],l=127&e[s++],u=127&e[s++];if(l===0&&u===0)continue;if((4&a)!==0){const f=3&a;(f===0||f===1)&&(t[f].push(l),t[f].push(u))}}return t}}function UU(n,e,t,r){return Math.min(e,r)-Math.max(n,t)}function N7(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const VU=/\s/,zU={newCue(n,e,t,r){const s=[];let i,a,l,u,d;const f=self.VTTCue||self.TextTrackCue;for(let p=0;p<r.rows.length;p++)if(i=r.rows[p],l=!0,u=0,d="",!i.isEmpty()){var m;for(let x=0;x<i.chars.length;x++)VU.test(i.chars[x].uchar)&&l?u++:(d+=i.chars[x].uchar,l=!1);i.cueStartTime=e,e===t&&(t+=1e-4),u>=16?u--:u++;const y=XS(d.trim()),v=f8(e,t,y);n!=null&&(m=n.cues)!=null&&m.getCueById(v)||(a=new f(e,t,y),a.id=v,a.line=p+1,a.align="left",a.position=10+Math.min(80,Math.floor(u*8/32)*10),s.push(a))}return n&&s.length&&(s.sort((p,y)=>p.line==="auto"||y.line==="auto"?0:p.line>8&&y.line>8?y.line-p.line:p.line-y.line),s.forEach(p=>r5(n,p))),s}};class oE{constructor(){this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=0,this.config=null,this.callbacks=null,this.context=null,this.stats=new $p}destroy(){this.callbacks=this.context=this.config=null,this.abortInternal(),this.stats=null}load(e,t,r){const s=this.stats;if(s.loading.start)throw new Error("Loader can only be used once.");s.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=r,this.loadInternal()}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.getNetworkDetails())}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(Pc(e,t,!0))this.retry(e);else{var r;Ot.warn(`timeout while loading ${(r=this.context)==null?void 0:r.url}`);const s=this.callbacks;s&&(this.abortInternal(),s.onTimeout(this.stats,this.context,this.getNetworkDetails()))}}retry(e){const{context:t,stats:r}=this;this.retryDelay=Bp(e,r.retry),r.retry++,Ot.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${r.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.resetInternalLoader(),self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(()=>this.loadInternal(),this.retryDelay)}}function GU(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}const HU=/(\d+)-(\d+)\/(\d+)/;class k7 extends oE{constructor(e){super(),this.fetchSetup=void 0,this.request=null,this.response=null,this.controller=null,this.fetchSetup=e.fetchSetup||YU}destroy(){this.request=null,super.destroy(),this.response=null,this.controller=null,this.fetchSetup=null}abortInternal(){self.clearTimeout(this.retryTimeout),this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}getNetworkDetails(){return this.response}resetInternalLoader(){this.response=null}loadInternal(){const{config:e,context:t,stats:r}=this;if(!e||!t)return;r.loading.first=0,r.loaded=0,r.aborted=!1,this.controller=new self.AbortController;const s=WU(t,this.controller.signal),i=t.responseType==="arraybuffer",a=i?"byteLength":"length",{maxTimeToFirstByteMs:l,maxLoadTimeMs:u}=e.loadPolicy;this.request=this.fetchSetup(t,s),self.clearTimeout(this.requestTimeout),e.timeout=l&&ze(l)?l:u,this.requestTimeout=self.setTimeout(()=>{this.loadtimeout()},e.timeout),(Uc(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(f=>{var m;this.response=f;const p=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),e.timeout=u,this.requestTimeout=self.setTimeout(()=>{this.loadtimeout()},u-(p-r.loading.start)),!f.ok){const{status:v,statusText:x}=f;throw new XU(x||"fetch, bad network response",v,f)}r.loading.first=p,r.total=qU(f.headers)||r.total;const y=(m=this.callbacks)==null?void 0:m.onProgress;return y&&ze(e.highWaterMark)?this.loadProgressively(f,r,t,e.highWaterMark,y):i?f.arrayBuffer():t.responseType==="json"?f.json():f.text()}).then(f=>{var m,p;const y=this.response;if(!y)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const v=f[a];v&&(r.loaded=r.total=v);const x={url:y.url,data:f,code:y.status},b=(m=this.callbacks)==null?void 0:m.onProgress;b&&!ze(e.highWaterMark)&&b(r,t,f,y),(p=this.callbacks)==null||p.onSuccess(x,r,t,y)}).catch(f=>{if(self.clearTimeout(this.requestTimeout),r.aborted)return;const m=f&&f.code||0,p=f?f.message:null,y=e.loadPolicy.errorRetry,v=r.retry,x={url:t.url,data:void 0,code:m};if(Pc(y,v,!1,x))this.retry(y);else{var b;Ot.error(`${m} while loading ${t.url}`),(b=this.callbacks)==null||b.onError({code:m,text:p},t,f?f.details:null,r)}})}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,r,s=0,i){const a=new lS,l=e.body.getReader(),u=()=>l.read().then(d=>{if(d.done)return a.dataLength&&i(t,r,a.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const f=d.value,m=f.length;return t.loaded+=m,m<s||a.dataLength?(a.push(f),a.dataLength>=s&&i(t,r,a.flush().buffer,e)):i(t,r,f.buffer,e),u()}).catch(()=>Promise.reject());return u()}}function WU(n,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(Vt({},n.headers))};return n.rangeEnd&&t.headers.set("Range","bytes="+n.rangeStart+"-"+String(n.rangeEnd-1)),t}function KU(n){const e=HU.exec(n);if(e)return parseInt(e[2])-parseInt(e[1])+1}function qU(n){const e=n.get("Content-Range");if(e){const r=KU(e);if(ze(r))return r}const t=n.get("Content-Length");if(t)return parseInt(t)}function YU(n,e){return new self.Request(n.url,e)}class XU extends Error{constructor(e,t,r){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=r}}const ZU=(n,e,t)=>Math.max(e,Math.min(n,t)),QU=/^age:\s*[\d.]+\s*$/im;class lE extends oE{constructor(e){super(),this.xhrSetup=void 0,this.loader=null,this.xhrSetup=e.xhrSetup||null}destroy(){super.destroy(),this.loader=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))}getNetworkDetails(){return this.loader}resetInternalLoader(){this.loader=null}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const r=this.loader=new self.XMLHttpRequest,s=this.stats;s.loading.first=0,s.loaded=0,s.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(!(this.loader!==r||this.stats.aborted))return i.call(this,r,t.url,t)}).catch(a=>{if(!(this.loader!==r||this.stats.aborted))return r.open("GET",t.url,!0),i.call(this,r,t.url,t)}).then(()=>{this.loader!==r||this.stats.aborted||this.openAndSendXhr(r,t,e)}).catch(a=>{var l;(l=this.callbacks)==null||l.onError({code:r.status,text:a.message},t,r,s)}):this.openAndSendXhr(r,t,e)}openAndSendXhr(e,t,r){e.readyState||e.open("GET",t.url,!0);const s=t.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:a}=r.loadPolicy;if(s)for(const l in s)e.setRequestHeader(l,s[l]);t.rangeEnd&&e.setRequestHeader("Range",`bytes=${t.rangeStart}-${t.rangeEnd-1}`),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),r.timeout=i&&ze(i)?i:a,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:r}=this;if(!e||!t)return;const s=t.readyState,i=this.config;if(!r.aborted&&s>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),s===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const d=t.status,f=t.responseType==="text"?t.responseText:null;if(d>=200&&d<300){const v=f??t.response;if(v!=null){var a,l;r.loading.end=Math.max(self.performance.now(),r.loading.first);const x=t.responseType==="arraybuffer"?v.byteLength:v.length;r.loaded=r.total=x,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first);const b=(a=this.callbacks)==null?void 0:a.onProgress;b&&b(r,e,v,t);const E={url:t.responseURL,data:v,code:d};e.rangeEnd&&x!==e.rangeEnd-e.rangeStart&&Ot.warn(`Payload length ${x} does not match requested Range: bytes=${e.rangeStart}-${e.rangeEnd-1}`),(l=this.callbacks)==null||l.onSuccess(E,r,e,t);return}}const m=i.loadPolicy.errorRetry,p=r.retry,y={url:e.url,data:void 0,code:d};if(Pc(m,p,!1,y))this.retry(m);else{var u;Ot.error(`${d} while loading ${e.url}`),(u=this.callbacks)==null||u.onError({code:d,text:t.statusText},e,t,r)}}}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&QU.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}const JU={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},eV=st(st({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,loopBackBufferFlush:void 0,startOnSegmentBoundary:!1,nextAudioTrackBufferFlushForwardOffset:.25,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,skipBufferHolePadding:.1,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveMaxUnchangedPlaylistRefresh:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftw
vendor: 4,403 bytes, line 910
910areAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,appendTimeout:1/0,ignorePlaylistParsingErrors:!1,loader:lE,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,handleMpegTsVideoIntegrityErrors:"process",abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,abrSwitchInterval:0,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Qb,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,emsgKLVSchemaUri:void 0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,iframeCacheLimit:2*1024*1024,useMediaCapabilities:!0,preserveManualLevelOnError:!1,errorPenaltyExpireMs:0,certLoadPolicy:{default:JU},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,streamController:nE,abrController:$M,bufferController:R$,capLevelController:s8,errorController:zM,fpsController:VB,id3TrackController:lU,gapController:aU,latencyController:TU},tV()),{},{subtitleStreamController:IU,subtitleTrackController:sU,timelineController:BU,audioStreamController:b$,audioTrackController:S$,emeController:jo,cmcdController:DB,contentSteeringController:MB,iframeController:pU,interstitialsController:wU});function tV(){return{cueHandler:zU,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function nV(n,e,t){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');
vendor: 9,253 bytes, line 910
910if(e.liveMaxUnchangedPlaylistRefresh!==void 0){const a=e.liveMaxUnchangedPlaylistRefresh,l=ZU(a,2,1/0);l!==a&&t.warn(`hls.js config: "liveMaxUnchangedPlaylistRefresh" clamped from ${a} to ${l}.`),e.liveMaxUnchangedPlaylistRefresh=l}const r=o5(n),s=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return s.forEach(a=>{const l=`${a==="level"?"playlist":a}LoadPolicy`,u=e[l]===void 0,d=[];i.forEach(f=>{const m=`${a}Loading${f}`,p=e[m];if(p!==void 0&&u){d.push(m);const y=r[l].default;switch(e[l]={default:y},f){case"TimeOut":y.maxLoadTimeMs=p,y.maxTimeToFirstByteMs=p;break;case"MaxRetry":y.errorRetry.maxNumRetry=p,y.timeoutRetry.maxNumRetry=p;break;case"RetryDelay":y.errorRetry.retryDelayMs=p,y.timeoutRetry.retryDelayMs=p;break;case"MaxRetryTimeout":y.errorRetry.maxRetryDelayMs=p,y.timeoutRetry.maxRetryDelayMs=p;break}}}),d.length&&t.warn(`hls.js config: "${d.join('", "')}" setting(s) are deprecated, use "${l}": ${qt(e[l])}`)}),st(st({},r),e)}function o5(n){return n&&typeof n=="object"?Array.isArray(n)?n.map(o5):Object.keys(n).reduce((e,t)=>(e[t]=o5(n[t]),e),{}):n}function rV(n,e){const t=n.loader;t!==k7&&t!==lE?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),n.progressive=!1):GU()&&(n.loader=k7,n.progressive=!0,n.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}class sV extends r8{constructor(e,t){super(e,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.lastABRSwitchTime=-1,this._iframeVariants=[],this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(M.LEVEL_LOADED,this.onLevelLoaded,this),e.on(M.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(M.FRAG_BUFFERED,this.onFragBuffered,this),e.on(M.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(M.LEVEL_LOADED,this.onLevelLoaded,this),e.off(M.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(M.FRAG_BUFFERED,this.onFragBuffered,this),e.off(M.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(t=>{t.loadError=0,t.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1,this._iframeVariants=[]}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const r=this.hls.config.preferManagedMediaSource,s=[],i={},a={};let l=!1,u=!1,d=!1,f=!1;t.levels.forEach(m=>{const p=m.attrs,y=P7(m,r),{audioCodec:v,videoCodec:x,imageCodec:b,width:E,height:T}=m;if(!y){this.log(`Some or all CODECS not supported "${p.CODECS}"`);return}l||(l=!!(E&&T)),u||(u=!!x),d||(d=!!v),f||(f=!!b);const{CODECS:w,"FRAME-RATE":R,"HDCP-LEVEL":I,"PATHWAY-ID":L,RESOLUTION:N,"VIDEO-RANGE":_}=p,F=`${`${L||"."}-`}${m.bitrate}-${N}-${R}-${w}-${_}-${I}`;if(i[F])if(i[F].uri!==m.url&&!m.attrs["PATHWAY-ID"]){const $=a[F]+=1;m.attrs["PATHWAY-ID"]=new Array($+1).join(".");const z=this.createLevel(m);i[F]=z,s.push(z)}else m.iframes||(i[F].addGroupId("audio",p.AUDIO),i[F].addGroupId("text",p.SUBTITLES));else{const $=this.createLevel(m);i[F]=$,a[F]=1,s.push($)}}),this.filterAndSortMediaOptions(s,t,l,u,d,f)}createLevel(e){const t=new Fc(e),r=e.supplemental;if(r!=null&&r.videoCodec&&!uE(r.videoCodec,this.hls.config.preferManagedMediaSource)){const s=new Error(`SUPPLEMENTAL-CODECS not supported "${r.videoCodec}"`);this.log(s.message),t.supportedResult=jb(s,[])}return t}filterAndSortMediaOptions(e,t,r,s,i,a){var l;let u=[],d=[],f=e;const m=((l=t.stats)==null?void 0:l.parsing)||{},p=this.hls.config.preferManagedMediaSource;if((r||s)&&i&&(f=f.filter(({videoCodec:I,videoRange:L,width:N,height:_})=>(!!I||!!(N&&_))&&NM(L))),s&&a&&(f=f.filter(I=>!I.imageCodec)),f.length===0){Promise.resolve().then(()=>{if(this.hls){let I="no level with compatible codecs found in manifest",L=I;t.levels.length&&(L=`one or more CODECS in variant not supported: ${qt(t.levels.map(_=>_.attrs.CODECS).filter((_,j,F)=>F.indexOf(_)===j))}`,this.warn(L),I+=` (${L})`);const N=new Error(I);this.hls.trigger(M.ERROR,{type:nt.MEDIA_ERROR,details:ye.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:N,reason:L})}}),m.end=performance.now();return}t.audioTracks&&(u=t.audioTracks.filter(I=>!I.audioCodec||cE(I.audioCodec,p)),_7(u)),t.subtitles&&(d=t.subtitles,_7(d));const y=f.slice(0);f.sort((I,L)=>{if(I.attrs["HDCP-LEVEL"]!==L.attrs["HDCP-LEVEL"])return(I.attrs["HDCP-LEVEL"]||"")>(L.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&I.height!==L.height)return I.height-L.height;if(I.frameRate!==L.frameRate)return I.frameRate-L.frameRate;if(I.videoRange!==L.videoRange)return sf.indexOf(I.videoRange)-sf.indexOf(L.videoRange);if(I.videoCodec!==L.videoCodec){const N=m9(I.videoCodec),_=m9(L.videoCodec);if(N!==_)return _-N}if(I.uri===L.uri&&I.codecSet!==L.codecSet){const N=nf(I.codecSet),_=nf(L.codecSet);if(N!==_)return _-N}return I.averageBitrate!==L.averageBitrate?I.averageBitrate-L.averageBitrate:0});let v=y[0];if(this.steering&&(f=this.steering.filterParsedLevels(f),f.length!==y.length)){for(let I=0;I<y.length;I++)if(y[I].pathwayId===f[0].pathwayId){v=y[I];break}}this._levels=f;for(let I=0;I<f.length;I++)if(f[I]===v){var x;this._firstLevel=I;const L=v.bitrate,N=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${f.length} level(s) found, first bitrate: ${L}`),((x=this.hls.userConfig)==null?void 0:x.abrEwmaDefaultEstimate)===void 0){const _=Math.min(L,this.hls.config.abrEwmaDefaultEstimateMax);_>N&&N===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=_)}break}const b=t.iframeVariants.filter(I=>P7(I,p));this._iframeVariants=b;const E=i&&!s,T=this.hls.config,w=!!(T.audioStreamController&&T.audioTrackController),R={levels:f,audioTracks:u,subtitleTracks:d,iframeVariants:b,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:s,altAudio:w&&!E&&u.some(I=>!!I.url)};m.end=performance.now(),this.hls.trigger(M.MANIFEST_PARSED,R)}get iframeVariants(){return this._iframeVariants.length===0?null:this._iframeVariants}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const f=new Error("invalid level idx"),m=e<0;if(this.hls.trigger(M.ERROR,{type:nt.OTHER_ERROR,details:ye.LEVEL_SWITCH_ERROR,level:e,fatal:m,error:f,reason:f.message}),m)return;e=Math.min(e,t.length-1)}const r=this.currentLevelIndex,s=this.currentLevel,i=s?s.attrs["PATHWAY-ID"]:void 0,a=t[e],l=a.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=a,r===e&&s&&i===l)return;this.log(`Switching to level ${e} (${a.height?a.height+"p ":""}${a.videoRange?a.videoRange+" ":""}${a.codecSet?a.codecSet+" ":""}@${a.bitrate})${l?" with Pathway "+l:""} from level ${r}${i?" with Pathway "+i:""}`);const u={level:e,attrs:a.attrs,details:a.details,bitrate:a.bitrate,averageBitrate:a.averageBitrate,maxBitrate:a.maxBitrate,realBitrate:a.realBitrate,width:a.width,height:a.height,codecSet:a.codecSet,audioCodec:a.audioCodec,videoCodec:a.videoCodec,audioGroups:a.audioGroups,subtitleGroups:a.subtitleGroups,loaded:a.loaded,loadError:a.loadError,fragmentError:a.fragmentError,name:a.name,id:a.id,uri:a.uri,url:a.url,urlId:0,audioGroupIds:a.audioGroupIds,textGroupIds:a.textGroupIds};this.hls.trigger(M.LEVEL_SWITCHING,u);const d=a.details;if(!d||d.live){const f=this.switchParams(a.uri,s==null?void 0:s.details,d);this.loadPlaylist(f)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){const t=this.steering.pathways(),r=e.filter(s=>t.indexOf(s)!==-1);if(e.length<1){this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);return}this.steering.pathwayPriority=r}}onError(e,t){t.fatal||!t.context||t.context.type===St.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t.type===Qe.MAIN){const r=t.elementaryStreams;if(!Object.keys(r).some(i=>!!r[i]))return;const s=this._levels[t.level];s!=null&&s.loadError&&(this.log(`Resetting level error count of ${s.loadError} on frag buffered`),s.loadError=0)}}onLevelLoaded(e,t){var r;const{level:s,details:i}=t,a=t.levelInfo;if(!a){var l;this.warn(`Invalid level index ${s}
910`),(l=t.deliveryDirectives)!=null&&l.skip&&(i.deltaUpdateFailed=!0);return}if(a===this.currentLevel||t.withoutMultiVariant){a.fragmentError===0&&(a.loadError=0);let u=a.details;u===t.details&&u.advanced&&(u=void 0),this.playlistLoaded(s,t,u)}else(r=t.deliveryDirectives)!=null&&r.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const r=this.getUrlWithDirectives(e.uri,t),s=this.currentLevelIndex,i=e.attrs["PATHWAY-ID"],a=e.details,l=a==null?void 0:a.age;this.log(`Loading level index ${s}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${i?" Pathway "+i:""}${l&&a.live?" age "+l.toFixed(1)+(a.type&&" "+a.type||""):""} ${r}`),this.hls.trigger(M.LEVEL_LOADING,{url:r,level:s,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){const t=this.currentLevelIndex;if(this.manualLevelIndex===-1&&e!==t&&e!==-1){const s=this.hls.config.abrSwitchInterval;if(s>0){const i=performance.now(),a=i-this.lastABRSwitchTime,l=s*1e3;if(this.lastABRSwitchTime>-1&&a<l){this.warn(`Preventing ABR level switch: ${t} -> ${e} (${Math.round(a)}ms < ${l}ms / ${s}s)`);return}this.lastABRSwitchTime=i,this.log(`Allowing ABR level switch: ${t} -> ${e} (${Math.round(a)}ms >= ${l}ms / ${s}s)`)}}this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(this._levels.length===1)return;const r=this._levels.filter((i,a)=>a!==e?!0:(this.steering&&this.steering.removeLevel(i),i===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,i.details&&i.details.fragments.forEach(l=>l.level=-1)),!1));iS(r),this._levels=r,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const s=r.length-1;this._firstLevel=Math.min(this._firstLevel,s),this._startLevel&&(this._startLevel=Math.min(this._startLevel,s)),this.hls.trigger(M.LEVELS_UPDATED,{levels:r})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:r}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(M.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function cE(n,e){return jc(n,"audio",e)}function uE(n,e){return jc(n,"video",e)}function P7(n,e){let{audioCodec:t,videoCodec:r}=n;t&&(n.audioCodec=t=rf(t,e)||void 0),r&&(r=n.videoCodec=bM(r));const{unknownCodecs:s}=n;return!((s==null?void 0:s.length)||0||t&&!cE(t,e)||r&&!uE(r,e))}function _7(n){const e={};n.forEach(t=>{const r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++})}class iV extends Sr{constructor(e,t){super("key-loader",t),this.config=void 0,this.keyLoaderInfo={},this.emeController=null,this.config=e}abort(e){for(const r in this.keyLoaderInfo){const s=this.keyLoaderInfo[r].loader;if(s){var t;if(e&&e!==((t=s.context)==null?void 0:t.frag.type))return;s.abort()}}}destroy(){for(const e in this.keyLoaderInfo){const t=this.keyLoaderInfo[e].loader;t&&t.destroy()}this.emeController=null,this.keyLoaderInfo={}}loadClear(e,t,r){return this.emeController?this.emeController.loadClear(e,t,r):null}load(e,t){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(r=>this.loadInternal(e,t,r)):this.loadInternal(e,t)}loadInternal(e,t,r){r&&e.setKeyFormat(r);const s=e.decryptdata;if(!s){const a=new Error(r?`Expected frag.decryptdata to be defined after setting format ${r}`:`Missing decryption data on fragment in onKeyLoading (emeEnabled with controller: ${this.emeController&&this.config.emeEnabled})`);return Promise.reject(wi(e,ye.KEY_LOAD_ERROR,a))}const i=e;switch(s.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return s.keyFormat==="identity"?this.loadKeyHTTP(i):t?t.then(()=>this.loadKeyEME(i)):this.loadKeyEME(i);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(i);default:return Promise.reject(wi(e,ye.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${s.method}"`)))}}loadKeyEME(e){if(this.emeController&&this.config.emeEnabled){var t;if(!e.decryptdata.keyId&&(t=e.initSegment)!=null&&t.data){const r=tM(e.initSegment.data);if(r.length){let s=r[0];const i=e.decryptdata.uri;if(s.some(a=>a!==0))this.log(`Using keyId found in init segment ${vn(s)} keyUri: ${i}`),Hs.setKeyIdForUri(i,s);else{const a=Hs.addKeyIdForUri(i);this.log(`Patching empty keyId with ${vn(a)} keyUri: ${i}`),s=a}e.decryptdata.keyId=s}}return this.emeController.loadKey(e).then(()=>({frag:e,keyInfo:{decryptdata:e.decryptdata}}))}return Promise.reject(wi(e,ye.KEY_LOAD_ERROR,new Error(`emeEnabled with controller: ${this.emeController&&this.config.emeEnabled})`)))}loadKeyHTTP(e){const t=e.decryptdata,r=t.uri;if(!r)return Promise.reject(wi(e,ye.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${r}"`)));const s=this.keyLoaderInfo[r];if(s){if(s.decryptdata.key)return t.key=s.decryptdata.key,s.keyLoadPromise=null,Promise.resolve({frag:e,keyInfo:s});if(s.keyLoadPromise)return s.keyLoadPromise.then(d=>(t.key=s.decryptdata.key,st(st({},d),{},{frag:e})))}this.log(`Loading${t.keyId?" keyId: "+vn(t.keyId):""} URI: ${t.uri} from ${e.type} ${e.level}`);const i=this.config,a=i.loader,l=new a(i);e.keyLoader=l;const u=this.keyLoaderInfo[r]={decryptdata:t,keyLoadPromise:null,loader:l};return u.keyLoadPromise=new Promise((d,f)=>{const m={type:St.KEY,keyInfo:u,frag:e,responseType:"arraybuffer",url:r},p=i.keyLoadPolicy.default,y={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},v={onSuccess:(x,b,E,T)=>{const{frag:w,keyInfo:R,url:I}=E;if(!w.decryptdata||R!==this.keyLoaderInfo[I])return f(wi(w,ye.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),T));R.decryptdata.key=w.decryptdata.key=new Uint8Array(x.data),w.keyLoader=R.loader=R.keyLoadPromise=null,d({frag:w,keyInfo:R})},onError:(x,b,E,T)=>{this.resetLoader(b),f(wi(e,ye.KEY_LOAD_ERROR,new Error(`HTTP Error ${x.code} loading key ${x.text}`),E,st({url:r,data:void 0},x)))},onTimeout:(x,b,E)=>{this.resetLoader(b),f(wi(e,ye.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),E))},onAbort:(x,b,E)=>{this.resetLoader(b),f(wi(e,ye.INTERNAL_ABORTED,new Error("key loading aborted"),E))}};l.load(m,y,v)})}
vendor: 22,642 bytes, line 910
910resetLoader(e){const{frag:t,keyInfo:r,url:s}=e,i=r.loader;t.keyLoader===i&&(t.keyLoader=r.loader=r.keyLoadPromise=null),delete this.keyLoaderInfo[s],i&&i.destroy()}}function wi(n,e=ye.KEY_LOAD_ERROR,t,r,s){return new ps({type:nt.NETWORK_ERROR,details:e,fatal:!1,frag:n,response:s,error:t,networkDetails:r||null})}function O7(n){const{type:e}=n;switch(e){case St.AUDIO_TRACK:return Qe.AUDIO;case St.SUBTITLE_TRACK:return Qe.SUBTITLE;default:return Qe.MAIN}}function q0(n,e){let t=n.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class aV{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(M.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.LEVEL_LOADING,this.onLevelLoading,this),e.on(M.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(M.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(M.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(M.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.LEVEL_LOADING,this.onLevelLoading,this),e.off(M.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(M.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(M.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,r=t.pLoader,s=t.loader,i=r||s,a=new i(t);return this.loaders[e.type]=a,a}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:r}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:St.MANIFEST,url:r,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:r,level:s,pathwayId:i,url:a,deliveryDirectives:l,levelInfo:u}=t;this.load({id:r,level:s,pathwayId:i,responseType:"text",type:St.LEVEL,url:a,deliveryDirectives:l,levelOrTrack:u})}onAudioTrackLoading(e,t){const{id:r,groupId:s,url:i,deliveryDirectives:a,track:l}=t;this.load({id:r,groupId:s,level:null,responseType:"text",type:St.AUDIO_TRACK,url:i,deliveryDirectives:a,levelOrTrack:l})}onSubtitleTrackLoading(e,t){const{id:r,groupId:s,url:i,deliveryDirectives:a,track:l}=t;this.load({id:r,groupId:s,level:null,responseType:"text",type:St.SUBTITLE_TRACK,url:i,deliveryDirectives:a,levelOrTrack:l})}onLevelsUpdated(e,t){const r=this.loaders[St.LEVEL];if(r){const s=r.context;s&&!t.levels.some(i=>i===s.levelOrTrack)&&(r.abort(),delete this.loaders[St.LEVEL])}}load(e){var t;const r=this.hls.config;let s=this.getInternalLoader(e);if(s){const d=this.hls.logger,f=s.context;if((f==null?void 0:f.levelOrTrack)===e.levelOrTrack&&(f.url===e.url||f.deliveryDirectives&&!e.deliveryDirectives)){f.url===e.url?d.log(`[playlist-loader]: ignore ${e.url} ongoing request`):d.log(`[playlist-loader]: ignore ${e.url} in favor of ${f.url}`);return}d.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),s.abort()}let i;if(e.type===St.MANIFEST?i=r.manifestLoadPolicy.default:i=Vt({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),s=this.createInternalLoader(e),ze((t=e.deliveryDirectives)==null?void 0:t.part)){let d;if(e.type===St.LEVEL&&e.level!==null?d=this.hls.levels[e.level].details:e.type===St.AUDIO_TRACK&&e.id!==null?d=this.hls.audioTracks[e.id].details:e.type===St.SUBTITLE_TRACK&&e.id!==null&&(d=this.hls.subtitleTracks[e.id].details),d){const f=d.partTarget,m=d.targetduration;if(f&&m){const p=Math.max(f*3,m*.8)*1e3;i=Vt({},i,{maxTimeToFirstByteMs:Math.min(p,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(p,i.maxTimeToFirstByteMs)})}}}const a=i.errorRetry||i.timeoutRetry||{},l={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},u={onSuccess:(d,f,m,p)=>{const y=this.getInternalLoader(m);this.resetInternalLoader(m.type);const v=d.data;f.parsing.start=performance.now(),Cs.isMediaPlaylist(v)||m.type!==St.MANIFEST?this.handleTrackOrLevelPlaylist(d,f,m,p||null,y):this.handleMasterPlaylist(d,f,m,p)},onError:(d,f,m,p)=>{this.handleNetworkError(f,m,!1,d,p)},onTimeout:(d,f,m)=>{this.handleNetworkError(f,m,!0,void 0,d)}};s.load(e,l,u)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:r}=this.hls;(e||r)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,r,s){const i=this.hls,a=e.data,l=q0(e,r),u=Cs.parseMasterPlaylist(a,l);if(u.playlistParsingError){t.parsing.end=performance.now(),this.handleManifestParsingError(e,r,u.playlistParsingError,s,t);return}const{contentSteering:d,levels:f,iframeVariants:m,sessionData:p,sessionKeys:y,startTimeOffset:v,variableList:x}=u;this.variableList=x,f.forEach(w=>{const{unknownCodecs:R}=w;if(R){const{preferManagedMediaSource:I}=this.hls.config;let{audioCodec:L,videoCodec:N}=w;for(let _=R.length;_--;){const j=R[_];jc(j,"audio",I)?(w.audioCodec=L=L?`${L},${j}`:j,Ho.audio[L.substring(0,4)]=2,R.splice(_,1)):jc(j,"video",I)&&(w.videoCodec=N=N?`${N},${j}`:j,Ho.video[N.substring(0,4)]=2,R.splice(_,1))}}});const{AUDIO:b=[],SUBTITLES:E,"CLOSED-CAPTIONS":T}=Cs.parseMasterPlaylistMedia(a,l,u);b.length&&!b.some(R=>!R.url)&&f[0].audioCodec&&!f[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),b.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new an({}),bitrate:0,url:""})),i.trigger(M.MANIFEST_LOADED,{levels:f,audioTracks:b,subtitles:E,iframeVariants:m,captions:T,contentSteering:d,url:l,stats:t,networkDetails:s,sessionData:p,sessionKeys:y,startTimeOffset:v,variableList:x})}handleTrackOrLevelPlaylist(e,t,r,s,i){const a=this.hls,{id:l,level:u,type:d}=r,f=q0(e,r),m=ze(u)?u:ze(l)?l:0,p=O7(r),y=Cs.parseLevelPlaylist(e.data,f,m,p,0,this.variableList);if(d===St.MANIFEST){const v={attrs:new an({}),bitrate:0,details:y,name:"",url:f};y.requestScheduled=t.loading.start+nS(y,0),a.trigger(M.MANIFEST_LOADED,{levels:[v],audioTracks:[],iframeVariants:[],url:f,stats:t,networkDetails:s,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),r.levelDetails=y,this.handlePlaylistLoaded(y,e,t,r,s,i)}handleManifestParsingError(e,t,r,s,i){this.hls.trigger(M.ERROR,{type:nt.NETWORK_ERROR,details:ye.MANIFEST_PARSING_ERROR,fatal:t.type===St.MANIFEST,url:e.url,err:r,error:r,reason:r.message,response:e,context:t,networkDetails:s,stats:i})}handleNetworkError(e,t,r=!1,s,i){let a=`A network ${r?"timeout":"error"+(s?" (status "+s.code+")":"")} occurred while loading ${e.type}`;e.type===St.LEVEL?a+=`: ${e.level} id: ${e.id}`:(e.type===St.AUDIO_TRACK||e.type===St.SUBTITLE_TRACK)&&(a+=` id: ${e.id} group-id: "${e.groupId}"`);const l=new Error(a);this.hls.logger.warn(`[playlist-loader]: ${a}`);let u=ye.UNKNOWN,d=!1;const f=this.getInternalLoader(e);switch(e.type){case St.MANIFEST:u=r?ye.MANIFEST_LOAD_TIMEOUT:ye.MANIFEST_LOAD_ERROR,d=!0;break;case St.LEVEL:u=r?ye.LEVEL_LOAD_TIMEOUT:ye.LEVEL_LOAD_ERROR,d=!1;break;case St.AUDIO_TRACK:u=r?ye.AUDIO_TRACK_LOAD_TIMEOUT:ye.AUDIO_TRACK_LOAD_ERROR,d=!1;break;case St.SUBTITLE_TRACK:u=r?ye.SUBTITLE_TRACK_LOAD_TIMEOUT:ye.SUBTITLE_LOAD_ERROR,d=!1;break}f&&this.resetInternalLoader(e.type);const m={type:nt.NETWORK_ERROR,details:u,fatal:d,url:e.url,loader:f,context:e,error:l,networkDetails:t,stats:i};if(s){let p=e.url;t&&"url"in t&&(p=t.url),m.response=st({url:p,data:void 0},s)}this.hls.trigger(M.ERROR,m)}handlePlaylistLoaded(e,t,r,s,i,a){const l=this.hls,{type:u,level:d,levelOrTrack:f,id:m,groupId:p,deliveryDirectives:y}=s,v=q0(t,s),x=O7(s);let b=typeof s.level=="number"&&x===Qe.MAIN?d:void 0;f&&"iframes"in f&&f.iframes&&!e.iframesOnly&&(e.playlistParsingError=new Error("EXT-X-I-FRAME-STREAM-INF media playlist MUST contain an EXT-X-I-FRAMES-ONLY tag"),e.iframesOnly=!0);const E=e.playlistParsingError;if(E){if(this.hls.logger.warn(`${E} ${e.url}`),!l.config.ignorePlaylistParsingErrors){l.trigger(M.ERROR,{type:nt.NETWORK_ERROR,details:ye.LEVEL_PARSING_ERROR,fatal:!1,url:v,error:E,reason:E.message,response:t,context:s,level:b,parent:x,networkDetails:i,stats:r});return}e.playlistParsingError=null}if(!e.fragments.length){const T=e.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(M.ERROR,{type:nt.NETWORK_ERROR,details:ye.LEVEL_EMPTY_ERROR,fatal:!1,url:v,error:T,reason:T.message,response:t,context:s,level:b,parent:x,networkDetails:i,stats:r});return}switch(e.live&&a&&(a.getCacheAge&&(e.ageHeader=a.getCacheAge()||0),(!a.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),u){case St.MANIFEST:case St.LEVEL:if(b){if(!f)b=0;else if(f!==l.levels[b]){const T=l.levels.indexOf(f);T>-1&&(b=T)}}l.trigger(M.LEVEL_LOADED,{details:e,levelInfo:f||l.levels[0],level:b||0,id:m||0,stats:r,networkDetails:i,deliveryDirectives:y,withoutMultiVariant:u===St.MANIFEST,context:s});break;case St.AUDIO_TRACK:l.trigger(M.AUDIO_TRACK_LOADED,{details:e,track:f,id:m||0,groupId:p||"",stats:r,networkDetails:i,deliveryDirectives:y,context:s});break;case St.SUBTITLE_TRACK:l.trigger(M.SUBTITLE_TRACK_LOADED,{details:e,track:f,id:m||0,groupId:p||"",stats:r,networkDetails:i,deliveryDirectives:y,context:s});break}}}class Yr{static get version(){return Bc}static isMSESupported(){return tE()}static isSupported(){return cU()}static getMediaSource(){return Fi()}static get Events(){return M}static get MetadataSchema(){return Kn}static get ErrorTypes(){return nt}static get ErrorDetails(){return ye}static get DefaultConfig(){return Yr.defaultConfig?Yr.defaultConfig:eV}static set DefaultConfig(e){Yr.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this._url=null,this.streamController=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new Qp,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.iframeController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const t=this.logger=Aj(e.debug||!1,"Hls instance",e.loggerId||e.assetPlayerId),r=this.config=nV(Yr.DefaultConfig,e,t);this.userConfig=e,r.progressive&&rV(r,t);const{streamController:s,abrController:i,bufferController:a,capLevelController:l,errorController:u,fpsController:d,id3TrackController:f,iframeController:m,gapController:p}=r,y=new u(this),v=this.abrController=new i(this),x=new GM(this),b=r.interstitialsController,E=b?this.interstitialsController=new b(this,Yr):null,T=a?this.bufferController=new a(this,x):null,w=l?this.capLevelController=new l(this):null,R=d?new d(this):null,I=r.cmcdController,L=I?this.cmcdController=new I(this):null,N=new aV(this),_=r.contentSteeringController,j=_?new _(this):null,F=this.levelController=new sV(this,j),$=f?new f(this):void 0,z=new iV(this.config,this.logger),W=this.streamController=new s(this,x,z),J=this.gapController=p?new p(this,x):void 0;w&&w.setStreamController(W);const oe=[N,F,W];E&&oe.splice(1,0,E),j&&oe.splice(1,0,j),this.networkControllers=oe;const ie=[v];T&&ie.push(T),J&&ie.push(J),w&&ie.push(w),R&&(R.setStreamController(W),ie.push(R)),$&&ie.push($),ie.push(x),this.audioTrackController=this.createController(r.audioTrackController,oe);const Z=r.audioStreamController;Z&&oe.push(this.audioStreamController=new Z(this,x,z)),this.subtitleTrackController=this.createController(r.subtitleTrackController,oe);const X=r.subtitleStreamController;X&&oe.push(this.subtititleStreamController=new X(this,x,z)),this.createController(r.timelineController,ie),z.emeController=this.emeController=this.createController(r.emeController,ie),L&&ie.push(L),this.latencyController=this.createController(r.latencyController,ie),this.coreComponents=ie,this.iframeController=m?new m(this,Yr):void 0,oe.push(y);const ue=y.onErrorOut;typeof ue=="function"&&this.on(M.ERROR,ue,y),this.on(M.MANIFEST_LOADED,N.onManifestLoaded,N)}createController(e,t){if(e){const r=new e(this);return t&&t.push(r),r}return null}on(e,t,r=this){this._emitter.on(e,t,r)}once(e,t,r=this){this._emitter.once(e,t,r)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,r=this,s){this._emitter.off(e,t,r,s)}listeners(e){return this._emitter.listeners(e)}emit(e,t,r){return this._emitter.emit(e,t,r)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(r){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const s=e===M.ERROR;this.trigger(M.ERROR,{type:nt.OTHER_ERROR,details:ye.INTERNAL_EXCEPTION,fatal:s,event:e,error:r}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(M.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(t=>t.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(t=>t.destroy()),this.coreComponents.length=0,this.iframeController=void 0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){const i=new Error(`attachMedia failed: invalid argument (${e})`);this.trigger(M.ERROR,{type:nt.OTHER_ERROR,details:ye.ATTACH_MEDIA_ERROR,fatal:!0,error:i});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,r=t?e.media:e,s=t?e:{media:r};this._media=r,this.trigger(M.MEDIA_ATTACHING,s)}detachMedia(){this.logger.log("detachMedia");const e={};this.trigger(M.MEDIA_DETACHING,e),this._media=null,this.trigger(M.MEDIA_DETACHED,e)}transferMedia(){var e;this._media=null;const t=((e=this.bufferController)==null?void 0:e.transferMedia())||null,r={transferMedia:t};return this.trigger(M.MEDIA_DETACHING,r),this.trigger(M.MEDIA_DETACHED,r),t}loadSource(e){var t;this.stopLoad();const r=this.media,s=this._url,i=this._url=Fp.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${i}`),r&&s&&(s!==i||(t=this.bufferController)!=null&&t.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(r)),this.trigger(M.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", <skip seek to start>":"")})`),this.started=!0,this.resumeBuffering();for(let r=0;r<this.networkControllers.length&&(this.networkControllers[r].startLoad(e,t),!(!this.started||!this.networkControllers));r++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}get loadingEnabled(){return this.started&&this.streamController.state!==Le.STOPPED}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()}))}get inFlightFragments(){const e={[Qe.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[Qe.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[Qe.SUBTITLE]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=this.started,r=e==null?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&(r?this.startLoad(r):this.config.autoStartLoad||this.startLoad()))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=yb()),e}get levels(){const e=this.levelController.levels;return e||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=this.capLevelController,r=!!e;t&&r!==this.config.capLevelToPlayerSize&&(r?t.startCapping():(t.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=r)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){const{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){LM(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const r=e.length;for(let s=0;s<r;s++)if(e[s].maxBitrate>=t)return s;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:r}=this;let s;if(t===-1&&e!=null&&e.length?s=e.length-1:s=t,r)for(let i=s;i--;){const a=e[i].attrs["HDCP-LEVEL"];if(a&&a<=r)return i}return s}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get audioForwardBufferInfo(){var e;return((e=this.audioStreamController)==null?void 0:e.getFwdBufferInfo())||null}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return((t=this.audioTrackController)==null?void 0:t.setAudioOption(e))||null}setSubtitleOption(e){var t;return((t=this.subtitleTrackController)==null?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get nextAudioTrack(){var e,t;return(e=(t=this.audioStreamController)==null?void 0:t.nextAudioTrack)!=null?e:-1}set nextAudioTrack(e){const{audioTrackController:t}=this;t&&(t.nextAudioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){var e,t;return(e=(t=this.latencyController)==null?void 0:t.liveSyncPosition)!=null?e:null}get latency(){var e;return((e=this.latencyController)==null?void 0:e.latency)||0}get maxLatency(){var e;return((e=this.latencyController)==null?void 0:e.maxLatency)||0}get targetLatency(){var e;return((e=this.latencyController)==null?void 0:e.targetLatency)||null}set targetLatency(e){this.latencyController&&(this.latencyController.targetLatency=e)}get drift(){var e;return((e=this.latencyController)==null?void 0:e.drift)||null}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!!((e=this.bufferController)!=null&&e.bufferedToEnd)}get interstitialsManager(){return this.interstitialsController?this.interstitialsController.interstitialsManager:null}get iframeVariants(){const e=this.levelController.iframeVariants;return e||[]}
910createIFramePlayer(e){return this._url&&this.iframeController?this.iframeController.createIFramePlayer(e):null}createImageIFramePlayer(e){return this._url&&this.iframeController?this.iframeController.createImageIFramePlayer(e):null}getMediaDecodingInfo(e,t=this.allAudioTracks){const r=Bb(t);return Mb(e,r,navigator.mediaCapabilities)}}Yr.defaultConfig=void 0;const oV="/assets/wave-CB76fltg.gif",lV=()=>new Yr({liveSyncDurationCount:1,liveMaxLatencyDurationCount:3,maxLiveSyncPlaybackRate:1.5});function dE(n){const[e,t]=S.useState(!1),r=S.useRef(null),s=S.useRef(null),i=S.useCallback(()=>{if(!s.current)return;const l=s.current;r.current&&r.current.destroy();const u=lV();r.current=u,u.on(Yr.Events.ERROR,(f,m)=>{var p,y;if(m.fatal){if(console.log("HLS fatal error:",m),((p=m.response)==null?void 0:p.code)===404||((y=m.response)==null?void 0:y.status)===404)return;i()}}),u.on(Yr.Events.MANIFEST_PARSED,()=>{console.log("HLS manifest parsed, attempting play"),l.play().then(()=>{t(!1)}).catch(f=>{console.log("Autoplay blocked:",f),t(!0)})});const d=n.streamUrl?n.streamUrl.includes("index.m3u8")?n.streamUrl:n.streamUrl+"/index.m3u8":`${z8}/strim/${n.channelName}/index.m3u8`;try{u.loadSource(d),u.attachMedia(l)}catch(f){f.status===404||console.log(f)}},[n.channelName,n.streamUrl]);S.useEffect(()=>{const l=s.current;i();const u=()=>{console.log("video ended")};return l==null||l.addEventListener("ended",u),()=>{r.current&&(r.current.destroy(),r.current=null),l==null||l.removeEventListener("ended",u)}},[i]),S.useEffect(()=>{const l=setInterval(()=>{const u=r.current;if(!s.current||!u||!Number.isFinite(u.liveSyncPosition))return;const d=s.current,f=u.liveSyncPosition;f-d.currentTime>3&&(d.currentTime=f)},2e3);return()=>{clearInterval(l)}},[]);const a=()=>e?o.jsx(Je,{className:"green-click-button",onClick:()=>{const l=s.current;l&&l.readyState>0?(l.muted=!1,l.play().then(()=>{t(!1)}).catch(()=>i())):i()},children:"Player stuck? Click Here To Reload Stream!"}):o.jsx(o.Fragment,{});return o.jsxs("div",{children:[o.jsx("video",{itemProp:"video",itemScope:!0,itemType:"https://schema.org/VideoObject",ref:s,id:"video",width:"100%",controls:!0,autoPlay:!0,muted:!0,playsInline:!0,style:{position:"inherit",top:"0",left:"0",zIndex:"0",height:"inherit"},poster:oV}),a()]})}function cV(n){const[e,t]=S.useState({}),[r,s]=S.useState(!0);S.useEffect(()=>{s(!0),Pe.get(kt+"/stream/"+n.channelName+"/info").then(a=>{t(a.data)}).catch(a=>console.log(a)).finally(()=>s(!1))},[n.channelName]);const i=!!(n.over18||n.restricted||n.strict18||e.over18||e.restricted||e.strict18);return r?_n:n.isLive?o.jsxs(o.Fragment,{children:[o.jsxs("h2",{children:[n.channelName," IS LIVE",e.viewCount===void 0?"!":" WITH: "+e.viewCount+" viewers!",i&&o.jsxs("span",{className:"channel-18plus-badge",title:"18+ Stream Only",children:[o.jsx("span",{className:"channel-18plus-icon",children:"18+"})," 18+ Stream Only"]})]}),o.jsxs("div",{className:"stream-info-box",children:[o.jsx(Pt,{to:"stream",children:o.jsx(dE,{streamUrl:z8+"/strim/"+n.channelName,channelName:n.channelName})}),o.jsx("br",{}),o.jsxs("div",{className:"streamViewMini",children:[i&&o.jsx("div",{className:"channel-live-18plus-banner",children:o.jsx("span",{className:"channel-18plus-pill",children:"18+ Stream Only"})}),o.jsx("h3",{children:e.title}),o.jsx("h3",{children:e.description})]})]}),o.jsx("br",{}),o.jsxs("h4",{children:[" Click the stream above",o.jsx("a",{href:"/"+n.channelName+"/stream",children:"OR RIGHT HERE"}),"to join!"]})]}):o.jsxs("div",{className:"channel-information-live-view",children:[o.jsxs("h2",{children:[n.channelName," is not live right now",o.jsx("br",{})," Be sure to check back soon"]}),o.jsxs("h4",{children:["Want to view the stream screen? Click ",o.jsx("a",{href:"/"+n.channelName+"/stream",children:"HERE"})]})]})}function uV(n){var t;const e=()=>{if(!n.mobileView)return o.jsx(Je,{className:"green-click-button edit-channel-btn",onClick:()=>{window.location.replace("/channel-settings")},children:"Edit channel data"})};return n.loggedIn&&n.userData&&n.channelName===(((t=n.userData.streamingInfo)==null?void 0:t.ownedChannelName)||n.userData.ownedChannelName)?o.jsxs("div",{className:"channel-header",children:[n.channelBanner,e()]}):o.jsx("div",{className:"channel-header",children:n.channelBanner})}function dV(n){const{panelTitle:e,panelContent:t,panelTitleImage:r}=n.panelData;return o.jsxs("div",{className:"channel-panel",children:[r?o.jsx("img",{src:r,alt:e,className:"channel-panel-title-img"}):o.jsx("h2",{className:"channel-panel-title",children:e}),o.jsx("div",{className:"channel-panel-content",dangerouslySetInnerHTML:{__html:kc(t||"")}})]})}function fV(n){const e=()=>{if(n.channelPanels)return n.channelPanels.map((t,r)=>o.jsx(dV,{panelData:t},r))};return o.jsx("div",{className:"channel-panel-holder",children:e()})}/*!
911 * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
912 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
913 * Copyright 2024 Fonticons, Inc.
914 */function hV(n,e,t){return(e=pV(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function D7(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),t.push.apply(t,r)}return t}function Ue(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};
vendor: 5,609 bytes, line 914
914e%2?D7(Object(t),!0).forEach(function(r){hV(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):D7(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function mV(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function pV(n){var e=mV(n,"string");return typeof e=="symbol"?e:e+""}const j7=()=>{};let m8={},fE={},hE=null,mE={mark:j7,measure:j7};try{typeof window<"u"&&(m8=window),typeof document<"u"&&(fE=document),typeof MutationObserver<"u"&&(hE=MutationObserver),typeof performance<"u"&&(mE=performance)}catch{}const{userAgent:M7=""}=m8.navigator||{},Bi=m8,nn=fE,F7=hE,v1=mE;Bi.document;const ti=!!nn.documentElement&&!!nn.head&&typeof nn.addEventListener=="function"&&typeof nn.createElement=="function",pE=~M7.indexOf("MSIE")||~M7.indexOf("Trident/");var gV=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,yV=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,gE={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},vV={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},yE=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Vn="classic",Qf="duotone",xV="sharp",CV="sharp-duotone",vE=[Vn,Qf,xV,CV],bV={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},SV={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},EV=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),wV={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},TV=["fak","fa-kit","fakd","fa-kit-duotone"],$7={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},IV=["kit"],RV={kit:{"fa-kit":"fak"}},AV=["fak","fakd"],LV={kit:{fak:"fa-kit"}},B7={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},x1={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},NV=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],kV=["fak","fa-kit","fakd","fa-kit-duotone"],PV={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},_V={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},OV={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},l5={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},DV=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],c5=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...NV,...DV],jV=["solid","regular","light","thin","duotone","brands"],xE=[1,2,3,4,5,6,7,8,9,10],MV=xE.concat([11,12,13,14,15,16,17,18,19,20]),FV=[...Object.keys(OV),...jV,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vert
914ical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",x1.GROUP,x1.SWAP_OPACITY,x1.PRIMARY,x1.SECONDARY].concat(xE.map(n=>"".concat(n,"x"))).concat(MV.map(n=>"w-".concat(n))),$V={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Zs="___FONT_AWESOME___",u5=16,CE="fa",bE="svg-inline--fa",ja="data-fa-i2svg",d5="data-fa-pseudo-element",BV="data-fa-pseudo-element-pending",p8="data-prefix",g8="data-icon",U7="fontawesome-i2svg",UV="async",VV=["HTML","HEAD","STYLE","SCRIPT"],SE=(()=>{try{return!0}catch{return!1}})();function hu(n){return new Proxy(n,{get(e,t){return t in e?e[t]:e[Vn]}})}const EE=Ue({},gE);EE[Vn]=Ue(Ue(Ue(Ue({},{"fa-duotone":"duotone"}),gE[Vn]),$7.kit),$7["kit-duotone"]);const zV=hu(EE),f5=Ue({},wV);f5[Vn]=Ue(Ue(Ue(Ue({},{duotone:"fad"}),f5[Vn]),B7.kit),B7["kit-duotone"]);const V7=hu(f5),h5=Ue({},l5);h5[Vn]=Ue(Ue({},h5[Vn]),LV.kit);const y8=hu(h5),m5=Ue({},_V);m5[Vn]=Ue(Ue({},m5[Vn]),RV.kit);hu(m5);const GV=gV,wE="fa-layers-text",HV=yV,WV=Ue({},bV);hu(WV);const KV=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Y0=vV,qV=[...IV,...FV],vc=Bi.FontAwesomeConfig||{};function YV(n){var e=nn.querySelector("script["+n+"]");if(e)return e.getAttribute(n)}function XV(n){return n===""?!0:n==="false"?!1:n==="true"?!0:n}nn&&typeof nn.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(e=>{let[t,r]=e;const s=XV(YV(t));s!=null&&(vc[r]=s)});const TE={styleDefault:"solid",familyDefault:Vn,cssPrefix:CE,replacementClass:bE,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};vc.familyPrefix&&(vc.cssPrefix=vc.familyPrefix);const qo=Ue(Ue({},TE),vc);qo.autoReplaceSvg||(qo.observeMutations=!1);const dt={};Object.keys(TE).forEach(n=>{Object.defineProperty(dt,n,{enumerable:!0,set:function(e){qo[n]=e,xc.forEach(t=>t(dt))},get:function(){return qo[n]}})});Object.defineProperty(dt,"familyPrefix",{enumerable:!0,set:function(n){qo.cssPrefix=n,xc.forEach(e=>e(dt))},get:function(){return qo.cssPrefix}});Bi.FontAwesomeConfig=dt;const xc=[];function ZV(n){return xc.push(n),()=>{xc.splice(xc.indexOf(n),1)}}const Ti=u5,bs={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function QV(n){if(!n||!ti)return;const e=nn.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=n;const t=nn.head.childNodes;let r=null;for(let s=t.length-1;s>-1;s--){const i=t[s],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}return nn.head.insertBefore(e,r),n}const JV="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Gc(){let n=12,e="";for(;n-- >0;)e+=JV[Math.random()*62|0];return e}function al(n){const e=[];for(let t=(n||[]).length>>>0;t--;)e[t]=n[t];return e}function v8(n){return n.classList?al(n.classList):(n.getAttribute("class")||"").split(" ").filter(e=>e)}function IE(n){return"".concat(n).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ez(n){return Object.keys(n||{}).reduce((e,t)=>e+"".concat(t,'="').concat(IE(n[t]),'" '),"").trim()}function Jf(n){return Object.keys(n||{}).reduce((e,t)=>e+"".concat(t,": ").concat(n[t].trim(),";"),"")}function x8(n){return n.size!==bs.size||n.x!==bs.x||n.y!==bs.y||n.rotate!==bs.rotate||n.flipX||n.flipY}function tz(n){let{transform:e,containerWidth:t,iconWidth:r}=n;const s={transform:"translate(".concat(t/2," 256)")},i="translate(".concat(e.x*32,", ").concat(e.y*32,") "),a="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),l="rotate(".concat(e.rotate," 0 0)"),u={transform:"".concat(i," ").concat(a," ").concat(l)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:s,inner:u,path:d}}function nz(n){let{transform:e,width:t=u5,height:r=u5,startCentered:s=!1}=n,i="";return s&&pE?i+="translate(".concat(e.x/Ti-t/2,"em, ").concat(e.y/Ti-r/2,"em) "):s?i+="translate(calc(-50% + ".concat(e.x/Ti,"em), calc(-50% + ").concat(e.y/Ti,"em)) "):i+="translate(".concat(e.x/Ti,"em, ").concat(e.y/Ti,"em) "),i+="scale(".concat(e.size/Ti*(e.flipX?-1:1),", ").concat(e.size/Ti*(e.flipY?-1:1),") "),i+="rotate(".concat(e.rotate,"deg) "),i}var rz=
vendor: 12,335 bytes, lines 914-1467
914`:root, :host {
915  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
916  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
917  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
918  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
919  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
920  --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
921  --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
922  --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
923  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
924  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
925  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
926  --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
927  --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
928  --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
929  --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
930  --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
931  --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
932}
933
934svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
935  overflow: visible;
936  box-sizing: content-box;
937}
938
939.svg-inline--fa {
940  display: var(--fa-display, inline-block);
941  height: 1em;
942  overflow: visible;
943  vertical-align: -0.125em;
944}
945.svg-inline--fa.fa-2xs {
946  vertical-align: 0.1em;
947}
948.svg-inline--fa.fa-xs {
949  vertical-align: 0em;
950}
951.svg-inline--fa.fa-sm {
952  vertical-align: -0.0714285705em;
953}
954.svg-inline--fa.fa-lg {
955  vertical-align: -0.2em;
956}
957.svg-inline--fa.fa-xl {
958  vertical-align: -0.25em;
959}
960.svg-inline--fa.fa-2xl {
961  vertical-align: -0.3125em;
962}
963.svg-inline--fa.fa-pull-left {
964  margin-right: var(--fa-pull-margin, 0.3em);
965  width: auto;
966}
967.svg-inline--fa.fa-pull-right {
968  margin-left: var(--fa-pull-margin, 0.3em);
969  width: auto;
970}
971.svg-inline--fa.fa-li {
972  width: var(--fa-li-width, 2em);
973  top: 0.25em;
974}
975.svg-inline--fa.fa-fw {
976  width: var(--fa-fw-width, 1.25em);
977}
978
979.fa-layers svg.svg-inline--fa {
980  bottom: 0;
981  left: 0;
982  margin: auto;
983  position: absolute;
984  right: 0;
985  top: 0;
986}
987
988.fa-layers-counter, .fa-layers-text {
989  display: inline-block;
990  position: absolute;
991  text-align: center;
992}
993
994.fa-layers {
995  display: inline-block;
996  height: 1em;
997  position: relative;
998  text-align: center;
999  vertical-align: -0.125em;
1000  width: 1em;
1001}
1002.fa-layers svg.svg-inline--fa {
1003  transform-origin: center center;
1004}
1005
1006.fa-layers-text {
1007  left: 50%;
1008  top: 50%;
1009  transform: translate(-50%, -50%);
1010  transform-origin: center center;
1011}
1012
1013.fa-layers-counter {
1014  background-color: var(--fa-counter-background-color, #ff253a);
1015  border-radius: var(--fa-counter-border-radius, 1em);
1016  box-sizing: border-box;
1017  color: var(--fa-inverse, #fff);
1018  line-height: var(--fa-counter-line-height, 1);
1019  max-width: var(--fa-counter-max-width, 5em);
1020  min-width: var(--fa-counter-min-width, 1.5em);
1021  overflow: hidden;
1022  padding: var(--fa-counter-padding, 0.25em 0.5em);
1023  right: var(--fa-right, 0);
1024  text-overflow: ellipsis;
1025  top: var(--fa-top, 0);
1026  transform: scale(var(--fa-counter-scale, 0.25));
1027  transform-origin: top right;
1028}
1029
1030.fa-layers-bottom-right {
1031  bottom: var(--fa-bottom, 0);
1032  right: var(--fa-right, 0);
1033  top: auto;
1034  transform: scale(var(--fa-layers-scale, 0.25));
1035  transform-origin: bottom right;
1036}
1037
1038.fa-layers-bottom-left {
1039  bottom: var(--fa-bottom, 0);
1040  left: var(--fa-left, 0);
1041  right: auto;
1042  top: auto;
1043  transform: scale(var(--fa-layers-scale, 0.25));
1044  transform-origin: bottom left;
1045}
1046
1047.fa-layers-top-right {
1048  top: var(--fa-top, 0);
1049  right: var(--fa-right, 0);
1050  transform: scale(var(--fa-layers-scale, 0.25));
1051  transform-origin: top right;
1052}
1053
1054.fa-layers-top-left {
1055  left: var(--fa-left, 0);
1056  right: auto;
1057  top: var(--fa-top, 0);
1058  transform: scale(var(--fa-layers-scale, 0.25));
1059  transform-origin: top left;
1060}
1061
1062.fa-1x {
1063  font-size: 1em;
1064}
1065
1066.fa-2x {
1067  font-size: 2em;
1068}
1069
1070.fa-3x {
1071  font-size: 3em;
1072}
1073
1074.fa-4x {
1075  font-size: 4em;
1076}
1077
1078.fa-5x {
1079  font-size: 5em;
1080}
1081
1082.fa-6x {
1083  font-size: 6em;
1084}
1085
1086.fa-7x {
1087  font-size: 7em;
1088}
1089
1090.fa-8x {
1091  font-size: 8em;
1092}
1093
1094.fa-9x {
1095  font-size: 9em;
1096}
1097
1098.fa-10x {
1099  font-size: 10em;
1100}
1101
1102.fa-2xs {
1103  font-size: 0.625em;
1104  line-height: 0.1em;
1105  vertical-align: 0.225em;
1106}
1107
1108.fa-xs {
1109  font-size: 0.75em;
1110  line-height: 0.0833333337em;
1111  vertical-align: 0.125em;
1112}
1113
1114.fa-sm {
1115  font-size: 0.875em;
1116  line-height: 0.0714285718em;
1117  vertical-align: 0.0535714295em;
1118}
1119
1120.fa-lg {
1121  font-size: 1.25em;
1122  line-height: 0.05em;
1123  vertical-align: -0.075em;
1124}
1125
1126.fa-xl {
1127  font-size: 1.5em;
1128  line-height: 0.0416666682em;
1129  vertical-align: -0.125em;
1130}
1131
1132.fa-2xl {
1133  font-size: 2em;
1134  line-height: 0.03125em;
1135  vertical-align: -0.1875em;
1136}
1137
1138.fa-fw {
1139  text-align: center;
1140  width: 1.25em;
1141}
1142
1143.fa-ul {
1144  list-style-type: none;
1145  margin-left: var(--fa-li-margin, 2.5em);
1146  padding-left: 0;
1147}
1148.fa-ul > li {
1149  position: relative;
1150}
1151
1152.fa-li {
1153  left: calc(-1 * var(--fa-li-width, 2em));
1154  position: absolute;
1155  text-align: center;
1156  width: var(--fa-li-width, 2em);
1157  line-height: inherit;
1158}
1159
1160.fa-border {
1161  border-color: var(--fa-border-color, #eee);
1162  border-radius: var(--fa-border-radius, 0.1em);
1163  border-style: var(--fa-border-style, solid);
1164  border-width: var(--fa-border-width, 0.08em);
1165  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
1166}
1167
1168.fa-pull-left {
1169  float: left;
1170  margin-right: var(--fa-pull-margin, 0.3em);
1171}
1172
1173.fa-pull-right {
1174  float: right;
1175  margin-left: var(--fa-pull-margin, 0.3em);
1176}
1177
1178.fa-beat {
1179  animation-name: fa-beat;
1180  animation-delay: var(--fa-animation-delay, 0s);
1181  animation-direction: var(--fa-animation-direction, normal);
1182  animation-duration: var(--fa-animation-duration, 1s);
1183  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
1184  animation-timing-function: var(--fa-animation-timing, ease-in-out);
1185}
1186
1187.fa-bounce {
1188  animation-name: fa-bounce;
1189  animation-delay: var(--fa-animation-delay, 0s);
1190  animation-direction: var(--fa-animation-direction, normal);
1191  animation-duration: var(--fa-animation-duration, 1s);
1192  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
1193  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
1194}
1195
1196.fa-fade {
1197  animation-name: fa-fade;
1198  animation-delay: var(--fa-animation-delay, 0s);
1199  animation-direction: var(--fa-animation-direction, normal);
1200  animation-duration: var(--fa-animation-duration, 1s);
1201  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
1202  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
1203}
1204
1205.fa-beat-fade {
1206  animation-name: fa-beat-fade;
1207  animation-delay: var(--fa-animation-delay, 0s);
1208  animation-direction: var(--fa-animation-direction, normal);
1209  animation-duration: var(--fa-animation-duration, 1s);
1210  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
1211  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
1212}
1213
1214.fa-flip {
1215  animation-name: fa-flip;
1216  animation-delay: var(--fa-animation-delay, 0s);
1217  animation-direction: var(--fa-animation-direction, normal);
1218  animation-duration: var(--fa-animation-duration, 1s);
1219  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
1220  animation-timing-function: var(--fa-animation-timing, ease-in-out);
1221}
1222
1223.fa-shake {
1224  animation-name: fa-shake;
1225  animation-delay: var(--fa-animation-delay, 0s);
1226  animation-direction: var(--fa-animation-direction, normal);
1227  animation-duration: var(--fa-animation-duration, 1s);
1228  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
1229  animation-timing-function: var(--fa-animation-timing, linear);
1230}
1231
1232.fa-spin {
1233  animation-name: fa-spin;
1234  animation-delay: var(--fa-animation-delay, 0s);
1235  animation-direction: var(--fa-animation-direction, normal);
1236  animation-duration: var(--fa-animation-duration, 2s);
1237  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
1238  animation-timing-function: var(--fa-animation-timing, linear);
1239}
1240
1241.fa-spin-reverse {
1242  --fa-animation-direction: reverse;
1243}
1244
1245.fa-pulse,
1246.fa-spin-pulse {
1247  animation-name: fa-spin;
1248  animation-direction: var(--fa-animation-direction, normal);
1249  animation-duration: var(--fa-animation-duration, 1s);
1250  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
1251  animation-timing-function: var(--fa-animation-timing, steps(8));
1252}
1253
1254@media (prefers-reduced-motion: reduce) {
1255  .fa-beat,
1256.fa-bounce,
1257.fa-fade,
1258.fa-beat-fade,
1259.fa-flip,
1260.fa-pulse,
1261.fa-shake,
1262.fa-spin,
1263.fa-spin-pulse {
1264    animation-delay: -1ms;
1265    animation-duration: 1ms;
1266    animation-iteration-count: 1;
1267    transition-delay: 0s;
1268    transition-duration: 0s;
1269  }
1270}
1271@keyframes fa-beat {
1272  0%, 90% {
1273    transform: scale(1);
1274  }
1275  45% {
1276    transform: scale(var(--fa-beat-scale, 1.25));
1277  }
1278}
1279@keyframes fa-bounce {
1280  0% {
1281    transform: scale(1, 1) translateY(0);
1282  }
1283  10% {
1284    transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
1285  }
1286  30% {
1287    transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
1288  }
1289  50% {
1290    transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
1291  }
1292  57% {
1293    transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
1294  }
1295  64% {
1296    transform: scale(1, 1) translateY(0);
1297  }
1298  100% {
1299    transform: scale(1, 1) translateY(0);
1300  }
1301}
1302@keyframes fa-fade {
1303  50% {
1304    opacity: var(--fa-fade-opacity, 0.4);
1305  }
1306}
1307@keyframes fa-beat-fade {
1308  0%, 100% {
1309    opacity: var(--fa-beat-fade-opacity, 0.4);
1310    transform: scale(1);
1311  }
1312  50% {
1313    opacity: 1;
1314    transform: scale(var(--fa-beat-fade-scale, 1.125));
1315  }
1316}
1317@keyframes fa-flip {
1318  50% {
1319    transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
1320  }
1321}
1322@keyframes fa-shake {
1323  0% {
1324    transform: rotate(-15deg);
1325  }
1326  4% {
1327    transform: rotate(15deg);
1328  }
1329  8%, 24% {
1330    transform: rotate(-18deg);
1331  }
1332  12%, 28% {
1333    transform: rotate(18deg);
1334  }
1335  16% {
1336    transform: rotate(-22deg);
1337  }
1338  20% {
1339    transform: rotate(22deg);
1340  }
1341  32% {
1342    transform: rotate(-12deg);
1343  }
1344  36% {
1345    transform: rotate(12deg);
1346  }
1347  40%, 100% {
1348    transform: rotate(0deg);
1349  }
1350}
1351@keyframes fa-spin {
1352  0% {
1353    transform: rotate(0deg);
1354  }
1355  100% {
1356    transform: rotate(360deg);
1357  }
1358}
1359.fa-rotate-90 {
1360  transform: rotate(90deg);
1361}
1362
1363.fa-rotate-180 {
1364  transform: rotate(180deg);
1365}
1366
1367.fa-rotate-270 {
1368  transform: rotate(270deg);
1369}
1370
1371.fa-flip-horizontal {
1372  transform: scale(-1, 1);
1373}
1374
1375.fa-flip-vertical {
1376  transform: scale(1, -1);
1377}
1378
1379.fa-flip-both,
1380.fa-flip-horizontal.fa-flip-vertical {
1381  transform: scale(-1, -1);
1382}
1383
1384.fa-rotate-by {
1385  transform: rotate(var(--fa-rotate-angle, 0));
1386}
1387
1388.fa-stack {
1389  display: inline-block;
1390  vertical-align: middle;
1391  height: 2em;
1392  position: relative;
1393  width: 2.5em;
1394}
1395
1396.fa-stack-1x,
1397.fa-stack-2x {
1398  bottom: 0;
1399  left: 0;
1400  margin: auto;
1401  position: absolute;
1402  right: 0;
1403  top: 0;
1404  z-index: var(--fa-stack-z-index, auto);
1405}
1406
1407.svg-inline--fa.fa-stack-1x {
1408  height: 1em;
1409  width: 1.25em;
1410}
1411.svg-inline--fa.fa-stack-2x {
1412  height: 2em;
1413  width: 2.5em;
1414}
1415
1416.fa-inverse {
1417  color: var(--fa-inverse, #fff);
1418}
1419
1420.sr-only,
1421.fa-sr-only {
1422  position: absolute;
1423  width: 1px;
1424  height: 1px;
1425  padding: 0;
1426  margin: -1px;
1427  overflow: hidden;
1428  clip: rect(0, 0, 0, 0);
1429  white-space: nowrap;
1430  border-width: 0;
1431}
1432
1433.sr-only-focusable:not(:focus),
1434.fa-sr-only-focusable:not(:focus) {
1435  position: absolute;
1436  width: 1px;
1437  height: 1px;
1438  padding: 0;
1439  margin: -1px;
1440  overflow: hidden;
1441  clip: rect(0, 0, 0, 0);
1442  white-space: nowrap;
1443  border-width: 0;
1444}
1445
1446.svg-inline--fa .fa-primary {
1447  fill: var(--fa-primary-color, currentColor);
1448  opacity: var(--fa-primary-opacity, 1);
1449}
1450
1451.svg-inline--fa .fa-secondary {
1452  fill: var(--fa-secondary-color, currentColor);
1453  opacity: var(--fa-secondary-opacity, 0.4);
1454}
1455
1456.svg-inline--fa.fa-swap-opacity .fa-primary {
1457  opacity: var(--fa-secondary-opacity, 0.4);
1458}
1459
1460.svg-inline--fa.fa-swap-opacity .fa-secondary {
1461  opacity: var(--fa-primary-opacity, 1);
1462}
1463
1464.svg-inline--fa mask .fa-primary,
1465.svg-inline--fa mask .fa-secondary {
1466  fill: black;
1467}`;
1467function RE(){const n=CE,e=bE,t=dt.cssPrefix,r=dt.replacementClass;let s=rz;if(t!==n||r!==e){const i=new RegExp("\\.".concat(n,"\\-"),"g"),a=new RegExp("\\--".concat(n,"\\-"),"g"),l=new RegExp("\\.".concat(e),"g");s=s.replace(i,".".concat(t,"-")).replace(a,"--".concat(t,"-")).replace(l,".".concat(r))}return s}let z7=!1;function X0(){dt.autoAddCss&&!z7&&(QV(RE()),z7=!0)}var sz={mixout(){return{dom:{css:RE,insertCss:X0}}},hooks(){return{beforeDOMElementCreation(){X0()},beforeI2svg(){X0()}}}};const Qs=Bi||{};Qs[Zs]||(Qs[Zs]={});Qs[Zs].styles||(Qs[Zs].styles={});Qs[Zs].hooks||(Qs[Zs].hooks={});Qs[Zs].shims||(Qs[Zs].shims=[]);var Ss=Qs[Zs];const AE=[],LE=function(){nn.removeEventListener("DOMContentLoaded",LE),yf=1,AE.map(n=>n())};let yf=!1;ti&&(yf=(nn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(nn.readyState),yf||nn.addEventListener("DOMContentLoaded",LE));function iz(n){ti&&(yf?setTimeout(n,0):AE.push(n))}function mu(n){const{tag:e,attributes:t={},children:r=[]}=n;return typeof n=="string"?IE(n):"<".concat(e," ").concat(ez(t),">").concat(r.map(mu).join(""),"</").concat(e,">")}function G7(n,e,t){if(n&&n[e]&&n[e][t])return{prefix:e,iconName:t,icon:n[e][t]}}var Z0=function(e,t,r,s){var i=Object.keys(e),a=i.length,l=t,u,d,f;for(r===void 0?(u=1,f=e[i[0]]):(u=0,f=r);u<a;u++)d=i[u],f=l(f,e[d],d,e);return f};function az(n){const e=[];let t=0;const r=n.length;for(;t<r;){const s=n.charCodeAt(t++);if(s>=55296&&s<=56319&&t<r){const i=n.charCodeAt(t++);(i&64512)==56320?e.push(((s&1023)<<10)+(i&1023)+65536):(e.push(s),t--)}else e.push(s)}return e}function p5(n){const e=az(n);return e.length===1?e[0].toString(16):null}function oz(n,e){const t=n.length;let r=n.charCodeAt(e),s;return r>=55296&&r<=56319&&t>e+1&&(s=n.charCodeAt(e+1),s>=56320&&s<=57343)?(r-55296)*1024+s-56320+65536:r}function H7(n){return Object.keys(n).reduce((e,t)=>{const r=n[t];return!!r.icon?e[r.iconName]=r.icon:e[t]=r,e},{})}function g5(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=t,s=H7(e);typeof Ss.hooks.addPack=="function"&&!r?Ss.hooks.addPack(n,H7(e)):Ss.styles[n]=Ue(Ue({},Ss.styles[n]||{}),s),n==="fas"&&g5("fa",e)}const{styles:Hc,shims:lz}=Ss,NE=Object.keys(y8),cz=NE.reduce((n,e)=>(n[e]=Object.keys(y8[e]),n),{});let C8=null,kE={},PE={},_E={},OE={},DE={};function uz(n){return~qV.indexOf(n)}function dz(n,e){const t=e.split("-"),r=t[0],s=t.slice(1).join("-");return r===n&&s!==""&&!uz(s)?s:null}const jE=()=>{const n=r=>Z0(Hc,(s,i,a)=>(s[a]=Z0(i,r,{}),s),{});kE=n((r,s,i)=>(s[3]&&(r[s[3]]=i),s[2]&&s[2].filter(l=>typeof l=="number").forEach(l=>{r[l.toString(16)]=i}),r)),PE=n((r,s,i)=>(r[i]=i,s[2]&&s[2].filter(l=>typeof l=="string").forEach(l=>{r[l]=i}),r)),DE=n((r,s,i)=>{const a=s[2];return r[i]=i,a.forEach(l=>{r[l]=i}),r});const e="far"in Hc||dt.autoFetchSvg,t=Z0(lz,(r,s)=>{const i=s[0];let a=s[1];const l=s[2];return a==="far"&&!e&&(a="fas"),typeof i=="string"&&(r.names[i]={prefix:a,iconName:l}),typeof i=="number"&&(r.unicodes[i.toString(16)]={prefix:a,iconName:l}),r},{names:{},unicodes:{}});_E=t.names,OE=t.unicodes,C8=eh(dt.styleDefault,{family:dt.familyDefault})};ZV(n=>{C8=eh(n.styleDefault,{family:dt.familyDefault})});jE();function b8(n,e){return(kE[n]||{})[e]}function fz(n,e){return(PE[n]||{})[e]}function xa(n,e){return(DE[n]||{})[e]}function ME(n){return _E[n]||{prefix:null,iconName:null}}function hz(n){const e=OE[n],t=b8("fas",n);return e||(t?{prefix:"fas",iconName:t}:null)||{prefix:null,iconName:null}}function Ui(){return C8}const FE=()=>({prefix:null,iconName:null,rest:[]}
1467);function mz(n){let e=Vn;const t=NE.reduce((r,s)=>(r[s]="".concat(dt.cssPrefix,"-").concat(s),r),{});return vE.forEach(r=>{(n.includes(t[r])||n.some(s=>cz[r].includes(s)))&&(e=r)}),e}function eh(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:t=Vn}=e,r=zV[t][n];if(t===Qf&&!n)return"fad";const s=V7[t][n]||V7[t][r],i=n in Ss.styles?n:null;return s||i||null}function pz(n){let e=[],t=null;return n.forEach(r=>{const s=dz(dt.cssPrefix,r);s?t=s:r&&e.push(r)}),{iconName:t,rest:e}}function W7(n){return n.sort().filter((e,t,r)=>r.indexOf(e)===t)}function th(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:t=!1}=e;let r=null;const s=c5.concat(kV),i=W7(n.filter(m=>s.includes(m))),a=W7(n.filter(m=>!c5.includes(m))),l=i.filter(m=>(r=m,!yE.includes(m))),[u=null]=l,d=mz(i),f=Ue(Ue({},pz(a)),{},{prefix:eh(u,{family:d})});return Ue(Ue(Ue({},f),xz({values:n,family:d,styles:Hc,config:dt,canonical:f,givenPrefix:r})),gz(t,r,f))}function gz(n,e,t){let{prefix:r,iconName:s}=t;if(n||!r||!s)return{prefix:r,iconName:s};const i=e==="fa"?ME(s):{},a=xa(r,s);return s=i.iconName||a||s,r=i.prefix||r,r==="far"&&!Hc.far&&Hc.fas&&!dt.autoFetchSvg&&(r="fas"),{prefix:r,iconName:s}}const yz=vE.filter(n=>n!==Vn||n!==Qf),vz=Object.keys(l5).filter(n=>n!==Vn).map(n=>Object.keys(l5[n])).flat();function xz(n){const{values:e,family:t,canonical:r,givenPrefix:s="",styles:i={},config:a={}}=n,l=t===Qf,u=e.includes("fa-duotone")||e.includes("fad"),d=a.familyDefault==="duotone",f=r.prefix==="fad"||r.prefix==="fa-duotone";if(!l&&(u||d||f)&&(r.prefix="fad"),(e.includes("fa-brands")||e.includes("fab"))&&(r.prefix="fab"),!r.prefix&&yz.includes(t)&&(Object.keys(i).find(p=>vz.includes(p))||a.autoFetchSvg)){const p=EV.get(t).defaultShortPrefixId;r.prefix=p,r.iconName=xa(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||s==="fa")&&(r.prefix=Ui()||"fas"),r}class Cz{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const s=t.reduce(this._pullDefinitions,{});Object.keys(s).forEach(i=>{this.definitions[i]=Ue(Ue({},this.definitions[i]||{}),s[i]),g5(i,s[i]);const a=y8[Vn][i];a&&g5(a,s[i]),jE()})}reset(){this.definitions={}}_pullDefinitions(e,t){const r=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(r).map(s=>{const{prefix:i,iconName:a,icon:l}=r[s],u=l[2];e[i]||(e[i]={}),u.length>0&&u.forEach(d=>{typeof d=="string"&&(e[i][d]=l)}),e[i][a]=l}),e}}let K7=[],No={};const Mo={},bz=Object.keys(Mo);function Sz(n,e){let{mixoutsTo:t}=e;return K7=n,No={},Object.keys(Mo).forEach(r=>{bz.indexOf(r)===-1&&delete Mo[r]}),K7.forEach(r=>{const s=r.mixout?r.mixout():{};if(Object.keys(s).forEach(i=>{typeof s[i]=="function"&&(t[i]=s[i]),typeof s[i]=="object"&&Object.keys(s[i]).forEach(a=>{t[i]||(t[i]={}),t[i][a]=s[i][a]})}),r.hooks){const i=r.hooks();
1467Object.keys(i).forEach(a=>{No[a]||(No[a]=[]),No[a].push(i[a])})}r.provides&&r.provides(Mo)}),t}function y5(n,e){for(var t=arguments.length,r=new Array(t>2?t-2:0),s=2;s<t;s++)r[s-2]=arguments[s];return(No[n]||[]).forEach(a=>{e=a.apply(null,[e,...r])}),e}function Ma(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];(No[n]||[]).forEach(i=>{i.apply(null,t)})}function Vi(){const n=arguments[0],e=Array.prototype.slice.call(arguments,1);return Mo[n]?Mo[n].apply(null,e):void 0}function v5(n){n.prefix==="fa"&&(n.prefix="fas");let{iconName:e}=n;const t=n.prefix||Ui();if(e)return e=xa(t,e)||e,G7($E.definitions,t,e)||G7(Ss.styles,t,e)}const $E=new Cz,Ez=()=>{dt.autoReplaceSvg=!1,dt.observeMutations=!1,Ma("noAuto")},wz={i2svg:function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ti?(Ma("beforeI2svg",n),Vi("pseudoElements2svg",n),Vi("i2svg",n)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:e}=n;dt.autoReplaceSvg===!1&&(dt.autoReplaceSvg=!0),dt.observeMutations=!0,iz(()=>{Iz({autoReplaceSvgRoot:e}),Ma("watch",n)})}},Tz={icon:n=>{if(n===null)return null;if(typeof n=="object"&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:xa(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&n.length===2){const e=n[1].indexOf("fa-")===0?n[1].slice(3):n[1],t=eh(n[0]);return{prefix:t,iconName:xa(t,e)||e}}if(typeof n=="string"&&(n.indexOf("".concat(dt.cssPrefix,"-"))>-1||n.match(GV))){const e=th(n.split(" "),{skipLookups:!0});return{prefix:e.prefix||Ui(),iconName:xa(e.prefix,e.iconName)||e.iconName}}if(typeof n=="string"){const e=Ui();return{prefix:e,iconName:xa(e,n)||n}}}},Er={noAuto:Ez,config:dt,dom:wz,parse:Tz,library:$E,findIconDefinition:v5,toHtml:mu},Iz=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:e=nn}=n;(Object.keys(Ss.styles).length>0||dt.autoFetchSvg)&&ti&&dt.autoReplaceSvg&&Er.dom.i2svg({node:e})};function nh(n,e){return Object.defineProperty(n,"abstract",{get:e}),Object.defineProperty(n,"html",{get:function(){return n.abstract.map(t=>mu(t))}}),Object.defineProperty(n,"node",{get:function(){if(!ti)return;const t=nn.createElement("div");return t.innerHTML=n.html,t.children}}),n}function Rz(n){let{children:e,main:t,mask:r,attributes:s,styles:i,transform:a}=n;if(x8(a)&&t.found&&!r.found){const{width:l,height:u}=t,d={x:l/u/2,y:.5};s.style=Jf(Ue(Ue({},i),{},{"transform-origin":"".concat(d.x+a.x/16,"em ").concat(d.y+a.y/16,"em")}))}return[{tag:"svg",attributes:s,children:e}]}function Az(n){let{prefix:e,iconName:t,children:r,attributes:s,symbol:i}=n;const a=i===!0?"".concat(e,"-").concat(dt.cssPrefix,"-").concat(t):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ue(Ue({},s),{},{id:a}),children:r}]}]}function S8(n){const{icons:{main:e,mask:t},prefix:r,iconName:s,transform:i,symbol:a,title:l,maskId:u,titleId:d,extra:f,watchable:m=!1}=n,{width:p,height:y}=t.found?t:e,v=AV.includes(r),x=[dt.replacementClass,s?"".concat(dt.cssPrefix,"-").concat(s):""].filter(I=>f.classes.indexOf(I)===-1).filter(I=>I!==""||!!I).concat(f.classes).join(" ");let b={children:[],attributes:Ue(Ue({},f.attributes),{},{"data-prefix":r,"data-icon":s,class:x,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(y)})};const E=v&&!~f.classes.indexOf("fa-fw")?{width:"".concat(p/y*16*.0625,"em")}:{};m&&(b.attributes[ja]=""),l&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(d||Gc())},children:[l]}),delete b.attributes.title);const T=Ue(Ue({},b),{},{prefix:r,iconName:s,main:e,mask:t,maskId:u,transform:i,symbol:a,styles:Ue(Ue({},E),f.styles)}),{children:w,attributes:R}=t.found&&e.found?Vi("generateAbstractMask",T)||{children:[],attributes:{}}:Vi("generateAbstractIcon",T)||{children:[],attributes:{}};return T.children=w,T.attributes=R,a?Az(T):Rz(T)}function q7(n){const{content:e,width:t,height:r,transform:s,title:i,extra:a,watchable:l=!1}=n,u=Ue(Ue(Ue({},a.attributes),i?{title:i}:{}),{},{class:a.classes.join(" ")});l&&(u[ja]="");const d=Ue({},a.styles);x8(s)&&(d.transform=nz({transform:s,startCentered:!0,width:t,height:r}),d["-webkit-transform"]=d.transform);const f=Jf(d);f.length>0&&(u.style=f);const m=[];return m.push({tag:"span",attributes:u,children:[e]}),i&&m.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),m}function Lz(n){const{content:e,title:t,extra:r}=n,s=Ue(Ue(Ue({},r.attributes),t?{title:t}:{}),{},{class:r.classes.join(" ")}),i=Jf(r.styles);i.length>0&&(s.style=i);const a=[];return a.push({tag:"span",attributes:s,children:[e]}),t&&a.push({tag:"span",attributes:{class:"sr-only"},children:[t]}),a}const{styles:Q0}=Ss;function x5(n){const e=n[0],t=n[1],[r]=n.slice(4);let s=null;return Array.isArray(r)?s={tag:"g",attributes:{class:"".concat(dt.cssPrefix,"-").concat(Y0.GROUP)},children:[{tag:"path",attributes:{class:"".concat(dt.cssPrefix,"-").concat(Y0.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(dt.cssPrefix,"-").concat(Y0.PRIMARY),fill:"currentColor",d:r[1]}}]}
1467:s={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:e,height:t,icon:s}}const Nz={found:!1,width:512,height:512};function kz(n,e){!SE&&!dt.showMissingIcons&&n&&console.error('Icon with name "'.concat(n,'" and prefix "').concat(e,'" is missing.'))}function C5(n,e){let t=e;return e==="fa"&&dt.styleDefault!==null&&(e=Ui()),new Promise((r,s)=>{if(t==="fa"){const i=ME(n)||{};n=i.iconName||n,e=i.prefix||e}if(n&&e&&Q0[e]&&Q0[e][n]){const i=Q0[e][n];return r(x5(i))}kz(n,e),r(Ue(Ue({},Nz),{},{icon:dt.showMissingIcons&&n?Vi("missingIconAbstract")||{}:{}}))})}const Y7=()=>{},b5=dt.measurePerformance&&v1&&v1.mark&&v1.measure?v1:{mark:Y7,measure:Y7},lc='FA "6.7.2"',Pz=n=>(b5.mark("".concat(lc," ").concat(n," begins")),()=>BE(n)),BE=n=>{b5.mark("".concat(lc," ").concat(n," ends")),b5.measure("".concat(lc," ").concat(n),"".concat(lc," ").concat(n," begins"),"".concat(lc," ").concat(n," ends"))};var E8={begin:Pz,end:BE};const z1=()=>{};function X7(n){return typeof(n.getAttribute?n.getAttribute(ja):null)=="string"}function _z(n){const e=n.getAttribute?n.getAttribute(p8):null,t=n.getAttribute?n.getAttribute(g8):null;return e&&t}function Oz(n){return n&&n.classList&&n.classList.contains&&n.classList.contains(dt.replacementClass)}function Dz(){return dt.autoReplaceSvg===!0?G1.replace:G1[dt.autoReplaceSvg]||G1.replace}function jz(n){return nn.createElementNS("http://www.w3.org/2000/svg",n)}function Mz(n){return nn.createElement(n)}function UE(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:t=n.tag==="svg"?jz:Mz}=e;if(typeof n=="string")return nn.createTextNode(n);const r=t(n.tag);return Object.keys(n.attributes||[]).forEach(function(i){r.setAttribute(i,n.attributes[i])}),(n.children||[]).forEach(function(i){r.appendChild(UE(i,{ceFn:t}))}),r}function Fz(n){let e=" ".concat(n.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}const G1={replace:function(n){const e=n[0];if(e.parentNode)if(n[1].forEach(t=>{e.parentNode.insertBefore(UE(t),e)}),e.getAttribute(ja)===null&&dt.keepOriginalSource){let t=nn.createComment(Fz(e));e.parentNode.replaceChild(t,e)}else e.remove()},nest:function(n){const e=n[0],t=n[1];if(~v8(e).indexOf(dt.replacementClass))return G1.replace(n);const r=new RegExp("".concat(dt.cssPrefix,"-.*"));if(delete t[0].attributes.id,t[0].attributes.class){const i=t[0].attributes.class.split(" ").reduce((a,l)=>(l===dt.replacementClass||l.match(r)?a.toSvg.push(l):a.toNode.push(l),a),{toNode:[],toSvg:[]});t[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?e.removeAttribute("class"):e.setAttribute("class",i.toNode.join(" "))}const s=t.map(i=>mu(i)).join(`
1468`);e.setAttribute(ja,""),e.innerHTML=s}};function Z7(n){n()}function VE(n,e){const t=typeof e=="function"?e:z1;if(n.length===0)t();else{let r=Z7;dt.mutateApproach===UV&&(r=Bi.requestAnimationFrame||Z7),r(()=>{const s=Dz(),i=E8.begin("mutate");n.map(s),i(),t()})}}let w8=!1;function zE(){w8=!0}function S5(){w8=!1}let vf=null;function Q7(n){if(!F7||!dt.observeMutations)return;const{treeCallback:e=z1,nodeCallback:t=z1,pseudoElementsCallback:r=z1,observeMutationsRoot:s=nn}=n;vf=new F7(i=>{if(w8)return;const a=Ui();al(i).forEach(l=>{if(l.type==="childList"&&l.addedNodes.length>0&&!X7(l.addedNodes[0])&&(dt.searchPseudoElements&&r(l.target),e(l.target)),l.type==="attributes"&&l.target.parentNode&&dt.searchPseudoElements&&r(l.target.parentNode),l.type==="attributes"&&X7(l.target)&&~KV.indexOf(l.attributeName))if(l.attributeName==="class"&&_z(l.target)){const{prefix:u,iconName:d}=th(v8(l.target));l.target.setAttribute(p8,u||a),d&&l.target.setAttribute(g8,d)}else Oz(l.target)&&t(l.target)})}),ti&&vf.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function $z(){vf&&vf.disconnect()}function Bz(n){const e=n.getAttribute("style");let t=[];return e&&(t=e.split(";").reduce((r,s)=>{const i=s.split(":"),a=i[0],l=i.slice(1);return a&&l.length>0&&(r[a]=l.join(":").trim()),r},{})),t}function Uz(n){const e=n.getAttribute("data-prefix"),t=n.getAttribute("data-icon"),r=n.innerText!==void 0?n.innerText.trim():"";let s=th(v8(n));return s.prefix||(s.prefix=Ui()),e&&t&&(s.prefix=e,s.iconName=t),s.iconName&&s.prefix||(s.prefix&&r.length>0&&(s.iconName=fz(s.prefix,n.innerText)||b8(s.prefix,p5(n.innerText))),!s.iconName&&dt.autoFetchSvg&&n.firstChild&&n.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=n.firstChild.data)),s}function Vz(n){const e=al(n.attributes).reduce((s,i)=>(s.name!=="class"&&s.name!=="style"&&(s[i.name]=i.value),s),{}),t=n.getAttribute("title"),r=n.getAttribute("data-fa-title-id");return dt.autoA11y&&(t?e["aria-labelledby"]="".concat(dt.replacementClass,"-title-").concat(r||Gc()):(e["aria-hidden"]="true",e.focusable="false")),e}function zz(){return{iconName:null,title:null,titleId:null,prefix:null,transform:bs,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function J7(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:t,prefix:r,rest:s}=Uz(n),i=Vz(n),a=y5("parseNodeAttributes",{},n);let l=e.styleParser?Bz(n):[];
1468return Ue({iconName:t,title:n.getAttribute("title"),titleId:n.getAttribute("data-fa-title-id"),prefix:r,transform:bs,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:l,attributes:i}},a)}const{styles:Gz}=Ss;function GE(n){const e=dt.autoReplaceSvg==="nest"?J7(n,{styleParser:!1}):J7(n);return~e.extra.classes.indexOf(wE)?Vi("generateLayersText",n,e):Vi("generateSvgReplacementMutation",n,e)}function Hz(){return[...TV,...c5]}function ey(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ti)return Promise.resolve();const t=nn.documentElement.classList,r=f=>t.add("".concat(U7,"-").concat(f)),s=f=>t.remove("".concat(U7,"-").concat(f)),i=dt.autoFetchSvg?Hz():yE.concat(Object.keys(Gz));i.includes("fa")||i.push("fa");const a=[".".concat(wE,":not([").concat(ja,"])")].concat(i.map(f=>".".concat(f,":not([").concat(ja,"])"))).join(", ");if(a.length===0)return Promise.resolve();let l=[];try{l=al(n.querySelectorAll(a))}catch{}if(l.length>0)r("pending"),s("complete");else return Promise.resolve();const u=E8.begin("onTree"),d=l.reduce((f,m)=>{try{const p=GE(m);p&&f.push(p)}catch(p){SE||p.name==="MissingIcon"&&console.error(p)}return f},[]);return new Promise((f,m)=>{Promise.all(d).then(p=>{VE(p,()=>{r("active"),r("complete"),s("pending"),typeof e=="function"&&e(),u(),f()})}).catch(p=>{u(),m(p)})})}function Wz(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;GE(n).then(t=>{t&&VE([t],e)})}function Kz(n){return function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(e||{}).icon?e:v5(e||{});let{mask:s}=t;return s&&(s=(s||{}).icon?s:v5(s||{})),n(r,Ue(Ue({},t),{},{mask:s}))}}const qz=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:t=bs,symbol:r=!1,mask:s=null,maskId:i=null,title:a=null,titleId:l=null,classes:u=[],attributes:d={},styles:f={}}=e;if(!n)return;const{prefix:m,iconName:p,icon:y}=n;return nh(Ue({type:"icon"},n),()=>(Ma("beforeDOMElementCreation",{iconDefinition:n,params:e}),dt.autoA11y&&(a?d["aria-labelledby"]="".concat(dt.replacementClass,"-title-").concat(l||Gc()):(d["aria-hidden"]="true",d.focusable="false")),S8({icons:{main:x5(y),mask:s?x5(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:p,transform:Ue(Ue({},bs),t),symbol:r,title:a,maskId:i,titleId:l,extra:{attributes:d,styles:f,classes:u}})))};var Yz={mixout(){return{icon:Kz(qz)}},hooks(){return{mutationObserverCallbacks(n){return n.treeCallback=ey,n.nodeCallback=Wz,n}}},provides(n){n.i2svg=function(e){const{node:t=nn,callback:r=()=>{}}=e;return ey(t,r)},n.generateSvgReplacementMutation=function(e,t){const{iconName:r,title:s,titleId:i,prefix:a,transform:l,symbol:u,mask:d,maskId:f,extra:m}=t;return new Promise((p,y)=>{Promise.all([C5(r,a),d.iconName?C5(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(v=>{let[x,b]=v;p([e,S8({icons:{main:x,mask:b},prefix:a,iconName:r,transform:l,symbol:u,maskId:f,title:s,titleId:i,extra:m,watchable:!0})])}).catch(y)})},n.generateAbstractIcon=function(e){let{children:t,attributes:r,main:s,transform:i,styles:a}=e;const l=Jf(a);l.length>0&&(r.style=l);let u;return x8(i)&&(u=Vi("generateAbstractTransformGrouping",{main:s,transform:i,containerWidth:s.width,iconWidth:s.width})),t.push(u||s.icon),{children:t,attributes:r}}}},Xz={mixout(){return{layer(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:t=[]}=e;return nh({type:"layer"},()=>{Ma("beforeDOMElementCreation",{assembler:n,params:e});let r=[];return n(s=>{Array.isArray(s)?s.map(i=>{r=r.concat(i.abstract)}):r=r.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(dt.cssPrefix,"-layers"),...t].join(" ")},children:r}]})}}}},Zz={mixout(){return{counter(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:t=null,classes:r=[],attributes:s={},styles:i={}}=e;return nh({type:"counter",content:n},()=>(Ma("beforeDOMElementCreation",{content:n,params:e}),Lz({content:n.toString(),title:t,extra:{attributes:s,styles:i,classes:["".concat(dt.cssPrefix,"-layers-counter"),...r]}})))}}}},Qz={mixout(){return{text(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:t=bs,title:r=null,classes:s=[],attributes:i={},styles:a={}}=e;return nh({type:"text",content:n},()=>(Ma("beforeDOMElementCreation",{content:n,params:e}),q7({content:n,transform:Ue(Ue({},bs),t),title:r,extra:{attributes:i,styles:a,classes:["".concat(dt.cssPrefix,"-layers-text"),...s]}})))}}},provides(n){n.generateLayersText=function(e,t){const{title:r,transform:s,extra:i}=t;let a=null,l=null;if(pE){const u=parseInt(getComputedStyle(e).fontSize,10),d=e.getBoundingClientRect();a=d.width/u,l=d.height/u}return dt.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,q7({content:e.innerHTML,width:a,height:l,transform:s,title:r,extra:i,watchable:!0})])}}};const Jz=new RegExp('"',"ug"),ty=[1105920,1112319],ny=Ue(Ue(Ue(Ue({},{FontAwesome:{normal:"fas",400:"fas"}}),SV),$V),PV),E5=Object.keys(ny).reduce((n,e)=>(n[e.toLowerCase()]=ny[e],n),{}),eG=Object.keys(E5).reduce((n,e)=>{const t=E5[e];return n[e]=t[900]||[...Object.entries(t)][0][1],n},{});function tG(n){const e=n.replace(Jz,""),t=oz(e,0),r=t>=ty[0]&&t<=ty[1],s=e.length===2?e[0]===e[1]:!1;return{value:p5(s?e[0]:e),isSecondary:r||s}}function nG(n,e){const t=n.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(e),s=isNaN(r)?"normal":r;return(E5[t]||{})[s]||eG[t]}function ry(n,e){const t="".concat(BV).concat(e.replace(":","-"));return new Promise((r,s)=>{if(n.getAttribute(t)!==null)return r();const a=al(n.children).filter(p=>p.getAttribute(d5)===e)[0],l=Bi.getComputedStyle(n,e),u=l.getPropertyValue("font-family"),d=u.match(HV),f=l.getPropertyValue("font-weight"),m=l.getPropertyValue("content");
1468if(a&&!d)return n.removeChild(a),r();if(d&&m!=="none"&&m!==""){const p=l.getPropertyValue("content");let y=nG(u,f);const{value:v,isSecondary:x}=tG(p),b=d[0].startsWith("FontAwesome");let E=b8(y,v),T=E;if(b){const w=hz(v);w.iconName&&w.prefix&&(E=w.iconName,y=w.prefix)}if(E&&!x&&(!a||a.getAttribute(p8)!==y||a.getAttribute(g8)!==T)){n.setAttribute(t,T),a&&n.removeChild(a);const w=zz(),{extra:R}=w;R.attributes[d5]=e,C5(E,y).then(I=>{const L=S8(Ue(Ue({},w),{},{icons:{main:I,mask:FE()},prefix:y,iconName:T,extra:R,watchable:!0})),N=nn.createElementNS("http://www.w3.org/2000/svg","svg");e==="::before"?n.insertBefore(N,n.firstChild):n.appendChild(N),N.outerHTML=L.map(_=>mu(_)).join(`
1469`),n.removeAttribute(t),r()}).catch(s)}else r()}else r()})}function rG(n){return Promise.all([ry(n,"::before"),ry(n,"::after")])}function sG(n){return n.parentNode!==document.head&&!~VV.indexOf(n.tagName.toUpperCase())&&!n.getAttribute(d5)&&(!n.parentNode||n.parentNode.tagName!=="svg")}function sy(n){if(ti)return new Promise((e,t)=>{const r=al(n.querySelectorAll("*")).filter(sG).map(rG),s=E8.begin("searchPseudoElements");zE(),Promise.all(r).then(()=>{s(),S5(),e()}).catch(()=>{s(),S5(),t()})})}var iG={hooks(){return{mutationObserverCallbacks(n){return n.pseudoElementsCallback=sy,n}}},provides(n){n.pseudoElements2svg=function(e){const{node:t=nn}=e;dt.searchPseudoElements&&sy(t)}}};let iy=!1;var aG={mixout(){return{dom:{unwatch(){zE(),iy=!0}}}},hooks(){return{bootstrap(){Q7(y5("mutationObserverCallbacks",{}))},noAuto(){$z()},watch(n){const{observeMutationsRoot:e}=n;iy?S5():Q7(y5("mutationObserverCallbacks",{observeMutationsRoot:e}))}}}};const ay=n=>{let e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return n.toLowerCase().split(" ").reduce((t,r)=>{const s=r.toLowerCase().split("-"),i=s[0];let a=s.slice(1).join("-");if(i&&a==="h")return t.flipX=!0,t;if(i&&a==="v")return t.flipY=!0,t;if(a=parseFloat(a),isNaN(a))return t;switch(i){case"grow":t.size=t.size+a;break;case"shrink":t.size=t.size-a;break;case"left":t.x=t.x-a;break;case"right":t.x=t.x+a;break;case"up":t.y=t.y-a;break;case"down":t.y=t.y+a;break;case"rotate":t.rotate=t.rotate+a;break}return t},e)};var oG={mixout(){return{parse:{transform:n=>ay(n)}}},hooks(){return{parseNodeAttributes(n,e){const t=e.getAttribute("data-fa-transform");return t&&(n.transform=ay(t)),n}}},provides(n){n.generateAbstractTransformGrouping=function(e){let{main:t,transform:r,containerWidth:s,iconWidth:i}=e;const a={transform:"translate(".concat(s/2," 256)")},l="translate(".concat(r.x*32,", ").concat(r.y*32,") "),u="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),d="rotate(".concat(r.rotate," 0 0)"),f={transform:"".concat(l," ").concat(u," ").concat(d)},m={transform:"translate(".concat(i/2*-1," -256)")},p={outer:a,inner:f,path:m};return{tag:"g",attributes:Ue({},p.outer),children:[{tag:"g",attributes:Ue({},p.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Ue(Ue({},t.icon.attributes),p.path)}]}]}}}};const J0={x:0,y:0,width:"100%",height:"100%"};function oy(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.attributes&&(n.attributes.fill||e)&&(n.attributes.fill="black"),n}function lG(n){return n.tag==="g"?n.children:[n]}var cG={hooks(){return{parseNodeAttributes(n,e){const t=e.getAttribute("data-fa-mask"),r=t?th(t.split(" ").map(s=>s.trim())):FE();return r.prefix||(r.prefix=Ui()),n.mask=r,n.maskId=e.getAttribute("data-fa-mask-id"),n}}},provides(n){n.generateAbstractMask=function(e){let{children:t,attributes:r,main:s,mask:i,maskId:a,transform:l}=e;const{width:u,icon:d}=s,{width:f,icon:m}=i,p=tz({transform:l,containerWidth:f,iconWidth:u}),y={tag:"rect",attributes:Ue(Ue({},J0),{},{fill:"white"})},v=d.children?{children:d.children.map(oy)}:{},x={tag:"g",attributes:Ue({},p.inner),children:[oy(Ue({tag:d.tag,attributes:Ue(Ue({},d.attributes),p.path)},v))]},b={tag:"g",attributes:Ue({},p.outer),children:[x]},E="mask-".concat(a||Gc()),T="clip-".concat(a||Gc()),w={tag:"mask",attributes:Ue(Ue({},J0),{},{id:E,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,b]},R={tag:"defs",children:[{tag:"clipPath",attributes:{id:T}
1469,children:lG(m)},w]};return t.push(R,{tag:"rect",attributes:Ue({fill:"currentColor","clip-path":"url(#".concat(T,")"),mask:"url(#".concat(E,")")},J0)}),{children:t,attributes:r}}}},uG={provides(n){let e=!1;Bi.matchMedia&&(e=Bi.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){const t=[],r={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};t.push({tag:"path",attributes:Ue(Ue({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const i=Ue(Ue({},s),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Ue(Ue({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||a.children.push({tag:"animate",attributes:Ue(Ue({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ue(Ue({},i),{},{values:"1;0;1;1;0;1;"})}),t.push(a),t.push({tag:"path",attributes:Ue(Ue({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:Ue(Ue({},i),{},{values:"1;0;0;0;0;1;"})}]}),e||t.push({tag:"path",attributes:Ue(Ue({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Ue(Ue({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:t}}}},dG={hooks(){return{parseNodeAttributes(n,e){const t=e.getAttribute("data-fa-symbol"),r=t===null?!1:t===""?!0:t;return n.symbol=r,n}}}},fG=[sz,Yz,Xz,Zz,Qz,iG,aG,oG,cG,uG,dG];Sz(fG,{mixoutsTo:Er});Er.noAuto;Er.config;Er.library;Er.dom;const w5=Er.parse;Er.findIconDefinition;Er.toHtml;const hG=Er.icon;Er.layer;Er.text;Er.counter;var mG={};function T5(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function pG(n){if(Array.isArray(n))return n}function gG(n){if(Array.isArray(n))return T5(n)}function Ni(n,e,t){return(e=wG(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function yG(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function vG(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,s,i,a,l=[],u=!0,d=!1;try{if(i=(t=t.call(n)).next,e!==0)for(;!(u=(r=i.call(t)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(f){d=!0,s=f}finally{try{if(!u&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(d)throw s}}return l}}
1469function xG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1470In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1471In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ly(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),t.push.apply(t,r)}return t}function vs(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ly(Object(t),!0).forEach(function(r){Ni(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ly(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function bG(n,e){if(n==null)return{};var t,r,s=SG(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(n,t)&&(s[t]=n[t])}return s}function SG(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)!==-1)continue;t[r]=n[r]}return t}function cy(n,e){return pG(n)||vG(n,e)||HE(n,e)||xG()}function I5(n){return gG(n)||yG(n)||HE(n)||CG()}function EG(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function wG(n){var e=EG(n,"string");return typeof e=="symbol"?e:e+""}function xf(n){"@babel/helpers - typeof";return xf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xf(n)}function HE(n,e){if(n){if(typeof n=="string")return T5(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T5(n,e):void 0}}var TG="7.0.0",R5;try{var IG=require("@fortawesome/fontawesome-svg-core/package.json");R5=IG.version}catch{R5=typeof process<"u"&&mG.FA_VERSION||"7.0.0"}function RG(n){var e=n.beat,t=n.fade,r=n.beatFade,s=n.bounce,i=n.shake,a=n.flash,l=n.spin,u=n.spinPulse,d=n.spinReverse,f=n.pulse,m=n.fixedWidth,p=n.inverse,y=n.border,v=n.listItem,x=n.flip,b=n.size,E=n.rotation,T=n.pull,w=n.swapOpacity,R=n.rotateBy,I=n.widthAuto,L=AG(R5,TG),N=Ni(Ni(Ni(Ni(Ni(Ni({"fa-beat":e,"fa-fade":t,"fa-beat-fade":r,"fa-bounce":s,"fa-shake":i,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":d,"fa-spin-pulse":u,"fa-pulse":f,"fa-fw":m,"fa-inverse":p,"fa-border":y,"fa-li":v,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},"fa-".concat(b),typeof b<"u"&&b!==null),"fa-rotate-".concat(E),typeof E<"u"&&E!==null&&E!==0),"fa-pull-".concat(T),typeof T<"u"&&T!==null),"fa-swap-opacity",w),"fa-rotate-by",L&&R),"fa-width-auto",L&&I);return Object.keys(N).map(function(_){return N[_]?_:null}).filter(function(_){return _})}function AG(n,e){for(var t=n.split("-"),r=cy(t,2),s=r[0],i=r[1],a=e.split("-"),l=cy(a,2),u=l[0],d=l[1],f=s.split("."),m=u.split("."),p=0;p<Math.max(f.length,m.length);p++){var y=f[p]||"0",v=m[p]||"0",x=parseInt(y,10),b=parseInt(v,10);if(x!==b)return x>b}for(var E=0;E<Math.max(f.length,m.length);E++){var T=f[E]||"0",w=m[E]||"0";if(T!==w&&T.length!==w.length)return T.length<w.length}return!(i&&!d)}function LG(n){return n=n-0,n===n}function WE(n){return LG(n)?n:(n=n.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""}),n.substr(0,1).toLowerCase()+n.substr(1))}var NG=["style"];function kG(n){return n.charAt(0).toUpperCase()+n.slice(1)}function PG(n){return n.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var r=t.indexOf(":"),s=WE(t.slice(0,r)),i=t.slice(r+1).trim();
1471return s.startsWith("webkit")?e[kG(s)]=i:e[s]=i,e},{})}function KE(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(u){return KE(n,u)}),s=Object.keys(e.attributes||{}).reduce(function(u,d){var f=e.attributes[d];switch(d){case"class":u.attrs.className=f,delete e.attributes.class;break;case"style":u.attrs.style=PG(f);break;default:d.indexOf("aria-")===0||d.indexOf("data-")===0?u.attrs[d.toLowerCase()]=f:u.attrs[WE(d)]=f}return u},{attrs:{}}),i=t.style,a=i===void 0?{}:i,l=bG(t,NG);return s.attrs.style=vs(vs({},s.attrs.style),a),n.apply(void 0,[e.tag,vs(vs({},s.attrs),l)].concat(I5(r)))}var qE=!1;try{qE=!0}catch{}function _G(){if(!qE&&console&&typeof console.error=="function"){var n;(n=console).error.apply(n,arguments)}}function uy(n){if(n&&xf(n)==="object"&&n.prefix&&n.iconName&&n.icon)return n;if(w5.icon)return w5.icon(n);if(n===null)return null;if(n&&xf(n)==="object"&&n.prefix&&n.iconName)return n;if(Array.isArray(n)&&n.length===2)return{prefix:n[0],iconName:n[1]};if(typeof n=="string")return{prefix:"fas",iconName:n}}function em(n,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?Ni({},n,e):{}}var dy={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,rotateBy:!1,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1,widthAuto:!1},rn=Ke.forwardRef(function(n,e){var t=vs(vs({},dy),n),r=t.icon,s=t.mask,i=t.symbol,a=t.className,l=t.title,u=t.titleId,d=t.maskId,f=uy(r),m=em("classes",[].concat(I5(RG(t)),I5((a||"").split(" ")))),p=em("transform",typeof t.transform=="string"?w5.transform(t.transform):t.transform),y=em("mask",uy(s)),v=hG(f,vs(vs(vs(vs({},m),p),y),{},{symbol:i,title:l,titleId:u,maskId:d}));if(!v)return _G("Could not find icon",f),null;var x=v.abstract,b={ref:e};return Object.keys(t).forEach(function(E){dy.hasOwnProperty(E)||(b[E]=t[E])}),OG(x[0],b)});rn.displayName="FontAwesomeIcon";rn.propTypes={beat:ct.bool,border:ct.bool,beatFade:ct.bool,bounce:ct.bool,className:ct.string,fade:ct.bool,flash:ct.bool,mask:ct.oneOfType([ct.object,ct.array,ct.string]),maskId:ct.string,fixedWidth:ct.bool,inverse:ct.bool,flip:ct.oneOf([!0,!1,"horizontal","vertical","both"]),icon:ct.oneOfType([ct.object,ct.array,ct.string]),listItem:ct.bool,pull:ct.oneOf(["right","left"]),pulse:ct.bool,rotation:ct.oneOf([0,90,180,270]),rotateBy:ct.bool,shake:ct.bool,size:ct.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:ct.bool,spinPulse:ct.bool,spinReverse:ct.bool,symbol:ct.oneOfType([ct.bool,ct.string]),title:ct.string,titleId:ct.string,transform:ct.oneOfType([ct.string,ct.object]),swapOpacity:ct.bool,widthAuto:ct.bool};var OG=KE.bind(null,Ke.createElement);/*!
1472 * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
1473 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
1474 * Copyright 2024 Fonticons, Inc.
1475 */const DG={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3zM625 177L497 305c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L591 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},jG={prefix:"fas",iconName:"heart-crack",icon:[512,512,[128148,"heart-broken"],"f7a9","M119.4 44.1c23.3-3.9 46.8-1.9 68.6 5.3l49.8 77.5-75.4 75.4c-1.5 1.5-2.4 3.6-2.3 5.8s1 4.2 2.6 5.7l112 104c2.9 2.7 7.4 2.9 10.5 .3s3.8-7 1.7-10.4l-60.4-98.1 90.7-75.6c2.6-2.1 3.5-5.7 2.4-8.8L296.8 61.8c28.5-16.7 62.4-23.2 95.7-17.6C461.5 55.6 512 115.2 512 185.1l0 5.8c0 41.5-17.2 81.2-47.6 109.5L283.7 469.1c-7.5 7-17.4 10.9-27.7 10.9s-20.2-3.9-27.7-10.9L47.6 300.4C17.2 272.1 0 232.4 0 190.9l0-5.8c0-69.9 50.5-129.5 119.4-141z"]},MG=jG,FG={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"]},A5={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]},YE={prefix:"fas",iconName:"thumbtack-slash",icon:[640,512,["thumb-tack-slash"],"e68f","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L481.4 352c9.8-.4 18.9-5.3 24.6-13.3c6-8.3 7.7-19.1 4.4-28.8l-1-3c-13.8-41.5-42.8-74.8-79.5-94.7L418.5 64 448 64c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l29.5 0-6.1 79.5L38.8 5.1zM324.9 352L177.1 235.6c-20.9 18.9-37.2 43.3-46.5 71.3l-1 3c-3.3 9.8-1.6 20.5 4.4 28.8s15.7 13.3 26 13.3l164.9 0zM288 384l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96-64 0z"]}
vendor: 3,342 bytes, line 1475
1475,$G={prefix:"fas",iconName:"clipboard",icon:[384,512,[128203],"f328","M192 0c-41.8 0-77.4 26.7-90.5 64L64 64C28.7 64 0 92.7 0 128L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64l-37.5 0C269.4 26.7 233.8 0 192 0zm0 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM112 192l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},BG={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},UG={prefix:"fas",iconName:"heart",icon:[512,512,[128153,128154,128155,128156,128420,129293,129294,129505,9829,10084,61578],"f004","M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z"]},VG={prefix:"fas",iconName:"mobile-screen-button",icon:[384,512,["mobile-alt"],"f3cd","M16 64C16 28.7 44.7 0 80 0L304 0c35.3 0 64 28.7 64 64l0 384c0 35.3-28.7 64-64 64L80 512c-35.3 0-64-28.7-64-64L16 64zM224 448a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM304 64L80 64l0 320 224 0 0-320z"]},zG={prefix:"fas",iconName:"comment-dots",icon:[512,512,[128172,62075,"commenting"],"f4ad","M256 448c141.4 0 256-93.1 256-208S397.4 32 256 32S0 125.1 0 240c0 45.1 17.7 86.8 47.7 120.9c-1.9 24.5-11.4 46.3-21.4 62.9c-5.5 9.2-11.1 16.6-15.2 21.6c-2.1 2.5-3.7 4.4-4.9 5.7c-.6 .6-1 1.1-1.3 1.4l-.3 .3c0 0 0 0 0 0c0 0 0 0 0 0s0 0 0 0s0 0 0 0c-4.6 4.6-5.9 11.4-3.4 17.4c2.5 6 8.3 9.9 14.8 9.9c28.7 0 57.6-8.9 81.6-19.3c22.9-10 42.4-21.9 54.3-30.6c31.8 11.5 67 17.9 104.1 17.9zM128 208a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm128 0a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm96 32a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},T8={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},GG={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},HG={prefix:"fas",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]},WG={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-6
14755.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},KG={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},XE={prefix:"fas",iconName:"thumbtack",icon:[384,512,[128204,128392,"thumb-tack"],"f08d","M32 32C32 14.3 46.3 0 64 0L320 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-29.5 0 11.4 148.2c36.7 19.9 65.7 53.2 79.5 94.7l1 3c3.3 9.8 1.6 20.5-4.4 28.8s-15.7 13.3-26 13.3L32 352c-10.3 0-19.9-4.9-26-13.3s-7.7-19.1-4.4-28.8l1-3c13.8-41.5 42.8-74.8 79.5-94.7L93.5 64 64 64C46.3 64 32 49.7 32 32zM160 384l64 0 0 96c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-96z"]},qG={prefix:"fas",iconName:"hammer",icon:[576,512,[128296],"f6e3","M413.5 237.5c-28.2 4.8-58.2-3.6-80-25.4l-38.1-38.1C280.4 159 272 138.8 272 117.6l0-12.1L192.3 62c-5.3-2.9-8.6-8.6-8.3-14.7s3.9-11.5 9.5-14l47.2-21C259.1 4.2 279 0 299.2 0l18.1 0c36.7 0 72 14 98.7 39.1l44.6 42c24.2 22.8 33.2 55.7 26.6 86L503 183l8-8c9.4-9.4 24.6-9.4 33.9 0l24 24c9.4 9.4 9.4 24.6 0 33.9l-88 88c-9.4 9.4-24.6 9.4-33.9 0l-24-24c-9.4-9.4-9.4-24.6 0-33.9l8-8-17.5-17.5zM27.4 377.1L260.9 182.6c3.5 4.9 7.5 9.6 11.8 14l38.1 38.1c6 6 12.4 11.2 19.2 15.7L134.9 484.6c-14.5 17.4-36 27.4-58.6 27.4C34.1 512 0 477.8 0 435.7c0-22.6 10.1-44.1 27.4-58.6z"]},YG={prefix:"fas",iconName:"user-plus",icon:[640,512,[],"f234","M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3zM504 312l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},XG={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},ZE={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]};function zt(n){const[e,t]=S.useState(!1),[r,s]=S.useState(!1),i=String(n.text??n.children??""),a=S.useMemo(()=>{const m=i.length;return m>32?"0.48em":m>26?"0.54em":m>20?"0.60em":m>14?"0.66em":"0.72em"},[i]),l=r?"#2f1554":e?"#51af91":"#3e846e",u={cursor:n.disabled?"not-allowed":"pointer",maxWidth:"100%",opacity:n.disabled?.55:1,transform:r?"translateY(1px) scale(0.98)":e?"translateY(-1px) scale(1.03)":"scale(1)",filter:e&&!n.disabled?"drop-shadow(0 4px 8px rgba(47, 21, 84, 0.35))":"drop-shadow(0 2px 4px rgba(47, 21, 84, 0.2))",transition:"transform 140ms ease, filter 140ms ease, opacity 140ms ease",userSelect:"none",...n.style},d=m=>{var p;if(n.disabled){m.preventDefault();return}(p=n.onClick)==null||p.call(n,m)},f=m=>{var p;n.disabled||(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),(p=n.onClick)==null||p.call(n,m))};return o.jsx("div",{role:"button",tabIndex:n.disabled?-1:0,"aria-disabled":n.disabled?"true":"false",className:n.className,onMouseEnter:()=>{n.disabled||t(!0)},onMouseLeave:()=>{t(!1),s(!1)},onMouseDown:()=>{n.disabled||s(!0)},onMouseUp:()=>{s(!1)},onKeyDown:f,style:{display:"inline-flex",alignItems:"center",lineHeight:0,outline:"none"},children:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"186",zoomAndPan:"magnify",viewBox:"0 0 139.5 30.000001",height:"40",preserveAspectRatio:"xMidYMid meet",version:"1.0",onClick:d,type:n.type,style:u,children:[o.jsxs("defs",{children:[o.jsx("filter",{x:"0%",y:"0%",width:"100%",height:"100%",id:"hover-click-button-filter",children:o.jsx("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0",colorInterpolationFilters:"sRGB"})}),o.jsx("clipPath",{id:"hover-click-button-outer-clip",children:o.jsx("path",{d:"M 2.515625 0.535156 L 137.007812 0.535156 L 137.007812 28.945312 L 2.515625 28.945312 Z M 2.515625 0.535156 ",clipRule:"nonzero"})}),o.jsx("clipPath",{id:"hover-click-button-middle-clip",children:o.jsx("path",{d:"M 4 0.839844 L 135.8125 0.839844 L 135.8125 28.519531 L 4 28.519531 Z M 4 0.839844 ",clipRule:"nonzero"})}),o.jsx("mask",{id:"hover-click-button-mask",children:o.jsx("g",{filter:"url
1475(#hover-click-button-filter)",children:o.jsx("rect",{x:"-13.95",width:"167.4",fill:"#000000",y:"-3",height:"36.000001",fillOpacity:"0.898"})})}),o.jsx("clipPath",{id:"hover-click-button-inner-clip",children:o.jsx("path",{d:"M 0.175781 1.09375 L 129.101562 1.09375 L 129.101562 28.042969 L 0.175781 28.042969 Z M 0.175781 1.09375 ",clipRule:"nonzero"})}),o.jsx("clipPath",{id:"hover-click-button-inner-rect",children:o.jsx("rect",{x:"0",width:"130",y:"0",height:"29"})})]}),o.jsx("g",{clipPath:"url(#hover-click-button-outer-clip)",children:o.jsx("path",{fill:"#bee6d9",d:"M 109.933594 1.109375 L 2.59375 0.539062 C 2.515625 15.832031 14.71875 28.292969 29.855469 28.375 L 137.191406 28.945312 C 137.273438 13.652344 125.066406 1.1875 109.933594 1.109375 Z M 109.933594 1.109375 ",fillOpacity:"1",fillRule:"nonzero"})}),o.jsx("g",{clipPath:"url(#hover-click-button-middle-clip)",children:o.jsx("path",{fill:"#60e1b7",d:"M 109.066406 1.398438 L 4.050781 0.84375 C 3.972656 15.742188 15.914062 27.882812 30.71875 27.960938 L 135.738281 28.519531 C 135.816406 13.621094 123.875 1.476562 109.066406 1.398438 Z M 109.066406 1.398438 ",fillOpacity:"1",fillRule:"nonzero"})}),o.jsx("g",{mask:"url(#hover-click-button-mask)",children:o.jsx("g",{transform:"matrix(1, 0, 0, 1, 5, 0.000000000000005662)",children:o.jsx("g",{clipPath:"url(#hover-click-button-inner-rect)",children:o.jsx("g",{clipPath:"url(#hover-click-button-inner-clip)",children:o.jsx("path",{fill:l,d:"M 102.949219 1.636719 L 0.253906 1.097656 C 0.175781 15.601562 11.851562 27.421875 26.332031 27.496094 L 129.027344 28.039062 C 129.105469 13.535156 117.429688 1.714844 102.949219 1.636719 Z M 102.949219 1.636719 ",fillOpacity:"1",fillRule:"nonzero",style:{transition:"fill 140ms ease"}})})})})}),o.jsx("text",{textAnchor:"middle",x:"50%",y:"58%",dominantBaseline:"middle",fontSize:a,fontWeight:"700",letterSpacing:i.length>20?"0.01em":"0.035em",fill:r?"#60e1b7":"#ffffff",width:"100%",textLength:i.length>28?"108":void 0,lengthAdjust:i.length>28?"spacingAndGlyphs":void 0,style:{pointerEvents:"none",paintOrder:"stroke",stroke:r?"rgba(0, 0, 0, 0.2)":"rgba(47, 21, 84, 0.45)",strokeWidth:"0.45px",transition:"fill 140ms ease, font-size 140ms ease"},children:i})]})})}function QE(n){const[e,t]=S.useState(n.defaultFollow);S.useEffect(()=>{t(n.defaultFollow)},[n.defaultFollow,n.channelName]);const r=()=>{!n.loggedIn||n.userData===void 0||Object.keys(n.userData).length===0?Et("You must log in to follow channels!"):i(!0)},s=()=>{i(!1)},i=l=>{Pe.post(Ft+"/user/follow/"+n.channelName+"?follow="+l).then(u=>{console.log(u),u.status===Hf.Ok&&(l?(Tt("Followed "+n.channelName),t(!0)):(Tt("Unfollowed "+n.channelName),t(!1)))}).catch(u=>{console.log(u)})},a=()=>{const l=e?"Unfollow":"Follow";return n.minimize?o.jsx(o.Fragment,{}):o.jsxs(o.Fragment,{children:["   ",l," ",n.hideName?"":n.channelName]})};return n.userData?e?o.jsxs(Je,{title:"Unfollow Channel",className:`green-click-button ${n.className||""}`,onClick:()=>s(),children:[o.jsx(rn,{icon:MG,color:"white",className:"stream-action-icon"}),a()]}):o.jsxs(Je,{title:"Follow Channel",className:`green-click-button ${n.className||""}`,onClick:()=>r(),children:[o.jsx(rn,{icon:UG,color:"white",className:"stream-action-icon"}),a()]}):o.jsx(o.Fragment,{})}/*!
1476 * Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com
1477 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
1478 * Copyright 2026 Fonticons, Inc.
1479 */var ZG={prefix:"fab",iconName:"discord",icon:[576,512,[],"f392","M492.5 69.8c-.2-.3-.4-.6-.8-.7-38.1-17.5-78.4-30-119.7-37.1-.4-.1-.8 0-1.1 .1s-.6 .4-.8 .8c-5.5 9.9-10.5 20.2-14.9 30.6-44.6-6.8-89.9-6.8-134.4 0-4.5-10.5-9.5-20.7-15.1-30.6-.2-.3-.5-.6-.8-.8s-.7-.2-1.1-.2c-41.3 7.1-81.6 19.6-119.7 37.1-.3 .1-.6 .4-.8 .7-
147976.2 113.8-97.1 224.9-86.9 334.5 0 .3 .1 .5 .2 .8s.3 .4 .5 .6c44.4 32.9 94 58 146.8 74.2 .4 .1 .8 .1 1.1 0s.7-.4 .9-.7c11.3-15.4 21.4-31.8 30-48.8 .1-.2 .2-.5 .2-.8s0-.5-.1-.8-.2-.5-.4-.6-.4-.3-.7-.4c-15.8-6.1-31.2-13.4-45.9-21.9-.3-.2-.5-.4-.7-.6s-.3-.6-.3-.9 0-.6 .2-.9 .3-.5 .6-.7c3.1-2.3 6.2-4.7 9.1-7.1 .3-.2 .6-.4 .9-.4s.7 0 1 .1c96.2 43.9 200.4 43.9 295.5 0 .3-.1 .7-.2 1-.2s.7 .2 .9 .4c2.9 2.4 6 4.9 9.1 7.2 .2 .2 .4 .4 .6 .7s.2 .6 .2 .9-.1 .6-.3 .9-.4 .5-.6 .6c-14.7 8.6-30 15.9-45.9 21.8-.2 .1-.5 .2-.7 .4s-.3 .4-.4 .7-.1 .5-.1 .8 .1 .5 .2 .8c8.8 17 18.8 33.3 30 48.8 .2 .3 .6 .6 .9 .7s.8 .1 1.1 0c52.9-16.2 102.6-41.3 147.1-74.2 .2-.2 .4-.4 .5-.6s.2-.5 .2-.8c12.3-126.8-20.5-236.9-86.9-334.5zm-302 267.7c-29 0-52.8-26.6-52.8-59.2s23.4-59.2 52.8-59.2c29.7 0 53.3 26.8 52.8 59.2 0 32.7-23.4 59.2-52.8 59.2zm195.4 0c-29 0-52.8-26.6-52.8-59.2s23.4-59.2 52.8-59.2c29.7 0 53.3 26.8 52.8 59.2 0 32.7-23.2 59.2-52.8 59.2z"]},QG={prefix:"fab",iconName:"youtube",icon:[576,512,[61802],"f167","M549.7 124.1C543.5 100.4 524.9 81.8 501.4 75.5 458.9 64 288.1 64 288.1 64S117.3 64 74.7 75.5C51.2 81.8 32.7 100.4 26.4 124.1 15 167 15 256.4 15 256.4s0 89.4 11.4 132.3c6.3 23.6 24.8 41.5 48.3 47.8 42.6 11.5 213.4 11.5 213.4 11.5s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zM232.2 337.6l0-162.4 142.7 81.2-142.7 81.2z"]},JG={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5l0-170.3-52.8 0 0-78.2 52.8 0 0-33.7c0-87.1 39.4-127.5 125-127.5 16.2 0 44.2 3.2 55.7 6.4l0 70.8c-6-.6-16.5-1-29.6-1-42 0-58.2 15.9-58.2 57.2l0 27.8 83.6 0-14.4 78.2-69.3 0 0 175.9C413.8 494.8 512 386.9 512 256z"]},eH={prefix:"fab",iconName:"tiktok",icon:[448,512,[],"e07b","M448.5 209.9c-44 .1-87-13.6-122.8-39.2l0 178.7c0 33.1-10.1 65.4-29 92.6s-45.6 48-76.6 59.6-64.8 13.5-96.9 5.3-60.9-25.9-82.7-50.8-35.3-56-39-88.9 2.9-66.1 18.6-95.2 40-52.7 69.6-67.7 62.9-20.5 95.7-16l0 89.9c-15-4.7-31.1-4.6-46 .4s-27.9 14.6-37 27.3-14 28.1-13.9 43.9 5.2 31 14.5 43.7 22.4 22.1 37.4 26.9 31.1 4.8 46-.1 28-14.4 37.2-27.1 14.2-28.1 14.2-43.8l0-349.4 88 0c-.1 7.4 .6 14.9 1.9 22.2 3.1 16.3 9.4 31.9 18.7 45.7s21.3 25.6 35.2 34.6c19.9 13.1 43.2 20.1 67 20.1l0 87.4z"]},tH={prefix:"fab",iconName:"instagram",icon:[448,512,[],"f16d","M224.3 141a115 115 0 1 0 -.6 230 115 115 0 1 0 .6-230zm-.6 40.4a74.6 74.6 0 1 1 .6 149.2 74.6 74.6 0 1 1 -.6-149.2zm93.4-45.1a26.8 26.8 0 1 1 53.6 0 26.8 26.8 0 1 1 -53.6 0zm129.7 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM399 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"]},nH={prefix:"fab",iconName:"x-twitter",icon:[448,512,[],"e61b","M357.2 48L427.8 48 273.6 224.2 455 464 313 464 201.7 318.6 74.5 464 3.8 464 168.7 275.5-5.2 48 140.4 48 240.9 180.9 357.2 48zM332.4 421.8l39.1 0-252.4-333.8-42 0 255.3 333.8z"]},rH={prefix:"fab",iconName:"twitch",icon:[448,512,[],"f1e8","M359.4 103.5l-38.6 0 0 109.7 38.6 0 0-109.7zM253.2 103l-38.6 0 0 109.8 38.6 0 0-109.8zM89 0l-96.5 91.4 0 329.2 115.8 0 0 91.4 96.5-91.4 77.3 0 173.8-164.6 0-256-366.9 0zM417.3 237.8l-77.2 73.1-77.2 0-67.6 64 0-64-86.9 0 0-274.3 308.9 0 0 201.2z"]};function Fa(n){return o.jsxs(o.Fragment,{children:[o.jsx("input",{id:n.id,name:"file",type:"file",className:"green-click-button",accept:ej,onChange:e=>{n.setValue({file:e.currentTarget.files[0]})},style:{color:"var(--default-text-color)",display:"none"}}),o.jsx(zt,{text:"Upload File",onClick:()=>{document.getElementById(n.id).click()}})]})}const sH=({channelName:n,initialPanels:e,onUpdate:t,onClose:r})=>{const[s,i]=S.useState(e||[]),[a,l]=S.useState({}),u=()=>{const y="CREATE-"+Date.now(),v={panelId:y,id:y,panelTitle:"New Panel",panelContent:"",panelTitleImage:null},x=[...s,v];i(x),l({...a,[x.length-1]:!0})},d=(y,v,x)=>{const b=[...s];b[y]={...b[y],[v]:x},i(b),l({...a,[y]:!0})},f=y=>{const v=s[y],x=()=>{const b=s.filter((T,w)=>w!==y);i(b);const E={};b.forEach((T,w)=>{w>=y?E[w]=a[w+1]:E[w]=a[w]}),l(E),t(b)};if(v.panelId.toString().includes("CREATE"))x();else{if(!window.confirm("Are you sure you want to delete this panel? This cannot be undone."))return;Pe.delete(`${kt}/channel/${n}/panel/${v.panelId}`).then(()=>{Tt("Panel Deleted"),x()}).catch(()=>je("Failed to delete panel"))}},m=y=>{const v=s[y],x={id:v.panelId,title:v.panelTitle,titleImg:v.panelTitleImage,text:v.panelContent},b=v.panelId.toString().includes("CREATE");(b?Pe.post(`${kt}/channel/${n}/panel`,x):Pe.put(`${kt}/channel/${n}/panel/${v.panelId}`,x)).then(T=>{Tt(b?"Panel Created Successfully":"Panel Updated Successfully");const w=[...s];b&&T.data&&T.data.panelId&&(w[y].panelId=T.data.panelId,w[y].id=T.data.panelId),i(w),l({...a,[y]:!1}),t(w)}).catch(T=>{console.error("Save error:",T),je("Failed to save panel")})},p=(y,v)=>{if(y+v<0||y+v>=s.length)return;const x=[...s],b=x[y];x[y]=x[y+v],x[y+v]=b;const E={...a},T=E[y];E[y]=E[y+v],E[y+v]=T,i(x),l(E),t(x)};return o.jsxs("section",{className:"channel-edit-panel-section",children:[o.jsxs("div",{className:"channel-section-header",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"channel-section-title",children:o.jsx("i",{children:"Panel Edit Mode Enabled"})}),o.jsx("p",{className:"channel-section-muted-text",children:"Add, edit, and update the custom panels shown on your channel page."})]}),o.jsxs("div",{className:"channel-edit-actions",children:[o.jsx(zt,{className:"panel-action-btn",onClick:u,text:"Add Panel"}),o.jsx(zt,{className:"panel-action-btn",onClick:r,text:"Close"})]})]}),o.jsx("div",{className:"channel-edit-panel-list",children:s.map((y,v)=>o.jsxs("div",{className:"panel-editor-card",children:[o.jsxs("div",{className:"panel-editor-header",children:[o.jsxs("span",{className:"panel-number",children:["Panel #",v+1]}),a[v]&&o.jsx("span",{className:"unsaved-indicator",children:"● Unsaved"}
1479),o.jsxs("div",{className:"panel-order-controls",children:[o.jsx("button",{type:"button",onClick:()=>p(v,-1),disabled:v===0,title:"Move Up",children:"↑"}),o.jsx("button",{type:"button",onClick:()=>p(v,1),disabled:v===s.length-1,title:"Move Down",children:"↓"})]}),o.jsx("button",{type:"button",className:"delete-panel-btn",onClick:()=>f(v),title:"Delete Panel",children:"×"})]}),o.jsxs("div",{className:"panel-editor-body",children:[o.jsxs(et.Group,{className:"mb-3 panel-editor-field-group",children:[o.jsx(et.Label,{className:"channel-edit-label",children:"Title"}),o.jsx(et.Control,{type:"text",value:y.panelTitle||"",onChange:x=>d(v,"panelTitle",x.target.value),className:"panel-title"})]}),o.jsxs("div",{className:"title-image-section",children:[o.jsx(et.Label,{className:"channel-edit-label",children:"OR Upload title image"}),y.panelTitleImage&&o.jsx("h3",{className:"upload-notice",children:"Image will be uploaded on submit"}),o.jsx(Fa,{id:`panelTitleImage-${v}`,setValue:x=>d(v,"panelTitleImage",x)})]}),o.jsxs(et.Group,{className:"mb-3 panel-editor-field-group",children:[o.jsx(et.Label,{className:"channel-edit-label",children:"Panel Content"}),o.jsx(et.Control,{as:"textarea",rows:8,value:y.panelContent||"",onChange:x=>d(v,"panelContent",x.target.value),className:"panel-content-textarea"})]}),o.jsx("div",{className:"panel-editor-footer",children:o.jsx(zt,{type:"primary",onClick:()=>m(v),text:y.panelId.toString().includes("CREATE")?"Create Panel":"Update Panel"})})]})]},y.panelId||v))})]})},iH=n=>{switch(n){case"Twitch":return rH;case"Youtube":return QG;case"Discord":return ZG;case"Twitter":return nH;case"Instagram":return tH;case"TikTok":return eH;case"Facebook":return JG;default:return null}};function aH(n){let{channelName:e}=Ba();const[t,r]=S.useState(null),[s,i]=S.useState(!0),[a,l]=S.useState(!1),u=ns(),[d,f]=S.useState(!1);document.title=e+"'s Channel",S.useEffect(()=>{m()},[e]);const m=()=>{i(!0),l(!1),r(null);const E=`${Ft}/verify?channelName=${e}`;Pe.get(E).then(T=>{T.data.allowed?(f(!0),ob(e).then(w=>{r({isLive:w.isLive,about:w.about,images:w.images,name:e,discord:w.discord,restricted:w.restricted,strict18:w.strict18,channelPfp:Ht("svg",w.images.channelPfp,e+"'s Profile Picture",e+"'s Profile Picture",{}),channelBanner:Ht("svg",w.images.channelBanner,e+"'s Banner Picture",e+"'s Banner Picture",{width:"auto",maxWidth:"100%",height:"100%",maxHeight:"inherit",borderRadius:"inherit"}),panels:w.channelPanels,links:w.links,followCount:w.followCount}),i(!1)}).catch(w=>{var R;if(console.error("Error fetching channel page:",w),w.response&&(w.response.status===404&&je("Channel not found"),w.response.status>=500&&(je("Server Error, reloading"),window.location.reload()),n.loggedIn&&(w.response.status===401||w.response.status===403))){Et("Please Log In Again"),(R=n.logOut)==null||R.call(n);return}i(!1)})):(f(!1),i(!1))}).catch(T=>{var w,R,I;console.error("Verification error:",T),n.loggedIn&&(((w=T.response)==null?void 0:w.status)===401||((R=T.response)==null?void 0:R.status)===403)?(Et("Please Log In Again"),(I=n.logOut)==null||I.call(n)):(f(!1),i(!1))})},p=()=>{var E;return n.loggedIn&&n.userData&&((E=n.userData.streamingInfo)==null?void 0:E.ownedChannelName)===e&&!a?o.jsx("div",{className:"channel-owner-action",children:o.jsx(zt,{type:"primary",onClick:()=>{l(!0)},text:"Edit Panels"})}):o.jsx(o.Fragment,{})},y=()=>{var E;return n.loggedIn&&n.userData&&((E=n.userData.streamingInfo)==null?void 0:E.ownedChannelName)===e&&!a?o.jsx("div",{className:"channel-vods-card",children:o.jsxs("h4",{children:["Want VODS? Click ",o.jsx("a",{href:"/"+e+"/vods",children:"HERE"})]})}):o.jsx(o.Fragment,{})},v=()=>{if(n.loggedIn&&n.userData&&n.userData.channelLists&&Object.keys(n.userData.channelLists).length!==0){const E=n.userData.channelLists.followedChannels;if(Array.isArray(E)){for(let T=0;T<E.length;T++)if(E[T].channelName===e)return!0}}},x=()=>a?o.jsx(sH,{channelName:e,initialPanels:t.panels,onUpdate:E=>{r({...t,panels:E})},onClose:()=>l(!1)}):o.jsx(o.Fragment,{}),b=()=>a?o.jsx(o.Fragment,{}):o.jsx(fV,{channelPanels:t.panels});return s||n.loggedIn&&!n.userData?_n:d?t===null?o.jsx("div",{className:"channel-page",children:o.jsx("section",{className:"channel-message-card",children:o.jsx("h2",{children:"Channel not found"})})}):(console.log("channel data"),console.log(t),o.jsxs("div",{className:"channel-page",itemScope:!0,itemType:"https://schema.org/ProfilePage",children:[o.jsx("meta",{itemProp:"url",content:`${window.location.origin}/${e}`}),o.jsxs("div",{className:"channel-profile-shell",itemProp:"mainEntity",itemScope:!0,itemType:"https://schema.org/Person",children:[o.jsxs("section",{className:"channel-title-line",children:[o.jsx(uV,{userData:n.userData,channelBanner:t.channelBanner,channelName:e,loggedIn:n.loggedIn,mobileView:n.mobileView}),o.jsx("div",{className:"channel-heading-row",children:o.jsxs("div",{children:[o.jsxs("h2",{className:"channel-name",itemProp:"name",children:[e,t.isLive&&(t.restricted||t.strict18)&&o.jsxs("span",{className:"channel-page-18plus-badge",title:"18+ Stream Only",children:[o.jsx("span",{className:"channel-18plus-icon",children:"18+"})," 18+ Stream Only"]})]}),o.jsx("meta",{itemProp:"url",content:`${window.location.origin}/${e}`}),t.channelPfpUrl&&o.jsx("meta",{itemProp:"image",content:t.channelPfpUrl}),t.channelBannerUrl&&o.jsx("meta",{itemProp:"thumbnailUrl",content:t.channelBannerUrl})]})}),o.jsxs("div",{className:"follow-line",children:[o.jsx("div",{className:"channel-pfp-holder",children:t.channelPfp}),o.jsxs("div",{className:"about-holder",children:[o.jsx("h4",{className:"channel-section-title",children:"About"}),o.jsx("pre",{itemProp:"description",className:"channel-about-text",dangerouslySetInnerHTML:{__html:kc(t.about)}})]}),t.links&&t.links.length>0&&o.jsxs("div",{className:"links-holder",children:[o.jsx("h4",{className:"channel-section-title",children:"Links"}),o.jsx("div",{className:"channel-links-list",children:t.links.map((E,T)=>{const w=iH(E.linkType),R=E.linkType==="Other"||E.linkType.startsWith("Other");return o.jsxs("a",{href:E.linkUrl,target:"_blank",rel:"noreferrer",className:"channel-link-item",children:[w&&o.jsx(rn,{icon:w,className:"channel-link-icon"}),o.jsx("span",{className:w?"channel-link-text-responsive":"",children:R?E.linkUrl:E.linkType})]},T)})})]})]})]}),o.jsxs("section",{className:"channel-data-body",children:[o.jsxs("div",{className:"follow-display",children:[o.jsxs("div",{itemProp:"interactionStatistic",itemScope:!0,itemType:"https://schema.org/InteractionCounter",children:[o.jsx("meta",{itemProp:"interactionType",content:"https://schema.org/FollowAction"}),o.jsx("meta",{itemProp:"userInteractionCount",content:String(t.followCount??0)}),o.jsxs("h4",{children:[t.followCount," Followers"]})]}),o.jsx(QE,{userData:n.userData,channelName:e,loggedIn:n.loggedIn,defaultFollow:v()})]}),t.isLive&&o.jsxs("div",{itemProp:"subjectOf",itemScope:!0,itemType:"https://schema.org/BroadcastEvent",children:[o.jsx("meta",{itemProp:"name",content:`${e} Live Stream`}),o.jsx("meta",{itemProp:"isLiveBroadcast",content:"true"}),o.jsx("meta",{itemProp:"eventAttendanceMode",content:"https://schema.org/OnlineEventAttendanceMode"}),o.jsx("meta",{itemProp:"eventStatus",content:"https://schema.org/EventScheduled"}),o.jsx("meta",{itemProp:"url",content:`${window.location.origin}/${e}`})]}),o.jsx("div",{className:"channel-live-card",children:o.jsx(cV,{channelName:e,isLive:t.isLive,over18:!!(t.restricted||t.strict18)})}),p(),x(),y(),o.jsx("section",{className:"channel-panels-section",children:b()})]})]})]},u.key)):o.jsx("div",{className:"channel-page",children:o.jsxs("section",{className:"channel-message-card channel-message-card-warning",children:[o.jsx("h2",{children:"You are not allowed to view this channel"}),o.jsx("h4",{children:"This is an age restricted channel. Due to either age restrictions or other reasons you are not allowed to view this channel. This is NOT an error. Attempts to bypass this warning will result in an account ban If you are not logged in, please log in to continue."})]})})}var oH=function(e){return lH(e)&&!cH(e)};function lH(n){return!!n&&typeof n=="object"}function cH(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||fH(n)}var uH=typeof Symbol=="function"&&Symbol.for,dH=uH?Symbol.for("react.element"):60103;function fH(n){return n.$$typeof===dH}function hH(n){return Array.isArray(n)?[]:{}}function Cf(n,e){return e.clone!==!1&&e.isMergeableObject(n)?Wc(hH(n),n,e):n}function mH(n,e,t){return n.concat(e).map(function(r){return Cf(r,t)})}function pH(n,e,t){var r={};
vendor: 7,236 bytes, line 1479
1479return t.isMergeableObject(n)&&Object.keys(n).forEach(function(s){r[s]=Cf(n[s],t)}),Object.keys(e).forEach(function(s){!t.isMergeableObject(e[s])||!n[s]?r[s]=Cf(e[s],t):r[s]=Wc(n[s],e[s],t)}),r}function Wc(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||mH,t.isMergeableObject=t.isMergeableObject||oH;var r=Array.isArray(e),s=Array.isArray(n),i=r===s;return i?r?t.arrayMerge(n,e,t):pH(n,e,t):Cf(e,t)}Wc.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,s){return Wc(r,s,t)},{})};var L5=Wc,JE=typeof global=="object"&&global&&global.Object===Object&&global,gH=typeof self=="object"&&self&&self.Object===Object&&self,As=JE||gH||Function("return this")(),zi=As.Symbol,ew=Object.prototype,yH=ew.hasOwnProperty,vH=ew.toString,tc=zi?zi.toStringTag:void 0;function xH(n){var e=yH.call(n,tc),t=n[tc];try{n[tc]=void 0;var r=!0}catch{}var s=vH.call(n);return r&&(e?n[tc]=t:delete n[tc]),s}var CH=Object.prototype,bH=CH.toString;function SH(n){return bH.call(n)}var EH="[object Null]",wH="[object Undefined]",fy=zi?zi.toStringTag:void 0;function Va(n){return n==null?n===void 0?wH:EH:fy&&fy in Object(n)?xH(n):SH(n)}function tw(n,e){return function(t){return n(e(t))}}var I8=tw(Object.getPrototypeOf,Object);function za(n){return n!=null&&typeof n=="object"}var TH="[object Object]",IH=Function.prototype,RH=Object.prototype,nw=IH.toString,AH=RH.hasOwnProperty,LH=nw.call(Object);function hy(n){if(!za(n)||Va(n)!=TH)return!1;var e=I8(n);if(e===null)return!0;var t=AH.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&nw.call(t)==LH}function NH(){this.__data__=[],this.size=0}function rw(n,e){return n===e||n!==n&&e!==e}function rh(n,e){for(var t=n.length;t--;)if(rw(n[t][0],e))return t;return-1}var kH=Array.prototype,PH=kH.splice;function _H(n){var e=this.__data__,t=rh(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():PH.call(e,t,1),--this.size,!0}function OH(n){var e=this.__data__,t=rh(e,n);return t<0?void 0:e[t][1]}function DH(n){return rh(this.__data__,n)>-1}function jH(n,e){var t=this.__data__,r=rh(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function ni(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}ni.prototype.clear=NH;ni.prototype.delete=_H;ni.prototype.get=OH;ni.prototype.has=DH;ni.prototype.set=jH;function MH(){this.__data__=new ni,this.size=0}function FH(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function $H(n){return this.__data__.get(n)}function BH(n){return this.__data__.has(n)}function pu(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var UH="[object AsyncFunction]",VH="[object Function]",zH="[object GeneratorFunction]",GH="[object Proxy]";function sw(n){if(!pu(n))return!1;var e=Va(n);return e==VH||e==zH||e==UH||e==GH}var tm=As["__core-js_shared__"],my=(function(){var n=/[^.]+$/.exec(tm&&tm.keys&&tm.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function HH(n){return!!my&&my in n}var WH=Function.prototype,KH=WH.toString;function Ga(n){if(n!=null){try{return KH.call(n)}catch{}try{return n+""}catch{}}return""}var qH=/[\\^$.*+?()[\]{}|]/g,YH=/^\[object .+?Constructor\]$/,XH=Function.prototype,ZH=Object.prototype,QH=XH.toString,JH=ZH.hasOwnProperty,eW=RegExp("^"+QH.call(JH).replace(qH,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tW(n){if(!pu(n)||HH(n))return!1;var e=sw(n)?eW:YH;return e.test(Ga(n))}function nW(n,e){return n==null?void 0:n[e]}function Ha(n,e){var t=nW(n,e);return tW(t)?t:void 0}var Kc=Ha(As,"Map"),qc=Ha(Object,"create");function rW(){this.__data__=qc?qc(null):{},this.size=0}function sW(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var iW="__lodash_hash_undefined__",aW=Object.prototype,oW=aW.hasOwnProperty;function lW(n){var e=this.__data__;if(qc){var t=e[n];return t===iW?void 0:t}return oW.call(e,n)?e[n]:void 0}var cW=Object.prototype,uW=cW.hasOwnProperty;function dW(n){var e=this.__data__;return qc?e[n]!==void 0:uW.call(e,n)}var fW="__lodash_hash_undefined__";function hW(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=qc&&e===void 0?fW:e,this}function $a(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}$a.prototype.clear=rW;$a.prototype.delete=sW;$a.prototype.get=lW;$a.prototype.has=dW;$a.prototype.set=hW;function mW(){this.size=0,this.__data__={hash:new $a,map:new(Kc||ni),string:new $a}}function pW(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function sh(n,e){var t=n.__data__;return pW(e)?t[typeof e=="string"?"string":"hash"]:t.map}function gW(n){var e=sh(this,n).delete(n);return this.size-=e?1:0,e}function yW(n){return sh(this,n).get(n)}function vW(n){return sh(this,n).has(n)}function xW(n,e){var t=sh(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function Wi(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Wi.prototype.clear=mW;Wi.prototype.delete=gW;Wi.prototype.get=yW;Wi.prototype.has=vW;Wi.prototype.set=xW;var CW=200;function bW(n,e){var t=this.__data__;if(t instanceof ni){var r=t.__data__;if(!Kc||r.length<CW-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Wi(r)}return t.set(n,e),this.size=t.size,this}function ol(n){var e=this.__data__=new ni(n);this.size=e.size}ol.prototype.clear=MH;ol.prototype.delete=FH;ol.prototype.get=$H;ol.prototype.has=BH;ol.prototype.set=bW;function SW(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var py=(function(){try{var n=Ha(Object,"defineProperty");return n({},"",{}),n}catch{}})();function iw(n,e,t){e=="__proto__"&&py?py(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}var EW=Object.prototype,wW=EW.hasOwnProperty;function aw(n,e,t){var r=n[e];(!(wW.call(n,e)&&rw(r,t))||t===void 0&&!(e in n))&&iw(n,e,t)}function ih(n,e,t,r){var s=!t;t||(t={});for(var i=-1,a=e.length;++i<a;){var l=e[i],u=void 0;u===void 0&&(u=n[l]),s?iw(t,l,u):aw(t,l,u)}return t}function TW(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var IW="[object Arguments]";function gy(n){return za(n)&&Va(n)==IW}var ow=Object.prototype,RW=ow.hasOwnProperty,AW=ow.propertyIsEnumerable,LW=gy((function(){return arguments})())?gy:function(n){return za(n)&&RW.call(n,"callee")&&!AW.call(n,"callee")},gu=Array.isArray;function NW(){return!1}var lw=typeof gr=="object"&&gr&&!gr.nodeType&&gr,yy=lw&&typeof yr=="object"&&yr&&!yr.nodeType&&yr,kW=yy&&yy.exports===lw,vy=kW?As.Buffer:void 0,PW=vy?vy.isBuffer:void 0,cw=PW||NW,_W=9007199254740991,OW=/^(?:0|[1-9]\d*)$/;function DW(n,e){var t=typeof n;return e=e??_W,!!e&&(t=="number"||t!="symbol"&&OW.test(n))&&n>-1&&n%1==0&&n<e}var jW=9007199254740991;function uw(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=jW}var MW="[object Arguments]",FW="[object Array]",$W="[object Boolean]",BW="[object Date]",UW="[object Error]",VW="[object Function]",zW="[object Map]",GW="[object Number]",HW="[object Object]",WW="[object RegExp]",KW="[object Set]",qW="[object String]",YW="[object WeakMap]",XW="[object ArrayBuffer]",ZW="[object DataView]",QW="[object Float32Array]",JW="[object Float64Array
1479]",eK="[object Int8Array]",tK="[object Int16Array]",nK="[object Int32Array]",rK="[object Uint8Array]",sK="[object Uint8ClampedArray]",iK="[object Uint16Array]",aK="[object Uint32Array]",Jt={};Jt[QW]=Jt[JW]=Jt[eK]=Jt[tK]=Jt[nK]=Jt[rK]=Jt[sK]=Jt[iK]=Jt[aK]=!0;Jt[MW]=Jt[FW]=Jt[XW]=Jt[$W]=Jt[ZW]=Jt[BW]=Jt[UW]=Jt[VW]=Jt[zW]=Jt[GW]=Jt[HW]=Jt[WW]=Jt[KW]=Jt[qW]=Jt[YW]=!1;function oK(n){return za(n)&&uw(n.length)&&!!Jt[Va(n)]}function R8(n){return function(e){return n(e)}}var dw=typeof gr=="object"&&gr&&!gr.nodeType&&gr,Cc=dw&&typeof yr=="object"&&yr&&!yr.nodeType&&yr,lK=Cc&&Cc.exports===dw,nm=lK&&JE.process,Yo=(function(){try{var n=Cc&&Cc.require&&Cc.require("util").types;return n||nm&&nm.binding&&nm.binding("util")}catch{}})(),xy=Yo&&Yo.isTypedArray,cK=xy?R8(xy):oK,uK=Object.prototype,dK=uK.hasOwnProperty;function fw(n,e){var t=gu(n),r=!t&&LW(n),s=!t&&!r&&cw(n),i=!t&&!r&&!s&&cK(n),a=t||r||s||i,l=a?TW(n.length,String):[],u=l.length;for(var d in n)(e||dK.call(n,d))&&!(a&&(d=="length"||s&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||DW(d,u)))&&l.push(d);return l}var fK=Object.prototype;function A8(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||fK;return n===t}var hK=tw(Object.keys,Object),mK=Object.prototype,pK=mK.hasOwnProperty;function gK(n){if(!A8(n))return hK(n);var e=[];for(var t in Object(n))pK.call(n,t)&&t!="constructor"&&e.push(t);return e}function hw(n){return n!=null&&uw(n.length)&&!sw(n)}function L8(n){return hw(n)?fw(n):gK(n)}function yK(n,e){return n&&ih(e,L8(e),n)}function vK(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var xK=Object.prototype,CK=xK.hasOwnProperty;function bK(n){if(!pu(n))return vK(n);var e=A8(n),t=[];for(var r in n)r=="constructor"&&(e||!CK.call(n,r))||t.push(r);return t}function N8(n){return hw(n)?fw(n,!0):bK(n)}function SK(n,e){return n&&ih(e,N8(e),n)}var mw=typeof gr=="object"&&gr&&!gr.nodeType&&gr,Cy=mw&&typeof yr=="object"&&yr&&!yr.nodeType&&yr,EK=Cy&&Cy.exports===mw,by=EK?As.Buffer:void 0,Sy=by?by.allocUnsafe:void 0;function wK(n,e){if(e)return n.slice();var t=n.length,r=Sy?Sy(t):new n.constructor(t);return n.copy(r),r}function pw(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}function TK(n,e){for(var t=-1,r=n==null?0:n.length,s=0,i=[];++t<r;){var a=n[t];e(a,t,n)&&(i[s++]=a)}return i}function gw(){return[]}var IK=Object.prototype,RK=IK.propertyIsEnumerable,Ey=Object.getOwnPropertySymbols,k8=Ey?function(n){return n==null?[]:(n=Object(n),TK(Ey(n),function(e){return RK.call(n,e)}))}:gw;function AK(n,e){return ih(n,k8(n),e)}function yw(n,e){for(var t=-1,r=e.length,s=n.length;++t<r;)n[s+t]=e[t];return n}var LK=Object.getOwnPropertySymbols,vw=LK?function(n){for(var e=[];n;)yw(e,k8(n)),n=I8(n);return e}:gw;function NK(n,e){return ih(n,vw(n),e)}function xw(n,e,t){var r=e(n);return gu(n)?r:yw(r,t(n))}function kK(n){return xw(n,L8,k8)}function PK(n){return xw(n,N8,vw)}var N5=Ha(As,"DataView"),k5=Ha(As,"Promise"),P5=Ha(As,"Set"),_5=Ha(As,"WeakMap"),wy="[object Map]",_K="[object Object]",Ty="[object Promise]",Iy="[object Set]",Ry="[object WeakMap]",Ay="[object DataView]",OK=Ga(N5),DK=Ga(Kc),jK=Ga(k5),MK=Ga(P5),FK=Ga(_5),zs=Va;(N5&&zs(new N5(new ArrayBuffer(1)))!=Ay||Kc&&zs(new Kc)!=wy||k5&&zs(k5.resolve())!=Ty||P5&&zs(new P5)!=Iy||_5&&zs(new _5)!=Ry)&&(zs=function(n){var e=Va(n),t=e==_K?n.constructor:void 0,r=t?Ga(t):"";if(r)switch(r){case OK:return Ay;case DK:return wy;case jK:return Ty;case MK:return Iy;case FK:return Ry}return e});var $K=Object.prototype,BK=$K.hasOwnProperty;function UK(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&BK.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var Ly=As.Uint8Array;function P8(n){var e=new n.constructor(n.byteLength);return new Ly(e).set(new Ly(n)),e}function VK(n,e){var t=e?P8(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}var zK=/\w*$/;function GK(n){var e=new n.constructor(n.source,zK.exec(n));return e.lastIndex=n.lastIndex,e}var Ny=zi?zi.prototype:void 0,ky=Ny?Ny.valueOf:void 0;function HK(n){return ky?Object(ky.call(n)):{}}function WK(n,e){var t=e?P8(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var KK="[object Boolean]",qK="[object Date]",YK="[object Map]",XK="[object Number]",ZK="[object RegExp]",QK="[object Set]",JK="[object String]",eq="[object Symbol]",tq="[object ArrayBuffer]",nq="[object DataView]",rq="[object Float32Array]",sq="[object Float64Array
1479]",iq="[object Int8Array]",aq="[object Int16Array]",oq="[object Int32Array]",lq="[object Uint8Array]",cq="[object Uint8ClampedArray]",uq="[object Uint16Array]",dq="[object Uint32Array]";function fq(n,e,t){var r=n.constructor;switch(e){case tq:return P8(n);case KK:case qK:return new r(+n);case nq:return VK(n,t);case rq:case sq:case iq:case aq:case oq:case lq:case cq:case uq:case dq:return WK(n,t);case YK:return new r;case XK:case JK:return new r(n);case ZK:return GK(n);case QK:return new r;case eq:return HK(n)}}var Py=Object.create,hq=(function(){function n(){}return function(e){if(!pu(e))return{};if(Py)return Py(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}})();function mq(n){return typeof n.constructor=="function"&&!A8(n)?hq(I8(n)):{}}var pq="[object Map]";function gq(n){return za(n)&&zs(n)==pq}var _y=Yo&&Yo.isMap,yq=_y?R8(_y):gq,vq="[object Set]";function xq(n){return za(n)&&zs(n)==vq}var Oy=Yo&&Yo.isSet,Cq=Oy?R8(Oy):xq,bq=1,Sq=2,Eq=4,Cw="[object Arguments]",wq="[object Array]",Tq="[object Boolean]",Iq="[object Date]",Rq="[object Error]",bw="[object Function]",Aq="[object GeneratorFunction]",Lq="[object Map]",Nq="[object Number]",Sw="[object Object]",kq="[object RegExp]",Pq="[object Set]",_q="[object String]",Oq="[object Symbol]",Dq="[object WeakMap]",jq="[object ArrayBuffer]",Mq="[object DataView]",Fq="[object Float32Array]",$q="[object Float64Array]",Bq="[object Int8Array]",Uq="[object Int16Array]",Vq="[object Int32Array]",zq="[object Uint8Array]",Gq="[object Uint8ClampedArray]",Hq="[object Uint16Array]",Wq="[object Uint32Array]",Xt={};Xt[Cw]=Xt[wq]=Xt[jq]=Xt[Mq]=Xt[Tq]=Xt[Iq]=Xt[Fq]=Xt[$q]=Xt[Bq]=Xt[Uq]=Xt[Vq]=Xt[Lq]=Xt[Nq]=Xt[Sw]=Xt[kq]=Xt[Pq]=Xt[_q]=Xt[Oq]=Xt[zq]=Xt[Gq]=Xt[Hq]=Xt[Wq]=!0;Xt[Rq]=Xt[bw]=Xt[Dq]=!1;function bc(n,e,t,r,s,i){var a,l=e&bq,u=e&Sq,d=e&Eq;if(a!==void 0)return a;if(!pu(n))return n;var f=gu(n);if(f){if(a=UK(n),!l)return pw(n,a)}else{var m=zs(n),p=m==bw||m==Aq;if(cw(n))return wK(n,l);if(m==Sw||m==Cw||p&&!s){if(a=u||p?{}:mq(n),!l)return u?NK(n,SK(a,n)):AK(n,yK(a,n))}else{if(!Xt[m])return s?n:{};a=fq(n,m,l)}}i||(i=new ol);var y=i.get(n);if(y)return y;i.set(n,a),Cq(n)?n.forEach(function(b){a.add(bc(b,e,t,b,n,i))}):yq(n)&&n.forEach(function(b,E){a.set(E,bc(b,e,t,E,n,i))});var v=d?u?PK:kK:u?N8:L8,x=f?void 0:v(n);return SW(x||n,function(b,E){x&&(E=b,b=n[E]),aw(a,E,bc(b,e,t,E,n,i))}),a}var Kq=1,qq=4;function C1(n){return bc(n,Kq|qq)}var rm,Dy;function Yq(){if(Dy)return rm;Dy=1;var n=Array.isArray,e=Object.keys,t=Object.prototype.hasOwnProperty,r=typeof Element<"u";function s(i,a){if(i===a)return!0;if(i&&a&&typeof i=="object"&&typeof a=="object"){var l=n(i),u=n(a),d,f,m;if(l&&u){if(f=i.length,f!=a.length)return!1;for(d=f;d--!==0;)if(!s(i[d],a[d]))return!1;return!0}if(l!=u)return!1;var p=i instanceof Date,y=a instanceof Date;if(p!=y)return!1;if(p&&y)return i.getTime()==a.getTime();var v=i instanceof RegExp,x=a instanceof RegExp;if(v!=x)return!1;if(v&&x)return i.toString()==a.toString();var b=e(i);if(f=b.length,f!==e(a).length)return!1;for(d=f;d--!==0;)if(!t.call(a,b[d]))return!1;if(r&&i instanceof Element&&a instanceof Element)return i===a;for(d=f;d--!==0;)if(m=b[d],!(m==="_owner"&&i.$$typeof)&&!s(i[m],a[m]))return!1;return!0}return i!==i&&a!==a}return rm=function(a,l){try{return s(a,l)}catch(u){if(u.message&&u.message.match(/stack|recursion/i)||u.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",u.name,u.message),!1;throw u}},rm}var Xq=Yq();const pa=Gi(Xq);var Zq=4;function jy(n){return bc(n,Zq)}function Ew(n,e){for(var t=-1,r=n==null?0:n.length,s=Array(r);++t<r;)s[t]=e(n[t],t,n);return s}var Qq="[object Symbol]";function _8(n){return typeof n=="symbol"||za(n)&&Va(n)==Qq}var Jq="Expected a function";function O8(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(Jq);var t=function(){var r=arguments,s=e?e.apply(this,r):r[0],i=t.cache;if(i.has(s))return i.get(s);var a=n.apply(this,r);return t.cache=i.set(s,a)||i,a};return t.cache=new(O8.Cache||Wi),t}O8.Cache=Wi;var eY=500;function tY(n){var e=O8(n,function(r){return t.size===eY&&t.clear(),r}),t=e.cache;return e}var nY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rY=/\\(\\)?/g,sY=tY(function(n){var e=[];
1479return n.charCodeAt(0)===46&&e.push(""),n.replace(nY,function(t,r,s,i){e.push(s?i.replace(rY,"$1"):r||t)}),e});function iY(n){if(typeof n=="string"||_8(n))return n;var e=n+"";return e=="0"&&1/n==-1/0?"-0":e}var My=zi?zi.prototype:void 0,Fy=My?My.toString:void 0;function ww(n){if(typeof n=="string")return n;if(gu(n))return Ew(n,ww)+"";if(_8(n))return Fy?Fy.call(n):"";var e=n+"";return e=="0"&&1/n==-1/0?"-0":e}function aY(n){return n==null?"":ww(n)}function Tw(n){return gu(n)?Ew(n,iY):_8(n)?[n]:pw(sY(aY(n)))}var sm={exports:{}},$t={};/** @license React v16.13.1
1480 * react-is.production.min.js
1481 *
1482 * Copyright (c) Facebook, Inc. and its affiliates.
1483 *
1484 * This source code is licensed under the MIT license found in the
1485 * LICENSE file in the root directory of this source tree.
1486 */var $y;function oY(){if($y)return $t;$y=1;var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,i=n?Symbol.for("react.profiler"):60114,a=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,y=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,x=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,E=n?Symbol.for("react.responder"):60118,T=n?Symbol.for("react.scope"):60119;function w(I){if(typeof I=="object"&&I!==null){var L=I.$$typeof;switch(L){case e:switch(I=I.type,I){case u:case d:case r:case i:case s:case m:return I;default:switch(I=I&&I.$$typeof,I){case l:case f:case v:case y:case a:return I;default:return L}}case t:return L}}}function R(I){return w(I)===d}return $t.AsyncMode=u,$t.ConcurrentMode=d,$t.ContextConsumer=l,$t.ContextProvider=a,$t.Element=e,$t.ForwardRef=f,$t.Fragment=r,$t.Lazy=v,$t.Memo=y,$t.Portal=t,$t.Profiler=i,$t.StrictMode=s,$t.Suspense=m,$t.isAsyncMode=function(I){return R(I)||w(I)===u},$t.isConcurrentMode=R,$t.isContextConsumer=function(I){return w(I)===l},$t.isContextProvider=function(I){return w(I)===a},$t.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===e},$t.isForwardRef=function(I){return w(I)===f},$t.isFragment=function(I){return w(I)===r},$t.isLazy=function(I){return w(I)===v},$t.isMemo=function(I){return w(I)===y},$t.isPortal=function(I){return w(I)===t},$t.isProfiler=function(I){return w(I)===i},$t.isStrictMode=function(I){return w(I)===s},$t.isSuspense=function(I){return w(I)===m},$t.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===d||I===i||I===s||I===m||I===p||typeof I=="object"&&I!==null&&(I.$$typeof===v||I.$$typeof===y||I.$$typeof===a||I.$$typeof===l||I.$$typeof===f||I.$$typeof===b||I.$$typeof===E||I.$$typeof===T||I.$$typeof===x)},$t.typeOf=w,$t}var By;function lY(){return By||(By=1,sm.exports=oY()),sm.exports}var im,Uy;function cY(){if(Uy)return im;Uy=1;var n=lY(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[n.ForwardRef]=r,i[n.Memo]=s;function a(v){return n.isMemo(v)?s:i[v.$$typeof]||e}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,p=Object.prototype;function y(v,x,b){if(typeof x!="string"){if(p){var E=m(x);E&&E!==p&&y(v,E,b)}var T=u(x);d&&(T=T.concat(d(x)));for(var w=a(v),R=a(x),I=0;I<T.length;++I){var L=T[I];if(!t[L]&&!(b&&b[L])&&!(R&&R[L])&&!(w&&w[L])){var N=f(x,L);try{l(v,L,N)}catch{}}}}return v}return im=y,im}cY();function In(){return In=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},In.apply(this,arguments)}function Iw(n,e){if(n==null)return{};var t={},r=Object.keys(n),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(t[s]=n[s]);return t}var ah=S.createContext(void 0);ah.displayName="FormikContext";var uY=ah.Provider;ah.Consumer;function dY(){var n=S.useContext(ah);return n}var mr=function(e){return typeof e=="function"},oh=function(e){return e!==null&&typeof e=="object"},fY=function(e){return String(Math.floor(Number(e)))===e},am=function(e){return Object.prototype.toString.call(e)==="[object String]"},hY=function(e){return S.Children.count(e)===0},om=function(e){return oh(e)&&mr(e.then)};function rr(n,e,t,r){r===void 0&&(r=0);for(var s=Tw(e);n&&r<s.length;)n=n[s[r++]];return r!==s.length&&!n||n===void 0?t:n}function Ta(n,e,t){for(var r=jy(n),s=r,i=0,a=Tw(e);i<a.length-1;i++){var l=a[i],u=rr(n,a.slice(0,i+1));if(u&&(oh(u)||Array.isArray(u)))s=s[l]=jy(u);else{var d=a[i+1];s=s[l]=fY(d)&&Number(d)>=0?[]:{}}}return(i===0?n:s)[a[i]]===t?n:(t===void 0?delete s[a[i]]:s[a[i]]=t,i===0&&t===void 0&&delete r[a[i]],r)}
vendor: 13,138 bytes, line 1486
1486function Rw(n,e,t,r){t===void 0&&(t=new WeakMap),r===void 0&&(r={});for(var s=0,i=Object.keys(n);s<i.length;s++){var a=i[s],l=n[a];oh(l)?t.get(l)||(t.set(l,!0),r[a]=Array.isArray(l)?[]:{},Rw(l,e,t,r[a])):r[a]=e}return r}function mY(n,e){switch(e.type){case"SET_VALUES":return In({},n,{values:e.payload});case"SET_TOUCHED":return In({},n,{touched:e.payload});case"SET_ERRORS":return pa(n.errors,e.payload)?n:In({},n,{errors:e.payload});case"SET_STATUS":return In({},n,{status:e.payload});case"SET_ISSUBMITTING":return In({},n,{isSubmitting:e.payload});case"SET_ISVALIDATING":return In({},n,{isValidating:e.payload});case"SET_FIELD_VALUE":return In({},n,{values:Ta(n.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return In({},n,{touched:Ta(n.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return In({},n,{errors:Ta(n.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return In({},n,e.payload);case"SET_FORMIK_STATE":return e.payload(n);case"SUBMIT_ATTEMPT":return In({},n,{touched:Rw(n.values,!0),isSubmitting:!0,submitCount:n.submitCount+1});case"SUBMIT_FAILURE":return In({},n,{isSubmitting:!1});case"SUBMIT_SUCCESS":return In({},n,{isSubmitting:!1});default:return n}}var fa={},b1={};function pY(n){var e=n.validateOnChange,t=e===void 0?!0:e,r=n.validateOnBlur,s=r===void 0?!0:r,i=n.validateOnMount,a=i===void 0?!1:i,l=n.isInitialValid,u=n.enableReinitialize,d=u===void 0?!1:u,f=n.onSubmit,m=Iw(n,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=In({validateOnChange:t,validateOnBlur:s,validateOnMount:a,onSubmit:f},m),y=S.useRef(p.initialValues),v=S.useRef(p.initialErrors||fa),x=S.useRef(p.initialTouched||b1),b=S.useRef(p.initialStatus),E=S.useRef(!1),T=S.useRef({});S.useEffect(function(){return E.current=!0,function(){E.current=!1}},[]);var w=S.useState(0),R=w[1],I=S.useRef({values:C1(p.initialValues),errors:C1(p.initialErrors)||fa,touched:C1(p.initialTouched)||b1,status:C1(p.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),L=I.current,N=S.useCallback(function(D){var B=I.current;I.current=mY(B,D),B!==I.current&&R(function(V){return V+1})},[]),_=S.useCallback(function(D,B){return new Promise(function(V,Y){var H=p.validate(D,B);H==null?V(fa):om(H)?H.then(function(q){V(q||fa)},function(q){Y(q)}):V(H)})},[p.validate]),j=S.useCallback(function(D,B){var V=p.validationSchema,Y=mr(V)?V(B):V,H=B&&Y.validateAt?Y.validateAt(B,D):yY(D,Y);return new Promise(function(q,re){H.then(function(){q(fa)},function(ce){ce.name==="ValidationError"?q(gY(ce)):re(ce)})})},[p.validationSchema]),F=S.useCallback(function(D,B){return new Promise(function(V){return V(T.current[D].validate(B))})},[]),$=S.useCallback(function(D){var B=Object.keys(T.current).filter(function(Y){return mr(T.current[Y].validate)}),V=B.length>0?B.map(function(Y){return F(Y,rr(D,Y))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(V).then(function(Y){return Y.reduce(function(H,q,re){return q==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||q&&(H=Ta(H,B[re],q)),H},{})})},[F]),z=S.useCallback(function(D){return Promise.all([$(D),p.validationSchema?j(D):{},p.validate?_(D):{}]).then(function(B){var V=B[0],Y=B[1],H=B[2],q=L5.all([V,Y,H],{arrayMerge:vY});return q})},[p.validate,p.validationSchema,$,_,j]),W=Nr(function(D){return D===void 0&&(D=L.values),N({type:"SET_ISVALIDATING",payload:!0}),z(D).then(function(B){return E.current&&(N({type:"SET_ISVALIDATING",payload:!1}),N({type:"SET_ERRORS",payload:B})),B})});S.useEffect(function(){a&&E.current===!0&&pa(y.current,p.initialValues)&&W(y.current)},[a,W]);var J=S.useCallback(function(D){var B=D&&D.values?D.values:y.current,V=D&&D.errors?D.errors:v.current?v.current:p.initialErrors||{},Y=D&&D.touched?D.touched:x.current?x.current:p.initialTouched||{},H=D&&D.status?D.status:b.current?b.current:p.initialStatus;y.current=B,v.current=V,x.current=Y,b.current=H;var q=function(){N({type:"RESET_FORM",payload:{isSubmitting:!!D&&!!D.isSubmitting,errors:V,touched:Y,status:H,values:B,isValidating:!!D&&!!D.isValidating,submitCount:D&&D.submitCount&&typeof D.submitCount=="number"?D.submitCount:0}})};if(p.onReset){var re=p.onReset(L.values,Ne);om(re)?re.then(q):q()}else q()},[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);S.useEffect(function(){E.current===!0&&!pa(y.current,p.initialValues)&&d&&(y.current=p.initialValues,J(),a&&W(y.current))},[d,p.initialValues,J,a,W]),S.useEffect(function(){d&&E.current===!0&&!pa(v.current,p.initialErrors)&&(v.current=p.initialErrors||fa,N({type:"SET_ERRORS",payload:p.initialErrors||fa}))},[d,p.initialErrors]),S.useEffect(function(){d&&E.current===!0&&!pa(x.current,p.initialTouched)&&(x.current=p.initialTouched||b1,N({type:"SET_TOUCHED",payload:p.initialTouched||b1}))},[d,p.initialTouched]),S.useEffect(function(){d&&E.current===!0&&!pa(b.current,p.initialStatus)&&(b.current=p.initialStatus,N({type:"SET_STATUS",payload:p.initialStatus}))},[d,p.initialStatus,p.initialTouched]);var oe=Nr(function(D){if(T.current[D]&&mr(T.current[D].validate)){var B=rr(L.values,D),V=T.current[D].validate(B);return om(V)?(N({type:"SET_ISVALIDATING",payload:!0}),V.then(function(Y){return Y}).then(function(Y){N({type:"SET_FIELD_ERROR",payload:{field:D,value:Y}}),N({type:"SET_ISVALIDATING",payload:!1})})):(N({type:"SET_FIELD_ERROR",payload:{field:D,value:V}}),Promise.resolve(V))}else if(p.validationSchema)return N({type:"SET_ISVALIDATING",payload:!0}),j(L.values,D).then(function(Y){return Y}).then(function(Y){N({type:"SET_FIELD_ERROR",payload:{field:D,value:rr(Y,D)}}),N({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),ie=S.useCallback(function(D,B){var V=B.validate;T.current[D]={validate:V}},[]),Z=S.useCallback(function(D){delete T.current[D]},[]),X=Nr(function(D,B){N({type:"SET_TOUCHED",payload:D});var V=B===void 0?s:B;return V?W(L.values):Promise.resolve()}),ue=S.useCallback(function(D){N({type:"SET_ERRORS",payload:D})},[]),se=Nr(function(D,B){var V=mr(D)?D(L.values):D;N({type:"SET_VALUES",payload:V});var Y=B===void 0?t:B;return Y?W(V):Promise.resolve()}),G=S.useCallback(function(D,B){N({type:"SET_FIELD_ERROR",payload:{field:D,value:B}})},[]),ee=Nr(function(D,B,V){var Y=mr(B)?B(rr(L.values,D)):B;N({type:"SET_FIELD_VALUE",payload:{field:D,value:Y}});var H=V===void 0?t:V;return H?W(Ta(L.values,D,Y)):Promise.resolve()}),Ee=S.useCallback(function(D,B){var V=B,Y=D,H;if(!am(D)){D.persist&&D.persist();var q=D.target?D.target:D.currentTarget,re=q.type,ce=q.name,be=q.id,Re=q.value,we=q.checked;q.outerHTML;var Be=q.options,Ye=q.multiple;V=B||ce||be,Y=/number|range/.test(re)?(H=parseFloat(Re),isNaN(H)?"":H):/checkbox/.test(re)?CY(rr(L.values,V),we,Re):Be&&Ye?xY(Be):Re}V&&ee(V,Y)},[ee,L.values]),Ce=Nr(function(D){if(am(D))return function(B){return Ee(B,D)};Ee(D)}),Ae=Nr(function(D,B,V){B===void 0&&(B=!0),N({type:"SET_FIELD_TOUCHED",payload:{field:D,value:B}});var Y=V===void 0?s:V;return Y?W(L.values):Promise.resolve()}),me=S.useCallback(function(D,B){D.persist&&D.persist();var V=D.target,Y=V.name,H=V.id;V.outerHTML;var q=B||Y||H;Ae(q,!0)},[Ae]),ve=Nr(function(D){if(am(D))return function(B){return me(B,D)};me(D)}),Q=S.useCallback(function(D){mr(D)?N({type:"SET_FORMIK_STATE",payload:D}):N({type:"SET_FORMIK_STATE",payload:function(){return D}})},[]),ge=S.useCallback(function(D){N({type:"SET_STATUS",payload:D})},[]),le=S.useCallback(function(D){N({type:"SET_ISSUBMITTING",payload:D})},[]),pe=Nr(function(){return N({type:"SUBMIT_ATTEMPT"}),W().then(function(D){var B=D instanceof Error,V=!B&&Object.keys(D).length===0;if(V){var Y;try{if(Y=Fe(),Y===void 0)return}catch(H){throw H}return Promise.resolve(Y).then(function(H){return E.current&&N({type:"SUBMIT_SUCCESS"}),H}).catch(function(H){if(E.current)throw N({type:"SUBMIT_FAILURE"}),H})}else if(E.current&&(N({type:"SUBMIT_FAILURE"}),B))throw D})}),Ie=Nr(function(D){D&&D.preventDefault&&mr(D.preventDefault)&&D.preventDefault(),D&&D.stopPropagation&&mr(D.stopPropagation)&&D.stopPropagation(),pe().catch(function(B){console.warn("Warning: An unhandled error was caught from submitForm()",B)})}),Ne={resetForm:J,validateForm:W,validateField:oe,setErrors:ue,setFieldError:G,setFieldTouched:Ae,setFieldValue:ee,setStatus:ge,setSubmitting:le,setTouched:X,setValues:se,setFormikState:Q,submitForm:pe},Fe=Nr(function(){return f(L.values,Ne)}),Me=Nr(function(D){D&&D.preventDefault&&mr(D.preventDefault)&&D.preventDefault(),D&&D.stopPropagation&&mr(D.stopPropagation)&&D.stopPropagation(),J()}),ke=S.useCallback(function(D){return{value:rr(L.values,D),error:rr(L.errors,D),touched:!!rr(L.touched,D),initialValue:rr(y.current,D),initialTouched:!!rr(x.current,D),initialError:rr(v.current,D)}},[L.errors,L.touched,L.values]),Ge=S.useCallback(function(D){return{setValue:function(V,Y){return ee(D,V,Y)},setTouched:function(V,Y){return Ae(D,V,Y)},setError:function(V){return G(D,V)}}},[ee,Ae,G]),K=S.useCallback(function(D){var B=oh(D),V=B?D.name:D,Y=rr(L.values,V),H={name:V,value:Y,onChange:Ce,onBlur:ve};if(B){var q=D.type,re=D.value,ce=D.as,be=D.multiple;q==="checkbox"?re===void 0?H.checked=!!Y:(H.checked=!!(Array.isArray(Y)&&~Y.indexOf(re)),H.value=re):q==="radio"?(H.checked=Y===re,H.value=re):ce==="select"&&be&&(H.value=H.value||[],H.multiple=!0)}return H},[ve,Ce,L.values]),ne=S.useMemo(function(){return!pa(y.current,L.values)},[y.current,L.values]),ae=S.useMemo(function(){return typeof l<"u"?ne?L.errors&&Object.keys(L.errors).length===0:l!==!1&&mr(l)?l(p):l:L.errors&&Object.keys(L.errors).length===0},[l,ne,L.errors,p]),P=In({},L,{initialValues:y.current,initialErrors:v.current,initialTouched:x.current,initialStatus:b.current,handleBlur:ve,handleChange:Ce,handleReset:Me,handleSubmit:Ie,resetForm:J,setErrors:ue,setFormikState:Q,setFieldTouched:Ae,setFieldValue:ee,setFieldError:G,setStatus:ge,setSubmitting:le,setTouched:X,setValues:se,submitForm:pe,validateForm:W,validateField:oe,isValid:ae,dirty:ne,unregisterField:Z,registerField:ie,getFieldProps:K,getFieldMeta:ke,getFieldHelpers:Ge,validateOnBlur:s,validateOnChange:t,validateOnMount:a});return P}function xr(n){var e=pY(n),t=n.component,r=n.children,s=n.render,i=n.innerRef;return S.useImperativeHandle(i,function(){return e}),S.createElement(uY,{value:e},t?S.createElement(t,e):s?s(e):r?mr(r)?r(e):hY(r)?null:S.Children.only(r):null)}function gY(n){var e={};if(n.inner){if(n.inner.length===0)return Ta(e,n.path,n.message);for(var s=n.inner,t=Array.isArray(s),r=0,s=t?s:s[Symbol.iterator]();;){var i;if(t){if(r>=s.length)break;i=s[r++]}else{if(r=s.next(),r.done)break;i=r.value}var a=i;rr(e,a.path)||(e=Ta(e,a.path,a.message))}}return e}function yY(n,e,t,r){t===void 0&&(t=!1);var s=O5(n);return e[t?"validateSync":"validate"](s,{abortEarly:!1,context:s})}function O5(n){var e=Array.isArray(n)?[]:{};for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t)){var r=String(t);Array.isArray(n[r])===!0?e[r]=n[r].map(function(s){return Array.isArray(s)===!0||hy(s)?O5(s):s!==""?s:void 0}):hy(n[r])?e[r]=O5(n[r]):e[r]=n[r]!==""?n[r]:void 0}return e}function vY(n,e,t){var r=n.slice();return e.forEach(function(i,a){if(typeof r[a]>"u"){var l=t.clone!==!1,u=l&&t.isMergeableObject(i);r[a]=u?L5(Array.isArray(i)?[]:{},i,t):i}else t.isMergeableObject(i)?r[a]=L5(n[a],i,t):n.indexOf(i)===-1&&r.push(i)}),r}function xY(n){return Array.from(n).filter(function(e){return e.selected}).map(function(e){return e.value})}function CY(n,e,t){if(typeof n=="boolean")return!!e;var r=[],s=!1,i=-1;if(Array.isArray(n))r=n,i=n.indexOf(t),s=i>=0;else if(!t||t=="true"||t=="false")return!!e;return e&&t&&!s?r.concat(t):s?r.slice(0,i).concat(r.slice(i+1)):r}var bY=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?S.useLayoutEffect:S.useEffect;function Nr(n){var e=S.useRef(n);return bY(function(){e.current=n}),S.useCallback(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return e.current.apply(void 0,r)},[])}var D8=S.forwardRef(function(n,e){var t=n.action,r=Iw(n,["action"]),s=t??"#",i=dY(),a=i.handleReset,l=i.handleSubmit;return S.createElement("form",In({onSubmit:l,ref:e,onReset:a,action:s},r))});D8.displayName="Form";var lm,Vy;function SY(){if(Vy)return lm;Vy=1;function n(E){this._maxSize=E,this.clear()}n.prototype.clear=function(){this._size=0,this._values=Object.create(null)},n.prototype.get=function(E){return this._values[E]},n.prototype.set=function(E,T){return this._size>=this._maxSize&&this.clear(),E in this._values||this._size++,this._values[E]=T};var e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,t=/^\d+$/,r=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,l=new n(a),u=new n(a),d=new n(a);lm={Cache:n,split:m,normalizePath:f,setter:function(E){var T=f(E);return u.get(E)||u.set(E,function(R,I){for(var L=0,N=T.length,_=R;L<N-1;){var j=T[L];if(j==="__proto__"||j==="constructor"||j==="prototype")return R;_=_[T[L++]]}_[T[L]]=I})},getter:function(E,T){var w=f(E);return d.get(E)||d.set(E,function(I){for(var L=0,N=w.length;L<N;)if(I!=null||!T)I=I[w[L++]];else return;return I})},join:function(E){return E.reduce(function(T,w){return T+(y(w)||t.test(w)?"["+w+"]":(T?".":"")+w)},"")}
1486,forEach:function(E,T,w){p(Array.isArray(E)?E:m(E),T,w)}};function f(E){return l.get(E)||l.set(E,m(E).map(function(T){return T.replace(i,"$2")}))}function m(E){return E.match(e)||[""]}function p(E,T,w){var R=E.length,I,L,N,_;for(L=0;L<R;L++)I=E[L],I&&(b(I)&&(I='"'+I+'"'),_=y(I),N=!_&&/^\d+$/.test(I),T.call(w,I,_,N,L,E))}function y(E){return typeof E=="string"&&E&&["'",'"'].indexOf(E.charAt(0))!==-1}function v(E){return E.match(r)&&!E.match(t)}function x(E){return s.test(E)}function b(E){return!y(E)&&(v(E)||x(E))}return lm}var Ia=SY(),cm,zy;function EY(){if(zy)return cm;zy=1;const n=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,e=f=>f.match(n)||[],t=f=>f[0].toUpperCase()+f.slice(1),r=(f,m)=>e(f).join(m).toLowerCase(),s=f=>e(f).reduce((m,p)=>`${m}${m?p[0].toUpperCase()+p.slice(1).toLowerCase():p.toLowerCase()}`,"");return cm={words:e,upperFirst:t,camelCase:s,pascalCase:f=>t(s(f)),snakeCase:f=>r(f,"_"),kebabCase:f=>r(f,"-"),sentenceCase:f=>t(r(f," ")),titleCase:f=>e(f).map(t).join(" ")},cm}var um=EY(),S1={exports:{}},Gy;function wY(){if(Gy)return S1.exports;Gy=1,S1.exports=function(s){return n(e(s),s)},S1.exports.array=n;function n(s,i){var a=s.length,l=new Array(a),u={},d=a,f=t(i),m=r(s);for(i.forEach(function(y){if(!m.has(y[0])||!m.has(y[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||p(s[d],d,new Set);return l;function p(y,v,x){if(x.has(y)){var b;try{b=", node was:"+JSON.stringify(y)}catch{b=""}throw new Error("Cyclic dependency"+b)}if(!m.has(y))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(y));if(!u[v]){u[v]=!0;var E=f.get(y)||new Set;if(E=Array.from(E),v=E.length){x.add(y);do{var T=E[--v];p(T,m.get(T),x)}while(v);x.delete(y)}l[--a]=y}}}function e(s){for(var i=new Set,a=0,l=s.length;a<l;a++){var u=s[a];i.add(u[0]),i.add(u[1])}return Array.from(i)}function t(s){for(var i=new Map,a=0,l=s.length;a<l;a++){var u=s[a];i.has(u[0])||i.set(u[0],new Set),i.has(u[1])||i.set(u[1],new Set),i.get(u[0]).add(u[1])}return i}function r(s){for(var i=new Map,a=0,l=s.length;a<l;a++)i.set(s[a],a);return i}return S1.exports}var TY=wY();const IY=Gi(TY),RY=Object.prototype.toString,AY=Error.prototype.toString,
vendor: 7,490 bytes, line 1486
1486LY=RegExp.prototype.toString,NY=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",kY=/^Symbol\((.*)\)(.*)$/;function PY(n){return n!=+n?"NaN":n===0&&1/n<0?"-0":""+n}function Hy(n,e=!1){if(n==null||n===!0||n===!1)return""+n;const t=typeof n;if(t==="number")return PY(n);if(t==="string")return e?`"${n}"`:n;if(t==="function")return"[Function "+(n.name||"anonymous")+"]";if(t==="symbol")return NY.call(n).replace(kY,"Symbol($1)");const r=RY.call(n).slice(8,-1);return r==="Date"?isNaN(n.getTime())?""+n:n.toISOString(n):r==="Error"||n instanceof Error?"["+AY.call(n)+"]":r==="RegExp"?LY.call(n):null}function Di(n,e){let t=Hy(n,e);return t!==null?t:JSON.stringify(n,function(r,s){let i=Hy(this[r],e);return i!==null?i:s},2)}function Aw(n){return n==null?[]:[].concat(n)}let Lw,Nw,kw,_Y=/\$\{\s*(\w+)\s*\}/g;Lw=Symbol.toStringTag;class Wy{constructor(e,t,r,s){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Lw]="Error",this.name="ValidationError",this.value=t,this.path=r,this.type=s,this.errors=[],this.inner=[],Aw(e).forEach(i=>{if(Wn.isError(i)){this.errors.push(...i.errors);const a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Nw=Symbol.hasInstance;kw=Symbol.toStringTag;class Wn extends Error{static formatError(e,t){const r=t.label||t.path||"this";return t=Object.assign({},t,{path:r,originalPath:t.path}),typeof e=="string"?e.replace(_Y,(s,i)=>Di(t[i])):typeof e=="function"?e(t):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,t,r,s,i){const a=new Wy(e,t,r,s);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[kw]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Wn)}static[Nw](e){return Wy[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let gs={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:n,type:e,value:t,originalValue:r})=>{const s=r!=null&&r!==t?` (cast from the value \`${Di(r,!0)}\`).`:".";return e!=="mixed"?`${n} must be a \`${e}\` type, but the final value was: \`${Di(t,!0)}\``+s:`${n} must match the configured type. The validated value was: \`${Di(t,!0)}\``+s}},nr={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Ii={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},D5={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},OY={isValue:"${path} field must be ${value}"},H1={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},DY={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},jY={notType:n=>{const{path:e,value:t,spec:r}=n,s=r.types.length;if(Array.isArray(t)){if(t.length<s)return`${e} tuple value has too few items, expected a length of ${s} but got ${t.length} for value: \`${Di(t,!0)}\``;if(t.length>s)return`${e} tuple value has too many items, expected a length of ${s} but got ${t.length} for value: \`${Di(t,!0)}\``}return Wn.formatError(gs.notType,n)}};Object.assign(Object.create(null),{mixed:gs,string:nr,number:Ii,date:D5,object:H1,array:DY,boolean:OY,tuple:jY});const j8=n=>n&&n.__isYupSchema__;class bf{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:s,otherwise:i}=t,a=typeof r=="function"?r:(...l)=>l.every(u=>u===r);return new bf(e,(l,u)=>{var d;let f=a(...l)?s:i;return(d=f==null?void 0:f(u))!=null?d:u})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let r=this.refs.map(i=>i.getValue(t==null?void 0:t.value,t==null?void 0:t.parent,t==null?void 0:t.context)),s=this.fn(r,e,t);if(s===void 0||s===e)return e;if(!j8(s))throw new TypeError("conditions must return a schema object");return s.resolve(t)}}const E1={context:"$",value:"."};function Pw(n,e){return new Ki(n,e)}class Ki{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===E1.context,this.isValue=this.key[0]===E1.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?E1.context:this.isValue?E1.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Ia.getter(this.path,!0),this.map=t.map}getValue(e,t,r){let s=this.isContext?r:this.isValue?e:t;return this.getter&&(s=this.getter(s||{})),this.map&&(s=this.map(s)),s}cast(e,t){return this.getValue(e,t==null?void 0:t.parent,t==null?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}Ki.prototype.__isYupRef=!0;const Gs=n=>n==null;function To(n){function e({value:t,path:r="",options:s,originalValue:i,schema:a},l,u){const{name:d,test:f,params:m,message:p,skipAbsent:y}=n;let{parent:v,context:x,abortEarly:b=a.spec.abortEarly,disableStackTrace:E=a.spec.disableStackTrace}=s;const T={value:t,parent:v,context:x};function w($={}){const z=_w(Object.assign({value:t,originalValue:i,label:a.spec.label,path:$.path||r,spec:a.spec,disableStackTrace:$.disableStackTrace||E},m,$.params),T),W=new Wn(Wn.formatError($.message||p,z),t,z.path,$.type||d,z.disableStackTrace);return W.params=z,W}const R=b?l:u;let I={path:r,parent:v,type:d,from:s.from,createError:w,resolve($){return Ow($,T)},options:s,originalValue:i,schema:a};const L=$=>{Wn.isError($)?R($):$?u(null):R(w())},N=$=>{Wn.isError($)?R($):l($)};if(y&&Gs(t))return L(!0);let j;try{var F;if(j=f.call(I,t,I),typeof((F=j)==null?void 0:F.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${I.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(j).then(L,N)}}
1486catch($){N($);return}L(j)}return e.OPTIONS=n,e}function _w(n,e){if(!n)return n;for(const t of Object.keys(n))n[t]=Ow(n[t],e);return n}function Ow(n,e){return Ki.isRef(n)?n.getValue(e.value,e.parent,e.context):n}function MY(n,e,t,r=t){let s,i,a;return e?(Ia.forEach(e,(l,u,d)=>{let f=u?l.slice(1,l.length-1):l;n=n.resolve({context:r,parent:s,value:t});let m=n.type==="tuple",p=d?parseInt(f,10):0;if(n.innerType||m){if(m&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(t&&p>=t.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${e}. because there is no value at that index. `);s=t,t=t&&t[p],n=m?n.spec.types[p]:n.innerType}if(!d){if(!n.fields||!n.fields[f])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${a} which is a type: "${n.type}")`);s=t,t=t&&t[f],n=n.fields[f]}i=f,a=u?"["+l+"]":"."+l}),{schema:n,parent:s,parentPath:i}):{parent:s,parentPath:e,schema:n}}class Sf extends Set{describe(){const e=[];for(const t of this.values())e.push(Ki.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const r of this.values())t.push(e(r));return t}clone(){return new Sf(this.values())}merge(e,t){const r=this.clone();return e.forEach(s=>r.add(s)),t.forEach(s=>r.delete(s)),r}}function ko(n,e=new Map){if(j8(n)||!n||typeof n!="object")return n;if(e.has(n))return e.get(n);let t;if(n instanceof Date)t=new Date(n.getTime()),e.set(n,t);else if(n instanceof RegExp)t=new RegExp(n),e.set(n,t);else if(Array.isArray(n)){t=new Array(n.length),e.set(n,t);for(let r=0;r<n.length;r++)t[r]=ko(n[r],e)}else if(n instanceof Map){t=new Map,e.set(n,t);for(const[r,s]of n.entries())t.set(r,ko(s,e))}else if(n instanceof Set){t=new Set,e.set(n,t);for(const r of n)t.add(ko(r,e))}else if(n instanceof Object){t={},e.set(n,t);for(const[r,s]of Object.entries(n))t[r]=ko(s,e)}else throw Error(`Unable to clone ${n}`);return t}function FY(n){if(!(n!=null&&n.length))return;const e=[];let t="",r=!1,s=!1;for(let i=0;i<n.length;i++){const a=n[i];if(a==="["&&!s){t&&(e.push(...t.split(".").filter(Boolean)),t=""),r=!0;continue}if(a==="]"&&!s){t&&(/^\d+$/.test(t)?e.push(t):e.push(t.replace(/^"|"$/g,"")),t=""),r=!1;continue}if(a==='"'){s=!s;continue}if(a==="."&&!r&&!s){t&&(e.push(t),t="");continue}t+=a}return t&&e.push(...t.split(".").filter(Boolean)),e}function $Y(n,e){const t=e?`${e}.${n.path}`:n.path;return n.errors.map(r=>({message:r,path:FY(t)}))}function Dw(n,e){var t;if(!((t=n.inner)!=null&&t.length)&&n.errors.length)return $Y(n,e);const r=e?`${e}.${n.path}`:n.path;return n.inner.flatMap(s=>Dw(s,r))}class Jr{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Sf,this._blacklist=new Sf,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(gs.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(t=>{t.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=ko(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(e.length===0)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;
vendor: 10,038 bytes, lines 1486-1489
1486if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,r=e.clone();const s=Object.assign({},t.spec,r.spec);return r.spec=s,r.internalTests=Object.assign({},t.internalTests,r.internalTests),r._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),r.tests=t.tests,r.exclusiveTests=t.exclusiveTests,r.withMutation(i=>{e.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...t.transforms,...r.transforms],r}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;t=t.clone(),t.conditions=[],t=r.reduce((s,i)=>i.resolve(s,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,r,s,i;return Object.assign({},e,{from:e.from||[],strict:(t=e.strict)!=null?t:this.spec.strict,abortEarly:(r=e.abortEarly)!=null?r:this.spec.abortEarly,recursive:(s=e.recursive)!=null?s:this.spec.recursive,disableStackTrace:(i=e.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(e,t={}){let r=this.resolve(Object.assign({},t,{value:e})),s=t.assert==="ignore-optionality",i=r._cast(e,t);if(t.assert!==!1&&!r.isType(i)){if(s&&Gs(i))return i;let a=Di(e),l=Di(i);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". 
1487
1488attempted value: ${a} 
1489`+(l!==a?`result of cast: ${l}`:""))}return i}_cast(e,t){let r=e===void 0?e:this.transforms.reduce((s,i)=>i.call(this,s,e,this,t),e);return r===void 0&&(r=this.getDefault(t)),r}_validate(e,t={},r,s){let{path:i,originalValue:a=e,strict:l=this.spec.strict}=t,u=e;l||(u=this._cast(u,Object.assign({assert:!1},t)));let d=[];for(let f of Object.values(this.internalTests))f&&d.push(f);this.runTests({path:i,value:u,originalValue:a,options:t,tests:d},r,f=>{if(f.length)return s(f,u);this.runTests({path:i,value:u,originalValue:a,options:t,tests:this.tests},r,s)})}runTests(e,t,r){let s=!1,{tests:i,value:a,originalValue:l,path:u,options:d}=e,f=x=>{s||(s=!0,t(x,a))},m=x=>{s||(s=!0,r(x,a))},p=i.length,y=[];if(!p)return m([]);let v={value:a,originalValue:l,path:u,options:d,schema:this};for(let x=0;x<i.length;x++){const b=i[x];b(v,f,function(T){T&&(Array.isArray(T)?y.push(...T):y.push(T)),--p<=0&&m(y)})}}asNestedTest({key:e,index:t,parent:r,parentPath:s,originalParent:i,options:a}){const l=e??t;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof l=="number";let d=r[l];const f=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:i[l],key:void 0,[u?"index":"key"]:l,path:u||l.includes(".")?`${s||""}[${u?l:`"${l}"`}]`:(s?`${s}.`:"")+e});return(m,p,y)=>this.resolve(f)._validate(d,f,p,y)}validate(e,t){var r;let s=this.resolve(Object.assign({},t,{value:e})),i=(r=t==null?void 0:t.disableStackTrace)!=null?r:s.spec.disableStackTrace;return new Promise((a,l)=>s._validate(e,t,(u,d)=>{Wn.isError(u)&&(u.value=d),l(u)},(u,d)=>{u.length?l(new Wn(u,d,void 0,void 0,i)):a(d)}))}validateSync(e,t){var r;let s=this.resolve(Object.assign({},t,{value:e})),i,a=(r=t==null?void 0:t.disableStackTrace)!=null?r:s.spec.disableStackTrace;return s._validate(e,Object.assign({},t,{sync:!0}),(l,u)=>{throw Wn.isError(l)&&(l.value=u),l},(l,u)=>{if(l.length)throw new Wn(l,e,void 0,void 0,a);i=u}),i}isValid(e,t){return this.validate(e,t).then(()=>!0,r=>{if(Wn.isError(r))return!1;throw r})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(r){if(Wn.isError(r))return!1;throw r}}_getDefault(e){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this,e):ko(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const r=this.clone({nullable:e});return r.internalTests.nullable=To({message:t,name:"nullable",test(s){return s===null?this.schema.spec.nullable:!0}}),r}optionality(e,t){const r=this.clone({optional:e});return r.internalTests.optionality=To({message:t,name:"optionality",test(s){return s===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(e=gs.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=gs.notNull){return this.nullability(!1,e)}required(e=gs.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(e.length===1?typeof e[0]=="function"?t={test:e[0]}:t=e[0]:e.length===2?t={name:e[0],test:e[1]}:t={name:e[0],message:e[1],test:e[2]},t.message===void 0&&(t.message=gs.default),typeof t.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),s=To(t),i=t.exclusive||t.name&&r.exclusiveTests[t.name]===!0;if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===t.name&&(i||a.OPTIONS.test===s.OPTIONS.test))),r.tests.push(s),r}when(e,t){!Array.isArray(e)&&typeof e!="string"&&(t=e,e=".");let r=this.clone(),s=Aw(e).map(i=>new Ki(i));return s.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof t=="function"?new bf(s,t):bf.fromOptions(s,t)),r}typeError(e){let t=this.clone();return t.internalTests.typeError=To({message:e,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=gs.oneOf){let r=this.clone();return e.forEach(s=>{r._whitelist.add(s),r._blacklist.delete(s)}),r.internalTests.whiteList=To({message:t,name:"oneOf",skipAbsent:!0,test(s){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(s)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(e,t=gs.notOneOf){let r=this.clone();return e.forEach(s=>{r._blacklist.add(s),r._whitelist.delete(s)}),r.internalTests.blacklist=To({message:t,name:"notOneOf",test(s){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(s)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:r,meta:s,optional:i,nullable:a}=t.spec;return{meta:s,label:r,optional:i,nullable:a,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((u,d,f)=>f.findIndex(m=>m.OPTIONS.name===u.OPTIONS.name)===d).map(u=>{const d=u.OPTIONS.params&&e?_w(Object.assign({},u.OPTIONS.params),e):u.OPTIONS.params;return{name:u.OPTIONS.name,params:d}})}}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(r){try{return{value:await e.validate(r,{abortEarly:!1})}}catch(s){if(s instanceof Wn)return{issues:Dw(s)};throw s}}}}}Jr.prototype.__isYupSchema__=!0;for(const n of["validate","validateSync"])Jr.prototype[`${n}At`]=function(e,t,r={}){const{parent:s,parentPath:i,schema:a}=MY(this,e,t,r.context);return a[n](s&&s[i],Object.assign({},r,{parent:s,path:e}))};for(const n of["equals","is"])Jr.prototype[n]=Jr.prototype.oneOf;for(const n of["not","nope"])Jr.prototype[n]=Jr.prototype.notOneOf;const BY=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function UY(n){const e=j5(n);if(!e)return Date.parse?Date.parse(n):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let t=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(t=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(t=0-t)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+t,e.second,e.millisecond)}function j5(n){var e,t;const r=BY.exec(n);return r?{year:$s(r[1]),month:$s(r[2],1)-1,day:$s(r[3],1),hour:$s(r[4]),minute:$s(r[5]),second:$s(r[6]),millisecond:r[7]?$s(r[7].substring(0,3)):0,precision:(e=(t=r[7])==null?void 0:t.length)!=null?e:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:$s(r[10]),minuteOffset:$s(r[11])}:null}function $s(n,e=0){return Number(n)||e}let VY=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,zY=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,GY=/^(?:[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,HY="^\\d{4}-\\d{2}-\\d{2}",WY="\\d{2}:\\d{2}:\\d{2}",KY="(([+-]\\d{2}(:?\\d{2})?)|Z)",qY=new RegExp(`${HY}T${WY}(\\.\\d+)?${KY}$`),YY=n=>Gs(n)||n===n.trim(),XY={}.toString();function Bt(){return new jw}
1489class jw extends Jr{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,t)=>{if(!this.spec.coerce||this.isType(e)||Array.isArray(e))return e;const r=e!=null&&e.toString?e.toString():e;return r===XY?e:r})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||gs.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(t=>t.OPTIONS.name!=="required"),e))}length(e,t=nr.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,t=nr.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,t=nr.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}matches(e,t){let r=!1,s,i;return t&&(typeof t=="object"?{excludeEmptyString:r=!1,message:s,name:i}=t:s=t),this.test({name:i||"matches",message:s||nr.matches,params:{regex:e},skipAbsent:!0,test:a=>a===""&&r||a.search(e)!==-1})}email(e=nr.email){return this.matches(VY,{name:"email",message:e,excludeEmptyString:!0})}url(e=nr.url){return this.matches(zY,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=nr.uuid){return this.matches(GY,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t="",r,s;return e&&(typeof e=="object"?{message:t="",allowOffset:r=!1,precision:s=void 0}=e:t=e),this.matches(qY,{name:"datetime",message:t||nr.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:t||nr.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const a=j5(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:t||nr.datetime_precision,params:{precision:s},skipAbsent:!0,test:i=>{if(!i||s==null)return!0;const a=j5(i);return a?a.precision===s:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=nr.trim){return this.transform(t=>t!=null?t.trim():t).test({message:e,name:"trim",test:YY})}lowercase(e=nr.lowercase){return this.transform(t=>Gs(t)?t:t.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:t=>Gs(t)||t===t.toLowerCase()})}uppercase(e=nr.uppercase){return this.transform(t=>Gs(t)?t:t.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:t=>Gs(t)||t===t.toUpperCase()})}}Bt.prototype=jw.prototype;let ZY=n=>n!=+n;function M5(){return new Mw}class Mw extends Jr{constructor(){super({type:"number",check(e){return e instanceof Number&&(e=e.valueOf()),typeof e=="number"&&!ZY(e)}}),this.withMutation(()=>{this.transform((e,t)=>{if(!this.spec.coerce)return e;let r=e;if(typeof r=="string"){if(r=r.replace(/\s/g,""),r==="")return NaN;r=+r}return this.isType(r)||r===null?r:parseFloat(r)})})}min(e,t=Ii.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r>=this.resolve(e)}})}max(e,t=Ii.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(r){return r<=this.resolve(e)}})}lessThan(e,t=Ii.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(r){return r<this.resolve(e)}})}moreThan(e,t=Ii.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(r){return r>this.resolve(e)}})}positive(e=Ii.positive){return this.moreThan(0,e)}negative(e=Ii.negative){return this.lessThan(0,e)}integer(e=Ii.integer){return this.test({name:"integer",message:e,ski
vendor: 4,452 bytes, line 1489
1489pAbsent:!0,test:t=>Number.isInteger(t)})}truncate(){return this.transform(e=>Gs(e)?e:e|0)}round(e){var t;let r=["ceil","floor","round","trunc"];if(e=((t=e)==null?void 0:t.toLowerCase())||"round",e==="trunc")return this.truncate();if(r.indexOf(e.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(s=>Gs(s)?s:Math[e](s))}}M5.prototype=Mw.prototype;let QY=new Date(""),JY=n=>Object.prototype.toString.call(n)==="[object Date]";class M8 extends Jr{constructor(){super({type:"date",check(e){return JY(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,t)=>!this.spec.coerce||this.isType(e)||e===null?e:(e=UY(e),isNaN(e)?M8.INVALID_DATE:new Date(e)))})}prepareParam(e,t){let r;if(Ki.isRef(e))r=e;else{let s=this.cast(e);if(!this._typeCheck(s))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=s}return r}min(e,t=D5.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(s){return s>=this.resolve(r)}})}max(e,t=D5.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(s){return s<=this.resolve(r)}})}}M8.INVALID_DATE=QY;function eX(n,e=[]){let t=[],r=new Set,s=new Set(e.map(([a,l])=>`${a}-${l}`));function i(a,l){let u=Ia.split(a)[0];r.add(u),s.has(`${l}-${u}`)||t.push([l,u])}for(const a of Object.keys(n)){let l=n[a];r.add(a),Ki.isRef(l)&&l.isSibling?i(l.path,a):j8(l)&&"deps"in l&&l.deps.forEach(u=>i(u,a))}return IY.array(Array.from(r),t).reverse()}function Ky(n,e){let t=1/0;return n.some((r,s)=>{var i;if((i=e.path)!=null&&i.includes(r))return t=s,!0}),t}function Fw(n){return(e,t)=>Ky(n,e)-Ky(n,t)}const tX=(n,e,t)=>{if(typeof n!="string")return n;let r=n;try{r=JSON.parse(n)}catch{}return t.isType(r)?r:n};function W1(n){if("fields"in n){const e={};for(const[t,r]of Object.entries(n.fields))e[t]=W1(r);return n.setFields(e)}if(n.type==="array"){const e=n.optional();return e.innerType&&(e.innerType=W1(e.innerType)),e}return n.type==="tuple"?n.optional().clone({types:n.spec.types.map(W1)}):"optional"in n?n.optional():n}const nX=(n,e)=>{const t=[...Ia.normalizePath(e)];if(t.length===1)return t[0]in n;let r=t.pop(),s=Ia.getter(Ia.join(t),!0)(n);return!!(s&&r in s)};let qy=n=>Object.prototype.toString.call(n)==="[object Object]";function Yy(n,e){let t=Object.keys(n.fields);return Object.keys(e).filter(r=>t.indexOf(r)===-1)}const rX=Fw([]);function br(n){return new $w(n)}class $w extends Jr{constructor(e){super({type:"object",check(t){return qy(t)||typeof t=="function"}}),this.fields=Object.create(null),this._sortErrors=rX,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var r;let s=super._cast(e,t);if(s===void 0)return this.getDefault(t);if(!this._typeCheck(s))return s;let i=this.fields,a=(r=t.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(s).filter(m=>!this._nodes.includes(m))),u={},d=Object.assign({},t,{parent:u,__validating:t.__validating||!1}),f=!1;for(const m of l){let p=i[m],y=m in s,v=s[m];if(p){let x;d.path=(t.path?`${t.path}.`:"")+m,p=p.resolve({value:v,context:t.context,parent:u});let b=p instanceof Jr?p.spec:void 0,E=b==null?void 0:b.strict;if(b!=null&&b.strip){f=f||m in s;continue}x=!t.__validating||!E?p.cast(v,d):v,x!==void 0&&(u[m]=x)}else y&&!a&&(u[m]=v);(y!==m in u||u[m]!==v)&&(f=!0)}return f?u:s}_validate(e,t={},r,s){let{from:i=[],originalValue:a=e,recursive:l=this.spec.recursive}=t;t.from=[{schema:this,value:a},...i],t.__validating=!0,t.originalValue=a,super._validate(e,t,r,(u,d)=>{if(!l||!qy(d)){s(u,d);return}a=a||d;let f=[];for(let m of this._nodes){let p=this.fields[m];!p||Ki.isRef(p)||f.push(p.asNestedTest({options:t,key:m,parent:d,parentPath:t.path,originalParent:a}))}this.runTests({tests:f,value:d,originalValue:a,options:t},r,m=>{s(m.sort(this._sortErrors).concat(u),d)})})}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[s,i]of Object.entries(this.fields)){const a=r[s];r[s]=a===void 0?i:a}return t.withMutation(s=>s.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};
1489return this._nodes.forEach(r=>{var s;const i=this.fields[r];let a=e;(s=a)!=null&&s.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),t[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),t}setFields(e,t){let r=this.clone();return r.fields=e,r._nodes=eX(e,t),r._sortErrors=Fw(Object.keys(e)),t&&(r._excludedEdges=t),r}shape(e,t=[]){return this.clone().withMutation(r=>{let s=r._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),s=[...r._excludedEdges,...t]),r.setFields(Object.assign(r.fields,e),s)})}partial(){const e={};for(const[t,r]of Object.entries(this.fields))e[t]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return W1(this)}pick(e){const t={};for(const r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.setFields(t,this._excludedEdges.filter(([r,s])=>e.includes(r)&&e.includes(s)))}omit(e){const t=[];for(const r of Object.keys(this.fields))e.includes(r)||t.push(r);return this.pick(t)}from(e,t,r){let s=Ia.getter(e,!0);return this.transform(i=>{if(!i)return i;let a=i;return nX(i,e)&&(a=Object.assign({},i),r||delete a[e],a[t]=s(i)),a})}json(){return this.transform(tX)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||H1.exact,test(t){if(t==null)return!0;const r=Yy(this.schema,t);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=H1.noUnknown){typeof e!="boolean"&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(s){if(s==null)return!0;const i=Yy(this.schema,s);return!e||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=H1.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;const r={};for(const s of Object.keys(t))r[e(s)]=t[s];return r})}camelCase(){return this.transformKeys(um.camelCase)}snakeCase(){return this.transformKeys(um.snakeCase)}constantCase(){return this.transformKeys(e=>um.snakeCase(e).toUpperCase())}describe(e){const t=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[i,a]of Object.entries(t.fields)){var s;let l=e;(s=l)!=null&&s.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),r.fields[i]=a.describe(l)}return r}}br.prototype=$w.prototype;function sX(n){return o.jsx(et.Group,{style:n.style,children:o.jsxs(Ac,{size:"md",children:[o.jsx(et.Label,{style:{color:"#efefef"},id:n.name+"Id",children:n.labelTxt}),o.jsx(et.Control,{type:n.type?n.type:"text",id:n.name+"Input",name:n.name,value:n.value,placeholder:n.placeholder?n.placeholder:n.labelTxt?n.labelTxt:"",onKeyDown:n.keydown?e=>n.keydown(e):void 0,onChange:n.onChange?e=>n.onChange(e):void 0,isInvalid:!!n.error,className:n.className,rows:n.type==="textarea"?n.rows:1}),o.jsx(et.Control.Feedback,{type:"invalid",className:"invalidText",children:n.error})]})})}function en(n){const e=()=>n.labelTxt?o.jsx(et.Label,{style:{color:"var(--default-text-color)"},id:n.name+"Id",column:"sm",children:o.jsx("h3",{children:n.labelTxt})}):o.jsx(o.Fragment,{}),t=()=>n.error?o.jsx(et.Control.Feedback,{type:"invalid",className:"invalidText",children:n.error}):o.jsx(o.Fragment,{});return o.jsxs(et.Group,{style:n.style?n.style:{},className:n.wrapperClass,children:[e(),o.jsxs(Ac,{size:"md",children:[o.jsx(et.Control,{type:n.type?n.type:"text",name:n.name,id:n.id,value:n.value,placeholder:n.placeholder?n.placeholder:n.labelTxt?n.labelTxt:"",onKeyDown:n.keydown?r=>n.keydown(r):void 0,onChange:n.onChange?r=>n.onChange(r):void 0,isInvalid:!!n.error,className:n.className,rows:n.type==="textarea"?n.rows:1,readOnly:n.readOnly,...n}),t()]})]})}function iX(n){const[e,t]=S.useState({}),[r,s]=S.useState(!0);return S.useEffect(()=>{Pe.get(`${Oo}/stream/stats/last?channel=${n.channelName}`).then(i=>{t(i.data),s(!1)}).catch(i=>{s(!1),i.response&&i.response.data?je(i.response.data.error):console.log(i)})},[n.channelName]),r?_n:e.streamId?o.jsxs("div",{className:"channel-settings-grid",children:[o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"General Info"}),o.jsxs("p",{className:"channel-settings-muted",children:["Date: ",e.startTime||"---"]}),o.jsxs("p",{className:"channel-settings-muted",children:["Duration: ",e.duration||"---"]}),o.jsxs("p",{className:"channel-settings-muted",children:["Category: ",e.category||"---"]})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Viewership"}),o.jsxs("p",{className:"channel-settings-muted",children:["Total Unique Viewers: ",e.totalViews||"0"]}),o.jsxs("p",{className:"channel-settings-muted",children:["Max View Count: ",e.maxViews||"0"]}),o.jsxs("p",{className:"channel-settings-muted",children:["Min View Count: ",e.minViews||"0"]})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Engagement"}),o.jsxs("p",{className:"channel-settings-muted",children:["Followers Gained: ",e.follows||"0"]}),o.jsxs("p",{className:"channel-settings-muted",children:["Favorites Gained: ",e.favorites||"0"]}),o.jsxs("p",{className:"channel-settings-muted",children:["Subscribers Gained: ",e.subscriptions||"0"]}),o.jsxs("p",{className:"channel-settings-muted",children:["Unique Chatters: ",e.chatters||"0"]})]}),o.jsxs("div",{className:"channel-settings-card channel-settings-full-width",children:[o.jsx("h3",{children:"Top Chatters"}),o.jsx("div",{className:"channel-settings-grid",children:e.topChatters&&e.topChatters.length>0?e.topChatters.map((i,a)=>o.jsxs("div",{className:"channel-settings-muted",children:[o.jsx("strong",{children:i.username}),": ",i.count," messages"]},a)):o.jsx("p",{className:"channel-settings-muted",children:"No chat data available."})})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Most Used Emotes"}),e.topEmotes&&e.topEmotes.length>0?e.topEmotes.map((i,a)=>o.jsxs("div",{className:"channel-settings-muted",children:[o.jsx("strong",{children:i.name}),": ",i.count," uses"]},a)):o.jsx("p",{className:"channel-settings-muted",children:"No emote data available."})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Least Used Emotes"}),e.leastEmotes&&e.leastEmotes.length>0?e.leastEmotes.map((i,a)=>o.jsxs("div",{className:"channel-settings-muted",children:[o.jsx("strong",{children:i.name}),": ",i.count," uses"]},a)):o.jsx("p",{className:"channel-settings-muted",children:"No emote data available."})]})]}):o.jsx("div",{className:"channel-settings-grid",children:o.jsxs("div",{className:"channel-settings-card channel-settings-full-width",children:[o.jsx("h3",{children:"Last Stream Statistics"}),o.jsx("p",{className:"channel-settings-muted",children:"No recent stream data available."})]})})}function aX(n){var x,b,E,T;const[e,t]=S.useState(null),[r,s]=S.useState(!0),[i,a]=S.useState("all"),[l,u]=S.useState(""),[d,f]=S.useState(""),m=(w,R,I)=>{s(!0);let L=`${Oo}/stream/stats/overall?channel=${encodeURIComponent(n.channelName)}`,N="",_="";if(w==="7d"){const j=new Date;j.setDate(j.getDate()-7),N=j.toISOString().split("T")[0]}else if(w==="30d"){const j=new Date;j.setDate(j.getDate()-30),N=j.toISOString().split("T")[0]}else if(w==="90d"){const j=new Date;j.setDate(j.getDate()-90),N=j.toISOString().split("T")[0]}else if(w==="365d"){const j=new Date;j.setDate(j.getDate()-365),N=j.toISOString().split("T")[0]}else w==="custom"&&(N=R,_=I);N&&(L+=`&startDate=${encodeURIComponent(N)}`),_&&(L+=`&endDate=${encodeURIComponent(_)}`),Pe.get(L).then(j=>{t(j.data||{}),s(!1)}).catch(j=>{s(!1),j.response&&j.response.data&&j.response.data.error?je(j.response.data.error):console.error("Failed to fetch timeframe statistics",j)})};S.useEffect(()=>{m(i,l,d)},[n.channelName,i]);const p=w=>{const R=w.target.value;a(R)},y=()=>{i==="custom"&&m("custom",l,d)};if(r&&!e)return _n;const v=(e==null?void 0:e.subscribers)||{tier1:0,tier2:0,tier3:0,tier4:0,tier5:0,total:(e==null?void 0:e.subscriptions)||0};return o.jsxs("div",{className:"channel-settings-grid",children:[o.jsx("div",{className:"channel-settings-card channel-settings-full-width",children:o.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",alignItems:"center",gap:"1rem"},children:[o.jsxs("div",{children:[o.jsx("h3",{children:"Time-Frame Statistics"}),o.jsxs("p",{className:"channel-settings-muted",style:{margin:0},children:["Detailed historical and timeframe analytics for ",o.jsx("strong",{children:n.channelName}),"."]})]}),o.jsxs("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.75rem"},children:[o.jsxs(et.Select,{value:i,onChange:p,style:{minWidth:"160px",maxWidth:"200px"},children:[o.jsx("option",{value:"all",children:"All Time"}),o.jsx("option",{value:"7d",children:"Last 7 Days"}),o.jsx("option",{value:"30d",children:"Last 30 Days"}),o.jsx("option",{value:"90d",children:"Last 90 Days"}),o.jsx("option",{value:"365d",children:"Last Year"}),o.jsx("option",{value:"custom",children:"Custom Range"})]}),i==="custom"&&o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"}
1489,children:[o.jsx(et.Control,{type:"date",value:l,onChange:w=>u(w.target.value),placeholder:"Start Date"}),o.jsx("span",{className:"channel-settings-muted",children:"to"}),o.jsx(et.Control,{type:"date",value:d,onChange:w=>f(w.target.value),placeholder:"End Date"}),o.jsx("button",{type:"button",className:"green-click-button",onClick:y,style:{padding:"0.4rem 0.9rem",fontSize:"0.9rem"},children:"Apply"})]})]})]})}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Stream Overview"}),o.jsxs("p",{className:"channel-settings-muted",children:["Stream Count: ",o.jsx("strong",{children:(e==null?void 0:e.streamCount)||0})]}),o.jsxs("p",{className:"channel-settings-muted",children:["Total Stream Duration: ",o.jsx("strong",{children:(e==null?void 0:e.duration)||"0 Hours 0 Minutes 0 Seconds"})]}),o.jsxs("p",{className:"channel-settings-muted",children:["Average Stream Duration: ",o.jsx("strong",{children:(e==null?void 0:e.averageDuration)||"0 Hours 0 Minutes 0 Seconds"})]})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Viewership"}),o.jsxs("p",{className:"channel-settings-muted",children:["Total View Count: ",o.jsx("strong",{children:(e==null?void 0:e.totalViews)||0})]}),o.jsxs("p",{className:"channel-settings-muted",children:["Max View Count: ",o.jsx("strong",{children:(e==null?void 0:e.maxViews)||0})]}),o.jsxs("p",{className:"channel-settings-muted",children:["Min View Count: ",o.jsx("strong",{children:(e==null?void 0:e.minViews)||0})]})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Engagement"}),o.jsxs("p",{className:"channel-settings-muted",children:["Follows: ",o.jsx("strong",{children:(e==null?void 0:e.follows)||0})]}),o.jsxs("p",{className:"channel-settings-muted",children:["Favorites: ",o.jsx("strong",{children:(e==null?void 0:e.favorites)||0})]}),o.jsxs("p",{className:"channel-settings-muted",children:["Unique Chatters: ",o.jsx("strong",{children:(e==null?void 0:e.uniqueChatters)||(e==null?void 0:e.chatters)||0})]})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Subscribers"}),o.jsxs("div",{className:"channel-settings-muted",children:[o.jsxs("p",{children:["Tier 1: ",o.jsx("strong",{children:v.tier1||0})]}),o.jsxs("p",{children:["Tier 2: ",o.jsx("strong",{children:v.tier2||0})]}),o.jsxs("p",{children:["Tier 3: ",o.jsx("strong",{children:v.tier3||0})]}),o.jsxs("p",{children:["Tier 4: ",o.jsx("strong",{children:v.tier4||0})]}),o.jsxs("p",{children:["Tier 5: ",o.jsx("strong",{children:v.tier5||0})]}),o.jsx("hr",{style:{opacity:.15,margin:"0.5rem 0"}}),o.jsx("p",{children:o.jsxs("strong",{children:["Total Subscribers: ",v.total||0]})})]})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Best Performing Stream (by Views)"}),(x=e==null?void 0:e.bestStreamByViews)!=null&&x.streamId?o.jsxs("div",{className:"channel-settings-muted",children:[o.jsx("p",{children:o.jsx("strong",{children:e.bestStreamByViews.title||"Untitled Stream"})}),o.jsxs("p",{children:["Total Views: ",o.jsx("strong",{children:e.bestStreamByViews.totalViews||0})," (Peak: ",e.bestStreamByViews.maxViews||0,")"]}),o.jsxs("p",{children:["Category: ",e.bestStreamByViews.category||"Other"]}),o.jsxs("p",{children:["Date: ",e.bestStreamByViews.startTime||"---"]}),o.jsxs("p",{children:["Duration: ",e.bestStreamByViews.duration||"---"]})]}):o.jsx("p",{className:"channel-settings-muted",children:"No stream data available."})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Worst Performing Stream (by Views)"}),(b=e==null?void 0:e.worstStreamByViews)!=null&&b.streamId?o.jsxs("div",{className:"channel-settings-muted",children:[o.jsx("p",{children:o.jsx("strong",{children:e.worstStreamByViews.title||"Untitled Stream"})}),o.jsxs("p",{children:["Total Views: ",o.jsx("strong",{children:e.worstStreamByViews.totalViews||0})," (Peak: ",e.worstStreamByViews.maxViews||0,")"]}),o.jsxs("p",{children:["Category: ",e.worstStreamByViews.category||"Other"]}),o.jsxs("p",{children:["Date: ",e.worstStreamByViews.startTime||"---"]}),o.jsxs("p",{children:["Duration: ",e.worstStreamByViews.duration||"---"]})]}):o.jsx("p",{className:"channel-settings-muted",children:"No stream data available."})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Best Performing Stream (by Revenue)"}),(E=e==null?void 0:e.bestStreamByRevenue)!=null&&E.streamId?o.jsxs("div",{className:"channel-settings-muted",children:[o.jsx("p",{children:o.jsx("strong",{children:e.bestStreamByRevenue.title||"Untitled Stream"})}),o.jsxs("p",{children:["Revenue: ",o.jsxs("strong",{children:["$",(e.bestStreamByRevenue.revenue||0).toFixed(2)]})]}),o.jsxs("p",{children:["Total Views: ",e.bestStreamByRevenue.totalViews||0]}),o.jsxs("p",{children:["Category: ",e.bestStreamByRevenue.category||"Other"]}),o.jsxs("p",{children:["Date: ",e.bestStreamByRevenue.startTime||"---"]}),o.jsxs("p",{children:["Duration: ",e.bestStreamByRevenue.duration||"---"]})]}):o.jsx("p",{className:"channel-settings-muted",children:"No stream data available."})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Worst Performing Stream (by Revenue)"}),(T=e==null?void 0:e.worstStreamByRevenue)!=null&&T.streamId?o.jsxs("div",{className:"channel-settings-muted",children:[o.jsx("p",{children:o.jsx("strong",{children:e.worstStreamByRevenue.title||"Untitled Stream"})}),o.jsxs("p",{children:["Revenue: ",o.jsxs("strong",{children:["$",(e.worstStreamByRevenue.revenue||0).toFixed(2)]})]}),o.jsxs("p",{children:["Total Views: ",e.worstStreamByRevenue.totalViews||0]}),o.jsxs("p",{children:["Category: ",e.worstStreamByRevenue.category||"Other"]}),o.jsxs("p",{children:["Date: ",e.worstStreamByRevenue.startTime||"---"]}),o.jsxs("p",{children:["Duration: ",e.worstStreamByRevenue.duration||"---"]})]}):o.jsx("p",{className:"channel-settings-muted",children:"No stream data available."})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Most Used Emotes"}),e!=null&&e.topEmotes&&e.topEmotes.length>0?e.topEmotes.map((w,R)=>o.jsxs("div",{className:"channel-settings-muted",children:[o.jsx("strong",{children:w.name}),": ",w.count," uses"]},R)):o.jsx("p",{className:"channel-settings-muted",children:"No emote data available."})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Least Used Emotes"}),e!=null&&e.leastEmotes&&e.leastEmotes.length>0?e.leastEmotes.map((w,R)=>o.jsxs("div",{className:"channel-settings-muted",children:[o.jsx("strong",{children:w.name}),": ",w.count," uses"]},R)):o.jsx("p",{className:"channel-settings-muted",children:"No emote data available."})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Most Frequent Chatters"}),e!=null&&e.frequentChatters&&e.frequentChatters.length>0?e.frequentChatters.map((w,R)=>o.jsxs("div",{className:"channel-settings-muted",children:[o.jsx("strong",{children:w.username}),": ",w.count," messages"]},R)):o.jsx("p",{className:"channel-settings-muted",children:"No chat data available."})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Returning Chatters"}),e!=null&&e.returningChatters&&e.returningChatters.length>0?e.returningChatters.map((w,R)=>o.jsxs("div",{className:"channel-settings-muted",children:[o.jsx("strong",{children:w.username}),": attended ",w.streamCount," streams (",w.count," messages)"]},R)):o.jsx("p",{className:"channel-settings-muted",children:"No returning chatter data available."})]})]})}function oX(n){const[e,t]=S.useState({}),[r,s]=S.useState(!0);return S.useEffect(()=>{Pe.get(`${es}/channel/${n.channelName}`).then(i=>{i.data?(console.log(i.data),t(i.data)):je("unable to get data")}
1489).catch(i=>{i&&i.response&&i.response.data?je(i.response.data.error):(je("Unknown Error Occurred"),console.log(i))}).finally(()=>{s(!1)})},[n.channelName]),r?_n:!e||!e.currentPayoutPeriodData?o.jsx("div",{className:"channel-settings-grid",children:o.jsxs("div",{className:"channel-settings-card channel-settings-full-width",children:[o.jsx("h3",{children:"System Error"}),o.jsx("p",{className:"channel-settings-muted",children:"Unable to retrieve revenue information at this time. Please try again later."})]})}):(console.log("Revenue info. current payout period: "),console.log(e.currentPayoutPeriodData),console.log(e.currentPayoutPeriodData.keys),o.jsxs("div",{className:"channel-settings-grid",children:[o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Payout Overview"}),o.jsxs("div",{className:"channel-settings-muted",children:[o.jsxs("p",{children:["Last Payout Date: ",o.jsx("strong",{children:"---"})]}),o.jsxs("p",{children:["Last Payout Revenue: ",o.jsx("strong",{children:"$---"})]}),o.jsx("hr",{style:{opacity:.1}}),o.jsxs("p",{children:["Next Payout Date: ",o.jsx("strong",{children:e.currentPayoutPeriodData?e.currentPayoutPeriodData.nextPayoutDate:"Unknown"})]}),o.jsxs("p",{children:["Next Payout Revenue: ",o.jsxs("strong",{children:["$",e.currentPayoutPeriodData?e.currentPayoutPeriodData.nextPayoutRevenue:"Unknown"]})]})]})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Subscriptions"}),o.jsxs("p",{className:"channel-settings-muted",style:{fontSize:"0.8rem"},children:["Current Period (Ends ",e.currentPayoutPeriodData?e.currentPayoutPeriodData.endOfCurrentPeriod:"Unknown",")"]}),o.jsxs("div",{className:"channel-settings-muted",children:[o.jsxs("p",{children:["Tier 1: ",e.currentPayoutPeriodData.subscriptions.tier1.subscriptionsCount," ($",e.currentPayoutPeriodData.subscriptions.tier1.value,")"]}),o.jsxs("p",{children:["Tier 2: ",e.currentPayoutPeriodData.subscriptions.tier2.subscriptionsCount," ($",e.currentPayoutPeriodData.subscriptions.tier2.value,")"]}),o.jsxs("p",{children:["Tier 3: ",e.currentPayoutPeriodData.subscriptions.tier3.subscriptionsCount," ($",e.currentPayoutPeriodData.subscriptions.tier3.value,")"]}),o.jsxs("p",{children:["Tier 4: ",e.currentPayoutPeriodData.subscriptions.tier4.subscriptionsCount," ($",e.currentPayoutPeriodData.subscriptions.tier4.value,")"]}),o.jsxs("p",{children:["Tier 5: ",e.currentPayoutPeriodData.subscriptions.tier5.subscriptionsCount," ($",e.currentPayoutPeriodData.subscriptions.tier5.value,")"]}),o.jsx("hr",{style:{opacity:.1}}),o.jsx("p",{children:o.jsxs("strong",{children:["Total: ",e.currentPayoutPeriodData.subscriptions.tier1.subscriptionsCount+e.currentPayoutPeriodData.subscriptions.tier2.subscriptionsCount+e.currentPayoutPeriodData.subscriptions.tier3.subscriptionsCount+e.currentPayoutPeriodData.subscriptions.tier4.subscriptionsCount+e.currentPayoutPeriodData.subscriptions.tier5.subscriptionsCount," ($",e.currentPayoutPeriodData.subscriptions.tier1.value+e.currentPayoutPeriodData.subscriptions.tier2.value+e.currentPayoutPeriodData.subscriptions.tier3.value+e.currentPayoutPeriodData.subscriptions.tier4.value+e.currentPayoutPeriodData.subscriptions.tier5.value,")"]})})]})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Channel Points"}),o.jsxs("p",{className:"channel-settings-muted",style:{fontSize:"0.8rem"},children:["Current Period (Ends ",e.currentPayoutPeriodData.endOfCurrentPeriod,")"]}),o.jsxs("div",{className:"channel-settings-muted",children:[o.jsxs("p",{children:["Paid Points Total: ",o.jsx("strong",{children:e.currentPayoutPeriodData.dropCount})]}),o.jsxs("p",{children:["Points Value: ",o.jsxs("strong",{children:["$",e.currentPayoutPeriodData.dropValue]})]})]})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Analytics Goals"}),o.jsxs("ul",{className:"channel-settings-muted",children:[o.jsx("li",{children:"Breakdown by pay period"}),o.jsx("li",{children:"(Gain/loss) Subs per period"})]})]})]}))}function lX(n){return o.jsxs(Uf,{id:"statusTabs",defaultActiveKey:"stats1",className:"channel-settings-tabs",children:[o.jsx($n,{eventKey:"stats1",title:"Last Stream Statistics",children:o.jsx(iX,{channelName:n.channelName})}),o.jsx($n,{eventKey:"stats2",title:"Time-frame Statistics",children:o.jsx(aX,{channelName:n.channelName})}),o.jsx($n,{eventKey:"stats3",title:"Revenue Information",children:o.jsx(oX,{channelName:n.channelName})})]})}function cX(n){const e=["anyone","follower","subscriber","moderator","streamer"],[t,r]=S.useState(n.command.commandLevel),s=(i,a)=>{Pe.put(kt+"/channel/bot",{channel:n.channelName,commandName:i.commandName,commandText:i.commandText,commandLevel:t,coolDownDuration:i.coolDownDuration,commandTrigger:i.commandTrigger,commandId:n.command.uuid,asStreamer:i.asStreamer.toString()}).then(l=>{Tt(l.data.message)}
1489).catch(l=>{je(l.response.data.error)})};return o.jsx(xr,{validationSchema:br({commandName:Bt().required("Command Name is required"),commandText:Bt().required("Command must have SOME value"),commandTrigger:Bt().required("Trigger is required")}),validateOnBlur:!1,onSubmit:(i,a)=>s(i),validateOnChange:!0,initialValues:{commandName:n.command.commandName,commandText:n.command.commandText,commandLevel:n.command.commandLevel,coolDownDuration:n.command.coolDownDuration,commandIdx:n.command.commandIdx,commandTrigger:n.command.commandTrigger===void 0?"":n.command.commandTrigger,commandId:n.command.commandId===void 0?window.crypto.randomUUID():n.command.commandId,asStreamer:n.command.asStreamer===void 0?!1:n.command.asStreamer},children:({handleSubmit:i,values:a,handleChange:l,errors:u})=>o.jsxs(et,{noValidate:!0,onSubmit:i,className:"command-editor-card",children:[o.jsx("div",{className:"command-editor-header",children:o.jsxs("h4",{className:"command-editor-title",children:["Command: !",a.commandTrigger||"..."]})}),o.jsxs("div",{className:"command-editor-grid",children:[o.jsx(en,{labeltxt:"Command Name",name:"commandName",value:a.commandName,id:"commandName"+a.commandIdx,error:u.commandName,onChange:l}),o.jsx(en,{name:"commandTrigger",labeltxt:"Trigger (no !)",value:a.commandTrigger,id:"trigger-"+a.commandIdx,placeholder:"test",error:u.trigger,onChange:l}),o.jsx("div",{className:"command-editor-full-width",children:o.jsx(en,{type:"textarea",name:"commandText",labeltxt:"Response Text",value:a.commandText,id:"commandText"+a.commandIdx,placeholder:"Your awesome command",error:u.commandText,onChange:l,rows:2})}),o.jsxs("div",{className:"command-level-container",children:[o.jsx("span",{className:"command-level-label",children:"Permission Level"}),o.jsxs("div",{className:"command-level-dropdown-group",children:[o.jsxs(bt,{id:"command-level-dropdown-"+a.commandIdx,drop:"down",children:[o.jsx(bt.Toggle,{className:"command-dropdown-toggle",children:t||"Select Level"}),o.jsx(bt.Menu,{className:"dropdownMenu",children:e.map((d,f)=>o.jsx(bt.Item,{onClick:()=>{r(d)},children:d},"dropcat-"+f))})]}),o.jsx("div",{className:"command-level-display",children:t})]})]}),o.jsx(en,{name:"coolDownDuration",labeltxt:"Cooldown (sec)",value:a.coolDownDuration,id:"cooldown-"+a.commandIdx,placeholder:0,error:u.coolDownDuration,type:"number",onChange:l}),o.jsx("div",{className:"as-streamer-row",children:o.jsx(et.Check,{type:"checkbox",id:"asStreamer-"+a.commandIdx,label:"Post as Streamer",className:"as-streamer-check",checked:a.asStreamer,onChange:l})})]}),o.jsxs("div",{className:"command-editor-footer",children:[o.jsx(Je,{className:"btn-delete-command",onClick:()=>n.deleteCommand(n.command.uuid),children:"Delete"}),o.jsx(Je,{className:"green-click-button",type:"submit",children:"Save Command"})]})]})})}const uX=[{id:"safeMode",setting:"safeMode",label:"Safe Mode",severity:"warning",description:"Quickly applies stricter chat requirements during bot raids or negative coordinated activity while still allowing regular users who meet safety criteria to chat."},{id:"modsOnly",setting:"modsOnly",label:"Mods Only",severity:"danger",description:"Only mods and VIP-type users are allowed to chat. Use this when chat needs to be locked down immediately."}],Xy=[{id:"requireEmail",setting:"requireEmailVerified",label:"Require Verified Email",group:"Access",description:"Requires users to verify their email address before they can chat."},{id:"requireFollow",setting:"requireFollowChannel",label:"Require Following",group:"Access",description:"Requires users to follow your channel before chatting. Mods and VIP-type users can still chat."},{id:"requireSub",setting:"requireSubChannel",label:"Require Subscription",group:"Access",description:"Requires users to be subscribed at any tier before chatting. Mods and VIP-type users can still chat."},{id:"enableAutomod",setting:"automaticModeration",label:"Automod Enabled",group:"Moderation",description:"Enables automatic moderation. You can whitelist words and phrases, and use your banned word list for additional filtering."},{id:"showResMsgs",setting:"showRestrictedMessages",label:"Show Restricted Messages",group:"Moderation",description:"Shows messages caught by automod when enabled. If disabled, caught messages are blocked without appearing."},{id:"blockFriendsOfBanned",setting:"blockFriendsOfBannedAccounts",label:"Block Friends of Banned Accounts",group:"Moderation",description:"Prevents users who are friends with banned accounts from chatting. Use with caution. Mods and the streamer are excluded."}],Zy=[{id:"slowChatTime",setting:"delayBetweenMessageTimeSeconds",label:"Slow Chat Message Time",suffix:"Seconds",type:"number",description:"The number of seconds users must wait between sending messages. Set to 0 to disable slow chat."},{id:"requiredMinimumAccountAge",setting:"requiredMinimumAccountAge",label:"Required Minimum Account Age",suffix:"Hours",type:"number",description:"The minimum account age required before a user can chat. Set to 0 to disable this requirement."},{id:"bannedWordMsg",setting:"bannedWordMessage",label:"Banned Word Message",type:"textarea",description:"The private message shown to a user when their chat is blocked by your banned word list."},{id:"autoModMsg",setting:"autoModMessage",label:"Auto Mod Message",type:"textarea",description:"The private message shown to a user when their chat is blocked by Strim.Fun automod restrictions."},{id:"bannedWordList",setting:"bannedWordList",label:"Banned Word List",type:"textarea",description:"A comma-separated list of words and phrases to block in your chat. Spaces inside phrases are allowed;
1489 commas separate entries."}];function dX(n){const[e,t]=S.useState(n.chatSettings??{}),[r,s]=S.useState(null),[i,a]=S.useState(!1);S.useMemo(()=>Xy.filter(({setting:x})=>!!(e!=null&&e[x])).length,[e]);const l=S.useMemo(()=>{const x={};return Xy.forEach(b=>{x[b.group]||(x[b.group]=[]),x[b.group].push(b)}),x},[]),u=(x,b)=>Pe.put(Ft+"/channel/settings/chat",{channel:n.channelName,setting:x,value:b}),d=(x,b)=>{const E=e==null?void 0:e[x];t({...e,[x]:b}),s(x),u(x,b).then(T=>{Tt(T.data.message)}).catch(T=>{var w,R;t({...e,[x]:E}),je(((R=(w=T.response)==null?void 0:w.data)==null?void 0:R.error)||"Failed to update chat setting")}).finally(()=>{s(null)})},f=(x,b)=>{a(!0),t({...e,[x]:b})},m=()=>{const x=Zy.map(({setting:b})=>u(b,e==null?void 0:e[b]));Promise.all(x).then(()=>{Tt("Chat input controls updated successfully"),a(!1)}).catch(b=>{var E,T;je(((T=(E=b.response)==null?void 0:E.data)==null?void 0:T.error)||"Failed to update input controls")})},p=({id:x,setting:b,label:E,description:T})=>{const w=r===b;return o.jsxs("div",{className:"toggle-row",children:[o.jsxs("div",{className:"toggle-info",children:[o.jsx("span",{className:"toggle-label",children:E}),o.jsx("p",{className:"toggle-description",children:T})]}),o.jsx(et.Check,{type:"switch",id:x,label:w?"Saving...":"",checked:!!(e!=null&&e[b]),disabled:w,onChange:R=>d(b,R.target.checked)})]},b)},y=({id:x,setting:b,label:E,suffix:T,type:w,description:R})=>{const I=(e==null?void 0:e[b])??"";return o.jsxs("div",{className:"input-field-group",children:[o.jsxs("div",{className:"input-field-header",children:[o.jsx("span",{className:"input-field-label",children:E}),o.jsx("span",{className:"input-field-description",children:R})]}),o.jsx("div",{className:"input-wrapper",children:w==="textarea"?o.jsx("textarea",{id:x,className:"modern-textarea",value:I,onChange:L=>f(b,L.target.value)}):o.jsxs(o.Fragment,{children:[o.jsx("input",{id:x,className:"modern-input",type:w,value:I,onChange:L=>f(b,L.target.value)}),T&&o.jsx("span",{className:"input-suffix",children:T})]})})]},b)},v=({id:x,setting:b,label:E,severity:T,description:w})=>{const R=r===b,I=!!(e!=null&&e[b]);return o.jsxs("article",{className:`emergency-card emergency-card-${T}`,children:[o.jsxs("div",{className:"emergency-card-header",children:[o.jsx("h3",{className:"emergency-card-title",children:E}),o.jsx("span",{className:`emergency-status-badge ${I?"emergency-status-active":"emergency-status-inactive"}`,children:I?"Active":"Off"})]}),o.jsx("p",{className:"emergency-card-description",children:w}),o.jsx(et.Check,{type:"switch",id:x,label:R?"Saving...":I?"Enabled":"Disabled",checked:I,disabled:R,onChange:L=>d(b,L.target.checked)})]},b)};return o.jsxs("div",{className:"chat-settings-container",children:[o.jsxs("header",{className:"chat-settings-header",children:[o.jsx("h2",{className:"chat-settings-title",children:"Chat Settings & Safety"}),o.jsx("p",{className:"chat-settings-description",children:"Configure how users interact with your chat. Emergency controls apply instantly, while advanced input controls require saving."})]}),o.jsxs("section",{children:[o.jsxs("div",{className:"chat-settings-header",children:[o.jsx("p",{className:"chat-settings-eyebrow",children:"Immediate Action"}),o.jsx("h3",{className:"toggle-group-title",children:"Emergency Controls"})]}),o.jsx("div",{className:"emergency-controls-grid",children:uX.map(v)})]}),o.jsxs("section",{children:[o.jsxs("div",{className:"chat-settings-header",children:[o.jsx("p",{className:"chat-settings-eyebrow",children:"Access & Filtering"}),o.jsx("h3",{className:"toggle-group-title",children:"Standard Toggles"})]}),o.jsx("div",{className:"channel-management-card-grid",children:Object.entries(l).map(([x,b])=>o.jsxs("div",{className:"toggle-group-card",children:[o.jsxs("div",{className:"toggle-group-header",children:[o.jsx("span",{className:"chat-settings-eyebrow",children:x}),o.jsxs("h4",{className:"toggle-group-title",children:[x," Settings"]})]}),o.jsx("div",{className:"toggle-rows-container",children:b.map(p)})]},x))})]}),o.jsxs("section",{className:"input-controls-card",children:[o.jsxs("div",{className:"toggle-group-header",children:[o.jsx("p",{className:"chat-settings-eyebrow",children:"Advanced Configuration"}),o.jsx("h3",{className:"toggle-group-title",children:"Input Controls"}),o.jsx("p",{className:"chat-settings-description",children:"Fine-tune your chat experience with custom messages and specific limits."})]}
1489),o.jsx("div",{className:"input-controls-grid",children:Zy.map(y)}),o.jsxs("div",{className:"save-actions-bar",children:[i&&o.jsxs("div",{className:"unsaved-badge",children:[o.jsx("div",{className:"unsaved-dot"}),"Unsaved Changes"]}),o.jsx(Je,{className:"green-click-button channel-management-action-button",type:"button",disabled:!i,onClick:m,children:"Save Controls"})]})]})]})}function lh({show:n,onClose:e,eyebrow:t,title:r,description:s,children:i,loading:a=!1,primaryActionLabel:l,onPrimaryAction:u,primaryActionType:d="button",primaryActionDisabled:f=!1,secondaryActionLabel:m="Close",destructiveActionLabel:p,onDestructiveAction:y,size:v="lg"}){return n&&a?_n:o.jsxs(ut,{show:n,backdrop:"static",onHide:e,centered:!0,size:v,contentClassName:"strim-modal-content",dialogClassName:"channel-asset-modal",children:[o.jsxs("div",{className:"channel-asset-modal-header strim-modal-header",children:[o.jsxs("div",{className:"channel-asset-modal-header-content",children:[t&&o.jsx("p",{className:"channel-asset-modal-eyebrow",children:t}),o.jsx("h2",{className:"channel-asset-modal-title strim-modal-title",children:r}),s&&o.jsx("p",{className:"channel-asset-modal-description",children:s})]}),o.jsx("button",{className:"channel-asset-modal-close",type:"button",onClick:e,"aria-label":"Close modal",children:"×"})]}),o.jsx("div",{className:"channel-asset-modal-body strim-modal-body",children:i}),o.jsxs("div",{className:"channel-asset-modal-footer strim-modal-footer",children:[o.jsx(Je,{className:"grey-click-button channel-asset-modal-action",type:"button",onClick:e,children:m}),p&&o.jsx(Je,{className:"channel-asset-modal-danger-action",type:"button",onClick:y,children:p}),l&&o.jsx(Je,{className:"green-click-button channel-asset-modal-action",type:d,disabled:f,onClick:u,children:l})]})]})}function fX(n){var u,d,f,m;const[e,t]=S.useState(!1),[r,s]=S.useState(null);S.useEffect(()=>{var p;!n.emoteModalVisible||!((p=n.emote)!=null&&p.emoteName)||(t(!0),Pe.get(`${kt}/channel/emotes?emote=${n.emote.emoteName}`).then(y=>{s(y.data)}).catch(y=>{console.log(y)}).finally(()=>{t(!1)}))},[n.emoteModalVisible,(u=n.emote)==null?void 0:u.emoteName]);const i=()=>{n.setModalVisible(!1)},a=()=>{Pe.delete(`${kt}/channel/emotes?channel=${n.channelName}&emoteName=${n.emote.emoteName}`).then(p=>{Tt(p.data.message),n.reloadData(),i()}).catch(p=>{var y,v;je(((v=(y=p.response)==null?void 0:y.data)==null?void 0:v.error)||"Failed to delete emote")})},l=(p,y)=>o.jsxs("div",{className:"channel-asset-modal-stat-card",children:[o.jsx("span",{className:"channel-asset-modal-stat-label",children:p}),o.jsx("strong",{className:"channel-asset-modal-stat-value",children:y??"—"})]});return o.jsx(lh,{show:n.emoteModalVisible,onClose:i,eyebrow:"Emote Details",title:((d=n.emote)==null?void 0:d.emoteName)||"Emote Stats",description:"Review this emote and manage its availability on your channel.",loading:e,destructiveActionLabel:"Delete Emote",onDestructiveAction:a,children:o.jsxs("div",{className:"channel-asset-modal-form",children:[o.jsxs("div",{className:"channel-asset-modal-card",children:[o.jsx("h3",{children:"Preview"}),((f=n.emote)==null?void 0:f.emoteImg)&&Ht(n.emote.emoteFileType??"png",n.emote.emoteImg,n.emote.emoteName,n.emote.emoteName,void 0,"channel-asset-modal-preview"),o.jsxs("p",{className:"channel-asset-modal-muted",children:["Restriction Level: ",o.jsx("b",{children:((m=n.emote)==null?void 0:m.emoteRestrictionLevel)??"Unknown"})]})]}),o.jsxs("div",{className:"channel-asset-modal-card",children:[o.jsx("h3",{children:"Stats"}),o.jsx("p",{className:"channel-asset-modal-muted",children:"Detailed emote usage stats can be connected here when the stats endpoint is ready."}),o.jsxs("div",{className:"channel-asset-modal-stat-grid",children:[l("Uses",r==null?void 0:r.uses),l("Unique Users",r==null?void 0:r.uniqueUsers),l("Last Used",r==null?void 0:r.lastUsed)]})]})]})})}const Bw=n=>Bt().required(`${n} is required`).test(`${n} may not contain special characters`,`${n} may not contain special characters`,e=>!Da(e)).max(10,`${n} may not be longer than 10 characters`).min(2,`${n} must be at least 2 characters`),Qy=["Follower","Tier 1","Tier 2","Tier 3","Tier 4","Tier 5"];function hX(n){const[e,t]=S.useState(""),[r,s]=S.useState(Qy[n.selectedLevel]??"Follower"),i=S.useMemo(()=>e!=null&&e.file?URL.createObjectURL(e.file):null,[e]),a=()=>{t(""),n.setModalVisible(!1)},l=u=>{if(!e){je("Please upload an emote image");return}const d=e.type||"png";Pe.post(`${kt}/channel/emotes?channel=${n.channelName}&emoteName=${u.emoteName}&emoteRestrictionLevel=${r}&emoteFileType=${d}`,{emoteImg:e},{headers:{"Content-Type":"multipart/form-data"}}).then(f=>{Tt(f.data.message),n.reloadData(),a()}).catch(f=>{var m,p;je(((p=(m=f.response)==null?void 0:m.data)==null?void 0:p.error)||"Failed to upload emote")})};return o.jsx(xr,{validationSchema:Bw(),validateOnBlur:!0,onSubmit:u=>l(u),validateOnChange:!0,initialValues:{emoteName:""},enableReinitialize:!0,children:({handleSubmit:u,values:d,handleChange:f,errors:m})=>o.jsx(lh,{show:n.emoteModalVisible,onClose:a,eyebrow:"Upload Emote",title:"Add Channel Emote",description:"Create a new 64x64 chat emote for a follower or supporter tier.",primaryActionLabel:"Upload Emote",onPrimaryAction:u,children:o.jsxs(et,{className:"channel-asset-modal-form",noValidate:!0,onSubmit:u,children:[o.jsxs("div",{className:"channel-asset-modal-card",children:[o.jsx("h3",{children:"Emote Name"}),o.jsxs("p",{className:"channel-asset-modal-muted",children:["Your channel prefix is ",o.jsx("b",{children:n.channelEmoteId}),". It will appear before your emote names."]}),o.jsx(en,{name:"emoteName",labeltxt:`Emote Name: ${n.channelEmoteId}`,value:d.emoteName,placeholder:"",error:m.emoteName,onChange:f})]}),o.jsxs("div",{className:"channel-asset-modal-card",children:[o.jsx("h3",{children:"Access Level"}),o.jsx("p",{className:"channel-asset-modal-muted",children:"Choose who can use this emote."}),o.jsx("div",{className:"channel-asset-modal-select-grid",children:Qy.map(p=>o.jsx("button",{className:`channel-asset-modal-select-card ${r===p?"channel-asset-modal-select-card-active":""}`,type:"button",onClick:()=>s(p),children:p},p))})]}),o.jsxs("div",{className:"channel-asset-modal-card",children:[o.jsx("h3",{children:"Image"}),i?o.jsx("img",{className:"channel-asset-modal-preview",src:i,alt:"Emote upload preview"}):o.jsx("div",{className:"channel-asset-modal-preview-empty",children:"No emote uploaded"}),o.jsx("div",{className:"channel-asset-modal-upload-action",children:o.jsx(Fa,{id:"chanEmoteUpload",setValue:t})}),o.jsxs("p",{className:"channel-asset-modal-muted",children:["Emote uploads must be one of ",o.jsxs("i",{children:[Wf,", .gif"]}
1489)," and no larger than"," ",Kf,". All images will be scaled to 64x64."]}),o.jsxs("p",{className:"channel-asset-modal-muted",children:["All images must follow ",o.jsx("a",{href:"/info/tos",children:"Community Guidelines"}),"."]})]})]})})})}const mX=["Follower","Tier 1 Subscriber","Tier 2 Subscriber","Tier 3 Subscriber","Tier 4 Subscriber","Tier 5 Subscriber"];function pX(n){const[e,t]=S.useState(!1),[r,s]=S.useState(!1),[i,a]=S.useState(0),[l,u]=S.useState({}),d=T=>{var w,R;return((R=(w=n.emoteSettings)==null?void 0:w.maxEmotesForChannelLevel)==null?void 0:R[T])??0},f=T=>{var w;return((w=n.channelEmotes)==null?void 0:w[T])??[]},m=T=>f(T).filter(Boolean).length,p=T=>{a(T),t(!0)},y=T=>{u(T),s(!0)},v=T=>{const w=T==null?void 0:T.toLowerCase();return w==="pending"?o.jsx("span",{className:"channel-asset-status-badge channel-asset-status-pending",children:"Pending"}):w==="denied"?o.jsx("span",{className:"channel-asset-status-badge channel-asset-status-denied",children:"Denied"}):o.jsx("span",{className:"channel-asset-status-badge channel-asset-status-live",children:"Live"})},x=(T,w)=>o.jsxs("button",{className:"channel-asset-slot channel-asset-slot-empty channel-asset-slot-clickable",type:"button",onClick:()=>p(T),children:[o.jsx("span",{className:"channel-asset-empty-plus",children:"+"}),o.jsx("span",{className:"channel-asset-empty-label",children:"Add Emote"}),o.jsxs("span",{className:"channel-asset-empty-subtitle",children:["Slot ",w+1]})]},`emote-empty-${T}-${w}`),b=(T,w,R)=>{const I=T.emoteRestrictionLevel!=="pending"&&T.emoteRestrictionLevel!=="denied";return o.jsxs("button",{className:`channel-asset-slot ${I?"channel-asset-slot-clickable":""}`,type:"button",disabled:!I,onClick:()=>{I&&y(T)},title:I?`View ${T.emoteName} stats`:T.emoteName,children:[Ht(T.emoteFileType??"png",T.emoteImg,T.emoteName,T.emoteName,void 0,"channel-asset-img"),o.jsx("p",{className:"channel-asset-name",children:T.emoteName}),v(T.emoteRestrictionLevel)]},`emote-${w}-${R}-${T.emoteId??T.emoteName}`)},E=T=>{const w=d(T),R=f(T);return new Array(w).fill("").map((I,L)=>{const N=R[L];return N?b(N,T,L):x(T,L)})};return n.emoteSettings?o.jsxs("section",{id:"emoteControl",className:"channel-asset-control",children:[o.jsx(hX,{emoteModalVisible:e,setModalVisible:t,channelName:n.channelName,channelEmoteId:n.channelEmoteId,selectedLevel:i,reloadData:n.reloadData}),o.jsx(fX,{emoteModalVisible:r,setModalVisible:s,channelName:n.channelName,emote:l,reloadData:n.reloadData}),o.jsxs("header",{className:"channel-asset-header",children:[o.jsxs("div",{children:[o.jsx("h3",{children:"Channel Emotes"}),o.jsx("p",{children:"Upload and manage chat emotes by follower and supporter tier. Approved emotes can be clicked to view stats."})]}),o.jsxs("span",{className:"channel-asset-count-badge",children:["Max ",n.emoteSettings.maxEmotesPerChannel]})]}),o.jsx("div",{className:"channel-asset-level-list",children:mX.map((T,w)=>o.jsxs("article",{className:"channel-asset-level-card",children:[o.jsxs("div",{className:"channel-asset-level-meta",children:[o.jsx("span",{className:"channel-asset-level-kicker",children:"Emote Tier"}),o.jsx("h4",{className:"channel-asset-level-title",children:T}),o.jsxs("p",{className:"channel-asset-level-subtitle",children:[m(w)," / ",d(w)," slots used"]})]}),o.jsx("div",{className:"channel-asset-slot-grid",children:E(w)})]},`emote-level-${T}`))})]}):null}const gX=["Follower","Sub Tier-1","Sub Tier-2","Sub Tier-3","Sub Tier-4","Sub Tier-5"],yX=["New","3-Month","6-Month","12-Month","2-Years"];function vX(n){const[e,t]=S.useState(""),[r,s]=S.useState("Follower"),[i,a]=S.useState("New"),l=S.useMemo(()=>e!=null&&e.file?URL.createObjectURL(e.file):null,[e]),u=()=>{t(""),n.setModalVisible(!1)},d=f=>{if(!e){je("Please upload an icon image");return}Pe.post(`${kt}/channel/icons?channel=${n.channelName}&iconName=${f.iconName}&iconRestrictionLevel=${r}&iconDuration=${i}`,{iconImg:e},{headers:{"Content-Type":"multipart/form-data"}}).then(m=>{Tt(m.data.message),n.reloadData(),u()}).catch(m=>{var p,y;je(((y=(p=m.response)==null?void 0:p.data)==null?void 0:y.error)||"Failed to upload icon")})};return o.jsx(xr,{validationSchema:Bw(),validateOnBlur:!0,onSubmit:f=>d(f),validateOnChange:!0,initialValues:{iconName:""},children:({handleSubmit:f,values:m,handleChange:p,errors:y})=>o.jsx(lh,{show:n.iconModalVisible,onClose:u,eyebrow:"Upload Icon",title:"Add Channel Icon",description:"Create a 64x64 supporter badge for a subscription tier and duration.",primaryActionLabel:"Upload Icon",onPrimaryAction:f,children:o.jsxs(et,{className:"channel-asset-modal-form",noValidate:!0,onSubmit:f,children:[o.jsxs("div",{className:"channel-asset-modal-card",children:[o.jsx("h3",{children:"Icon Name"}),o.jsx(en,{name:"iconName",labeltxt:"Icon Name",value:m.iconName,placeholder:"",error:y.iconName,onChange:p})]}),o.jsxs("div",{className:"channel-asset-modal-card",children:[o.jsx("h3",{children:"Supporter Tier"}),o.jsx("p",{className:"channel-asset-modal-muted",children:"Choose which supporter tier this icon belongs to."}),o.jsx("div",{className:"channel-asset-modal-select-grid",children:gX.map(v=>o.jsx("button",{className:`channel-asset-modal-select-card ${r===v?"channel-asset-modal-select-card-active":""}`,type:"button",onClick:()=>s(v),children:v},v))})]}),o.jsxs("div",{className:"channel-asset-modal-card",children:[o.jsx("h3",{children:"Subscription Duration"}),o.jsx("p",{className:"channel-asset-modal-muted",children:"Choose when this icon becomes available for the selected supporter tier."}),o.jsx("div",{className:"channel-asset-modal-select-grid",children:yX.map(v
1489=>o.jsx("button",{className:`channel-asset-modal-select-card ${i===v?"channel-asset-modal-select-card-active":""}`,type:"button",onClick:()=>a(v),children:v.replace("-"," ")},v))})]}),o.jsxs("div",{className:"channel-asset-modal-card",children:[o.jsx("h3",{children:"Image"}),l?o.jsx("img",{className:"channel-asset-modal-preview",src:l,alt:"Icon upload preview"}):o.jsx("div",{className:"channel-asset-modal-preview-empty",children:"No icon uploaded"}),o.jsx("div",{className:"channel-asset-modal-upload-action",children:o.jsx(Fa,{id:"chanIconUpload",setValue:t})}),o.jsxs("p",{className:"channel-asset-modal-muted",children:["Icon uploads must be one of ",o.jsxs("i",{children:[Wf,", .gif"]})," and no larger than"," ",Kf,". All images will be scaled to 64x64."]}),o.jsxs("p",{className:"channel-asset-modal-muted",children:["All images must follow ",o.jsx("a",{href:"/info/tos",children:"Community Guidelines"}),"."]})]})]})})})}function xX(n){var r,s,i,a;const e=()=>{n.setModalVisible(!1)},t=()=>{Pe.delete(`${kt}/channel/icons?channel=${n.channelName}&iconId=${n.icon.iconId}`).then(l=>{Tt(l.data.message),n.reloadData(),e()}).catch(l=>{var u,d;je(((d=(u=l.response)==null?void 0:u.data)==null?void 0:d.error)||"Failed to delete icon")})};return o.jsx(lh,{show:n.iconModalVisible,onClose:e,eyebrow:"Icon Details",title:((r=n.icon)==null?void 0:r.iconName)||"Channel Icon",description:"Manage this supporter icon's availability on your channel.",destructiveActionLabel:"Delete Icon",onDestructiveAction:t,children:o.jsx("div",{className:"channel-asset-modal-form",children:o.jsxs("div",{className:"channel-asset-modal-card",children:[o.jsx("h3",{children:"Preview"}),((s=n.icon)==null?void 0:s.iconImg)&&Ht(n.icon.iconFileType??"png",n.icon.iconImg,n.icon.iconName,n.icon.iconName,void 0,"channel-asset-modal-preview"),o.jsxs("div",{className:"mt-3",children:[o.jsxs("p",{className:"channel-asset-modal-muted mb-1",children:["Icon Name: ",o.jsx("b",{children:((i=n.icon)==null?void 0:i.iconName)??"Unnamed"})]}),o.jsxs("p",{className:"channel-asset-modal-muted mb-0",children:["Restriction Level: ",o.jsx("b",{children:((a=n.icon)==null?void 0:a.iconRestrictionLevel)??"Unknown"})]})]})]})})})}const CX=["Follower","Tier 1 Subscriber","Tier 2 Subscriber","Tier 3 Subscriber","Tier 4 Subscriber","Tier 5 Subscriber"],dm=["New","3-Month","6-Month","12-Month","2-Years"],Jy=["1+ Drops","1,000 Drops","5,000 Drops","10,000 Drops","25,000 Drops","50,000 Drops","100,000+ Drops"];function bX(n){var b,E;const[e,t]=S.useState(!1),[r,s]=S.useState(!1),[i,a]=S.useState(null),l=T=>{var w,R;return((R=(w=n.iconSettings)==null?void 0:w.maxIconsPerChannelLevel)==null?void 0:R[T])??dm.length},u=T=>{var w;return((w=n.channelIcons)==null?void 0:w[T])??[]},d=T=>{const w=l(T),R=new Array(w).fill(null);return u(T).forEach(L=>{var j,F;const N=(F=(j=L==null?void 0:L.iconRestrictionLevel)==null?void 0:j.split(" "))==null?void 0:F[0],_=dm.indexOf(N);_>=0&&_<R.length&&(R[_]=L)}),R},f=T=>d(T).filter(Boolean).length,m=()=>{t(!0)},p=(T,w)=>o.jsxs("button",{className:"channel-asset-slot channel-asset-slot-empty channel-asset-slot-clickable",type:"button",onClick:m,children:[o.jsx("span",{className:"channel-asset-empty-plus",children:"+"}),o.jsx("span",{className:"channel-asset-empty-label",children:"Add Icon"}),o.jsx("span",{className:"channel-asset-empty-subtitle",children:T})]},w),y=(T,w,R)=>o.jsxs("button",{className:"channel-asset-slot channel-asset-slot-clickable",type:"button",onClick:()=>{a(T),s(!0)},title:T.iconName??T.iconRestrictionLevel,children:[Ht(T.iconFileType??"png",T.iconImg,T.iconName??"icon",T.iconName??"Channel icon",void 0,"channel-asset-img"),o.jsx("p",{className:"channel-asset-name",children:T.iconName??w}),o.jsx("p",{className:"channel-asset-detail",children:T.iconRestrictionLevel})]},R),v=T=>d(T).map((w,R)=>{const I=dm[R]??`Slot ${R+1}`;return w?y(w,I,`icon-${T}-${R}-${w.iconId??I}`):p(I,`icon-empty-${T}-${R}`)}),x=(T,w)=>{var I;const R=(I=n.channelDropIcons)==null?void 0:I[w];return R?o.jsxs("button",{className:"channel-asset-slot channel-asset-slot-clickable",type:"button",onClick:()=>{a({iconImg:R,iconName:T,iconRestrictionLevel:"Drop Supporter",iconFileType:"png"}),s(!0)},title:T,children:[Ht("png",R,`drop-icon-${w}`,`${T}
1489 supporter icon`,void 0,"channel-asset-img"),o.jsx("p",{className:"channel-asset-name",children:T}),o.jsx("p",{className:"channel-asset-detail",children:"Drop Supporter"})]},`drop-icon-${w}`):p(T,`drop-icon-empty-${w}`)};return n.iconSettings?o.jsxs("section",{id:"iconControl",className:"channel-asset-control",children:[o.jsx(vX,{iconModalVisible:e,setModalVisible:t,channelName:n.channelName,reloadData:n.reloadData}),o.jsx(xX,{iconModalVisible:r,setModalVisible:s,channelName:n.channelName,icon:i,reloadData:n.reloadData}),o.jsxs("header",{className:"channel-asset-header",children:[o.jsxs("div",{children:[o.jsx("h3",{children:"Channel Icons"}),o.jsx("p",{children:"Manage supporter icons by subscription tier and subscription age. Icons appear as visual badges around your channel."})]}),o.jsxs("span",{className:"channel-asset-count-badge",children:["Max ",n.iconSettings.maxIconsPerChannel]})]}),o.jsx("div",{className:"channel-asset-level-list",children:CX.map((T,w)=>o.jsxs("article",{className:"channel-asset-level-card",children:[o.jsxs("div",{className:"channel-asset-level-meta",children:[o.jsx("span",{className:"channel-asset-level-kicker",children:"Icon Tier"}),o.jsx("h4",{className:"channel-asset-level-title",children:T}),o.jsxs("p",{className:"channel-asset-level-subtitle",children:[f(w)," / ",l(w)," slots used"]})]}),o.jsx("div",{className:"channel-asset-slot-grid",children:v(w)})]},`icon-level-${T}`))}),o.jsxs("div",{className:"channel-asset-subsection",children:[o.jsxs("header",{className:"channel-asset-subsection-header",children:[o.jsx("h3",{children:"Drop Supporter Icons"}),o.jsx("p",{children:"Special icons based on viewer drop support milestones."})]}),o.jsxs("div",{className:"channel-asset-level-card",children:[o.jsxs("div",{className:"channel-asset-level-meta",children:[o.jsx("span",{className:"channel-asset-level-kicker",children:"Drop Support"}),o.jsx("h4",{className:"channel-asset-level-title",children:"Support Milestones"}),o.jsxs("p",{className:"channel-asset-level-subtitle",children:[((E=(b=n.channelDropIcons)==null?void 0:b.filter(Boolean))==null?void 0:E.length)??0," / ",Jy.length," slots used"]})]}),o.jsx("div",{className:"channel-asset-slot-grid",children:Jy.map((T,w)=>x(T,w))})]})]})]}):null}const SX=br({redeemName:Bt().required("Redeem Name is required").nonNullable().min(3,"Must be at least 3 characters").max(25,"May be no more than 25 characters"),redeemCost:M5().required("Redeem Cost is required").positive("Cost must be positive"),redeemDescription:Bt().required("Redeem Description is required").max(160,"May be no more than 160 characters"),redeemCooldown:M5().required("Redeem Cooldown is required").min(0,"Cooldown may not be negative")});function EX(n){const e=t=>{Pe.post(`${kt}/stream/${n.channelName}/watchRedeem`,{redeemName:t.redeemName,redeemCost:t.redeemCost,redeemDescription:t.redeemDescription,redeemCooldown:t.redeemCooldown,userCoolDown:0,customImage:[]}).then(r=>{var s,i;Tt(((s=r.data)==null?void 0:s.message)||"Redeem created successfully"),(i=n.onCreated)==null||i.call(n),n.close()}).catch(r=>{var s,i;je(((i=(s=r.response)==null?void 0:s.data)==null?void 0:i.error)||"Failed to create redeem")})};return o.jsx(xr,{validationSchema:SX,validateOnBlur:!0,onSubmit:t=>e(t),validateOnChange:!1,initialValues:{redeemName:"",redeemCost:"",redeemDescription:"",redeemCooldown:""},children:({handleSubmit:t,values:r,handleChange:s,errors:i})=>o.jsx(D8,{className:"channel-management-form",onSubmit:t,validateOnBlur:!0,children:o.jsxs("section",{className:"channel-management-form-card",children:[o.jsx("h3",{children:"Add Redeem"}),o.jsx("p",{className:"channel-management-muted",children:"Create a new channel point redeem for viewers to spend their watch points on."}),o.jsxs("div",{className:"channel-management-detail-grid",children:[o.jsxs("div",{className:"channel-management-detail",children:[o.jsx("span",{className:"channel-management-detail-label",children:"Redeem Name"}),o.jsx("span",{className:"channel-management-detail-description",children:"The public name viewers see when choosing this reward."})]}),o.jsxs("div",{className:"channel-management-detail",children:[o.jsx("span",{className:"channel-management-detail-label",children:"Point Cost"}),o.jsx("span",{className:"channel-management-detail-description",children:"How many channel points a viewer must spend."})]}),o.jsxs("div",{className:"channel-management-detail",children:[o.jsx("span",{className:"channel-management-detail-label",children:"Cooldown Seconds"}),o.jsx("span",{className:"channel-management-detail-description",children:"How long viewers must wait before this redeem can be used again."})]}),o.jsxs("div",{className:"channel-management-detail",children:[o.jsx("span",{className:"channel-management-detail-label",children:"Description"}),o.jsx("span",{className:"channel-management-detail-description",children:"A short explanation of what the viewer receives or triggers."})]})]}),o.jsxs("div",{className:"channel-management-form-grid",children:[o.jsxs("div",{className:"channel-management-form-field",children:[o.jsx(en,{name:"redeemName",labeltxt:"Redeem Name",value:r.redeemName,placeholder:"",onChange:s}),i.redeemName&&o.jsx("p",{className:"channel-management-form-error",children:i.redeemName})]}),o.jsxs("div",{className:"channel-management-form-field",children:[o.jsx(en,{name:"redeemCost",labeltxt:"Point Cost",value:r.redeemCost,type:"number",placeholder:"",onChange:s}),i.redeemCost&&o.jsx("p",{className:"channel-management-form-error",children:i.redeemCost})]}),o.jsxs("div",{className:"channel-management-form-field",children:[o.jsx(en,{name:"redeemCooldown",labeltxt:"Cooldown Seconds",value:r.redeemCooldown,type:"number",placeholder:"",onChange:s}),i.redeemCooldown&&o.jsx("p",{className:"channel-management-form-error",children:i.redeemCooldown})]}),o.jsxs("div",{className:"channel-management-form-field",children:[o.jsx(en,{name:"redeemDescription",labeltxt:"Description",value:r.redeemDescription,placeholder:"",onChange:s}),i.redeemDescription&&o.jsx("p",{className:"channel-management-form-error",children:i.redeemDescription})]})]}),o.jsxs("div",{className:"channel-management-form-actions",children:[o.jsx(Je,{className:"grey-click-button channel-management-action-button",type:"button",onClick:n.close,children:"Cancel"}),o.jsx(Je,{className:"green-click-button channel-management-action-button",type:"submit",onClick:t,children:"Create Redeem"})]})]})})})}function wX(n){const[e,t]=S.useState(!0),[r,s]=S.useState([]),[i,a]=S.useState(!1);S.useEffect(()=>{l()},[n.channelName]);const l=()=>{t(!0),Pe.get(`${kt}/stream/${n.channelName}/watchRedeem`).then(m=>{s(m.data??[])}).catch(m=>{var p,y,v;je(((y=(p=m.response)==null?void 0:p.data)==null?void 0:y.error)||((v=m.response)==null?void 0:v.data)||"Failed to load channel redeems")}).finally(()=>{t(!1)})},u=m=>{Pe.delete(`${kt}/stream/${n.channelName}/watchRedeem?redeem=${m}`).then(p=>{var y;Tt(((y=p.data)==null?void 0:y.message)||p.data||"Redeem deleted successfully"),l()}).catch(p=>{var y,v,x;je(((v=(y=p.response)==null?void 0:y.data)==null?void 0:v.error)||((x=p.response)==null?void 0:x.data)||"Failed to delete redeem")})},d=m=>o.jsxs("article",{className:"channel-management-card",children:[o.jsxs("div",{className:"channel-management-card-header",children:[o.jsxs("div",{children:[o.jsx("p",{className:"channel-management-eyebrow",children:"Redeem"}),o.jsx("h3",{children:m.redeemName})]}),o.jsx(Je,{className:"channel-management-danger-button",type:"button",title:`Delete ${m.redeemName}`,onClick:()=>u(m.redeemName),children:o.jsx(rn,{icon:T8})})]}),o.jsx("p",{className:"channel-management-muted",children:m.redeemDescription}),o.jsx("hr",{}),o.jsxs("div",{className:"channel-management-detail-grid",children:[o.jsxs("div",{className:"channel-management-detail",children:[o.jsx("span",{className:"channel-management-detail-label",children:"Cost"}),o.jsx("strong",{className:"channel-management-detail-value",children:m.redeemCost})]}),o.jsxs("div",{className:"channel-management-detail",children:[o.jsx("span",{className:"channel-management-detail-label",children:"Cooldown"}),o.jsxs("strong",{className:"channel-management-detail-value",children:[m.redeemCooldown,"s"]})]})]})]},m.redeemName),f=()=>r.length===0?o.jsxs("div",{className:"channel-management-empty-state",children:[o.jsx("h3",{children:"No redeems yet"}),o.jsx("p",{children:"Create your first channel point redeem to give viewers more ways to interact."})]}):r.map(m=>d(m));return e?o.jsx("div",{className:"channel-management-panel",children:o.jsx(Ua,{})}):o.jsxs("section",{className:"channel-management-panel",children:[o.jsxs("header",{className:"channel-management-header",children:[o.jsxs("div",{children:[o.jsx("p",{className:"channel-management-eyebrow",children:"Channel Points"}),o.jsx("h3",{className:"channel-management-title",children:"Channel Redeems"}),o.jsx("p",{className:"channel-management-description",children:"Manage custom rewards viewers can redeem with channel points."})]}),o.jsxs("span",{className:"channel-management-count-badge",children:[r.length," Redeems"]})]}),o.jsx("div",{className:"channel-management-actions",children:!i&&o.jsx(Je,{className:"green-click-button channel-management-action-button",type:"button",onClick:()=>a(!0),children:"Add Redeem"})}),i&&o.jsx(EX,{channelName:n.channelName,onCreated:l,close:()=>a(!1)}),o.jsx("div",{className:"channel-management-card-grid",children:f()})]})}const TX=n=>n?n.replaceAll("_"," ").toLowerCase().replace(/\b\w/g,e=>e.toUpperCase()):"Notification",IX=n=>{switch((n??"").toUpperCase()){case"FOLLOW":case"FOLLOWED_CHANNEL":return"notification-card-type-follow";case"SUBSCRIBE":case"SUBSCRIBED_CHANNEL":return"notification-card-type-subscribe";case"CHANNEL_EVENT":return"notification-card-type-event";case"WATCH_PARTY":case"WATCH_PARTY_NOTIFICATION":return"notification-card-type-watch-party";case"FRIEND_NOTIFICATION":return"notification-card-type-friend";default:return"notification-card-type-default"}};function Uw(n){var a;const e=((a=n.notifications)==null?void 0:a.notifications)??(Array.isArray(n.notifications)?n.notifications:[]),t=l=>{var m;const u=((m=l.text)==null?void 0:m.indexOf(" "))??-1;if(u<=0)return l.text;const d=l.text.substring(0,u),f=l.text.substring(u);return o.jsxs(o.Fragment,{children:[o.jsx("a",{href:`/user/${d}`,children:d}),f]})},r=l=>(l.type??"").toUpperCase()==="FOLLOW"?t(l):l.text,s=l=>{if(!l)return"";const u=new Date(l);
1489return Number.isNaN(u.getTime())?l:u.toLocaleString()},i=()=>e.length===0?o.jsxs("div",{className:"notification-empty-state",children:[o.jsx("h4",{children:"No notifications yet"}),o.jsx("p",{children:"Channel activity and viewer interactions will appear here."})]}):e.map((l,u)=>o.jsxs("article",{className:"notification-card",children:[o.jsxs("div",{className:"notification-card-top-row",children:[o.jsx("span",{className:`notification-card-type ${IX(l.type)}`,children:TX(l.type)}),l.date&&o.jsx("span",{className:"notification-card-date",children:s(l.date)})]}),o.jsx("p",{className:"notification-card-text",children:r(l)})]},l.id??l.notificationId??`notification-${u}`));return o.jsxs("section",{id:"notificationsPanel",className:"notification-panel",children:[o.jsx("header",{className:"notification-panel-header",children:o.jsxs("div",{children:[o.jsx("h3",{children:"Notifications"}),o.jsx("span",{className:"notification-count-badge",children:e.length})]})}),o.jsx("div",{className:"notification-card-list",children:i()})]})}function RX(n){const[e,t]=S.useState([]),[r,s]=S.useState(null);S.useEffect(()=>{try{let a=`${kt}/dashboard/${n.channelName}/notifications`;const l=new EventSource(a,{withCredentials:!0});l.onopen=()=>{},l.onmessage=u=>{console.log(u.data)},l.addEventListener("notificationData",u=>{t(JSON.parse(u.data))}),l.onerror=u=>{l.close(),console.error("SSE error:",u)},s(l)}catch(a){console.log("error : "+a)}},[n.channelName]);const i=()=>{t([]);let a={target:"notifications",action:"clear",channelName:n.channelName};Pe.post(kt+"/dashboard/"+n.channelName+"/notifications",a).then(l=>{l.status===Hf.Ok&&Tt(l.data.message)}).catch(l=>{console.log(l)})};return o.jsxs("div",{className:"channel-notifications-wrapper",children:[o.jsx(Uw,{notifications:e}),o.jsx(zt,{onClick:()=>{i()},children:"Clear Notifications"})]})}const ev=["Unaffiliated","Affiliated","Rare","Epic","Legendary","","","","","Custom"],Vw=Bt().required("Channel Name must be provided").min(5,"Channel Name must be at least 5 characters").max(40,"Channel Name must be no more than 40 characters").test("Channel Name may not contain special characters","Channel Name may not contain special characters",n=>!Da(n)),Bs=n=>Bt().required(`${n} must be provided`).min(3,"Must be at least 3 characters").max(15,"Must be no more than 15 characters").test("May not contain special characters","May not contain special characters",e=>!dj(e)),AX=Bt().required("Chat Bot Name must be provided").min(5,"Chat Bot Name must be at least 5 characters").max(40,"Chat Bot Name must be no more than 40 characters").test("Chat Bot Name may not contain special characters","Chat Bot Name may not contain special characters",n=>!Da(n)),LX=br({channelName:Vw,about:Bt().nullable().optional(),watchTimeRewardName:Bs("Watch Time Reward Name"),paidPointRewardName:Bs("Paid Point Reward Name")}),NX=br({channelName:Vw,about:Bt().nullable().optional(),watchTimeRewardName:Bs("Watch Time Reward Name"),paidPointRewardName:Bs("Paid Point Reward Name"),sub1TierName:Bs("Supporter Tier 1 Name"),sub2TierName:Bs("Supporter Tier 2 Name"),sub3TierName:Bs("Supporter Tier 3 Name"),sub4TierName:Bs("Supporter Tier 4 Name"),sub5TierName:Bs("Supporter Tier 5 Name")}),kX=br({chatBotName:AX});function PX(n){const e=Ft+"/channel",[t,r]=S.useState(!0),[s,i]=S.useState({}),[a,l]=S.useState(""),[u,d]=S.useState({}),[f,m]=S.useState([]),[p,y]=S.useState([]),[v,x]=S.useState([]),[b,E]=S.useState([]),[T,w]=S.useState([]),[R,I]=S.useState(!1),[L,N]=S.useState(""),[_,j]=S.useState({linkType:"Twitch",linkUrl:""}),[F,$]=S.useState([]),[z,W]=S.useState(!1),J=["Twitch","Discord","Youtube","Kick","Twitter","Instagram","TikTok","Facebook","Other"];S.useEffect(()=>{if(!n.loggedIn){Et("Failed to Authenticate. Please log in again"),n.logOut?n.logOut():setTimeout(()=>{window.location.replace("/")},3e3);return}oe()},[]);const oe=()=>{Pe.get(`${e}/settings?channel=${n.channelName}`).then(Q=>{i(Q.data.settings),d(Q.data.chatBotSettings),w(Q.data.channelCommands),m(Q.data.channelEmotes),y(Q.data.channelIcons),x(Q.data.emoteSettings),E(Q.data.iconSettings),N(Q.data.channelEmoteId),r(!1)}).catch(Q=>{var ge,le,pe;n.loggedIn&&(((ge=Q.response)==null?void 0:ge.status)===401||((le=Q.response)==null?void 0:le.status)===403)?(Et("Please Log In Again"),(pe=n.logOut)==null||pe.call(n)):je("failed to get channel data")}),Pe.get(`${kt}/channel/${n.channelName}`).then(Q=>{$(Q.data.links||[])}).catch(Q=>{console.log("Failed to fetch channel links",Q)})},ie=()=>{Pe.get(`${e}/key?channel=${n.channelName}`).then(Q=>{Q.data.key!==null?l(Q.data.key):Et("No Stream Key Found. Please Generate A New One")}).catch(Q=>{var ge,le;je(((le=(ge=Q.response)==null?void 0:ge.data)==null?void 0:le.error)||"Failed to retrieve stream key")})},Z=(Q,ge)=>{ge.validateForm().then(()=>{Pe.put(e+"/settings",{channelOrigName:n.channelName,channelName:Q.channelName,owningUserId:bn(),about:Q.about,restricted:Q.restricted,strict:Q.strict18,watchTimeRewardName:Q.watchTimeRewardName,paidPointRewardName:Q.paidPointRewardName,sub1TierName:Q.sub1TierName,sub2TierName:Q.sub2TierName,sub3TierName:Q.sub3TierName,sub4TierName:Q.sub4TierName,sub5TierName:Q.sub5TierName}).then(()=>{ic(),Tt("Channel information updated successfully")}).catch(le=>{var pe;console.log(le),((pe=le.response)==null?void 0:pe.status)===401?je("Unauthorized to update channel"):je("Failed to update channel information")})}).catch(le=>{console.log(le)})},X=Q=>{Pe.post(`${e}/pfp?channelId=${n.channelName}`,{channelPfp:Q},{headers:{"Content-Type":"multipart/form-data"}}).then(()=>{ic(),Tt("Channel Profile Picture Uploaded Successfully. Reload to see changes"),window.location.reload()}).catch(ge=>{var le,pe,Ie;console.log(ge),((le=ge.response)==null?void 0:le.status)===401?je("Unauthorized to update channel"):je(((Ie=(pe=ge.response)==null?void 0:pe.data)==null?void 0:Ie.error)||"Failed to update channel profile picture")})},ue=Q=>{Pe.post(`${e}/banner?channelId=${n.channelName}`,{bannerPicture:Q},{headers:{"Content-Type":"multipart/form-data"}}).then(()=>{ic(),Tt("Banner Uploaded Successfully. Reload to see changes"),window.location.reload()}).catch(ge=>{var le,pe;console.log(ge),((le=ge.response)==null?void 0:le.status)===401?je("Unauthorized to update channel"):((pe=ge.response)==null?void 0:pe.status)===400?je(ge.response.data.error):je("Failed to update channel banner")})},se=Q=>{Pe.post(kt+"/channel/bot",{channel:n.channelName,chatBotName:Q.chatBotName}).then(()=>{ic(),Tt("Channel information updated successfully")}).catch(ge=>{var le;console.log(ge),((le=ge.response)==null?void 0:le.status)===401?je("Unauthorized to update channel"):je("Failed to update chat bot settings")})},G=()=>{var ge,le,pe;const Q=new Date;return Q.setFullYear(Q.getFullYear()-18),n.userData===void 0||((ge=n.userData.contactInfo)==null?void 0:ge.birthday)===void 0||((le=n.userData.contactInfo)==null?void 0:le.over18)===void 0||((pe=n.userData.contactInfo)==null?void 0:pe.birthday)===new Date(0)?(je("Cannot set restrictions on channel without providing an age for your user first"),!1):n.userData.contactInfo.birthday>Q||!n.userData.contactInfo.over18?(je("Cannot set channel to 18+ if user is under 18."),!1):!0},ee=()=>{const Q=document.getElementById("streamKeyInput");if(!Q||!Q.value){Et("Retrieve your stream key before copying it");return}Q.select(),Q.setSelectionRange(0,99999),navigator.clipboard.writeText(Q.value),Et("Copied To Clipboard! Be Careful!")},Ee=Q=>{Pe.delete(`${kt}/channel/bot?channel=${n.channelName}&commandId=${Q}`).then(ge=>{Tt(ge.data.message)}
1489).catch(ge=>{var le,pe;je(((pe=(le=ge.response)==null?void 0:le.data)==null?void 0:pe.error)||"Failed to delete command")}),w(T.filter(ge=>ge.uuid!==Q))},Ce=()=>{w([...T,{commandName:"new command",commandText:"",commandLevel:"",coolDownDuration:0,commandIdx:null,commandTrigger:"",uuid:window.crypto.randomUUID()}])},Ae=()=>{var Ie;if(!_.linkUrl){je("Link URL must be provided");return}if(!_.linkUrl.startsWith("https://")){je("URL must start with https://");return}const Q=(Ie=_.linkUrl.split("/")[2])==null?void 0:Ie.toLowerCase(),ge=_.linkType;let le=!0;if(ge==="Twitch"?le=Q==null?void 0:Q.includes("twitch.tv"):ge==="Discord"?le=(Q==null?void 0:Q.includes("discord.gg"))||(Q==null?void 0:Q.includes("discord.com")):ge==="Youtube"?le=(Q==null?void 0:Q.includes("youtube.com"))||(Q==null?void 0:Q.includes("youtu.be")):ge==="Kick"?le=Q==null?void 0:Q.includes("kick.com"):ge==="Twitter"?le=(Q==null?void 0:Q.includes("twitter.com"))||(Q==null?void 0:Q.includes("x.com")):ge==="Instagram"?le=Q==null?void 0:Q.includes("instagram.com"):ge==="TikTok"?le=Q==null?void 0:Q.includes("tiktok.com"):ge==="Facebook"&&(le=Q==null?void 0:Q.includes("facebook.com")),!le&&ge!=="Other"){je(`URL does not match link type: ${ge}`);return}let pe=_.linkType;if(_.linkType==="Other"){const Ne=new Set(F.map(Fe=>Fe.linkType));if(!Ne.has("Other"))pe="Other";else{let Fe=2;for(;Ne.has(`Other ${Fe}`);)Fe++;pe=`Other ${Fe}`}}Pe.post(`${kt}/channel/${n.channelName}/links`,{linkType:pe,linkUrl:_.linkUrl}).then(()=>{Tt("Channel link updated successfully"),j({..._,linkUrl:""}),oe()}).catch(Ne=>{var Fe,Me;je(((Me=(Fe=Ne.response)==null?void 0:Fe.data)==null?void 0:Me.error)||"Failed to update channel link")})},me=Q=>{Pe.delete(`${kt}/channel/${n.channelName}/links?linkType=${encodeURIComponent(Q)}`).then(()=>{Tt("Channel link deleted successfully"),oe()}).catch(ge=>{var le,pe;je(((pe=(le=ge.response)==null?void 0:le.data)==null?void 0:pe.error)||"Failed to delete channel link")})},ve=()=>{Pe.post(`${e}/affiliation`,{channel:n.channelName,level:1}).then(()=>{Tt("Affiliation application submitted successfully"),W(!1),oe()}).catch(Q=>{var ge,le;console.log(Q),je(((le=(ge=Q.response)==null?void 0:ge.data)==null?void 0:le.error)||"Failed to apply for affiliation")})};return t?_n:o.jsxs("div",{className:"channel-settings-page",children:[o.jsxs(Uf,{id:"userTabs",defaultActiveKey:"cs1",className:"channel-settings-tabs",children:[o.jsx($n,{eventKey:"cs1",title:"Channel Information",children:o.jsxs("section",{className:"channel-settings-section",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"Channel Settings"}),o.jsx("h2",{children:"Channel Information"}),o.jsx("p",{children:"Update your public channel details, branding, and streaming credentials."})]}),o.jsx(xr,{validationSchema:LX,validateOnBlur:!1,onSubmit:(Q,ge)=>Z(Q,ge),validateOnChange:!0,initialValues:{channelName:n.channelName,about:s.about,restricted:s.restricted,strict18:s.strict,watchTimeRewardName:s.watchTimePointName,paidPointRewardName:s.paidPointName,sub1TierName:s.subTier1Name,sub2TierName:s.subTier2Name,sub3TierName:s.subTier3Name,sub4TierName:s.subTier4Name,sub5TierName:s.subTier5Name},children:({handleSubmit:Q,values:ge,handleChange:le,errors:pe})=>o.jsx(et,{noValidate:!0,onSubmit:Q,children:o.jsxs("div",{className:"channel-settings-grid",children:[o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Profile Details"}),o.jsxs("p",{className:"channel-settings-muted",children:["Channel Name: ",o.jsx("b",{children:ge.channelName})]}),o.jsx("hr",{}),o.jsx("h4",{children:"About"}),o.jsx(en,{type:"textarea",as:"textarea",rows:10,id:"about",name:"about",defaultValue:ge.about,"aria-describedby":"about",error:pe.about,onChange:le}),o.jsx("div",{className:"channel-settings-actions",children:o.jsx(Je,{className:"green-click-button channel-settings-primary-action",type:"submit",onClick:Q,children:"Save Profile Details"})}),o.jsx("p",{className:"channel-settings-muted",children:o.jsx("i",{children:"Changes will only be saved after submitting."})})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Branding"}),o.jsx("p",{className:"channel-settings-muted",children:"Upload images that represent your channel across the site."}),o.jsx("h4",{children:"Profile Picture"}),Ht("png",s.channelPfp,"channel-profile-picture-preview","Channel profile picture preview",void 0,"channel-settings-upload-preview"),o.jsx(F
1489a,{id:"chanPfpFile",setValue:Ie=>{X(Ie)}}),o.jsx("hr",{}),o.jsx("h4",{children:"Banner Picture"}),Ht("png",s.channelBanner,"channel-banner-preview","Channel banner preview",void 0,"channel-settings-upload-preview"),o.jsx(Fa,{id:"chanBannerFile",setValue:Ie=>{ue(Ie)}}),o.jsxs("p",{className:"channel-settings-muted",children:["Image uploads must be one of: ",Wf," and no larger than"," ",Kf,"."]}),o.jsxs("p",{className:"channel-settings-muted",children:["All images must follow ",o.jsx("a",{href:"/info/tos",children:"Community Guidelines"}),"."]})]}),o.jsxs("div",{className:"channel-settings-card channel-settings-sensitive-card",children:[o.jsx("div",{className:"channel-settings-sensitive-badge",children:"Sensitive"}),o.jsx("h3",{children:"Stream Key"}),o.jsx("p",{className:"channel-settings-muted",children:"Keep this key private. Anyone with this key WILL be able to stream to your channel. Report any suspected leakages of your stream key immediately and update your password if you suspect a leakage has occured."}),o.jsx("div",{className:"channel-settings-actions",children:o.jsx(Je,{className:"green-click-button channel-settings-primary-action",type:"button",onClick:ie,children:"Reveal Stream Key"})}),o.jsx(sX,{name:"streamKey",id:"streamKeyInput",type:"password",labeltxt:"",value:a,readOnly:!0}),o.jsx("div",{className:"channel-settings-actions",children:o.jsxs(Je,{className:"green-click-button channel-settings-primary-action",type:"button",onClick:ee,children:[o.jsx(rn,{icon:$G,color:"white"})," Copy Key"]})})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Affiliation Status"}),o.jsxs("p",{className:"channel-settings-muted",children:["Partner Level: ",o.jsx("b",{children:s.partnerLevel!==void 0?ev[s.partnerLevel]:ev[0]})]}),s.isAffiliationPending?o.jsx("p",{className:"channel-settings-muted",children:o.jsx("i",{children:"Application Pending Review"})}):(s.partnerLevel===0||s.partnerLevel===void 0)&&o.jsx("div",{className:"channel-settings-actions",children:o.jsx(Je,{className:"green-click-button channel-settings-primary-action",type:"button",onClick:()=>W(!0),children:"Apply for Channel Affiliation Status"})})]}),o.jsxs("div",{className:"channel-settings-card channel-settings-full-width",children:[o.jsx("h3",{children:"Channel Links"}),o.jsx("p",{className:"channel-settings-muted",children:"Add links to your other social media profiles."}),o.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"flex-end"},children:[o.jsxs(et.Group,{style:{flex:1},children:[o.jsx(et.Label,{children:"Type"}),o.jsx(et.Select,{className:"link-type-select",value:_.linkType,onChange:Ie=>j({..._,linkType:Ie.target.value}),children:J.map(Ie=>o.jsx("option",{value:Ie,children:Ie},Ie))})]}),o.jsxs(et.Group,{style:{flex:2},children:[o.jsx(et.Label,{children:"URL"}),o.jsx(et.Control,{style:{width:"100%"},type:"text",placeholder:"https://...",value:_.linkUrl,onChange:Ie=>j({..._,linkUrl:Ie.target.value})})]}),o.jsx(Je,{className:"green-click-button",onClick:Ae,style:{height:"fit-content"},children:"Add"})]}),o.jsxs("div",{style:{marginTop:"20px"},children:[o.jsx("h4",{children:"Current Links"}),F.length===0?o.jsx("p",{className:"channel-settings-muted",children:"No links added yet."}):o.jsx("ul",{className:"channel-settings-muted",style:{listStyle:"none",padding:0},children:F.map((Ie,Ne)=>o.jsxs("li",{style:{marginBottom:"5px",display:"flex",alignItems:"center",gap:"10px"},children:[o.jsxs("b",{children:[Ie.linkType,":"]})," ",o.jsx("a",{href:Ie.linkUrl,target:"_blank",rel:"noreferrer",children:Ie.linkUrl}),o.jsx(Je,{variant:"danger",size:"sm",className:"grey-click-button",style:{marginLeft:"auto",padding:"2px 8px"},onClick:()=>me(Ie.linkType),children:o.jsx(rn,{icon:T8,color:"darkGrey"})})]},Ne))})]})]}),o.jsx("div",{className:"channel-settings-card channel-settings-full-width",children:o.jsx(RX,{channelName:n.channelName})})]})})})]})}),o.jsx($n,{eventKey:"cs2",title:"Audience Interactions",children:o.jsxs("section",{className:"channel-settings-section",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"Audience Controls"}),o.jsx("h2",{children:"Audience Interactions"}),o.jsx("p",{children:"Manage age restrictions and customize reward/supporter naming for your community."})]}),o.jsx(xr,{validationSchema:NX,validateOnBlur:!1,onSubmit:(Q,ge)=>Z(Q,ge),validateOnChange:!0,initialValues:{channelName:n.channelName,about:s.about,restricted:s.restricted,strict18:s.strict,wat
1489chTimeRewardName:s.watchTimePointName,paidPointRewardName:s.paidPointName,sub1TierName:s.subTier1Name,sub2TierName:s.subTier2Name,sub3TierName:s.subTier3Name,sub4TierName:s.subTier4Name,sub5TierName:s.subTier5Name},children:({handleSubmit:Q,values:ge,handleChange:le,errors:pe,setFieldValue:Ie})=>o.jsx(et,{noValidate:!0,onSubmit:Q,children:o.jsxs("div",{className:"channel-settings-grid",children:[o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Age Restriction"}),o.jsx("p",{className:"channel-settings-muted",children:"These settings affect who can access your channel content."}),o.jsx(et.Check,{id:"restricted",label:"Over 18 Channel",checked:ge.restricted,onChange:Ne=>{const Fe=Ne.target.checked;Fe&&!G()||(Ie("restricted",Fe),Fe?Et("NOTE: Setting channel to 18+. Make sure you read and understand the TOS before making content."):(Ie("strict18",!1),Et("NOTE: REMOVING 18+ RIDER, MAKE SURE YOUR CONTENT ABIDES BY TOS.")))}}),o.jsx(et.Check,{id:"strict18",label:"Strict Age Verification",disabled:!ge.restricted,checked:ge.strict18,onChange:Ne=>{const Fe=Ne.target.checked;Fe&&!G()||(Ie("strict18",Fe),Et(Fe?"NOTE: Setting strict age verification requirement. Make sure you read and understand the TOS before making content.":"NOTE: REMOVING STRICT AGE VERIFICATION REQUIREMENT, MAKE SURE YOUR CONTENT ABIDES BY TOS."))}})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Reward Names"}),o.jsx("p",{className:"channel-settings-muted",children:"Customize how channel rewards and supporter tiers appear to viewers."}),o.jsx(en,{name:"watchTimeRewardName",labeltxt:"Watch Time Reward Name",value:ge.watchTimeRewardName,placeholder:ge.watchTimeRewardName,error:pe.watchTimeRewardName,onChange:le}),o.jsx(en,{name:"paidPointRewardName",labeltxt:"Paid Point Reward Name",value:ge.paidPointRewardName,placeholder:ge.paidPointRewardName,error:pe.paidPointRewardName,onChange:le})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Supporter Tier Names"}),o.jsx("p",{className:"channel-settings-muted",children:"Name each supporter tier to match your channel branding."}),o.jsx(en,{name:"sub1TierName",labeltxt:"Supporter Tier 1 Name",value:ge.sub1TierName,placeholder:ge.sub1TierName,error:pe.sub1TierName,onChange:le}),o.jsx(en,{name:"sub2TierName",labeltxt:"Supporter Tier 2 Name",value:ge.sub2TierName,placeholder:ge.sub2TierName,error:pe.sub2TierName,onChange:le}),o.jsx(en,{name:"sub3TierName",labeltxt:"Supporter Tier 3 Name",value:ge.sub3TierName,placeholder:ge.sub3TierName,error:pe.sub3TierName,onChange:le}),o.jsx(en,{name:"sub4TierName",labeltxt:"Supporter Tier 4 Name",value:ge.sub4TierName,placeholder:ge.sub4TierName,error:pe.sub4TierName,onChange:le}),o.jsx(en,{name:"sub5TierName",labeltxt:"Supporter Tier 5 Name",value:ge.sub5TierName,placeholder:ge.sub5TierName,error:pe.sub5TierName,onChange:le})]}),o.jsx("div",{className:"channel-settings-actions",children:o.jsx(Je,{className:"green-click-button channel-settings-primary-action",type:"submit",onClick:Q,children:"Save Interaction Settings"})})]})})})]})}),o.jsx($n,{eventKey:"cs3",title:"Moderation",children:o.jsxs("section",{className:"channel-settings-section",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"Moderation"}),o.jsx("h2",{children:"Chat Moderation Settings"}),o.jsx("p",{children:"Configure moderation, chat restrictions, and safety settings for your channel."})]}),o.jsx(dX,{chatSettings:s.chatSettings,channelName:n.channelName})]})}),o.jsx($n,{eventKey:"cs4",title:"Bot Settings",children:o.jsxs("section",{className:"channel-settings-section",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"Automation"}),o.jsx("h2",{children:"Chat Bot Settings"}),o.jsx("p",{children:"Customize your channel bot and manage automated or viewer-triggered commands."})]}),o.jsx(xr,{validationSchema:kX,validateOnBlur:!1,onSubmit:Q=>se(Q),validateOnChange:!0,initialValues:{chatBotName:u.name,commands:[]},children:({handleSubmit:Q,values:ge,handleChange:le,errors:pe})=>o.jsx(et,{noValidate:!0,onSubmit:Q,children:o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Bot Identity"}),o.jsx(en,{name:"chatBotName",labeltxt:"Chat Bot Name",value:ge.chatBotName,id:"chatBotNameField",placeholder:ge.chatBotName,onChange:le}),pe.chatBotName&&o.jsx("p",{className:"channel-management-form-error",children:pe.chatBotName}),o.jsx("div",{className:"channel-settings-actions",children:o.jsx(Je,{className:"green-click-button channel-settings-primary-action",type:"submit",onClick:Q,children:"Save Bot Settings"})})]})})}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Chat 
1489Commands"}),o.jsx("p",{className:"channel-settings-muted",children:"Add custom commands, configure triggers, and use dynamic variables in bot responses."}),o.jsxs("div",{className:"channel-settings-actions",children:[!R&&o.jsx(Je,{className:"green-click-button channel-settings-primary-action",type:"button",onClick:()=>I(!0),children:"Show Variable Keys"}),o.jsx(Je,{className:"green-click-button channel-settings-primary-action",type:"button",onClick:Ce,children:"Add Command +"})]}),R&&o.jsxs("div",{className:"channel-settings-variable-panel",children:[o.jsx("h3",{children:"Variable Keys"}),o.jsx(Je,{className:"grey-click-button channel-settings-secondary-action",type:"button",onClick:()=>I(!1),children:"Hide"}),o.jsx("p",{children:o.jsx("i",{children:"Note: All trigger keys are case insensitive and will end at the first space."})}),o.jsx("hr",{}),o.jsxs("p",{children:[o.jsx("u",{children:"$USER"}),": The username or nickname of the user giving the command"]}),o.jsxs("p",{children:[o.jsx("u",{children:"$TARGET_USER"}),': The username or nickname of the first user identified with an "@" in the message, or the user passed by an alert trigger']}),o.jsx("h4",{children:"Special Keys for Built-In Events"}),o.jsx("h3",{children:o.jsx("i",{children:"Cheer events:"})}),o.jsxs("p",{children:[o.jsx("u",{children:"$CHEER_VALUE"}),': The value of a cheer event. Requires "Cheer" to be the trigger event.']}),o.jsxs("p",{children:[o.jsx("u",{children:"$CHEER_CURRENCY"}),`: The name of the channel's cheer currency. Requires "Cheer" to be the trigger event.`]}),o.jsx("h3",{children:o.jsx("i",{children:"Subscription events:"})}),o.jsxs("p",{children:[o.jsx("u",{children:"$SUBSCRIPTION_VALUE"}),': The tier of a subscription event. Requires "Subscription" to be the trigger event.']}),o.jsxs("p",{children:[o.jsx("u",{children:"$SUBSCRIPTION_DURATION"}),': The length of time the subscribing user has been subscribed. Requires "Subscription" to be the trigger event.']}),o.jsx("h3",{children:o.jsx("i",{children:"Raid events:"})}),o.jsxs("p",{children:[o.jsx("u",{children:"$RAID_LEADER"}),': The name of the channel or watch party that raided in. Requires "Raid" to be the trigger event.']}),o.jsxs("p",{children:[o.jsx("u",{children:"$RAID_COUNT"}),': The number of people that raided in. Requires "Raid" to be the trigger event.']}),o.jsxs("p",{children:[o.jsx("u",{children:"$RAID_CATEGORY"}),': The category of the channel that raided in. Requires "Raid" to be the trigger event.']}),o.jsxs("p",{children:[o.jsx("u",{children:"$RAID_SUB_CATEGORY"}),': The sub-category of the channel that raided in. Requires "Raid" to be the trigger event.']}),o.jsx("hr",{}),o.jsx("h3",{children:o.jsx("i",{children:"Example message text:"})}),o.jsx("p",{children:"Thanks $TARGET_USER for the $CHEER_VALUE $CHEER_CURRENCY! It is much appreciated!"}),o.jsx("h3",{children:o.jsx("i",{children:"Would be printed as:"})}),o.jsx("p",{children:"Thanks @testUser for the 200 Drips! It is much appreciated!"}),o.jsx("hr",{}),o.jsx("h3",{children:"The following trigger event words are reserved and will have no effect when used in chat with !:"}),o.jsxs("ul",{children:[o.jsx("li",{children:"cheer"}),o.jsx("li",{children:"subscription"}),o.jsx("li",{children:"raid"})]})]}),o.jsx("div",{className:"channel-settings-command-grid",children:T.map((Q,ge)=>o.jsx("div",{children:o.jsx(cX,{command:Q,idx:ge,id:Q.uuid,deleteCommand:le=>Ee(le),channelName:n.channelName})},Q.uuid))}),o.jsx("p",{className:"channel-settings-muted",children:"By default, all channels have a built-in chat bot to handle things such as automatic moderation. The chat bot also has a few default commands, as well as custom command capability. On this screen, you can edit custom commands for the chat bot and enable or disable default commands."})]})]})}),o.jsx($n,{eventKey:"cs5",title:"Emotes & Icons",children:o.jsxs("section",{className:"channel-settings-section",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"Community Identity"}),o.jsx("h2",{children:"Channel Emotes & Icons"}),o.jsx("p",{children:"Manage custom emotes and icons that viewers can use around your channel."})]}),o.jsx(pX,{emoteSettings:v,channelEmotes:f,channelName:n.channelName,channelEmoteId:L,reloadData:oe}),o.jsx(bX,{iconSettings:b,channelIcons:p,channelName:n.channelName,reloadData:oe})]})}),o.jsx($n,{eventKey:"cs6",title:"Redeems",children:o.jsxs("section",{className:"channel-settings-section",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"Engagement"}),o.jsx("h2",{children:"Redeems"}),o.jsx("p",{children:"Create and maintain channel point rewards for your viewers."}),o.jsxs("div",{className:"info-box",children:[o.jsx("p",{children:o.jsx("i",{children:"Watch points are accumulated by viewers at approximately 100 points per minute of watch time. This is also augmented by their subscription tier to your channel, and a once-daily bonus of 10x their base watch point reward for joining your stream."})}),o.jsx("p",{children:o.jsxs("i",{children:["Example point distribution: ",o.jsx("br",{}),"Follower watches 60 minutes: 6 000 points ",o.jsx("br",{}),"Tier 5 subscriber watches 60 minutes: 30 000 points"]})})]})]}),o.jsx(wX,{channelName:n.channelName})]})}),o.jsx($n,{eventKey:"cs7",title:"Stats",children:o.jsxs("section",{className:"channel-settings-section",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"Analytics"}),o.jsx("h2",{children:"Channel Statistics"}),o.jsx("p",{children:"Review channel performance and audience activity."})]}),o.jsx(lX,{channelName:n.channelName})]})})]}),o.jsxs(ut,{show:z,onHide:()=>W(!1),backdrop:"static",centered:!0,contentClassName:"strim-modal-content",children:[o.jsx(ut.Header,{closeButton:!0,className:"strim-modal-header",children:o.jsx(ut.Title,{className:"strim-modal-title",children:"Affiliation Disclaimer"})}),o.jsxs(ut.Body,{className:"strim-modal-body",children:[o.jsx("h3",{children:"Notice! You are applying for channel affiliation status with Strim.FUN!"}),o.jsx("br",{}),o.jsx("p",{children:"Congratulations for choosing to take the next step in your creator journey   with Strim! We are honored to have you as a streamer and look forward to a great partnership! "}),o.jsx("br",{}),o.jsx("p",{children:"Upon approval you will be immediately eligible for an 80/20 subscription split, as well   as earning revenue from paid channel points! Keep in mind, until you are approved, you cannot earn revenue"}),o.jsx("hr",{}),o.jsx("p",{children:'By clicking the "Accept and Apply" Button below you are agreeing to the following:'}),o.jsxs("ol",{children:[o.jsx("li",{children:"The email provided to Strim.FUN is your legal point of contact"}),o.jsx("li",{children:"That you are a legal adult of age 18 or greater, or are the legal parent/guardian of the channel owner whom is between the ages of 13 and 17"}),o.jsx("li",{children:"That payments will be made via ACH, or Paypal at Strim.FUN's discretion"}),o.jsxs("li",{children:["All Payments will follow the outlined information in the ",o.jsx("a",{href:"/info/tos",children:"TOS"})]}),o.jsx("li",{children:"That you accept responsibility for any/all transfer/payment fees required to process/receive payment"}),o.jsx("li",{children:"That you understand the Strim FUN administration team reserves the right to update, change, or otherwise   modify the requirements to obtain/retain Affiliate status with Strim"}),o.jsx("li",{children:"That any more than 2 strikes against your channel will result in immediate revocation of ANY  Affiliate status regardless of level"}),o.jsxs("li",{children:["If you are streaming explicit content as defined in the ",o.jsx("a",{href:"/info/tos",children:"TOS"}),",  you MUST still get 18+ approval as outlined in the ",o.jsx("a",{href:"/info/tos",children:"TOS"}),". Failure to do so will  result in account termination"]}),o.jsx("li",{children:"That this list is not all encompassing, and that the Strim FUN administration reserves the right  to make updates at our discretion."})]})]}),o.jsxs(ut.Footer,{className:"strim-modal-footer",children:[o.jsx(Je,{className:"green-click-button",type:"button",onClick:ve,children:"Accept and Apply"}),o.jsx(Je,{className:"grey-click-button",variant:"secondary",type:"button",onClick:()=>W(!1),children:"Cancel"})]})]})]})}
1489function _X(n){const e=Ft+"/channel",[t,r]=S.useState(br({channelName:Bt().required("Channel Name must be provided").min(5,"Channel Name must be at least 5 characters").max(40,"Channel Name must be no more than 25 characters").test("Channel Name may not contain special characters","Channel Name may not contain special characters",l=>!Da(l))})),[s,i]=S.useState(""),a=(l,u)=>{u.validateForm().then(()=>{Pe.post(e,{channelName:l.channelName,owningUserUuid:bn()}).then(d=>{ic().then(f=>{window.location.replace("/"+f.channelName)}).catch(f=>{console.log(f)})}).catch(d=>{console.log(d),d.response.status===401&&je("Unauthorized to create channel"),d.response.status===501&&je("ERROR: Channel already exists"),d.response.status===555?je("Not allowed to create channel due to having too many channels or too frequent creation"):je("Could not create channel, unknown error")})}).catch(d=>{console.log(d),console.log("error!")})};return o.jsxs(o.Fragment,{children:[o.jsx("h2",{children:"Create Your Awesome Channel!"}),o.jsx("br",{}),o.jsxs("p",{children:["You will have the opportunity to change these later! ",o.jsx("br",{})," Channel names may be changed ONCE every month (opening on the 1st of the month) and Profile Pictures may be changed at any time."]}),o.jsx("div",{style:{textAlign:"center"},children:o.jsx(xr,{validationSchema:t,validateOnBlur:!1,onSubmit:(l,u)=>a(l,u),validateOnChange:!1,initialValues:{channelName:s},children:({handleSubmit:l,values:u,handleChange:d,errors:f})=>o.jsxs(et,{noValidate:!0,onSubmit:l.bind(this),validateOnBlur:!1,style:{paddingTop:"2vh"},children:[o.jsx(en,{name:"channelName",labeltxt:"Channel Name",value:u.channelName,placeholder:"Your Awesome Channel Name",error:f.channelName,onChange:m=>{d(m)}}),o.jsx("p",{children:o.jsxs("i",{children:["NOTE: By creating a channel you are agreeing to follow all channel rules and regulations as per the ",o.jsx("a",{href:"/info/tos",children:"Community Guidelines"}),". All user, income, regulation, and advertisiment information and identifying factors are held by Strim.Fun and their associated companies for use in the service. All governance and legal proceedings is/are held by the laws of the United States of America, and the State of Colorado regardless of the end user's location.",o.jsx("br",{}),"By clicking submit you agree to these terms and all other terms outlined in the community guidelines"]})}),o.jsx(zt,{text:"Submit",onClick:l})]})})})]})}function OX(n){const e=()=>Ht("png",n.src,"","",{maxHeight:"4vh",maxWidth:"4vw"});return o.jsx(o.Fragment,{children:e()})}function DX(n){const e=i=>{if(!(i!=null&&i.isLive))return o.jsx("span",{className:"side-bar-channel-meta side-bar-channel-meta-offline",children:"Offline"});const a=!!(i!=null&&i.over18||i!=null&&i.restricted||i!=null&&i.strict18||i!=null&&i.over_18);return o.jsxs("div",{className:"side-bar-channel-live-row",children:[o.jsx("span",{className:"side-bar-live-badge",children:"Live"}),a&&o.jsx("span",{className:"side-bar-18plus-badge",title:"18+ Stream Only",children:"18+"}),i.category&&o.jsx("span",{className:"side-bar-channel-category",title:i.category,children:i.category}),o.jsx("span",{className:"side-bar-viewer-badge",children:i.viewCount??0})]})},t=()=>n.content?n.content:o.jsx("div",{className:"side-bar-empty-state",children:o.jsx("p",{children:n.emptyString})}),r=(i,a)=>o.jsxs(Pt,{id:`channelList${a}`,className:"side-bar-channel-card",to:`/${i.channelName}`,reloadDocument:!0,title:i.channelName,children:[o.jsx("div",{className:"side-bar-channel-avatar",children:o.jsx(OX,{src:i.channelPfp})}),i.gameIcon&&o.jsx(Ts,{src:i.gameIcon,alt:"Game Icon",className:"side-bar-game-icon"}),o.jsxs("div",{className:"side-bar-channel-details",children:[o.jsx("h4",{className:"side-bar-channel-name",children:i.channelName}),e(i)]})]},`channelList${a}`),s=()=>!n.arr||n.arr.length===0?t():n.arr.map((i,a)=>r(i,a));return o.jsx("div",{className:"side-bar-body",children:s()})}function jX(n){return o.jsx("div",{className:"side-bar-header-text",children:n.text?n.text:"No text provided"})}function MX(n){const e=o.jsxs(o.Fragment,{children:[n.svgComponent&&o.jsx("span",{className:"side-bar-header-icon",children:n.svgComponent}),o.jsx(jX,{text:n.title})]});return n.link?o.jsx(Pt,{to:n.linkTo,className:"side-bar-header",children:e}):o.jsx("header",{className:"side-bar-header",children:e})}function ch(n){const e=n.variant?`side-bar-card-${n.variant}`:"";return o.jsxs("section",{className:`side-bar-card ${e}`,children:[o.jsx(MX,{link:n.isLink,linkTo:n.linkTo,svgComponent:n.svgComponent,title:n.title}),o.jsx(DX,{arr:n.data,emptyString:n.emptyString,content:n.content})]})}function FX(n){return o.jsx(ch,{svgComponent:n.svgComponent,data:n.channels,title:"Favorites",emptyString:n.emptyString,barStyle:{overflowX:"hidden"}})}function $X(n){return o.jsx(ch,{svgComponent:n.svgComponent,data:n.channels,title:"Featured",emptyString:n.emptyString})}function BX(n){return o.jsx(ch,{svgComponent:n.svgComponent,data:n.channels,title:"Following",emptyString:n.emptyString,barStyle:{overflowX:"hidden"}})}const zw=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:40,zoomAndPan:"magnify",viewBox:"0 0 30 30.000001",height:40,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("path",{fill:"#d9d9d9",d:"M 16.425781 0.285156 C 16.367188 0.195312 16.292969 0.125 16.199219 0.0742188 C 16.105469 0.0234375 16.007812 -0.00390625 15.898438 -0.00390625 C 15.792969 -0.00390625 15.691406 0.0234375 15.601562 0.0742188 C 15.507812 0.125 15.433594 0.195312 15.375 0.285156 C 15.039062 0.890625 7.15625 15.265625 7.15625 19.859375 C 7.15625 20.429688 7.210938 21 7.324219 21.558594 C 7.4375 22.121094 7.601562 22.667969 7.820312 23.195312 C 8.042969 23.726562 8.3125 24.226562 8.628906 24.703125 C 8.949219 25.179688 9.3125 25.621094 9.71875 26.027344 C 10.125 26.429688 10.566406 26.792969 11.042969 27.109375 C 11.519531 27.429688 12.023438 27.695312 12.554688 27.917969 C 13.085938 28.136719 13.632812 28.300781 14.195312 28.414062 C 14.757812 28.523438 15.324219 28.582031 15.898438 28.582031 C 16.472656 28.582031 17.042969 28.523438 17.605469 28.414062 C 18.167969 28.300781 18.714844 28.136719 19.246094 27.917969 C 19.777344 27.695312 20.28125 27.429688 20.757812 27.109375 C 21.234375 26.792969 21.675781 26.429688 22.082031 26.027344 C 22.488281 25.621094 22.851562 25.179688 23.167969 24.703125 C 23.488281 24.226562 23.757812 23.726562 23.976
1489562 23.195312 C 24.199219 22.667969 24.363281 22.121094 24.476562 21.558594 C 24.585938 21 24.644531 20.429688 24.644531 19.859375 C 24.644531 15.265625 16.757812 0.890625 16.425781 0.285156 Z M 15.898438 27.367188 C 15.402344 27.367188 14.914062 27.316406 14.425781 27.21875 C 13.941406 27.121094 13.46875 26.980469 13.011719 26.789062 C 12.554688 26.601562 12.121094 26.367188 11.707031 26.09375 C 11.296875 25.820312 10.914062 25.507812 10.5625 25.15625 C 10.214844 24.808594 9.902344 24.425781 9.625 24.015625 C 9.351562 23.605469 9.117188 23.171875 8.925781 22.714844 C 8.738281 22.257812 8.59375 21.789062 8.496094 21.304688 C 8.398438 20.820312 8.351562 20.328125 8.347656 19.835938 C 8.347656 16.21875 14.109375 5.175781 15.898438 1.832031 C 17.6875 5.175781 23.449219 16.21875 23.449219 19.859375 C 23.449219 20.351562 23.398438 20.839844 23.300781 21.324219 C 23.199219 21.808594 23.054688 22.277344 22.867188 22.730469 C 22.675781 23.1875 22.441406 23.621094 22.164062 24.027344 C 21.890625 24.4375 21.578125 24.816406 21.226562 25.164062 C 20.875 25.515625 20.496094 25.824219 20.085938 26.097656 C 19.671875 26.371094 19.238281 26.601562 18.78125 26.792969 C 18.324219 26.980469 17.855469 27.125 17.367188 27.21875 C 16.882812 27.316406 16.394531 27.367188 15.898438 27.367188 Z M 15.898438 27.367188 ",fillOpacity:1,fillRule:"nonzero"})),UX=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:40,zoomAndPan:"magnify",viewBox:"0 0 30 30.000001",height:40,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"90c2999c2a"},S.createElement("path",{d:"M 0.484375 2.902344 L 29.515625 2.902344 L 29.515625 28.304688 L 0.484375 28.304688 Z M 0.484375 2.902344 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#90c2999c2a)"},S.createElement("path",{fill:"#bee6d9",d:"M 29.453125 3.574219 C 29.457031 3.570312 29.457031 3.570312 29.457031 3.566406 C 29.464844 3.554688 29.472656 3.542969 29.476562 3.527344 C 29.480469 3.523438 29.480469 3.519531 29.480469 3.515625 C 29.488281 3.5 29.492188 3.484375 29.496094 3.46875 C 29.496094 3.46875 29.5 3.464844 29.5 3.464844 C 29.503906 3.449219 29.507812 3.429688 29.507812 3.414062 C 29.511719 3.410156 29.511719 3.402344 29.511719 3.398438 C 29.511719 3.386719 29.511719 3.371094 29.511719 3.359375 C 29.515625 3.355469 29.515625 3.351562 29.515625 3.34375 C 29.511719 3.308594 29.507812 3.273438 29.5 3.242188 C 29.5 3.234375 29.5 3.230469 29.496094 3.226562 C 29.492188 3.214844 29.488281 3.203125 29.484375 3.1875 C 29.480469 3.183594 29.480469 3.179688 29.480469 3.175781 C 29.472656 3.160156 29.464844 3.144531 29.457031 3.132812 C 29.457031 3.128906 29.457031 3.128906 29.457031 3.128906 C 29.457031 3.125 29.453125 3.125 29.453125 3.125 C 29.445312 3.109375 29.433594 3.09375 29.425781 3.082031 C 29.421875 3.078125 29.417969 3.074219 29.417969 3.070312 C 29.40625 3.058594 29.398438 3.050781 29.390625 3.039062 C 29.386719 3.035156 29.382812 3.03125 29.378906 3.03125 C 29.367188 3.019531 29.355469 3.007812 29.34375 2.996094 C 29.34375 2.996094 29.339844 2.996094 29.339844 2.996094 C 29.324219 2.984375 29.3125 2.972656 29.296875 2.964844 C 29.292969 2.964844 29.289062 2.960938 29.285156 2.960938 C 29.273438 2.953125 29.261719 2.945312 29.25 2.941406 C 29.246094 2.9375 29.242188 2.9375 29.234375 2.933594 C 29.222656 2.929688 29.207031 2.925781 29.191406 2.921875 C 29.191406 2.921875 29.1875 2.917969 29.1875 2.917969 C 29.167969 2.914062 29.152344 2.910156 29.136719 2.90625 C 29.132812 2.90625 29.125 2.90625 29.121094 2.90625 C 29.109375 2.90625 29.09375 2.902344 29.078125 2.902344 C 29.078125 2.902344 29.074219 2.902344 29.070312 2.902344 L 0.964844 2.902344 C 0.777344 2.902344 0.609375 3.023438 0.546875 3.199219 C 0.484375 3.378906 0.539062 3.578125 0.6875 3.695312 L 12.320312 13.191406 L 14.472656 27.925781 C 14.5 28.113281 14.640625 28.265625 14.824219 28.300781 C 14.855469 28.304688 14.882812 28.308594 14.910156 28.308594 C 15.066406 28.308594 15.210938 28.226562 15.292969 28.085938 L 29.449219 3.582031 Z M 27.433594 3.796875 L 12.773438 12.414062 L 2.214844 3.796875 Z M 15.164062 26.539062 L 13.214844 13.1875 L 27.84375 4.585938 Z M 15.164062 26.539062 ",fillOpacity:1,fillRule:"nonzero"}))),VX=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:40,zoomAndPan:"magnify",viewBox:"0 0 30 30.000001",height:40,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"bbbd83c3ec"},S.createElement("path",{d:"M 0.484375 0 L 29.515625 0 L 29.515625 29.03125 L 0.484375 29.03125 Z M 0.484375 0 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#bbbd83c3ec)"},S.createElement("path",{fill:"#bee6d9",d:"M 15 0 C 18.992188 0 22.414062 1.421875 25.253906 4.261719 C 28.09375 7.105469 29.515625 10.523438 29.515625 14.515625 C 29.515625 18.507812 28.09375 21.929688 25.253906 24.769531 C 22.414062 27.609375 18.992188 29.03125 15 29.03125 C 11.007812 29.03125 7.585938 27.609375 4.746094 24.769531 C 1.90625 21.929688 0.484375 18.507812 0.484375 14.515625 C 0.484375 10.523438 1.90625 7.105469 4.746094 4.261719 C 7.585938 1.421875 11.007812 0 15 0 Z M 15 27.996094 C 16.824219 27.996094 18.566406 27.640625 20.230469 26.929688 C 21.890625 26.21875 23.324219 25.257812 24.535156 24.050781 C 25.742188 22.839844 26.703125 21.402344 27.414062 19.746094 C 28.125 18.082031 28.480469 16.339844 28.480469 14.515625 C 28.480469 12.691406 28.125 10.949219 27.414062 9.289062 C 26.703125 7.625 25.742188 6.191406 24.535156 4.984375 C 23.324219 3.773438 21.886719 2.8125 20.230469 2.101562 C 18.566406 1.390625 16.824219 1.035156 15 1.035156 C 13.175781 1.035156 11.433594 1.390625 9.769531 2.101562 C 8.109375 2.8125 6.675781 3.773438 5.464844 4.984375 C 4.257812 6.191406 3.296875 7.628906 2.585938 9.289062 C 1.875 10.945312 1.519531 12.691406 1.519531 14.515625 C 1.519531 16.339844 1.875 18.082031 2.585938 19.746094 C 3.296875 21.40625 4.257812 22.839844 5.464844 24.050781 C 6.675781 25.257812 8.113281 26.21875 9.769531 26.929688 C 11.429688 27.640625 13.175781 27.996094 15 27.996094 Z M 10.851562 10.886719 C 10.429688 10.886719 
148910.066406 10.734375 9.757812 10.425781 C 9.453125 10.117188 9.296875 9.753906 9.296875 9.332031 C 9.296875 8.910156 9.453125 8.542969 9.757812 8.238281 C 10.066406 7.929688 10.433594 7.777344 10.851562 7.777344 C 11.277344 7.777344 11.640625 7.929688 11.945312 8.238281 C 12.253906 8.546875 12.40625 8.910156 12.40625 9.332031 C 12.40625 9.753906 12.253906 10.121094 11.945312 10.425781 C 11.640625 10.734375 11.277344 10.886719 10.851562 10.886719 Z M 19.148438 10.886719 C 18.722656 10.886719 18.359375 10.734375 18.054688 10.425781 C 17.746094 10.117188 17.59375 9.753906 17.59375 9.332031 C 17.59375 8.910156 17.746094 8.542969 18.054688 8.238281 C 18.363281 7.929688 18.726562 7.777344 19.148438 7.777344 C 19.570312 7.777344 19.933594 7.929688 20.242188 8.238281 C 20.546875 8.546875 20.703125 8.910156 20.703125 9.332031 C 20.703125 9.753906 20.546875 10.121094 20.242188 10.425781 C 19.933594 10.734375 19.570312 10.886719 19.148438 10.886719 Z M 15 22.8125 C 17.285156 22.8125 19.238281 22 20.859375 20.375 C 22.484375 18.753906 23.296875 16.800781 23.296875 14.515625 L 24.332031 14.515625 C 24.332031 17.089844 23.417969 19.289062 21.59375 21.109375 C 19.773438 22.933594 17.574219 23.847656 15 23.847656 C 12.425781 23.847656 10.226562 22.933594 8.40625 21.109375 C 6.582031 19.289062 5.667969 17.089844 5.667969 14.515625 L 6.703125 14.515625 C 6.703125 16.800781 7.515625 18.753906 9.140625 20.375 C 10.761719 22 12.714844 22.8125 15 22.8125 Z M 15 22.8125 ",fillOpacity:1,fillRule:"nonzero"}))),zX=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:40,zoomAndPan:"magnify",viewBox:"0 0 30 30.000001",height:40,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"a471604b16"},S.createElement("path",{d:"M 9 1.160156 L 29 1.160156 L 29 20 L 9 20 Z M 9 1.160156 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#a471604b16)"},S.createElement("path",{fill:"#8ea4d2",d:"M 9.992188 10.011719 C 9.992188 9.949219 9.996094 9.886719 9.996094 9.828125 C 10.160156 5.699219 13.855469 2.726562 17.582031 2.066406 C 22.699219 1.15625 29.492188 4.558594 28.300781 10.617188 C 27.664062 13.859375 25.378906 16.800781 22.140625 17.703125 C 21.246094 17.949219 20.238281 18.109375 19.3125 18.109375 C 17.371094 18.109375 15.839844 17.097656 14.054688 18.390625 C 13.53125 18.769531 12.992188 20.101562 12.164062 19.808594 C 11.558594 19.59375 11.433594 18.359375 11.390625 17.847656 C 11.179688 15.207031 9.945312 12.667969 9.992188 10.011719 Z M 9.992188 10.011719 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("path",{fill:"#ffffff",d:"M 24.785156 10.050781 C 24.785156 10.210938 24.757812 10.363281 24.695312 10.507812 C 24.636719 10.65625 24.550781 10.785156 24.4375 10.898438 C 24.324219 11.011719 24.195312 11.097656 24.050781 11.
1489160156 C 23.902344 11.21875 23.75 11.25 23.59375 11.25 C 23.433594 11.25 23.28125 11.21875 23.136719 11.160156 C 22.988281 11.097656 22.859375 11.011719 22.75 10.898438 C 22.636719 10.785156 22.550781 10.65625 22.488281 10.507812 C 22.429688 10.363281 22.398438 10.210938 22.398438 10.050781 C 22.398438 9.890625 22.429688 9.738281 22.488281 9.589844 C 22.550781 9.445312 22.636719 9.3125 22.75 9.203125 C 22.859375 9.089844 22.988281 9.003906 23.136719 8.941406 C 23.28125 8.878906 23.433594 8.851562 23.59375 8.851562 C 23.75 8.851562 23.902344 8.878906 24.050781 8.941406 C 24.195312 9.003906 24.324219 9.089844 24.4375 9.203125 C 24.550781 9.3125 24.636719 9.445312 24.695312 9.589844 C 24.757812 9.738281 24.785156 9.890625 24.785156 10.050781 Z M 24.785156 10.050781 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#ffffff",d:"M 20.570312 10.050781 C 20.570312 10.210938 20.539062 10.363281 20.480469 10.507812 C 20.417969 10.65625 20.332031 10.785156 20.21875 10.898438 C 20.109375 11.011719 19.980469 11.097656 19.832031 11.160156 C 19.6875 11.21875 19.535156 11.25 19.375 11.25 C 19.21875 11.25 19.066406 11.21875 18.917969 11.160156 C 18.773438 11.097656 18.644531 11.011719 18.53125 10.898438 C 18.417969 10.785156 18.332031 10.65625 18.273438 10.507812 C 18.210938 10.363281 18.179688 10.210938 18.179688 10.050781 C 18.179688 9.890625 18.210938 9.738281 18.273438 9.589844 C 18.332031 9.445312 18.417969 9.3125 18.53125 9.203125 C 18.644531 9.089844 18.773438 9 18.917969 8.941406 C 19.066406 8.878906 19.21875 8.847656 19.375 8.847656 C 19.535156 8.847656 19.6875 8.878906 19.832031 8.941406 C 19.980469 9 20.109375 9.089844 20.21875 9.203125 C 20.332031 9.3125 20.417969 9.445312 20.480469 9.589844 C 20.539062 9.738281 20.570312 9.890625 20.570312 10.050781 Z M 20.570312 10.050781 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#ffffff",d:"M 16.574219 10.050781 C 16.574219 10.210938 16.546875 10.363281 16.484375 10.507812 C 16.425781 10.65625 16.339844 10.785156 16.226562 10.898438 C 16.113281 11.011719 15.984375 11.097656 15.839844 11.160156 C 15.691406 11.21875 15.539062 11.25 15.382812 11.25 C 15.222656 11.25 15.070312 11.21875 14.925781 11.160156 C 14.777344 11.097656 14.648438 11.011719 14.539062 10.898438 C 14.425781 10.785156 14.339844 10.65625 14.277344 10.507812 C 14.21875 10.363281 14.1875 10.210938 14.1875 10.050781 C 14.1875 9.890625 14.21875 9.738281 14.277344 9.589844 C 14.339844 9.445312 14.425781 9.3125 14.539062 9.203125 C 14.648438 9.089844 14.777344 9.003906 14.925781 8.941406 C 15.070312 8.878906 15.222656 8.851562 15.382812 8.851562 C 15.539062 8.851562 15.691406 8.878906 15.839844 8.941406 C 15.984375 9.003906 16.113281 9.089844 16.226562 9.203125 C 16.339844 9.3125 16.425781 9.445312 16.484375 9.589844 C 16.546875 9.738281 16.574219 9.890625 16.574219 10.050781 Z M 16.574219 10.050781 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 19.996094 17.925781 C 19.996094 17.863281 19.996094 17.804688 19.992188 17.742188 C 19.828125 13.613281 16.132812 10.644531 12.40625 9.980469 C 7.292969 9.074219 0.5 12.472656 1.6875 18.53125 C 2.324219 21.777344 4.613281 24.714844 7.847656 25.617188 C 8.742188 25.867188 9.75 26.027344 10.679688 26.027344 C 12.617188 26.027344 14.148438 25.011719 15.933594 26.308594 C 16.457031 26.6875 16.996094 28.015625 17.824219 27.722656 C 18.429688 27.507812 18.554688 26.277344 18.597656 25.761719 C 18.808594 23.121094 20.042969 20.582031 19.996094 17.925781 Z M 19.996094 17.925781 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#ffffff",d:"M 7.589844 17.964844 C 7.589844 18.125 7.558594 18.277344 7.5 18.425781 C 7.4375 18.574219 7.351562 18.703125 7.242188 18.816406 C 7.128906 18.925781 7 19.015625 6.851562 19.074219 C 6.707031 19.136719 6.554688 19.167969 6.398438 19.167969 C 6.238281 19.167969 6.085938 19.136719 5.941406 19.074219 C 5.792969 19.015625 5.664062 18.925781 5.550781 18.816406 C 5.441406 18.703125 5.355469 18.574219 5.292969 18.425781 C 5.234375 18.277344 5.203125 18.125 5.203125 17.964844 C 5.203125 17.804688 5.234375 17.652344 5.292969 17.507812 C 5.355469 17.359375 5.441406 17.230469 5.550781 17.117188 C 5.664062 17.003906 5.792969 16.917969 5.941406 16.855469 C 6.085938 16.796875 6.238281 16.765625 6.398438 16.765625 C 6.554688 16.765625 6.707031 16.796875 6.851562 16.855469 C 7 16.917969 7.128906 17.003906 7.242188 17.117188 C 7.351562 17.230469 7.4375 17.359375 7.5 17.507812 C 7.558594 17.652344 7.589844 17.804688 7.589844 17.964844 Z M 7.589844 17.964844 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#ffffff",d:"M 11.808594 17.964844 C 11.808594 18.125 11.777344 18.277344 11.71875 18.425781 C 11.65625 18.574219 11.570312 18.703125 11.457031 18.816406 C 11.347656 18.925781 11.21875 19.015625 11.070312 19.074219 C 10.925781 19.136719 10.773438 19.167969 10.613281 19.167969 C 10.457031 19.167969 10.304688 19.136719 10.15625 19.074219 C 10.011719 19.015625 9.882812 18.925781 9.769531 18.816406 C 9.65625 18.703125 9.570312 18.574219 9.511719 18.425781 C 9.449219 18.277344 9.417969 18.125 9.417969 17.964844 C 9.417969 17.804688 9.449219 17.652344 9.511719 17.507812 C 9.570312 17.359375 9.65625 17.230469 9.769531 17.117188 C 9.882812 17.003906 10.011719 16.917969 10.15625 16.855469 C 10.304688 16.796875 10.457031 16.765625 10.613281 16.765625 C 10.773438 16.765625 10.925781 16.796875 11.070312 16.855469 C 11.21875 16.917969 11.347656 17.003906 11.457031 17.117188 C 11.570312 17.230469 11.65625 17.359375 11.71875 17.507812 C 11.777344 17.652344 11.808594 17.804688 11.808594 17.964844 Z M 11.808594 17.964844 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#ffffff",d:"M 15.800781 17.964844 C 15.800781 18.125 15.769531 18.277344 15.710938 18.425781 C 15.648438 18.574219 15.5625 18.703125 15.453125 18.816406 C 15.339844 18.925781 15.210938 19.015625 15.066406 19.074219 C 14.917969 19.136719 14.765625 19.167969 14.609375 19.167969 C 14.449219 19.167969 14.296875 19.136719 14.152344 19.074219 C 14.003906 19.015625 13.875 18.925781 13.761719 18.816406 C 13.652344 18.703125 13.566406 18.574219 13.503906 18.425781 C 13.445312 18.277344 13.414062 18.125 13.414062 17.9
148964844 C 13.414062 17.804688 13.445312 17.652344 13.503906 17.507812 C 13.566406 17.359375 13.652344 17.230469 13.761719 17.117188 C 13.875 17.003906 14.003906 16.917969 14.152344 16.855469 C 14.296875 16.796875 14.449219 16.765625 14.609375 16.765625 C 14.765625 16.765625 14.917969 16.796875 15.066406 16.855469 C 15.210938 16.917969 15.339844 17.003906 15.453125 17.117188 C 15.5625 17.230469 15.648438 17.359375 15.710938 17.507812 C 15.769531 17.652344 15.800781 17.804688 15.800781 17.964844 Z M 15.800781 17.964844 ",fillOpacity:1,fillRule:"nonzero"})),tv=n=>{var p,y,v,x,b,E,T;const e=(w,R)=>{Pe.post(kt+"/channel/"+n.channelName+"/ban",{bannedUser:w,messageBanned:R,mod:bn()}).then(I=>{}).catch(I=>{console.log(I)})},t=()=>{Pe.post(K5+"/msgControl",{channelName:n.channelName,delMsgId:n.id}).then(w=>{Tt("Message deleted successfully")}).catch(w=>{je(w.response.data.error)})},r=()=>{n.onPin&&n.onPin(n)},s=()=>{n.onUnpin&&n.onUnpin(n)},i=()=>!n.icons||n.icons.length===0?o.jsx(o.Fragment,{}):o.jsx("div",{style:{display:"inline"},children:n.icons.map((w,R)=>Ht("png",w,"user icon","user icon",{maxHeight:"1rem",maxWidth:"200px"},void 0,void 0,"user icon"))}),a=()=>{if(!n.emotes||n.emotes.length===0)return o.jsx("div",{dangerouslySetInnerHTML:{__html:r9(kc(n.message))}});{let w=n.message.split(/:[a-zA-Z0-9]{4,14}:/gm),R=[];for(let I=0;I<w.length;I++)w[I]&&R.push(o.jsx("span",{dangerouslySetInnerHTML:{__html:r9(kc(w[I]))}},"text-"+I)),n.emotes[I]&&n.emotes[I].emoteId?R.push(Ht("png",n.emotes[I].emoteImg,"","",{maxHeight:"3em"})):n.emotes[I]!==void 0&&R.push(":"+n.emotes[I]+":");return o.jsx(o.Fragment,{children:R})}},l=()=>n.modView&&!n.streamMode?o.jsxs("div",{style:{display:"inline"},children:[o.jsx(rn,{title:"ban "+n.sender,icon:qG,color:"white",onClick:()=>{e(n.sender,n.message)},className:"clickable"}),"  ",o.jsx(rn,{title:"delete message",icon:T8,color:"white",onClick:()=>{t(n.message)},className:"clickable"}),"  ",n.isPinned?o.jsxs(o.Fragment,{children:[o.jsx(rn,{title:"unpin message",icon:YE,color:"white",onClick:()=>{s()},className:"clickable"}),"  "]}):o.jsxs(o.Fragment,{children:[o.jsx(rn,{title:"pin message",icon:XE,color:"white",onClick:()=>{r()},className:"clickable"}),"  "]})]}):o.jsx(o.Fragment,{}),u=n.currentUser||((p=n.userData)==null?void 0:p.userName)||((v=(y=n.userData)==null?void 0:y.generalUserInfo)==null?void 0:v.userName)||bn(),d=!!(n.modView||n.isMod||(b=(x=n.userData)==null?void 0:x.streamingInfo)!=null&&b.ownedChannelName&&n.userData.streamingInfo.ownedChannelName===n.channelName||(T=(E=n.userData)==null?void 0:E.streamingInfo)!=null&&T.moddedChannels&&n.userData.streamingInfo.moddedChannels.includes(n.channelName)),f=s9(n.message,u)||d&&!!n.channelName&&s9(n.message,n.channelName);let m="chat-message";return n.streamMode?m="chat-message-stream":n.isPinnedCard||n.idx%2===0?m="chat-message-light":m="chat-message-dark",f&&(m+=" chat-message-highlighted"),o.jsx("div",{className:m,id:n.id,style:n.streamMode&&!f?{background:"transparent",backgroundColor:"transparent"}:void 0,children:o.jsxs("div",{className:"chat-content",children:[l()," ",i(),n.time,"  ",o.jsxs("div",{className:"chat-sender",style:{color:n.userColor,textShadow:"-1px 1px 0 #000,1px 1px 0 #000,1px -1px 0 #000,-1px -1px 0 #000"},children:[n.sender," [",n.pronouns,"]"]})," ",a()]})})},GX=n=>{let e=n.children,t=n.pinnedMessage;const r=S.useRef(null),s=S.useRef(null),i=()=>{const l=r.current||document.getElementById("scroll-holder");l&&(l.scrollTop=l.scrollHeight),s.current&&typeof s.current.scrollIntoView=="function"&&s.current.scrollIntoView({behavior:"auto",block:"end"})};S.useEffect(()=>{i();const l=requestAnimationFrame(()=>{i()}),u=setTimeout(i,50),d=setTimeout(i,150);return()=>{cancelAnimationFrame(l),clearTimeout(u),clearTimeout(d)}},[e]),S.useEffect(()=>{const l=r.current||document.getElementById("scroll-holder");if(!l)return;i();let u;typeof ResizeObserver<"u"&&(u=new ResizeObserver(()=>{i()}),u.observe(l),l.parentElement&&u.observe(l.parentElement));let d;typeof MutationObserver<"u"&&(d=new MutationObserver(()=>{i()}),d.observe(l,{childList:!0,subtree:!0,attributes:!0,characterData:!0}
1489));const f=()=>{i()};return window.addEventListener("resize",f),()=>{u&&u.disconnect(),d&&d.disconnect(),window.removeEventListener("resize",f)}},[n.streamMode,e]);const a=l=>{if(n.streamMode){const u=l.currentTarget;u.scrollHeight>u.clientHeight&&u.scrollTop!==u.scrollHeight-u.clientHeight&&(u.scrollTop=u.scrollHeight)}};return o.jsxs("div",{ref:r,id:"scroll-holder",onScroll:a,className:n.streamMode?"scroll-stream":n.isPopout?"scroll-popout":"scroll-header",style:n.streamMode?{height:"100%",width:"100%",marginLeft:0,background:"transparent",backgroundColor:"transparent"}:void 0,children:[t&&o.jsxs("div",{className:`pinned-message-container ${n.streamMode?"pinned-message-stream":""}`,children:[o.jsxs("div",{className:"pinned-message-bar",children:[o.jsxs("span",{className:"pinned-message-title",children:[o.jsx(rn,{icon:XE,className:"pinned-icon"})," Pinned Message"]}),n.modView&&o.jsx(rn,{icon:YE,title:"unpin message",className:"clickable unpin-icon",onClick:n.onUnpin})]}),o.jsx("div",{className:"pinned-message-content",children:t})]}),e,o.jsx("div",{ref:s,style:{height:"1px",width:"100%",clear:"both"}})]})};function HX(n){const e=n.emoteList[0].channelName,t=()=>n.emoteList.map((r,s)=>o.jsx("div",{className:"clickable",onClick:()=>{n.onClick(),n.addEmoteToChat(r)},children:Ht("png",r.emoteImg,r.emoteName,r.emoteName,{maxWidth:"35px",padding:"1%"})},"chanEmote"+s));return o.jsxs("div",{className:"channelEmoteSection",style:{...n.style,marginBottom:"2%"},children:[o.jsxs("h4",{style:{width:"100%",backgroundColor:"var(--default-background-color)",marginBottom:"1%",paddingBottom:"1%"},children:[e," Emotes"]}),t()]})}function WX(n){const e=()=>n.emotes.map((t,r)=>o.jsx(HX,{emoteList:t,addEmoteToChat:s=>n.addEmoteToChat(s),onClick:n.onClick},"chanEmotes"+r));return o.jsx("div",{className:"dropdownMenu",style:{...n.style,overflowY:"auto"},id:"emote-selector",children:e()})}function KX(n){S.useEffect(()=>{},[n.text]);const e=["/announcement"],t=["/announcement [message]"],r=()=>{if(n.text){let s=e.filter(a=>n.text.includes(" ")?a.includes(n.text.substring(0,n.text.indexOf(" "))):a.includes(n.text)),i=[];return s?(s.forEach(a=>{let l=e.indexOf(a);l>-1&&i.push(t[l])}),i.map(a=>o.jsx("h4",{children:a}))):(n.hide(),o.jsx(o.Fragment,{}))}return n.hide(),o.jsx(o.Fragment,{})};if(n.show)return o.jsx("div",{style:{backgroundColor:"var(--darker-background-color)",border:"solid",borderColor:"lightgrey"},children:r()})}function qX(n){const e=()=>{n.chatSocket.send(JSON.stringify({msgType:"point_redeem",channelName:n.channelName,redeemTitle:n.title})),n.handleClose()};return o.jsxs("div",{className:"channel-point-card",onClick:()=>e(),children:[o.jsx("div",{className:"point-card-header",style:{backgroundColor:n.color||"var(--a-color)"},children:n.icon?o.jsx("img",{src:n.icon,alt:n.title,className:"point-icon"}):o.jsx("div",{className:"point-icon-placeholder",children:n.title.charAt(0)})}),o.jsxs("div",{className:"point-card-body",children:[o.jsx("h6",{className:"point-title",children:n.title}),o.jsx("p",{className:"point-description",children:n.description})]}),o.jsx("div",{className:"point-card-footer",children:o.jsx("div",{className:"point-cost-pill",children:n.cost})})]})}function YX(n){const e=()=>n.setShow(!1);return o.jsxs("div",{className:"point-selector-dropdown",children:[o.jsxs("div",{className:"point-selector-dropdown-header",children:[o.jsx("span",{className:"point-selector-dropdown-title",children:"Channel Rewards"}),o.jsx("button",{className:"point-selector-dropdown-close",onClick:e,children:"×"})]}),o.jsxs("div",{className:"point-selector-dropdown-body",children:[o.jsxs("div",{className:"point-selector-dropdown-balance",children:[o.jsx("span",{className:"balance-value",children:n.channelWatchPoints||0}),o.jsx("span",{className:"balance-label",children:n.channelWatchPointName||"drips"})]}),o.jsx("div",{className:"point-selector-dropdown-grid",children:n.channelPointRedeems&&n.channelPointRedeems.length>0?n.channelPointRedeems.map((t,r)=>o.jsx(qX,{channelName:n.channelName,title:t.redeemName,description:t.redeemDescription,icon:t.customImage,color:t.color,cost:t.redeemCost,border:t.border,available:t.available,enabled:t.enabled,userData:n.userData,handleClose:()=>e(),chatSocket:n.chatSocket},r)):o.jsx("div",{className:"point-selector-no-rewards",children:"No rewards available."})})]})]})}function Gw(n){var se,G,ee,Ee,Ce,Ae;const e=n.streamMode!==void 0?n.streamMode:typeof window<"u"&&window.location&&window.location.search?new URLSearchParams(window.location.search).get("streamMode")==="true":!1,[t,r]=S.useState([]),[s,i]=S.useState(null),[a,l]=S.useState(!1),[u,d]=S.useState(!1),[f,m]=S.useState();let{channelName:p}=Ba();n.dashView&&(p=((G=(se=n.userData)==null?void 0:se.streamingInfo)==null?void 0:G.ownedChannelName)||p);const[y,v]=S.useState(null),[x,b]=S.useState(!1),E=n.isMod||n.dashView&&!0||((Ee=(ee=n.userData)==null?void 0:ee.streamingInfo)==null?void 0:Ee.ownedChannelName)===p||((Ae=(Ce=n.userData)==null?void 0:Ce.streamingInfo)==null?void 0:Ae.moddedChannels)&&n.userData.streamingInfo.moddedChannels.includes(p),T=e?!1:!!E,w=S.useRef(null),R=S.useRef(null),I=S.useRef(null),L=S.useRef(null);S.useEffect(()=>{if(e){document.body.style.backgroundColor="transparent",document.documentElement.style.backgroundColor="transparent";const me=document.querySelector(".App");return me&&(me.style.backgroundColor="transparent",me.style.background="transparent"),()=>{document.body.style.backgroundColor="",document.documentElement.style.backgroundColor="",me&&(me.style.backgroundColor="",me.style.background="")}}},[e]);let N=!1;S.useEffect(()=>{try{if(!N)if(y===null){p=p===null&&n.dashView?n.userData.streamingInfo.ownedChannelName:p;const me=new WebSocket(`${wv}/${p}`);me.ref=L,v(me)}else y.onopen=function(){N=!0},y.onmessage=me=>{let ve=JSON.parse(me.data);if(ve.error)je(ve.error);else if(ve.systemMsg)if(ve.systemMsg.systemAlert)Et(ve.systemMsg.systemAlert);else if(ve.systemMsg.delMsg){let Q=ve.systemMsg.delMsg;
1489for(let ge=0;ge<t.length;ge++)t[ge].id===Q&&t.splice(ge,1);r([...t]),i(ge=>ge&&(ge.id===Q||ge.messageId===Q)?null:ge)}else ve.systemMsg.pinMsg?i(ve.systemMsg.pinMsg):ve.systemMsg.unpinMsg&&i(null);else if(ve.pinnedMsg||ve.pinnedMessage)i(ve.pinnedMsg||ve.pinnedMessage);else if(ve.announcement)Et("Streamer Announcement:  "+ve.announcement.announcementText);else if(ve.messages)r(ve.messages),(ve.pinnedMessage||ve.pinnedMsg)&&i(ve.pinnedMessage||ve.pinnedMsg);else{for(;t.length>49;)t.shift();let Q=new Date;ve.time=Q.getHours().toString()+":"+(Q.getMinutes().toString().length<2?"0"+Q.getMinutes().toString():Q.getMinutes().toString()),r([...t,ve])}},y.onclose=function(){n.loggedIn&&(Et("Disconnected from chat. Attempting Reconnect"),setTimeout(function(){const me=new WebSocket(`${wv}/${p}`);me.ref=L,v(me)},3e3))},y.onerror=()=>{y.onclose(),N=!1}}catch(me){console.log(me)}},[y,t]);const _=()=>x?o.jsx(YX,{show:x,setShow:b,channelName:p,channelPointRedeems:n.channelPointRedeems,channelWatchPoints:n.channelWatchPoints,channelWatchPointName:n.channelWatchPointName,userData:n.userData,chatSocket:y}):null,j=()=>a?o.jsx(WX,{emotes:n.emotes,style:{height:"20vh",width:n.isPopout?"auto":"100%",zIndex:"10",position:"absolute",bottom:"100%",left:0,backgroundColor:"var(--darker-background-color)"},addEmoteToChat:me=>F(me),onClick:()=>{document.getElementById("chat-box").focus(),(!n.userData||!n.userData.chatSettings||!n.userData.chatSettings.stickyEmotes)&&l(!1)}}):o.jsx(o.Fragment,{}),F=me=>{me&&(I.current.value+=":"+me.emoteId+": ")},$=()=>n.isPopout?o.jsx(o.Fragment,{}):o.jsx(Je,{as:"div",onClick:()=>{n.setSupportVisible(!0)},className:"chat-btn left-btn",title:"Give Drops",children:o.jsx(zw,{color:"grey",style:{height:"2vh"}})}),z=()=>n.isPopout?o.jsx(o.Fragment,{}):o.jsx(Je,{as:"div",onClick:()=>{window.open("https://"+Dee+"/"+p+"/popout/chat","_blank")},className:"chat-btn left-btn",title:"Pop Out Chat",children:o.jsx(zX,{color:"grey",style:{height:"2vh"}})}),W=()=>{if(!n.loggedIn){Et("You must log-in to chat!");return}if(I.current.value==="!strimhelp"||I.current.value==="!strimDiscord"){Et("If you need help, please contact us on discord at: https://discord.gg/qnCxZ3KHXp"),I.current.value="";return}y&&y.readyState===1?(I.current.value.length>0?I.current.value.indexOf("/announcement")===0?y.send(JSON.stringify({msgType:"announcement",action:"create",channelName:p,announcementText:I.current.value.substring(13)})):y.send(JSON.stringify({text:I.current.value,msgType:"message"})):je("you must supply a message"),I.current.value="",a&&l(!1)):Et("Chat has been closed, please refresh to try again")},J=me=>{const ve={id:me.id,sender:me.sender||me.sendingUser,sendingUser:me.sender||me.sendingUser,userColor:me.userColor,text:me.message||me.text,message:me.message||me.text,pronouns:me.pronouns,time:me.time,badges:me.icons||me.badges,emotes:me.emotes};i(ve),y&&y.readyState===WebSocket.OPEN&&y.send(JSON.stringify({msgType:"pin_message",action:"pin",channelName:p,pinMsg:ve})),Pe.post(K5+"/msgControl/pin",{channelName:p,pinMsg:ve,user:bn(),token:Lo?Lo():void 0}).catch(()=>{})},oe=()=>{i(null),y&&y.readyState===WebSocket.OPEN&&y.send(JSON.stringify({msgType:"pin_message",action:"unpin",channelName:p})),Pe.post(K5+"/msgControl/unpin",{channelName:p,user:bn(),token:Lo?Lo():void 0}).catch(()=>{})},ie=()=>{var ve,Q,ge;if(!s)return null;const me=((ve=n.userData)==null?void 0:ve.userName)||((ge=(Q=n.userData)==null?void 0:Q.generalUserInfo)==null?void 0:ge.userName)||bn();return o.jsx(tv,{sender:s.sender||s.sendingUser,userColor:s.userColor,message:s.message||s.text,id:s.id,className:"chat-message",modView:T,channelName:p,pronouns:s.pronouns===void 0?"any":s.pronouns,time:s.time,icons:s.badges||s.icons,emotes:s.emotes,streamMode:e,isPinned:!0,isPinnedCard:!0,currentUser:me,userData:n.userData,onUnpin:oe,onPin:J},"pinned-"+s.id)},Z=()=>{var ve,Q,ge;const me=((ve=n.userData)==null?void 0:ve.userName)||((ge=(Q=n.userData)==null?void 0:Q.generalUserInfo)==null?void 0:ge.userName)||bn();return t.map((le,pe)=>{const Ie=!!(s&&s.id===le.id);return o.jsx(tv,{sender:le.sendingUser||le.sender,userColor:le.userColor,message:le.text||le.message,id:le.id,idx:pe,className:"chat-message",modView:T,channelName:p,pronouns:le.pronouns===void 0?"any":le.pronouns,time:le.time,icons:le.badges||le.
1489icons,emotes:le.emotes,streamMode:e,isPinned:Ie,currentUser:me,userData:n.userData,onPin:()=>J(le),onUnpin:oe},p+"-"+pe)})},X=()=>n.loggedIn?o.jsx(Je,{as:"div",ref:R,onClick:()=>{l(!a),document.getElementById("chat-box").focus()},className:"chat-btn textfield-chat-btn emote-btn",children:o.jsx(VX,{style:{maxHeight:"2em"}})}):o.jsx(o.Fragment,{}),ue=()=>n.isPopout?o.jsx(o.Fragment,{}):o.jsxs("div",{className:"bottom-chat-box",style:{display:n.loggedIn?"flex":"none"},children:[o.jsx("label",{className:"point-selector-label",onClick:()=>b(!0),children:o.jsxs("p",{className:"point-selector-text",children:[n.channelWatchPoints?n.channelWatchPoints:0," ",n.channelWatchPointName?n.channelWatchPointName:"drips"]})}),$(),z()]});return o.jsxs("div",{className:`chat-viewport-inner ${e?"chat-stream-mode":""}`,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",minHeight:0,overflow:"hidden",background:e?"transparent":void 0,backgroundColor:e?"transparent":void 0},children:[o.jsxs("div",{id:"chat-wrapper",style:{width:"100%",flex:"1 1 0%",minHeight:0,position:"relative",overflow:"hidden",background:e?"transparent":void 0,backgroundColor:e?"transparent":void 0,...n.style},children:[o.jsx(GX,{isPopout:n.isPopout||!1,streamMode:e,className:"chat-actual",pinnedMessage:ie(),modView:T,onUnpin:oe,children:Z()}),!e&&o.jsx(KX,{show:u,text:f,hide:()=>d(!1)})]}),!e&&o.jsxs("div",{id:"belowChat",className:"below-chat",style:{width:"100%",flexShrink:0,position:"relative"},children:[j(),_(),o.jsxs("div",{className:"text-area-btn-wrapper",children:[X(),o.jsx("textarea",{id:"chat-box",className:"chat-form-control",ref:I,rows:1,placeholder:"Send a Message",style:{},onChange:me=>{I.current.value==="/"&&(d(!0),m(I.current.value)),I.current.value===""&&d(!1),u&&m(I.current.value)},onKeyDown:me=>{me.target.value.length>=300&&Et("Max Message Length Reached"),me.key==="Enter"&&(me.preventDefault(),w.current.click())},maxLength:300}),o.jsx(Je,{as:"div",ref:w,onClick:()=>{u&&d(!1),W()},className:"chat-btn textfield-chat-btn",autoFocus:!0,children:o.jsx(UX,{style:{maxHeight:"2em"}})})]}),ue()]})]})}var XX=(n,e,t)=>new Promise((r,s)=>{var i=u=>{try{l(t.next(u))}catch(d){s(d)}},a=u=>{try{l(t.throw(u))}catch(d){s(d)}},l=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,a);l((t=t.apply(n,e)).next())});function ZX(n){return document.querySelector(`script[src="${n}"]`)}function QX(n){let e=document.head||document.body;if(!e)throw new Error("Square.js requires a <body> or <head> element.");let t=document.createElement("script");return t.src=n,e.appendChild(t),t}var fm=null;function JX(n){return fm!==null||(fm=new Promise((e,t)=>{if(typeof window>"u"){e(null);return}if(window.Square){e(window.Square);return}try{let r=ZX(n);r||(r=QX(n)),r.addEventListener("load",()=>{window.Square?e(window.Square):t(new Error("Square.js failed to load properly."))}),r.addEventListener("error",()=>{t(new Error("Error occurred while loading Square.js"))})}catch(r){t(r)}})),fm}var eZ="v1",nv=class Hw extends Error{constructor(e="The Payment 'applicationId' option is not in the correct format."){super(e),this.name="InvalidApplicationIdError",Object.setPrototypeOf(this,Hw.prototype)}};function tZ(n){let e="";if(typeof n!="string"||n===null)throw new nv;if(n.startsWith("sq0idp-")&&(e="https://web.squarecdn.com/"),n.startsWith("sandbox-sq0idb-")&&(e="https://sandbox.web.squarecdn.com/"),e.length===0)throw new nv;return e+=`${eZ}/square.js`,e}function nZ(n,e,t){return XX(this,null,function*(){let r=(t==null?void 0:t.scriptSrc)===void 0?tZ(n):t.scriptSrc,s=yield JX(r);return s===null?null:s.payments(n,e)})}var Wt="colors",Hn="sizes",rt="space",rZ={gap:rt,gridGap:rt,columnGap:rt,gridColumnGap:rt,rowGap:rt,grid
1489RowGap:rt,inset:rt,insetBlock:rt,insetBlockEnd:rt,insetBlockStart:rt,insetInline:rt,insetInlineEnd:rt,insetInlineStart:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,marginBlock:rt,marginBlockEnd:rt,marginBlockStart:rt,marginInline:rt,marginInlineEnd:rt,marginInlineStart:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,paddingBlock:rt,paddingBlockEnd:rt,paddingBlockStart:rt,paddingInline:rt,paddingInlineEnd:rt,paddingInlineStart:rt,top:rt,right:rt,bottom:rt,left:rt,scrollMargin:rt,scrollMarginTop:rt,scrollMarginRight:rt,scrollMarginBottom:rt,scrollMarginLeft:rt,scrollMarginX:rt,scrollMarginY:rt,scrollMarginBlock:rt,scrollMarginBlockEnd:rt,scrollMarginBlockStart:rt,scrollMarginInline:rt,scrollMarginInlineEnd:rt,scrollMarginInlineStart:rt,scrollPadding:rt,scrollPaddingTop:rt,scrollPaddingRight:rt,scrollPaddingBottom:rt,scrollPaddingLeft:rt,scrollPaddingX:rt,scrollPaddingY:rt,scrollPaddingBlock:rt,scrollPaddingBlockEnd:rt,scrollPaddingBlockStart:rt,scrollPaddingInline:rt,scrollPaddingInlineEnd:rt,scrollPaddingInlineStart:rt,fontSize:"fontSizes",background:Wt,backgroundColor:Wt,backgroundImage:Wt,borderImage:Wt,border:Wt,borderBlock:Wt,borderBlockEnd:Wt,borderBlockStart:Wt,borderBottom:Wt,borderBottomColor:Wt,borderColor:Wt,borderInline:Wt,borderInlineEnd:Wt,borderInlineStart:Wt,borderLeft:Wt,borderLeftColor:Wt,borderRight:Wt,borderRightColor:Wt,borderTop:Wt,borderTopColor:Wt,caretColor:Wt,color:Wt,columnRuleColor:Wt,fill:Wt,outline:Wt,outlineColor:Wt,stroke:Wt,textDecorationColor:Wt,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Hn,minBlockSize:Hn,maxBlockSize:Hn,inlineSize:Hn,minInlineSize:Hn,maxInlineSize:Hn,width:Hn,minWidth:Hn,maxWidth:Hn,height:Hn,minHeight:Hn,maxHeight:Hn,flexBasis:Hn,gridTemplateColumns:Hn,gridTemplateRows:Hn,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},sZ=(n,e)=>typeof e=="function"?{"()":Function.prototype.toString.call(e)}:e,ll=()=>{const n=Object.create(null);return(e,t,...r)=>{const s=(i=>JSON.stringify(i,sZ))(e);return s in n?n[s]:n[s]=t(e,...r)}},Ra=Symbol.for("sxs.internal"),F8=(n,e)=>Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)),rv=n=>{for(const e in n)return!0;return!1},{hasOwnProperty:iZ}=Object.prototype,F5=n=>n.includes("-")?n:n.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),aZ=/\s+(?![^()]*\))/,Io=n=>e=>n(...typeof e=="string"?String(e).split(aZ):[e]),sv={appearance:n=>({WebkitAppearance:n,appearance:n}),backfaceVisibility:n=>({WebkitBackfaceVisibility:n,backfaceVisibility:n}),backdropFilter:n=>({WebkitBackdropFilter:n,backdropFilter:n}),backgroundClip:n=>({WebkitBackgroundClip:n,backgroundClip:n}),boxDecorationBreak:n=>({WebkitBoxDecorationBreak:n,boxDecorationBreak:n}),clipPath:n=>({WebkitClipPath:n,clipPath:n}),content:n=>({content:n.includes('"')||n.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(n)?n:`"${n}"`}),hyphens:n=>({WebkitHyphens:n,hyphens:n}),maskImage:n=>({WebkitMaskImage:n,maskImage:n}),maskSize:n=>({WebkitMaskSize:n,maskSize:n}),tabSize:n=>({MozTabSize:n,tabSize:n}),textSizeAdjust:n=>({WebkitTextSizeAdjust:n,textSizeAdjust:n}),userSelect:n=>({WebkitUserSelect:n,userSelect:n}),marginBlock:Io(((n,e)=>({marginBlockStart:n,marginBlockEnd:e||n}))),marginInline:Io(((n,e)=>({marginInlineStart:n,marginInlineEnd:e||n}))),maxSize:Io(((n,e)=>({maxBlockSize:n,maxInlineSize:e||n}))),minSize:Io(((n,e)=>({minBlockSize:n,minInlineSize:e||n}))),paddingBlock:Io(((n,e)=>({paddingBlockStart:n,paddingBlockEnd:e||n}))),paddingInline:Io(((n,e)=>({paddingInlineStart:n,paddingInlineEnd:e||n})))},hm=/([\d.]+)([^]*)/,oZ=(n,e)=>n.length?n.reduce(((t,r)=>(t.push(...e.map((s=>s.includes("&")?s.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(s)?`:is(${r})`:r):r+" "+s))),t)),[]):e,lZ=(n,e)=>n in cZ&&typeof e=="string"?e.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\
vendor: 9,721 bytes, line 1489
1489w-][^]*)?)$/,((t,r,s,i)=>r+(s==="stretch"?`-moz-available${i};${F5(n)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${F5(n)}:${r}fit-content`)+i)):String(e),cZ={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Js=n=>n?n+"-":"",Ww=(n,e,t)=>n.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((r,s,i,a,l)=>a=="$"==!!i?r:(s||a=="--"?"calc(":"")+"var(--"+(a==="$"?Js(e)+(l.includes("$")?"":Js(t))+l.replace(/\$/g,"-"):l)+")"+(s||a=="--"?"*"+(s||"")+(i||"1")+")":""))),uZ=/\s*,\s*(?![^()]*\))/,dZ=Object.prototype.toString,Po=(n,e,t,r,s)=>{let i,a,l;const u=(d,f,m)=>{let p,y;const v=x=>{for(p in x){const T=p.charCodeAt(0)===64,w=T&&Array.isArray(x[p])?x[p]:[x[p]];for(y of w){const R=/[A-Z]/.test(E=p)?E:E.replace(/-[^]/g,(L=>L[1].toUpperCase())),I=typeof y=="object"&&y&&y.toString===dZ&&(!r.utils[R]||!f.length);if(R in r.utils&&!I){const L=r.utils[R];if(L!==a){a=L,v(L(y)),a=null;continue}}else if(R in sv){const L=sv[R];if(L!==l){l=L,v(L(y)),l=null;continue}}if(T&&(b=p.slice(1)in r.media?"@media "+r.media[p.slice(1)]:p,p=b.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((L,N,_,j,F,$)=>{const z=hm.test(N),W=.0625*(z?-1:1),[J,oe]=z?[j,N]:[N,j];return"("+(_[0]==="="?"":_[0]===">"===z?"max-":"min-")+J+":"+(_[0]!=="="&&_.length===1?oe.replace(hm,((ie,Z,X)=>Number(Z)+W*(_===">"?1:-1)+X)):oe)+(F?") and ("+(F[0]===">"?"min-":"max-")+J+":"+(F.length===1?$.replace(hm,((ie,Z,X)=>Number(Z)+W*(F===">"?-1:1)+X)):$):"")+")"}))),I){const L=T?m.concat(p):[...m],N=T?[...f]:oZ(f,p.split(uZ));i!==void 0&&s(iv(...i)),i=void 0,u(y,N,L)}else i===void 0&&(i=[[],f,m]),p=T||p.charCodeAt(0)!==36?p:`--${Js(r.prefix)}${p.slice(1).replace(/\$/g,"-")}`,y=I?y:typeof y=="number"?y&&R in fZ?String(y)+"px":String(y):Ww(lZ(R,y??""),r.prefix,r.themeMap[R]),i[0].push(`${T?`${p} `:`${F5(p)}:`}${y}`)}}var b,E};v(d),i!==void 0&&s(iv(...i)),i=void 0};u(n,e,t)},iv=(n,e,t)=>`${t.map((r=>`${r}{`)).join("")}${e.length?`${e.join(",")}{`:""}${n.join(";")}${e.length?"}":""}${Array(t.length?t.length+1:0).join("}")}`,fZ={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},av=n=>String.fromCharCode(n+(n>25?39:97)),Aa=n=>(e=>{let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=av(t%52)+r;return av(t%52)+r})(((e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e})(5381,JSON.stringify(n))>>>0),cc=["themed","global","styled","onevar","resonevar","allvar","inline"],hZ=n=>{if(n.href&&!n.href.startsWith(location.origin))return!1;try{return!!n.cssRules}catch{return!1}},mZ=n=>{let e;const t=()=>{const{cssRules:s}=e.sheet;return[].map.call(s,((i,a)=>{const{cssText:l}=i;let u="";if(l.startsWith("--sxs"))return"";if(s[a-1]&&(u=s[a-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const d in e.rules)if(e.rules[d].group===i)return`--sxs{--sxs:${[...e.rules[d].cache].join(" ")}}${l}`;return i.cssRules.length?`${u}${l}`:""}return l})).join("")},r=()=>{if(e){const{rules:l,sheet:u}=e;if(!u.deleteRule){for(;Object(Object(u.cssRules)[0]).type===3;)u.cssRules.splice(0,1);u.cssRules=[]}for(const d in l)delete l[d]}const s=Object(n).styleSheets||[];for(const l of s)if(hZ(l)){for(let u=0,d=l.cssRules;d[u];++u){const f=Object(d[u]);if(f.type!==1)continue;const m=Object(d[u+1]);if(m.type!==4)continue;++u;const{cssText:p}=f;if(!p.startsWith("--sxs"))continue;const y=p.slice(14,-3).trim().split(/\s+/),v=cc[y[0]];v&&(e||(e={sheet:l,reset:r,rules:{},toString:t}),e.rules[v]={group:m,index:u,cache:new Set(y)})}if(e)break}if(!e){const l=(u,d)=>({type:d,cssRules:[],insertRule(f,m){this.cssRules.splice(m,0,l(f,{import:3,undefined:1}[(f.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return u==="@media{}"?`@media{${[].map.call(this.cssRules,(f=>f.cssText)).join("")}}`:u}});e={sheet:n?(n.head||n).appendChild(document.createElement("style")).sheet:l("","text/css"),rules:{},reset:r,toString:t}}const{sheet:i,rules:a}=e;for(let l=cc.length-1;l>=0;--l){const u=cc[l];if(!a[u]){const d=cc[l+1],f=a[d]?a[d].index:i.cssRules.length;i.insertRule("@media{}",f),i.insertRule(`--sxs{--sxs:${l}}`,f),a[u]={group:i.cssRules[f+1],index:f,cache:new Set([l])}}pZ(a[u])}};return r(),e},pZ=n=>{const e=n.group;let t=e.cssRules.length;n.apply=r=>{try{e.insertRule(r,t),++t}catch{}}},nc=Symbol(),gZ=ll(),ov=(n,e)=>gZ(n,(()=>(...t)=>{let r={type:null,composers:new Set};for(const s of t)if(s!=null)if(s[Ra]){r.type==null&&(r.type=s[Ra].type);for(const i of s[Ra].composers)r.composers.add(i)}else s.constructor!==Object||s.$$typeof?r.type==null&&(r.type=s):r.composers.add(yZ(s,n));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),vZ(n,r,e)})),yZ=({variants:n,compoundVariants:e,defaultVariants:t,...r},s)=>{const i=`${Js(s.prefix)}c-${Aa(r)}`,a=[],l=[],u=Object.create(null),d=[];for(const p in t)u[p]=String(t[p]);if(typeof n=="object"&&n)for(const p in n){f=u,m=p,iZ.call(f,m)||(u[p]="undefined");const y=n[p];for(const v in y){const x={[p]:String(v)};String(v)==="undefined"&&d.push(p);const b=y[v],E=[x,b,!rv(b)];a.push(E)}}var f,m;if(typeof e=="object"&&e)for(const p of e){let{css:y,...v}=p;y=typeof y=="object"&&y||{};for(const b in v)v[b]=String(v[b]);const x=[v,y,!rv(y)];l.push(x)}return[i,r,a,l,u,d]},vZ=(n,e,t)=>{const[r,s,i,a]=xZ(e.composers),l=typeof e.type=="function"||e.type.$$typeof?(m=>{function p(){for(let y=0;y<p[nc].length;y++){const[v,x]=p[nc][y];m.rules[v].apply(x)}return p[nc]=[],null}return p[nc]=[],p.rules={},cc.forEach((y=>p.rules[y]={apply:v=>p[nc].push([y,v])})),p})(t):null,u=(l||t).rules,d=`.${r}${s.length>1?`:where(.${s.slice(1).join(".")})`:""}`,f=m=>{m=typeof m=="object"&&m||CZ;const{css:p,...y}=m,v={};for(const E in i)if(delete y[E],E in m){let T=m[E];typeof T=="object"&&T?v[E]={"@initial":i[E],...T}:(T=String(T),v[E]=T!=="undefined"||a.has(E)?T:i[E])}else v[E]=i[E];const x=new Set([...s]);for(const[E,T,w,R]of e.composers){t.rules.styled.cache.has(E)||(t.rules.styled.cache.add(E),Po(T,[`.${E}`],[],n,(N=>{u.styled.apply(N)})));const I=lv(w,v,n.media),L=lv(R,v,n.media,!0);for(const N of I)if(N!==void 0)for(const[_,j,F]of N){const $=`${E}-${Aa(j)}-${_}`;x.add($);const z=(F?t.rules.resonevar:t.rules.onevar).cache,W=F?u.resonevar:u.onevar;z.has($)||(z.add($),Po(j,[`.${$}`],[],n,(J=>{W.apply(J)})))}for(const N of L)if(N!==void 0)for(const[_,j]of N){const F=`${E}-${Aa(j)}-${_}`;x.add(F),t.rules.allvar.cache.has(F)||(t.rules.allvar.cache.add(F),Po(j,[`.${F}`],[],n,($=>{u.allvar.apply($)})))}}if(typeof p=="object"&&p){const E=`${r}-i${Aa(p)}-css`;x.add(E),t.rules.inline.cache.has(E)||(t.rules.inline.cache.add(E),Po(p,[`.${E}`],[],n,(T=>{u.inline.apply(T)})))}for(const E of String(m.className||"").trim().split(/\s+/))E&&x.add(E);const b=y.className=[...x].join(" ");return{type:e.type,className:b,selector:d,props:y,toString:()=>b,deferredInjector:l}};return F8(f,{className:r,selector:d,[Ra]:e,toString:()=>(t.rules.styled.cache.has(r)||f(),r)})},xZ=n=>{let e="";const t=[],r={},s=[];for(const[i,,,,a,l]of n){e===""&&(e=i),t.push(i),s.push(...l);for(const u in a){const d=a[u];(r[u]===void 0||d!=="undefined"||l.includes(d))&&(r[u]=d)}}return[e,t,r,new Set(s)]},lv=(n,e,t,r)=>{const s=[];e:for(let[i,a,l]of n){if(l)continue;let u,d=0,f=!1;for(u in i){const m=i[u];let p=e[u];if(p!==m){if(typeof p!="object"||!p)continue e;{let y,v,x=0;for(const b in p){if(m===String(p[b])){if(b!=="@initial"){const E=b.slice(1);(v=v||[]).push(E in t?t[E]:b.replace(/^@media ?/,"")),f=!0}d+=x,y=!0}++x}
1489if(v&&v.length&&(a={["@media "+v.join(", ")]:a}),!y)continue e}}}(s[d]=s[d]||[]).push([r?"cv":`${u}-${i[u]}`,a,f])}return s},CZ={},bZ=ll(),SZ=(n,e)=>bZ(n,(()=>(...t)=>{const r=()=>{for(let s of t){s=typeof s=="object"&&s||{};let i=Aa(s);if(!e.rules.global.cache.has(i)){if(e.rules.global.cache.add(i),"@import"in s){let a=[].indexOf.call(e.sheet.cssRules,e.rules.themed.group)-1;for(let l of[].concat(s["@import"]))l=l.includes('"')||l.includes("'")?l:`"${l}"`,e.sheet.insertRule(`@import ${l};`,a++);delete s["@import"]}Po(s,[],[],n,(a=>{e.rules.global.apply(a)}))}}return""};return F8(r,{toString:r})})),EZ=ll(),wZ=(n,e)=>EZ(n,(()=>t=>{const r=`${Js(n.prefix)}k-${Aa(t)}`,s=()=>{if(!e.rules.global.cache.has(r)){e.rules.global.cache.add(r);const i=[];Po(t,[],[],n,(l=>i.push(l)));const a=`@keyframes ${r}{${i.join("")}}`;e.rules.global.apply(a)}return r};return F8(s,{get name(){return s()},toString:s})})),TZ=class{constructor(e,t,r,s){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=r==null?"":String(r),this.prefix=s==null?"":String(s)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Js(this.prefix)+Js(this.scale)+this.token}toString(){return this.computedValue}},IZ=ll(),RZ=(n,e)=>IZ(n,(()=>(t,r)=>{r=typeof t=="object"&&t||Object(r);const s=`.${t=(t=typeof t=="string"?t:"")||`${Js(n.prefix)}t-${Aa(r)}`}`,i={},a=[];for(const u in r){i[u]={};for(const d in r[u]){const f=`--${Js(n.prefix)}${u}-${d}`,m=Ww(String(r[u][d]),n.prefix,u);i[u][d]=new TZ(d,m,u,n.prefix),a.push(`${f}:${m}`)}}const l=()=>{if(a.length&&!e.rules.themed.cache.has(t)){e.rules.themed.cache.add(t);const u=`${r===n.theme?":root,":""}.${t}{${a.join(";")}}`;e.rules.themed.apply(u)}return t};return{...i,get className(){return l()},selector:s,toString:l}})),AZ=ll(),LZ=ll(),NZ=n=>{const e=(t=>{let r=!1;const s=AZ(t,(i=>{r=!0;const a="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",l=typeof i.media=="object"&&i.media||{},u=typeof i.root=="object"?i.root||null:globalThis.document||null,d=typeof i.theme=="object"&&i.theme||{},f={prefix:a,media:l,theme:d,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...rZ},utils:typeof i.utils=="object"&&i.utils||{}},m=mZ(u),p={css:ov(f,m),globalCss:SZ(f,m),keyframes:wZ(f,m),createTheme:RZ(f,m),reset(){m.reset(),p.theme.toString()},theme:{},sheet:m,config:f,prefix:a,getCssText:m.toString,toString:m.toString};return String(p.theme=p.createTheme(d)),p}));return r||s.reset(),s})(n);return e.styled=(({config:t,sheet:r})=>LZ(t,(()=>{const s=ov(t,r);return(...i)=>{const a=s(...i),l=a[Ra].type,u=Ke.forwardRef(((d,f)=>{const m=d&&d.as||l,{props:p,deferredInjector:y}=a(d);return delete p.as,p.ref=f,y?Ke.createElement(Ke.Fragment,null,Ke.createElement(m,p),Ke.createElement(y,null)):Ke.createElement(m,p)}));return u.className=a.className,u.displayName=`Styled.${l.displayName||l.name||l}`,u.selector=a.selector,u.toString=()=>a.selector,u[Ra]=a[Ra],u}})))(e),e};const{keyframes:kZ,styled:Kw}=NZ();function PZ({isDevelopment:n=!1},e){throw new Error("Please contact your developer to provide the required parameters to use the Web Payments SDK.")}const _Z=S.forwardRef(PZ),OZ=_Z,DZ=typeof window<"u"?S.useLayoutEffect:S.useEffect;function jZ(n){const e=S.useRef(n);return DZ(()=>{e.current=n},[n]),S.useCallback((...t)=>e.current(...t),[])}const qw=S.createContext({cardTokenizeResponseReceived:null,createPaymentRequest:null,payments:null});function MZ({applicationId:n,locationId:e,children:t,overrides:r,...s}){const[i,a]=S.useState(),[l]=S.useState(()=>{var f;return(f=s.createPaymentRequest)==null?void 0:f.call(s)});S.useEffect(()=>{const f=new AbortController,{signal:m}=f;async function p(y){await nZ(n,e,r).then(v=>{if(v===null)throw new Error("Square Web Payments SDK failed to load");if(!(y!=null&&y.aborted))return a(v),v})}return n&&e&&p(m),()=>{f.abort()}},[n,e]);const u=jZ(async f=>{if(f.status!=="OK"||!s.createVerificationDetails){await s.cardTokenizeResponseReceived(f);return}const m=await(i==null?void 0:i.verifyBuyer(String(f.token),s.createVerificationDetails()));await s.cardTokenizeResponseReceived(f,m)});if(!n||!e)return S.createElement(OZ,null);if(!i)return null;const d={cardTokenizeResponseReceived:u,createPaymentRequest:l,payments:i};return S.createElement(qw.Provider,{value:d},t)}const FZ=()=>{const n=S.useContext(qw);if(n===void 0)throw new Error("useForm must be used within a FormProvider");return n},$Z=n=>n&&typeof n=="object"&&"current"in n?n.current:n;var Iv;const BZ=!(typeof window<"u"&&((Iv=window.document)!=null&&Iv.createElement));function UZ({type:n,listener:e,element:t=BZ?void 0:window,options:r}){const s=S.useRef();S.useEffect(()=>{s.current=e},[e]);const i=S.useCallback(a=>{var l;(l=s.current)==null||l.call(s,a)},[]);S.useEffect(()=>{const a=$Z(t);return a==null||a.addEventListener(n,i,r),()=>a==null?void 0:a.removeEventListener(n,i)},[n,t,r,i])}const VZ=kZ({"0%, 100%":{opacity:1},"50%":{opacity:.5}}),zZ=Kw("div",{animation:`${VZ()} 2s cubic-bezier(0.4, 0, 0.6, 1) infinite`,background:"#F3F4F6",borderRadius:6,height:50,marginBottom:39,position:"relative"}),GZ=Kw("button",{backgroundColor:"#006aff",borderRadius:5,boxSh
1489adow:1,color:"#fff",cursor:"pointer",borderStyle:"none",fontSize:16,fontWeight:500,lineHeight:"24px",outline:"none",padding:12,userSelect:"none",width:"100%","&:active":{backgroundColor:"rgb(0, 85, 204)"},"&:disabled":{backgroundColor:"rgba(0, 0, 0, 0.05)",color:"rgba(0, 0, 0, 0.3)",cursor:"not-allowed"}});function Yw({buttonProps:n,callbacks:e,children:t,focus:r,id:s="rswps-card-container",includeInputLabels:i,postalCode:a,recalculateSize:l,render:u,style:d,...f}){const[m,p]=S.useState(()=>{}),[y,v]=S.useState(!1),x=S.useRef(null),{cardTokenizeResponseReceived:b,payments:E}=FZ(),T=S.useMemo(()=>{const I={includeInputLabels:i,postalCode:a,style:d};return Object.keys(I).reduce((L,N)=>(I[N]!==void 0&&(L[N]=I[N]),L),{})},[i,a,d]),w=async I=>{if(I.stopPropagation(),!(n!=null&&n.isLoading)){if(!m){console.warn("Credit Card button was clicked, but no Credit Card instance was found.");return}v(!0);try{const L=await m.tokenize();if(L.status==="OK")return await b(L);let N=`Tokenization failed with status: ${L.status}`;if(L&&"errors"in L)throw N+=` and errors: ${JSON.stringify(L==null?void 0:L.errors)}`,new Error(N);console.warn(N)}catch(L){console.error(L)}finally{v(!1)}}};if(S.useEffect(()=>{const I=new AbortController,{signal:L}=I;return(async N=>{const _=await(E==null?void 0:E.card(T).then(j=>N.aborted?null:(p(j),j)));await(_==null?void 0:_.attach(`#${s}`)),r&&await(_==null?void 0:_.focus(r)),N.aborted&&await(_==null?void 0:_.destroy())})(L),()=>{I.abort()}},[E,s]),S.useEffect(()=>{m&&r&&m.focus(r)},[m,r]),e)for(const I of Object.keys(e))m==null||m.addEventListener(I,e[I]);l&&l(m==null?void 0:m.recalculateSize),UZ({listener:w,type:"click",element:x,options:{passive:!0}});const R=({children:I,isLoading:L,...N})=>{const _="rswp-card-button",j=L||!m||y;return S.createElement(GZ,{...N,"aria-disabled":j,css:N==null?void 0:N.css,disabled:j,id:_,ref:x,type:"button"},I??"Pay")};return S.createElement(S.Fragment,null,S.createElement("div",{...f,"data-testid":"rswps-card-container",id:s,style:{minHeight:89}},!m&&S.createElement(zZ,null)),typeof u=="function"?u(R):S.createElement(R,{...n},t??"Pay"))}function HZ({applicationId:n,cardTokenizeResponseReceived:e,locationId:t,children:r,formProps:s={"aria-label":"Payment form",id:"rswps-form"},overrides:i,...a},l){return S.createElement(MZ,{...a,applicationId:n,cardTokenizeResponseReceived:e,locationId:t,overrides:i},S.createElement("div",{"data-testid":"rswps-form",...s,ref:l,role:"form"},r))}const WZ=S.forwardRef(HZ),Xw=WZ;function Zw(n){const[e,t]=S.useState(!1);return e?o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:"Adding a New Card"}),o.jsx("p",{children:"We accept all major credit card brands."}),o.jsxs(Xw,{applicationId:AT,cardTokenizeResponseReceived:(r,s)=>{Pe.post(es+"/customer/cards",{cardToken:r.token,cardData:r.details,verifiedBuyer:s}).then(i=>{Et(i.data.message),n.dataUpdater&&(n.dataUpdater(),t(!1))}).catch(i=>{console.log(i.response.data),je(i.response.data.error)}).catch(i=>{console.log(i)})},locationId:LT,children:[o.jsx(Yw,{buttonProps:{className:"green-click-button"},children:"Submit"}),o.jsx("br",{})]}),o.jsx("br",{}),o.jsx(zt,{onClick:()=>t(!1),children:"Cancel"})]}):o.jsx(zt,{onClick:()=>t(!0),text:"+ Add New Card "})}function KZ(n){const e=t=>{if(console.log("token"),console.log(t),n.type==="subscription")return Pe.put(es+"/subscription",{transactionId:n.transactionId,cardToken:t.token,amount:n.amount,type:n.type,channelName:n.channelName,subscriptionCatalogId:n.subscriptionCatalogId});Pe.post(es+"/",{transactionId:n.transactionId,cardToken:t.token,amount:n.amount,type:n.type,numItem:n.numItem}).then().catch(r=>{console.log(r)}).finally()};return o.jsx("div",{className:"container",children:o.jsx(Xw,{applicationId:AT,cardTokenizeResponseReceived:(t,r)=>{e(t).then(s=>{Et(s.data.message),n.close()}).catch(s=>{je(s.response.data.error)})},locationId:LT,children:o.jsx(Yw,{buttonProps:{css:{backgroundColor:"#771520",fontSize:"14px",color:"var(--default-text-color)","&:hover":{backgroundColor:"#530f16"}}}})})})}function qZ(n){const e=S.useMemo(()=>{var l;return((l=n.cardList)==null?void 0:l.filter(u=>u.isEnabled))??[]},[n.cardList]),t=S.useMemo(()=>{var l;return e.length===0?"":((l=e.find(u=>u.isPrimary))==null?void 0:l.cardId)??e[0].cardId},[e]),[r,s]=S.useState(t);S.useEffect(()=>{s(t),n.setPaymentCard(t)},[t,n]);const i=l=>{s(l),n.setPaymentCard(l)},a=()=>e.length===0?o.jsxs("div",{className:"saved-cards-empty-state",children:[o.jsx("h5",{children:"No saved cards"}),o.jsx("p",{children:"Add a card to continue with this purchase."})]}):e.map((l,u)=>{const d=l.cardId??u.toString(),f=r===d;return o.jsxs("button",{type:"button",className:`saved-card-choice ${f?"saved-card-choice-selected":""}`,onClick:()=>i(d),"aria-pressed":f,"aria-label":`Use ${l.cardType} ending in ${l.cardLast4}`,children:[o.jsxs("div",{className:"saved-card-choice-top-row",children:[o.jsx("span",{className:"saved-card-choice-radio","aria-hidden":"true",children:f?"●":"○"}),l.isPrimary&&o.jsx("span",{className:"saved-card-choice-primary-badge",children:"Primary"})]}),o.jsxs("div",{className:"saved-card-choice-brand-row",children:[o.jsx("span",{className:"saved-card-choice-brand",children:l.cardType}),o.jsxs("span",{className:"saved-card-choice-last-four",children:["•••• ",l.cardLast4]})]}),o.jsxs("p",{className:"saved-card-choice-detail",children:["Expires ",l.expMonth,"/",l.expYear]})]},l.cardId??u)});return o.jsxs("div",{className:"saved-cards-picker-wrapper",children:[o.jsxs("div",{className:"saved-cards-picker-header",children:[o.jsx("h5",{className:"saved-cards-picker-title",children:"Saved payment cards"}),o.jsx("p",{className:"saved-cards-picker-description",children:"Choose which saved card to use for this purchase."})]}),o.jsx("div",{className:"saved-cards-picker-grid",role:"group","aria-label":"Select saved payment card",children:a()})]})}function $8(n){const[e,t]=S.useState(!1),[r,s]=S.useState(""),[i,a]=S.useState(n.cards);
1489S.useEffect(()=>{},[n.show,i]);const l=p=>n.setShow(p),u=p=>n.type==="subscription"?Pe.put(es+"/subscription",{transactionId:n.transactionInfo.transactionId,cardToken:r,amount:n.amount,channelName:n.channelName,subscriptionCatalogId:n.subscriptionCatalogId}):Pe.post(es+"/",{transactionId:n.transactionInfo.transactionId,token:r,numItem:n.transactionInfo.quantity,amount:n.amount}),d=()=>{if(e&&n.type!=="subscription")return o.jsxs(o.Fragment,{children:[o.jsx("p",{children:"We accept all major credit cards!"}),o.jsx(KZ,{transactionId:n.transactionInfo.transactionId,close:()=>l(!1),user:bn(),numItem:n.transactionInfo.quantity,type:n.type,channelName:n.channelName,subscriptionCatalogId:n.subscriptionCatalogId}),o.jsx("p",{children:o.jsx("i",{children:"NOTE: Any one-time card will be saved to your profile for any subscription purchase"})})]})},f=()=>{Pe.get(Ft+"/user/cards").then(p=>{a(p.data),t(!1)}).catch(p=>{console.log(p.response.data.error)})},m=()=>n.type==="subscription"?o.jsxs("div",{children:[o.jsx("p",{children:"Add a card to your account!"}),o.jsx("br",{}),o.jsx(Zw,{reload:!1,dataUpdater:()=>f()})]}):o.jsx(Je,{className:"green-click-button",onClick:()=>{t(!0)},children:"Use One-Time card"});return o.jsxs(ut,{backdrop:"static",show:n.show,onHide:l,centered:!0,contentClassName:"strim-modal-content",children:[o.jsx(ut.Header,{closeButton:!0,className:"strim-modal-header",children:o.jsxs(ut.Title,{className:"strim-modal-title",children:["Purchase Details: ",n.channelName]})}),o.jsxs(ut.Body,{className:"strim-modal-body strim-modal-scrollable",children:[o.jsxs("div",{style:{textAlign:"center"},children:[o.jsx("h2",{style:{marginBottom:"1.5rem"},children:"Confirm Your Purchase"}),o.jsxs("div",{style:{background:"rgba(255,255,255,0.05)",padding:"1.5rem",borderRadius:"12px",marginBottom:"1.5rem"},children:[o.jsxs("p",{style:{fontSize:"1.5rem",fontWeight:"bold",margin:0},children:[n.transactionInfo.quantity," ",n.transactionInfo.item]}),o.jsxs("p",{style:{fontSize:"1.2rem",color:"var(--a-color)",marginTop:"0.5rem"},children:["Total: $",(n.transactionInfo.totalCost/100).toFixed(2)]})]}),o.jsxs("div",{style:{marginBottom:"1.5rem"},children:[o.jsx("p",{style:{marginBottom:"0.75rem",opacity:.8},children:"Pay with a saved card:"}),o.jsx("div",{style:{display:"flex",justifyContent:"center"},children:o.jsx(qZ,{cardList:i,setPaymentCard:p=>s(p)})})]}),o.jsxs("div",{style:{marginTop:"1.5rem",display:"flex",flexDirection:"column",gap:"1rem",alignItems:"center"},children:[o.jsx(Je,{className:"green-click-button",style:{minWidth:"200px"},onClick:()=>{u(n.type).then(p=>{Tt(p.data.message),l(!1)}).catch(p=>{je(p.response.data.error)})},children:"Complete Purchase"}),o.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",gap:"1rem",margin:"0.5rem 0"},children:[o.jsx("div",{style:{flex:1,height:"1px",background:"rgba(255,255,255,0.1)"}}),o.jsx("span",{style:{fontSize:"0.9rem",opacity:.5},children:"OR"}),o.jsx("div",{style:{flex:1,height:"1px",background:"rgba(255,255,255,0.1)"}})]}),m()]})]}),d()]}),o.jsx(ut.Footer,{className:"strim-modal-footer",children:o.jsx(Je,{className:"cancel-button",variant:"secondary",onClick:()=>l(!1),children:"Cancel"})})]})}function Qw(n){const[e,t]=S.useState(0),[r,s]=S.useState(0),[i,a]=S.useState(0);let l=S.useRef(null);S.useEffect(()=>{},[n.show]);const u=p=>n.setPurchasePointsVisible(p),d=(p,y)=>{if(p===0){Et("Sorry you can't buy 0 Drops!");return}m(!1,p,y)},f=(p,y)=>{if(p===0){Et("Sorry you can't buy 0 Drops!");return}m(!0,p,y)},m=(p,y,v)=>{Pe.post(es+"/create",{custom:p,numPoints:y,projectedCost:v}).then(x=>{if(x.status!==200){je("Suspicious Transaction. Please try again");return}let b={...x.data,quantity:x.data.requestedPoints,totalCost:x.data.transactionCost,item:"drops"};n.setPurchaseInfo(b),n.setPurchasePointsVisible(!1),n.setShowPurchaseModal(!0),n.setBuyType("drops")}).catch(x=>{console.log(x),je(x.response.data.error)})};return o.jsxs(ut,{backdrop:"static",show:n.show,onHide:u,centered:!0,size:"lg",contentClassName:"strim-modal-content",children:[o.jsx(ut.Header,{closeButton:!0,className:"strim-modal-header",children:o.jsxs(ut.Title,{className:"strim-modal-title",children:["Purchase Drops for ",n.userName]})}),o.jsxs(ut.Body,{className:"strim-modal-body strim-modal-scrollable",children:[o.jsx("div",{style:{background:"rgba(231, 76, 60, 0.12)",border:"1px solid rgba(231, 76, 60, 0.25)",borderRadius:"12px",padding:"1.25rem",marginBottom:"2rem",boxShadow:"0 4px 15px rgba(0,0,0,0.1)"},children:o.jsxs("p",{style:{margin:0,fontSize:"0.95rem",color:"#ff7675",textAlign:"center",lineHeight:"1.5"},children:[o.jsx("strong",{style:{color:"#ff4757",display:"block",marginBottom:"0.25rem"},children:"PLEASE NOTE:"}),"All points purchases are FINAL and non-refundable. You will have the chance to verify your purchase ONCE after clicking the purchase button below. All purchases include a 3.5% transaction fee."]})}),o.jsxs("div",{style:{textAlign:"center",marginBottom:"2.5rem"},children:[o.jsx("h2",{style:{marginBottom:"0.75rem",fontWeight:"800"},children:"Drops Purchase"}),o.jsx("p",{style:{opacity:.7,fontSize:"1.1rem"},children:"Purchase any quantity at 1.3 cents (USD) per point, or choose a pre-selected bundle for a discount!"})]}),o.jsxs("div",{className:"purchase-section",style:{marginBottom:"3rem",display:"flex",flexDirection:"column",alignItems:"center"},children:[o.jsx("h4",{style:{marginBottom:"1.5rem",opacity:.9},children:"Custom Amount"}),o.jsxs("div",{style:{maxWidth:"350px",width:"100%",display:"flex",flexDirection:"column",alignItems:"center"},children:[o.jsxs("div",{style:{width:"100%",position:"relative"},children:[o.jsx(et.Control,{type:"number",ref:l,defaultValue:"0",min:"0",onChange:p=>s(Number(p.target.value)*.013),className:"input-form-control support-drop-input",style:{width:"100%",fontSize:"2.5rem",fontWeight:"800",padding:"1.25rem 0.5rem",borderRadius:"16px",marginBottom:"1rem",boxShadow:"inset 0 2px 5px rgba(0,0,0,0.4)"}}),o.jsx("div",{style:{position:"absolute",top:"10px",left:"20px",fontSize:"0.7rem",opacity:.4,fontWeight:"bold",textTransform:"uppercase",letterSpacing:"1px"},children:"Points"})]}),o.jsx("div",{style:{fontSize:"1.5rem",color:"var(--a-color)",fontWeight:"bold",marginBottom:"1.5rem",textAlign:"center",minHeight:"2.2rem"},children:r>1e3?"Maximum $1000 USD":`$${r.toFixed(2)} USD`}),o.jsx(Je,{disabled:r>1e3||r<=0||Number.isNaN(r),className:"green-click-button w-100",onClick:()=>f(l.current.value,Number(r.toFixed(2))),style:{padding:"1rem",fontSize:"1.1rem",fontWeight:"bold",borderRadius:"12px",boxShadow:"0 8px 20px rgba(96, 225, 183, 0.15)"},children:"Purchase Custom Amount"})]})]}),o.jsxs("div",{style:{display:"flex",alignItems:"center",margin:"2.5rem 0",gap:"1.5rem"},children:[o.jsx("div",{style:{flex:1,height:"1px",background:"rgba(255,255,255,0.1)"}}),o.jsx("span",{style:{opacity:.4,fontWeight:"bold",letterSpacing:"2px",fontSize:"0.8rem"},children:"OR SELECT A BUNDLE"}),o.jsx("div",{style:{flex:1,height:"1px",background:"rgba(255,255,255,0.1)"}})]}),o.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"1.5rem",marginBottom:"2rem"},children:o.jsxs("div",{style:{display:"flex",gap:"1rem",width:"100%",maxWidth:"500px"},children:[o.jsxs(et.Select,{onChange:p=>{a(Number(p.target.value.split(",")[0])),t(Number(p.target.value.split(",")[1]))},style:{background:"var(--darkest-background-color)",color:"var(--default-text-color)",border:"1px solid rgba(255,255,255,0.15)",padding:"0.75rem",borderRadius:"12px",flex:1,fontSize:"1.05rem"},className:"strim-form-select","aria-label":"Select points",children:[o.jsx("option",{value:[0,0],children:"Select a bundle..."},0),o.jsx("option",{value:[100,1.3],children:"100 Drops for $1.30 (USD) "}
1489,1),o.jsx("option",{value:[250,3.19],children:"250 Drops for $3.19 (USD)"},2),o.jsx("option",{value:[500,6.31],children:"500 Drops for $6.31 (USD)"},3),o.jsx("option",{value:[1e3,12.35],children:"1000 Drops for $12.35 (USD)"},4),o.jsx("option",{value:[2500,30.23],children:"2500 Drops for $30.23 (USD)"},5),o.jsx("option",{value:[5e3,58.5],children:"5000 Drops for $58.50 (USD)"},6),o.jsx("option",{value:[1e4,117],children:"10000 Drops for $117.00 (USD)"},7)]}),o.jsx(Je,{disabled:i<=0,className:"green-click-button",onClick:()=>d(i,Number(e.toFixed(2))),style:{padding:"0 1.5rem",fontWeight:"bold",borderRadius:"12px"},children:"Buy Bundle"})]})}),o.jsx("div",{style:{marginTop:"3rem",textAlign:"center",opacity:.6,fontSize:"0.95rem"},children:o.jsxs("p",{children:["Did you want to GIFT points to another user instead? ",o.jsx("a",{href:"#",style:{color:"var(--a-color)",textDecoration:"none",fontWeight:"bold"},children:"Click here"})]})})]}),o.jsx(ut.Footer,{className:"strim-modal-footer",children:o.jsx(Je,{className:"cancel-button",variant:"secondary",onClick:()=>u(!1),style:{borderRadius:"10px",padding:"0.5rem 1.5rem"},children:"Close"})})]})}function YZ(n){const[e,t]=S.useState(0),[r,s]=S.useState(1),[i,a]=S.useState(0),[l,u]=S.useState([0,499,999,1499,1999,2499]),[d,f]=S.useState(!1);S.useEffect(()=>{},[n.show]);const m=y=>n.setPurchaseSubVisible(y),p=()=>{if(i<=0||i>5){je("You must select a valid subscription duration");return}Pe.post(es+"/subscription",{subDuration:r,subLevel:i,channelName:n.channelName,projectedCost:e}).then(y=>{if(y.status>299){je(y.data.error);return}let v={...y.data,subLevel:i,channelName:n.channelName,subDuration:r,type:"subscription",item:n.channelName+" Tier "+i+" Subscription",quantity:r+" Months (Recurring)"};n.setPurchaseInfo(v),n.setPurchaseSubVisible(!1),n.setShowPurchaseModal(!0),n.setBuyType("subscription")}).catch(y=>{console.log(y),je(y.response.data.error),n.setPurchaseSubVisible(!1)})};return o.jsxs(ut,{backdrop:"static",show:n.show,onHide:m,centered:!0,size:"lg",contentClassName:"strim-modal-content",children:[o.jsx(ut.Header,{closeButton:!0,className:"strim-modal-header",children:o.jsxs(ut.Title,{className:"strim-modal-title",children:["Subscribe to ",n.channelName]})}),o.jsxs(ut.Body,{className:"strim-modal-body strim-modal-scrollable",children:[o.jsxs("div",{style:{textAlign:"center",marginBottom:"2rem"},children:[o.jsx("h2",{style:{marginBottom:"0.5rem"},children:"Support the Creator"}),o.jsxs("p",{style:{opacity:.8},children:["Join the community and get exclusive perks by subscribing to ",n.channelName,"!"]})]}),o.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"1.5rem"},children:[o.jsxs(et.Select,{onChange:y=>{t(Number(y.target.value.split(",")[0])),a(Number(y.target.value.split(",")[1]))},className:"strim-form-select",style:{maxWidth:"400px",background:"var(--darkest-background-color)",color:"var(--default-text-color)",border:"1px solid rgba(255,255,255,0.1)"},"aria-label":"Select subscription tier",children:[o.jsx("option",{value:[l[0],0],children:"Choose a subscription tier..."},0),o.jsxs("option",{value:[l[1],1],children:["Tier 1 - $",(l[1]/100).toFixed(2)]},1),o.jsxs("option",{value:[l[2],2],children:["Tier 2 - $",(l[2]/100).toFixed(2)]},2),o.jsxs("option",{value:[l[3],3],children:["Tier 3 - $",(l[3]/100).toFixed(2)]},3),o.jsxs("option",{value:[l[4],4],children:["Tier 4 - $",(l[4]/100).toFixed(2)]},4),o.jsxs("option",{value:[l[5],5],children:["Tier 5 - $",(l[5]/100).toFixed(2)]},5)]}),i>0&&o.jsxs("div",{style:{textAlign:"center",background:"rgba(96, 225, 183, 0.05)",padding:"1.5rem",borderRadius:"12px",border:"1px solid rgba(96, 225, 183, 0.2)",width:"100%",maxWidth:"500px"},children:[o.jsxs("h4",{children:["Tier ",i," Subscription"]}),o.jsxs("p",{style:{fontSize:"1.5rem",fontWeight:"bold",color:"var(--a-color)",margin:"0.5rem 0"},children:["$",(e/100).toFixed(2)," / month"]}),o.jsx("div",{style:{marginTop:"1rem"},children:o.jsx(zt,{onClick:()=>p(),text:"Continue to Payment"})})]})]}),o.jsxs("div",{style:{marginTop:"2rem",padding:"1rem",background:"rgba(255,255,255,0.03)",borderRadius:"8px",fontSize:"0.85rem",opacity:.8,lineHeight:1.6},children:[o.jsxs("p",{style:{marginBottom:"1rem"},children:[o.jsx("strong",{children:"Subscription Policy:"})," Subs are automatically renewing. Your card will be charged every month on the same day. You can cancel at any time to prevent future charges."]}),o.jsx("p",{style:{margin:0},children:"All subscription purchases are FINAL and non-refundable. A 3.5% transaction fee is included in the total."})]}),o.jsx("div",{style:{marginTop:"2rem",textAlign:"center",opacity:.7},children:o.jsxs("p",{children:["Want to GIFT a subscription instead? ",o.jsx("a",{href:"#",style:{color:"var(--a-color)"},onClick:y=>{y.preventDefault(),n.setPurchaseSubVisible(!1),n.setGiftSubVisible(!0)},children:"Click here"})]})})]}),o.jsx(ut.Footer,{className:"strim-modal-footer",children:o.jsx(zt,{onClick:()=>m(!1),text:"Cancel"})})]})}const Jw=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:40,zoomAndPan:"magnify",viewBox:"0 0 30 30.000001",height:40,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"67fda3021d"},S.createElement("path",{d:"M 0.484375 0.253906 L 29.515625 0.253906 L 29.515625 29.03125 L 0.484375 29.03125 Z M 0.484375 0.253906 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"d4f55450b8"},S.createElement("path",{d:"M 15 0.253906 C 6.984375 0.253906 0.484375 6.753906 0.484375 14.769531 C 0.484375 22.785156 6.984375 29.285156 15 29.285156 C 23.015625 29.285156 29.515625 22.785156 29.515625 14.769531 C 29.515625 6.753906 23.015625 0.253906 15 0.253906 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"86cc1b32e1"},S.createElement("path",{d:"M 5.515625 5.445312 L 24.386719 5.445312 L 24.386719 23.589844 L 5.515625 23.589844 Z M 5.515625 5.445312 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#67fda3021d)"},S.createElement("g",{clipPath:"url(#d4f55450b8)"},S.createElement("path",{fill:"var(--lighter-background-color)",d:"M 0.484375 0.253906 L 29.515625 0.253906 L 29.515625 29.285156 L 0.484375 29.285156 Z M 0.484375 0.253906 ",fillOpacity:1,fillRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#86cc1b32e1)"},S.createElement("path",{fill:"var(--darker-background-color)",d:"M 24.105469 22.351562 L 19.992188 18.214844 C 20.949219 16.886719 21.519531 15.257812 21.519531 13.492188 C 21.519531 9.058594 17.929688 5.449219 13.515625 5.449219 C 9.105469 5.449219 5.515625 9.058594 5.515625 13.492188 C 5.515625 17.929688 9.105469 21.539062 13.515625 21.539062 C 15.65625 21.539062 17.605469 20.6875 19.039062 19.308594 L 23.085938 23.378906 C 23.230469 23.519531 23.414062 23.589844 23.597656 23.589844 C 23.78125 23.589844 23.964844 23.519531 24.105469 23.378906 C 24.386719 23.09375 24.386719 22.636719 24.105469 22.351562 Z M 13.515625 20.089844 C 9.898438 20.089844 6.957031 17.128906 6.957031 13.492188 C 6.957031 9.855469 9.898438 6.898438 13.515625 6.898438 C 17.132812 6.898438 20.078125 9.855469 20.078125 13.492188 C 20.078125 17.128906 17.132812 20.089844 13.515625 20.089844 Z M 13.515625 20.089844 ",fillOpacity:1,fillRule:"nonzero"})));function XZ(n){const[e,t]=S.useState(0),[r,s]=S.useState(1),[i,a]=S.useState(0),[l,u]=S.useState([0,499,999,1499,1999,2499]),[d,f]=S.useState(""),[m,p]=S.useState([]),[y,v]=S.useState(!1),[x,b]=S.useState(null),[E,T]=S.useState(!1),w=S.useRef(null),R=()=>n.setGiftSubVisible(!1),I=S.useMemo(()=>d.trim(),[d]);S.useEffect(()=>{const _=j=>{w.current&&!w.current.contains(j.target)&&T(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[]),S.useEffect(()=>{if(I.length<2){p([]),v(!1);return}const _=setTimeout(()=>{L(I)},450);return()=>clearTimeout(_)},[I]);const L=_=>{v(!0),T(!0),Pe.get(`${Ft}/search?name=${encodeURIComponent(_)}&field=users`).then(j=>{p(j.data.users??[])}).catch(()=>{p([])}).finally(()=>{v(!1)})},N=()=>
1489{if(!x){je("Please select a user to gift the subscription to.");return}if(i<=0||i>5){je("Please select a valid subscription tier.");return}Pe.post(es+"/gift/subscription",{subDuration:r,subLevel:i,channelName:n.channelName,projectedCost:e,recipient:x.name}).then(_=>{if(_.status>299){je(_.data.error);return}let j={..._.data,subLevel:i,channelName:n.channelName,subDuration:r,recipient:x.name,type:"gift_subscription",item:`Gift Tier ${i} Subscription to ${x.name}`,quantity:`${r} Month(s)`};n.setPurchaseInfo(j),n.setGiftSubVisible(!1),n.setShowPurchaseModal(!0),n.setBuyType("subscription")}).catch(_=>{var j,F;console.log(_),je(((F=(j=_.response)==null?void 0:j.data)==null?void 0:F.error)||"An error occurred during the transaction."),n.setGiftSubVisible(!1)})};return o.jsxs(ut,{backdrop:"static",show:n.show,onHide:R,centered:!0,size:"lg",contentClassName:"strim-modal-content",children:[o.jsx(ut.Header,{closeButton:!0,className:"strim-modal-header",children:o.jsxs(ut.Title,{className:"strim-modal-title",children:["Gift a Subscription on ",n.channelName]})}),o.jsxs(ut.Body,{className:"strim-modal-body strim-modal-scrollable",children:[o.jsxs("div",{style:{textAlign:"center",marginBottom:"2rem"},children:[o.jsx("h2",{style:{marginBottom:"0.5rem"},children:"Gift to a Community Member"}),o.jsx("p",{style:{opacity:.8},children:"Share the love! Gift a subscription to another user and help them enjoy exclusive perks."})]}),o.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"2rem"},children:[o.jsxs("div",{ref:w,style:{width:"100%",maxWidth:"500px",position:"relative"},children:[o.jsx("h5",{style:{marginBottom:"1rem"},children:"1. Select Recipient"}),x?o.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"rgba(96, 225, 183, 0.1)",padding:"0.75rem 1rem",borderRadius:"8px",border:"1px solid var(--a-color)"},children:[o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[o.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",background:"var(--a-color)",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",color:"var(--darker-background-color)"},children:x.name.charAt(0).toUpperCase()}),o.jsx("span",{style:{fontWeight:"bold"},children:x.name})]}),o.jsx("button",{onClick:()=>{b(null),f("")},style:{background:"transparent",border:"none",color:"white",opacity:.6,fontSize:"1.2rem",cursor:"pointer"},children:"×"})]}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{style:{background:"var(--darkest-background-color)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"8px",padding:"0.5rem 1rem",display:"flex",alignItems:"center"},children:[o.jsx(Jw,{style:{width:"20px",height:"20px",opacity:.5,marginRight:"10px"}}),o.jsx("input",{type:"text",placeholder:"Search for a user...",value:d,onChange:_=>{f(_.target.value),T(!0)},style:{background:"transparent",border:"none",color:"white",flex:1,outline:"none"}}),y&&o.jsx(Ua,{animation:"border",size:"sm",style:{color:"var(--a-color)"}})]}),E&&d.length>=2&&o.jsx("div",{style:{position:"absolute",top:"100%",left:0,right:0,background:"var(--lighter-background-color)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"0 0 8px 8px",zIndex:1e3,maxHeight:"250px",overflowY:"auto",boxShadow:"0 10px 25px rgba(0,0,0,0.5)"},children:m.length>0?m.map(_=>o.jsxs("div",{onClick:()=>{b(_),T(!1)},onMouseOver:j=>j.currentTarget.style.background="rgba(255,255,255,0.05)",onMouseOut:j=>j.currentTarget.style.background="transparent",style:{padding:"10px 15px",cursor:"pointer",display:"flex",alignItems:"center",gap:"10px",borderBottom:"1px solid rgba(255,255,255,0.05)",transition:"background 0.2s"},children:[o.jsx("div",{style:{width:"24px",height:"24px",borderRadius:"50%",background:"rgba(255,255,255,0.1)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.8rem"},children:_.name.charAt(0).toUpperCase()}),_.name]},_.name)):y?null:o.jsx("div",{style:{padding:"15px",textAlign:"center",opacity:.5},children:"No users found"})})]})]}),o.jsxs("div",{style:{width:"100%",maxWidth:"500px"},children:[o.jsx("h5",{style:{marginBottom:"1rem",opacity:x?1:.5},children:"2. Choose Subscription Tier"}),o.jsxs(et.Select,{disabled:!x,onChange:_=>{t(Number(_.target.value.split(",")[0])),a(Number(_.target.value.split(",")[1]))},className:"strim-form-select",style:{width:"100%",background:"var(--darkest-background-color)",color:"var(--default-text-color)",border:"1px solid rgba(255,255,255,0.1)"},"aria-label":"Select subscription tier",children:[o.jsx("option",{value:[l[0],0],children:"Choose a subscription tier..."},0),o.jsxs("option",{value:[l[1],1],children:["Tier 1 - $",(l[1]/100).toFixed(2)]},1),o.jsxs("option",{value:[l[2],2],children:["Tier 2 - $",(l[2]/100).toFixed(2)]},2),o.jsxs("option",{value:[l[3],3],children:["Tier 3 - $",(l[3]/100).toFixed(2)]},3),o.jsxs("option",{value:[l[4],4],children:["Tier 4 - $",(l[4]/100).toFixed(2)]},4),o.jsxs("option",{value:[l[5],5],children:["Tier 5 - $",(l[5]/100).toFixed(2)]},5)]})]}),i>0&&x&&o.jsxs("div",{style:{textAlign:"center",background:"rgba(96, 225, 183, 0.05)",padding:"1.5rem",borderRadius:"12px",border:"1px solid rgba(96, 225, 183, 0.2)",width:"100%",maxWidth:"500px"},children:[o.jsxs("h4",{children:["Tier ",i," Gift for ",x.name]}),o.jsxs("p",{style:{fontSize:"1.5rem",fontWeight:"bold",color:"var(--a-color)",margin:"0.5rem 0"},children:["$",(e/100).toFixed(2)]}),o.jsx("div",{style:{marginTop:"1rem"},children:o.jsx(zt,{onClick:()=>N(),text:"Continue to Payment"})})]})]}),o.jsxs("div",{style:{marginTop:"2rem",padding:"1rem",background:"rgba(255,255,255,0.03)",borderRadius:"8px",fontSize:"0.85rem",opacity:.8,lineHeight:1.6},children:[o.jsxs("p",{style:{marginBottom:"1rem"},children:[o.jsx("strong",{children:"Gift Policy:"})," Gift subscriptions are one-time purchases and do not renew. The recipient will receive the subscription benefits immediately after a successful transaction."]}),o.jsx("p",{style:{margin:0},children:"All subscription purchases are FINAL and non-refundable. A 3.5% transaction fee is included in the total."})]})]}),o.jsx(ut.Footer,{className:"strim-modal-footer",children:o.jsx(zt,{onClick:R,text:"Cancel"})})]})}function ZZ(n){var t,r,s,i;const e=!!((t=n.streamData)!=null&&t.over18||(r=n.streamData)!=null&&r.restricted||(s=n.streamData)!=null&&s.strict18||(i=n.streamData)!=null&&i.over_18);return n.streamData?o.jsx(o.Fragment,{children:o.jsxs("div",{style:{overflowY:"auto"},children:[o.jsxs("div",{className:"stream-about-header-row",children:[o.jsxs("h4",{children:[n.streamData.category??"Category Not provided"," - ",n.streamData.subcategory??"Sub-Category Not provided"]}),e&&o.jsxs("span",{className:"stream-18plus-badge",title:"18+ Stream Only",children:[o.jsx("span",{className:"stream-18plus-icon",children:"18+"})," 18+ Stream Only"]})]}),o.jsx("h3",{style:{fontWeight:"bold",fontStyle:"italic"},children:n.streamData.streamTitle??"No title"}),o.jsx("p",{children:o.jsx("i",{children:n.streamData.description??"No description"})})]})}):o.jsx(o.Fragment,{})}const QZ=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:40,zoomAndPan:"magnify",viewBox:"0 0 30 30.000001",height:40,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"291c0e239c"},S.createElement("path",{d:"M 0.484375 4.59375 L 29.515625 4.59375 L 29.515625 24 L 0.484375 24 Z M 0.484375 4.59375 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#291c0e239c)"},S.createElement("path",{fill:"#8ea4d2",d:"M 15 23.972656 C 5.480469 23.972656 0.765625 15.109375 0.566406 14.730469 C 0.449219 14.5 0.449219 14.273438 0.566406 14.042969 C 0.765625 13.664062 5.480469 4.808594 15 4.808594 C 24.519531 4.808594 29.238281 13.664062 29.433594 14.042969 C 29.550781 14.273438 29.550781 14.5 29.433594 14.730469 C 29.238281 15.109375 24.519531 23.972656 15 23.972656 Z M 2.125 14.386719 C 3.082031 15.976562 7.433594 22.460938 15 22.460938 C 22.566406 22.460938 26.925781 15.976562 27.875 14.394531 C 26.917969 12.804688 22.566406 6.320312 15 6.320312 C 7.433594 6.320312 3.074219 12.804688 2.125 14.386719 Z M 15 20.992188 C 14.5625 20.992188 14.125 20.949219 13.695312 20.867188 C 13.265625 20.78125 12.847656 20.65625 12.441406 20.492188 C 12.035156 20.324219 11.648438 20.121094 
148911.285156 19.878906 C 10.917969 19.640625 10.582031 19.367188 10.269531 19.058594 C 9.960938 18.75 9.683594 18.417969 9.4375 18.058594 C 9.195312 17.695312 8.988281 17.316406 8.820312 16.914062 C 8.652344 16.515625 8.523438 16.101562 8.4375 15.675781 C 8.351562 15.25 8.308594 14.820312 8.308594 14.386719 C 8.308594 13.953125 8.351562 13.523438 8.4375 13.097656 C 8.523438 12.671875 8.652344 12.261719 8.820312 11.859375 C 8.988281 11.460938 9.195312 11.078125 9.4375 10.71875 C 9.683594 10.355469 9.960938 10.023438 10.269531 9.71875 C 10.582031 9.410156 10.917969 9.136719 11.285156 8.894531 C 11.648438 8.65625 12.035156 8.449219 12.441406 8.285156 C 12.847656 8.117188 13.265625 7.992188 13.695312 7.910156 C 14.125 7.824219 14.5625 7.78125 15 7.78125 C 15.4375 7.78125 15.875 7.824219 16.304688 7.910156 C 16.734375 7.992188 17.152344 8.117188 17.558594 8.285156 C 17.964844 8.449219 18.351562 8.65625 18.714844 8.894531 C 19.082031 9.136719 19.417969 9.410156 19.730469 9.71875 C 20.039062 10.023438 20.316406 10.355469 20.5625 10.71875 C 20.804688 11.078125 21.011719 11.460938 21.179688 11.859375 C 21.347656 12.261719 21.476562 12.671875 21.5625 13.097656 C 21.648438 13.523438 21.691406 13.953125 21.691406 14.386719 C 21.6875 14.820312 21.644531 15.25 21.558594 15.675781 C 21.472656 16.101562 21.347656 16.515625 21.179688 16.914062 C 21.011719 17.316406 20.804688 17.695312 20.558594 18.054688 C 20.316406 18.417969 20.039062 18.75 19.726562 19.054688 C 19.417969 19.363281 19.078125 19.636719 18.714844 19.878906 C 18.351562 20.117188 17.964844 20.324219 17.558594 20.488281 C 17.152344 20.65625 16.734375 20.78125 16.304688 20.863281 C 15.875 20.949219 15.4375 20.992188 15 20.992188 Z M 15 9.289062 C 14.660156 9.289062 14.324219 9.324219 13.992188 9.390625 C 13.660156 9.453125 13.335938 9.550781 13.023438 9.679688 C 12.710938 9.808594 12.414062 9.964844 12.132812 10.148438 C 11.851562 10.335938 11.589844 10.546875 11.351562 10.785156 C 11.109375 11.019531 10.898438 11.277344 10.707031 11.554688 C 10.519531 11.835938 10.359375 12.128906 10.230469 12.4375 C 10.101562 12.746094 10.003906 13.066406 9.9375 13.394531 C 9.871094 13.722656 9.839844 14.054688 9.839844 14.386719 C 9.839844 14.722656 9.871094 15.054688 9.9375 15.382812 C 10.003906 15.710938 10.101562 16.027344 10.230469 16.339844 C 10.359375 16.648438 10.519531 16.941406 10.707031 17.21875 C 10.898438 17.496094 11.109375 17.753906 11.351562 17.992188 C 11.589844 18.226562 11.851562 18.441406 12.132812 18.625 C 12.414062 18.8125 12.710938 18.96875 13.023438 19.097656 C 13.335938 19.222656 13.660156 19.320312 13.992188 19.386719 C 14.324219 19.453125 14.660156 19.484375 15 19.484375 C 15.339844 19.484375 15.675781 19.453125 16.007812 19.386719 C 16.339844 19.320312 16.664062 19.222656 16.976562 19.097656 C 17.289062 18.96875 17.585938 18.8125 17.867188 18.625 C 18.148438 18.441406 18.410156 18.226562 18.648438 17.992188 C 18.890625 17.753906 19.101562 17.496094 19.292969 17.21875 C 19.480469 16.941406 19.640625 16.648438 19.769531 16.339844 C 19.898438 16.027344 19.996094 15.710938 20.0625 15.382812 C 20.128906 15.054688 20.160156 14.722656 20.160156 14.386719 C 20.160156 14.054688 20.128906 13.722656 20.0625 13.394531 C 19.996094 13.066406 19.898438 12.746094 19.765625 12.4375 C 19.636719 12.128906 19.480469 11.835938 19.289062 11.558594 C 19.101562 11.277344 18.886719 11.023438 18.648438 10.785156 C 18.410156 10.546875 18.148438 10.335938 17.867188 10.152344 C 17.585938 9.964844 17.289062 9.808594 16.972656 9.679688 C 16.660156 9.550781 16.339844 9.457031 16.007812 9.390625 C 15.675781 9.324219 15.339844 9.292969 15 9.289062 Z M 15 9.289062 ",fillOpacity:1,fillRule:"nonzero"}))),JZ="/assets/PFP-BGvvnNR8.svg";function eQ(n){const{channelName:e,channelPfp:t,streamData:r,viewCount:s,userData:i,loggedIn:a,userStats:l={},isMobileView:u,theaterMode:d,setTheaterMode:f,setSupportVisible:m,setPurchaseSubVisible:p,setChangeSubVisible:y}=n,[v,x]=S.useState(!1),b=()=>{var R,I;if(!a)return!1;if(i&&Object.keys(i).length!==0){for(let L=0;L<(((I=(R=i.channelLists)==null?void 0:R.followedChannels)==null?void 0:I.length)||0);L++)if(i.channelLists.followedChannels[L].channelName===e)return!0}return!1},E=()=>o.jsxs("section",{className:`stream-stats-card ${v?"stream-stats-card-visible":"stream-stats-card-hidden"}`,"aria-label":`${e} channel stats`,children:[o.jsxs("div",{className:"stream-stats-header",children:[o.jsx("h4",{children:"Your Stats"}),o.jsx("span",{children:e})]}),o.jsxs("div",{className:"stream-stats-grid",children:[o.jsxs("div",{className:"stream-stat-item",children:[o.jsx("span",{children:"Total Watch Time"}),o.jsx("b",{children:l.watchTime})]}),o.jsxs("div",{className:"stream-stat-item",children:[o.jsx("span",{children:"Current Channel Points"}),o.jsx("b",{children:l.channelPoints})]}),o.jsxs("div",{className:"stream-stat-item",children:[o.jsx("span",{children:"Follow Age"}),o.jsxs("b",{children:[l.followAge," Days"]})]}),o.jsxs("div",{className:"stream-stat-item",children:[o.jsx("span",{children:"Subscription Tier"}),o.jsx("b",{children:l.subscriptionTier===null?"Not subscribed":l.subscriptionTier})]}),o.jsxs("div",{className:"stream-stat-item",children:[o.jsx("span",{children:"Total Months Subscribed"}),o.jsx("b",{children:l.monthsSubscribed})]}),o.jsxs("div",{className:"stream-stat-item",children:[o.jsx("span",{children:"Chats Sent"}),o.jsx("b",{children:l.numChats})]}),o.jsxs("div",{className:"stream-stat-item",children:[o.jsxs("span",{children:["Total ",l.channelPointsName," Acquired"]}),o.jsx("b",{children:l.totalDrips})]}),o.jsxs("div",{className:"stream-stat-item",children:[o.jsxs("span",{children:["Total ",l.paidPointsName," Given"]}),o.jsx("b",{children:l.totalDrops})]})]})]}),T=()=>{var I,L;let R=!1;if(a){for(let N=0;N<(((L=(I=i==null?void 0:i.channelLists)==null?void 0:I.subscribedChannels)==null?void 0:L.length)||0);N++)if(i.channelLists.subscribedChannels[N].channelName===e){R=!0;break}return R?o.jsx(Je,{className:"stream-action-button green-click-button",disabled:!0,onClick:()=>{je("Sorry! Currently Disabled!"),y==null||y(!0)},children:"Change Subscription"}):o.jsx(Je,{className:"stream-action-button green-click-button",onClick:()=>{a?p==null||p(!0):Et("You must log in to subscribe!")},children:"Subscribe"})}},w=()=>
1489{if(a)return o.jsxs(Je,{className:"stream-action-button green-click-button",onClick:()=>{a?m==null||m(!0):Et("You must log in to support")},children:[o.jsx(zw,{className:"stream-action-icon",title:"Give "+l.paidPointsName}),"   Support"]})};return o.jsxs("div",{className:"stream-actions-toolbar",children:[o.jsxs("div",{className:"stream-actions-top-row",children:[o.jsxs(Pt,{to:`/${e}`,className:"stream-channel-header-link",title:e,children:[o.jsx("div",{className:"stream-channel-pfp-container",children:t?Ht("svg",t,e,e,{},"stream-channel-pfp"):o.jsx(Ts,{src:JZ,alt:e,className:"stream-channel-pfp"})}),o.jsx("h3",{className:"stream-channel-header-name",children:e})]}),o.jsxs("div",{className:"stream-actions-top-right",children:[!!(r!=null&&r.over18||r!=null&&r.restricted||r!=null&&r.strict18||r!=null&&r.over_18)&&o.jsxs("div",{className:"stream-18plus-toolbar-badge",title:"18+ Stream Only",children:[o.jsx("span",{className:"stream-18plus-icon",children:"18+"}),o.jsx("span",{className:"stream-18plus-text",children:"18+ Stream Only"})]}),o.jsxs("div",{className:"stream-view-count-card",children:[o.jsx(QZ,{className:"stream-view-count-icon"}),o.jsx("p",{children:s})]})]})]}),o.jsxs("div",{className:"stream-actions-buttons-row",children:[o.jsx(QE,{className:"stream-action-button green-click-button",minimize:!1,hideName:!0,userData:i,loggedIn:a,channelName:e,defaultFollow:b()}),w(),T(),!u&&o.jsxs(Je,{className:"stream-action-button green-click-button",onClick:()=>f==null?void 0:f(!d),title:d?"Exit Theater Mode":"Theater Mode",children:[o.jsx(rn,{icon:d?FG:KG,className:"stream-action-icon"}),"   Theater"]}),o.jsx(Je,{className:"stream-action-button green-click-button",onClick:()=>{a?x(!v):Et("you must log in to view stats")},title:"Show Channel Stats",children:v?"Hide Stats":"Channel Stats"})]}),E()]})}function tQ(n){const[e,t]=S.useState({}),r=S.useRef(null),[s,i]=S.useState();S.useEffect(()=>{n.show&&l()},[n.show]);const a=d=>n.setSupportVisible(d),l=()=>{Pe.get(`${kt}/user/drops?channel=${n.channelName}`).then(d=>{d.status===200?(t(d.data),i(d.data.ownedDrops<100)):je("error fetching data")}).catch(d=>{je(d.response.data.error)})},u=()=>{if(r.current.value<1){Et("You cannot send less than one "+e.channelDropName);return}Pe.put(kt+"/stream/support/drops",{channelName:n.channelName,numDrops:r.current.value}).then(d=>{d.status===200?(n.setPurchasePointsVisible(!1),a(),Tt("Cheer successful!")):Et("Error sending cheer. Please try again!")}).catch(d=>{je(d.response.data.error)})};return o.jsxs(ut,{backdrop:"static",show:n.show,onHide:a,centered:!0,contentClassName:"strim-modal-content",children:[o.jsx(ut.Header,{closeButton:!0,className:"strim-modal-header",children:o.jsxs(ut.Title,{className:"strim-modal-title",children:["Support ",n.channelName]})}),o.jsxs(ut.Body,{className:"strim-modal-body",children:[o.jsxs("div",{style:{textAlign:"center",marginBottom:"2rem"},children:[o.jsx("p",{style:{fontSize:"1.1rem",marginBottom:"0.75rem",opacity:.8},children:"You currently have:"}),o.jsxs("div",{style:{display:"inline-block",background:"rgba(96, 225, 183, 0.1)",padding:"0.6rem 1.8rem",borderRadius:"999px",border:"1px solid rgba(96, 225, 183, 0.3)",boxShadow:"0 4px 12px rgba(0,0,0,0.1)"},children:[o.jsx("span",{style:{fontSize:"1.8rem",fontWeight:"800",color:"var(--a-color)"},children:e.ownedDrops}),o.jsx("span",{style:{marginLeft:"0.6rem",fontSize:"1.1rem",opacity:.9},children:e.channelDropName})]})]}),o.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",marginBottom:"1.5rem"},children:[o.jsx("p",{style:{textAlign:"center",marginBottom:"1.25rem",fontSize:"1.1rem"},children:"How many would you like to give?"}),o.jsxs("div",{style:{maxWidth:"300px",width:"100%",display:"flex",flexDirection:"column",alignItems:"center"},children:[o.jsx(et.Control,{type:"number",id:"numDrops",defaultValue:"100",ref:r,style:{width:"100%",background:"var(--darkest-background-color)",color:"white",border:"1px solid rgba(255,255,255,0.15)",textAlign:"center",fontSize:"2.5rem",fontWeight:"800",padding:"1.25rem 0.5rem",borderRadius:"16px",marginBottom:"1.5rem",boxShadow:"inset 0 2px 5px rgba(0,0,0,0.4)",outline:"none"},onKeyDown:d=>{isFinite(d.key)||d.key==="Delete"||d.key==="Backspace"||d.key==="ArrowLeft"||d.key==="ArrowRight"||d.key==="Tab"||d.preventDefault()},onChange:d=>{Number(d.target.value)>e.ownedDrops?i(!0):i(!1)},className:"input-form-control support-drop-input"}),o.jsxs(Je,{className:"green-click-button w-100",onClick:()=>u(),style:{padding:"1rem",fontSize:"1.25rem",fontWeight:"bold",borderRadius:"12px",boxShadow:"0 8px 20px rgba(96, 225, 183, 0.15)",transition:"transform 0.2s"},children:["Give ",e.channelDropName,"!"]})]})]}),s&&o.jsxs("div",{style:{textAlign:"center",marginTop:"1rem",padding:"1.25rem",background:"rgba(231, 76, 60, 0.12)",borderRadius:"12px",border:"1px solid rgba(231, 76, 60, 0.25)"},children:[o.jsxs("p",{style:{margin:0,marginBottom:"1rem",color:"#ff7675",fontWeight:"500"},children:["Oops! You don't have enough ",e.channelDropName," to give that many."]}),o.jsx(Je,{className:"green-click-button",style:{fontSize:"0.9rem",padding:"0.5rem 1.5rem"},onClick:()=>n.setPurchasePointsVisible(!0),children:"Purchase more Drops"})]})]}),o.jsx(ut.Footer,{className:"strim-modal-footer",children:o.jsx(Je,{variant:"secondary",onClick:()=>a(!1),children:"Close"})})]})}function nQ(n){var ve,Q,ge;const[e,t]=S.useState(!1),[r,s]=S.useState(!1),{channelName:i}=Ba(),a=n.loggedIn?n.userData===void 0||Object.keys(n.userData).length===0?!1:((Q=(ve=n.userData.streamingInfo)==null?void 0:ve.moddedChannels)==null?void 0:Q.includes(i))||((ge=n.userData.streamingInfo)==null?void 0:ge.ownedChannelName)===i||!1:!1,[l,u]=S.useState(!1),[d,f]=S.useState(!1),[m,p]=S.useState(!1),[y,v]=S.useState(!1),[x,b]=S.useState(!1),[E,T]=S.useState({}),[w,R]=S.useState({}),[I,L]=S.useState(""),[N,_]=S.useState(!1),[j,F]=S.useState(!1),[$,z]=S.useState(0),[W,J]=S.useState({}),[oe,ie]=S.useState([]),[Z,X]=S.useState(null),ue=n.isMobileView??window.innerWidth<=1023,se=!ue||N,[G,ee]=S.useState(null),[Ee,Ce]=S.useState(!0);document.title=i+"'s Stream",S.useEffect(()=>(r?document.body.classList.add("theater-mode-active"):document.body.classList.remove("theater-mode-active"),()=>{document.body.classList.remove("theater-mode-active")}),[r]),S.useEffect(()=>{Ae(),ab(i).then(le=>{R(le.data)}).catch(le=>{console.log(le)}),ob(i).then(le=>{var pe;(pe=le==null?void 0:le.images)!=null&&pe.channelPfp&&X(le.images.channelPfp)}).catch(le=>{console.log(le)})},[i]),S.useEffect(()=>{Pe.get(`${kt}/stream/${i}/watchRedeem`).then(le=>{console.log(le),ie(le.data)}).catch(le=>{console.log(le.response)})},[i]),S.useEffect(()=>{try{if(G===null){const le=new WebSocket(`${Wee}/status/${i}`);ee(le)}G!==null&&(G.onopen=function(){Ee&&Ce(!1)},G.onmessage=le=>
1489{let pe=JSON.parse(le.data);pe.watchTime&&R(pe),pe.viewCount&&z(pe.viewCount),pe.streamTitle&&J(pe)},G.onclose=function(){console.log("disconnected from status")},G.onerror=()=>{G.disconnect()})}catch(le){console.log("error : "+le)}finally{Ce(!1)}},[G]);const Ae=()=>(Pe.get(`${Ft}/verify?channelName=${i}`).then(le=>{le.data.allowed?F(!0):F(!1)}).catch(le=>{var pe,Ie,Ne;console.log(le),n.loggedIn&&(((pe=le.response)==null?void 0:pe.status)===401||((Ie=le.response)==null?void 0:Ie.status)===403)?(Et("Please Log In Again"),(Ne=n.logOut)==null||Ne.call(n)):F(!1)}),!0),me=()=>x?o.jsx($8,{channelName:i,show:!0,setShow:le=>b(le),transactionInfo:E,type:I,subscriptionCatalogId:E.subscriptionCatalogId,cards:n.userData.cards}):o.jsx(o.Fragment,{});return j?o.jsxs("main",{className:`stream-page-layout ${r?"theater-mode":""}`,children:[o.jsxs("section",{className:"stream-general",children:[o.jsx("div",{className:"stream-video-card",children:o.jsx(dE,{streamUrl:z8+"/strim/"+i,channelName:i})}),ue&&o.jsx(Je,{className:"stream-mobile-actions-toggle green-click-button",onClick:()=>_(!N),children:N?"Hide Stream Actions":"Show Stream Actions"}),o.jsx("section",{className:`stream-actions-panel ${se?"stream-actions-panel-visible":"stream-actions-panel-hidden"}`,"aria-label":"Stream actions",children:o.jsx(eQ,{channelName:i,channelPfp:Z,streamData:W,viewCount:$,userData:n.userData,loggedIn:n.loggedIn,userStats:w,isMobileView:ue,theaterMode:r,setTheaterMode:s,setSupportVisible:le=>t(le),setPurchaseSubVisible:le=>f(le),setChangeSubVisible:le=>v(le)})}),o.jsx("section",{className:"stream-info-card",children:o.jsx(ZZ,{channelName:i,streamData:W})})]}),o.jsx("aside",{id:"chatView",className:"chat-viewport stream-chat-card",children:o.jsx(Gw,{isMod:a,setSupportVisible:le=>t(le),channelWatchPoints:w.channelPoints,channelWatchPointName:w.channelPointsName,emotes:n.loggedIn?n.userData.emotes:[],loggedIn:n.loggedIn,isMobileView:ue,channelPointRedeems:oe,userData:n.userData})}),o.jsx(tQ,{show:e,setSupportVisible:le=>t(le),setPurchasePointsVisible:le=>u(le),channelName:i}),o.jsx(Qw,{show:l,setPurchasePointsVisible:le=>u(le),setShowPurchaseModal:le=>b(le),userName:n.loggedIn?n.userData.userName:"",setPurchaseInfo:le=>T(le),setBuyType:L}),o.jsx(YZ,{show:d,setPurchaseSubVisible:le=>f(le),setGiftSubVisible:le=>p(le),setShowPurchaseModal:le=>b(le),userName:n.loggedIn?n.userData.userName:"",channelName:i,setPurchaseInfo:le=>T(le),setBuyType:L}),o.jsx(XZ,{show:m,setGiftSubVisible:le=>p(le),setShowPurchaseModal:le=>b(le),channelName:i,setPurchaseInfo:le=>T(le),setBuyType:L}),me()]}):o.jsx("main",{className:"stream-age-warning-page",children:o.jsxs("section",{className:"stream-age-warning-card",children:[o.jsx("p",{className:"stream-age-warning-eyebrow",children:"Restricted Channel"}),o.jsx("h2",{children:"You are not allowed to view this channel"}),o.jsx("p",{children:"This is an age restricted channel. Due to either age restrictions or other reasons, you are not allowed to view this channel. This is not an error."}),o.jsx("p",{children:"Attempts to bypass this warning may result in an account ban. If you are not logged in, please log in to continue."}),o.jsx(Je,{className:"green-click-button",onClick:()=>window.location.replace("/login?source="+i+"/stream"),children:"Log In"})]})})}function rQ(){return o.jsxs("div",{className:"tos",children:[o.jsx("h2",{children:"Watch parties coming soon!"}),o.jsx("br",{}),o.jsx("h4",{children:"Create a party with your friends (or soon to be friends!) and watch channels together with your own private viewing experience!"}),o.jsx("br",{}),o.jsx("h4",{children:"Have your own party chat, pool resources for streams, contribute/donate/support as a group!  The world (or at least the stream) is your oyster!"})]})}function eT(n){document.title="Invite users";const[e,t]=S.useState(""),r=()=>{if(!e){je("Please enter an email address");return}Pe.post(Ft+"/friend",{inviteEmail:e}).then(s=>{Tt("Invite Sent Successfully"),t("")}).catch(s=>{var a,l;const i=((l=(a=s.response)==null?void 0:a.data)==null?void 0:l.error)||s.message||"Unknown error";je("Failed to Send. "+i),console.error("Invite error:",s)})};return o.jsxs("div",{className:"invite-users-container",children:[o.jsxs("header",{className:"invite-header",children:[o.jsx("h2",{children:"Want some more friends?"}),o.jsx("h3",{children:"Invite them to STRIM.fun"}),o.jsx("p",{children:"They will receive a message inviting them to join the fun!"})]}),o.jsx("div",{className:"invite-card",children:o.jsx(et,{onSubmit:s=>{s.preventDefault(),r()},children:o.jsx("div",{className:"invite-form-group",children:o.jsxs("div",{className:"invite-input-wrapper",children:[o.jsx("span",{className:"invite-label",children:"Email"}
1489),o.jsx(et.Control,{type:"email",value:e,onChange:s=>t(s.target.value),placeholder:"[email protected]",className:"invite-control",required:!0}),o.jsx(zt,{className:"invite-submit-btn",onClick:()=>r(),children:"Send Invite"})]})})})})]})}function tT(n){const e=()=>n.friends===void 0||n.friends.length===0?o.jsx("p",{children:o.jsx("i",{children:"No Friends Yet!"})}):n.friends.map((t,r)=>o.jsx("div",{style:{padding:"1px"},children:o.jsx(Pt,{to:"/user/"+t.username,reloadDocument:!0,children:Ht("png",t.pfp,"","",{maxWidth:"100px",maxHeight:"100px"})})}));return o.jsxs("div",{className:n.className,style:n.style,children:[o.jsx("h4",{children:"Friends"}),o.jsx("div",{className:"innerBox",children:e()})]})}function sQ(n){return n.userData===void 0||n.userData.friends===void 0||n.userData.friends.length===0?o.jsxs("div",{children:[o.jsx("h3",{children:"No friends yet! :( "}),o.jsx("h3",{children:" Why not hop into a stream and say hi!?!"})]}):o.jsx(tT,{friendsPublic:!0,friends:n.userData.friends})}function iQ(n){return o.jsxs(o.Fragment,{children:[o.jsxs("h2",{children:[va(),"'s Friends!"]}),o.jsx("hr",{}),o.jsx(sQ,{}),o.jsx("hr",{}),o.jsx(eT,{})]})}function aQ(n){var m,p,y;const[e,t]=S.useState(!1);S.useEffect(()=>{n.loggedIn||Et("Please log in to view messages")},[]);const r=((m=n.userData)==null?void 0:m.notifications)??[],s=((p=n.userData)==null?void 0:p.messages)??[],i=((y=n.userData)==null?void 0:y.unreadCount)??0,a=v=>{u(!0,v)},l=v=>{u(!1,v)},u=(v,x)=>{Pe.put(`${Ft}/friendRequest?`,{accept:v,friendName:x}).then(b=>{b.status===Hf.Ok?Tt(v?"Friend request accepted!":"Friend request rejected!"):Et("You were already friends!"),n.removeNotification(x)}).catch(b=>{var E,T,w;n.loggedIn&&(((E=b.response)==null?void 0:E.status)===401||((T=b.response)==null?void 0:T.status)===403)?(Et("Please Log In Again"),(w=n.logOut)==null||w.call(n)):je("error occurred")})},d=()=>r.length===0?o.jsxs("div",{className:"user-messages-empty-state",children:[o.jsx("h4",{children:"No friend requests"}),o.jsx("p",{children:"New friend requests will appear here."})]}):r.map((v,x)=>o.jsxs("article",{className:"user-message-card user-friend-request-card",children:[o.jsxs("div",{className:"user-message-card-content",children:[o.jsx("span",{className:"user-message-card-kicker",children:"Friend Request"}),o.jsx("h4",{children:v.requestingUser}),o.jsx("p",{children:"wants to be friends!"})]}),o.jsxs("div",{className:"user-message-card-actions",children:[o.jsx(Je,{className:"green-click-button user-message-icon-action",type:"button",title:`Accept ${v.requestingUser}'s friend request`,onClick:()=>a(v.requestingUser),children:o.jsx(rn,{icon:XG,color:"white"})}),o.jsx(Je,{className:"user-message-danger-action",type:"button",title:`Reject ${v.requestingUser}'s friend request`,onClick:()=>l(v.requestingUser),children:o.jsx(rn,{icon:ZE})})]})]},`friend-request-${v.requestingUser}-${x}`)),f=()=>s.length===0?o.jsxs("div",{className:"user-messages-empty-state",children:[o.jsx("h4",{children:"No messages"}),o.jsx("p",{children:"Direct messages and system messages will appear here."})]}):s.map((v,x)=>{var b,E;return o.jsxs("article",{className:"user-message-card",children:[o.jsx("div",{className:"user-message-avatar",children:v.senderPfp?o.jsx("img",{src:v.senderPfp,alt:`${v.senderName} profile`}):((E=(b=v.senderName)==null?void 0:b.charAt(0))==null?void 0:E.toUpperCase())??"?"}),o.jsxs("div",{className:"user-message-card-content",children:[o.jsxs("div",{className:"user-message-card-top-row",children:[o.jsx("span",{className:"user-message-card-kicker",children:"Message"}),v.sentOn&&o.jsx("span",{className:"user-message-date",children:v.sentOn})]}),o.jsx("h4",{children:v.senderName}),o.jsx("p",{children:v.messageContent})]})]},`message-${x}`)});return e?_n:o.jsxs("main",{className:"user-messages-page",children:[o.jsxs("section",{className:"user-messages-hero",children:[o.jsxs("div",{children:[o.jsx("p",{className:"user-messages-eyebrow",children:"Inbox"}),o.jsx("h2",{children:"User Messages"}),o.jsx("p",{children:"Review friend requests, direct messages, and account notifications."})]}),o.jsxs("div",{className:"user-messages-summary",children:[o.jsxs("span",{children:[i," unread"]}),o.jsxs("span",{children:[r.length," requests"]})]})]}),o.jsxs("section",{className:"user-messages-layout",children:[o.jsxs("section",{className:"user-messages-section",children:[o.jsxs("header",{className:"user-messages-section-header",children:[o.jsxs("div",{children:[o.jsx("p",{className:"user-messages-eyebrow",children:"Social"}),o.jsx("h3",{children:"Friend Requests"}),o.jsx("p",{children:"Accept or reject pending friend requests."})]}),o.jsx("span",{className:"user-messages-count-badge",children:r.length})]}),o.jsx("div",{className:"user-messages-list",children:d()})]}),o.jsxs("section",{className:"user-messages-section",children:[o.jsxs("header",{className:"user-messages-section-header",children:[o.jsxs("div",{children:[o.jsx("p",{className:"user-messages-eyebrow",children:"Messages"}),o.jsx("h3",{children:"Your Inbox"}),o.jsxs("p",{children:["You have ",i," unread messages."]})]}),o.jsx("span",{className:"user-messages-count-badge",children:s.length})]}),o.jsx("div",{className:"user-messages-list",children:f()})]})]})]})}function oQ(n){return o.jsx("h3",{children:"Coming soon. for now, adjust most settings under your user profile!"})}function lQ(n){const[e,t]=S.useState(),r=l=>{},s=l=>{Pe.put(`${kt}/user/channelIcons/${e.channel}?iconId=${l}`,{}).then(u=>{Tt(u.data.message);for(let d=0;d<e.icons.length;d++){let f=e.icons[d];f.isActive&&f.iconId!==l?f.isActive=!1:f.iconId===l&&(f.isActive=!0)}t(e),n.close()}).catch(u=>{console.log(u),u.response.data.error?je(u.response.data.error):je(u.response.data.title)})},i=()=>{let l=n.userData.channelIcons;return l===void 0?o.jsx(o.Fragment,{}):l.map((u,d)=>o.jsxs("option",{value:JSON.stringify(u),children:[Ht("png",u.channelPfp,"","",{maxHeight:"25px"}),u.channel]},"chan"+d))},a=()=>e==null?o.jsx(o.Fragment,{}):o.jsx("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-evenly"},children:e.icons.map((l,u)=>
1489o.jsxs("div",{className:l.isActive?"activeBorder hoverBox":"hoverBox",style:{marginTop:"1vh",padding:"1% 1%"},onClick:()=>{s(l.iconId)},children:[Ht("png",l.iconImg,l.iconTitle,l.iconTitle,{maxHeight:"25px"}),o.jsx("br",{}),l.iconTitle,o.jsx("br",{}),o.jsx("i",{children:l.iconRestrictionLevel})]},"chanIcon"+u))});return o.jsx(xr,{validationSchema:br({}),validateOnBlur:!1,onSubmit:r,validateOnChange:!0,initialValues:{},children:({handleSubmit:l,values:u,handleChange:d,errors:f})=>o.jsxs(et,{noValidate:!0,onSubmit:()=>{l(u)},children:[o.jsx("h3",{children:"Badge Selector"}),o.jsx("p",{children:o.jsx("i",{children:"You may have up to 2 badges per channel. One Strim.FUN global emote, and one channel-specific emote. Badges such as VIP, Moderator, etc. Do not count as one of the badges."})}),o.jsxs(et.Select,{onChange:m=>{m.target.value!=="default"?t(JSON.parse(m.target.value)):t(null)},style:{padding:".375rem .375rem .375rem .375rem !important",textAlign:"center",color:"var(--default-text-color)"},"aria-label":"Select channel",children:[o.jsx("option",{value:"default",children:"Select which channel you'd like to set your Badges For!"},0),i()]}),a()]})})}function cQ(n){const e=()=>
1489{n.setShowEditBadgesModal(!1)};return o.jsxs(ut,{backdrop:"static",show:n.show,onHide:e,centered:!0,contentClassName:"strim-modal-content",children:[o.jsx(ut.Header,{closeButton:!0,className:"strim-modal-header",children:o.jsx(ut.Title,{className:"strim-modal-title",children:"Edit Chat Badges"})}),o.jsx(ut.Body,{className:"strim-modal-body",children:o.jsx(lQ,{userData:n.userData,close:()=>e()})}),o.jsx(ut.Footer,{className:"strim-modal-footer",children:o.jsx(Je,{className:"green-click-button",onClick:()=>e(),children:"Close"})})]})}function uQ(){return o.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[o.jsx("h2",{children:"Ad information and User Data"}),o.jsxs("ul",{children:[o.jsx("li",{children:"how much time i've watched channels unsubscribed"}),o.jsx("li",{children:"how many ads per hour I average on unsubscribed channels"}),o.jsx("li",{children:"Brands I see most often"}),o.jsx("li",{children:"Select brands to DISLIKE (disliking brands minimizes chance of being shown an ad by them, but does not zeroize it)"})]})]})}function dQ(n){const[e,t]=S.useState({}),[r,s]=S.useState(!1);S.useEffect(()=>{let d=!0;return Pe.get(`${kt}/user/settings`).then(f=>{d&&(t(f.data.notificationSettings),s(!0))}).catch(f=>{console.log(f)}),()=>{d=!1}},[]);const i=(d,f,m)=>{Pe.put(Ft+"/notifications",{notification:d,type:f,enabled:m}).then(p=>{p.status===Hf.Ok?Tt("Notification settings updated successfully."):Et("Unknown error Try again later")}).catch(p=>{var y,v;je(((v=(y=p.response)==null?void 0:y.data)==null?void 0:v.error)||"An error occurred while updating settings.")})},a=(d,f,m)=>{i(d,f,m),t(p=>({...p,[d]:{...p[d],[f]:m}}))};if(!r)return o.jsx(o.Fragment,{});const l=[{id:"favoriteChannel",label:"One of my Favorite Channels goes live/has an event!",icon:A5},{id:"followedChannel",label:"One of my Followed Channels goes live/has an event!",icon:YG},{id:"subscribedChannel",label:"One of my Subscribed Channels goes live/has an event!",icon:DG}],u=[{id:"push",label:"Push",icon:VG},{id:"text",label:"Text",icon:zG},{id:"email",label:"Email",icon:HG}];return o.jsxs("div",{className:"notification-settings-container",children:[o.jsx("h2",{style:{marginBottom:"2rem",fontWeight:"800"},children:"Notification Settings"}),o.jsx("div",{className:"notification-card",children:o.jsxs("table",{className:"notification-table",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"Notify me when:"}),u.map(d=>o.jsx("th",{children:o.jsxs("div",{className:"notification-method-header",children:[o.jsx(rn,{icon:d.icon,className:"notification-method-icon"}),o.jsx("span",{children:d.label})]})},d.id))]})}),o.jsx("tbody",{children:l.map(d=>o.jsxs("tr",{children:[o.jsx("td",{children:o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"1rem"},children:[o.jsx(rn,{icon:d.icon,style:{opacity:.5,width:"20px"}}),d.label]})}),u.map(f=>{var m;return o.jsx("td",{className:"notification-toggle-cell",children:o.jsx(et.Check,{type:"switch",id:`${d.id}-${f.id}`,checked:((m=e[d.id])==null?void 0:m[f.id])||!1,onChange:p=>a(d.id,f.id,p.target.checked)})},f.id)})]},d.id))})]})})]})}function fQ(n){const e=r=>n.setDeleteFriendVisible(r),t=()=>{Pe.delete(`${Ft}/friend?friend=${n.friend}`).then(r=>{Tt(n.friend+" removed successfully")}).catch(r=>{je("Error removing friend")}).finally(()=>{n.setDeleteFriendVisible(!1)})};return o.jsxs(ut,{backdrop:"static",show:n.show,onHide:e,centered:!0,contentClassName:"strim-modal-content",children:[o.jsx(ut.Header,{closeButton:!0,className:"strim-modal-header",children:o.jsx(ut.Title,{className:"strim-modal-title",children:"Are you sure?"})}),o.jsx(ut.Body,{className:"strim-modal-body",children:o.jsxs("div",{style:{textAlign:"center"},children:[o.jsx("p",{children:"Are you sure you wish to remove"}),o.jsx("h4",{style:{color:"var(--a-color)",margin:"1rem 0"},children:n.friend}),o.jsx("p",{children:"as your friend?"})]})}),o.jsxs(ut.Footer,{className:"strim-modal-footer",children:[o.jsx(Je,{variant:"danger",onClick:()=>t(),children:"Yes, remove friend"}),o.jsx(Je,{variant:"secondary",onClick:()=>e(!1),children:"Cancel"})]})]})}function hQ(n){const e=r=>{Pe.put(`${Ft}/user/pfp`,{userPfp:r},{headers:{"Content-Type":"multipart/form-data"}}).then(s=>{Tt("User Profile Picture Uploaded Successfully. Reload to see changes")}
1489).catch(s=>{if(console.log(s),s.response.status===401){je("Unauthorized to update user profile");return}je(s.response.data.error)})},t=r=>{Pe.put(`${Ft}/user/banner?`,{bannerPicture:r},{headers:{"Content-Type":"multipart/form-data"}}).then(s=>{Tt("Banner Uploaded Successfully. Reload to see changes")}).catch(s=>{if(console.log(s),s.response.status===401){je("Unauthorized to update profile");return}je(s.response.data.error)})};return o.jsxs("div",{className:"edit-user-container",children:[o.jsxs("div",{className:"edit-user-section",children:[o.jsx("h4",{children:"Profile Picture"}),o.jsxs("div",{className:"edit-user-image-preview",children:[Ht("png",n.userData.profilePicture,"","",null,"edit-user-pfp"),o.jsx(Fa,{id:"usrPfpFile",setValue:r=>e(r)})]})]}),o.jsxs("div",{className:"edit-user-section",children:[o.jsx("h4",{children:"Banner Image"}),o.jsxs("div",{className:"edit-user-image-preview",children:[Ht("png",n.userData.bannerPicture,"","",null,"edit-user-banner"),o.jsx(Fa,{id:"usrBannerFile",setValue:r=>{t(r)}})]})]}),o.jsxs("p",{className:"user-settings-small-muted-text text-center",children:["Image Uploads must be one of: ",Wf," and no larger than ",Kf,o.jsx("br",{}),"All images must follow ",o.jsx("a",{href:"/info/tos",children:"Community Guidelines"})]})]})}function nT(n){const[e,t]=S.useState(!1);S.useEffect(()=>{!e&&n.show&&(t(!0),bn()?Pe.get(Ft+"/user/passwordreset").then(a=>{Tt(a.data)}).catch(a=>{Et(a.response.data.error),n.setShow(!1)}):Pe.get(Ft+"/user/passwordreset?email="+encodeURI(n.email)).catch(a=>{je(a.response.data.error),n.setShow(!1)}))},[n.show]);const r=()=>n.setShow(!1),s=Ft+"/user/passwordreset",i=(a,l)=>{l.validateForm().then(()=>{Pe.post(s,{username:n.email||bn(),password:a.password1,verificationCode:a.verificationCode,emailOnly:!!n.email}).then(({data:u})=>{Tt("Password Updated Successfully"),r()}).catch(u=>{u.response.status>400&&u.response.status<500?je(u.response.data.error):je("Unable to update password. Error: "+u.response.data.error)})}).catch(u=>{console.log("error!"),console.log(u)})};return o.jsxs(ut,{enforceFocus:!0,backdrop:"static",show:n.show,onHide:r,centered:!0,contentClassName:"strim-modal-content",children:[o.jsx(ut.Header,{closeButton:!0,className:"strim-modal-header",children:o.jsx(ut.Title,{className:"strim-modal-title",children:"Password Reset"})}),o.jsxs(ut.Body,{className:"strim-modal-body",children:[o.jsxs("p",{style:{textAlign:"center",marginBottom:"1.5rem"},children:["An email with a reset code has been sent to ",o.jsx("span",{style:{color:"var(--a-color)"},children:n.userData?n.userData.email:n.email}),". Please copy this code and paste it below."]}),o.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},children:o.jsx(xr,{validationSchema:br({password1:Bt().min(5,"Password must be at least 5 characters").required("Password is required"),password2:Bt().oneOf([Pw("password1"),null],"Passwords do not match").required("Confirmation password is required"),verificationCode:Bt().required("Verification code is required")}),validateOnBlur:!0,onSubmit:(a,l)=>i(a,l),validateOnChange:!1,initialValues:{password1:"",password2:"",verificationCode:""},children:({handleSubmit:a,values:l,handleChange:u,errors:d})=>o.jsxs(D8,{noValidate:!0,onSubmit:a,validateOnBlur:!0,className:"sign-up-form",style:{width:"100%",maxWidth:"400px"},children:[o.jsx(en,{name:"verificationCode",type:"text",placeholder:"Verification Code",value:l.verificationCode,error:d.verificationCode,onChange:u}),o.jsx(en,{name:"password1",type:"password",placeholder:"New Password",value:l.password1,error:d.password1,onChange:u}),o.jsx(en,{name:"password2",type:"password",placeholder:"Confirm New Password",value:l.password2,error:d.password2,onChange:u}),o.jsx("div",{style:{marginTop:"2rem",textAlign:"center"},children:o.jsx(zt,{text:"Update Password",onClick:a})})]})})})]}),o.jsx(ut.Footer,{style:{justifyContent:"center"},children:o.jsx("p",{style:{fontStyle:"italic"},children:"Don't have access to this email account? Contact us on our DISCORD or via email at [email protected] and we will be happy to assist you."})})]})}function mQ(n){const[e,t]=S.useState(!1),[r,s]=S.useState(!1),[i,a]=S.useState(!1);console.log(n.channel);const l=()=>e?o.jsxs("div",{className:"sub-channel-details",children:[o.jsxs("p",{children:[o.jsx("u",{children:o.jsx("i",{children:"Concurrent Months:"})})," ",n.channel.monthsConcurrent]}),o.jsxs("p",{children:[o.jsx("u",{children:o.jsx("i",{children:"Date Subscribed:"})})," ",n.channel.subscribedDate]}),o.jsxs("p",{children:[o.jsx("u",{children:o.jsx("i",{children:"Current Subscription Tier:"})})," ",n.channel.subscriptionLevel]})]}):null,u=()=>{Pe.delete(`${es}/subscription?subscriptionId=${n.channel.subscriptionId}&channel=${n.channel.channelName}`).then(m=>{Et(m.data.message)}
1489).catch(m=>{je(m.response.data.error)})},d=()=>i?o.jsxs(ut,{show:i,onHide:()=>a(!1),centered:!0,contentClassName:"strim-modal-content",children:[o.jsx(ut.Header,{closeButton:!0,className:"strim-modal-header",children:o.jsx(ut.Title,{className:"strim-modal-title",children:"Cancel Subscription"})}),o.jsx(ut.Body,{className:"strim-modal-body",children:o.jsxs("div",{className:"text-center",children:[o.jsxs("p",{className:"user-settings-card-modal-text",children:["Are you sure you wish to cancel your subscription to ",o.jsx("span",{className:"user-settings-highlight",children:n.channel.channelName}),"?"]}),o.jsxs("div",{className:"user-settings-modal-actions",children:[o.jsx(Je,{variant:"danger",onClick:()=>u(),children:"Yes, Cancel"}),o.jsx(Je,{variant:"secondary",onClick:()=>a(!1),children:"Nevermind"})]})]})})]}):o.jsx(o.Fragment,{}),f=()=>r?o.jsxs("div",{className:"sub-channel-actions",children:[o.jsx(Je,{className:"green-click-button",children:"Change Subscription"}),o.jsx(Je,{className:"grey-click-button",onClick:()=>a(!0),children:"Cancel Subscription"})]}):null;return o.jsxs("div",{className:"sub-channel-container",children:[o.jsx(Pt,{to:"/"+n.channel.channelName,children:Ht("png",n.channel.channelPfp,"","",null,"channel-icon-small")},"friend"+n.idx),o.jsxs("p",{className:"mb-2",children:["Subscribed for ",n.channel.monthsTotal===void 0?-1:n.channel.monthsTotal," Months!"]}),o.jsxs("div",{className:"sub-channel-button-row",children:[o.jsx(Je,{size:"sm",className:"green-click-button",onClick:()=>t(!e),children:"Details"}),o.jsx(Je,{size:"sm",className:"green-click-button",onClick:()=>{s(!r)},children:"Edit"})]}),l(),f(),d()]})}function rT(n){let e=n.userData;const t=()=>e===void 0||e.subscribedChannels===void 0||e.subscribedChannels.length===0?o.jsxs("div",{children:[o.jsx("h5",{children:"You're not subscribed to any channels right now!"}),o.jsxs("p",{children:["Why not go support a creator?!? Remember, your support is ",o.jsx("i",{children:"why"})," they can stream!!!"]})]}):o.jsx("div",{className:"user-settings-flex-grid",children:e.subscribedChannels.map((r,s)=>o.jsx(mQ,{channel:r,idx:s},"SubbedChannel"+s))});return o.jsx(o.Fragment,{children:t()})}function sT(n){const[e,t]=S.useState(!1);if(n.iconData===void 0||n.iconData===null||n.iconData[0]===void 0)return o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:"Badges:"}),o.jsx("p",{children:o.jsx("i",{children:"No Icons or Badges Awarded Yet"})})]});const r=()=>{if(n.userName===bn()&&(n.showEdit===void 0||n.showEdit===!0))return o.jsxs(o.Fragment,{children:[o.jsx("div",{children:o.jsx(Pt,{as:"Button",to:"/profile",children:"Edit Active Badges"})}),o.jsx("br",{})]})};return o.jsxs("div",{className:n.className,children:[o.jsx("h4",{children:o.jsxs("i",{children:[n.userName," has been awarded the following badges"]})}),r(),n.iconData.map(s=>o.jsxs("div",{children:[Ht("svg",s.channelPfp,s.channel+"'s Profile Picture",s.channel+"'s Profile Picture",{width:"64px"}),o.jsx("h3",{children:o.jsxs("i",{children:[s.channel,"'s badges"]})}),o.jsx("div",{className:"user-awards-grid",children:s.icons.map(i=>o.jsxs("div",{className:`user-award-item ${i.isActive&&n.userName===bn()?"activeBorder":""}`,children:[Ht("svg",i.iconImg,i.iconTitle,i.iconTitle,{width:"64px",height:"64px"}),o.jsxs("p",{children:[i.iconRestrictionLevel," Badge"]})]},i.iconId))})]},s.channel))]})}function pQ(n){var p;const[e,t]=S.useState(!0),[r,s]=S.useState(!1),[i,a]=S.useState({}),l=((p=n.userData)==null?void 0:p.cards)??[],u=()=>{if(typeof n.onCardsUpdated=="function"){n.onCardsUpdated();return}window.location.reload()},d=(y,v)=>{Pe.put(`${es}/customer/cards?action=${v}&lastFour=${y.cardLast4}&cardType=${y.cardType}`).then(x=>{Tt(x.data.message),r&&(s(!1),a({})),u()}).catch(x=>{var b,E;je(((E=(b=x.response)==null?void 0:b.data)==null?void 0:E.error)??"Unable to update card settings.")})},f=y=>{if(!y.isPrimary)return o.jsx("div",{className:"user-card-primary-action",children:o.jsx(zt,{onClick:()=>{a(y),s(!0)},text:"Set Primary"})})},m=()=>l.length===0?o.jsxs("div",{className:"user-card-empty-state",children:[o.jsx("h4",{children:"No saved cards"}),o.jsx("p",{children:"Add a card to make purchases and manage subscriptions more easily."})]}):l.map((y,v)=>y.isEnabled?o.jsxs("article",{className:"user-card-item",children:[o.jsxs("div",{className:"user-card-top-row",children:[y.isPrimary&&o.jsx("span",{className:"user-card-primary-badge",children:"Primary"}),o.jsx(Je,{variant:"danger",className:"user-card-disable-button",onClick:()=>d(y,"disable"),"aria-label":`Disable ${y.cardType} ending in ${y.cardLast4}`,children:"Disable"})]}),o.jsxs("div",{className:"user-card-brand-row",children:[o.jsx("span",{className:"user-card-brand",children:y.cardType}),o.jsxs("span",{className:"user-card-last-four",children:["•••• ",y.cardLast4]})]}),o.jsxs("p",{className:"user-card-detail",children:["Expires ",y.expMonth,"/",y.expYear]}),f(y)]},"card"+v):e?null:o.jsxs("article",{className:"user-card-item user-card-item-disabled",children:[o.jsxs("div",{className:"user-card-top-row",children:[o.jsx("span",{className:"user-card-disabled-badge",children:"Disabled"}),y.isPrimary&&o.jsx("span",{className:"user-card-primary-badge",children:"Primary"})]}),o.jsxs("div",{className:"user-card-brand-row",children:[o.jsx("span",{className:"user-card-brand",children:y.cardType}),o.jsxs("span",{className:"user-card-last-four",children:["•••• ",y.cardLast4]})]}),o.jsxs("p",{className:"user-card-detail",children:["Expires ",y.expMonth,"/",y.expYear]}),o.jsx("p",{className:"user-card-disabled-description",children:"Disabled cards cannot be used or reactivated."})]},"card-disabled"+v));return o.jsxs("section",{className:"user-card-settings-section user-settings-card",children:[o.jsx("div",{className:"user-card-settings-header",children:o.jsxs("div",{children:[o.jsx("h4",{className:"user-settings-card-title",children:"Saved Cards"}),o.jsx("p",{className:"user-settings-muted-text",children:"Manage saved payment cards and choose which card should be used by default."})]})}),o.jsx("div",{className:"user-card-list",children:m()}),o.jsxs("div",{className:"user-card-actions",children:[o.jsx(Zw,{}),l.some(y=>!y.isEnabled)&&o.jsx(zt,{onClick:()=>t(!e),text:e?"Show Disabled":"Hide Disabled"})]}),o.jsxs(ut,{show:r,onHide:()=>{a({}),s(!1)},centered:!0,contentClassName:"strim-modal-content",children:[o.jsx(ut.Header,{closeButton:!0,className:"strim-modal-header",children:o.jsx(ut.Title,{className:"strim-modal-title",children:"Set Primary Card"})}),o.jsx(ut.Body,{className:"strim-modal-body",children:o.jsxs("div",{className:"text-center",children:[o.jsxs("p",{className:"user-settings-card-modal-text",children:["Make ",o.jsx("span",{className:"user-settings-highlight",children:i.cardType})," ending in ",o.jsx("span",{className:"user-settings-highlight",children:i.cardLast4})," your primary card for all services?"]}
1489),o.jsxs("div",{className:"user-settings-modal-actions",children:[o.jsx(Je,{className:"green-click-button",disabled:!i.cardLast4||!i.cardType,onClick:()=>d(i,"primary"),children:"Set Primary"}),o.jsx(Je,{variant:"secondary",onClick:()=>{a({}),s(!1)},children:"Cancel"})]})]})})]})]})}function gQ(n){const e=()=>n.friends===void 0||n.friends.length===0?o.jsx(o.Fragment,{}):n.friends.map((t,r)=>o.jsx(K3.Item,{className:"clickable",children:o.jsxs("div",{className:"user-friend-item-wrapper",children:[o.jsx(rn,{icon:ZE,color:"white",className:"remove-friend-button",onClick:()=>n.showDeleteFriend(!0,t.username)}),o.jsx(Pt,{to:"/user/"+t.username,reloadDocument:!0,className:"user-friend-link",children:Ht("png",t.pfp,"","",null,"user-friend-pfp")})]})},"friendImg"+r));return n.friends.length===0?o.jsxs(o.Fragment,{children:[o.jsx("h2",{children:"Friends"}),o.jsx("h3",{children:"No friends yet! Go out and say hi!"})]}):o.jsxs(o.Fragment,{children:[o.jsx("h2",{children:"Friends"}),o.jsx(K3,{fade:!0,children:e()})]})}function uh(){return(uh=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n}).apply(this,arguments)}function iT(n,e){if(n==null)return{};var t,r,s={},i=Object.keys(n);for(r=0;r<i.length;r++)e.indexOf(t=i[r])>=0||(s[t]=n[t]);return s}function Sc(n){var e=S.useRef(n),t=S.useRef(function(r){e.current&&e.current(r)});return e.current=n,t.current}var Yc=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n<e?e:n},Ec=function(n){return"touches"in n},$5=function(n){return n&&n.ownerDocument.defaultView||self},cv=function(n,e,t){var r=n.getBoundingClientRect(),s=Ec(e)?(function(i,a){for(var l=0;l<i.length;l++)if(i[l].identifier===a)return i[l];return i[0]})(e.touches,t):e;return{left:Yc((s.pageX-(r.left+$5(n).pageXOffset))/r.width),top:Yc((s.pageY-(r.top+$5(n).pageYOffset))/r.height)}},uv=function(n){!Ec(n)&&n.preventDefault()},aT=Ke.memo(function(n){var e=n.onMove,t=n.onKey,r=n.onEnd,s=iT(n,["onMove","onKey","onEnd"]),i=S.useRef(null),a=Sc(e),l=Sc(t),u=Sc(r),d=S.useRef(null),f=S.useRef(!1),m=S.useMemo(function(){var b=function(w){uv(w),(Ec(w)?w.touches.length>0:w.buttons>0)&&i.current?a(cv(i.current,w,d.current)):(T(!1),u())},E=function(){T(!1),u()};function T(w){var R=f.current,I=$5(i.current),L=w?I.addEventListener:I.removeEventListener;L(R?"touchmove":"mousemove",b),L(R?"touchend":"mouseup",E)}return[function(w){var R=w.nativeEvent,I=i.current;if(I&&(uv(R),!(function(N,_){return _&&!Ec(N)})(R,f.current)&&I)){if(Ec(R)){f.current=!0;var L=R.changedTouches||[];L.length&&(d.current=L[0].identifier)}I.focus(),a(cv(I,R,d.current)),T(!0)}},function(w){var R=w.which||w.keyCode;R<37||R>40||(w.preventDefault(),l({left:R===39?.05:R===37?-.05:0,top:R===40?.05:R===38?-.05:0}))},function(w){var R=w.which||w.keyCode;R>=37&&R<=40&&u()},T]},[l,a,u]),p=m[0],y=m[1],v=m[2],x=m[3];return S.useEffect(function(){return x},[x]),Ke.createElement("div",uh({},s,{onTouchStart:p,onMouseDown:p,className:"react-colorful__interactive",ref:i,onKeyDown:y,onKeyUp:v,tabIndex:0,role:"slider"}))}),B8=function(n){return n.filter(Boolean).join(" ")},oT=function(n){var e=n.color,t=n.left,r=n.top,s=r===void 0?.5:r,i=B8(["react-colorful__pointer",n.className]);return Ke.createElement("div",{className:i,style:{top:100*s+"%",left:100*t+"%"}},Ke.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},sr=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t},yQ=function(n){return SQ(B5(n))},B5=function(n){return n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?sr(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?sr(parseInt(n.substring(6,8),16)/255,2):1}},vQ=function(n){return bQ(CQ(n))},xQ=function(n){var e=n.s,t=n.v,r=n.a,s=(200-e)*t/100;return{h:sr(n.h),s:sr(s>0&&s<200?e*t/100/(s<=100?s:200-s)*100:0),l:sr(s/2),a:sr(r,2)}},U5=function(n){var e=xQ(n);
vendor: 5,123 bytes, line 1489
1489return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},CQ=function(n){var e=n.h,t=n.s,r=n.v,s=n.a;e=e/360*6,t/=100,r/=100;var i=Math.floor(e),a=r*(1-t),l=r*(1-(e-i)*t),u=r*(1-(1-e+i)*t),d=i%6;return{r:sr(255*[r,l,a,a,u,r][d]),g:sr(255*[u,r,r,l,a,a][d]),b:sr(255*[a,a,u,r,r,l][d]),a:sr(s,2)}},w1=function(n){var e=n.toString(16);return e.length<2?"0"+e:e},bQ=function(n){var e=n.r,t=n.g,r=n.b,s=n.a,i=s<1?w1(sr(255*s)):"";return"#"+w1(e)+w1(t)+w1(r)+i},SQ=function(n){var e=n.r,t=n.g,r=n.b,s=n.a,i=Math.max(e,t,r),a=i-Math.min(e,t,r),l=a?i===e?(t-r)/a:i===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(l<0?l+6:l),s:i?a/i*100:0,v:i/255*100,a:s}},EQ=Ke.memo(function(n){var e=n.hue,t=n.onChange,r=n.onChangeEnd,s=B8(["react-colorful__hue",n.className]);return Ke.createElement("div",{className:s},Ke.createElement(aT,{onMove:function(i){t({h:360*i.left})},onKey:function(i){t({h:Yc(e+360*i.left,0,360)})},onEnd:r,"aria-label":"Hue","aria-valuenow":sr(e),"aria-valuemax":"360","aria-valuemin":"0"},Ke.createElement(oT,{className:"react-colorful__hue-pointer",left:e/360,color:U5({h:e,s:100,v:100,a:1})})))}),wQ=Ke.memo(function(n){var e=n.hsva,t=n.onChange,r=n.onChangeEnd,s={backgroundColor:U5({h:e.h,s:100,v:100,a:1})};return Ke.createElement("div",{className:"react-colorful__saturation",style:s},Ke.createElement(aT,{onMove:function(i){t({s:100*i.left,v:100-100*i.top})},onKey:function(i){t({s:Yc(e.s+100*i.left,0,100),v:Yc(e.v-100*i.top,0,100)})},onEnd:r,"aria-label":"Color","aria-valuetext":"Saturation "+sr(e.s)+"%, Brightness "+sr(e.v)+"%"},Ke.createElement(oT,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:U5(e)})))}),lT=function(n,e){if(n===e)return!0;for(var t in n)if(n[t]!==e[t])return!1;return!0},TQ=function(n,e){return n.toLowerCase()===e.toLowerCase()||lT(B5(n),B5(e))};function IQ(n,e,t,r){var s=Sc(t),i=Sc(r),a=S.useState(function(){return n.toHsva(e)}),l=a[0],u=a[1],d=S.useRef({color:e,hsva:l}),f=S.useRef(!1);S.useEffect(function(){if(!n.equal(e,d.current.color)){var y=n.toHsva(e);d.current={hsva:y,color:e},u(y),f.current=!1}},[e,n]),S.useEffect(function(){var y;lT(l,d.current.hsva)||n.equal(y=n.fromHsva(l),d.current.color)||(d.current={hsva:l,color:y},s(y),f.current=!0)},[l,n,s]);var m=S.useCallback(function(y){u(function(v){return Object.assign({},v,y)})},[]),p=S.useCallback(function(){f.current&&(f.current=!1,i(d.current.color))},[i]);return[l,m,p]}var RQ=typeof window<"u"?S.useLayoutEffect:S.useEffect,AQ=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},dv=new WeakMap,LQ=function(n){RQ(function(){var e=n.current;if(typeof document<"u"&&e){var t=e.getRootNode?e.getRootNode():e.ownerDocument,r=t&&("head"in t||"host"in t)?t:e.ownerDocument;if(!dv.has(r)){var s="head"in r?r.head:r,i=(s.ownerDocument||document).createElement("style");i.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`;var a=AQ();a&&i.setAttribute("nonce",a),dv.set(r,i),s.appendChild(i)}}},[])},NQ=function(n){var e=n.className,t=n.colorModel,r=n.color,s=r===void 0?t.defaultColor:r,i=n.onChange,a=n.onChangeEnd,l=iT(n,["className","colorModel","color","onChange","onChangeEnd"]),u=S.useRef(null);LQ(u);var d=IQ(t,s,i,a),f=d[0],m=d[1],p=d[2],y=B8(["react-colorful",e]);return Ke.createElement("div",uh({},l,{ref:u,className:y}),Ke.createElement(wQ,{hsva:f,onChange:m,onChangeEnd:p}),Ke.createElement(EQ,{hue:f.h,onChange:m,onChangeEnd:p,className:"react-colorful__last-control"}))}
1489,kQ={defaultColor:"000",toHsva:yQ,fromHsva:function(n){return vQ({h:n.h,s:n.s,v:n.v,a:1})},equal:TQ},PQ=function(n){return Ke.createElement(NQ,uh({},n,{colorModel:kQ}))};function _Q(n){let e=n.settings,t=n.contact;const[r,s]=S.useState(e.defaultChatColor),i=(u,d)=>{d.validateForm().then(()=>{Pe.put(`${Ft}/user/settings`,{bio:u.bio,email:u.email,pronouns:u.pronouns,phone:u.phone,nickname:u.nickname,settings:{preferUserName:u.preferUserName,preferNickname:u.preferNickname,defaultChatColor:r}}).then(({data:f})=>{Tt("User Information Updated Successfully. Reload to see changes")}).catch(f=>{(f.response.status===500||f.response.status===501)&&je("Unable to update user. Error: "+f.response.data.error),console.log("error!"),console.log(f)})}).catch(f=>{console.log("error!"),console.log(f)})},a=()=>t.emailVerified?o.jsx(o.Fragment,{}):o.jsxs("div",{className:"user-settings-verify-email",children:[o.jsx(zt,{onClick:()=>l(),children:"Verify Email Now"}),o.jsxs("span",{className:"user-settings-small-muted-text",children:["Received a verification code? ",o.jsx("a",{href:"/verifyEmail",children:"Enter it here"}),"."]})]}),l=()=>{Pe.get(`${Ft}/user/verifyemail`).then(u=>{Et("Email Sent, Please Check your Email for next steps!")}).catch(u=>{je(u.error.data)})};return o.jsx(o.Fragment,{children:o.jsx(xr,{validationSchema:br({schema:br({nickname:Bt().optional("Nickname must be provided").min(2,"Name must be at least 2 characters").max(100,"Name may be at most 100 characters"),phone:Bt().optional().matches(/((\d){3}-(\d){3}-(\d){4}|(\d){3}(\d){3}(\d){4})$/g,"Must be in the format XXX-XXX-XXXX or XXXYYYZZZZ, international numbers are currently not accepted"),email:Bt().optional("Email is required").email("Must be a proper email account"),username:Bt().optional("Username must be provided").min(5,"Username must be at least 5 characters").max(25,"Username must be no more than 25 characters").test("Username may not contain special characters","Username may not contain special characters",u=>!Da(u)),bio:Bt().optional().nullable()})}),onSubmit:(u,d)=>i(u,d),validateOnChange:!0,initialValues:{email:t.email,bio:t.bio,phone:t.phone,nickname:t.nickname,pronouns:t.pronouns,preferUserName:e.preferUserName===null?!0:e.preferUserName,preferNickname:e.preferNickname===null?!1:e.preferNickname,defaultChatColor:t.defaultChatColor},children:({handleSubmit:u,values:d,handleChange:f,errors:m})=>o.jsxs(et,{noValidate:!0,id:"Settings-div",className:"user-settings-form",style:{display:"contents"},onSubmit:p=>{u("",p)},children:[o.jsxs("section",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Account Status"}),o.jsx("p",{className:"channel-settings-muted",children:"These details are tied to your account and cannot be edited here."}),o.jsxs("div",{className:"user-settings-info-row",children:[o.jsx("strong",{children:"Account Name"}),o.jsx("span",{children:bn()})]}),o.jsxs("div",{className:"user-settings-info-row",children:[o.jsx("strong",{children:"Birthday"}),o.jsx("span",{children:t.birthday==="1900-01-01"?"Not Provided":t.birthday})]}),o.jsxs("div",{className:"user-settings-info-row",children:[o.jsx("strong",{children:"Over 18?"}),o.jsx("span",{children:t.over18?"Yes":"No"})]}),o.jsxs("div",{className:"user-settings-info-row user-settings-info-row-last",children:[o.jsx("strong",{children:"Email Verified?"}),o.jsx("span",{children:t.emailVerified?"Yes":"No"})]}),a(),o.jsx("div",{className:"user-settings-password-reset",children:o.jsx(zt,{onClick:()=>n.showPasswordModal(!0),text:"Reset Password"})})]}),o.jsxs("section",{className:"channel-settings-card user-settings-profile-details",children:[o.jsx("h3",{children:"Profile Details"}),o.jsx("p",{className:"channel-settings-muted",children:"Update how other users see and contact you."}),o.jsxs("div",{className:"user-settings-form-group",children:[o.jsxs("div",{className:"user-settings-input-wrapper",children:[o.jsx("span",{className:"user-settings-label",children:"Nickname / Profile name"}),o.jsx(et.Control,{name:"nickname",value:d.nickname,onChange:f,className:"user-settings-control",isInvalid:!!m.nickname})]}),m.nickname&&o.jsx("div",{className:"invalidText",children:m.nickname}),o.jsxs("div",{className:"user-settings-input-wrapper",children:[o.jsx("span",{className:"user-settings-label",children:"Phone number"}),o.jsx(et.Control,{name:"phone",value:d.phone,placeholder:"Phone Number",className:"user-settings-control",isInvalid:!!m.phone,onChange:p=>{d.phone.length>12&&(p.target.value=d.phone.slice(0,11)),f(p)}})]}),m.phone&&o.jsx("div",{className:"invalidText",children:m.phone}),o.jsxs("div",{className:"user-settings-input-wrapper",children:[o.jsx("span",{className:"user-settings-label",children:"Email"}),o.jsx(et.Control,{name:"email",value:d.email,placeholder:"[email protected]",className:"user-settings-control",isInvalid:!!m.email,onChange:f})]}),m.email&&o.jsx("div",{className:"invalidText",children:m.email}),o.jsxs("div",{className:"user-settings-input-wrapper",children:[o.jsx("span",{className:"user-settings-label",children:"Pronouns"}),o.jsx(et.Control,{name:"pronouns",value:d.pronouns,placeholder:"they/them",className:"user-settings-control",isInvalid:!!m.pronouns,onChange:f})]}),m.pronouns&&o.jsx("div",{className:"invalidText",children:m.pronouns})]})]}),o.jsxs("section",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Chat Display"}),o.jsx("p",{className:"channel-settings-muted",children:"Choose which name should appear when you chat. Only one option can be active at a time."}),o.jsxs("div",{className:"user-settings-switch-row",children:[o.jsx(et.Check,{type:"switch",id:"preferUserName",label:"Use account name in chat",checked:d.preferUserName,className:"user-settings-switch",onChange:p=>{d.preferUserName=p.target.checked,p.target.checked&&(d.preferNickname=!1),f(p)}}),o.jsx(et.Check,{type:"switch",id:"preferNickname",label:"Use nickname in chat",className:"user-settings-switch",checked:d.preferNickname,onChange:p=>{d.preferNickname=p.target.checked,p.target.checked&&(d.preferUserName=!1),f(p)}})]}),o.jsxs("div",{className:"user-settings-chat-color-grid",children:[o.jsxs("div",{children:[o.jsx("h5",{className:"user-settings-chat-color-title",children:"Default Chat Color"}),o.jsxs("div",{className:"user-settings-chat-preview",children:[o.jsx("span",{className:"user-settings-chat-preview-name",style:{color:r},children:d.preferNickname?d.nickname:bn()}),o.jsx("span",{className:"user-settings-chat-preview-description",children:"This is how your name will look in chat"})]}),o.jsx(et.Control,{name:"defaultChatColor",value:r,placeholder:"#efefef",onChange:f,readOnly:!0,className:"user-settings-chat-color-input"})]}),o.jsx("div",{className:"user-settings-color-picker",children:o.jsx(PQ,{color:r,onChange:p=>
1489{s(p)}})})]})]}),o.jsx("section",{className:"channel-settings-card",children:o.jsxs(et.Group,{controlId:"bio",children:[o.jsx("h3",{children:"User Bio"}),o.jsx("p",{className:"channel-settings-muted",children:"Add a short description for your profile."}),o.jsxs(Ac,{size:"md",children:[o.jsx(et.Control,{as:"textarea",name:"bio",value:d.bio,placeholder:"Tell us about yourself!",onChange:f,rows:6,className:"user-settings-bio-textarea"}),o.jsx(et.Control.Feedback,{type:"invalid",className:"invalidText",children:m.bio})]})]})}),o.jsx("div",{className:"user-settings-action-row channel-settings-full-width",children:o.jsx(zt,{onClick:u,text:"Save Settings",style:{fontSize:"1.35em"}})})]})})})}function OQ(n){const e=r=>n.setShow(r),t=()=>{Pe.post(`${Ft}/user/delete`).then(()=>{document.cookie="",window.location.replace("/")}).catch(r=>{je("Error Deleting Account, please contact strim.fun on our discord")}).finally(()=>{n.setDeleteFriendVisible(!1)})};return o.jsxs(ut,{backdrop:"static",show:n.show,onHide:e,centered:!0,contentClassName:"strim-modal-content",children:[o.jsx(ut.Header,{closeButton:!0,className:"strim-modal-header",children:o.jsx(ut.Title,{className:"strim-modal-title",children:"Are you sure?"})}),o.jsx(ut.Body,{className:"strim-modal-body strim-modal-scrollable",children:o.jsxs("div",{style:{textAlign:"center"},children:[o.jsx("h2",{style:{color:"var(--cancel-button-active-color)",marginBottom:"1.5rem"},children:"Warning!"}),o.jsx("p",{children:"Strim.FUN is sad to see you go. Our team strives to create a system where everyone is welcome and all creators and users feel welcome and valued. We aren't going to make it difficult for you to remove your data, as once you delete your account its gone. *poof* Including all your data, any channel(s) you've created, saved card data, subscription data, everything!"}),o.jsx("p",{children:"Your subscriptions will automatically be canceled, but you will lose any drops remaining in your account. If you have any left, consider throwing them at a random streamer to make their day a little brighter! Or give them to your favorite streamer as a way of thanks for the good times!"}),o.jsx("p",{children:"Please consider contacting us on our discord to let us know why you are choosing to leave! Your feedback helps make Strim a better platform."}),o.jsx("p",{children:"No matter where you end up in the future, we wish you the best! Strim on!"}),o.jsx("hr",{style:{borderColor:"rgba(255,255,255,0.1)"}}),o.jsx("p",{style:{fontWeight:"bold"},children:"Are you sure you wish to delete your strim.fun account? You will lose all your data."})]})}),o.jsxs(ut.Footer,{className:"strim-modal-footer",children:[o.jsx(Je,{variant:"danger",onClick:()=>t(),children:"Yes, delete my account"}),o.jsx(Je,{variant:"secondary",onClick:()=>e(!1),children:"Cancel"})]})]})}function DQ(n){document.title="User settings page";const[e,t]=S.useState({}),[r,s]=S.useState(!0),[i,a]=S.useState(!1),[l,u]=S.useState(!1),[d,f]=S.useState(!1),[m,p]=S.useState(!1),[y,v]=S.useState(""),[x,b]=S.useState({}),[E,T]=S.useState(!1),[w,R]=S.useState(!1);S.useEffect(()=>{Pe.get(`${Ft}/user/profile`).then(J=>{t(J.data)}).catch(J=>{var oe,ie;(((oe=J.response)==null?void 0:oe.status)===401||((ie=J.response)==null?void 0:ie.status)===403)&&(je("unauthorized to edit profile, please log in or sign up"),n.logOut?n.logOut():window.location.replace("/login"))}).finally(()=>{s(!1)})},[d]);const I=()=>e===void 0||e.watchParties===void 0||e.watchParties.length===0?o.jsxs("div",{children:[o.jsx("h3",{children:"You're not a part of any watch parties right now!"}),o.jsxs("h3",{children:["Wanna create one?!? Do it here: ",o.jsx("a",{href:"/watchParties",children:"CREATE A WATCH PARTY"})]})]}):e.watchParties.map((J,oe)=>o.jsxs("div",{children:[o.jsx("h2",{children:"this will be a watch party"}),o.jsxs("h2",{children:["index: ",oe]})]})),L=({channels:J,emptyMessage:oe,iconClass:ie})=>!J||J.length===0?o.jsx("p",{children:o.jsx("i",{children:oe})}):J.map((Z,X)=>{const ue=!!(Z!=null&&Z.over18||Z!=null&&Z.restricted||Z!=null&&Z.strict18||Z!=null&&Z.over_18);return o.jsxs(Pt,{to:"/"+Z.channelName,style:{position:"relative",display:"inline-block"},children:[Ht("png",Z.channelPfp,"","",null,ie),Z.isLive&&ue&&o.jsx("span",{className:"user-profile-18plus-badge",title:"18+ Stream Only",children:"18+"})]},"chan-"+X)}),N=()=>{var ie;if(!((ie=e==null?void 0:e.favoriteChannels)!=null&&ie.length))return o.jsx("div",{children:o.jsx("h3",{children:"You don't have any favorite channels right now! Go explore and find your next favorite!"})});const J=e.favoriteChannels.filter(Z=>Z.isLive),oe=e.favoriteChannels.filter(Z=>!Z.isLive);return o.jsxs("div",{className:"user-settings-flex-grid",children:[o.jsxs("div",{className:"w-100",children:[o.jsx("h3",{children:o.jsx("i",{children:"Online Channels:"})}),o.jsx("div",{className:"user-settings-flex-grid",children:o.jsx(L,{channels:J,emptyMessage:"No channels online",iconClass:"channel-icon-mini"})})]}),o.jsxs("div",{className:"w-100 mt-3",children:[o.jsx("h3",{children:o.jsx("i",{children:"Offline Channels:"})}),o.jsx("div",{className:"user-settings-flex-grid",children:o.jsx(L,{channels:oe,emptyMessage:"No channels followed",iconClass:"channel-icon-mini"})})]})]})},_=()=>o.jsx(o.Fragment,{children:o.jsx("p",{children:o.jsx("i",{children:"[This will be some suggested channels]"})})}),j=()=>{var ie;if(!((ie=e==null?void 0:e.followedChannels)!=null&&ie.length))return o.jsxs("div",{children:[o.jsx("h3",{children:"You're not following any channels right now!"}),o.jsx("h3",{children:"Why not check out one of these channels?!?"}),_()]});const J=e.followedChannels.filter(Z=>Z.isLive),oe=e.followedChannels.filter(Z=>!Z.isLive);return o.jsxs("div",{className:"w-100",children:[o.jsx("h3",{children:o.jsx("i",{children:"Online Channels:"})}),o.jsx("div",{className:"user-settings-flex-grid",children:o.jsx(L,{channels:J,emptyMessage:"No channels online",iconClass:"channel-icon-small"})}),o.jsx("br",{}),o.jsx("h3",{children:o.jsx("i",{children:"Offline Channels:"})}),o.jsx("div",{className:"user-settings-flex-grid",children:o.jsx(L,{channels:oe,emptyMessage:"No channels followed",iconClass:"channel-icon-small"})})]})};if(r)return _n;const F=(J,oe)=>{v(oe),p(J)},$=()=>d?o.jsx($8,{channelName:"",show:!0,setShow:J=>f(J),transactionInfo:x,cards:e.cards}):o.jsx(o.Fragment,{}),z=()=>o.jsx(nT,{show:l,setShow:J=>u(J),userData:e}),W=()=>o.jsx(OQ,{show:w,setShow:J=>R(J),userData:e});return o.jsxs("div",{className:"channel-settings-page",children:[W(),o.jsxs(Uf,{id:"userTabs",defaultActiveKey:"t1",className:"channel-settings-tabs",children:[o.jsx($n,{eventKey:"t1",title:"Profile",children:o.jsxs("section",{className:"channel-settings-section",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"User Settings"}),o.jsx("h2",{children:"User Profile"}),o.jsx("p",{children:"Manage your profile details, settings, and badges."})]}),o.jsxs("div",{className:"channel-settings-grid",children:[o.jsx("div",{className:"channel-settings-card",children:o.jsx(hQ,{userData:e})}),o.jsx(_Q,{contact:e.settings.contact,settings:e.settings.settings,showPasswordModal:u}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"User Icons"}),o.jsx("p",{className:"channel-settings-muted",children:"Manage the badges and icons shown on your profile and around the site."}),o.jsx(zt,{onClick:()=>{T(!0)},text:"Edit Default Badges"}),o.jsx("div",{className:"user-settings-scroll-container user-settings-inner-card",children:o.jsx(sT,{showEdit:!1,userName:e.userName,iconData:e.channelIcons})})]}),o.jsx("div",{className:"channel-settings-card",children:o.jsx(pQ,{userData:e})}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Paid Points"}),o.jsx("p",{className:"channel-settings-muted",children:"Purchase and review your Drops (Paid points)."}),o.jsx(zt,{onClick:()=>{a(!0)},text:"Purchase Points"}),o.jsxs("div",{className:"mt-3",children:[o.jsxs("div",{className:"user-settings-info-row",children:[o.jsx("span",{children:"Current Paid Points:"}),o.jsx("strong",{children:e.paidPoints??0})]}),o.jsxs("div",{className:"user-settings-info-row user-settings-info-row-last",children:[o.jsx("span",{children:"Total Paid Points Purchased:"}),o.jsx("strong",{children:e.lifetimePaidPoints??0})]})]}),o.jsxs("div",{className:"mt-3",children:[o.jsx("h4",{children:"Points Given to Channels"}),o.jsx("div",{className:"user-settings-scroll-container user-settings-inner-card",children:!e.pointsGivenToChannels||e.pointsGivenToChannels.length===0?o.jsx("p",{className:"user-settings-muted-text mb-0",children:o.jsx("i",{children:"No points g
1489iven to channels yet."})}):o.jsx("div",{className:"d-flex flex-column gap-2",children:e.pointsGivenToChannels.map((J,oe)=>o.jsxs("div",{className:"user-settings-info-row align-items-center",children:[o.jsxs("div",{className:"d-flex align-items-center gap-2",children:[o.jsx(Pt,{to:"/"+J.channelName,style:{position:"relative",display:"inline-block"},children:Ht("png",J.channelPfp,"","",null,"channel-icon-mini")}),o.jsx(Pt,{to:"/"+J.channelName,style:{color:"inherit",textDecoration:"none",fontWeight:600},children:J.channelName})]}),o.jsxs("span",{children:[o.jsx("strong",{children:J.points})," points"]})]},"points-history-"+oe))})})]}),o.jsx(Qw,{show:i,setPurchasePointsVisible:J=>a(J),setShowPurchaseModal:J=>f(J),userData:e,setPurchaseInfo:J=>b(J)}),$(),z()]}),o.jsxs("div",{className:"channel-settings-card channel-settings-sensitive-card",children:[o.jsx("div",{className:"channel-settings-sensitive-badge",children:"Account Security"}),o.jsx("h3",{children:"Danger Zone"}),o.jsx("p",{className:"channel-settings-muted",children:"Permanently delete your account and all associated data."}),o.jsx(Je,{variant:"danger",onClick:()=>{R(!0)},children:"Delete Account"})]})]})]})}),o.jsx($n,{eventKey:"t3-a",title:"Favorite/Followed/Subscribed Channels",children:o.jsxs("section",{className:"channel-settings-section",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"Connections"}),o.jsx("h2",{children:"Channel Subscriptions & Follows"}),o.jsx("p",{children:"Manage your interactions with your favorite creators."})]}),o.jsxs("div",{className:"channel-settings-grid",children:[o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Subscriptions"}),o.jsx("p",{className:"channel-settings-muted",children:"View and manage channels you are currently subscribed to."}),o.jsx("div",{className:"user-settings-inner-card",children:o.jsx(rT,{userData:e})})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Favorite Channels"}),o.jsx("p",{className:"channel-settings-muted",children:"Your favorite channels are highlighted here for quick access."}),o.jsx("div",{className:"user-settings-inner-card",children:N()})]}),o.jsxs("div",{className:"channel-settings-card channel-settings-full-width",children:[o.jsx("h3",{children:"Followed Channels"}),o.jsx("p",{className:"channel-settings-muted",children:"Channels you follow will appear here, live channels first!"}),o.jsx("div",{className:"user-settings-inner-card",children:j()})]})]})]})}),o.jsx($n,{eventKey:"t3-b",title:"Friends & Watch Parties",children:o.jsxs("section",{className:"channel-settings-section",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"Social"}),o.jsx("h2",{children:"Friends & Watch Parties"}),o.jsx("p",{children:"Connect with other users and join communal viewing experiences."})]}),o.jsxs("div",{className:"channel-settings-grid",children:[o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Friends"}),o.jsx("p",{className:"channel-settings-muted",children:"View your friends and manage friend connections."}),o.jsx("div",{className:"user-settings-inner-card",children:o.jsx(gQ,{friends:e.friends,showDeleteFriend:(J,oe)=>F(J,oe)})})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Watch Parties"}),o.jsx("p",{className:"channel-settings-muted",children:"Watch parties you are part of will appear here."}),o.jsx("div",{className:"user-settings-inner-card",children:I()})]})]})]})}),o.jsx($n,{eventKey:"t4",title:"Notification Settings",children:o.jsxs("section",{className:"channel-settings-section",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"Preferences"}),o.jsx("h2",{children:"Notification Settings"}),o.jsx("p",{children:"Control which notifications you receive and how they are displayed."})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Alert Preferences"}),o.jsx(dQ,{})]})]})}),o.jsx($n,{eventKey:"t5",title:"General Settings",children:o.jsxs("section",{className:"channel-settings-section",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"General"}),o.jsx("h2",{children:"General Settings"}),o.jsx("p",{children:"Additional account and site preferences."})]}),o.jsx("div",{className:"channel-settings-card",children:o.jsxs("div",{className:"user-settings-coming-soon-box",children:[o.jsx("h5",{className:"user-settings-coming-soon-title",children:"Coming Soon"}),o.jsxs("ul",{className:"user-settings-coming-soon-list",children:[o.jsx("li",{children:"Theme settings"}),o.jsx("li",{children:"Accessibility settings"}),o.jsx("li",{children:"Blocked user and channel settings"})]})]})})]})}),o.jsx($n,{eventKey:"t6",title:"Ads & Data",children:o.jsxs("section",{className:"channel-settings-section",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"Privacy"}),o.jsx("h2",{children:"Ads & Data"}),o.jsx("p",{children:"Review how ads and data preferences are handled for your account."})]}),o.jsx("div",{className:"channel-settings-card",children:o.jsx(uQ,{})})]})})]}),o.jsx(fQ,{show:m,friend:y,setDeleteFriendVisible:J=>F(J,"")}
1489),o.jsx(cQ,{show:E,userData:e,channel:void 0,setShowEditBadgesModal:J=>T(J)})]})}function jQ(n){const e=()=>n.followedChannels&&n.followedChannels.length!==0?n.followedChannels.map((t,r)=>o.jsx("div",{style:{padding:"1px"},children:o.jsx(Pt,{to:"/"+t.channelName,children:Ht("png",t.channelPfp,"","",{height:"5vh"})},"friend"+r)},"followimg-"+r)):o.jsx("p",{children:o.jsx("i",{children:"No Followed Channels"})});return n.followedChannelsPublic?o.jsxs("div",{className:n.className,style:n.style,children:[o.jsx("h4",{style:{justifySelf:"left"},children:"Followed channels"}),o.jsx("div",{className:"innerBox",children:e()})]}):o.jsx(o.Fragment,{})}function MQ(n){let{userName:e}=Ba();const[t,r]=S.useState({}),[s,i]=S.useState({}),[a,l]=S.useState(!0);document.title=e+"'s User Profile",S.useEffect(()=>{l(!0),r({}),i({}),lj(e).then(m=>(m&&m.userInfo?r(m.userInfo):r(null),Pe.get(`${Ft}/user/icons?viewUser=${e}`).then(p=>{i(p.data)}).catch(p=>{console.log(p)}))).catch(m=>{var p,y,v,x,b;((p=m==null?void 0:m.response)==null?void 0:p.status)===404?(r(null),je(e+" does not exist")):je(((v=(y=m==null?void 0:m.response)==null?void 0:y.data)==null?void 0:v.title)||((b=(x=m==null?void 0:m.response)==null?void 0:x.data)==null?void 0:b.error)||"Failed to load user profile")}).finally(()=>{l(!1)})},[e]);const u=()=>Ht("png",t.pfp,e+"'s profile picture",e+"'s profile picture",{width:"120px",height:"120px",borderRadius:"50%",border:"4px solid var(--darker-background-color)",boxShadow:"0 4px 12px rgba(0,0,0,0.5)"}),d=()=>{Pe.post(`${Ft}/friendRequest`,{receivingUser:e}).then(m=>{Tt("Friend request sent")}).catch(m=>{Et("unable to send friend request")})},f=()=>e===va()?o.jsx(o.Fragment,{}):hj(t.friends,e)?o.jsx("p",{className:"channel-settings-muted",children:"You're friends!!!"}):o.jsx(Je,{onClick:()=>{d(),Et("Request sent")},className:"green-click-button",children:"Send Friend Request"});return a?_n:t==null?o.jsx("h2",{children:"USER NOT FOUND"}):o.jsx("div",{className:"channel-settings-page",children:o.jsxs("section",{className:"channel-settings-section",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"User Profile"}),o.jsx("h2",{children:e}),o.jsxs("p",{className:"channel-settings-muted",children:[t.nickname," ",t.pronouns&&`• ${t.pronouns}`]})]}),o.jsxs("div",{className:"channel-settings-grid",children:[o.jsxs("div",{className:"channel-settings-card channel-settings-full-width user-profile-header-card",children:[o.jsx("div",{className:"user-profile-banner",children:Ht("svg",t.banner,t.firstName+"'s Banner Picture",t.firstName+"'s Banner Picture",{width:"100%",height:"100%",objectFit:"cover"})}),o.jsx("div",{className:"user-profile-avatar-container",children:u()})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsxs("h3",{children:["About ",e]}),o.jsx("div",{className:"channel-settings-muted user-bio-text",children:o.jsx("pre",{dangerouslySetInnerHTML:{__html:kc(t.bio)}})}),o.jsx("div",{className:"channel-settings-actions",children:f()})]}),o.jsxs("div",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Awards & Badges"}),o.jsx("div",{className:"user-badges-container",children:o.jsx(sT,{userName:e,iconData:s.channelIcons,showEdit:!1})})]}),o.jsx("div",{className:"channel-settings-card",children:o.jsx("div",{className:"user-connections-list",children:o.jsx(jQ,{followedChannelsPublic:t.followedChannelsPublic,followedChannels:t.followedChannels})})}),o.jsx("div",{className:"channel-settings-card",children:o.jsx("div",{className:"user-connections-list",children:o.jsx(tT,{friendsPublic:t.friendsPublic,friends:t.friends})})})]})]})})}function FQ(n){const[e,t]=S.useState(!1),[r,s]=S.useState(""),[i,a]=S.useState({users:[],channels:[]}),[l,u]=S.useState(!1),[d,f]=S.useState(!1),[m,p]=S.useState(""),y=S.useRef(null),v=S.useMemo(()=>r.trim(),[r]);S.useEffect(()=>{const w=R=>{y.current&&!y.current.contains(R.target)&&t(!1)};return document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w)}},[]),S.useEffect(()=>{if(v.length<2){a({users:[],channels:[]}),f(!1),p(""),u(!1);return}const w=setTimeout(()=>{x(v)},450);return()=>{clearTimeout(w)}},[v]);const x=w=>{const R=n.searchField?`&field=${n.searchField}`:"";u(!0),t(!0),f(!0),p(""),Pe.get(`${Ft}/search?name=${encodeURIComponent(w)}${R}`).then(I=>{a({users:I.data.users??[],channels:I.data.channels??[]})}).catch(()=>{a({users:[],channels:[]}),p("Search is unavailable right now.")}).finally(()=>{u(!1)})},b=()=>{s(""),a({users:[],channels:[]}),f(!1),p(""),t(!1)},E=i.users.length>0||i.channels.length>0,T=(w,R,I)=>R.length===0?null:o.jsxs("section",{className:"search-results-section","aria-label":`${w} search results`,children:[o.jsx("p",{className:"search-results-section-title",children:w}),R.map((L,N)=>{var _,j;return o.jsxs(Pt,{className:"search-result-item",to:I(L),onClick:b,children:[o.jsx("span",{className:"search-result-avatar","aria-hidden":"true",children:((j=(_=L.name)==null?void 0:_.charAt(0))==null?void 0:j.toUpperCase())??"?"}),o.jsx("span",{className:"search-result-text",children:L.name})]},`${w}-${L.name}-${N}`)})]});return o.jsxs("div",{className:`search-bar-wrapper ${n.className??""}`,ref:y,style:n.style,children:[o.jsxs("div",{className:`search-input-shell ${e?"search-input-shell-active":""}`,children:[o.jsx(Jw,{className:"search-icon","aria-hidden":"true"}),o.jsx("input",{className:"search-field",type:"search",placeholder:n.placeholder??"Search",value:r,onChange:w=>{s(w.target.value),t(!0)},onFocus:()=>{(v.length>=2||d)&&t(!0)},"aria-label":n.placeholder??"Search","aria-expanded":e,"aria-controls":"search-results-panel"}),r.length>0&&o.jsx("button",{type:"button",className:"search-clear-button",onClick:b,"aria-label":"Clear search",children:"×"})]}),e&&o.jsxs("div",{id:"search-results-panel",className:"search-results-panel",role:"region","aria-label":"Search results",children:[o.jsxs("div",{className:"search-results-header",children:[o.jsx("h4",{children:"Search Results"}),l&&o.jsx(Ua,{animation:"grow",size:"sm",className:"search-results-spinner"})]}),v.length<2&&o.jsx("div",{className:"search-results-empty-state",children:"Type at least 2 characters to search."}),m&&o.jsx("div",{className:"search-results-empty-state search-results-error",children:m}),!l&&!m&&d&&!E&&v.length>=2&&o.jsx("div",{className:"search-results-empty-state",children:"No users or channels found."}),!m&&o.jsxs(o.Fragment,{children:[T("Users",i.users,w=>`/user/${w.name}`),T("Channels",i.channels,w=>`/${w.name}`)]})]})]})}function $Q(n){var E,T;let{channelName:e}=Ba();document.title=e+"'s VODs";const[t,r]=S.useState([]),[s,i]=S.useState(!0),[a,l]=S.useState(null),[u,d]=S.useState(!1),f=!!(n.loggedIn&&((E=n.userData)!=null&&E.channelName&&n.userData.channelName===e||(T=n.userData)!=null&&T.userName&&n.userData.userName===e||va()===e)),m=S.useCallback(()=>{i(!0),Pe.get(Oo+"/channel/"+e+"/vods").then(w=>
1489{r(Array.isArray(w.data)?w.data:[]),i(!1)}).catch(w=>{var R,I,L;(I=(R=w.response)==null?void 0:R.data)!=null&&I.error?je(w.response.data.error):(L=w.response)!=null&&L.data&&je(w.response.data),i(!1)})},[e]),p=S.useCallback(()=>{Pe.get(Oo+"/channel/"+e+"/vods/limits").then(w=>{l(w.data)}).catch(w=>{console.error("Failed to load VOD limits:",w)})},[e]);S.useEffect(()=>{m(),p()},[m,p]);const y=w=>{if(!n.loggedIn){Et("You must be logged in to favorite VODs.");return}if(!f){Et("Only the channel owner can star or favorite VODs for this channel.");return}const R=!w.isSaved;if(R&&a){const I=a.maxSavedAllowed,L=a.savedCount;if(I<=0){je(`Your affiliation level (${a.partnerLevelName||"Unaffiliated"}) does not allow favoriting VODs.`);return}if(L>=I){je(`You have reached the maximum number of favorited videos allowed by your affiliation level (${I}).`);return}}d(!0),Pe.post(`${Oo}/channel/${e}/vods/favorite`,{videoId:w.videoId||"",streamId:w.streamId||"",date:w.date||"",isSaved:R}).then(I=>{var N,_,j;const L=((N=I.data)==null?void 0:N.isSaved)??R;r(F=>F.map($=>w.videoId&&$.videoId===w.videoId||w.streamId&&$.streamId===w.streamId||$.date===w.date?{...$,isSaved:L}:$)),((_=I.data)==null?void 0:_.savedCount)!==void 0&&((j=I.data)==null?void 0:j.maxSavedAllowed)!==void 0?l(F=>F?{...F,savedCount:I.data.savedCount,maxSavedAllowed:I.data.maxSavedAllowed}:null):p(),Tt(L?"VOD favorited!":"VOD unstarred.")}).catch(I=>{var N,_,j,F;const L=((_=(N=I.response)==null?void 0:N.data)==null?void 0:_.error)||((F=(j=I.response)==null?void 0:j.data)==null?void 0:F.message)||"Failed to update favorited status.";je(L)}).finally(()=>{d(!1)})},v=w=>{if(!w)return"Unknown Date";try{const R=new Date(w);if(!isNaN(R.getTime()))return R.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch{}return w},x=()=>{if(!f||!a)return null;const w=a.maxSavedAllowed===2147483647?"Unlimited":a.maxSavedAllowed,R=a.maxSavedAllowed>0&&a.maxSavedAllowed!==2147483647&&a.savedCount>=a.maxSavedAllowed;return o.jsxs("div",{className:"vods-affiliation-info",children:[o.jsxs("span",{children:["Affiliation: ",o.jsx("strong",{className:"vods-affiliation-level",children:a.partnerLevelName||"Unaffiliated"})]}),o.jsx("span",{children:"•"}),o.jsxs("span",{className:`vods-favorites-count ${R?"at-limit":""}`,children:["Favorited VODs: ",a.savedCount," / ",w]})]})},b=()=>t.length===0?o.jsxs("div",{className:"vods-empty-state",children:[o.jsx("h3",{children:"No VODs Available"}),o.jsxs("p",{children:["There are currently no recorded past broadcasts for ",e,"."]})]}):o.jsx("div",{className:"vods-grid",children:t.map((w,R)=>{const I=!!w.isSaved;return o.jsxs("article",{className:`vod-card ${I?"vod-card-saved":""}`,children:[o.jsxs("div",{children:[o.jsxs("div",{className:"vod-card-top",children:[o.jsx("h3",{className:"vod-card-title",children:w.streamTitle||"Untitled Stream"}),o.jsxs("div",{className:"vod-card-actions-top",children:[I&&o.jsxs("span",{className:"vod-saved-pill",children:[o.jsx(rn,{icon:A5})," Starred"]}),f&&o.jsx("button",{type:"button",className:`vod-star-btn ${I?"starred":""}`,onClick:()=>y(w),disabled:u,title:I?"Unstar VOD":"Star VOD","aria-label":I?"Unstar VOD":"Star VOD",children:o.jsx(rn,{icon:A5})})]})]}),o.jsx("p",{className:"vod-card-desc",children:w.description||"No description provided."}),o.jsxs("div",{className:"vod-card-meta",children:[w.category&&o.jsx("span",{className:"vod-badge category",children:w.category}),w.subCategory&&o.jsx("span",{className:"vod-badge",children:w.subCategory}),o.jsxs("span",{className:"vod-badge",children:["Views: ",w.viewCount??"0"]}),o.jsxs("span",{className:"vod-badge",children:["Date: ",v(w.date)]})]})]}),o.jsx("div",{className:"vod-card-footer",children:o.jsx("a",{href:`${Oo}/channel/${e}/vods/download?channel=${e}&fts=${w.date}`,download:!0,className:"vod-download-link",children:o.jsxs(Je,{className:"green-click-button vod-download-btn",children:[o.jsx(rn,{icon:WG})," Download"]})})})]},"vod-"+(w.videoId||w.streamId||R))})});return s?_n:o.jsxs("section",{className:"vods-container",children:[o.jsxs("div",{className:"vods-header-section",children:[o.jsxs("h2",{className:"vods-title",children:[e,"'s VODs"]}),x()]}),o.jsx("hr",{}),b()]})}const BQ=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:40,zoomAndPan:"magnify",viewBox:"0 0 30 30.000001",height:40,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"9a42c68f8a"},S.createElement("path",{d:"M 1.933594 0 L 28.066406 0 L 28.066406 29.03125 L 1.933594 29.03125 Z M 1.933594 0 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"6052a1584a"},S.createElement("path",{d:"M 1.933594 20 L 3 20 L 3 22 L 1.933594 22 Z M 1.933594 20 ",clipRule:"nonzero"}))),S.createElement("path",{fill:"#60e1b7",d:"M 15 23.707031 C 15.132812 23.707031 15.246094 23.660156 15.34375 23.566406 L 21.046875 17.859375 C 21.394531 17.519531 21.664062 17.121094 21.851562 16.671875 C 22.039062 16.222656 22.136719 15.753906 22.136719 15.265625 C 22.136719 14.78125 22.046875 14.3125 21.859375 13.859375 C 21.675781 13.410156 21.4101
148956 13.011719 21.0625 12.667969 C 20.71875 12.324219 20.320312 12.058594 19.871094 11.871094 C 19.421875 11.683594 18.953125 11.59375 18.464844 11.59375 C 17.976562 11.597656 17.507812 11.691406 17.058594 11.878906 C 16.609375 12.066406 16.214844 12.335938 15.871094 12.683594 L 15 13.550781 L 14.132812 12.683594 C 13.789062 12.339844 13.394531 12.074219 12.945312 11.886719 C 12.496094 11.703125 12.027344 11.609375 11.542969 11.609375 C 11.058594 11.609375 10.589844 11.703125 10.140625 11.886719 C 9.691406 12.074219 9.296875 12.339844 8.953125 12.679688 C 8.609375 13.023438 8.34375 13.421875 8.160156 13.871094 C 7.972656 14.316406 7.878906 14.785156 7.878906 15.269531 C 7.878906 15.757812 7.972656 16.222656 8.15625 16.671875 C 8.34375 17.121094 8.609375 17.515625 8.953125 17.859375 L 14.65625 23.566406 C 14.75 23.660156 14.867188 23.707031 15 23.707031 Z M 8.847656 15.273438 C 8.847656 14.726562 9 14.230469 9.304688 13.777344 C 9.605469 13.324219 10.007812 12.992188 10.511719 12.785156 C 11.015625 12.578125 11.53125 12.527344 12.066406 12.632812 C 12.601562 12.738281 13.058594 12.984375 13.445312 13.367188 L 14.65625 14.578125 C 14.75 14.671875 14.863281 14.71875 14.996094 14.71875 C 15.132812 14.71875 15.246094 14.671875 15.339844 14.578125 L 16.550781 13.367188 C 16.800781 13.113281 17.09375 12.917969 17.421875 12.78125 C 17.753906 12.644531 18.097656 12.578125 18.453125 12.578125 C 18.8125 12.578125 19.15625 12.644531 19.484375 12.78125 C 19.816406 12.917969 20.109375 13.113281 20.359375 13.367188 C 20.613281 13.621094 20.808594 13.910156 20.945312 14.242188 C 21.082031 14.570312 21.148438 14.914062 21.148438 15.273438 C 21.148438 15.628906 21.082031 15.972656 20.945312 16.304688 C 20.808594 16.632812 20.613281 16.925781 20.359375 17.175781 L 15 22.539062 L 9.636719 17.175781 C 9.109375 16.648438 8.847656 16.015625 8.847656 15.273438 Z M 8.847656 15.273438 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 5.804688 11.125 C 5.804688 11.257812 5.757812 11.375 5.664062 11.46875 C 5.570312 11.5625 5.457031 11.609375 5.324219 11.609375 C 5.1875 11.609375 5.074219 11.5625 4.980469 11.46875 C 4.886719 11.375 4.839844 11.257812 4.839844 11.125 C 4.839844 10.992188 4.886719 10.878906 4.980469 10.785156 C 5.074219 10.6875 5.1875 10.640625 5.324219 10.640625 C 5.457031 10.640625 5.570312 10.6875 5.664062 10.785156 C 5.757812 10.878906 5.804688 10.992188 5.804688 11.125 Z M 5.804688 11.125 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 5.804688 23.707031 C 5.804688 23.839844 5.757812 23.953125 5.664062 24.046875 C 5.570312 24.144531 5.457031 24.191406 5.324219 24.191406 C 5.1875 24.191406 5.074219 24.144531 4.980469 24.046875 C 4.886719 23.953125 4.839844 23.839844 4.839844 23.707031 C 4.839844 23.574219 4.886719 23.460938 4.980469 23.363281 C 5.074219 23.269531 5.1875 23.222656 5.324219 23.222656 C 5.457031 23.222656 5.570312 23.269531 5.664062 23.363281 C 5.757812 23.460938 5.804688 23.574219 5.804688 23.707031 Z M 5.804688 23.707031 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 25.160156 11.125 C 25.160156 11.257812 25.113281 11.375 25.019531 11.46875 C 24.925781 11.5625 24.8125 11.609375 24.675781 11.609375 C 24.542969 11.609375 24.429688 11.5625 24.335938 11.46875 C 24.242188 11.375 24.195312 11.257812 24.195312 11.125 C 24.195312 10.992188 24.242188 10.878906 24.335938 10.785156 C 24.429688 10.6875 24.542969 10.640625 24.675781 10.640625 C 24.8125 10.640625 24.925781 10.6875 25.019531 10.785156 C 25.113281 10.878906 25.160156 10.992188 25.160156 11.125 Z M 25.160156 11.125 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("g",{clipPath:"url(#9a42c68f8a)"},S.createElement("path",{fill:"#60e1b7",d:"M 25.644531 1.933594 L 24.195312 1.933594 L 24.195312 1.691406 C 24.195312 1.464844 24.152344 1.25 24.066406 1.042969 C 23.980469 0.835938 23.855469 0.652344 23.699219 0.492188 C 23.539062 0.335938 23.355469 0.210938 23.148438 0.125 C 22.941406 0.0390625 22.722656 -0.00390625 22.5 -0.00390625 C 22.277344 -0.00390625 22.058594 0.0390625 21.851562 0.125 C 21.644531 0.210938 21.460938 0.335938 21.300781 0.492188 C 21.144531 0.652344 21.019531 0.835938 20.933594 1.042969 C 20.847656 1.25 20.804688 1.464844 20.804688 1.691406 L 20.804688 1.933594 L 16.695312 1.933594 L 16.695312 1.691406 C 16.695312 1.464844 16.652344 1.25 16.566406 1.042969 C 16.480469 0.835938 16.355469 0.652344 16.199219 0.492188 C 16.039062 0.335938 15.855469 0.210938 15.648438 0.125 C 15.441406 0.0390625 15.222656 -0.00390625 15 -0.00390625 C 14.777344 -0.00390625 14.558594 0.0390625 14.351562 0.125 C 14.144531 0.210938 13.960938 0.335938 13.800781 0.492188 C 13.644531 0.652344 13.519531 0.835938 13.433594 1.042969 C 13.347656 1.25 13.304688 1.464844 13.304688 1.691406 L 13.304688 1.933594 L 9.195312 1.933594 L 9.195312 1.691406 C 9.195312 1.464844 9.152344 1.25 9.066406 1.042969 C 8.980469 0.835938 8.855469 0.652344 8.699219 0.492188 C 8.539062 0.335938 8.355469 0.210938 8.148438 0.125 C 7.941406 0.0390625 7.722656 -0.00390625 7.5 -0.00390625 C 7.277344 -0.00390625 7.058594 0.0390625 6.851562 0.125 C 6.644531 0.210938 6.460938 0.335938 6.300781 0.492188 C 6.144531 0.652344 6.019531 0.835938 5.933594 1.042969 C 5.847656 1.25 5.804688 1.464844 5.804688 1.691406 L 5.804688 1.933594 L 4.355469 1.933594 C 4.035156 1.933594 3.726562 1.996094 3.429688 2.117188 C 3.132812 2.242188 2.871094 2.414062 2.644531 2.640625 C 2.417969 2.867188 2.242188 3.128906 2.121094 3.425781 C 1.996094 3.722656 1.9375 4.03125 1.933594 4.351562 L 1.933594 19.351562 C 1.933594 19.484375 1.984375 19.597656 2.078125 19.695312 C 2.171875 19.789062 2.285156 19.835938 2.417969 19.835938 C 2.554688 19.835938 2.667969 19.789062 2.761719 19.695312 C 2.855469 19.597656 2.902344 19.484375 2.902344 19.351562 L 2.902344 8.707031 L 27.097656 8.707031 L 27.097656 20.320312 C 27.097656 20.453125 27.050781 20.566406 26.953125 20.660156 C 26.859375 20.757812 26.746094 20.804688 26.613281 20.804688 L 24.195312 20.804688 C 23.871094 20.804688 23.5625 20.867188 23.269531 20.988281 C 22.972656 21.109375 22.710938 21.285156 22.484375 21.511719 C 22.257812 21.738281 22.082031 22 21.960938 22.296875 C 21.835938 22.59375 21.773438 22.902344 21.773438 23.222656 L 21.773438 25.640625 C 21.773438 25.777344 21.726562 25.890625 21.632812 25.984375 C 21.539062 26.078125 21.425781 26.125 21.289062 26.125 L 4.355469 26.097656 C 4.164062 26.097656 3.976562 26.058594 3.800781 25.984375 C 3.621094 25.914062 3.464844 25.808594 3.328125 25.671875 C 3.191406 25.535156 3.085938 25.378906 3.015625 25.199219 C 2.941406 25.023438 2.902344 24.835938 2.902344 24.644531 L 2.902344 23.222656 C 2.902344 23.089844 2.855469 22.976562 2.761719 22.878906 C 2.667969 22.785156 2.554688 22.738281 2.417969 22.738281 C 2.285156 22.738281 2.171875 22.785156 2.078125 22.878906 C 1.984375 22.976562 1.933594 23.089844 1.933594 23.222656 L 1.933594 26.609375 C 1.9375 26.929688 1.996094 27.238281 2.121094 27.535156 C 2.242188 27.832031 2.417969 28.09375 2.644531 28.320312 C 2.871094 28.54687
14895 3.132812 28.722656 3.429688 28.84375 C 3.726562 28.96875 4.035156 29.027344 4.355469 29.027344 L 25.644531 29.027344 C 25.964844 29.027344 26.273438 28.96875 26.570312 28.84375 C 26.867188 28.722656 27.128906 28.546875 27.355469 28.320312 C 27.582031 28.09375 27.757812 27.832031 27.878906 27.535156 C 28.003906 27.238281 28.0625 26.929688 28.066406 26.609375 L 28.066406 4.351562 C 28.0625 4.03125 28.003906 3.722656 27.878906 3.425781 C 27.757812 3.128906 27.582031 2.867188 27.355469 2.640625 C 27.128906 2.414062 26.867188 2.242188 26.570312 2.117188 C 26.273438 1.996094 25.964844 1.933594 25.644531 1.933594 Z M 21.773438 1.691406 C 21.773438 1.488281 21.84375 1.320312 21.988281 1.175781 C 22.128906 1.035156 22.300781 0.964844 22.5 0.964844 C 22.699219 0.964844 22.871094 1.035156 23.011719 1.175781 C 23.15625 1.320312 23.226562 1.488281 23.226562 1.691406 L 23.226562 3.625 C 23.226562 3.828125 23.15625 3.996094 23.011719 4.140625 C 22.871094 4.28125 22.699219 4.351562 22.5 4.351562 C 22.300781 4.351562 22.128906 4.28125 21.988281 4.140625 C 21.84375 3.996094 21.773438 3.828125 21.773438 3.625 Z M 14.273438 1.691406 C 14.273438 1.488281 14.34375 1.320312 14.488281 1.175781 C 14.628906 1.035156 14.800781 0.964844 15 0.964844 C 15.199219 0.964844 15.371094 1.035156 15.511719 1.175781 C 15.65625 1.320312 15.726562 1.488281 15.726562 1.691406 L 15.726562 3.625 C 15.726562 3.828125 15.65625 3.996094 15.511719 4.140625 C 15.371094 4.28125 15.199219 4.351562 15 4.351562 C 14.800781 4.351562 14.628906 4.28125 14.488281 4.140625 C 14.34375 3.996094 14.273438 3.828125 14.273438 3.625 Z M 6.773438 1.691406 C 6.773438 1.488281 6.84375 1.320312 6.988281 1.175781 C 7.128906 1.035156 7.300781 0.964844 7.5 0.964844 C 7.699219 0.964844 7.871094 1.035156 8.011719 1.175781 C 8.15625 1.320312 8.226562 1.488281 8.226562 1.691406 L 8.226562 3.625 C 8.226562 3.828125 8.15625 3.996094 8.011719 4.140625 C 7.871094 4.28125 7.699219 4.351562 7.5 4.351562 C 7.300781 4.351562 7.128906 4.28125 6.988281 4.140625 C 6.84375 3.996094 6.773438 3.828125 6.773438 3.625 Z M 2.902344 7.738281 L 2.902344 4.351562 C 2.902344 4.160156 2.941406 3.972656 3.015625 3.796875 C 3.085938 3.617188 3.191406 3.460938 3.328125 3.324219 C 3.464844 3.1875 3.621094 3.085938 3.800781 3.011719 C 3.976562 2.9375 4.164062 2.898438 4.355469 2.898438 L 5.804688 2.898438 L 5.804688 3.625 C 5.804688 3.851562 5.847656 4.066406 5.933594 4.273438 C 6.019531 4.480469 6.144531 4.664062 6.300781 4.824219 C 6.460938 4.980469 6.644531 5.105469 6.851562 5.191406 C 7.058594 5.277344 7.277344 5.320312 7.5 5.320312 C 7.722656 5.320312 7.941406 5.277344 8.148438 5.191406 C 8.355469 5.105469 8.539062 4.980469 8.699219 4.824219 C 8.855469 4.664062 8.980469 4.480469 9.066406 4.273438 C 9.152344 4.066406 9.195312 3.851562 9.195312 3.625 L 9.195312 2.898438 L 13.304688 2.898438 L 13.304688 3.625 C 13.304688 3.851562 13.347656 4.066406 13.433594 4.273438 C 13.519531 4.480469 13.644531 4.664062 13.800781 4.824219 C 13.960938 4.980469 14.144531 5.105469 14.351562 5.191406 C 14.558594 5.277344 14.777344 5.320312 15 5.320312 C 15.222656 5.320312 15.441406 5.277344 15.648438 5.191406 C 15.855469 5.105469 16.039062 4.980469 16.199219 4.824219 C 16.355469 4.664062 16.480469 4.480469 16.566406 4.273438 C 16.652344 4.066406 16.695312 3.851562 16.695312 3.625 L 16.695312 2.898438 L 20.804688 2.898438 L 20.804688 3.625 C 20.804688 3.851562 20.847656 4.066406 20.933594 4.273438 C 21.019531 4.480469 21.144531 4.664062 21.300781 4.824219 C 21.460938 4.980469 21.644531 5.105469 21.851562 5.191406 C 22.058594 5.277344 22.277344 5.320312 22.5 5.320312 C 22.722656 5.320312 22.941406 5.277344 23.148438 5.191406 C 23.355469 5.105469 23.539062 4.980469 23.699219 4.824219 C 23.855469 4.664062 23.980469 4.480469 24.066406 4.273438 C 24.152344 4.066406 24.195312 3.851562 24.195312 3.625 L 24.195312 2.898438 L 25.644531 2.898438 C 25.835938 2.898438 26.023438 2.9375 26.199219 3.011719 C 26.378906 3.085938 26.535156 3.1875 26.671875 3.324219 C 26.808594 3.460938 26.914062 3.617188 26.984375 3.796875 C 27.058594 3.972656 27.097656 4.160156 27.097656 4.351562 L 27.097656 7.738281 Z M 22.742188 23.222656 C 22.742188 23.03125 22.777344 22.84375 22.851562 22.667969 C 22.925781 22.488281 23.03125 22.332031 23.167969 22.195312 C 23.304688 22.058594 23.460938 21.957031 23.636719 21.882812 C 23.816406 21.808594 24 21.769531 24.195312 21.769531 L 26.414062 21.769531 L 22.742188 25.441406 Z M 25.644531 28.0625 L 4.355469 28.0625 C 4.160156 28.0625 3.96875 28.023438 3.789062 27.945312 C 3.609375 27.871094 3.449219 27.761719 3.3125 27.621094 C 3.175781 27.480469 3.074219 27.316406 3.003906 27.136719 C 2.929688 26.953125 2.898438 26.761719 2.902344 26.566406 C 3.328125 26.894531 3.8125 27.0625 4.351562 27.0625 L 21.449219 27.09375 C 22.121094 27.09375 22.695312 26.855469 23.167969 26.382812 L 27.097656 22.457031 L 27.097656 26.609375 C 27.097656 26.800781 27.058594 26.988281 26.984375 27.164062 C 26.914062 27.34375 26.808594 27.5 26.671875 27.636719 C 26.535156 27.773438 26.378906 27.878906 26.199219 27.949219 C 26.023438 28.023438 25.835938 28.0625 25.644531 28.0625 Z M 25.644531 28.0625 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("g",{clipPath:"url(#6052a1584a)"},S.createElement("path",{fill:"#60e1b7",d:"M 2.902344 21.289062 C 2.902344 21.421875 2.855469 21.535156 2.761719 21.628906 C 2.667969 21.722656 2.554688 21.769531 2.417969 21.769531 C 2.285156 21.769531 2.171875 21.722656 2.078125 21.628906 C 1.984375 21.535156 1.933594 21.421875 1.933594 21.289062 C 1.933594 21.152344 1.984375 21.039062 2.078125 20.945312 C 2.171875 20.851562 2.285156 20.804688 2.417969 20.804688 C 2.554688 20.804688 2.667969 20.851562 2.761719 20.945312 C 2.855469 21.039062 2.902344 21.152344 2.902344 21.289062 Z M 2.902344 21.289062 ",fillOpacity:1,fillRule:"nonzero"}))),UQ=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:40,zoomAndPan:"magnify",viewBox:"0 0 30 30.000001",height:40,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"a8e228af07"},S.createElement("path",{d:"M 0.484375 0.5 L 29.515625 0.5 L 29.515625 28.082031 L 0.484375 28.082031 Z M 0.484375 0.5 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#a8e228af07)"},S.createElement("path",{fill:"#60e1b7",d:"M 7.5 18.121094 L 5.882812 27.527344 C 5.855469 27.699219 5.921875 27.867188 6.0625 27.96875 C 6.203125 28.070312 6.386719 28.082031 6.539062 28.003906 L 15 23.5625 L 23.457031 28.003906 C 23.523438 28.035156 23.59375 28.054688 23.664062 28.054688 C 23.761719 28.054688 23.851562 28.027344 23.929688 27.96875 C 24.074219 27.867188 24.140625 27.699219 24.113281 27.527344 L 22.5 18.121094 L 29.34375 11.460938 C 29.46875 11.34375 29.515625 11.160156 29.457031 11 C 29.40625 10.835938 29.265625 10.714844 29.089844 10.691406 L 19.632812 9.320312 L 15.40625 0.753906 C 15.332031 0.601562 15.175781 0.5 15 0.5 C 14.824219 0.5 14.671875 0.597656 14.59375 0.753906 L 10.363281 9.316406 L 0.902344 10.6875 C 0.734375 10.710938 0.59375 10.828125 0.535156 10.992188 C 0.484375 11.15625 0.523438 11.335938 0.648438 11.457031 Z M 10.730469 10.171875 C 10.875 10.152344 11.007812 10.058594 11.070312 9.925781 L 15 1.976562 L 18.929688 9.929688 C 19 10.066406 19.125 10.15625 19.269531 10.179688 L 28.054688 11.457031 L 21.695312 17.640625 C 21.589844 17.742188 21.542969 17.894531 21.566406 18.042969 L 23.066406 26.78125 L 15.210938 22.660156 C 15.140625 22.625 15.074219 22.609375 15 22.609375 C 14.925781 22.609375 14.851562 22.625 14.789062 22.660156 L 6.933594 26.78125 L 8.433594 18.042969 C 8.457031 17.894531 8.410156 17.75 8.304688 17.640625 L 1.945312 11.449219 Z M 10.730469 10.171875 ",fillOpacity:1,fillRule:"nonzero"}))),VQ=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:40,zoomAndPan:"magnify",viewBox:"0 0 30 30.000001",height:40,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"bb810f8b94"},S.createElement("path",{d:"M 6.472656 0.371094 L 23.167969 0.371094 L 23.167969 28.675781 L 6.472656 28.675781 Z M 6.472656 0.371094 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#bb810f8b94)"},S.createElement("path",{fill:"#60e1b7",d:"M 7.347656 11.199219 C 7.402344 12.941406 7.257812 14.492188 7.382812 15.972656 C 7.492188 17.324219 8.019531 18.570312 8.640625 19.507812 C 9.84375 21.335938 12 22.890625 14.859375 22.878906 C 16.246094 22.871094 17.566406 22.402344 18.566406 21.8125 C 20.53125 20.648438 22.027344 18.675781 22.269531 15.9375 C 22.402344 14.453125 22.269531 12.910156 22.269531 11.164062 L 21.742188 11.164062 C 21.441406 12.234375 20.851562 13.003906 19.625 13.132812 C 19.527344 14.5
148954688 19.753906 15.90625 19.625 17.238281 C 19.398438 19.550781 16.96875 21.140625 14.261719 20.941406 C 12.195312 20.792969 10.210938 19.386719 10.027344 17.273438 C 9.914062 15.960938 10.113281 14.652344 10.027344 13.132812 C 8.847656 12.957031 8.175781 12.265625 7.976562 11.097656 L 7.382812 11.097656 C 7.34375 11.105469 7.34375 11.152344 7.347656 11.199219 Z M 19.625 12.234375 C 21.238281 12.03125 21.195312 9.5 19.625 9.332031 Z M 9.996094 9.332031 C 8.472656 9.601562 8.5 12.023438 10.027344 12.234375 C 10.007812 11.277344 10.074219 10.230469 9.996094 9.332031 Z M 11.75 18.941406 C 12.417969 19.628906 13.671875 20.15625 14.859375 20.140625 C 15.992188 20.128906 17.484375 19.421875 18.035156 18.742188 C 18.261719 18.460938 18.652344 17.8125 18.765625 17.273438 C 18.953125 16.34375 18.796875 15.007812 18.796875 13.867188 L 18.796875 7.394531 C 18.796875 6.277344 18.925781 5.117188 18.796875 4.125 C 18.738281 3.6875 18.414062 3.042969 18.265625 2.824219 C 17.65625 1.910156 16.125 1.148438 14.695312 1.222656 C 14.097656 1.25 13.558594 1.464844 13.039062 1.6875 C 11.300781 2.433594 10.589844 3.859375 10.855469 6.527344 L 12.839844 6.527344 C 13.46875 6.527344 14.359375 6.371094 14.332031 7.027344 C 14.300781 7.625 13.429688 7.460938 12.808594 7.460938 L 10.855469 7.460938 L 10.855469 10.332031 C 11.4375 10.277344 12.121094 10.296875 12.839844 10.296875 C 13.492188 10.296875 14.34375 10.1875 14.332031 10.832031 C 14.316406 11.46875 13.480469 11.296875 12.839844 11.300781 C 12.121094 11.300781 11.496094 11.296875 10.855469 11.300781 L 10.855469 14.136719 L 12.808594 14.136719 C 13.453125 14.136719 14.304688 13.976562 14.332031 14.601562 C 14.355469 15.28125 13.507812 15.136719 12.839844 15.136719 C 12.125 15.136719 11.429688 15.160156 10.855469 15.105469 C 10.761719 16.792969 10.90625 18.074219 11.75 18.941406 Z M 19.625 8.394531 C 20.726562 8.585938 21.40625 9.203125 21.675781 10.230469 C 22.1875 10.203125 22.867188 10.097656 23.066406 10.433594 C 23.210938 10.675781 23.132812 11.382812 23.132812 11.800781 C 23.132812 13.214844 23.210938 14.769531 23.132812 16.105469 C 22.996094 18.359375 21.976562 20.035156 20.648438 21.375 C 19.363281 22.675781 17.535156 23.617188 15.289062 23.710938 L 15.289062 27.785156 C 15.910156 27.84375 16.410156 27.816406 17.140625 27.816406 C 17.5 27.816406 18.617188 27.652344 18.597656 28.25 C 18.582031 28.792969 17.535156 28.652344 16.910156 28.652344 C 15.578125 28.652344 14.078125 28.691406 12.773438 28.652344 C 12.132812 28.632812 11.167969 28.730469 11.152344 28.21875 C 11.136719 27.640625 12.054688 27.785156 12.609375 27.785156 L 14.496094 27.785156 C 14.5 26.429688 14.476562 25.050781 14.527344 23.746094 C 12.214844 23.675781 10.429688 22.667969 9.070312 21.410156 C 7.695312 20.136719 6.699219 18.367188 6.523438 16.171875 C 6.414062 14.820312 6.519531 13.273438 6.523438 11.765625 C 6.523438 11.375 6.453125 10.617188 6.621094 10.398438 C 6.84375 10.105469 7.484375 10.203125 7.976562 10.230469 C 8.3125 9.28125 8.878906 8.5625 10.027344 8.429688 C 10.171875 6.558594 9.761719 4.785156 10.195312 3.457031 C 10.761719 1.710938 12.460938 0.539062 14.628906 0.386719 C 15.953125 0.292969 17.136719 0.75 17.96875 1.355469 C 18.738281 1.910156 19.511719 2.84375 19.625 3.992188 C 19.757812 5.390625 19.523438 6.792969 19.625 8.394531 ",fillOpacity:1,fillRule:"evenodd"}))),zQ=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:40,zoomAndPan:"magnify",viewBox:"0 0 30 30.000001",height:40,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"656546a4e3"},S.createElement("path",{d:"M 0.484375 1.652344 L 29.515625 1.652344 L 29.515625 27.054688 L 0.484375 27.054688 Z M 0.484375 1.652344 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#656546a4e3)"},S.createElement("path",{fill:"#60e1b7",d:"M 15 27.050781 L 14.691406 26.847656 C 14.65625 26.824219 11.121094 24.4375 7.636719 21.140625 C 5.582031 19.191406 3.9375 17.308594 2.753906 15.542969 C 1.25 13.285156 0.484375 11.191406 0.484375 9.332031 C 0.484375 5.101562 3.972656 1.652344 8.257812 1.652344 C 9.851562 1.652344 11.386719 2.136719 12.699219 3.050781 C 13.652344 3.71875 14.429688 4.566406 15 5.542969 C 15.570312 4.5625 16.347656 3.710938 17.300781 3.050781 C 18.613281 2.136719 20.148438 1.652344 21.742188 1.652344 C 26.027344 1.652344 29.515625 5.101562 29.515625 9.332031 L 29.515625 9.335938 C 29.5 11.183594 28.726562 13.261719 27.214844 15.515625 C 26.03125 17.28125 24.394531 19.160156 22.339844 21.117188 C 18.859375 24.425781 15.34375 26.824219 15.308594 26.847656 Z M 8.257812 2.726562 C 4.570312 2.726562 1.570312 5.691406 1.570312 9.332031 C 1.570312 10.976562 2.273438 12.863281 3.660156 14.941406 C 4.792969 16.636719 6.382812 18.460938 8.378906 20.355469 C 11.207031 23.03125 14.078125 25.101562 15 25.746094 C 15.921875 25.097656 18.773438 23.015625 21.597656 20.332031 C 23.585938 18.433594 25.171875 16.613281 26.3125 14.917969 C 27.699219 12.839844 28.414062 10.964844 28.425781 9.332031 C 28.425781 5.691406 25.421875 2.730469 21.734375 2.730469 C 19 2.730469 16.5 4.441406 15.5 6.988281 L 14.996094 8.28
1489125 L 14.496094 6.988281 C 13.496094 4.441406 10.992188 2.726562 8.257812 2.726562 Z M 8.257812 2.726562 ",fillOpacity:1,fillRule:"nonzero"}))),mm=n=>S.createElement("svg",{width:150,height:150,viewBox:"0 0 112.5 112.49999",id:"svg1",sodipodidocname:"LogoLotl.svg",inkscapeversion:"1.3 (0e150ed6c4, 2023-07-21)",xmlnsinkscape:"http://www.inkscape.org/namespaces/inkscape",xmlnssodipodi:"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd",xmlns:"http://www.w3.org/2000/svg",xmlnssvg:"http://www.w3.org/2000/svg",...n},S.createElement("sodipodinamedview",{id:"namedview1",pagecolor:"#ffffff",bordercolor:"#000000",borderopacity:.25,inkscapeshowpageshadow:2,inkscapepageopacity:0,inkscapepagecheckerboard:0,inkscapedeskcolor:"#d1d1d1","inkscapedocument-units":"pt",inkscapezoom:6.4239386,inkscapecx:68.026802,inkscapecy:73.864342,"inkscapewindow-width":2560,"inkscapewindow-height":1417,"inkscapewindow-x":1912,"inkscapewindow-y":-8,"inkscapewindow-maximized":1,"inkscapecurrent-layer":"svg1"}),S.createElement("defs",{id:"defs1"},S.createElement("filter",{style:{colorinterpolationfilters:"sRGB"},inkscapelabel:"Drop Shadow",id:"filter18",x:-.13129355,y:-.21673211,width:1.2625871,height:1.4337513},S.createElement("feFlood",{result:"flood",in:"SourceGraphic",floodOpacity:1,floodColor:"rgb(142,164,210)",id:"feFlood17"}),S.createElement("feGaussianBlur",{result:"blur",in:"SourceGraphic",stdDeviation:5,id:"feGaussianBlur17"}),S.createElement("feOffset",{result:"offset",in:"blur",dx:0,dy:0,id:"feOffset17"}),S.createElement("feComposite",{result:"comp1",operator:"in",in:"flood",in2:"offset",id:"feComposite17"}),S.createElement("feComposite",{result:"comp2",operator:"over",in:"SourceGraphic",in2:"comp1",id:"feComposite18"}))),S.createElement("rect",{id:"shape0",fill:"none",strokeOpacity:0,stroke:"#000000",strokeWidth:0,strokeLinecap:"square",strokeLinejoin:"bevel",width:112.38,height:112.5,rx:2.1405714,ry:2.1428571,style:{display:"none",fill:"#2e2726",fillopacity:1,stroke:"#241b1b",strokeOpacity:0},x:.1200004,y:0}),S.createElement("path",{id:"path1",fill:"#aac7fe",fillRule:"evenodd",stroke:"#aac7fe",strokeWidth:.24,strokeLinecap:"square",strokeLinejoin:"bevel",d:"m 78.103149,70.944084 c 0,-2.6116 -1.8276,-4.7287 -4.0821,-4.7287 -2.2545,0 -4.0821,2.1171 -4.0821,4.7287 0,2.6117 1.767,4.864 4.0215,4.864 2.2545,0 4.1427,-2.2523 4.1427,-4.864 m -43.7558,0.1628 c 0,-2.6117 1.8276,-4.7288 4.0821,-4.7288 2.2545,0 4.0821,2.1171 4.0821,4.7288 0,2.6116 -1.841,4.6889 -4.0955,4.6889 -2.173012,0.723032 -4.222277,-0.483033 -13.9583,-1.5274 4.313,5.6181 17.2068,9.8974 31.8523,9.8974 14.6455,0 27.5644,-4.267 31.8774,-9.8852 5.7455,0 8.8706,-3.3486 11.7321,-8.1814 0.385101,-1.0556 2.259501,-2.7797 2.541401,-4.6389 -1.0295,-0.2995 -2.715101,0.2963 -3.621401,0.6789 -1.7957,0.8276 -2.0831,0.8326 -3.84,1.32 -0.9996,0.4794 -3.4624,0.4368 -4.32,0 1.2,-0.5904 1.7002,-0.844 2.16,-1.2 1.5782,-1.2216 2.099,-2.163 3.0109,-3.9598 2.0597,-4.0583 3.8574,-8.6361 3.1793,-13.2176 -0.2043,-1.3799 -0.3806,-3.7758 -1.2702,-4.9026 -1.1792,0.4663 -1.893,3.0211 -2.64,3.84 -2.0253,3.1209 -2.4037,4.0211 -5.88,6.72 -0.5487,0.527 -2.2435,1.9011 -3.7015,1.6226 0.8586,-0.5822 2.266,-2.4097 3.258,-4.0584 2.2573,-4.7202 2.8362,-10.05957 1.3916,-15.21008 -0.4194,-1.49536 -0.5209,-2.10044 -1.4281,-3.35408 -0.3625,-0.500945 -1.1864,-1.088663 -1.7631,-1.42104 -0.4019,1.39428 -0.7189,3.97546 -1.1169,5.02104 -0.7307,2.67029 -1.4046,4.32471 -2.9502,6.56216 -1.0325,1.4946 -2.733,3.0134 -4.1631,4.1335 -0.3908,0.3061 -2.1946,1.6735 -2.7946,2.4556 -5.3425,-3.7665 -12.304,-6.1503 -19.6616,-6.0647 -7.3577,-0.0856 -14.3192,2.317 -19.6617,6.0835 -0.6,-0.7821 -2.4038,-2.1495 -2.7946,-2.4556 -1.4301,-1.1201 -3.1306,-2.6389 -4.163,-4.1334 -1.5456,-2.23749 -2.2196,-3.89192 -2.9503,-6.5622 -0.398,-1.04559 -0.715,-3.62677 -1.1168,-5.021045 -0.5768,0.332377 -1.4007,0.920095 -1.7632,1.421045 -0.9072,1.25364 -1.0087,1.85871 -1.4281,3.35407 -1.4446,5.15051 -0.8657,10.48993 1.3917,15.21013 0.992,1.6486 2.3993,3.4762 3.2579,4.0583 -1.458,0.2786 -3.1528,-1.0955 -3.7015,-1.6225 -3.4763,-2.699 -3.8547,-3.5991 -5.88,-6.72 -0.747,-0.8189 -1.4607,-3.3737 -2.64,-3.84 -0.8896,1.1268 -1.0659,3.5227 -1.2702,4.9025 -0.6781,4.5815 1.1196,9.1593 3.1793,13.2177 0.9119,1.7967 1.4327,2.7382 3.0109,3.9598 0.4598,0.3559 0.96,0.6096 2.16,1.2 -0.8576,0.43
148968 -3.3204,0.4794 -4.32,0 -1.7569,-0.4875 -2.0443,-0.4925 -3.84,-1.32 -0.9063,-0.3827 -2.5919,-0.9785 -3.6214,-0.6789 0.2819,1.8592 2.1563,3.5832 2.5414,4.6389 2.8615,4.8328 5.9866,8.1814 11.7321,8.1814 5.4909,0.6364 11.489824,1.645429 13.9835,1.4963 -2.2545,0 -4.0687,-2.0773 -4.0687,-4.6889",sodipodinodetypes:"cccccccccccccccccccccccccccccccccccccccccccccccccccccccc",style:{display:"inline",fill:"#ffffff",fillopacity:1,stroke:"#ffffff",strokeOpacity:1,filter:"url(#filter18)"}}),S.createElement("path",{id:"path2",fill:"#aac7fe",fillRule:"evenodd",stroke:"#aac7fe",strokeWidth:.24,strokeLinecap:"square",strokeLinejoin:"bevel",d:"m 78.103149,70.944084 c 0,-2.6116 -1.8276,-4.7287 -4.0821,-4.7287 -2.2545,0 -4.0821,2.1171 -4.0821,4.7287 0,2.6117 1.767,4.864 4.0215,4.864 2.2545,0 4.1427,-2.2523 4.1427,-4.864 m -43.7558,0.1628 c 0,-2.6117 1.8276,-4.7288 4.0821,-4.7288 2.2545,0 4.0821,2.1171 4.0821,4.7288 0,2.6116 -1.841,4.6889 -4.0955,4.6889 -2.173012,0.723032 -4.222277,-0.483033 -13.9583,-1.5274 4.313,5.6181 17.2068,9.8974 31.8523,9.8974 14.6455,0 27.5644,-4.267 31.8774,-9.8852 5.7455,0 8.8706,-3.3486 11.7321,-8.1814 0.385101,-1.0556 2.259501,-2.7797 2.541401,-4.6389 -1.0295,-0.2995 -2.715101,0.2963 -3.621401,0.6789 -1.7957,0.8276 -2.0831,0.8326 -3.84,1.32 -0.9996,0.4794 -3.4624,0.4368 -4.32,0 1.2,-0.5904 1.7002,-0.844 2.16,-1.2 1.5782,-1.2216 2.099,-2.163 3.0109,-3.9598 2.0597,-4.0583 3.8574,-8.6361 3.1793,-13.2176 -0.2043,-1.3799 -0.3806,-3.7758 -1.2702,-4.9026 -1.1792,0.4663 -1.893,3.0211 -2.64,3.84 -2.0253,3.1209 -2.4037,4.0211 -5.88,6.72 -0.5487,0.527 -2.2435,1.9011 -3.7015,1.6226 0.8586,-0.5822 2.266,-2.4097 3.258,-4.0584 2.2573,-4.7202 2.8362,-10.05957 1.3916,-15.21008 -0.4194,-1.49536 -0.5209,-2.10044 -1.4281,-3.35408 -0.3625,-0.500945 -1.1864,-1.088663 -1.7631,-1.42104 -0.4019,1.39428 -0.7189,3.97546 -1.1169,5.02104 -0.7307,2.67029 -1.4046,4.32471 -2.9502,6.56216 -1.0325,1.4946 -2.733,3.0134 -4.1631,4.1335 -0.3908,0.3061 -2.1946,1.6735 -2.7946,2.4556 -5.3425,-3.7665 -12.304,-6.1503 -19.6616,-6.0647 -7.3577,-0.0856 -14.3192,2.317 -19.6617,6.0835 -0.6,-0.7821 -2.4038,-2.1495 -2.7946,-2.4556 -1.4301,-1.1201 -3.1306,-2.6389 -4.163,-4.1334 -1.5456,-2.23749 -2.2196,-3.89192 -2.9503,-6.5622 -0.398,-1.04559 -0.715,-3.62677 -1.1168,-5.021045 -0.5768,0.332377 -1.4007,0.920095 -1.7632,1.421045 -0.9072,1.25364 -1.0087,1.85871 -1.4281,3.35407 -1.4446,5.15051 -0.8657,10.48993 1.3917,15.21013 0.992,1.6486 2.3993,3.4762 3.2579,4.0583 -1.458,0.2786 -3.1528,-1.0955 -3.7015,-1.6225 -3.4763,-2.699 -3.8547,-3.5991 -5.88,-6.72 -0.747,-0.8189 -1.4607,-3.3737 -2.64,-3.84 -0.8896,1.1268 -1.0659,3.5227 -1.2702,4.9025 -0.6781,4.5815 1.1196,9.1593 3.1793,13.2177 0.9119,1.7967 1.4327,2.7382 3.0109,3.9598 0.4598,0.3559 0.96,0.6096 2.16,1.2 -0.8576,0.4368 -3.3204,0.4794 -4.32,0 -1.7569,-0.4875 -2.0443,-0.4925 -3.84,-1.32 -0.9063,-0.3827 -2.5919,-0.9785 -3.6214,-0.6789 0.2819,1.8592 2.1563,3.5832 2.5414,4.6389 2.8615,4.8328 5.9866,8.1814 11.7321,8.1814 5.4909,0.6364 11.489824,1.645429 13.9835,1.4963 -2.2545,0 -4.0687,-2.0773 -4.0687,-4.6889",sodipodinodetypes:"cccccccccccccccccccccccccccccccccccccccccccccccccccccccc",style:{display:"none",fill:"#ffffff",fillopacity:1,stroke:"#ffffff",strokeOpacity:1}})),GQ=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:40,zoomAndPan:"magnify",viewBox:"0 0 30 30.000001",height:40,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"498059bbed"},S.createElement("path",{d:"M 4.71875 4.03125 L 15.105469 4.03125 L 15.105469 14.414062 L 4.71875 14.414062 Z M 4.71875 4.03125 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"5964080ebc"},S.createElement("path",{d:"M 9.910156 4.03125 C 7.042969 4.03125 4.71875 6.355469 4.71875 9.222656 C 4.71875 12.089844 7.042969 14.414062 9.910156 14.414062 C 12.78125 14.414062 15.105469 12.089844 15.105469 9.222656 C 15.105469 6.355469 12.78125 4.03125 9.910156 4.03125 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"4f5335d4ae"},S.createElement("path",{d:"M 1.574219 0.871094 L 18.265625 0.871094 L 18.265625 17.566406 L 1.574219 17.566406 Z M 1.574219 0.871094 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"6626ad8622"},S.createElement("path",{d:"M 12.308594 11.976562 L 27.402344 11.976562 L 27.402344 27.074219 L 12.308594 27.074219 Z M 12.308594 11.976562 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"6295c3d750"},S.createElement("path",{d:"M 19.855469 11.976562 C 15.6875 11.976562 12.308594 15.355469 12.308594 19.523438 C 12.308594 23.691406 15.6875 27.074219 19.855469 27.074219 C 24.023438 27.074219 27.402344 23.691406 27.402344 19.523438 C 27.402344 15.355469 24.023438 11.976562 19.855469 11.976562 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"9c3c76c1ec"},S.createElement("path",{d:"M 6.5 5.808594 L 13.324219 5.808594 L 13.324219 12.632812 L 6.5 12.632812 Z M 6.5 5.808594 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"ffc879504c"},S.createElement("path",{d:"M 9.910156 5.808594 C 8.027344 5.808594 6.5 7.335938 6.5 9.222656 C 6.5 11.105469 8.027344 12.632812 9.910156 12.632812 C 11.796875 12.632812 13.324219 11.105469 13.324219 9.222656 C 13.324219 7.335938 11.796875 5.808594 9.910156 5.808594 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"8347852c94"},S.createElement("path",{d:"M 10.929688 10.742188 L 28.347656 10.742188 L 28.347656 28.160156 L 10.929688 28.160156 Z M 10.929688 10.742188 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#498059bbed)"},S.createElement("g",{clipPath:"url(#5964080ebc)"},S.createElement("path",{fill:"#ffffff",d:"M 4.71875 4.03125 L 15.105469 4.03125 L 15.105469 14.414062 L 4.71875 14.414062 Z M 4.71875 4.03125 ",fillOpacity:1,fillRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#4f5335d4ae)"},S.createElement("path",{fill:"#8ea4d2",d:"M 10.226562 0.882812 C 11.238281 0.921875 12.210938 1.148438 13.105469 1.511719 L 13.28125 1.96875 L 12.902344 2.785156 L 13.066406 3.253906 C 13.558594 3.515625 14.027344 3.832031 14.429688 4.210938 L 14.921875 4.210938 L 15.566406 3.566406 L 16.042969 3.566406 C 16.714844 4.285156 17.242188 5.128906 17.632812 6.050781 L 17.433594 6.488281 L 16.585938 6.804688 L 16.371094 7.246094 C 16.535156 7.761719 16.636719 8.316406 16.664062 8.882812 L 17.015625 9.222656 L 17.925781 9.222656 L 18.265625 9.5625 C 18.226562 10.570312 18 11.542969 17.632812 12.4375 L 17.179688 12.601562 L 16.359375 12.222656 L 15.894531 12.386719 C 15.628906 12.878906 15.3125 13.34375 14.933594 13.746094 L 14.945312 14.238281 L 15.589844 14.882812 L 15.589844 15.359375 C 14.871094 16.027344 14.027344 16.554688 13.105469 16.933594 L 12.664062 16.734375 L 12.347656 15.890625 L 11.90625 15.675781 C 11.375 15.839844 10.835938 15.9375 10.265625 15.964844 L 9.925781 16.316406 L 9.925781 17.222656 L 9.585938 17.566406 C 8.574219 17.527344 7.605469 17.300781 6.707031 16.921875 L 6.542969 16.46875 L 6.921875 15.648438 L 6.757812 15.183594 C 6.265625 14.917969 5.800781 14.605469 5.398438 14.226562 L 4.90625 14.238281 L 4.261719 14.882812 L 3.78125 14.882812 C 3.113281 14.164062 2.582031 13.320312 2.203125 12.398438 L 2.40625 11.957031 L 3.25 11.644531 L 3.464844 11.203125 C 3.300781 10.683594 3.203125 10.132812 3.175781 9.5625 L 2.824219 9.222656 L 1.914062 9.222656 L 1.574219 8.882812 C 1.613281 7.875 1.839844 6.90625 2.203125 6.011719 L 2.660156 5.847656 L 3.480469 6.226562 L 3.945312 6.0625 C 4.210938 5.570312 4.527344 5.105469 4.90625 4.699219 L 4.90625 4.210938 L 4.261719 3.566406 L 4.261719 3.089844 C 4.980469 2.421875 5.824219 1.890625 6.746094 1.5 L 7.1875 1.703125 L 7.503906 2.546875 L 7.945312 2.761719 C 8.476562 2.597656 9.015625 2.496094 9.585938 2.472656 L 9.925781 2.117188 L 9.925781 1.210938 L 10.265625 0.871094 Z M 9.886719 4.449219 C 12.523438 4.449219 14.667969 6.589844 14.667969 9.222656 C 14.667969 11.855469 12.523438 14 9.886719 14 C 7.25 14 5.105469 11.855469 5.105469 9.222656 C 5.105469 6.589844 7.25 4.449219 9.886719 4.449219 Z M 9.886719 4.449219 ",fillOpacity:1,fillRule:"evenodd"})),S.createElement("g",{clipPath:"url(#6626ad8622)"},S.createElement("g",{clipPath:"url(#6295c3d750)"},S.createElement("path",{fill:"#ffffff",d:"M 12.308594 11.976562 L 27.402344 11.976562 L 27.402344 27.074219 L 12.308594 27.074219 Z M 12.308594 11.976562 ",fillOpacity:1,fillRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#9c3c76c1ec)"},S.createElement("g",{clipPath:"url(#ffc879504c)"},S.createElement("path",{fill:"#8ea4d2",d:"M 6.5 5.808594 L 13.324219 5.808594 L 13.324219 12.632812 L 6.5 12.632812 Z M 6.5 5.808594 ",fillOpacity:1,fillRule:"nonzero"}))),S.createElement("path",{fill:"#60e1b7",d:"M 22.695312 22.414062 L 16.582031 22.414062 C 16.503906 22.414062 16.433594 22.386719 16.378906 22.328125 C 16.320312 22.273438 16.292969 22.203125 16.292969 22.125 C 16.292969 22.046875 16.320312 21.980469 16.378906 21.921875 C 16.433594 21.867188 16.503906 21.839844 16.582031 21.839844 L 22.695312 21.839844 C 22.773438 21.839844 22.839844 21.867188 22.894531 21.925781 C 22.949219 21.980469 22.976562 22.046875 22.976562 22.125 C 22.976562 22.203125 22.949219 22.269531 22.894531 22.328125 C 22.839844 22.382812 22.773438 22.410156 22.695312 22.414062 Z M 22.695312 22.414062 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 22.695312 19.738281 L 16.582031 19.738281 C 16.503906 19.738281 16.433594 19.710938 16.378906 19.652344 C 16.324219 19.597656 16.296875 19.53125 16.296875 19.453125 C 16.296875 19.371094 16.324219 19.304688 16.378906 19.25 C 16.433594 19.195312 16.503906 19.164062 16.582031 19.164062 L 22.695312 19.164062 C 22.773438 19.167969 22.839844 19.195312 22.894531 19.25 C 22.949219 19.304688 22.976562 19.375 22.976562 19.453125 C 22.976562 19.53125 22.949219 19.597656 22.894531 19.652344 C 22.839844 19.707031 22.773438 19.734375 22.695312 19.738281 Z M 22.695312 19.738281 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 22.695312 17.066406 L 16.582031 17.066406 C 16.503906 17.066406 16.433594 17.035156 16.378906 16.980469 C 16.320312 16.925781 16.292969 16.855469 16.292969 16.777344 C 16.292969 16.699219 16.320312 16.628906 16.378906 16.574219 C 16.433594 16.519531 16.503906 16.492188 16.582031 16.492188 L 22.695312 16.492188 C 22.773438 16.492188 22.839844 16.519531 22.894531 16.578125 C 22.949219 16.632812 22.976562 16.699219 22.976562 16.777344 C 22.976562 16.855469 22.949219 16.921875 22.894531 16.980469 C 22.839844 17.035156 22.773438 17.0625 22.695312 17.066406 Z M 22.695312 17.066406 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("g",{clipPath:"url(#8347852c94)"},S.createElement("path",{fill:"#60e1b7",d:"M 19.636719 10.742188 C 19.066406 10.742188 18.5 10.796875 17.9375 10.910156 C 17.378906 11.019531 16.832031 11.
14891875 16.304688 11.40625 C 15.777344 11.625 15.273438 11.890625 14.800781 12.210938 C 14.324219 12.527344 13.882812 12.886719 13.480469 13.292969 C 13.074219 13.699219 12.714844 14.136719 12.394531 14.613281 C 12.078125 15.089844 11.808594 15.589844 11.589844 16.117188 C 11.371094 16.648438 11.207031 17.191406 11.09375 17.753906 C 10.984375 18.3125 10.929688 18.878906 10.929688 19.453125 C 10.929688 20.023438 10.984375 20.589844 11.09375 21.152344 C 11.207031 21.710938 11.371094 22.257812 11.589844 22.785156 C 11.808594 23.3125 12.078125 23.816406 12.394531 24.289062 C 12.714844 24.765625 13.074219 25.207031 13.480469 25.609375 C 13.882812 26.015625 14.324219 26.375 14.800781 26.695312 C 15.273438 27.011719 15.777344 27.28125 16.304688 27.5 C 16.832031 27.71875 17.378906 27.882812 17.9375 27.992188 C 18.5 28.105469 19.066406 28.160156 19.636719 28.160156 C 20.210938 28.160156 20.777344 28.105469 21.335938 27.992188 C 21.898438 27.882812 22.441406 27.71875 22.972656 27.5 C 23.5 27.28125 24 27.011719 24.476562 26.695312 C 24.953125 26.375 25.390625 26.015625 25.796875 25.609375 C 26.199219 25.207031 26.5625 24.765625 26.878906 24.289062 C 27.199219 23.816406 27.464844 23.3125 27.683594 22.785156 C 27.902344 22.257812 28.070312 21.710938 28.179688 21.152344 C 28.292969 20.589844 28.347656 20.023438 28.347656 19.453125 C 28.347656 18.878906 28.292969 18.3125 28.179688 17.753906 C 28.070312 17.191406 27.902344 16.648438 27.683594 16.117188 C 27.464844 15.589844 27.195312 15.089844 26.878906 14.613281 C 26.5625 14.136719 26.199219 13.699219 25.796875 13.292969 C 25.390625 12.890625 24.953125 12.527344 24.476562 12.210938 C 24 11.890625 23.5 11.625 22.972656 11.40625 C 22.441406 11.1875 21.898438 11.019531 21.335938 10.910156 C 20.777344 10.796875 20.210938 10.742188 19.636719 10.742188 Z M 25.082031 23.464844 C 25.082031 23.652344 25.042969 23.835938 24.972656 24.011719 C 24.898438 24.1875 24.796875 24.339844 24.660156 24.476562 C 24.527344 24.609375 24.371094 24.714844 24.199219 24.785156 C 24.023438 24.859375 23.839844 24.894531 23.648438 24.894531 L 15.625 24.894531 C 15.4375 24.894531 15.253906 24.859375 15.078125 24.785156 C 14.902344 24.714844 14.75 24.609375 14.613281 24.476562 C 14.480469 24.339844 14.375 24.1875 14.304688 24.011719 C 14.230469 23.835938 14.195312 23.652344 14.195312 23.464844 L 14.195312 15.441406 C 14.195312 15.25 14.230469 15.066406 14.304688 14.890625 C 14.375 14.71875 14.480469 14.5625 14.613281 14.429688 C 14.75 14.292969 14.902344 14.191406 15.078125 14.117188 C 15.253906 14.042969 15.4375 14.007812 15.625 14.007812 L 23.648438 14.007812 C 23.839844 14.007812 24.023438 14.042969 24.199219 14.117188 C 24.371094 14.191406 24.527344 14.292969 24.660156 14.429688 C 24.796875 14.5625 24.898438 14.71875 24.972656 14.890625 C 25.042969 15.066406 25.082031 15.25 25.082031 15.441406 Z M 25.082031 23.464844 ",fillOpacity:1,fillRule:"nonzero"}))),HQ=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:40,zoomAndPan:"magnify",viewBox:"0 0 30 30.000001",height:40,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"e7dad9c00c"},S.createElement("path",{d:"M 3.378906 4 L 26.605469 4 L 26.605469 26 L 3.378906 26 Z M 3.378906 4 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"23e497680b"},S.createElement("path",{d:"M 10 24 L 20 24 L 20 29.03125 L 10 29.03125 Z M 10 24 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#e7dad9c00c)"},S.createElement("path",{fill:"#60e1b7",d:"M 26.136719 25.058594 L 3.847656 25.058594 C 3.769531 25.058594 3.695312 25.042969 3.628906 25.003906 C 3.558594 24.964844 3.503906 24.910156 3.464844 24.84375 C 3.425781 24.777344 3.402344 24.703125 3.402344 24.625 C 3.398438 24.546875 3.417969 24.472656 3.453125 24.402344 L 5.027344 21.433594 C 5.886719 19.8125 6.320312 18.082031 6.320312 16.246094 L 6.320312 13.027344 C 6.320312 12.457031 6.375 11.890625 6.488281 11.332031 C 6.597656 10.773438 6.761719 10.230469 6.980469 9.707031 C 7.199219 9.179688 7.464844 8.679688 7.78125 8.207031 C 8.097656 7.734375 8.457031 7.292969 8.859375 6.890625 C 9.261719 6.488281 9.699219 6.128906 10.175781 5.8125 C 10.648438 5.496094 11.148438 5.230469 11.671875 5.011719 C 12.199219 4.792969 12.742188 4.628906 13.300781 4.515625 C 13.859375 4.40625 14.421875 4.351562 14.992188 4.351562 C 15.5625 4.351562 16.125 4.40625 16.683594 4.515625 C 17.242188 4.628906 17.785156 4.792969 18.308594 5.011719 C 18.835938 5.230469 19.335938 5.496094 19.808594 5.8125 C 20.28125 6.128906 20.71875 6.488281 21.121094 6.890625 C 21.527344 7.292969 21.886719 7.734375 22.203125 8.207031 C 22.519531 8.679688 22.785156 9.179688 23.003906 9.707031 C 23.21875 10.230469 23.386719 10.773438 23.496094 11.332031 C 23.605469 11.890625 23.664
1489062 12.457031 23.664062 13.027344 L 23.664062 16.246094 C 23.664062 18.082031 24.09375 19.8125 24.953125 21.433594 L 26.53125 24.402344 C 26.566406 24.472656 26.585938 24.546875 26.582031 24.625 C 26.582031 24.703125 26.558594 24.777344 26.519531 24.84375 C 26.476562 24.914062 26.421875 24.964844 26.355469 25.003906 C 26.285156 25.042969 26.214844 25.0625 26.136719 25.0625 Z M 4.59375 24.164062 L 25.390625 24.164062 L 24.164062 21.851562 C 23.234375 20.097656 22.769531 18.230469 22.769531 16.246094 L 22.769531 13.027344 C 22.769531 8.734375 19.28125 5.246094 14.992188 5.246094 C 10.703125 5.246094 7.214844 8.734375 7.214844 13.027344 L 7.214844 16.246094 C 7.214844 18.230469 6.746094 20.101562 5.820312 21.855469 Z M 4.59375 24.164062 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("path",{fill:"#60e1b7",d:"M 17.789062 5.734375 C 17.667969 5.734375 17.5625 5.691406 17.472656 5.601562 C 17.386719 5.515625 17.34375 5.410156 17.34375 5.285156 L 17.34375 3.410156 C 17.34375 3.097656 17.28125 2.796875 17.164062 2.511719 C 17.042969 2.222656 16.875 1.96875 16.652344 1.746094 C 16.433594 1.527344 16.179688 1.355469 15.890625 1.238281 C 15.601562 1.117188 15.304688 1.058594 14.992188 1.058594 C 14.679688 1.058594 14.378906 1.117188 14.09375 1.238281 C 13.804688 1.355469 13.550781 1.527344 13.328125 1.746094 C 13.109375 1.9
14896875 12.9375 2.222656 12.820312 2.511719 C 12.699219 2.796875 12.640625 3.097656 12.640625 3.410156 L 12.640625 5.285156 C 12.640625 5.410156 12.597656 5.515625 12.511719 5.601562 C 12.421875 5.691406 12.316406 5.734375 12.195312 5.734375 C 12.070312 5.734375 11.964844 5.691406 11.878906 5.601562 C 11.789062 5.515625 11.746094 5.410156 11.746094 5.285156 L 11.746094 3.410156 C 11.746094 2.980469 11.828125 2.566406 11.992188 2.167969 C 12.15625 1.769531 12.390625 1.417969 12.695312 1.113281 C 13 0.808594 13.351562 0.574219 13.75 0.410156 C 14.148438 0.246094 14.5625 0.164062 14.992188 0.164062 C 15.421875 0.164062 15.835938 0.246094 16.234375 0.410156 C 16.632812 0.574219 16.980469 0.808594 17.285156 1.113281 C 17.589844 1.417969 17.824219 1.769531 17.988281 2.167969 C 18.15625 2.566406 18.238281 2.980469 18.238281 3.410156 L 18.238281 5.285156 C 18.238281 5.410156 18.191406 5.515625 18.105469 5.601562 C 18.019531 5.691406 17.914062 5.734375 17.789062 5.734375 Z M 17.789062 5.734375 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("g",{clipPath:"url(#23e497680b)"},S.createElement("path",{fill:"#60e1b7",d:"M 14.992188 29.027344 C 12.558594 29.027344 10.578125 27.046875 10.578125 24.613281 C 10.578125 24.488281 10.621094 24.382812 10.710938 24.296875 C 10.796875 24.210938 10.902344 24.164062 11.027344 24.164062 C 11.148438 24.164062 11.253906 24.210938 11.34375 24.296875 C 11.429688 24.382812 11.472656 24.488281 11.472656 24.613281 C 11.472656 25.078125 11.5625 25.527344 11.742188 25.960938 C 11.917969 26.390625 12.171875 26.773438 12.503906 27.101562 C 12.832031 27.433594 13.214844 27.6875 13.644531 27.863281 C 14.078125 28.042969 14.523438 28.132812 14.992188 28.132812 C 15.457031 28.132812 15.90625 28.042969 16.339844 27.863281 C 16.769531 27.6875 17.148438 27.433594 17.480469 27.101562 C 17.808594 26.773438 18.0625 26.390625 18.242188 25.960938 C 18.421875 25.527344 18.511719 25.078125 18.511719 24.613281 C 18.511719 24.488281 18.554688 24.382812 18.640625 24.296875 C 18.726562 24.210938 18.832031 24.164062 18.957031 24.164062 C 19.082031 24.164062 19.1875 24.210938 19.273438 24.296875 C 19.359375 24.382812 19.40625 24.488281 19.40625 24.613281 C 19.40625 27.046875 17.425781 29.027344 14.992188 29.027344 Z M 14.992188 29.027344 ",fillOpacity:1,fillRule:"nonzero"}))),T1=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:40,zoomAndPan:"magnify",viewBox:"0 0 30 30.000001",height:40,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("filter",{x:"0%",y:"0%",width:"100%",height:"100%",id:"52686e98c1"},S.createElement("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0",colorInterpolationFilters:"sRGB"})),S.createElement("clipPath",{id:"82ec2cd88d"},S.createElement("path",{d:"M 9 0 L 24 0 L 24 29.03125 L 9 29.03125 Z M 9 0 ",clipRule:"nonzero"})),S.createElement("mask",{id:"42507e6c70"},S.createElement("g",{filter:"url(#52686e98c1)"},S.createElement("rect",{x:-3,width:36,fill:"#000000",y:-3,height:36.000001,fillOpacity:.898}))),S.createElement("clipPath",{id:"011a732977"},S.createElement("path",{d:"M 0.972656 0 L 14.929688 0 L 14.929688 29.027344 L 0.972656 29.027344 Z M 0.972656 0 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"5b303db43e"},S.createElement("path",{d:"M 14.089844 9.679688 C 14.597656 11.160156 14.929688 12.859375 14.929688 14.519531 C 14.929688 16.179688 14.644531 17.777344 14.136719 19.25 C 14.121094 19.28125 14.121094 19.3125 14.105469 19.34375 C 12.082031 24.875 6.734375 28.949219 0.972656 29.027344 L 0.972656 -0.00390625 C 6.765625 0.0742188 12.113281 4.085938 14.089844 9.679688 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"5e4f763fc2"},S.createElement("rect",{x:0,width:15,y:0,height:30})),S.createElement("mask",{id:"d59f5a9615"},S.createElement("g",{filter:"url(#52686e98c1)"},S.createElement("rect",{x:-3,width:36,fill:"#000000",y:-3,height:36.000001,fillOpacity:.8}))),S.createElement("clipPath",{id:7458237853},S.createElement("path",{d:"M 0.300781 1 L 9.738281 1 L 9.738281 18 L 0.300781 18 Z M 0.300781 1 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"33f63e8be9"},S.createElement("rect",{x:0,width:11,y:0,height:19}))),S.createElement("g",{clipPath:"url(#82ec2cd88d)"},S.createElement("g",{mask:"url(#42507e6c70)"},S.createElement("g",{transform:"matrix(1, 0, 0, 1, 9, 0.000000000000005692)"},S.createElement("g",{clipPath:"url(#5e4f763fc2)"},S.createElement("g",{clipPath:"url(#011a732977)"},S.createElement("g",{clipPath:"url(#5b303db43e)"},S.createElement("path",{fill:"#3e846e",d:"M 14.929688 -0.00390625 L 14.929688 29.027344 L 0.972656 29.027344 L 0.972656 -0.00390625 Z M 14.929688 -0.00390625 ",fillOpacity:1,fillRule:"nonzero"}))))))),S.createElement("g",{mask:"url(#d59f5a9615)"},S.createElement("g",{transform:"matrix(1, 0, 0, 1, 12, 5)"},S.createElement("g",{clipPath:"url(#33f63e8be9)"},S.createElement("g",{clipPath:"url(#7458237853)"},S.createElement("path",{fill:"#bee6d9",d:"M 0.96875 1.144531 C 0.839844 1.023438 0.691406 1.003906 0.535156 1.089844 C 0.375 1.175781 0.3125 1.308594 0.351
1489562 1.480469 L 2.035156 9.484375 L 0.351562 17.484375 C 0.3125 17.660156 0.375 17.789062 0.535156 17.875 C 0.691406 17.960938 0.839844 17.945312 0.96875 17.820312 L 9.652344 9.746094 C 9.730469 9.675781 9.769531 9.585938 9.769531 9.484375 C 9.769531 9.378906 9.730469 9.289062 9.652344 9.21875 Z M 0.96875 1.144531 ",fillOpacity:1,fillRule:"nonzero"})))))),WQ=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:40,zoomAndPan:"magnify",viewBox:"0 0 30 30.000001",height:40,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"55c373b07c"},S.createElement("path",{d:"M 1 0.371094 L 29.515625 0.371094 L 29.515625 28.675781 L 1 28.675781 Z M 1 0.371094 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#55c373b07c)"},S.createElement("path",{fill:"#60e1b7",d:"M 21.636719 13.882812 C 21.519531 13.636719 21.410156 13.382812 21.304688 13.140625 C 22.339844 12.351562 22.628906 11.511719 22.210938 10.578125 C 21.796875 9.644531 20.96875 9.316406 19.609375 9.566406 C 19.285156 8.878906 18.957031 8.1875 18.628906 7.492188 C 17.988281 6.128906 17.359375 4.761719 16.703125 3.40625 C 16.554688 3.089844 16.320312 2.855469 16.003906 2.707031 C 15.6875 2.5625 15.359375 2.53125 15.019531 2.617188 C 14.679688 2.707031 14.410156 2.894531 14.203125 3.175781 C 14 3.460938 13.910156 3.777344 13.933594 4.125 C 14.148438 5.53125 13.699219 6.761719 12.996094 7.921875 C 11.910156 9.679688 10.464844 11.058594 8.660156 12.058594 C 7.050781 12.972656 5.351562 13.742188 3.683594 14.550781 C 1.566406 15.566406 0.609375 17.757812 1.339844 19.886719 C 1.519531 20.398438 1.785156 20.855469 2.140625 21.261719 C 2.496094 21.671875 2.910156 21.996094 3.390625 22.246094 C 3.871094 22.496094 4.378906 22.644531 4.914062 22.699219 C 5.453125 22.753906 5.980469 22.707031 6.5 22.5625 C 6.773438 22.476562 6.90625 22.570312 7.046875 22.796875 C 7.449219 23.453125 7.878906 24.09375 8.296875 24.742188 C 8.949219 25.761719 9.601562 26.78125 10.261719 27.792969 C 10.441406 28.089844 10.6875 28.308594 11.003906 28.445312 C 11.324219 28.582031 11.652344 28.613281 11.988281 28.539062 C 12.316406 28.507812 12.601562 28.375 12.839844 28.148438 C 13.082031 27.921875 13.226562 27.648438 13.28125 27.320312 C 13.339844 26.851562 13.273438 26.398438 13.085938 25.964844 C 12.546875 24.695312 11.929688 23.460938 11.34375 22.21875 C 12.871094 21.363281 13.015625 21.113281 12.699219 19.9375 C 12.753906 19.898438 12.808594 19.863281 12.871094 19.839844 C 14.648438 19.257812 16.46875 19.078125 18.324219 19.296875 C 19.628906 19.417969 20.757812 19.933594 21.707031 20.832031 C 22.34375 21.476562 23.101562 21.585938 23.734375 21.136719 C 24.351562 20.699219 24.496094 19.972656 24.117188 19.164062 C 23.289062 17.402344 22.464844 15.644531 21.636719 13.882812 Z M 21.257812 10.960938 C 21.480469 11.402344 21.359375 11.773438 20.828125 12.15625 L 20.082031 10.574219 C 20.679688 10.410156 21.046875 10.546875 21.257812 10.960938 Z M 6.007812 21.597656 C 5.640625 21.691406 5.273438 21.714844 4.898438 21.671875 C 4.523438 21.628906 4.167969 21.519531 3.832031 21.347656 C 3.5 21.171875 3.207031 20.945312 2.953125 20.664062 C 2.703125 20.382812 2.511719 20.066406 2.375 19.710938 C 2.226562 19.367188 2.140625 19.007812 2.121094 18.628906 C 2.101562 18.253906 2.144531 17.886719 2.257812 17.527344 C 2.367188 17.167969 2.539062 16.835938 2.765625 16.539062 C 2.996094 16.238281 3.269531 15.992188 3.589844 15.789062 C 4.5 15.246094 5.492188 14.839844 6.5 14.347656 C 7.429688 16.324219 8.335938 18.246094 9.273438 20.242188 C 8.210938 20.757812 7.121094 21.207031 6.007812 21.597656 Z M 12.175781 26.414062 C 12.414062 26.917969 12.355469 27.296875 11.984375 27.460938 C 11.554688 27.652344 11.261719 27.457031 11.023438 27.085938 C 9.960938 25.417969 8.886719 23.761719 7.789062 22.058594 L 9.675781 21.164062 C 9.75 21.296875 9.824219 21.40625 9.878906 21.53125 C 10.648438 23.15625 11.414062 24.785156 12.175781 26.414062 Z M 10.886719 21.207031 C 10.816406 21.058594 10.738281 20.914062 10.632812 20.703125 L 11.613281 20.265625 C 11.90625 20.832031 11.835938 20.914062 10.886719 21.207031 Z M 23.285156 20.117188 C 23.253906 20.195312 23.195312 20.257812 23.121094 20.296875 C 22.902344 20.246094 22.621094 20.265625 22.484375 20.132812 C 21.433594 19.132812 20.195312 18.535156 18.757812 18.335938 C 16.34375 17.933594 14.015625 18.339844 11.738281 19.132812 C 11.230469 19.3125 10.734375 19.523438 10.179688 19.742188 C 9.253906 17.777344 8.355469 15.867188 7.507812 14.0625 C 8.8125 13.152344 10.132812 12.347656 11.320312 11.375 C 13.03125 9.976562 14.367188 8.269531 14.859375 6.046875 C 14.960938 5.496094 15.003906 4.9375 14.988281 4.378906 C 14.988281 4.070312 14.882812 3.746094 
148915.257812 3.625 C 15.679688 3.488281 15.777344 3.859375 15.910156 4.136719 C 17.28125 7.054688 18.652344 9.972656 20.023438 12.886719 C 21.042969 15.054688 22.0625 17.226562 23.085938 19.394531 C 23.121094 19.476562 23.148438 19.527344 23.191406 19.632812 C 23.328125 19.984375 23.296875 20.082031 23.285156 20.117188 Z M 19.625 2.804688 C 19.527344 2.589844 19.542969 2.382812 19.679688 2.1875 C 20.023438 1.675781 20.371094 1.164062 20.722656 0.664062 C 20.855469 0.464844 21.039062 0.367188 21.277344 0.371094 C 21.523438 0.378906 21.707031 0.488281 21.832031 0.703125 L 21.875 0.765625 L 21.855469 0.835938 C 21.851562 0.878906 21.84375 0.917969 21.839844 0.960938 C 21.835938 1.085938 21.800781 1.203125 21.738281 1.3125 C 21.390625 1.847656 21.023438 2.382812 20.671875 2.878906 C 20.609375 2.972656 20.527344 3.046875 20.425781 3.09375 C 20.214844 3.195312 20.011719 3.175781 19.824219 3.039062 C 19.738281 2.976562 19.671875 2.898438 19.625 2.804688 Z M 29.15625 18.378906 L 29.113281 18.4375 L 29.039062 18.445312 C 29 18.453125 28.960938 18.460938 28.921875 18.472656 C 28.800781 18.507812 28.679688 18.515625 28.554688 18.492188 C 27.933594 18.34375 27.308594 18.175781 26.722656 18.007812 C 26.613281 17.980469 26.519531 17.929688 26.4375 17.847656 C 26.273438 17.683594 26.222656 17.488281 26.289062 17.261719 C 26.335938 17.101562 26.429688 16.980469 26.578125 16.898438 C 26.722656 16.816406 26.875 16.796875 27.039062 16.84375 C 27.636719 16.996094 28.234375 17.152344 28.824219 17.316406 C 29.054688 17.375 29.207031 17.515625 29.285156 17.742188 C 29.359375 17.976562 29.316406 18.191406 29.15625 18.378906 Z M 26.914062 8.511719 C 26.375 8.855469 25.820312 9.191406 25.296875 9.5 C 25.199219 9.558594 25.097656 9.589844 24.984375 9.59375 C 24.75 9.597656 24.574219 9.5 24.457031 9.296875 C 24.371094 9.148438 24.351562 8.996094 24.394531 8.832031 C 24.4375 8.671875 24.53125 8.54687
14895 24.675781 8.460938 C 25.199219 8.136719 25.726562 7.8125 26.253906 7.5 C 26.457031 7.375 26.664062 7.363281 26.878906 7.460938 C 27.101562 7.574219 27.226562 7.75 27.25 7.996094 L 27.261719 8.070312 L 27.214844 8.128906 C 27.195312 8.164062 27.175781 8.195312 27.152344 8.234375 C 27.09375 8.34375 27.015625 8.4375 26.914062 8.511719 Z M 26.914062 8.511719 ",fillOpacity:1,fillRule:"nonzero"}))),cT=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:400,zoomAndPan:"magnify",viewBox:"0 0 300 299.999988",height:400,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"20ffd26763"},S.createElement("path",{d:"M 14.25 0 L 285.75 0 C 289.53125 0 293.152344 1.5 295.828125 4.171875 C 298.5 6.847656 300 10.46875 300 14.25 L 300 285.75 C 300 289.53125 298.5 293.152344 295.828125 295.828125 C 293.152344 298.5 289.53125 300 285.75 300 L 14.25 300 C 10.46875 300 6.847656 298.5 4.171875 295.828125 C 1.5 293.152344 0 289.53125 0 285.75 L 0 14.25 C 0 10.46875 1.5 6.847656 4.171875 4.171875 C 6.847656 1.5 10.46875 0 14.25 0 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"5a5586f71c"},S.createElement("path",{d:"M 66.820312 11.371094 L 233.320312 11.371094 L 233.320312 288.871094 L 66.820312 288.871094 Z M 66.820312 11.371094 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#20ffd26763)"},S.createElement("path",{fill:"#302926",d:"M 0 0 L 299.53125 0 L 299.53125 299.53125 L 0 299.53125 Z M 0 0 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("g",{clipPath:"url(#5a5586f71c)"},S.createElement("path",{fill:"#60e1b7",d:"M 150.070312 11.375 C 148.710938 11.375 147.347656 11.410156 145.988281 11.476562 C 144.628906 11.546875 143.269531 11.648438 141.914062 11.78125 C 140.558594 11.917969 139.207031 12.085938 137.859375 12.285156 C 136.515625 12.488281 135.171875 12.722656 133.835938 12.988281 C 132.5 13.253906 131.171875 13.554688 129.851562 13.886719 C 128.53125 14.21875 127.21875 14.582031 125.914062 14.976562 C 124.613281 15.375 123.320312 15.800781 122.039062 16.261719 C 120.753906 16.722656 119.484375 17.210938 118.226562 17.734375 C 116.96875 18.257812 115.726562 18.808594 114.492188 19.390625 C 113.261719 19.972656 112.046875 20.585938 110.847656 21.230469 C 109.644531 21.871094 108.460938 22.542969 107.292969 23.246094 C 106.125 23.945312 104.972656 24.675781 103.84375 25.429688 C 102.710938 26.1875 101.597656 26.972656 100.503906 27.785156 C 99.410156 28.59375 98.335938 29.433594 97.28125 30.296875 C 96.230469 31.160156 95.199219 32.050781 94.191406 32.964844 C 93.179688 33.878906 92.195312 34.820312 91.230469 35.78125 C 90.269531 36.746094 89.328125 37.730469 88.414062 38.742188 C 87.5 39.75 86.609375 40.78125 85.746094 41.832031 C 84.882812 42.886719 84.042969 43.960938 83.234375 45.054688 C 82.421875 46.148438 81.636719 47.261719 80.878906 48.390625 C 80.121094 49.523438 79.394531 50.675781 78.691406 51.84375 C 77.992188 53.011719 77.320312 54.195312 76.679688 55.394531 C 76.035156 56.597656 75.421875 57.8125 74.839844 59.042969 C 74.257812 60.273438 73.703125 61.519531 73.183594 62.777344 C 72.660156 64.035156 72.171875 65.304688 71.710938 66.585938 C 71.25 67.871094 70.824219 69.164062 70.425781 70.464844 C 70.03125 71.769531 69.667969 73.082031 69.335938 74.402344 C 69.003906 75.722656 68.703125 77.050781 68.4375 78.386719 C 68.167969 79.722656 67.9375 81.0625 67.734375 82.410156 C 67.535156 83.757812 67.367188 85.109375 67.230469 86.464844 C 67.097656 87.820312 66.996094 89.175781 66.925781 90.539062 C 66.859375 91.898438 66.824219 93.257812 66.820312 94.621094 C 66.820312 95.078125 66.867188 95.527344 66.953125 95.972656 C 67.042969 96.421875 67.175781 96.855469 67.351562 97.277344 C 67.523438 97.695312 67.738281 98.097656 67.992188 98.476562 C 68.242188 98.855469 68.53125 99.203125 68.855469 99.527344 C 69.175781 99.847656 69.527344 100.136719 69.90625 100.390625 C 70.285156 100.640625 70.683594 100.855469 71.105469 101.03125 C 71.523438 101.203125 71.957031 101.335938 72.40625 101.425781 C 72.851562 101.515625 73.304688 101.558594 73.757812 101.558594 C 74.214844 101.558594 74.664062 101.515625 75.113281 101.425781 C 75.558594 101.335938 75.992188 101.203125 76.414062 101.03125 C 76.835938 100.855469 77.234375 100.640625 77.613281 100.390625 C 77.992188 100.136719 78.34375 99.847656 78.664062 99.527344 C 78.988281 99.203125 79.273438 98.855469 79.527344 98.476562 C 79.78125 98.097656 79.996094 97.695312 80.167969 97.277344 C 80.34375 96.855469 80.472656 96.421875 80.5625 95.972656 C 80.652344 95.527344 80.695312 95.078125 80.695312 94.621094 C 80.695312 93.484375 80.722656 92.351562 80.78125 91.21875 C 80.835938 90.082031 80.917969 88.949219 81.03125 87.820312 C 81.140625 86.691406 81.28125 85.566406 81.449219 84.441406 C 81.613281 83.320312 81.808594 82.199219 82.03125 81.085938 C 82.25 79.972656 82.5 78.867188 82.777344 77.765625 C 83.050781 76.664062 83.355469 75.570312 83.683594 74.484375 C 84.011719 73.398438 84.371094 72.320312 84.753906 71.25 C 85.132812 70.179688 85.542969 69.121094 85.976562 68.074219 C 86.410156 67.023438 86.871094 65.988281 87.355469 64.960938 C 87.84375 63.933594 88.351562 62.921875 88.886719 61.917969 C 89.421875 60.917969 89.984375 59.929688 90.566406 58.957031 C 91.152344 5
14897.980469 91.757812 57.023438 92.386719 56.078125 C 93.019531 55.136719 93.671875 54.207031 94.347656 53.296875 C 95.027344 52.382812 95.722656 51.488281 96.445312 50.609375 C 97.164062 49.734375 97.90625 48.875 98.667969 48.03125 C 99.429688 47.191406 100.214844 46.371094 101.015625 45.566406 C 101.820312 44.765625 102.640625 43.980469 103.480469 43.21875 C 104.324219 42.457031 105.183594 41.714844 106.0625 40.996094 C 106.9375 40.273438 107.832031 39.578125 108.746094 38.898438 C 109.65625 38.222656 110.585938 37.570312 111.527344 36.9375 C 112.472656 36.308594 113.433594 35.703125 114.40625 35.117188 C 115.378906 34.535156 116.367188 33.976562 117.367188 33.4375 C 118.371094 32.902344 119.382812 32.394531 120.410156 31.910156 C 121.4375 31.421875 122.472656 30.964844 123.523438 30.527344 C 124.570312 30.09375 125.632812 29.6875 126.699219 29.304688 C 127.769531 28.921875 128.847656 28.566406 129.933594 28.234375 C 131.019531 27.90625 132.113281 27.601562 133.214844 27.328125 C 134.316406 27.050781 135.421875 26.800781 136.539062 26.582031 C 137.652344 26.359375 138.769531 26.164062 139.890625 26 C 141.015625 25.832031 142.140625 25.691406 143.273438 25.582031 C 144.402344 25.472656 145.535156 25.386719 146.667969 25.332031 C 147.800781 25.277344 148.9375 25.246094 150.070312 25.246094 C 151.207031 25.246094 152.339844 25.277344 153.476562 25.332031 C 154.609375 25.386719 155.742188 25.472656 156.871094 25.582031 C 158 25.691406 159.128906 25.832031 160.25 26 C 161.375 26.164062 162.492188 26.359375 163.605469 26.582031 C 164.71875 26.800781 165.828125 27.050781 166.929688 27.328125 C 168.03125 27.601562 169.125 27.90625 170.210938 28.234375 C 171.296875 28.566406 172.375 28.921875 173.445312 29.304688 C 174.511719 29.6875 175.570312 30.09375 176.621094 30.527344 C 177.667969 30.964844 178.707031 31.421875 179.734375 31.910156 C 180.757812 32.394531 181.773438 32.902344 182.773438 33.4375 C 183.777344 33.976562 184.765625 34.535156 185.738281 35.117188 C 186.710938 35.703125 187.671875 36.308594 188.613281 36.9375 C 189.558594 37.570312 190.488281 38.222656 191.398438 38.898438 C 192.308594 39.578125 193.203125 40.273438 194.082031 40.996094 C 194.960938 41.714844 195.820312 42.457031 196.660156 43.21875 C 197.503906 43.980469 198.324219 44.765625 199.128906 45.566406 C 199.929688 46.371094 200.710938 47.191406 201.476562 48.03125 C 202.238281 48.875 202.980469 49.734375 203.699219 50.609375 C 204.417969 51.488281 205.117188 52.382812 205.792969 53.296875 C 206.46875 54.207031 207.125 55.136719 207.753906 56.078125 C 208.386719 57.023438 208.992188 57.980469 209.578125 58.957031 C 210.160156 59.929688 210.71875 60.917969 211.253906 61.917969 C 211.789062 62.921875 212.300781 63.933594 212.785156 64.960938 C 213.269531 65.988281 213.730469 67.023438 214.164062 68.074219 C 214.601562 69.121094 215.007812 70.179688 215.390625 71.25 C 215.773438 72.320312 216.128906 73.398438 216.460938 74.484375 C 216.789062 75.570312 217.089844 76.664062 217.367188 77.765625 C 217.644531 78.867188 217.890625 79.972656 218.113281 81.085938 C 218.335938 82.199219 218.527344 83.320312 218.695312 84.441406 C 218.863281 85.566406 219 86.691406 219.113281 87.820312 C 219.222656 88.949219 219.308594 90.082031 219.363281 91.21875 C 219.417969 92.351562 219.445312 93.484375 219.445312 94.621094 C 219.445312 169.128906 151.277344 274.992188 87.632812 274.992188 C 87.179688 274.992188 86.726562 275.035156 86.28125 275.125 C 85.832031 275.214844 85.398438 275.34375 84.980469 275.519531 C 84.558594 275.691406 84.160156 275.90625 83.78125 276.160156 C 83.402344 276.414062 83.050781 276.699219 82.730469 277.023438 C 82.40625 277.34375 82.117188 277.695312 81.867188 278.074219 C 81.613281 278.453125 81.398438 278.851562 81.226562 279.273438 C 81.050781 279.695312 80.917969 280.128906 80.828125 280.574219 C 80.742188 281.023438 80.695312 281.472656 80.695312 281.929688 C 80.695312 282.382812 80.742188 282.835938 80.828125 283.28125 C 80.917969 283.726562 81.050781 284.160156 81.226562 284.582031 C 81.398438 285.003906 81.613281 285.402344 81.867188 285.78125 C 82.117188 286.160156 82.40625 286.511719 82.730469 286.832031 C 83.050781 287.15625 83.402344 287.441406 83.78125 287.695312 C 84.160156 287.949219 84.558594 288.164062 84.980469 288.335938 C 85.398438 288.511719 85.832031 288.644531 86.28125 288.730469 C 86.726562 288.820312 87.179688 288.867188 87.632812 288.867188 C 159.910156 288.867188 233.320312 175.851562 233.320312 94.621094 C 233.320312 93.257812 233.285156 91.898438 233.21875 90.539062 C 233.148438 89.175781 233.046875 87.820312 232.914062 86.464844 C 232.777344 85.109375 232.609375 83.757812 232.410156 82.410156 C 232.207031 81.0625 231.972656 79.722656 231.707031 78.386719 C 231.441406 77.050781 231.140625 75.722656 230.808594 74.402344 C 230.476562 73.082031 230.113281 71.769531 229.714844 70.464844 C 229.320312 69.164062 228.890625 67.871094 228.433594 66.585938 C 227.972656 65.304688 227.48
14890469 64.035156 226.960938 62.777344 C 226.4375 61.519531 225.886719 60.273438 225.304688 59.042969 C 224.71875 57.8125 224.105469 56.597656 223.464844 55.394531 C 222.824219 54.195312 222.152344 53.011719 221.449219 51.84375 C 220.75 50.675781 220.019531 49.523438 219.261719 48.390625 C 218.507812 47.261719 217.722656 46.148438 216.910156 45.054688 C 216.097656 43.960938 215.261719 42.886719 214.398438 41.832031 C 213.53125 40.78125 212.644531 39.75 211.730469 38.742188 C 210.8125 37.730469 209.875 36.746094 208.910156 35.78125 C 207.949219 34.820312 206.960938 33.878906 205.953125 32.964844 C 204.945312 32.050781 203.914062 31.160156 202.859375 30.296875 C 201.808594 29.433594 200.734375 28.59375 199.640625 27.785156 C 198.546875 26.972656 197.433594 26.1875 196.300781 25.429688 C 195.167969 24.675781 194.019531 23.945312 192.851562 23.246094 C 191.683594 22.542969 190.5 21.871094 189.296875 21.230469 C 188.097656 20.585938 186.878906 19.972656 185.648438 19.390625 C 184.417969 18.808594 183.175781 18.257812 181.914062 17.734375 C 180.65625 17.210938 179.386719 16.722656 178.105469 16.261719 C 176.824219 15.800781 175.53125 15.375 174.226562 14.976562 C 172.925781 14.582031 171.613281 14.21875 170.292969 13.886719 C 168.96875 13.554688 167.640625 13.253906 166.304688 12.988281 C 164.972656 12.722656 163.628906 12.488281 162.28125 12.285156 C 160.933594 12.085938 159.585938 11.917969 158.230469 11.78125 C 156.875 11.648438 155.515625 11.546875 154.15625 11.476562 C 152.792969 11.410156 151.433594 11.375 150.070312 11.375 Z M 150.070312 11.375 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("path",{fill:"#60e1b7",d:"M 115.382812 205.617188 C 114.929688 205.617188 114.476562 205.664062 114.03125 205.75 C 113.582031 205.839844 113.148438 205.972656 112.730469 206.144531 C 112.308594 206.320312 111.910156 206.535156 111.53125 206.785156 C 111.152344 207.039062 110.800781 207.328125 110.480469 207.648438 C 110.15625 207.972656 109.867188 208.320312 109.617188 208.699219 C 109.363281 209.078125 109.148438 209.480469 108.976562 209.898438 C 108.800781 210.320312 108.667969 210.753906 108.578125 211.203125 C 108.492188 211.648438 108.445312 212.101562 108.445312 212.554688 C 108.445312 213.011719 108.492188 213.460938 108.578125 213.910156 C 108.667969 214.355469 108.800781 214.789062 108.976562 215.210938 C 109.148438 215.628906 109.363281 216.03125 109.617188 216.410156 C 109.867188 216.789062 110.15625 217.136719 110.480469 217.460938 C 110.800781 217.78125 111.152344 218.070312 111.53125 218.324219 C 111.910156 218.578125 112.308594 218.789062 112.730469 218.964844 C 113.148438 219.136719 113.582031 219.269531 114.03125 219.359375 C 114.476562 219.449219 114.929688 219.492188 115.382812 219.492188 C 132.089844 219.492188 150.070312 204.296875 150.070312 170.929688 C 150.070312 155.859375 143.078125 144.550781 136.320312 133.609375 C 129.125 121.964844 122.320312 110.960938 122.320312 94.621094 C 122.320312 93.710938 122.367188 92.804688 122.457031 91.902344 C 122.542969 90.996094 122.675781 90.097656 122.855469 89.207031 C 123.03125 88.316406 123.253906 87.433594 123.515625 86.566406 C 123.78125 85.695312 124.085938 84.839844 124.433594 84 C 124.78125 83.164062 125.167969 82.339844 125.597656 81.539062 C 126.027344 80.738281 126.492188 79.960938 127 79.203125 C 127.503906 78.449219 128.042969 77.71875 128.621094 77.015625 C 129.195312 76.316406 129.808594 75.640625 130.449219 75 C 131.09375 74.355469 131.765625 73.746094 132.46875 73.171875 C 133.167969 72.59375 133.898438 72.054688 134.65625 71.546875 C 135.410156 71.042969 136.1875 70.578125 136.992188 70.148438 C 137.792969 69.71875 138.613281 69.332031 139.453125 68.984375 C 140.292969 68.636719 141.148438 68.332031 142.015625 68.066406 C 142.886719 67.804688 143.765625 67.582031 144.65625 67.40625 C 145.550781 67.226562 146.445312 67.09375 147.351562 67.003906 C 148.257812 66.917969 149.164062 66.871094 150.070312 66.871094 C 150.980469 66.871094 151.886719 66.917969 152.792969 67.003906 C 153.695312 67.09375 154.59375 67.226562 155.484375 67.40625 C 156.375 67.582031 157.257812 67.804688 158.128906 68.066406 C 158.996094 68.332031 159.851562 68.636719 160.691406 68.984375 C 161.53125 69.332031 162.351562 69.71875 163.152344 70.148438 C 163.953125 70.578125 164.734375 71.042969 165.488281 71.546875 C 166.246094 72.054688 166.972656 72.59375 167.675781 73.171875 C 168.378906 73.746094 
1489169.050781 74.355469 169.695312 75 C 170.335938 75.640625 170.945312 76.316406 171.523438 77.015625 C 172.097656 77.71875 172.640625 78.449219 173.144531 79.203125 C 173.648438 79.960938 174.117188 80.738281 174.546875 81.539062 C 174.972656 82.339844 175.363281 83.164062 175.710938 84 C 176.058594 84.839844 176.363281 85.695312 176.625 86.566406 C 176.890625 87.433594 177.109375 88.316406 177.289062 89.207031 C 177.464844 90.097656 177.597656 90.996094 177.6875 91.902344 C 177.777344 92.804688 177.820312 93.710938 177.820312 94.621094 C 177.820312 95.078125 177.867188 95.527344 177.953125 95.972656 C 178.042969 96.421875 178.175781 96.855469 178.351562 97.277344 C 178.523438 97.695312 178.738281 98.097656 178.992188 98.476562 C 179.242188 98.855469 179.53125 99.203125 179.855469 99.527344 C 180.175781 99.847656 180.527344 100.136719 180.90625 100.390625 C 181.285156 100.640625 181.683594 100.855469 182.105469 101.03125 C 182.523438 101.203125 182.957031 101.335938 183.40625 101.425781 C 183.851562 101.515625 184.304688 101.558594 184.757812 101.558594 C 185.214844 101.558594 185.664062 101.515625 186.113281 101.425781 C 186.558594 101.335938 186.992188 101.203125 187.414062 101.03125 C 187.835938 100.855469 188.234375 100.640625 188.613281 100.390625 C 188.992188 100.136719 189.34375 99.847656 189.664062 99.527344 C 189.988281 99.203125 190.273438 98.855469 190.527344 98.476562 C 190.78125 98.097656 190.996094 97.695312 191.167969 97.277344 C 191.34375 96.855469 191.472656 96.421875 191.5625 95.972656 C 191.652344 95.527344 191.695312 95.078125 191.695312 94.621094 C 191.695312 93.257812 191.628906 91.898438 191.496094 90.542969 C 191.363281 89.183594 191.164062 87.835938 190.898438 86.5 C 190.632812 85.164062 190.300781 83.84375 189.90625 82.539062 C 189.507812 81.234375 189.050781 79.953125 188.527344 78.691406 C 188.007812 77.433594 187.425781 76.203125 186.78125 75 C 186.140625 73.796875 185.4375 72.628906 184.679688 71.496094 C 183.925781 70.363281 183.113281 69.269531 182.25 68.214844 C 181.382812 67.160156 180.46875 66.152344 179.503906 65.1875 C 178.539062 64.222656 177.53125 63.308594 176.476562 62.445312 C 175.425781 61.582031 174.332031 60.769531 173.195312 60.011719 C 172.0625 59.253906 170.894531 58.554688 169.695312 57.910156 C 168.492188 57.269531 167.261719 56.
14896875 166 56.164062 C 164.742188 55.644531 163.460938 55.183594 162.15625 54.789062 C 160.851562 54.394531 159.53125 54.0625 158.191406 53.796875 C 156.855469 53.53125 155.507812 53.332031 154.152344 53.199219 C 152.796875 53.0625 151.433594 52.996094 150.070312 52.996094 C 148.707031 52.996094 147.347656 53.0625 145.992188 53.199219 C 144.636719 53.332031 143.289062 53.53125 141.949219 53.796875 C 140.613281 54.0625 139.292969 54.394531 137.988281 54.789062 C 136.683594 55.183594 135.402344 55.644531 134.140625 56.164062 C 132.882812 56.6875 131.652344 57.269531 130.449219 57.910156 C 129.246094 58.554688 128.078125 59.253906 126.945312 60.011719 C 125.8125 60.769531 124.71875 61.582031 123.664062 62.445312 C 122.609375 63.308594 121.601562 64.222656 120.636719 65.1875 C 119.675781 66.152344 118.761719 67.160156 117.894531 68.214844 C 117.03125 69.269531 116.21875 70.363281 115.460938 71.496094 C 114.703125 72.628906 114.003906 73.796875 113.363281 75 C 112.71875 76.203125 112.136719 77.433594 111.613281 78.691406 C 111.09375 79.953125 110.632812 81.234375 110.238281 82.539062 C 109.84375 83.84375 109.511719 85.164062 109.246094 86.5 C 108.980469 87.835938 108.78125 89.183594 108.648438 90.542969 C 108.511719 91.898438 108.445312 93.257812 108.445312 94.621094 C 108.445312 114.90625 116.984375 128.71875 124.515625 140.898438 C 130.785156 151.039062 136.195312 159.800781 136.195312 170.929688 C 136.195312 193.703125 125.730469 205.617188 115.382812 205.617188 Z M 115.382812 205.617188 ",fillOpacity:1,fillRule:"nonzero"})),uT=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:400,zoomAndPan:"magnify",viewBox:"0 0 300 299.999988",height:400,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"ca86264202"},S.createElement("path",{d:"M 14.25 0 L 285.75 0 C 289.53125 0 293.152344 1.5 295.828125 4.171875 C 298.5 6.847656 300 10.46875 300 14.25 L 300 285.75 C 300 289.53125 298.5 293.152344 295.828125 295.828125 C 293.152344 298.5 289.53125 300 285.75 300 L 14.25 300 C 10.46875 300 6.847656 298.5 4.171875 295.828125 C 1.5 293.152344 0 289.53125 0 285.75 L 0 14.25 C 0 10.46875 1.5 6.847656 4.171875 4.171875 C 6.847656 1.5 10.46875 0 14.25 0 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#ca86264202)"},S.createElement("path",{fill:"#302926",d:"M 0 0 L 299.53125 0 L 299.53125 299.53125 L 0 299.53125 Z M 0 0 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("path",{fill:"#60e1b7",d:"M 233.277344 248.535156 C 233.023438 248.683594 232.941406 248.683594 232.855469 248.683594 C 231.996094 248.683594 230.109375 247.84375 229.3125 247.488281 C 227.570312 246.710938 225.894531 245.871094 224.21875 245.03125 C 220.421875 243.167969 216.519531 241.238281 212.074219 239.832031 C 205.910156 237.882812 199.808594 236.894531 193.957031 236.894531 C 179.886719 236.894531 166.929688 242.453125 155.394531 253.464844 C 152.734375 256 150.195312 258.644531 147.761719 261.179688 C 144.21875 264.871094 140.886719 268.351562 137.292969 271.433594 C 133.464844 274.726562 131.59375 275.210938 131.132812 275.273438 C 130.738281 275 129.207031 273.617188 127.191406 268.457031 C 127.039062 268.058594 126.921875 267.660156 126.808594 267.242188 L 126.488281 266.214844 C 124.210938 258.453125 124.210938 249.648438 126.539062 237.820312 C 130.296875 218.691406 137.898438 200.40625 146.023438 181.804688 C 149.441406 173.960938 154.597656 170 161.332031 170 C 164.769531 170 168.566406 170.964844 172.652344 172.871094 C 180.328125 176.457031 187.101562 181.742188 194.253906 187.320312 L 198.507812 190.632812 C 211.070312 200.34375 222.960938 209.527344 232.835938 221 C 235.371094 223.957031 237.429688 227.101562 239.105469 230.667969 C 241.957031 236.769531 239.230469 245.117188 233.277344 248.535156 Z M 246.695312 227.101562 C 244.726562 222.910156 242.230469 219.050781 239.1875 215.527344 C 228.433594 203.027344 215.410156 193.085938 202.472656 183.085938 C 194.105469 176.625 185.925781 169.808594 176.21875 165.28125 C 159.800781 157.605469 145.539062 161.945312 138.339844 178.449219 C 130.183594 197.113281 122.277344 216.007812 118.304688 236.203125 C 116.167969 247.066406 115.324219 257.929688 118.496094 268.75 C 118.789062 269.675781 119.035156 270.617188 119.378906 271.519531 C 124.761719 285.277344 131.640625 287.332031 142.75 277.8125 C 149.316406 272.191406 154.933594 265.5 161.183594 259.523438 C 175.003906 246.332031 191.042969 241.972656 209.539062 247.820312 C 215.304688 249.648438 220.441406 252.707031 225.875 255.140625 C 229.605469 256.796875 233.359375 258.160156 237.449219 255.8125 C 247.117188 250.277344 251.414062 237.167969 246.695312 227.101562 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 127.714844 131.457031 C 125.882812 141.054688 119.96875 147.027344 112.285156 147.027344 C 108.535156 147.027344 104.496094 145.601562 100.621094 
1489142.910156 C 89.105469 134.902344 81.917969 122.894531 78.011719 105.09375 C 76.171875 96.695312 76.023438 89.046875 77.578125 81.699219 C 78.554688 77.078125 79.90625 73.5625 81.8125 70.640625 C 83.851562 67.515625 87.324219 63.800781 92.273438 63.800781 C 94.878906 63.800781 97.65625 64.792969 100.53125 66.738281 C 112.660156 74.972656 119.050781 87.859375 123.710938 99.367188 C 123.949219 99.972656 124.183594 100.769531 124.441406 101.613281 C 124.589844 102.128906 124.742188 102.652344 124.90625 103.167969 C 128.4375 114.078125 129.324219 123.058594 127.714844 131.457031 Z M 132.902344 100.628906 C 132.433594 99.15625 132.066406 97.648438 131.484375 96.230469 C 125.710938 81.945312 118.386719 68.722656 105.238281 59.792969 C 93.984375 52.148438 82.246094 54.664062 74.792969 66.042969 C 72.011719 70.300781 70.410156 75.03125 69.371094 79.960938 C 67.472656 88.972656 67.863281 98 69.824219 106.898438 C 73.597656 124.117188 80.953125 139.46875 95.835938 149.804688 C 113.136719 161.820312 131.992188 153.765625 135.957031 133.027344 C 138.070312 121.976562 136.316406 111.195312 132.902344 100.628906 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 187.269531 109.125 C 186.851562 114.410156 185.550781 118.691406 183.304688 122.222656 C 182.152344 124.019531 179.761719 127.023438 176.617188 127.023438 C 174.75 127.023438 172.632812 126.015625 170.515625 124.109375 C 164.035156 118.234375 160.34375 110.066406 156.527344 100.777344 C 155.585938 98.5 154.851562 95.984375 154.054688 93.324219 C 153.675781 91.988281 153.277344 90.652344 152.859375 89.332031 C 149.585938 79.824219 146.335938 68.714844 146.589844 57.082031 C 146.632812 55.214844 146.714844 53.078125 147.113281 51.214844 C 148.140625 46.425781 150.488281 43.992188 154.074219 43.992188 C 155.625 43.992188 157.347656 44.410156 159.191406 45.222656 C 163.574219 47.160156 167.515625 50.503906 171.269531 55.4375 C 183.621094 71.769531 188.863281 89.332031 187.269531 109.125 Z M 177.9375 50.375 C 173.847656 44.957031 168.921875 40.355469 162.589844 37.550781 C 151.265625 32.546875 141.484375 37.421875 138.914062 49.457031 C 138.390625 51.878906 138.25 54.410156 138.203125 56.902344 C 137.949219 69.007812 140.960938 80.550781 144.871094 91.875 C 146.148438 95.910156 147.15625 100.066406 148.769531 103.972656 C 152.734375 113.597656 156.96875 123.167969 164.894531 130.324219 C 173.703125 138.292969 183.976562 136.753906 190.371094 126.738281 C 193.664062 121.585938 195.152344 115.800781 195.636719 109.796875 C 197.398438 87.71875 191.253906 67.941406 177.9375 50.375 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 87.964844 213.09375 C 85.734375 215.378906 83.417969 216.535156 81.078125 216.535156 C 78.964844 216.535156 76.644531 215.671875 74.179688 213.953125 C 68.183594 209.78125 63.753906 203.574219 59.347656 193.171875 C 58.558594 191.304688 57.9375 189.1875 57.28125 186.921875 C 56.9375 185.769531 56.601562 184.59375 56.234375 183.441406 L 56.078125 183 C 52.351562 173.1875 51.523438 165.089844 53.457031 157.5 C 54.097656 154.984375 54.988281 154.082031 55.191406 153.976562 C 55.40625 153.976562 55.839844 154.019531 56.609375 154.332031 C 75.285156 162.03125 86.898438 171.90625 93.160156 185.433594 C 97.222656 194.21875 95.035156 205.839844 87.964844 213.09375 Z M 100.765625 181.910156 C 92.503906 164.042969 77.265625 153.765625 59.804688 146.578125 C 52.695312 143.644531 47.363281 147.453125 45.320312 155.421875 C 42.644531 165.953125 44.480469 176.082031 48.238281 185.980469 C 49.34375 189.480469 50.195312 193.066406 51.621094 196.421875 C 55.636719 205.921875 60.671875 214.792969 69.398438 220.851562 C 78.128906 226.914062 86.941406 226.160156 93.96875 218.964844 C 103.304688 209.382812 106.386719 194.050781 100.765625 181.910156 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 245.585938 155.214844 C 245.226562 159.910156 244.472656 163.183594 243.070312 165.867188 C 242.542969 166.851562 242.105469 167.335938 241.894531 167.523438 C 241.707031 167.460938 241.433594 167.355469 241.035156 167.105469 C 230.277344 160.4375 222.9375 153.535156 217.925781 145.421875 C 214.089844 139.246094 214.109375 132.339844 217.949219 123.042969 C 220.800781 116.144531 223.945312 108.894531 228.433594 102.734375 C 230.402344 100.03125 231.746094 99.164062 232.269531 98.910156 C 232.710938 99.222656 233.925781 100.253906 235.519531 103.160156 C 237.972656 107.691406 239.566406 111.492188 240.488281 115.128906 L 240.550
1489781 115.367188 C 244.871094 130.332031 246.464844 143 245.585938 155.214844 Z M 248.605469 113.039062 C 247.347656 108.132812 245.269531 103.546875 242.878906 99.15625 C 236.839844 88.03125 229.125 87.53125 221.660156 97.796875 C 216.730469 104.546875 213.355469 112.164062 210.1875 119.832031 C 206.058594 129.867188 204.738281 140.074219 210.777344 149.84375 C 217.214844 160.207031 226.398438 167.902344 236.609375 174.234375 C 242.292969 177.757812 247.347656 175.746094 250.492188 169.746094 C 252.777344 165.386719 253.59375 160.667969 253.953125 155.820312 C 255.019531 141.203125 252.652344 127.015625 248.605469 113.039062 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 85.917969 38.921875 C 87.746094 42.746094 85.933594 44.761719 82.535156 45.980469 C 80.25 46.808594 77.988281 46.710938 77.71875 43.84375 C 77.375 40.207031 75.546875 35.382812 80.003906 33.53125 C 83.84375 31.933594 84.648438 36.339844 85.917969 38.921875 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 138.601562 23.191406 C 137.644531 19.578125 136.054688 15.613281 139.855469 14.527344 C 144.640625 13.15625 145.875 18.222656 147.742188 21.339844 C 149.253906 23.832031 147.742188 25.402344 145.351562 25.988281 C 142.179688 26.746094 139.011719 27.125 138.601562 23.191406 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 235.980469 68.304688 C 236.398438 70.664062 238.203125 73.726562 234.597656 74.605469 C 232.101562 75.21875 228.242188 75.734375 227.613281 71.777344 C 227.046875 68.378906 225.789062 63.59375 230.382812 62.300781 C 234.261719 61.21875 234.847656 65.5625 235.980469 68.304688 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 33.328125 127.785156 C 37.589844 127.582031 39.753906 130.953125 41.171875 134.050781 C 42.414062 136.773438 39.875 139.515625 37.394531 140.082031 C 32.414062 141.210938 32.699219 136.167969 31.265625 133.476562 C 30.175781 131.4375 30.101562 128.933594 33.328125 127.785156 ",fillOpacity:1,fillRule:"nonzero"})),dT=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:400,zoomAndPan:"magnify",viewBox:"0 0 300 299.999988",height:400,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"c2acca5c6c"},S.createElement("path",{d:"M 14.25 0 L 285.75 0 C 289.53125 0 293.152344 1.5 295.828125 4.171875 C 298.5 6.847656 300 10.46875 300 14.25 L 300 285.75 C 300 289.53125 298.5 293.152344 295.828125 295.828125 C 293.152344 298.5 289.53125 300 285.75 300 L 14.25 300 C 10.46875 300 6.847656 298.5 4.171875 295.828125 C 1.5 293.152344 0 289.53125 0 285.75 L 0 14.25 C 0 10.46875 1.5 6.847656 4.171875 4.171875 C 6.847656 1.5 10.46875 0 14.25 0 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"41962b9f59"},S.createElement("path",{d:"M 27.460938 11 L 269.710938 11 L 269.710938 288 L 27.460938 288 Z M 27.460938 11 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#c2acca5c6c)"},S.createElement("path",{fill:"#302926",d:"M 0 0 L 299.53125 0 L 299.53125 299.53125 L 0 299.53125 Z M 0 0 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("g",{clipPath:"url(#41962b9f59)"},S.createElement("path",{fill:"#60e1b7",d:"M 55.007812 13.359375 C 52.554688 15.8125 52.304688 19.59375 54.414062 22.347656 C 72.542969 45.976562 91.257812 68.511719 108.007812 87.902344 C 87.328125 95.234375 68.882812 108.148438 54.734375 125.695312 C 36.894531 147.816406 27.460938 175.3125 27.460938 205.21875 C 27.460938 227.222656 33.425781 246.773438 44.710938 261.753906 C 54.242188 274.410156 67.414062 283.316406 80.835938 286.199219 C 96.695312 289.601562 109.910156 284.230469 115.335938 272.175781 C 124.347656 252.144531 137.628906 249.269531 144.738281 249.339844 C 147.292969 249.363281 149.878906 249.363281 152.433594 249.339844 C 159.546875 249.269531 172.828125 252.144531 181.839844 272.175781 C 187.261719 284.230469 200.480469 289.601562 216.335938 286.199219 C 229.765625 283.316406 242.933594 274.410156 252.464844 261.753906 C 263.746094 246.773438 269.710938 227.222656 269.710938 205.21875 C 269.710938 175.3125 260.28125 147.816406 242.4375 125.695312 C 219.507812 97.261719 185.300781 80.953125 148.585938 80.953125 C 147.804688 80.953125 147.027344 80.972656 146.25 80.988281 C 123.703125 61.011719 94.785156 36.394531 63.996094 
148912.765625 C 61.246094 10.652344 57.464844 10.902344 55.007812 13.359375 Z M 236.949219 130.125 C 253.765625 150.980469 262.65625 176.945312 262.65625 205.21875 C 262.65625 225.679688 257.179688 243.761719 246.828125 257.507812 C 238.304688 268.824219 226.648438 276.765625 214.855469 279.296875 C 202.441406 281.964844 192.253906 278.125 188.273438 269.28125 C 183.589844 258.859375 177.230469 251.300781 169.382812 246.804688 C 162.726562 242.996094 156.457031 242.242188 152.371094 242.285156 C 149.855469 242.308594 147.316406 242.308594 144.804688 242.285156 C 140.71875 242.242188 134.449219 242.996094 127.792969 246.804688 C 119.945312 251.300781 113.585938 258.859375 108.902344 269.28125 C 104.921875 278.125 94.734375 281.964844 82.320312 279.296875 C 70.527344 276.765625 58.871094 268.824219 50.347656 257.507812 C 39.992188 243.761719 34.519531 225.679688 34.519531 205.21875 C 34.519531 176.945312 43.410156 150.980469 60.226562 130.125 C 74.140625 112.875 92.46875 100.371094 112.996094 93.664062 C 141.789062 126.707031 163.6875 149.355469 164.699219 150.398438 C 164.710938 150.414062 164.722656 150.421875 164.730469 150.433594 C 164.734375 150.4375 164.742188 150.441406 164.746094 150.449219 C 164.753906 150.457031 164.757812 150.460938 164.765625 150.472656 L 172.808594 158.515625 C 173.140625 160.679688 174.101562 165.027344 176.796875 169.6875 C 180.234375 175.625 187.25 183.277344 201.132812 186 C 219.125 189.527344 225.789062 192.132812 232.117188 198.121094 C 234.652344 200.523438 238.332031 201.128906 241.492188 199.660156 C 244.488281 198.273438 246.363281 195.3125 246.363281 192.039062 C 246.363281 191.878906 246.359375 191.71875 246.347656 191.558594 C 245.847656 182.5625 243.8125 169.351562 236.925781 157.484375 C 229.023438 143.859375 216.691406 135.0625 200.269531 131.320312 L 192.070312 123.121094 C 192.042969 123.09375 192.011719 123.0625 191.984375 123.039062 C 191.214844 122.289062 184.371094 115.675781 173.136719 105.308594 C 172.867188 105.058594 172.601562 104.808594 172.328125 104.558594 C 169.527344 101.976562 166.464844 99.171875 163.167969 96.175781 C 162.617188 95.675781 162.0625 95.167969 161.5 94.660156 C 159.203125 92.574219 156.796875 90.40625 154.292969 88.164062 C 186.683594 89.753906 216.554688 104.839844 236.949219 130.125 Z M 176.160156 151.886719 L 172.246094 147.976562 L 189.597656 130.625 L 193.507812 134.539062 Z M 199.609375 138.417969 C 213.59375 141.824219 224.089844 149.417969 230.824219 161.023438 C 237.007812 171.6875 238.851562 183.726562 239.304688 191.949219 C 239.347656 192.753906 238.835938 193.117188 238.527344 193.257812 C 238.207031 193.410156 237.574219 193.574219 236.96875 193 C 228.796875 185.265625 219.730469 182.449219 202.492188 179.074219 C 184.59375 175.566406 180.707031 162.605469 179.890625 158.140625 Z M 136.257812 81.585938 C 138.796875 83.820312 141.269531 86.003906 143.664062 88.128906 C 164.035156 106.238281 178.851562 120.238281 184.554688 125.683594 L 167.3125 142.933594 C 160.964844 136.285156 143.011719 117.269531 120.472656 91.492188 C 118.777344 89.554688 117.058594 87.578125 115.3125 85.566406 C 98.46875 66.128906 79.488281 43.363281 61.058594 19.402344 C 88.832031 40.785156 115.019531 62.910156 136.257812 81.585938 Z M 136.257812 81.585938 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("path",{fill:"#60e1b7",d:"M 83.125 214.855469 C 70.882812 214.855469 60.929688 224.808594 60.929688 237.050781 C 60.929688 249.292969 70.882812 259.25 83.125 259.25 C 95.363281 259.25 105.316406 249.292969 105.316406 237.050781 C 105.316406 224.808594 95.363281 214.855469 83.125 214.855469 Z M 83.125 252.1875 C 74.777344 252.1875 67.984375 245.394531 67.984375 237.046875 C 67.984375 228.699219 74.777344 221.90625 83.125 221.90625 C 91.46875 221.90625 98.261719 228.699219 98.261719 237.046875 C 98.261719 245.394531 91.472656 252.1875 83.125 252.1875 Z M 83.125 252.1875 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 96.40625 179.890625 C 96.40625 169.160156 87.675781 160.425781 76.945312 160.425781 C 66.21875 160.425781 57.488281 169.160156 57.488281 179.890625 C 57.488281 190.625 66.21875 199.355469 76.945312 199.355469 C 87.675781 199.355469 96.40625 190.625 96.40625 179.890625 Z M 64.542969 179.890625 C 64.542969 173.050781 70.109375 167.484375 76.945312 167.484375 C 83.785156 167.484375 89.351562 173.050781 89.351562 179.890625 C 89.351562 186.730469 83.785156 192.296875 76.945312 192.296875 C 70.109375 192.296875 64.542969 186.730469 
148964.542969 179.890625 Z M 64.542969 179.890625 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 119.492188 132.699219 C 119.492188 123.5625 112.0625 116.125 102.921875 116.125 C 93.78125 116.125 86.351562 123.558594 86.351562 132.699219 C 86.351562 141.835938 93.78125 149.277344 102.921875 149.277344 C 112.0625 149.277344 119.492188 141.835938 119.492188 132.699219 Z M 93.410156 132.699219 C 93.410156 127.453125 97.675781 123.183594 102.925781 123.183594 C 108.175781 123.183594 112.441406 127.449219 112.441406 132.699219 C 112.441406 137.949219 108.175781 142.21875 102.925781 142.21875 C 97.675781 142.21875 93.410156 137.945312 93.410156 132.699219 Z M 93.410156 132.699219 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 190.039062 230.816406 C 190.039062 241.550781 198.769531 250.28125 209.496094 250.28125 C 220.226562 250.28125 228.957031 241.550781 228.957031 230.816406 C 228.957031 220.085938 220.226562 211.351562 209.496094 211.351562 C 198.769531 211.351562 190.039062 220.085938 190.039062 230.816406 Z M 221.902344 230.816406 C 221.902344 237.660156 216.335938 243.226562 209.496094 243.226562 C 202.660156 243.226562 197.09375 237.660156 197.09375 230.816406 C 197.09375 223.976562 202.660156 218.410156 209.496094 218.410156 C 216.335938 218.410156 221.902344 223.976562 221.902344 230.816406 Z M 221.902344 230.816406 ",fillOpacity:1,fillRule:"nonzero"})),fT=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:400,zoomAndPan:"magnify",viewBox:"0 0 300 299.999988",height:400,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"34d91bf83f"},S.createElement("path",{d:"M 14.25 0 L 285.75 0 C 289.53125 0 293.152344 1.5 295.828125 4.171875 C 298.5 6.847656 300 10.46875 300 14.25 L 300 285.75 C 300 289.53125 298.5 293.152344 295.828125 295.828125 C 293.152344 298.5 289.53125 300 285.75 300 L 14.25 300 C 10.46875 300 6.847656 298.5 4.171875 295.828125 C 1.5 293.152344 0 289.53125 0 285.75 L 0 14.25 C 0 10.46875 1.5 6.847656 4.171875 4.171875 C 6.847656 1.5 10.46875 0 14.25 0 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"3054b30adf"},S.createElement("path",{d:"M 16 63 L 277 63 L 277 268.46875 L 16 268.46875 Z M 16 63 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"7286e7dd40"},S.createElement("path",{d:"M 7.035156 212 L 35 212 L 35 259 L 7.035156 259 Z M 7.035156 212 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"6d86c39ffa"},S.createElement("path",{d:"M 253 31.46875 L 292.785156 31.46875 L 292.785156 105 L 253 105 Z M 253 31.46875 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#34d91bf83f)"},S.createElement("path",{fill:"#302926",d:"M 0 0 L 299.53125 0 L 299.53125 299.53125 L 0 299.53125 Z M 0 0 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("g",{clipPath:"url(#3054b30adf)"},S.createElement("path",{fill:"#60e1b7",d:"M 102.285156 221.46875 C 102.570312 224.695312 102.425781 227.847656 101.855469 231.070312 C 101.28125 234.4375 100.277344 237.660156 98.917969 240.742188 C 97.914062 243.035156 96.839844 245.328125 94.980469 247.046875 C 94.90625 247.117188 94.835938 247.261719 94.765625 247.335938 C 93.1875 250.414062 90.753906 252.921875 88.535156 255.5 C 86.671875 257.652344 84.59375 259.441406 82.230469 260.875 C 79.652344 262.378906 76.859375 263.597656 74.136719 264.816406 C 71.773438 265.816406 69.269531 266.605469 66.832031 267.324219 C 63.039062 268.398438 59.097656 268.46875 55.160156 268.039062 C 52.582031 267.753906 51.863281 265.460938 53.582031 263.453125 C 55.730469 260.875 57.882812 258.367188 59.742188 255.574219 C 61.605469 252.777344 63.324219 249.984375 64.683594 246.902344 C 67.046875 241.601562 67.980469 235.941406 68.410156 230.210938 C 68.695312 226.628906 68.625 222.976562 68.765625 219.394531 C 68.765625 219.035156 68.765625 218.605469 68.839844 218.246094 C 69.125 216.527344 69.125 216.457031 67.550781 216.097656 C 64.613281 215.378906 61.75 214.519531 59.027344 213.230469 C 55.375 211.582031 51.648438 209.9375 48.425781 207.714844 C 44.558594 204.992188 40.476562 202.554688 37.039062 199.261719 C 32.171875 194.53125 27.515625 189.660156 24.21875 183.570312 C 22.359375 180.203125 20.855469 176.691406 19.351562 173.183594 C 17.988281 169.742188 17.058594 166.234375 16.628906 162.648438 C 15.984375 157.636719 15.769531 152.54687
14895 16.699219 147.460938 C 17.128906 144.882812 17.34375 142.230469 17.703125 139.582031 C 18.132812 136.644531 19.136719 133.847656 19.851562 130.984375 C 20.855469 127.1875 22.789062 123.890625 24.433594 120.453125 C 25.367188 118.445312 26.441406 116.582031 27.515625 114.792969 C 29.234375 112.070312 30.953125 109.273438 33.03125 106.765625 C 34.390625 105.046875 35.75 103.328125 37.183594 101.679688 C 38.972656 99.675781 41.050781 97.882812 43.128906 96.164062 C 47.351562 92.867188 51.9375 90.074219 55.875 86.421875 C 56.734375 85.632812 57.738281 85.132812 58.742188 84.628906 C 61.75 83.125 64.757812 81.621094 67.765625 80.1875 C 70.84375 78.753906 73.996094 77.394531 77.144531 76.105469 C 80.152344 74.886719 83.304688 73.738281 86.386719 72.738281 C 88.605469 72.019531 90.683594 70.945312 93.046875 70.515625 C 96.484375 69.871094 99.777344 69.011719 103.214844 68.4375 C 106.152344 68.007812 109.160156 67.21875 112.097656 66.789062 C 114.816406 66.359375 117.539062 65.785156 120.402344 66 C 121.121094 66.074219 121.765625 65.785156 122.480469 65.785156 C 126.277344 65.859375 130 65.070312 133.722656 64.640625 C 137.519531 64.210938 141.386719 64.425781 145.
1489183594 63.636719 C 146.832031 63.28125 148.691406 63.636719 150.410156 63.636719 C 152.203125 63.636719 154.0625 63.351562 155.855469 63.496094 C 158.144531 63.636719 160.507812 63.351562 162.800781 63.566406 C 166.238281 63.925781 169.75 63.710938 173.1875 63.925781 C 177.410156 64.28125 181.566406 64.640625 185.789062 65.214844 C 188.371094 65.570312 190.949219 65.714844 193.527344 66 C 194.816406 66.144531 195.890625 66.648438 197.179688 66.863281 C 200.472656 67.363281 203.765625 68.078125 206.988281 68.722656 C 212.289062 69.800781 217.445312 71.519531 222.460938 73.523438 C 224.824219 74.457031 227.328125 75.101562 229.621094 76.246094 C 231.195312 77.035156 232.914062 77.75 234.707031 78.109375 C 236.640625 78.46875 238 79.902344 239.71875 80.617188 C 241.152344 81.261719 242.726562 81.691406 243.660156 83.054688 C 246.238281 83.914062 247.882812 86.132812 250.03125 87.566406 C 252.253906 89.070312 254.1875 90.933594 256.335938 92.367188 C 258.054688 93.511719 259.484375 95.019531 260.703125 96.449219 C 262.136719 98.171875 263.855469 99.675781 265 101.679688 C 266.003906 103.472656 267.4375 104.976562 268.796875 106.550781 C 269.296875 107.199219 269.511719 107.84375 269.871094 108.558594 C 270.585938 110.136719 271.875 111.28125 272.449219 112.929688 C 273.308594 115.363281 274.3125 117.730469 274.8125 120.238281 C 275.527344 123.746094 276.316406 127.1875 276.675781 130.769531 C 277.03125 134.492188 276.960938 138.148438 276.746094 141.800781 C 276.53125 144.953125 276.101562 148.105469 275.527344 151.1875 C 275.097656 153.625 274.527344 156.058594 273.808594 158.496094 C 272.949219 161.433594 271.875 164.226562 271.160156 167.164062 C 270.515625 169.816406 269.226562 172.25 268.082031 174.6875 C 266.933594 177.121094 265.574219 179.488281 264.210938 181.78125 C 263.210938 183.355469 262.207031 185.003906 260.847656 186.363281 C 260.058594 187.082031 259.84375 188.15625 259.199219 188.945312 C 257.480469 190.949219 255.90625 193.027344 253.898438 194.746094 C 253.253906 195.320312 252.898438 196.324219 252.109375 196.894531 C 249.101562 199.261719 246.308594 201.984375 242.941406 203.773438 C 241.082031 204.777344 239.003906 205.421875 237.285156 206.566406 C 235.707031 207.644531 233.988281 208.144531 232.34375 208.71875 C 229.621094 209.578125 226.898438 210.722656 224.105469 211.367188 C 222.601562 211.726562 221.242188 212.300781 219.808594 212.65625 C 216.800781 213.375 213.792969 214.449219 210.714844 214.949219 C 208.351562 215.308594 206.128906 216.3125 203.765625 216.742188 C 200.617188 217.316406 197.464844 217.960938 194.3125 218.246094 C 191.378906 218.53125 188.441406 218.960938 185.503906 219.105469 C 181.851562 219.320312 178.269531 219.679688 174.617188 219.824219 C 172.398438 219.894531 170.105469 219.824219 167.886719 220.394531 C 167.097656 220.609375 166.382812 220.394531 165.59375 220.394531 C 163.160156 220.539062 160.652344 220.539062 158.21875 220.753906 C 155.996094 220.898438 153.847656 221.183594 151.628906 221.183594 C 148.261719 221.253906 144.824219 221.542969 141.460938 221.683594 C 138.023438 221.828125 134.65625 221.613281 131.21875 221.757812 C 127.566406 221.898438 123.914062 221.757812 120.261719 221.898438 C 119.042969 221.972656 117.753906 222.257812 116.535156 221.613281 C 116.394531 221.542969 116.179688 221.542969 115.964844 221.542969 C 113.027344 221.972656 110.089844 221.253906 107.152344 221.398438 C 106.078125 221.46875 105.003906 221.183594 104.003906 221.039062 C 103.359375 221.183594 102.785156 221.113281 102.285156 221.46875 Z M 58.167969 264.171875 C 58.8125 264.386719 59.097656 264.527344 59.3125 264.527344 C 62.035156 264.3125 64.683594 263.957031 67.335938 263.097656 C 69.554688 262.378906 71.703125 261.449219 73.851562 260.589844 C 78.507812 258.726562 82.589844 256.144531 85.8125 252.277344 C 86.742188 251.132812 87.675781 250.054688 88.675781 248.980469 C 90.683594 246.832031 92.328125 244.46875 93.761719 241.960938 C 96.339844 237.445312 98.203125 232.648438 98.558594 227.34375 C 98.703125 225.265625 98.988281 223.191406 98.632812 221.183594 C 98.417969 219.964844 98.632812 218.890625 98.917969 217.816406 C 99.132812 216.742188 100.851562 215.453125 101.640625 215.453125 C 105.433594 215.738281 109.160156 215.953125 112.957031 216.097656 C 116.894531 216.242188 120.90625 216.097656 124.84375 216.382812 C 125.703125 216.457031 126.707031 216.457031 127.566406 216.382812 C 129.929688 216.097656 132.292969 216.382812 134.65625 216.242188 C 137.59375 216.023438 140.601562 216.242188 143.535156 216.023438 C 149.335938 215.59375 155.136719 215.453125 160.9375 215.023438 C 166.742188 214.59375 172.613281 214.449219 178.414062 213.734375 C 180.632812 213.445312 182.78125 213.804688 185.003906 213.304688 C 185.863281 213.089844 186.792969 212.945312 187.652344 213.015625 C 190.230469 213.089844 192.808594 212.515625 195.316406 212.226562 C 197.535156 212.011719 199.828125 211.796875 202.046875 211.152344 C 202.90625 210.9375 203.625 210.292969 204.554688 210.367188 C 205.84375 210.4375 207.0625 210.078125 208.277344 209.648438 C 208.921875 209.433594 209.640625 209.074219 210.285156 209.074219 C 212.144531 209.148438 213.722656 208.289062 215.371094 207.785156 C 217.660156 207.140625 219.882812 206.351562 222.246094 205.78125 C 225.109375 205.0625 227.972656 204.417969 230.625 203.058594 C 231.054688 202.84375 231.410156 202.699219 231.914062 202.699219 C 233.558594 202.484375 235.0625 201.695312 236.425781 200.835938 C 238.285156 199.617188 240.363281 198.757812 242.226562 197.46875 C 243.585938 196.464844 245.019531 195.679688 246.308594 194.53125 C 247.742188 193.3125 249.101
1489562 191.953125 250.460938 190.664062 C 251.824219 189.375 252.96875 187.867188 254.1875 186.363281 C 256.335938 183.714844 258.125 180.847656 260.128906 178.054688 C 262.492188 174.6875 264.140625 170.890625 265.644531 167.09375 C 267.148438 163.511719 268.296875 159.640625 268.941406 155.773438 C 269.15625 154.484375 269.726562 153.265625 270.015625 152.046875 C 270.445312 149.898438 270.660156 147.675781 270.945312 145.527344 C 271.230469 143.449219 271.304688 141.300781 271.519531 139.152344 C 271.734375 137.214844 271.160156 135.28125 271.230469 133.277344 C 271.304688 131.339844 270.800781 129.550781 270.585938 127.6875 C 270.371094 126.253906 269.941406 124.894531 269.871094 123.390625 C 269.800781 121.882812 268.941406 120.667969 268.582031 119.160156 C 268.082031 116.796875 266.933594 114.71875 265.789062 112.640625 C 264.425781 110.277344 262.492188 108.414062 260.917969 106.195312 C 260.34375 105.335938 260.128906 104.1875 259.128906 103.613281 C 258.339844 103.183594 257.765625 102.46875 257.195312 101.824219 C 254.832031 99.101562 252.109375 96.738281 249.246094 94.589844 C 247.382812 93.15625 245.449219 91.722656 243.515625 90.359375 C 240.363281 88.140625 236.996094 86.347656 233.703125 84.414062 C 232.988281 83.984375 232.199219 83.554688 231.410156 83.484375 C 228.691406 83.195312 226.613281 81.332031 223.964844 80.832031 C 223.175781 80.6875 222.316406 80.042969 221.386719 79.828125 C 219.378906 79.398438 217.519531 78.46875 215.511719 77.824219 C 212.289062 76.75 208.996094 75.816406 205.699219 74.886719 C 203.550781 74.242188 201.402344 74.027344 199.253906 73.523438 C 197.25 73.023438 195.171875 72.808594 193.167969 72.519531 C 189.300781 71.949219 185.433594 71.160156 181.421875 71.015625 C 178.054688 70.945312 174.761719 70.085938 171.324219 70.371094 C 171.039062 70.371094 170.824219 70.445312 170.535156 70.371094 C 168.03125 69.511719 165.378906 70.15625 162.800781 69.871094 C 160.152344 69.585938 157.285156 69.871094 154.492188 70.015625 C 152.34375 70.085938 150.195312 70.015625 148.121094 70.015625 C 145.613281 70.015625 143.105469 70.230469 140.601562 70.371094 C 131.21875 70.945312 121.90625 71.804688 112.527344 72.378906 C 107.441406 72.664062 102.425781 73.238281 97.484375 74.527344 C 79.796875 79.042969 63.394531 86.347656 48.714844 97.308594 C 44.058594 100.75 40.765625 105.191406 37.542969 109.777344 C 36.179688 111.710938 34.460938 113.429688 33.601562 115.722656 C 32.097656 116.65625 31.738281 118.375 30.878906 119.734375 C 30.59375 120.238281 30.449219 120.738281 30.09375 121.238281 C 28.515625 123.605469 27.300781 126.183594 26.226562 128.761719 C 23.863281 134.78125 22.285156 141.011719 21.714844 147.460938 C 21.570312 149.109375 21.355469 150.828125 21.285156 152.476562 C 21.140625 155.128906 21.210938 157.707031 21.570312 160.359375 C 21.929688 162.9375 22.070312 165.515625 23.003906 167.953125 C 24.433594 171.535156 25.582031 175.1875 27.515625 178.554688 C 28.660156 180.5625 29.589844 182.710938 31.023438 184.574219 C 33.316406 187.4375 35.75 190.234375 38.328125 192.8125 C 39.617188 194.101562 40.765625 195.535156 42.339844 196.539062 C 44.34375 197.757812 46.136719 199.476562 48.210938 200.621094 C 50.789062 202.054688 53.152344 203.917969 55.804688 205.277344 C 59.386719 207.214844 63.039062 208.933594 67.046875 210.007812 C 68.695312 210.4375 70.054688 211.796875 70.699219 213.589844 C 72.632812 219.105469 72.492188 224.835938 72.417969 230.496094 C 72.417969 232.789062 72.132812 235.082031 71.632812 237.445312 C 70.628906 241.890625 69.839844 246.257812 67.765625 250.414062 C 66.546875 252.851562 65.257812 255.285156 63.683594 257.4375 C 61.890625 259.730469 60.675781 262.234375 58.167969 264.171875 Z M 93.546875 73.882812 C 90.753906 74.742188 87.960938 75.675781 85.167969 76.535156 C 85.238281 76.675781 85.238281 76.75 85.3125 76.890625 C 88.105469 76.175781 90.753906 74.886719 93.546875 73.882812 Z M 93.546875 73.882812 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("g",{clipPath:"url(#7286e7dd40)"},S.createElement("path",{fill:"#60e1b7",d:"M 20.496094 212.800781 C 20.640625 215.59375 21.355469 218.175781 22.5 220.609375 C 24.363281 224.480469 26.441406 228.132812 30.378906 230.28125 C 31.023438 230.640625 31.527344 230.925781 32.3125 230.640625 C 33.101562 230.355469 34.175781 230.855469 34.390625 231.429688 C 34.675781 232.144531 34.105469 233.21875 33.246094 233.507812 C 31.527344 234.152344 30.378906 235.441406 29.089844 236.730469 C 27.65625 238.164062 26.582031 239.882812 25.582031 241.53125 C 24.507812 243.25 24.292969 245.257812 24.078125 247.117188 C 23.71875 249.839844 23.863281 252.707031 24.363281 255.429688 C 24.433594 255.714844 24.433594 256.074219 24.433594 256.359375 C 24.433594 257.652344 24.003906 258.222656 23.074219 258.296875 C 22.070312 258.367188 21.570312 258.007812 21.355469 256.71875 C 21.140625 25
14895.714844 20.996094 254.714844 20.855469 253.710938 C 20.351562 250.988281 19.996094 248.265625 18.921875 245.613281 C 18.347656 244.183594 17.632812 242.890625 16.773438 241.675781 C 15.984375 240.527344 14.765625 240.167969 13.40625 240.242188 C 12.261719 240.242188 11.113281 240.242188 9.96875 240.382812 C 9.109375 240.457031 8.464844 240.242188 7.890625 239.667969 C 7.105469 238.878906 7.320312 237.734375 8.25 237.089844 C 9.179688 236.515625 10.253906 236.230469 11.1875 235.871094 C 12.761719 235.226562 14.265625 234.4375 15.410156 233.148438 C 16.414062 232.003906 17.273438 230.640625 17.847656 229.136719 C 18.632812 226.914062 19.0625 224.621094 19.207031 222.257812 C 19.421875 219.679688 19.566406 217.101562 19.636719 214.519531 C 19.851562 213.875 19.996094 213.304688 20.496094 212.800781 Z M 21.070312 223.191406 C 20.855469 225.839844 20.496094 228.347656 19.636719 230.785156 C 18.707031 233.363281 17.058594 235.296875 14.839844 237.160156 C 18.0625 237.804688 19.78125 239.667969 20.855469 242.246094 C 21.070312 242.820312 21.210938 243.535156 22 243.824219 C 22.644531 241.386719 23.574219 239.238281 25.222656 237.375 C 26.226562 236.230469 27.085938 235.011719 28.230469 234.007812 C 29.019531 233.292969 28.945312 233.148438 28.015625 232.433594 C 27.15625 231.789062 26.082031 231.355469 25.4375 230.496094 C 24.078125 228.636719 22.5 226.84375 21.855469 224.550781 C 21.714844 224.050781 21.570312 223.621094 21.070312 223.191406 Z M 21.070312 223.191406 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("g",{clipPath:"url(#6d86c39ffa)"},S.createElement("path",{fill:"#60e1b7",d:"M 266.71875 31.46875 C 267.007812 32.257812 267.363281 32.902344 267.507812 33.546875 C 268.296875 38.492188 271.160156 42 274.742188 45.226562 C 276.460938 46.730469 278.320312 47.949219 280.542969 48.664062 C 281.113281 48.878906 281.832031 48.878906 281.832031 49.738281 C 281.832031 50.742188 282.402344 51.886719 281.472656 52.605469 C 279.824219 53.894531 278.679688 55.542969 277.246094 56.976562 C 276.171875 58.050781 275.386719 59.480469 274.8125 60.914062 C 273.667969 63.710938 272.59375 66.574219 272.019531 69.511719 C 271.804688 70.800781 271.660156 72.019531 271.660156 73.238281 C 271.660156 74.027344 271.519531 74.8125 270.660156 75.101562 C 269.371094 75.53125 268.726562 75.171875 268.511719 73.8125 C 267.9375 70.230469 266.578125 66.863281 264.714844 63.78125 C 263.210938 61.128906 260.988281 59.339844 257.625 59.625 C 256.90625 59.695312 256.121094 59.625 255.402344 59.339844 C 254.757812 59.050781 253.972656 58.980469 253.972656 58.050781 C 253.898438 57.117188 254.042969 56.1875 255.046875 55.828125 C 256.40625 55.253906 257.550781 54.394531 258.769531 53.605469 C 260.703125 52.390625 262.351562 50.8125 263.566406 48.949219 C 264.5 47.589844 264.855469 45.871094 265.070312 44.292969 C 265.5 40.640625 265.789062 36.984375 265.429688 33.332031 C 265.214844 32.402344 265.789062 31.898438 266.71875 31.46875 Z M 267.792969 42.214844 C 268.007812 44.652344 267.222656 46.730469 266.71875 48.808594 C 266.289062 50.742188 265.359375 52.316406 263.855469 53.535156 C 262.851562 54.324219 261.921875 55.253906 261.132812 56.402344 C 261.5625 56.542969 261.777344 56.757812 262.136719 56.832031 C 265.285156 57.976562 267.222656 60.34375 268.511719 63.351562 C 268.867188 64.210938 269.226562 65 270.015625 65.859375 C 270.660156 63.996094 271.015625 62.132812 271.804688 60.558594 C 273.164062 57.90625 274.453125 55.113281 276.960938 53.175781 C 277.890625 52.460938 277.675781 51.671875 276.675781 51.171875 C 273.523438 49.523438 271.015625 47.230469 269.371094 44.007812 C 269.011719 43.363281 268.726562 42.71875 267.792969 42.214844 Z M 285.554688 101.324219 C 285.554688 101.96875 285.625 102.613281 285.554688 103.183594 C 285.484375 103.757812 285.054688 104.117188 284.550781 104.117188 C 283.90625 104.117188 283.765625 103.542969 283.621094 103.042969 C 283.335938 101.394531 283.121094 99.816406 282.761719 98.171875 C 282.332031 95.949219 281.617188 93.800781 279.96875 92.082031 C 278.964844 91.003906 277.820312 90.574219 276.386719 90.574219 C 275.671875 90.574219 274.882812 90.648438 274.667969 89.714844 C 274.453125 88.714844 275.027344 88.140625 275.742188 87.710938 C 276.601562 87.28125 277.460938 86.992188 278.320312 86.5625 C 28
14890.542969 85.417969 281.6875 83.554688 282.261719 81.261719 C 282.832031 79.113281 283.191406 76.964844 283.046875 74.671875 C 283.046875 73.953125 283.191406 73.308594 283.261719 72.59375 C 283.261719 72.304688 283.40625 72.089844 283.765625 72.089844 C 284.195312 72.019531 284.335938 72.304688 284.480469 72.59375 C 284.625 72.953125 284.625 73.308594 284.625 73.738281 C 284.910156 77.320312 286.199219 80.617188 287.417969 83.984375 C 288.132812 86.0625 288.921875 86.492188 291.140625 86.421875 C 291.714844 86.421875 292.289062 86.277344 292.503906 87.066406 C 292.71875 87.78125 292.289062 88.640625 291.425781 88.785156 C 289.921875 89.070312 288.921875 90.074219 288.132812 91.148438 C 287.203125 92.4375 286.699219 93.941406 286.269531 95.449219 C 285.769531 97.382812 285.410156 99.386719 285.554688 101.324219 Z M 284.335938 83.269531 C 283.335938 84.054688 283.121094 85.417969 282.402344 86.421875 C 281.617188 87.496094 280.253906 87.851562 279.46875 89.070312 C 281.832031 90.359375 283.191406 92.582031 284.335938 95.234375 C 284.625 94.730469 284.839844 94.445312 284.910156 94.15625 C 285.625 92.367188 286.269531 90.503906 287.773438 89.144531 C 288.277344 88.714844 287.773438 88.355469 287.34375 88.140625 C 285.914062 87.421875 285.269531 86.207031 284.839844 84.773438 C 284.765625 84.269531 284.839844 83.699219 284.335938 83.269531 Z M 284.335938 83.269531 ",fillOpacity:1,fillRule:"nonzero"}))),hT=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:400,zoomAndPan:"magnify",viewBox:"0 0 300 299.999988",height:400,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"30f18d7144"},S.createElement("path",{d:"M 14.25 0 L 285.75 0 C 289.53125 0 293.152344 1.5 295.828125 4.171875 C 298.5 6.847656 300 10.46875 300 14.25 L 300 285.75 C 300 289.53125 298.5 293.152344 295.828125 295.828125 C 293.152344 298.5 289.53125 300 285.75 300 L 14.25 300 C 10.46875 300 6.847656 298.5 4.171875 295.828125 C 1.5 293.152344 0 289.53125 0 285.75 L 0 14.25 C 0 10.46875 1.5 6.847656 4.171875 4.171875 C 6.847656 1.5 10.46875 0 14.25 0 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#30f18d7144)"},S.createElement("path",{fill:"#302926",d:"M 0 0 L 299.53125 0 L 299.53125 299.53125 L 0 299.53125 Z M 0 0 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("path",{fill:"#60e1b7",d:"M 204.417969 43.265625 C 197.480469 22.925781 171.367188 31.285156 155.851562 28.535156 C 143.011719 26.261719 131.460938 16.789062 118.652344 13.476562 C 94.4375 7.21875 59.519531 19.074219 45.851562 40.167969 C 31.921875 61.660156 30.511719 92.324219 36.226562 116.585938 C 38.328125 125.503906 43.207031 133.472656 45.390625 142.402344 C 49.421875 158.90625 51.042969 180.152344 50.167969 197.132812 C 49.355469 212.882812 30.246094 238.085938 39.582031 252.894531 C 45.0625 261.585938 57.050781 266.066406 65.949219 270.222656 C 90.09375 281.503906 115.976562 285.246094 142.246094 285.234375 C 152.015625 285.230469 170.40625 282.121094 178.257812 275.621094 C 182.355469 272.230469 181.390625 264.863281 181.980469 260.125 C 183.542969 247.585938 183.613281 231.992188 190.046875 220.882812 C 206.066406 193.207031 226.347656 167.925781 244.164062 141.367188 C 252.265625 129.292969 263.484375 115.539062 266.902344 101.09375 C 270.464844 86.050781 269.074219 62.300781 257.761719 50.84375 C 244.460938 37.371094 223.503906 37.867188 206.820312 42.808594 M 145.519531 30.871094 C 125.375 37.132812 111.449219 67.792969 111.417969 87.667969 C 111.179688 94.050781 108.9375 105.710938 115.550781 109.355469 C 112.660156 86.492188 117.1875 52.285156 138.460938 38.25 C 153.121094 28.582031 186.4375 26.980469 198.851562 41.308594 C 206.550781 50.195312 206.609375 64.1875 205.261719 75.277344 C 203.066406 93.363281 187.742188 105.25 180.652344 120.714844 C 193.582031 117.078125 208.421875 88.277344 209.097656 75.277344 C 209.78125 62.207031 203.558594 48.625 219.917969 44.222656 C 252.636719 35.417969 264.210938 65.441406 262.941406 91.351562 C 261.53125 100.980469 256.144531 115.4375 250.863281 123.8125 C 239.039062 142.566406 227.425781 162.921875 212.738281 179.578125 C 208.050781 184.890625 194.097656 207.984375 185.425781 197.53125 C 182.457031 193.953125 186.304688 188.941406 188.207031 185.773438 C 194.757812 174.84375 202.203125 164.871094 208.554688 153.761719 C 195.855469 160 193.046875 180.902344 179.617188 188.863281 C 172.582031 193.03125 158.601562 186.847656 157.214844 178.527344 C 155.792969 170.027344 161.015625 158.78125 165.152344 151.695312 C 155.875 158.539062 158.21875 171.558594 150.28125 177.777344 C 146.125 181.035156 138.539062 178.597656 134.042969 177.480469 C 129.207031 176.277344 121.742188 175.722656 118.242188 171.820312 C 115.640625 168.914062 116.589844 163.539062 116.585938 159.957031 C 116.570312 151.910156 115.535156 143.957031 113.484375 136.203125 C 113.484375 136.203125 115.800781 162.277344 110.53125 168.921875 C 105.539062 175.21875 85.113281 173.253906 83.546875 166.132812 L 81.449219 142.402344 C 78.730469 149.855469 81.09375 157.886719 78.382812 165.101562 C 76.746094 169.453125 67.425781 175.566406 64.507812 169.082031 C 61.871094 163.222656 63.355469 152.984375 62.742188 146.53125 C 61.886719 
1489137.53125 58.929688 127.457031 56.648438 118.648438 C 56.648438 118.648438 59.59375 145.96875 59.746094 158.921875 C 59.8125 164.558594 58.117188 177.128906 54.242188 171.324219 C 49.945312 160.175781 51.285156 153.492188 48.488281 142.042969 C 46.390625 133.453125 41.773438 123.042969 39.578125 114.519531 C 33.824219 92.164062 36.136719 65.59375 47.699219 45.328125 C 62.59375 19.222656 102.738281 8.9375 128.984375 21.3125 C 134.441406 23.886719 142.101562 25.65625 145.519531 30.871094 M 80.417969 72.179688 L 81.222656 73.550781 C 82.441406 58.226562 92.199219 37.839844 108.316406 33.96875 C 92.417969 27.363281 75.125 59.394531 80.417969 72.179688 M 231.285156 60.820312 C 234.707031 69.15625 238.050781 76.820312 236.308594 86.113281 C 235.652344 93.519531 230.875 102.046875 229.21875 109.355469 C 240.0625 100.34375 245.160156 70.085938 231.285156 60.820312 M 178.585938 265.285156 C 139.960938 244.976562 84.167969 234.292969 41.148438 245.667969 C 41.886719 229.554688 52.179688 215.339844 53.453125 199.195312 C 53.886719 193.730469 52.066406 183.664062 56.230469 179.269531 C 62.617188 172.53125 78.199219 174.316406 86.617188 174.417969 C 114.34375 174.746094 144.859375 179.914062 169.285156 193.59375 C 175.5 197.074219 185.34375 200.238281 189.3125 206.46875 C 192.847656 212.015625 185.921875 218.777344 184.125 223.980469 C 179.980469 235.96875 178.59375 252.589844 178.585938 265.285156 M 169.664062 266.5625 C 174.667969 269.730469 177.824219 272.28125 173.460938 274.921875 C 147.945312 287.019531 117.757812 280.925781 91.785156 271.667969 C 85.09375 269.285156 65.824219 264.492188 66.515625 255.003906 C 67.246094 244.992188 83.847656 246.589844 90.191406 246.589844 C 117.8125 247.730469 144.46875 252.917969 169.664062 266.5625 Z M 169.664062 266.5625 ",fillOpacity:1,fillRule:"nonzero"})),mT=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:400,zoomAndPan:"magnify",viewBox:"0 0 300 299.999988",height:400,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"671447d03f"},S.createElement("path",{d:"M 14.25 0 L 285.75 0 C 289.53125 0 293.152344 1.5 295.828125 4.171875 C 298.5 6.847656 300 10.46875 300 14.25 L 300 285.75 C 300 289.53125 298.5 293.152344 295.828125 295.828125 C 293.152344 298.5 289.53125 300 285.75 300 L 14.25 300 C 10.46875 300 6.847656 298.5 4.171875 295.828125 C 1.5 293.152344 0 289.53125 0 285.75 L 0 14.25 C 0 10.46875 1.5 6.847656 4.171875 4.171875 C 6.847656 1.5 10.46875 0 14.25 0 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"908e96e649"},S.createElement("path",{d:"M 13.714844 18.421875 L 285.964844 18.421875 L 285.964844 281.671875 L 13.714844 281.671875 Z M 13.714844 18.421875 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#671447d03f)"},S.createElement("path",{fill:"#302926",d:"M 0 0 L 299.53125 0 L 299.53125 299.53125 L 0 299.53125 Z M 0 0 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("path",{fill:"#60e1b7",d:"M 32.492188 37.226562 L 41.882812 37.226562 L 41.882812 46.625 L 32.492188 46.625 Z M 32.492188 37.226562 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 51.269531 37.226562 L 60.65625 37.226562 L 60.65625 46.625 L 51.269531 46.625 Z M 51.269531 37.226562 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 70.042969 37.226562 L 79.429688 37.226562 L 79.429688 46.625 L 70.042969 46.625 Z M 70.042969 37.226562 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("g",{clipPath:"url(#908e96e649)"},S.createElement("path",{fill:"#60e1b7",d:"M 267.183594 18.421875 L 32.492188 18.421875 C 31.878906 18.421875 31.265625 18.453125 30.652344 18.511719 C 30.042969 18.574219 29.433594 18.664062 28.832031 18.785156 C 28.230469 18.90625 27.632812 19.054688 27.046875 19.234375 C 26.457031 19.414062 25.878906 19.621094 25.3125 19.859375 C 24.746094 20.09375 24.191406 20.355469 23.648438 20.648438 C 23.105469 20.9375 22.578125 21.253906 22.066406 21.597656 C 21.558594 21.9375 21.0625 22.304688 20.589844 22.695312 C 20.113281 23.085938 19.660156 23.5 19.222656 23.933594 C 18.789062 24.371094 18.378906 24.824219 17.988281 25.300781 C 17.597656 25.777344 17.230469 26.269531 16.890625 26.78125 C 16.546875 27.292969 16.230469 27.820312 15.941406 28.363281 C 15.652344 28.90625 15.390625 29.464844 15.152344 30.03125 C 14.917969 30.601562 14.710938 31.179688 14.53125 31.769531 C 14.351562 32.359375 14.203125 32.953125 14.082031 33.558594 C 13.960938 34.160156 13.871094 34.769531 13.8125 35.382812 C 13.75 35.996094 13.71875 36.609375 13.71875 37.226562 L 13.71875 225.261719 C 13.71875 225.875 13.75 226.488281 13.8125 227.101562 C 13.871094 227.714844 13.960938 228.324219 14.082031 228.925781 C 14.203125 229.53125 14.351562 230.128906 14.53125 230.714844 C 14.710938 231.304688 14.917969 231.882812 15.152344 232.453125 C 15.390625 233.023438 15.652344 233.578125 15.941406 234.121094 C 16.230469 234.664062 16.546875 235.191406 16.890625 235.703125 C 17.230469 236.214844 17.597656 236.707031 17.988281 237.183594 C 18.378906 237.660156 18.789062 238.113281 19.222656 238.550781 C 19.660156 238.984375 20.113281 239.398438 20.589844 239.789062 C 21.0625 240.179688 21.558594 240.546875 22.066406 240.886719 C 22.578125 241.230469 23.105469 241.546875 23.648438 241.835938 C 24.191406 242.128906 24.746094 242.390625 25.3125 242.625 C 25.878906 242.863281 26.457031 243.070312 27.046875 243.25 C 27.632812 243.429688 28.230469 243.578125 28.832031 243.699219 C 29.433594 243.820312 30.042969 243.910156 30.652344 243.972656 C 31.265625 244.03125 31.878906 244.0625 32.492188 244.0625 L 115.253906 244.0625 L 112.695312 272.269531 L 98.207031 272.269531 L 98.207031 281.671875 L 201.46875 281.671875 L 201.46875 272.269531 L 186.980469 272.269531 L 184.421875 244.0625 L 267.183594 244.0625 C 267.796875 244.0625 268.410156 244.03125 269.023438 243.972656 C 269.632812 243.910156 270.242188 243.820312 270.84375 243.699219 C 271.445312 243.578125 272.042969 243.429688 272.628906 243.25 C 273.21875 243.070312 273.796875 242.863281 274.363281 242.625 C 274.929688 242.390625 275.484375 242.128906 276.027344 241.835938 C 276.570312 241.546875 277.097656 241.230469 277.609375 240.886719 C 278.117188 240.546875 278.613281 240.179688 279.085938 239.789062 C 279.5625 239.398438 280.015625 238.984375 280.453125 238.550781 C 280.886719 238.113281 281.296875 237.660156 281.6875 237.183594 C 282.078125 236.707031 282.445312 236.214844 282.785156 235.703125 C 283.128906 235.191406 283.445312 234.664062 283.734375 234.121094 C 284.023438 233.578125 284.285156 233.023438 284.523438 232.453125 C 284.757812 231.882812 284.964844 231.304688 285.144531 230.714844 C 285.324219 230.128906 285.472656 229.53125 285.59375 228.925781 C 285.714844 228.324219 285.804688 227.714844 285.863281 227.101562 C 285.925781 226.488281 285.957031 225.875 285.957031 225.261719 L 285.957031 37.226562 C 285.957031 36.609375 285.925781 35.996094 285.863281 35.382812 C 285.804688 34.769531 285.714844 34.160156 285.59375 33.558594 C 285.472656 32.953125 285.324219 32.359375 285.144531 31.769531 C 284.964844 31.179688 284.757812 30.601562 284.523438 30.03125 C 284.285156 29.464844 284.023438 28.90625 283.734375 28.363281 C 283.445312 27.820312 283.128906 27.292969 282.785156 26.78125 C 282.445312 26.269531 282.078125 25.777344 281.6875 25.300781 C 281.296875 24.824219 280.886719 24.371094 280.453125 23.933594 C 280.015625 23.5 279.5625 23.085938 279.085938 22.695312 C 278.613281 22.304688 278.117188 21.9375 277.609375 21.597656 C 277.097656 21.253906 276.570312 20.9375 276.027344 20.648438 C 275.484375 20.355469 274.929688 20.09375 274.363281 19.859375 C 273.796875 19.621094 273.21875 19.414062 272.628906 19.234375 C 272.042969 19.054688 271.445312 18.90625 270.84375 18.785156 C 270.242188 18.664062 269.632812 18.574219 269.023438 18.511719 C 268.410156 18.453125 267.796875 18.421875 267.183594 18.421875 Z M 32.492188 27.824219 L 267.183594 27.824219 C 267.796875 27.824219 268.410156 27.882812 269.011719 28.003906 C 269.617188 28.125 270.203125 28.304688 270.773438 28.542969 C 271.34375 28.777344 271.882812 29.066406 272.394531 29.410156 C 272.90625 29.753906 273.382812 30.144531 273.816406 30.578125 C 274.253906 31.015625 274.640625 31.492188 274.984375 32.003906 C 275.328125 32.515625 275.617188 33.058594 275.851562 33.628906 C 276.089844 34.199219 276.265625 34.785156 276.386719 35.390625 C 276.507812 35.996094 276.570312 36.609375 276.570312 37.226562 L 276.570312 56.027344 L 23.105469 56.027344 L 23.105469 37.226562 C 23.105469 36.609375 23.167969 35.996094 23.289062 35.390625 C 23.410156 34.785156 23.585938 34.199219 23.824219 33.628906 C 24.058594 33.058594 24.347656 32.515625 24.691406 32.003906 C 25.035156 31.492188 25.421875 31.015625 25.859375 30.578125 C 26.292969 30.144531 26.769531 29.753906 27.28125 29.410156 C 27.792969 29.066406 28.335938 28.777344 28.902344 28.542969 C 29.472656 28.304688 30.058594 28.125 30.664062 28.003906 C 31.265625 27.882812 31.878906 27.824219 32.492188 27.824219 Z M 276.570312 65.429688 L 276.570312 197.054688 L 23.105469 197.054688 L 23.105469 65.429688 Z M 177.554688 272.269531 L 122.121094 272.269531 L 124.683594 244.0625 L 174.996094 244.0625 Z M 267.183594 234.664062 L 32.492188 234.664062 C 31.878906 234.660156 31.265625 234.601562 30.664062 234.480469 C 30.058594 234.359375 29.472656 234.179688 28.902344 233.945312 C 28.335938 233.707031 27.792969 233.417969 27.28125 233.074219 C 26.769531 232.730469 26.292969 232.339844 25.859375 231.90625 C 25.421875 231.46875 25.035156 230.992188 24.691406 230.480469 C 24.347656 229.96875 24.058594 229.425781 23.824219 228.855469 C 23.585938 228.285156 23.410156 227.699219 23.289062 227.09375 C 23.167969 226.488281 23.105469 225.878906 23.105469 225.261719 L 23.105469 206.457031 L 276.570312 206.457031 L 276.570312 225.261719 C 276.570312 225.878906 276.507812 226.488281 276.386719 227.09375 C 276.265625 227.699219 276.089844 228.285156 275.851562 228.855469 C 275.617188 229.425781 275.328125 229.96875 274.984375 230.480469 C 274.640625 230.992188 274.253906 231.46875 273.816406 231.90625 C 273.382812 232.339844 272.90625 232.730469 272.394531 233.074219 C 271.882812 233.417969 271.34375 233.707031 270.773438 233.945312 C 270.203125 234.179688 269.617188 234.359375 269.011719 234.480469 C 268.410156 234.601562 267.796875 234.660156 267.183594 234.664062 Z M 267.183594 234.664062 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("path",{fill:"#60e1b7",d:"M 145.144531 215.859375 L 154.53125 215.859375 L 154.53125 225.261719 L 145.
1489144531 225.261719 Z M 145.144531 215.859375 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 37.1875 117.140625 L 46.574219 117.140625 L 46.574219 126.542969 L 37.1875 126.542969 Z M 37.1875 117.140625 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 55.960938 117.140625 L 126.367188 117.140625 L 126.367188 126.542969 L 55.960938 126.542969 Z M 55.960938 117.140625 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 37.1875 135.945312 L 46.574219 135.945312 L 46.574219 145.34375 L 37.1875 145.34375 Z M 37.1875 135.945312 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 55.960938 135.945312 L 178 135.945312 L 178 145.34375 L 55.960938 145.34375 Z M 55.960938 135.945312 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 37.1875 154.746094 L 46.574219 154.746094 L 46.574219 164.148438 L 37.1875 164.148438 Z M 37.1875 154.746094 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 55.960938 154.746094 L 145.144531 154.746094 L 145.144531 164.148438 L 55.960938 164.148438 Z M 55.960938 154.746094 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 37.1875 173.550781 L 46.574219 173.550781 L 46.574219 182.953125 L 37.1875 182.953125 Z M 37.1875 173.550781 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 55.960938 173.550781 L 192.082031 173.550781 L 192.082031 182.953125 L 55.960938 182.953125 Z M 55.960938 173.550781 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 38.5625 96.960938 L 47.949219 106.359375 L 54.589844 99.714844 L 48.519531 93.636719 L 54.589844 87.558594 L 47.949219 80.910156 L 38.5625 90.3125 C 38.34375 90.53125 38.148438 90.765625 37.980469 91.023438 C 37.808594 91.28125 37.664062 91.550781 37.542969 91.835938 C 37.425781 92.121094 37.335938 92.414062 37.277344 92.71875 C 37.21875 93.019531 37.1875 93.328125 37.1875 93.636719 C 37.1875 93.945312 37.21875 94.25 37.277344 94.550781 C 37.335938 94.855469 37.425781 95.148438 37.542969 95.433594 C 37.664062 95.71875 37.808594 95.992188 37.980469 96.246094 C 38.148438 96.503906 38.34375 96.742188 38.5625 96.960938 Z M 38.5625 96.960938 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 85.5 99.714844 L 92.136719 106.359375 L 101.527344 96.960938 C 101.742188 96.742188 101.9375 96.503906 102.109375 96.246094 C 102.28125 95.992188 102.425781 95.71875 102.542969 95.433594 C 102.660156 95.148438 102.75 94.855469 102.808594 94.550781 C 102.871094 94.25 102.902344 93.945312 102.902344 93.636719 C 102.902344 93.328125 102.871094 93.019531 102.808594 92.71875 C 102.75 92.414062 102.660156 92.121094 102.542969 91.835938 C 102.425781 91.550781 102.28125 91.28125 102.109375 91.023438 C 101.9375 90.765625 101.742188 90.53125 101.527344 90.3125 L 92.136719 80.910156 L 85.5 87.558594 L 91.570312 93.636719 Z M 85.5 99.714844 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 60.898438 106.25 L 70.285156 78.046875 L 79.191406 81.019531 L 69.800781 109.222656 Z M 60.898438 106.25 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 187.386719 135.945312 L 215.550781 135.945312 L 215.550781 145.34375 L 187.386719 145.34375 Z M 187.386719 135.945312 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 201.46875 173.550781 L 210.855469 173.550781 L 210.855469 182.953125 L 201.46875 182.953125 Z M 201.46875 173.550781 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 220.246094 173.550781 L 229.632812 173.550781 L 229.632812 182.953125 L 220.246094 182.953125 Z M 220.246094 173.550781 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 135.757812 117.140625 L 145.144531 117.140625 L 145.144531 126.542969 L 135.757812 126.542969 Z M 135.757812 117.140625 ",fillOpacity:1,fillRule:"nonzero"})),pT=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:400,zoomAndPan:"magnify",viewBox:"0 0 300 299.999988",he
1489ight:400,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:8171909426},S.createElement("path",{d:"M 14.25 0 L 285.75 0 C 289.53125 0 293.152344 1.5 295.828125 4.171875 C 298.5 6.847656 300 10.46875 300 14.25 L 300 285.75 C 300 289.53125 298.5 293.152344 295.828125 295.828125 C 293.152344 298.5 289.53125 300 285.75 300 L 14.25 300 C 10.46875 300 6.847656 298.5 4.171875 295.828125 C 1.5 293.152344 0 289.53125 0 285.75 L 0 14.25 C 0 10.46875 1.5 6.847656 4.171875 4.171875 C 6.847656 1.5 10.46875 0 14.25 0 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"0dbc7e8acc"},S.createElement("path",{d:"M 15.546875 20.191406 L 284.796875 20.191406 L 284.796875 279.691406 L 15.546875 279.691406 Z M 15.546875 20.191406 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#8171909426)"},S.createElement("path",{fill:"#302926",d:"M 0 0 L 299.53125 0 L 299.53125 299.53125 L 0 299.53125 Z M 0 0 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("g",{clipPath:"url(#0dbc7e8acc)"},S.createElement("path",{fill:"#60e1b7",d:"M 284.757812 240.421875 L 284.757812 222.734375 C 284.757812 220.347656 282.820312 218.414062 280.433594 218.414062 L 273.304688 218.414062 L 273.304688 47.792969 C 273.304688 47.308594 273.226562 46.847656 273.078125 46.410156 C 275.109375 45.746094 276.925781 44.597656 278.398438 43.097656 C 280.796875 40.660156 282.277344 37.308594 282.277344 33.625 C 282.277344 29.945312 280.796875 26.59375 278.398438 24.15625 C 275.992188 21.703125 272.660156 20.183594 268.980469 20.183594 C 265.304688 20.183594 261.972656 21.703125 259.558594 24.15625 C 257.164062 26.59375 255.683594 29.945312 255.683594 33.625 C 255.683594 36.03125 256.320312 38.289062 257.429688 40.25 C 221.699219 45.792969 185.9375 48.574219 150.164062 48.574219 C 114.390625 48.574219 78.636719 45.792969 42.90625 40.25 C 44.007812 38.289062 44.65625 36.03125 44.65625 33.625 C 44.65625 29.945312 43.175781 26.59375 40.777344 24.15625 C 38.371094 21.710938 35.039062 20.191406 31.355469 20.191406 C 27.683594 20.191406 24.351562 21.710938 21.9375 24.160156 C 19.539062 26.601562 18.058594 29.953125 18.058594 33.632812 C 18.058594 37.316406 19.539062 40.667969 21.9375 43.105469 C 23.410156 44.601562 25.226562 45.746094 27.257812 46.417969 C 27.109375 46.851562 27.03125 47.316406 27.03125 47.800781 L 27.03125 218.421875 L 19.910156 218.421875 C 17.523438 218.421875 15.582031 220.355469 15.582031 222.738281 L 15.582031 240.433594 C 15.582031 240.433594 15.582031 240.441406 15.582031 240.441406 L 15.582031 275.367188 C 15.582031 277.75 17.523438 279.683594 19.910156 279.683594 L 280.433594 279.683594 C 282.820312 279.683594 284.757812 277.75 284.757812 275.367188 L 284.757812 240.421875 C 284.757812 240.425781 284.757812 240.425781 284.757812 240.421875 Z M 265.714844 30.199219 C 266.550781 29.355469 267.707031 28.832031 268.984375 28.832031 C 270.265625 28.832031 271.421875 29.355469 272.257812 30.199219 C 273.105469 31.066406 273.628906 32.277344 273.628906 33.632812 C 273.628906 34.984375 273.105469 36.199219 272.25 37.066406 C 271.414062 37.914062 270.257812 38.4375 268.984375 38.4375 C 267.707031 38.4375 266.550781 37.914062 265.722656 37.066406 C 264.875 36.199219 264.34375 34.988281 264.34375 33.632812 C 264.335938 32.277344 264.867188 31.066406 265.714844 30.199219 Z M 264.660156 47.839844 L 264.660156 74.300781 C 226.515625 80.617188 188.355469 83.785156 150.171875 83.785156 C 111.988281 83.785156 73.828125 80.617188 35.683594 74.300781 L 35.683594 47.839844 C 73.867188 54.089844 112.035156 57.21875 150.171875 57.21875 C 188.3125 57.21875 226.476562 54.089844 264.660156 47.839844 Z M 28.09375 30.199219 C 28.929688 29.355469 30.085938 28.832031 31.363281 28.832031 C 32.644531 28.832031 33.800781 29.355469 34.632812 30.199219 C 35.484375 31.066406 36.007812 32.277344 36.007812 33.632812 C 36.007812 34.984375 35.484375 36.199219 34.628906 37.066406 C 33.792969 37.914062 32.636719 38.4375 31.363281 38.4375 C 30.085938 38.4375 28.929688 37.914062 28.101562 37.066406 C 27.253906 36.199219 26.722656 34.988281 26.722656 33.632812 C 26.714844 32.277344 27.246094 31.066406 28.09375 30.199219 Z M 35.683594 83.046875 C 73.867188 89.296875 112.03125 92.425781 150.
1489171875 92.425781 C 188.3125 92.425781 226.476562 89.296875 264.660156 83.046875 L 264.660156 218.421875 L 258.226562 218.421875 L 258.226562 163.035156 C 258.226562 160.648438 256.289062 158.714844 253.898438 158.714844 L 212.871094 158.714844 C 210.480469 158.714844 208.542969 160.648438 208.542969 163.035156 L 208.542969 218.421875 L 165.65625 218.421875 C 164.429688 213.792969 161.929688 209.699219 158.5625 206.582031 L 158.542969 206.582031 C 155.273438 203.5625 151.207031 201.445312 146.710938 200.605469 L 146.710938 160.621094 L 151.289062 156.902344 C 153.3125 158.21875 155.714844 158.988281 158.292969 158.988281 C 161.894531 158.988281 165.15625 157.5 167.519531 155.101562 C 169.867188 152.714844 171.316406 149.429688 171.316406 145.824219 C 171.316406 142.214844 169.863281 138.929688 167.519531 136.546875 C 165.15625 134.140625 161.894531 132.65625 158.292969 132.65625 C 154.695312 132.65625 151.429688 134.140625 149.066406 136.546875 C 146.71875 138.929688 145.273438 142.214844 145.273438 145.824219 C 145.273438 147.320312 145.535156 148.757812 145.992188 150.101562 L 139.917969 155.039062 C 139.742188 155.160156 139.578125 155.296875 139.429688 155.4375 L 130.628906 162.582031 C 128.785156 164.082031 128.503906 166.796875 130.003906 168.636719 C 131.503906 170.476562 134.222656 170.757812 136.066406 169.261719 L 138.050781 167.648438 L 138.050781 200.605469 C 133.679688 201.425781 129.707031 203.453125 126.484375 206.347656 L 126.207031 206.582031 C 122.84375 209.699219 120.332031 213.792969 119.109375 218.421875 L 91.792969 218.421875 L 91.792969 163.035156 C 91.792969 160.648438 89.855469 158.714844 87.46875 158.714844 L 46.445312 158.714844 C 44.054688 158.714844 42.117188 160.648438 42.117188 163.035156 L 42.117188 218.421875 L 35.683594 218.421875 Z M 249.570312 183.339844 C 248.757812 181.9375 247.78125 180.640625 246.652344 179.5 C 243.253906 176.039062 238.5625 173.902344 233.378906 173.902344 C 228.199219 173.902344 223.507812 176.039062 220.109375 179.5 C 218.980469 180.648438 218.003906 181.945312 217.191406 183.347656 L 217.191406 167.351562 L 249.570312 167.351562 Z M 243.476562 192.886719 C 243.476562 195.769531 242.335938 198.367188 240.507812 200.234375 C 238.691406 202.089844 236.167969 203.230469 233.386719 203.230469 C 230.609375 203.230469 228.085938 202.089844 226.269531 200.234375 C 224.429688 198.367188 223.300781 195.773438 223.300781 192.886719 C 223.300781 190.003906 224.4375 187.40625 226.269531 185.539062 C 228.085938 183.683594 230.609375 182.542969 233.386719 182.542969 C 236.167969 182.542969 238.691406 183.683594 240.507812 185.539062 C 242.335938 187.40625 243.476562 190 243.476562 192.886719 Z M 217.191406 202.425781 C 218.003906 203.828125 218.980469 205.125 220.109375 206.273438 C 223.507812 209.734375 228.199219 211.871094 233.378906 211.871094 C 238.5625 211.871094 243.253906 209.734375 246.652344 206.273438 C 247.78125 205.125 248.757812 203.835938 249.570312 202.433594 L 249.570312 218.425781 L 217.191406 218.425781 Z M 155.226562 149.0625 C 154.425781 148.25 153.925781 147.101562 153.925781 145.824219 C 153.925781 144.546875 154.425781 143.40625 155.226562 142.585938 C 156.007812 141.785156 157.097656 141.296875 158.300781 141.296875 C 159.503906 141.296875 160.589844 141.792969 161.375 142.585938 C 162.175781 143.398438 162.675781 144.546875 162.675781 145.824219 C 162.675781 147.101562 162.175781 148.242188 161.375 149.0625 C 160.59375 149.859375 159.503906 150.351562 158.300781 150.351562 C 157.097656 150.351562 156.007812 149.859375 155.226562 149.0625 Z M 142.386719 208.839844 C 146.355469 208.839844 149.964844 210.371094 152.683594 212.890625 C 154.324219 214.421875 155.65625 216.304688 156.558594 218.421875 L 128.214844 218.421875 C 129.117188 216.296875 130.449219 214.417969 132.097656 212.890625 L 132.285156 212.703125 C 134.984375 210.296875 138.515625 208.839844 142.386719 208.839844 Z M 83.152344 183.347656 C 82.339844 181.945312 81.363281 180.648438 80.234375 179.5 C 76.835938 176.039062 72.144531 173.902344 66.960938 173.902344 C 61.78125 173.902344 57.089844 176.039062 53.691406 179.5 C 52.5625 180.648438 51.585938 181.9375 50.773438 183.339844 L 50.773438 167.347656 L 83.152344 167.347656 Z M 77.050781 192.886719 C 77.050781 195.769531 75.914062 198.367188 74.082031 200.234375 C 72.265625 202.089844 69.742188 203.230469 66.960938 203.230469 C 64.183594 203.230469 61.660156 202.089844 59.84375 200.234375 C 58.003906 198.367188 56.875 195.773438 56.875 192.886719 C 56.875 190.003906 58.011719 187.40625 59.84375 185.539062 C 61.660156 183.683594 64.183594 182.542969 66.960938 182.542969 C 69.742188 182.542969 72.265625 183.683594 74.082031 185.539062 C 75.914062 187.40625 77.050781 190 77.050781 192.886719 Z M 50.773438 218.421875 L 50.773438 202.425781 C 51.585938 203.828125 52.5625 205.125 53.691406 206.269531 C 57.089844 209.726562 61.78125 211.863281 66.960938 211.863281 C 72.144531 211.863281 76.835938 209.726562 80.234375 206.269531 C 81.363281 205.121094 82.339844 203.824219 83.152344 202.417969 L 83.152344 218.414062 L 50.773438 218.414062 Z M 24.238281 227.058594 L 276.105469 227.058594 L 276.105469 236.113281 L 24.238281 236.113281 Z M 276.105469 271.039062 L 24.238281 271.039062 L 24.238281 244.746094 L 276.105469 244.746094 Z M 61.308594 64.851562 C 61.585938 62.484375 63.738281 60.792969 
148966.109375 61.066406 C 94.109375 64.472656 122.128906 66.171875 150.171875 66.171875 C 178.214844 66.171875 206.234375 64.472656 234.234375 61.066406 C 236.605469 60.792969 238.757812 62.480469 239.035156 64.851562 C 239.308594 67.214844 237.621094 69.363281 235.246094 69.640625 C 206.867188 73.085938 178.507812 74.8125 150.171875 74.8125 C 121.835938 74.8125 93.476562 73.085938 65.097656 69.640625 C 62.722656 69.363281 61.035156 67.222656 61.308594 64.851562 Z M 61.308594 64.851562 ",fillOpacity:1,fillRule:"nonzero"}))),gT=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:400,zoomAndPan:"magnify",viewBox:"0 0 300 299.999988",height:400,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"1f469faf6d"},S.createElement("path",{d:"M 14.25 0 L 285.75 0 C 289.53125 0 293.152344 1.5 295.828125 4.171875 C 298.5 6.847656 300 10.46875 300 14.25 L 300 285.75 C 300 289.53125 298.5 293.152344 295.828125 295.828125 C 293.152344 298.5 289.53125 300 285.75 300 L 14.25 300 C 10.46875 300 6.847656 298.5 4.171875 295.828125 C 1.5 293.152344 0 289.53125 0 285.75 L 0 14.25 C 0 10.46875 1.5 6.847656 4.171875 4.171875 C 6.847656 1.5 10.46875 0 14.25 0 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"c8c99db841"},S.createElement("path",{d:"M 20 50.1875 L 279 50.1875 L 279 247 L 20 247 Z M 20 50.1875 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"12275323aa"},S.createElement("path",{d:"M 217.554688 95.53125 C 216.5625 95.53125 215.574219 95.5
148978125 214.585938 95.675781 C 213.601562 95.773438 212.621094 95.917969 211.648438 96.109375 C 210.675781 96.304688 209.714844 96.542969 208.765625 96.832031 C 207.816406 97.121094 206.882812 97.453125 205.964844 97.832031 C 205.050781 98.210938 204.15625 98.632812 203.28125 99.097656 C 202.40625 99.566406 201.554688 100.074219 200.730469 100.625 C 199.90625 101.175781 199.109375 101.761719 198.34375 102.390625 C 197.578125 103.019531 196.84375 103.683594 196.140625 104.382812 C 195.441406 105.082031 194.773438 105.816406 194.144531 106.582031 C 193.515625 107.347656 192.925781 108.140625 192.375 108.964844 C 191.824219 109.789062 191.3125 110.636719 190.847656 111.507812 C 190.378906 112.382812 189.957031 113.277344 189.574219 114.191406 C 189.195312 115.105469 188.863281 116.035156 188.574219 116.984375 C 188.285156 117.929688 188.046875 118.890625 187.851562 119.859375 C 187.660156 120.832031 187.511719 121.808594 187.417969 122.792969 C 187.320312 123.78125 187.269531 124.769531 187.269531 125.757812 C 187.269531 126.746094 187.320312 127.734375 187.417969 128.71875 C 187.511719 129.707031 187.660156 130.683594 187.851562 131.65625 C 188.046875 132.625 188.285156 133.585938 188.574219 134.53125 C 188.863281 135.480469 189.195312 136.410156 189.574219 137.324219 C 189.957031 138.238281 190.378906 139.132812 190.847656 140.007812 C 191.3125 140.878906 191.824219 141.726562 192.375 142.550781 C 192.925781 143.375 193.515625 144.167969 194.144531 144.933594 C 194.773438 145.699219 195.441406 146.429688 196.140625 147.132812 C 196.84375 147.832031 197.578125 148.496094 198.34375 149.125 C 199.109375 149.75 199.90625 150.339844 200.730469 150.890625 C 201.554688 151.441406 202.40625 151.949219 203.28125 152.414062 C 204.15625 152.882812 205.050781 153.304688 205.964844 153.683594 C 206.882812 154.0625 207.816406 154.394531 208.765625 154.683594 C 209.714844 154.96875 210.675781 155.210938 211.648438 155.402344 C 212.621094 155.597656 213.601562 155.742188 214.585938 155.839844 C 215.574219 155.9375 216.5625 155.984375 217.554688 155.984375 C 218.546875 155.984375 219.539062 155.9375 220.523438 155.839844 C 221.511719 155.742188 222.492188 155.597656 223.464844 155.402344 C 224.4375 155.210938 225.398438 154.96875 226.347656 154.683594 C 227.296875 154.394531 228.230469 154.0625 229.144531 153.683594 C 230.0625 153.304688 230.957031 152.882812 231.832031 152.414062 C 232.707031 151.949219 233.558594 151.441406 234.382812 150.890625 C 235.207031 150.339844 236.003906 149.75 236.769531 149.125 C 237.535156 148.496094 238.269531 147.832031 238.972656 147.132812 C 239.671875 146.429688 240.339844 145.699219 240.96875 144.933594 C 241.597656 144.167969 242.1875 143.375 242.738281 142.550781 C 243.289062 141.726562 243.796875 140.878906 244.265625 140.007812 C 244.734375 139.132812 245.15625 138.238281 245.535156 137.324219 C 245.917969 136.410156 246.25 135.480469 246.539062 134.53125 C 246.824219 133.585938 247.066406 132.625 247.261719 131.65625 C 247.453125 130.683594 247.597656 129.707031 247.695312 128.71875 C 247.792969 127.734375 247.84375 126.746094 247.84375 125.757812 C 247.84375 124.769531 247.792969 123.78125 247.695312 122.792969 C 247.597656 121.808594 247.453125 120.832031 247.261719 119.859375 C 247.066406 118.890625 246.824219 117.929688 246.539062 116.984375 C 246.25 116.035156 245.917969 115.105469 245.535156 114.191406 C 245.15625 113.277344 244.734375 112.382812 244.265625 111.507812 C 243.796875 110.636719 243.289062 109.789062 242.738281 108.964844 C 242.1875 108.140625 241.597656 107.347656 240.96875 106.582031 C 240.339844 105.816406 239.671875 105.082031 238.972656 104.382812 C 238.269531 103.683594 237.535156 103.019531 236.769531 102.390625 C 236.003906 101.761719 235.207031 101.175781 234.382812 100.625 C 233.558594 100.074219 232.707031 99.566406 231.832031 99.097656 C 230.957031 98.632812 230.0625 98.210938 229.144531 97.832031 C 228.230469 97.453125 227.296875 97.121094 226.347656 96.832031 C 225.398438 96.542969 224.4375 96.304688 223.464844 96.109375 C 222.492188 95.917969 221.511719 95.773438 220.523438 95.675781 C 219.539062 95.578125 218.54
14896875 95.53125 217.554688 95.53125 Z M 217.554688 140.871094 C 216.5625 140.871094 215.578125 140.773438 214.601562 140.582031 C 213.625 140.386719 212.679688 140.101562 211.761719 139.722656 C 210.84375 139.339844 209.96875 138.875 209.144531 138.324219 C 208.316406 137.773438 207.550781 137.144531 206.847656 136.445312 C 206.144531 135.742188 205.519531 134.980469 204.964844 134.152344 C 204.414062 133.328125 203.945312 132.457031 203.566406 131.542969 C 203.1875 130.625 202.898438 129.679688 202.703125 128.707031 C 202.511719 127.734375 202.414062 126.75 202.414062 125.757812 C 202.414062 124.765625 202.511719 123.78125 202.703125 122.808594 C 202.898438 121.835938 203.1875 120.890625 203.566406 119.972656 C 203.945312 119.058594 204.414062 118.1875 204.964844 117.359375 C 205.519531 116.535156 206.144531 115.773438 206.847656 115.070312 C 207.550781 114.367188 208.316406 113.742188 209.144531 113.191406 C 209.96875 112.640625 210.84375 112.175781 211.761719 111.792969 C 212.679688 111.414062 213.625 111.128906 214.601562 110.933594 C 215.578125 110.742188 216.5625 110.644531 217.554688 110.644531 C 218.550781 110.644531 219.535156 110.742188 220.511719 110.933594 C 221.484375 111.128906 222.433594 111.414062 223.351562 111.792969 C 224.269531 112.175781 225.140625 112.640625 225.96875 113.191406 C 226.796875 113.742188 227.5625 114.367188 228.265625 115.070312 C 228.96875 115.773438 229.59375 116.535156 230.148438 117.359375 C 230.699219 118.1875 231.164062 119.058594 231.546875 119.972656 C 231.925781 120.890625 232.214844 121.835938 232.40625 122.808594 C 232.601562 123.78125 232.699219 124.765625 232.699219 125.757812 C 232.699219 126.75 232.601562 127.734375 232.40625 128.707031 C 232.214844 129.679688 231.925781 130.625 231.546875 131.542969 C 231.164062 132.457031 230.699219 133.328125 230.148438 134.152344 C 229.59375 134.980469 228.96875 135.742188 228.265625 136.445312 C 227.5625 137.144531 226.796875 137.773438 225.96875 138.324219 C 225.140625 138.875 224.269531 139.339844 223.351562 139.722656 C 222.433594 140.101562 221.484375 140.386719 220.511719 140.582031 C 219.535156 140.773438 218.550781 140.871094 217.554688 140.871094 Z M 81.269531 95.53125 C 80.277344 95.53125 79.289062 95.578125 78.300781 95.675781 C 77.316406 95.773438 76.335938 95.917969 75.363281 96.109375 C 74.390625 96.304688 73.429688 96.542969 72.480469 96.832031 C 71.53125 97.121094 70.597656 97.453125 69.679688 97.832031 C 68.765625 98.210938 67.867188 98.632812 66.992188 99.097656 C 66.121094 99.566406 65.269531 100.074219 64.445312 100.625 C 63.621094 101.175781 62.824219 101.761719 62.058594 102.390625 C 61.289062 103.019531 60.558594 103.683594 59.855469 104.382812 C 59.152344 105.082031 58.488281 105.816406 57.859375 106.582031 C 57.230469 107.347656 56.640625 108.140625 56.089844 108.964844 C 55.539062 109.789062 55.027344 110.636719 54.5625 111.507812 C 54.09375 112.382812 53.667969 113.277344 53.289062 114.191406 C 52.910156 115.105469 52.578125 116.035156 52.289062 116.984375 C 52 117.929688 51.761719 118.890625 51.566406 119.859375 C 51.375 120.832031 51.226562 121.808594 51.128906 122.792969 C 51.035156 123.78125 50.984375 124.769531 50.984375 125.757812 C 50.984375 126.746094 51.035156 127.734375 51.128906 128.71875 C 51.226562 129.707031 51.375 130.683594 51.566406 131.65625 C 51.761719 132.625 52 133.585938 52.289062 134.53125 C 52.578125 135.480469 52.910156 136.410156 53.289062 137.324219 C 53.667969 138.238281 54.09375 139.132812 54.5625 140.007812 C 55.027344 140.878906 55.539062 141.726562 56.089844 142.550781 C 56.640625 143.375 57.230469 144.167969 57.859375 144.933594 C 58.488281 145.699219 59.152344 146.429688 59.855469 147.132812 C 60.558594 147.832031 61.289062 148.496094 62.058594 149.125 C 62.824219 149.75 63.621094 150.339844 64.445312 150.890625 C 65.269531 151.441406 66.121094 151.949219 66.992188 152.414062 C 67.867188 152.882812 68.765625 153.304688 69.679688 153.683594 C 70.597656 154.0625 71.53125 154.394531 72.480469 154.683594 C 73.429688 154.96875 74.390625 155.210938 75.363281 155.402344 C 76.335938 155.597656 77.316406 155.742188 78.300781 155.839844 C 79.289062 155.9375 80.277344 155.984375 81.269531 155.984375 C 82.261719 155.984375 83.253906 155.9375 84.238281 155.839844 C 85.226562 155.742188 86.207031 155.597656 87.179688 155.402344 C 88.152344 155.210938 89.113281 154.96875 90.0625 154.683594 C 91.011719 154.394531 91.945312 154.0625 92.859375 153.683594 C 93.777344 153.304688 94.671875 152.882812 95.546875 152.414062 C 96.421875 151.949219 97.273438 151.441406 98.097656 150.890625 C 98.921875 150.339844 99.71875 149.75 100.484375 149.125 C 101.25 148.496094 101.984375 147.832031 102.6875 147.132812 C 103.386719 146.429688 104.050781 145.699219 104.683594 144.933594 C 105.3125 144.167969 105.902344 143.375 106.453125 142.550781 C 107.003906 141.726562 107.511719 140.878906 107.980469 140.007812 C 108.449219 139.132812 108.871094 138.238281 109.25 137.324219 C 109.628906 136.410156 109.964844 135.480469 110.253906 134.53125 C 110.539062 133.585938 110.78125 132.625 110.972656 131.65625 C 111.167969 130.683594 111.3125 129.707031 111.410156 128.71875 C 111.507812 127.734375 111.554688 126.746094 111.554688 125.757812 C 111.554688 124.769531 111.507812 123.78125 111.410156 122.792969 C 111.3125 121.808594 111.167969 120.832031 110.972656 119.859375 C 110.78125 118.890625 110.539062 117.929688 110.253906 116.984375 C 109.964844 116.035156 109.628906 115.105469 109.25 114.191406 C 108.871094 113.277344 108.449219 112.382812 107.980469 111.507812 C 107.511719 110.636719 107.003906 109.789062 106.453125 108.964844 C 105.902344 108.140625 105.3125 107.347656 104.683594 106.582031 C 104.050781 105.816406 103.386719 105.082031 102.6875 104.382812 C 101.984375 103.683594 101.25 103.019531 100.484375 102.390625 C 99.71875 101.761719 98.921875 101.175781 98.097656 100.625 C 97.273438 100.074219 96.421875 99.566406 95.546875 99.097656 C 94.671875 98.632812 93.777344 98.210938 92.859375 97.832031 C 91.945312 97.453125 91.011719 97.121094 90.0625 96.832031 C 89.113281 96.542969 88.152344 96.304688 87.179688 96.109375 C 86.207031 95.917969 85.226562 95.773438 84.238281 95.675781 C 83.253906 95.578125 82.261719 95.53125 81.269531 95.53125 Z M 81.269531 140.871094 C 80.277344 140.871094 79.292969 140.773438 78.316406 140.582031 C 77.339844 140.386719 76.394531 140.101562 75.476562 139.722656 C 74.558594 139.339844 73.683594 138.875 72.859375 138.324219 C 72.03125 137.773438 71.265625 137.144531 70.5625 136.445312 C 69.859375 135.742188 69.230469 134.980469 68.679688 134.152344 C 68.128906 133.328125 67.660156 132.457031 67.28125 131.542969 C 66.898438 130.625 66.613281 129.679688 66.417969 128.707031 C 66.226562 127.734375 66.128906 126.75 66.128906 125.757812 C 66.128906 124.765625 66.226562 123.78125 66.417969 122.808594 C 66.613281 121.835938 66.898438 120.890625 67.28125 119.972656 C 67.660156 119.058594 68.128906 118.1875 68.679688 117.359375 C 69.230469 116.535156 69.859375 115.773438 70.5625 115.070312 C 71.265625 114.367188 72.03125 113.742188 72.859375 113.191406 C 73.683594 112.640625 74.558594 112.175781 75.476562 111.792969 C 76.394531 111.414062 77.339844 111.128906 78.316406 110.933594 C 79.292969 110.742188 80.277344 110.644531 81.269531 110.644531 C 82.265625 110.644531 83.25 110.742188 84.226562 110.933594 C 85.199219 111.128906 86.148438 111.414062 87.066406 111.792969 C 87.984375 112.175781 88.855469 112.640625 89.683594 113.191406 C 90.511719 113.742188 91.273438 114.367188 91.976562 115.070312 C 92.679688 115.773438 93.308594 116.535156 93.863281 117.359375 C 94.414062 118.1875 94.878906 119.058594 95.261719 119.972656 C 95.640625 120.890625 95.929688 121.835938 96.121094 
1489122.808594 C 96.316406 123.78125 96.414062 124.765625 96.414062 125.757812 C 96.414062 126.75 96.316406 127.734375 96.121094 128.707031 C 95.929688 129.679688 95.640625 130.625 95.261719 131.542969 C 94.878906 132.457031 94.414062 133.328125 93.863281 134.152344 C 93.308594 134.980469 92.679688 135.742188 91.976562 136.445312 C 91.273438 137.144531 90.511719 137.773438 89.683594 138.324219 C 88.855469 138.875 87.984375 139.339844 87.066406 139.722656 C 86.148438 140.101562 85.199219 140.386719 84.226562 140.582031 C 83.25 140.773438 82.265625 140.871094 81.269531 140.871094 Z M 224.523438 58.046875 C 221.214844 57.695312 217.898438 57.617188 214.578125 57.808594 C 211.253906 58 207.972656 58.464844 204.726562 59.195312 C 201.480469 59.929688 198.316406 60.921875 195.234375 62.175781 C 192.15625 63.425781 189.195312 64.921875 186.363281 66.664062 C 186.03125 65.484375 185.609375 64.339844 185.09375 63.226562 C 184.578125 62.117188 183.972656 61.054688 183.285156 60.042969 C 182.59375 59.03125 181.824219 58.082031 180.980469 57.191406 C 180.136719 56.304688 179.222656 55.492188 178.246094 54.753906 C 177.265625 54.015625 176.234375 53.359375 175.148438 52.789062 C 174.0625 52.21875 172.941406 51.738281 171.777344 51.347656 C 170.613281 50.960938 169.425781 50.671875 168.214844 50.476562 C 167.003906 50.28125 165.785156 50.183594 164.554688 50.1875 L 134.269531 50.1875 C 133.046875 50.199219 131.832031 50.304688 130.625 50.507812 C 129.417969 50.710938 128.234375 51.007812 127.074219 51.402344 C 125.914062 51.792969 124.796875 52.277344 123.714844 52.847656 C 122.632812 53.421875 121.605469 54.078125 120.628906 54.8125 C 119.652344 55.550781 118.742188 56.363281 117.894531 57.246094 C 117.050781 58.128906 116.28125 59.074219 115.585938 60.082031 C 114.894531 61.085938 114.285156 62.140625 113.761719 63.246094 C 113.238281 64.351562 112.804688 65.488281 112.464844 66.664062 C 109.636719 64.90625 106.683594 63.398438 103.605469 62.136719 C 100.523438 60.875 97.359375 59.878906 94.113281 59.144531 C 90.863281 58.410156 87.578125 57.953125 84.253906 57.769531 C 80.929688 57.585938 77.613281 57.679688 74.304688 58.046875 C 72.441406 58.324219 70.597656 58.683594 68.769531 59.125 C 66.9375 59.566406 65.132812 60.089844 63.351562 60.691406 C 61.566406 61.296875 59.816406 61.976562 58.09375 62.738281 C 56.375 63.5 54.691406 64.335938 53.046875 65.246094 C 51.398438 66.15625 49.796875 67.140625 48.242188 68.195312 C 46.683594 69.25 45.175781 70.371094 43.722656 71.5625 C 42.265625 72.753906 40.863281 74.007812 39.523438 75.320312 C 38.179688 76.636719 36.898438 78.011719 35.675781 79.441406 C 34.457031 80.871094 33.304688 82.355469 32.21875 83.886719 C 31.132812 85.421875 30.117188 87 29.171875 88.628906 C 28.226562 90.253906 27.359375 91.917969 26.5625 93.617188 C 25.769531 95.320312 25.054688 97.058594 24.414062 98.824219 C 23.777344 100.589844 23.21875 102.382812 22.742188 104.199219 C 22.265625 106.019531 21.871094 107.851562 21.5625 109.707031 C 21.25 111.558594 21.023438 113.421875 20.878906 115.292969 C 20.734375 117.167969 20.675781 119.042969 20.699219 120.921875 L 20.699219 205.859375 C 20.695312 208.527344 20.953125 211.171875 21.476562 213.789062 C 21.996094 216.410156 22.769531 218.949219 23.796875 221.414062 C 24.824219 223.878906 26.082031 226.21875 27.574219 228.433594 C 29.066406 230.648438 30.761719 232.695312 32.660156 234.574219 C 34.550781 236.492188 36.609375 238.199219 38.839844 239.707031 C 41.066406 241.210938 43.421875 242.484375 45.90625 243.523438 C 48.390625 244.558594 50.949219 245.34375 53.589844 245.871094 C 56.226562 246.402344 58.894531 246.667969 61.585938 246.667969 C 63.40625 246.664062 65.214844 246.542969 67.019531 246.300781 C 68.824219 246.058594 70.605469 245.699219 72.359375 245.222656 C 74.117188 244.746094 75.832031 244.15625 77.511719 243.453125 C 79.1875 242.75 80.8125 241.9375 82.382812 241.019531 C 83.953125 240.097656 85.453125 239.082031 86.890625 237.960938 C 88.324219 236.84375 89.679688 235.636719 90.953125 234.339844 C 92.226562 233.042969 93.410156 231.667969 94.5 230.214844 C 95.59375 228.761719 96.582031 227.242188 97.472656 225.660156 L 123.519531 178.65625 L 175.308594 178.65625 L 201.351562 225.660156 C 201.902344 226.632812 202.492188 227.582031 203.121094 228.507812 C 203.75 229.433594 204.417969 230.332031 205.117188 231.203125 C 205.820312 232.074219 206.558594 232.917969 207.328125 233.726562 C 208.101562 234.539062 208.90625 235.316406 209.738281 236.0625 C 210.574219 236.808594 211.441406 237.515625 212.332031 238.191406 C 213.226562 238.867188 214.144531 239.503906 215.09375 240.101562 C 216.039062 240.703125 217.007812 241.261719 218 241.78125 C 218.992188 242.304688 220.003906 242.78125 221.03125 243.21875 C 222.0625 243.65625 223.113281 244.050781 224.175781 244.402344 C 225.238281 244.757812 226.316406 245.0625 227.402344 245.328125 C 228.492188 245.59375 229.589844 245.8125 230.695312 245.984375 C 231.804688 246.160156 232.914062 246.289062 234.03125 246.371094 C 235.148438 246.457031 236.269531 246.492188 237.390625 246.484375 C 238.511719 246.476562 239.628906 246.421875 240.746094 246.324219 C 241.859375 246.222656 242.96875 246.078125 244.074219 245.890625 C 245.179688 245.699219 246.273438 245.464844 247.359375 245.183594 C 248.441406 244.902344 249.515625 244.582031 250.574219 244.214844 C 251.632812 243.84375 252.671875 243.4375 253.695312 242.984375 C 254.722656 242.53125 255.726562 242.039062 256.710938 241.503906 C 257.695312 240.96875 258.65625 240.394531 259.59375 239.78125 C 260.527344 239.167969 261.4375 238.515625 262.324219 237.828125 C 263.207031 237.140625 264.0625 236.417969 264.886719 235.664062 C 265.710938 234.90625 266.5 234.113281 267.261719 233.292969 C 268.019531 232.472656 268.746094 231.621094 269.433594 230.738281 C 270.125 229.855469 270.777344 228.949219 271.390625 228.011719 C 272.007812 227.078125 272.582031 226.12
14891094 273.121094 225.140625 C 273.65625 224.15625 274.152344 223.15625 274.605469 222.132812 C 275.058594 221.109375 275.472656 220.070312 275.839844 219.015625 C 276.210938 217.960938 276.535156 216.890625 276.816406 215.808594 C 277.097656 214.726562 277.332031 213.632812 277.523438 212.53125 C 277.714844 211.429688 277.863281 210.320312 277.964844 209.207031 C 278.0625 208.09375 278.117188 206.976562 278.128906 205.859375 L 278.128906 120.921875 C 278.152344 119.042969 278.09375 117.167969 277.949219 115.292969 C 277.804688 113.421875 277.578125 111.558594 277.265625 109.707031 C 276.953125 107.851562 276.558594 106.019531 276.082031 104.199219 C 275.605469 102.382812 275.050781 100.589844 274.410156 98.824219 C 273.773438 97.058594 273.058594 95.320312 272.261719 93.617188 C 271.46875 91.917969 270.597656 90.253906 269.65625 88.628906 C 268.710938 87 267.695312 85.421875 266.609375 83.886719 C 265.523438 82.355469 264.371094 80.871094 263.148438 79.441406 C 261.929688 78.011719 260.648438 76.636719 259.304688 75.320312 C 257.960938 74.007812 256.5625 72.753906 255.105469 71.5625 C 253.648438 70.371094 252.144531 69.25 250.585938 68.195312 C 249.027344 67.140625 247.425781 66.15625 245.78125 65.246094 C 244.136719 64.335938 242.453125 63.5 240.730469 62.738281 C 239.011719 61.976562 237.257812 61.296875 235.476562 60.691406 C 233.695312 60.
1489089844 231.886719 59.566406 230.058594 59.125 C 228.230469 58.683594 226.382812 58.324219 224.523438 58.046875 Z M 134.269531 65.304688 L 164.554688 65.304688 C 165.054688 65.304688 165.546875 65.351562 166.035156 65.449219 C 166.519531 65.546875 166.996094 65.6875 167.453125 65.878906 C 167.914062 66.066406 168.347656 66.300781 168.761719 66.578125 C 169.175781 66.851562 169.558594 67.164062 169.910156 67.515625 C 170.261719 67.867188 170.574219 68.25 170.851562 68.660156 C 171.128906 69.074219 171.359375 69.507812 171.550781 69.96875 C 171.742188 70.425781 171.886719 70.898438 171.980469 71.386719 C 172.078125 71.871094 172.128906 72.363281 172.128906 72.859375 L 172.128906 74.976562 L 171.371094 74.976562 C 168.371094 76.308594 165.292969 77.417969 162.132812 78.300781 L 160.46875 78.300781 C 153.550781 79.757812 146.636719 79.757812 139.722656 78.300781 L 137.90625 78.300781 C 134.417969 77.382812 131.035156 76.175781 127.757812 74.671875 L 126.699219 74.976562 L 126.699219 72.859375 C 126.699219 72.363281 126.746094 71.871094 126.84375 71.386719 C 126.941406 70.898438 127.085938 70.425781 127.277344 69.96875 C 127.464844 69.507812 127.699219 69.074219 127.976562 68.660156 C 128.25 68.25 128.566406 67.867188 128.917969 67.515625 C 129.269531 67.164062 129.652344 66.851562 130.0625 66.578125 C 130.476562 66.300781 130.914062 66.066406 131.375 65.878906 C 131.832031 65.6875 132.304688 65.546875 132.792969 65.449219 C 133.28125 65.351562 133.773438 65.304688 134.269531 65.304688 Z M 262.984375 205.859375 C 262.996094 207.28125 262.886719 208.691406 262.664062 210.09375 C 262.4375 211.492188 262.097656 212.867188 261.644531 214.214844 C 261.195312 215.558594 260.632812 216.859375 259.964844 218.113281 C 259.296875 219.363281 258.527344 220.554688 257.664062 221.679688 C 256.796875 222.804688 255.84375 223.855469 254.804688 224.824219 C 253.761719 225.789062 252.648438 226.667969 251.464844 227.453125 C 250.277344 228.234375 249.035156 228.917969 247.738281 229.496094 C 246.4375 230.074219 245.101562 230.542969 243.726562 230.902344 C 242.347656 231.257812 240.953125 231.5 239.535156 231.625 C 238.117188 231.753906 236.699219 231.761719 235.28125 231.652344 C 233.863281 231.546875 232.464844 231.320312 231.082031 230.980469 C 229.703125 230.640625 228.359375 230.191406 227.050781 229.628906 C 225.746094 229.066406 224.496094 228.402344 223.300781 227.632812 C 222.105469 226.863281 220.980469 226.003906 219.925781 225.046875 C 218.875 224.09375 217.90625 223.058594 217.027344 221.941406 C 216.148438 220.828125 215.363281 219.648438 214.679688 218.402344 L 184.394531 163.542969 L 114.738281 163.542969 L 84.449219 218.402344 C 83.9375 219.238281 83.378906 220.042969 82.777344 220.816406 C 82.175781 221.585938 81.53125 222.324219 80.847656 223.023438 C 80.164062 223.726562 79.441406 224.386719 78.683594 225.007812 C 77.925781 225.628906 77.136719 226.207031 76.3125 226.742188 C 75.492188 227.277344 74.640625 227.761719 73.765625 228.203125 C 72.890625 228.640625 71.992188 229.03125 71.070312 229.371094 C 70.152344 229.710938 69.214844 230 68.265625 230.238281 C 67.3125 230.472656 66.351562 230.65625 65.378906 230.785156 C 64.40625 230.917969 63.429688 230.992188 62.449219 231.015625 C 61.46875 231.035156 60.492188 231.003906 59.511719 230.914062 C 58.535156 230.828125 57.566406 230.6875 56.605469 230.496094 C 55.644531 230.300781 54.695312 230.054688 53.761719 229.753906 C 52.828125 229.453125 51.914062 229.105469 51.019531 228.703125 C 50.125 228.304688 49.253906 227.855469 48.410156 227.359375 C 47.566406 226.859375 46.75 226.320312 45.964844 225.730469 C 45.179688 225.144531 44.429688 224.515625 43.714844 223.84375 C 42.488281 222.6875 41.386719 221.417969 40.417969 220.039062 C 39.445312 218.660156 38.621094 217.199219 37.945312 215.652344 C 37.265625 214.109375 36.753906 212.511719 36.398438 210.863281 C 36.042969 209.214844 35.859375 207.546875 35.84375 205.859375 L 35.84375 120.921875 C 35.8125 119.5 35.847656 118.082031 35.945312 116.664062 C 36.042969 115.246094 36.207031 113.835938 36.429688 112.429688 C 36.65625 111.027344 36.945312 109.636719 37.296875 108.261719 C 37.648438 106.882812 38.0625 105.523438 38.535156 104.183594 C 39.007812 102.84375 39.542969 101.527344 40.136719 100.234375 C 40.730469 98.941406 41.378906 97.679688 42.085938 96.445312 C 42.792969 95.210938 43.554688 94.011719 44.371094 92.847656 C 45.183594 91.683594 46.050781 90.554688 46.96875 89.46875 C 47.886719 88.382812 48.847656 87.335938 49.859375 86.335938 C 50.871094 85.335938 51.925781 84.382812 53.023438 83.476562 C 54.121094 82.570312 55.257812 81.71875 56.433594 80.914062 C 57.605469 80.109375 58.816406 79.359375 60.058594 78.664062 C 61.300781 77.972656 62.570312 77.332031 63.871094 76.753906 C 65.171875 76.171875 66.492188 75.652344 67.839844 75.191406 C 69.1875 74.726562 70.550781 74.328125 71.9375 73.988281 C 73.320312 73.652344 74.714844 73.375 76.121094 73.160156 C 78.867188 72.851562 81.621094 72.789062 84.378906 72.976562 C 87.136719 73.167969 89.855469 73.601562 92.535156 74.289062 C 95.210938 74.972656 97.804688 75.890625 100.316406 77.050781 C 102.824219 78.207031 105.210938 79.582031 107.46875 81.171875 L 111.554688 83.742188 L 115.34375 86.007812 C 122.609375 90.019531 130.332031 92.738281 138.511719 94.171875 L 140.175781 94.171875 C 142.195312 94.320312 144.214844 94.320312 146.234375 94.171875 L 150.019531 94.171875 C 158.1875 94.078125 166.058594 92.515625 173.640625 89.484375 L 174.851562 89.484375 C 177.363281 88.511719 179.789062 87.351562 182.121094 86.007812 L 183.183594 86.007812 L 187.269531 84.042969 L 191.511719 81.472656 C 193.75 79.851562 196.125 78.449219 198.632812 77.273438 C 201.140625 76.097656 203.734375 75.167969 206.417969 74.484375 C 209.101562 73.796875 211.824219 73.367188 214.589844 73.199219 C 217.351562 73.027344 220.109375 73.113281 222.855469 73.464844 C 224.253906 73.679688 225.640625 73.960938 227.011719 74.300781 C 228.386719 74.640625 229.742188 75.039062 231.078125 75.5 C 232.417969 75.964844 233.730469 76.484375 235.019531 77.0625 C 236.3125 77.640625 237.574219 78.277344 238.808594 78.96875 C 240.039062 79.660156 241.242188 80.40625 242.40625 81.203125 C 243.574219 82.003906 244.703125 82.851562 245.792969 83.753906 C 246.882812 84.652344 247.933594 85.597656 248.9375 86.59375 C 249.941406 87.585938 250.902344 88.621094 251.816406 89.699219 C 252.726562 90.78125 253.589844 91.898438 254.402344 93.054688 C 255.214844 94.210938 255.972656 95.402344 256.679688 96.625 C 257.382812 97.847656 258.035156 99.101562 258.625 100.382812 C 259.21875 101.667969 259.753906 102.972656 260.23
14890469 104.300781 C 260.707031 105.632812 261.121094 106.980469 261.476562 108.347656 C 261.832031 109.714844 262.125 111.09375 262.355469 112.488281 C 262.585938 113.882812 262.753906 115.28125 262.859375 116.691406 C 262.964844 118.097656 263.007812 119.507812 262.984375 120.921875 Z M 262.984375 205.859375 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#1f469faf6d)"},S.createElement("path",{fill:"#302926",d:"M 0 0 L 299.53125 0 L 299.53125 299.53125 L 0 299.53125 Z M 0 0 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("g",{clipPath:"url(#c8c99db841)"},S.createElement("g",{clipPath:"url(#12275323aa)"},S.createElement("path",{fill:"#60e1b7",d:"M 20.675781 50.1875 L 20.675781 246.667969 L 278.152344 246.667969 L 278.152344 50.1875 Z M 20.675781 50.1875 ",fillOpacity:1,fillRule:"nonzero"})))),yT=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:400,zoomAndPan:"magnify",viewBox:"0 0 300 299.999988",height:400,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"dd5b08994d"},S.createElement("path",{d:"M 14.25 0 L 285.75 0 C 289.53125 0 293.152344 1.5 295.828125 4.171875 C 298.5 6.847656 300 10.46875 300 14.25 L 300 285.75 C 300 289.53125 298.5 293.152344 295.828125 295.828125 C 293.152344 298.5 289.53125 300 285.75 300 L 14.25 300 C 10.46875 300 6.847656 298.5 4.171875 295.828125 C 1.5 293.152344 0 289.53125 0 285.75 L 0 14.25 C 0 10.46875 1.5 6.847656 4.171875 4.171875 C 6.847656 1.5 10.46875 0 14.25 0 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"c84cb25ff0"},S.createElement("path",{d:"M 28 148 L 97 148 L 97 282.675781 L 28 282.675781 Z M 28 148 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"54c6c1b67b"},S.createElement("path",{d:"M 204 148 L 272 148 L 272 282.675781 L 204 282.675781 Z M 204 148 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"beb1ecd10f"},S.createElement("path",{d:"M 29 17.175781 L 272 17.175781 L 272 178 L 29 178 Z M 29 17.175781 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#dd5b08994d)"},S.createElement("path",{fill:"#302926",d:"M 0 0 L 299.53125 0 L 299.53125 299.53125 L 0 299.53125 Z M 0 0 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("g",{clipPath:"url(#c84cb25ff0)"},S.createElement("path",{fill:"#60e1b7",d:"M 72.796875 282.519531 C 69.113281 282.519531 65.480469 281.53125 62.234375 279.597656 C 57.480469 276.765625 54.109375 272.261719 52.75 266.90625 L 29.316406 174.699219 C 27.953125 169.335938 28.765625 163.773438 31.597656 159.023438 C 34.429688 154.277344 38.945312 150.914062 44.308594 149.554688 L 46.960938 148.882812 C 58.035156 146.074219 69.335938 152.789062 72.140625 163.847656 L 95.574219 256.0625 C 96.933594 261.425781 96.125 266.988281 93.289062 271.738281 C 90.457031 276.484375 85.945312 279.847656 80.582031 281.207031 L 77.929688 281.878906 C 76.226562 282.308594 74.507812 282.519531 72.796875 282.519531 Z M 52.054688 155.960938 C 51 155.960938 49.925781 156.085938 48.859375 156.359375 L 46.207031 157.035156 C 42.84375 157.886719 40.011719 159.996094 38.238281 162.976562 C 36.460938 165.953125 35.957031 169.445312 36.804688 172.804688 L 60.238281 265.019531 C 61.089844 268.378906 63.203125 271.207031 66.1875 272.976562 C 69.167969 274.75 72.664062 275.253906 76.03125 274.40625 L 78.683594 273.734375 C 82.050781 272.878906 84.882812 270.769531 86.65625 267.792969 C 88.433594 264.8125 88.9375 261.320312 88.085938 257.960938 L 64.65625 165.746094 C 63.164062 159.878906 57.855469 155.960938 52.054688 155.960938 Z M 52.054688 155.960938 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("path",{fill:"#60e1b7",d:"M 48.566406 271.300781 C 35.851562 271.300781 24.234375 262.71875 20.96875 249.859375 L 9.515625 204.804688 C 7.644531 197.441406 8.757812 189.800781 12.648438 183.273438 C 16.539062 176.75 22.742188 172.125 30.113281 170.257812 L 32.050781 169.769531 C 34.121094 169.246094 36.222656 170.496094 36.742188 172.558594 L 60.292969 265.246094 C 60.820312 267.308594 59.566406 269.40625 57.5 269.929688 L 55.5625 270.425781 C 53.226562 271.015625 50.875 271.300781 48.566406 271.300781 Z M 30.222656 178.277344 C 25.636719 179.878906 21.796875 183.003906 19.285156 187.222656 C 16.449219 191.976562 15.640625 197.546875 17.003906 202.90625 L 28.449219 247.96875 C 31.109375 258.429688 41.351562 265.003906 51.828125 263.328125 Z M 30.222656 178.277344 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("g",{clipPath:"url(#54c6c1b67b)"},S.createElement("path",{fill:"#60e1b7",d:"M 227.453125 282.511719 C 225.769531 282.511719 224.066406 282.308594 222.359375 281.875 L 219.707031 281.199219 C 214.34375 279.84375 209.824219 276.480469 206.996094 271.730469 C 204.164062 266.984375 203.355469 261.417969 204.714844 256.058594 L 228.144531 163.84375 C 229.503906 158.488281 232.875 153.980469 237.628906 151.15625 C 242.386719 148.332031 247.960938 147.519531 253.328125 148.882812 L 255.980469 149.554688 C 261.34375 150.914062 265.863281 154.277344 268.691406 159.023438 C 271.523438 163.773438 272.332031 169.335938 270.972656 174.699219 L 247.542969 266.914062 C 245.16
14897969 276.261719 236.714844 282.511719 227.453125 282.511719 Z M 248.210938 155.953125 C 245.902344 155.953125 243.625 156.578125 241.585938 157.785156 C 238.605469 159.558594 236.492188 162.382812 235.636719 165.742188 L 212.207031 257.957031 C 211.351562 261.316406 211.859375 264.808594 213.636719 267.785156 C 215.414062 270.765625 218.242188 272.875 221.609375 273.726562 L 224.261719 274.402344 C 231.207031 276.160156 238.289062 271.949219 240.050781 265.015625 L 263.480469 172.800781 C 264.335938 169.441406 263.828125 165.949219 262.050781 162.96875 C 260.273438 159.992188 257.445312 157.882812 254.078125 157.027344 L 251.425781 156.355469 C 250.367188 156.085938 249.285156 155.953125 248.210938 155.953125 Z M 248.210938 155.953125 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("path",{fill:"#60e1b7",d:"M 251.726562 271.300781 C 249.414062 271.300781 247.066406 271.015625 244.730469 270.425781 L 242.792969 269.929688 C 240.726562 269.40625 239.472656 267.308594 240 265.246094 L 263.550781 172.5625 C 264.074219 170.5 266.175781 169.25 268.242188 169.773438 L 270.179688 170.261719 C 277.550781 172.128906 283.753906 176.75 287.644531 183.277344 C 291.535156 189.800781 292.644531 197.449219 290.777344 204.808594 L 279.328125 249.871094 C 276.058594 262.71875 264.441406 271.300781 251.726562 271.300781 Z M 248.453125 263.320312 C 258.925781 265.003906 269.175781 258.425781 271.832031 247.964844 L 283.28125 202.898438 C 285.9375 192.4375 280.070312 181.78125 270.0625 178.273438 Z M 248.453125 263.320312 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("g",{clipPath:"url(#beb1ecd10f)"},S.createElement("path",{fill:"#60e1b7",d:"M 267.289062 177.367188 C 265.15625 177.367188 263.425781 175.640625 263.425781 173.507812 L 263.425781 138.136719 C 263.425781 107.929688 251.644531 79.523438 230.246094 58.164062 C 208.851562 36.800781 180.402344 25.039062 150.144531 25.039062 C 119.890625 25.039062 91.4375 36.800781 70.039062 58.164062 C 48.644531 79.523438 36.863281 107.929688 36.863281 138.136719 L 36.863281 173.507812 C 36.863281 175.640625 35.132812 177.367188 33 177.367188 C 30.867188 177.367188 29.136719 175.640625 29.136719 173.507812 L 29.136719 138.136719 C 29.136719 105.867188 41.722656 75.523438 64.578125 52.707031 C 87.433594 29.890625 117.824219 17.324219 150.144531 17.324219 C 182.46875 17.324219 212.859375 29.890625 235.714844 52.710938 C 258.566406 75.527344 271.15625 105.871094 271.15625 138.140625 L 271.15625 173.515625 C 271.152344 175.640625 269.425781 177.367188 267.289062 177.367188 Z M 267.289062 177.367188 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("path",{fill:"#60e1b7",d:"M 51.726562 155.382812 C 49.59375 155.382812 47.863281 153.65625 47.863281 151.527344 L 47.863281 137.125 C 47.863281 80.8125 93.742188 35.003906 150.144531 35.003906 C 152.28125 35.003906 154.011719 36.730469 154.011719 38.859375 C 154.011719 40.988281 152.28125 42.71875 150.144531 42.71875 C 98.011719 42.71875 55.589844 85.070312 55.589844 137.125 L 55.589844 151.527344 C 55.589844 153.65625 53.859375 155.382812 51.726562 155.382812 Z M 51.726562 155.382812 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 248.566406 155.382812 C 246.433594 155.382812 244.703125 153.65625 244.703125 151.527344 L 244.703125 137.125 C 244.703125 85.066406 202.28125 42.71875 150.144531 42.71875 C 148.011719 42.71875 146.28125 40.988281 146.28125 38.859375 C 146.28125 36.730469 148.011719 35.003906 150.144531 35.003906 C 206.550781 35.003906 252.429688 80.8125 252.429688 137.125 L 252.429688 151.527344 C 252.429688 153.65625 250.699219 155.382812 248.566406 155.382812 Z M 248.566406 155.382812 ",fillOpacity:1,fillRule:"nonzero"})),vT=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:400,zoomAndPan:"magnify",viewBox:"0 0 300 299.999988",height:400,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"7f8bf8527a"},S.createElement("path",{d:"M 14.25 0 L 285.75 0 C 289.53125 0 293.152344 1.5 295.828125 4.171875 C 298.5 6.847656 300 10.46875 300 14.25 L 300 285.75 C 300 289.53125 298.5 293.152344 295.828125 295.828125 C 293.152344 298.5 289.53125 300 285.75 300 L 14.25 300 C 10.46875 300 6.847656 298.5 4.171875 295.828125 C 1.5 293.152344 
14890 289.53125 0 285.75 L 0 14.25 C 0 10.46875 1.5 6.847656 4.171875 4.171875 C 6.847656 1.5 10.46875 0 14.25 0 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"0c71d24b2f"},S.createElement("path",{d:"M 11.039062 45.78125 L 289.289062 45.78125 L 289.289062 254.28125 L 11.039062 254.28125 Z M 11.039062 45.78125 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#7f8bf8527a)"},S.createElement("path",{fill:"#302926",d:"M 0 0 L 299.53125 0 L 299.53125 299.53125 L 0 299.53125 Z M 0 0 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("g",{clipPath:"url(#0c71d24b2f)"},S.createElement("path",{fill:"#60e1b7",d:"M 289.28125 45.78125 L 289.28125 223.886719 C 289.28125 241.21875 276.582031 254.277344 260.710938 254.277344 L 48.84375 254.277344 C 22.636719 254.277344 11.042969 243.0625 11.042969 209.875 L 11.042969 81.925781 L 47.734375 81.925781 L 47.734375 45.789062 L 289.273438 45.789062 Z M 47.746094 99.410156 L 28.550781 99.410156 L 28.550781 209.871094 C 28.550781 226.835938 32.613281 234.945312 37.777344 234.945312 C 44.054688 234.945312 47.746094 226.832031 47.746094 209.871094 Z M 271.785156 63.269531 L 65.242188 63.269531 L 65.242188 209.867188 C 65.242188 221.667969 63.027344 230.148438 59.703125 236.785156 L 260.71875 236.785156 C 267.363281 236.785156 271.792969 229.042969 271.792969 223.878906 Z M 146.289062 135.761719 L 95.066406 135.761719 L 95.066406 129.125 L 146.289062 129.125 Z M 146.289062 157.519531 L 95.066406 157.519531 L 95.066406 150.882812 L 146.289062 150.882812 Z M 146.289062 178.539062 L 95.066406 178.539062 L 95.066406 171.902344 L 146.289062 171.902344 Z M 146.289062 198.824219 L 95.066406 198.824219 L 95.066406 192.183594 L 146.289062 192.183594 Z M 106.429688 94.828125 L 229.339844 94.828125 L 229.339844 107.125 L 106.429688 107.125 Z M 164.746094 129.125 L 243.363281 129.125 L 243.363281 191.84375 L 164.746094 191.84375 Z M 164.746094 129.125 ",fillOpacity:1,fillRule:"nonzero"}))),xT=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:400,zoomAndPan:"magnify",viewBox:"0 0 300 299.999988",height:400,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"a203f9c3db"},S.createElement("path",{d:"M 14.25 0 L 285.75 0 C 289.53125 0 293.152344 1.5 295.828125 4.171875 C 298.5 6.847656 300 10.46875 300 14.25 L 300 285.75 C 300 289.53125 298.5 293.152344 295.828125 295.828125 C 293.152344 298.5 289.53125 300 285.75 300 L 14.25 300 C 10.46875 300 6.847656 298.5 4.171875 295.828125 C 1.5 293.152344 0 289.53125 0 285.75 L 0 14.25 C 0 10.46875 1.5 6.847656 4.171875 4.171875 C 6.847656 1.5 10.46875 0 14.25 0 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"b1f7c2beca"},S.createElement("path",{d:"M 5.746094 33 L 294 33 L 294 267 L 5.746094 267 Z M 5.746094 33 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#a203f9c3db)"},S.createElement("path",{fill:"#302926",d:"M 0 0 L 299.53125 0 L 299.53125 299.53125 L 0 299.53125 Z M 0 0 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("g",{clipPath:"url(#b1f7c2beca)"},S.createElement("path",{fill:"#60e1b7",d:"M 229.722656 265.914062 C 226.226562 264.316406 224.574219 261.800781 224.890625 258.558594 L 225.15625 255.855469 L 217.296875 255.757812 C 212.976562 255.707031 205.992188 255.28125 201.777344 254.816406 C 195.339844 254.101562 193.476562 254.269531 190.121094 255.855469 C 187.210938 257.234375 184.914062 257.574219 181.628906 257.113281 C 178.820312 256.71875 175.304688 257.0625 172.289062 258.023438 C 166.441406 259.886719 160.996094 260.027344 157.882812 258.394531 C 155.988281 257.398438 155.632812 256.730469 155.898438 254.644531 L 156.222656 252.105469 L 141.195312 252.171875 C 132.933594 252.207031 123.769531 252.636719 120.832031 253.128906 C 117.679688 253.652344 111.980469 253.566406 106.917969 252.917969 C 99.492188 251.964844 97.585938 252.074219 92.683594 253.722656 C 88.558594 255.113281 82.015625 255.847656 68.523438 256.4375 C 49.734375 257.257812 43.007812 258.132812 43.640625 259.671875 C 44.652344 262.132812 40.371094 261.445312 30.800781 257.613281 C 27.671875 256.363281 20.785156 254.695312 15.5 253.910156 L 5.894531 252.480469 L 12.820312 251.632812 C 20.761719 250.65625 25.65625 251.324219 33.5 254.445312 C 37.402344 255.996094 39.933594 256.425781 42.042969 255.898438 C 51.617188 253.492188 54.945312 253.140625 68.523438 253.125 C 81.183594 253.105469 84.445312 252.757812 89.867188 250.847656 C 95.425781 248.886719 97.511719 248.6875 105.757812 249.308594 L 115.25 250.027344 L 114.765625 247.585938 C 114.503906 246.242188 112.347656 237.671875 109.980469 228.539062 C 105.324219 210.578125 101.882812 199.523438 99.65625 195.390625 L 98.25 192.773438 L 92.433594 204.496094 C 84.921875 219.636719 81.230469 230.789062 80.136719 241.660156 C 78.96875 253.238281 77.855469 252.265625 78.292969 240.054688 C 79.011719 220.003906 87.363281 192.851562 94.519531 187.277344 C 97.386719 
1489185.046875 101.546875 185.308594 104.367188 187.894531 C 105.683594 189.101562 106.867188 189.929688 106.996094 189.730469 C 107.445312 189.058594 99.730469 163.738281 96.300781 154.621094 C 85.726562 126.515625 72.085938 102.726562 59.042969 89.648438 C 56.960938 87.5625 55.410156 85.628906 55.589844 85.351562 C 56.121094 84.554688 64.496094 91.246094 70.132812 96.96875 C 85.609375 112.683594 99.832031 134.917969 111.699219 161.957031 C 114.375 168.050781 116.5625 172.535156 116.5625 171.917969 C 116.5625 169.34375 113.464844 146.730469 111.492188 134.890625 C 106.933594 107.542969 98.671875 75.058594 90.5625 52.605469 C 88.421875 46.675781 86.671875 41.546875 86.671875 41.210938 C 86.671875 40.875 88.773438 43.71875 91.347656 47.53125 C 105.269531 68.175781 115.625 97.546875 124.765625 142.304688 L 127.171875 154.085938 L 127.210938 142.839844 C 127.257812 128.167969 129.003906 98.675781 130.820312 81.839844 C 132.335938 67.816406 137 34.589844 137.578125 33.722656 C 138.546875 32.261719 138.648438 35.589844 137.964844 46.589844 C 136.914062 63.433594 137.050781 91.605469 138.253906 106.953125 C 138.808594 114.023438 140.957031 134.386719 143.027344 152.207031 C 147.304688 189.019531 146.972656 188.484375 150.316406 163.957031 C 153.625 139.699219 155.269531 112.5 156.140625 67.585938 C 156.410156 53.59375 156.84375 42.144531 157.101562 42.144531 C 157.914062 42.144531 162.078125 77.496094 162.898438 91.363281 C 163.332031 98.699219 163.570312 111.53125 163.425781 119.878906 L 163.164062 135.054688 L 165.308594 129.261719 C 170.824219 114.339844 179.695312 99.433594 192.125 84.1875 C 199.011719 75.746094 201.714844 75.078125 196.472656 83.117188 C 192.097656 89.832031 186.261719 103.589844 181.328125 118.832031 C 177.625 130.277344 172.554688 149.273438 173.015625 149.96875 C 173.160156 150.183594 174.816406 147.410156 176.699219 143.808594 C 182.34375 132.988281 196.132812 112.09375 202.0625 105.371094 C 207.914062 98.730469 218.011719 90.574219 218.835938 91.816406 C 219.105469 92.21875 218.0625 94.0625 216.519531 95.910156 C 208.613281 105.367188 201.5 118.375 189.011719 146.199219 C 182.484375 160.734375 181.203125 164.339844 179.3125 173.484375 C 178.113281 179.277344 177.199219 184.117188 177.277344 184.234375 C 177.359375 184.355469 180.699219 178.253906 184.707031 170.671875 C 194.90625 151.367188 197.085938 149.265625 206.929688 149.265625 C 214.539062 149.265625 215.171875 150.414062 220.328125 173.4375 C 225.753906 197.683594 227.621094 212.425781 228.6875 239.519531 C 228.960938 246.441406 229.277344 252.105469 229.394531 252.105469 C 229.511719 252.105469 231.152344 251.105469 233.046875 249.882812 C 239.5625 245.675781 247.347656 243.550781 256.277344 243.542969 C 265.945312 243.53125 270.179688 244.820312 272.878906 248.585938 C 274.679688 251.097656 275.09375 251.210938 280.039062 250.511719 C 285.847656 249.695312 291.632812 250.539062 293.375 252.460938 C 294.261719 253.4375 292.390625 253.710938 284.882812 253.710938 C 275.269531 253.710938 275.25 253.722656 273.660156 256.625 C 271.800781 260.027344 269.957031 261.175781 261.75 264.042969 C 254.585938 266.542969 233.765625 267.761719 229.722656 265.917969 Z M 247.382812 263.867188 C 256.023438 262.71875 268.253906 259.125 270.402344 257.109375 C 271.210938 256.347656 271.710938 254.636719 271.703125 252.652344 L 271.691406 249.425781 L 270.800781 252.078125 C 268.917969 257.683594 258.777344 260.675781 241.652344 260.675781 C 235.742188 260.675781 231.058594 260.449219 231.242188 260.175781 C 231.425781 259.898438 238.425781 259.183594 246.796875 258.582031 C 260.320312 257.613281 262.386719 257.21875 265.265625 255.066406 C 267.390625 253.480469 268.585938 251.84375 268.730469 250.335938 C 268.925781 248.261719 268.445312 247.90625 263.816406 246.730469 C 258.148438 245.292969 249.902344 245.945312 242.722656 248.40625 C 237.410156 250.222656 227.085938 256.082031 226.449219 257.640625 C 225.566406 259.785156 228.785156 263.007812 232.65625 263.855469 C 238.132812 265.054688 238.488281 265.054688 247.382812 263.867188 Z M 175.277344 253.695312 C 181.398438 250.5625 182.90625 245.199219 179.679688 238.070312 C 178.066406 234.507812 177.929688 234.433594 173.296875 234.59375 C 166.03125 234.84375 163.734375 237.023438 160.554688 246.691406 C 159.109375 251.078125 158.113281 255.117188 158.339844 255.667969 C 158.96875 257.195312 171.230469 255.765625 175.277344 253.695312 Z M 188.753906 253.203125 C 191.113281 251.851
1489562 191.117188 248.59375 188.761719 246.269531 C 186.222656 243.769531 183.882812 244.46875 183.578125 247.820312 C 183.445312 249.292969 182.835938 251.34375 182.222656 252.371094 C 181.183594 254.125 181.300781 254.246094 184.019531 254.246094 C 185.621094 254.246094 187.753906 253.777344 188.757812 253.203125 Z M 228.300781 253.117188 C 228.300781 249.394531 221.730469 218.703125 217.652344 203.363281 C 215.078125 193.691406 208.535156 173.296875 206.039062 167.164062 L 204.386719 163.101562 L 199.339844 172.519531 C 190.074219 189.816406 180.832031 213.082031 178.425781 225.183594 C 177.675781 228.945312 177.753906 229.484375 179.378906 231.933594 C 180.351562 233.398438 181.578125 236.390625 182.105469 238.585938 C 182.921875 241.984375 183.308594 242.484375 184.714844 241.953125 C 186.957031 241.105469 191.054688 244.210938 192.480469 247.839844 C 193.617188 250.738281 193.859375 250.832031 201.898438 251.566406 C 206.4375 251.984375 213.757812 252.4375 218.164062 252.578125 C 222.570312 252.71875 226.386719 253.152344 226.644531 253.539062 C 227.363281 254.621094 228.300781 254.382812 228.300781 253.117188 Z M 122.765625 248.484375 C 122.945312 248.210938 120.625 216.972656 118.980469 197.507812 C 117.726562 182.628906 117.050781 180.085938 110.335938 164.800781 C 101.71875 145.171875 89.261719 123.292969 79.828125 111.195312 L 7
14895.683594 105.882812 L 80.910156 114.988281 C 91.703125 133.789062 103.445312 164.4375 109.789062 190.355469 C 113.207031 204.316406 117.089844 227.375 118.144531 239.957031 C 118.992188 250.035156 119.003906 250.078125 120.800781 249.398438 C 121.796875 249.023438 122.679688 248.613281 122.765625 248.484375 Z M 158.585938 244.730469 C 160.769531 237.085938 163.121094 234.226562 169.105469 231.9375 C 171.9375 230.855469 174.511719 229.527344 174.828125 228.988281 C 175.140625 228.445312 175.980469 225.59375 176.6875 222.644531 C 180.546875 206.621094 192.285156 178.683594 201.140625 164.441406 C 203.292969 160.984375 203.328125 160.761719 202.273438 157.6875 C 200.894531 153.679688 199.539062 152.886719 197.511719 154.902344 C 189.949219 162.421875 170.203125 204.175781 160.988281 232.15625 C 156.433594 245.976562 155.496094 249.960938 156.796875 249.960938 C 156.957031 249.960938 157.761719 247.609375 158.585938 244.730469 Z M 116.207031 236.683594 C 113.765625 220.40625 110.917969 205.003906 109.695312 201.445312 C 108.125 196.878906 103.742188 189.972656 102.421875 189.988281 C 101.785156 190 100.792969 190.453125 100.222656 190.996094 C 99.359375 191.816406 99.488281 192.347656 100.960938 194.09375 C 103.933594 197.613281 107.277344 208.472656 115.46875 241.1875 C 116.546875 245.492188 117.546875 248.839844 117.6875 248.628906 C 117.828125 248.417969 117.160156 243.039062 116.207031 236.683594 Z M 130.121094 247.820312 C 131.578125 247.820312 131.644531 250.898438 129.402344 214.074219 C 128.652344 201.703125 127.824219 185.554688 127.570312 178.191406 C 127.15625 166.273438 126.710938 162.855469 123.519531 147.125 C 116.703125 113.5 109.640625 89.402344 100.636719 69.046875 C 94.214844 54.519531 92.972656 53.625 97.609375 66.859375 C 110.300781 103.113281 118.828125 156.683594 123.40625 228.894531 L 124.683594 249.070312 L 126.761719 248.445312 C 127.90625 248.101562 129.417969 247.820312 130.121094 247.820312 Z M 157.597656 235.765625 C 160.898438 223.960938 161.308594 221.601562 161.703125 212.226562 C 163.246094 175.328125 173.375 128.371094 186.421875 97.640625 L 189.289062 90.882812 L 184.183594 98.382812 C 173.273438 114.410156 164.8125 135.363281 160.003906 158.261719 C 155.226562 181.027344 150.035156 216.824219 148.960938 234.429688 C 148.707031 238.554688 148.339844 243.21875 148.144531 244.796875 C 147.777344 247.734375 148.128906 248.027344 152.859375 248.730469 C 153.585938 248.835938 155.101562 244.6875 157.597656 235.765625 Z M 138.851562 232.25 C 139.953125 223.6875 141.824219 211.4375 143.007812 205.035156 L 145.164062 193.390625 L 142.605469 172.132812 C 136.894531 124.632812 135.121094 102.8125 134.992188 78.566406 L 134.914062 64.101562 L 133.914062 74.28125 C 129.539062 118.773438 128.953125 173.582031 132.265625 228.539062 C 133.355469 246.632812 133.542969 247.820312 135.308594 247.820312 C 136.726562 247.820312 137.011719 246.570312 138.851562 232.25 Z M 145.996094 238.777344 C 146.960938 219.851562 153.289062 175.207031 157.835938 155.238281 C 160.316406 144.351562 160.566406 142.183594 160.859375 128.914062 C 161.234375 112.203125 160.328125 82.367188 159.023438 68.386719 C 158.128906 58.839844 158.117188 59.042969 157.6875 89.277344 C 157.050781 133.886719 155.035156 155.359375 147.886719 193.722656 C 144.691406 210.875 140.050781 241.972656 140.050781 246.230469 C 140.050781 247.359375 140.839844 247.820312 142.789062 247.820312 L 145.53125 247.820312 Z M 225.46875 221.4375 C 225.050781 216.210938 224.226562 207.953125 223.632812 203.085938 C 222.417969 193.09375 216.910156 166.480469 214.378906 158.371094 L 212.707031 153.011719 L 207.273438 152.699219 C 202.976562 152.449219 201.960938 152.671875 202.402344 153.769531 C 202.710938 154.535156 204.351562 158.40625 206.050781 162.378906 C 211.3125 174.660156 218.847656 199.261719 222.410156 215.765625 C 224.277344 224.433594 225.902344 231.398438 226.019531 231.238281 C 226.132812 231.074219 225.886719 226.667969 225.46875 221.4375 Z M 89.992188 205.101562 C 92.585938 199.433594 95.523438 193.46875 96.519531 191.847656 C 97.988281 189.449219 98.101562 188.902344 97.
1489125 188.902344 C 93.769531 188.902344 86.515625 203.585938 83.210938 217.0625 C 81.234375 225.117188 81.300781 225.855469 83.488281 220.097656 C 84.46875 217.519531 87.394531 210.769531 89.992188 205.101562 Z M 174.558594 182.449219 C 179.859375 160.179688 180.042969 159.640625 189.191406 139.519531 C 197.613281 120.992188 200.875 114.558594 206.1875 105.984375 L 209.441406 100.730469 L 205.882812 104.375 C 198.230469 112.21875 176.320312 147.628906 171.496094 159.941406 C 168.847656 166.710938 164.210938 200.1875 164.257812 212.238281 C 164.277344 217.664062 170.359375 200.070312 174.558594 182.449219 Z M 174.558594 182.449219 ",fillOpacity:1,fillRule:"nonzero"}))),CT=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:400,zoomAndPan:"magnify",viewBox:"0 0 300 299.999988",height:400,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"69c0794895"},S.createElement("path",{d:"M 14.25 0 L 285.75 0 C 289.53125 0 293.152344 1.5 295.828125 4.171875 C 298.5 6.847656 300 10.46875 300 14.25 L 300 285.75 C 300 289.53125 298.5 293.152344 295.828125 295.828125 C 293.152344 298.5 289.53125 300 285.75 300 L 14.25 300 C 10.46875 300 6.847656 298.5 4.171875 295.828125 C 1.5 293.152344 0 289.53125 0 285.75 L 0 14.25 C 0 10.46875 1.5 6.847656 4.171875 4.171875 C 6.847656 1.5 10.46875 0 14.25 0 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"ee0580fbaa"},S.createElement("path",{d:"M 32.9375 14.738281 L 266.9375 14.738281 L 266.9375 285.488281 L 32.9375 285.488281 Z M 32.9375 14.738281 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"de5ca11018"},S.createElement("path",{d:"M 149.890625 217.582031 C 155.238281 217.582031 159.589844 213.226562 159.589844 207.867188 C 159.589844 202.511719 155.242188 198.15625 149.890625 198.15625 C 144.542969 198.15625 140.191406 202.515625 140.191406 207.867188 C 140.191406 213.222656 144.542969 217.582031 149.890625 217.582031 Z M 149.890625 202.457031 C 152.871094 202.457031 155.300781 204.882812 155.300781 207.871094 C 155.300781 210.855469 152.875 213.285156 149.890625 213.285156 C 146.910156 213.285156 144.484375 210.859375 144.484375 207.871094 C 144.484375 204.882812 146.910156 202.457031 149.890625 202.457031 Z M 149.890625 186.679688 C 154.464844 186.679688 158.1875 182.957031 158.1875 178.375 C 158.1875 173.796875 154.464844 170.070312 149.890625 170.070312 C 145.320312 170.070312 141.597656 173.796875 141.597656 178.375 C 141.597656 182.957031 145.320312 186.679688 149.890625 186.679688 Z M 149.890625 174.367188 C 152.097656 174.367188 153.894531 176.164062 153.894531 178.375 C 153.894531 180.585938 152.101562 182.382812 149.890625 182.382812 C 147.683594 182.382812 145.890625 180.585938 145.890625 178.375 C 145.890625 176.164062 147.683594 174.367188 149.890625 174.367188 Z M 149.890625 224.949219 C 159.296875 224.949219 166.949219 217.289062 166.949219 207.871094 C 166.949219 198.453125 159.296875 190.789062 149.890625 190.789062 C 140.488281 190.789062 132.835938 198.453125 132.835938 207.871094 C 132.835938 217.289062 140.488281 224.949219 149.890625 224.949219 Z M 149.890625 195.085938 C 156.929688 195.085938 162.65625 200.820312 162.65625 207.871094 C 162.65625 214.917969 156.929688 220.652344 149.890625 220.652344 C 142.855469 220.652344 137.128906 214.917969 137.128906 207.871094 C 137.125 200.824219 142.855469 195.085938 149.890625 195.085938 Z M 164.6875 243.722656 C 164.6875 238.699219 168.769531 234.609375 173.785156 234.609375 C 185.042969 234.609375 194.199219 225.441406 194.199219 214.171875 L 194.199219 160.039062 C 194.199219 158.851562 193.238281 157.890625 192.050781 157.890625 L 189.785156 157.890625 L 189.785156 93.007812 C 189.785156 79.25 178.605469 68.054688 164.863281 68.054688 L 134.917969 68.054688 C 121.179688 68.054688 110 79.246094 110 93.007812 L 110 157.886719 L 107.730469 157.886719 C 106.546875 157.886719 105.585938 158.851562 105.585938 160.035156 L 105.585938 214.167969 C 105.585938 225.441406 114.742188 234.609375 125.996094 234.609375 L 126.613281 234.609375 C 131.289062 234.609375 135.09375 238.417969 135.09375 243.101562 L 135.09375 259.617188 C 135.09375 261.992188 133.167969 263.921875 130.800781 263.921875 L 125.703125 263.921875 C 117.953125 263.921875 111.648438 270.234375 111.
1489648438 277.992188 L 111.648438 283.339844 C 111.648438 284.527344 112.613281 285.488281 113.796875 285.488281 L 185.988281 285.488281 C 187.171875 285.488281 188.132812 284.527344 188.132812 283.339844 L 188.132812 277.992188 C 188.132812 270.234375 181.828125 263.921875 174.082031 263.921875 L 168.984375 263.921875 C 166.613281 263.921875 164.691406 261.992188 164.691406 259.617188 L 164.691406 243.722656 Z M 139.386719 247.75 L 160.394531 247.75 L 160.394531 250.785156 L 139.386719 250.785156 Z M 114.292969 93.007812 C 114.292969 81.621094 123.546875 72.351562 134.921875 72.351562 L 164.863281 72.351562 C 176.238281 72.351562 185.492188 81.621094 185.492188 93.007812 L 185.492188 157.886719 L 181.4375 157.886719 L 181.4375 92.074219 C 181.4375 83.054688 174.109375 75.714844 165.105469 75.714844 L 134.679688 75.714844 C 125.671875 75.714844 118.34375 83.054688 118.34375 92.074219 L 118.34375 157.890625 L 114.292969 157.890625 Z M 122.636719 157.890625 L 122.636719 92.074219 C 122.636719 85.421875 128.039062 80.011719 134.679688 80.011719 L 165.101562 80.011719 C 171.742188 80.011719 177.144531 85.421875 177.144531 92.074219 L 177.144531 157.890625 Z M 126.613281 230.3125 L 125.996094 230.3125 C 117.105469 230.3125 109.875 223.070312 109.875 214.171875 L 109.875 162.1875 L 189.902344 162.1875 L 189.902344 214.171875 C 189.902344 223.070312 182.671875 230.3125 173.785156 230.3125 C 166.492188 230.3125 160.554688 236.183594 160.410156 243.449219 L 139.386719 243.449219 L 139.386719 243.101562 C 139.386719 236.050781 133.660156 230.3125 126.613281 230.3125 Z M 168.980469 268.21875 L 174.082031 268.21875 C 179.460938 268.21875 183.839844 272.601562 183.839844 277.992188 L 183.839844 281.191406 L 115.941406 281.191406 L 115.941406 277.992188 C 115.941406 272.601562 120.320312 268.21875 125.703125 268.21875 L 130.800781 268.21875 C 135.535156 268.21875 139.386719 264.359375 139.386719 259.617188 L 139.386719 255.082031 L 160.394531 255.082031 L 160.394531 259.617188 C 160.394531 264.359375 164.246094 268.21875 168.980469 268.21875 Z M 96.078125 235.75 C 96.746094 236.097656 97.542969 236.070312 98.183594 235.679688 C 98.824219 235.292969 99.214844 234.597656 99.214844 233.847656 L 99.214844 216.617188 C 99.214844 215.878906 98.832031 215.191406 98.207031 214.796875 C 69.417969 196.777344 52.230469 165.753906 52.230469 131.804688 C 52.230469 77.878906 96.042969 34.007812 149.890625 34.007812 C 203.742188 34.007812 247.554688 77.875 247.554688 131.804688 C 247.554688 165.753906 230.363281 196.78125 201.574219 214.796875 C 200.949219 215.191406 200.566406 215.878906 200.566406 216.621094 L 200.566406 233.847656 C 200.566406 234.597656 200.957031 235.292969 201.597656 235.683594 C 201.941406 235.890625 202.328125 235.996094 202.710938 235.996094 C 203.050781 235.996094 203.390625 235.914062 203.703125 235.753906 C 242.621094 215.515625 266.796875 175.683594 266.796875 131.804688 C 266.796875 67.253906 214.351562 14.738281 149.890625 14.738281 C 85.433594 14.738281 32.988281 67.253906 32.988281 131.804688 C 32.988281 175.679688 57.164062 215.515625 96.078125 235.75 Z M 149.890625 19.035156 C 211.988281 19.035156 262.503906 69.625 262.503906 131.804688 C 262.503906 172.878906 240.507812 210.277344 204.859375 230.246094 L 204.859375 217.804688 C 234.304688 198.90625 251.847656 166.847656 251.847656 131.804688 C 251.847656 75.507812 206.113281 29.707031 149.890625 29.707031 C 93.671875 29.707031 47.9375 75.507812 47.9375 131.804688 C 47.9375 166.847656 65.476562 198.90625 94.921875 217.804688 L 94.921875 230.246094 C 59.277344 210.277344 37.277344 172.878906 37.277344 131.804688 C 37.277344 69.625 87.796875 19.035156 149.890625 19.035156 Z M 218.886719 125.84375 C 218.886719 142.839844 212.679688 159.152344 201.398438 171.8125 C 200.566406 172.335938 200.566406 173.5625 200.566406 182.097656 L 200.566406 190.632812 C 200.566406 191.460938 201.046875 192.21875 201.792969 192.574219 C 202.085938 192.710938 202.402344 192.78125 202.710938 192.78125 C 203.199219 192.78125 203.679688 192.613281 204.070312 192.292969 C 224.078125 175.917969 235.554688 151.695312 235.554688 125.847656 C 235.554688 78.546875 197.128906 40.066406 149.890625 40.066406 C 102.65625 40.066406 64.230469 78.546875 64.230469 125.847656 C 64.230469 151.695312 75.703125 175.917969 95.714844 192.292969 C 96.355469 192.820312 97.238281 192.925781 97.988281 192.570312 C 98.738281 192.214844 99.21875 191.457031 99.21875 190.628906 L 99.21875 182.097656 C 99.21875 173.558594 99.21875 172.335938 98.382812 171.8125 C 87.105469 159.148438 80.898438 142.839844 80.898438 125.84375 C 80.898438 87.746094 111.851562 56.75 149.894531 56.75 C 187.9375 56.75 218.886719 87.75 218.886719 125.84375 Z M 76.605469 125.84375 C 76.605469 143.769531 83.105469 160.972656 94.921875 174.382812 C 94.921875 176.425781 94.921875 181.898438 94.921875 185.929688 C 78.085938 170.496094 68.519531 148.851562 68.519531 125.84375 C 68.519531 80.914062 105.023438 44.363281 149.890625 44.363281 C 194.757812 44.363281 231.261719 80.914062 231.261719 125.84375 C 231.261719 148.851562 221.695312 170.496094 204.855469 185.929688 C 204.855469 181.898438 204.855469 176.425781 204.855469 174.382812 C 216.675781 160.972656 223.175781 143.769531 223.175781 125.84375 C 223.175781 85.378906 190.296875 52.457031 149.886719 52.457031 C 109.476562 52.457031 76.605469 85.378906 76.605469 125.84375 Z M 76.605469 125.84375 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#69c0794895)"},S.createElement("path",{fill:"#302926",d:"M 0 0 L 299.53125 0 L 299.53125 299.53125 L 0 299.53125 Z M 0 0 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("g",{clipPath:"url(#ee0580fbaa)"},S.createElement("g",{clipPath:"url(#de5ca11018)"},S.createElement("path",{fill:"#60e1b7",d:"M 32.988281 14.738281 L 32.988281 285.488281 L 266.796875 285.488281 L 266.796875 14.738281 Z M 32.988281 14.738281 ",fillOpacity:1,fillRule:"nonzero"})))),bT=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:400,zoomAndPan:"magnify",viewBox:"0 0 300 299.999988",he
1489ight:400,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"eb90bdb9d7"},S.createElement("path",{d:"M 14.25 0 L 285.75 0 C 289.53125 0 293.152344 1.5 295.828125 4.171875 C 298.5 6.847656 300 10.46875 300 14.25 L 300 285.75 C 300 289.53125 298.5 293.152344 295.828125 295.828125 C 293.152344 298.5 289.53125 300 285.75 300 L 14.25 300 C 10.46875 300 6.847656 298.5 4.171875 295.828125 C 1.5 293.152344 0 289.53125 0 285.75 L 0 14.25 C 0 10.46875 1.5 6.847656 4.171875 4.171875 C 6.847656 1.5 10.46875 0 14.25 0 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"5727d16208"},S.createElement("path",{d:"M 83.734375 4.175781 L 214 4.175781 L 214 295.925781 L 83.734375 295.925781 Z M 83.734375 4.175781 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"c303d31ec7"},S.createElement("path",{d:"M 123.570312 125.609375 L 216.296875 125.609375 L 216.296875 233.894531 L 123.570312 233.894531 Z M 123.570312 125.609375 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#eb90bdb9d7)"},S.createElement("path",{fill:"#302926",d:"M 0 0 L 299.53125 0 L 299.53125 299.53125 L 0 299.53125 Z M 0 0 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("g",{clipPath:"url(#5727d16208)"},S.createElement("path",{fill:"#60e1b7",d:"M 128.929688 186.984375 L 102.21875 187.9375 L 89.273438 89.867188 L 110.738281 89.105469 C 112.324219 111.390625 114.980469 144.460938 116.453125 166.5625 L 120.839844 166.40625 C 127.257812 144.984375 141.265625 109.363281 149.007812 87.742188 L 173.957031 86.882812 C 158.53125 120.230469 143.539062 153.773438 128.949219 187.496094 Z M 110.683594 242.136719 C 147.441406 163.886719 182.566406 84.800781 213.816406 4.179688 C 200.726562 29.859375 188.378906 55.90625 176.207031 82.027344 L 176.207031 81.921875 L 145.558594 82.980469 C 139.664062 99.355469 125.769531 135.902344 120.332031 152.023438 C 119.269531 136.621094 116.335938 99.800781 115.257812 84.0625 L 83.734375 85.183594 L 97.960938 192.972656 L 127.03125 191.933594 C 112.242188 226.363281 97.714844 260.914062 84.355469 295.925781 C 93.449219 278.148438 102.113281 260.167969 110.683594 242.136719 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("g",{clipPath:"url(#c303d31ec7)"},S.createElement("path",{fill:"#60e1b7",d:"M 214.535156 134.261719 C 202.0625 126.074219 182.585938 123.628906 168.382812 128.035156 L 169.851562 132.683594 C 179.722656 128.25 204.085938 132.445312 209.980469 137.125 L 201.996094 152.769531 C 197.101562 149.414062 181.929688 144.9375 175.164062 149.203125 C 168.589844 152.5 168.128906 160.929688 172.699219 165.445312 C 177.878906 171.585938 189.808594 179.421875 193.050781 186.789062 C 198.101562 195.59375 195.503906 207.078125 190.523438 214.789062 C 178.867188 234.125 144.351562 230.203125 130.03125 221.222656 L 137.417969 205.15625 C 144.847656 209.511719 154.640625 212.925781 163.417969 211.847656 C 172.691406 210.863281 177.179688 200.519531 171.039062 193.210938 C 166.171875 187.378906 154.257812 179.195312 151.222656 172.632812 L 147.011719 175.097656 C 150.066406 181.804688 161.953125 190.363281 167.183594 196.199219 C 169.675781 199.1875 169.65625 203.175781 166.738281 205.445312 C 157.679688 210.550781 142.964844 203.5625 135.402344 197.863281 L 123.867188 222.957031 C 148.617188 240.511719 196.1875 238.589844 200.460938 201.191406 C 203.488281 175.949219 176.800781 169.867188 174.484375 157.660156 C 175.996094 146.890625 199.167969 155.394531 201.5625 158.257812 C 201.5625 158.253906 203.859375 159.851562 203.859375 159.851562 L 216.296875 135.476562 L 214.535156 134.261719 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("path",{fill:"#60e1b7",d:"M 123.847656 238.238281 C 114.976562 254.804688 107.132812 272.027344 101.460938 289.960938 C 107.089844 280.792969 111.792969 271.082031 116.242188 261.300781 C 120.617188 251.484375 124.769531 241.53125 127.914062 231.242188 C 126.476562 233.53125 125.152344 235.878906 123.847656 238.238281 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("path",{fill:"#60e1b7",d:"M 171.035156 71.519531 C 179.910156 54.957031 187.734375 37.722656 193.417969 19.796875 C 187.796875 28.96875 183.089844 38.675781 178.632812 48.453125 C 174.257812 58.265625 170.101562 68.226562 166.964844 78.515625 C 168.40625 76.226562 169.730469 73.878906 171.035156 71.519531 ",fillOpacity:1,fillRule:"nonzero"}));function I1(){const[n,e]=S.useState(!0),[t]=S.useState([0,0,0,0,0,0,0,0,0,0,0,0,0]);S.useEffect(()=>{e(!1),document.title="Category List"},[]);const r=[{title:"Animals",shortTitle:"Animals",description:"Streams featuring pets, wildlife, aquariums, and animal-focused content.",link:"/category/animals",Icon:uT,liveChannelCount:t[0]},{title:"ASMR",shortTitle:"ASMR",description:"Relaxing, ambient, soft-spoken, and sensory-focused live streams.",link:"/category/asmr",Icon:cT,liveChannelCount:t[1]},{title:"Art",shortTitle:"Art",description:"Drawing, painting, crafts, design, and creative process streams.",link:"/category/artscrafts",Icon:dT,liveChannelCount:t[2]},{title:"Just Chatting",shortTitle:"Chatting",description:"Community conversation, hangouts, commentary, and variety streams.",link:"/category/livetalk",Icon:fT,liveChannelCount:t[3]},{title:"Cooking",shortTitle:"Cooking",description:"Cooking, baking, food prep, recipes, and kitchen-focused streams.",link:"/category/cooking",Icon:hT,liveChannelCount:t[4]},{title:"Software, Technology, & Development",shortTitle:"Software",description:"Programming, technology, software projects, and development streams.",link:"/category/technology",Icon:mT,liveChannelCount:t[5]},{title:"Special Events",shortTitle:"Events",description:"Special broadcasts, community events, launches, and live happenings.",link:"/category/events",Icon:pT,liveChannelCount:t[6]},{title:"ESports",shortTitle:"ESports",description:"Competitive gaming, tournaments, esports commentary, and team events.",link:"/category/esports",Icon:bT,liveChannelCount:t[7]},{title:"Gaming",shortTitle:"Gaming",description:"Gameplay, walkthroughs, speedruns, multiplayer, and gaming communities.",link:"/category/gaming",Icon:gT,liveChannelCount:t[8]},{title:"Music",shortTitle:"Music",description:"Live performances, music production, listening parties, and DJ sets.",link:"/category/music",Icon:yT,liveChannelCount:t[9]},{title:"News & World Events",shortTitle:"News",description:"News discussion, current events, public affairs, and world coverage.",link:"/category/globalnews",Icon:vT,liveChannelCount:t[10]},{title:"Outdoors",shortTitle:"Outdoors",description:"Outdoor activities, travel, exploration, nature, and adventure streams.",link:"/category/outdoors",Icon:xT,liveChannelCount:t[11]},{title:"Podcasts",shortTitle:"Podcasts",description:"Live podcasts, interviews, panels, conversations, and talk shows.",link:"/category/podcasts",Icon:CT,liveChannelCount:t[12]}],s=()=>r.map(i=>{const a=i.Icon;return o.jsxs(Pt,{className:"category-list-card",to:i.link,"aria-label":`Open ${i.title} category`,children:[o.jsx("div",{className:"category-list-card-icon-wrapper",children:o.jsx(a,{title:i.title,className:"category-list-card-icon"})}),o.jsxs("div",{className:"category-list-card-content",children:[o.jsxs("div",{className:"category-list-card-header",children:[o.jsx("h2",{className:"category-list-card-title",children:i.shortTitle}),o.jsxs("span",{className:"category-list-card-live-badge",children:[i.liveChannelCount," Live"]})]}),o.jsx("p",{className:"category-list-card-description",children:i.description})]})]},i.link)});return n?_n:o.jsxs("main",{className:"category-list-screen",children:[o.jsxs("header",{className:"category-list-header",children:[o.jsx("h1",{className:"category-list-title",children:"Browse Categories"}),o.jsx("p",{className:"category-list-subtitle",children:"Find live streams by topic, community, or interest."})]}),o.jsx("section",{className:"category-list-grid","aria-label":"Stream categories",children:s()})]})}function V5(n){var r,s,i,a;const e=!!((r=n.vidLinkInfo)!=null&&r.over18||(s=n.vidLinkInfo)!=null&&s.restricted||(i=n.vidLinkInfo)!=null&&i.strict18||(a=n.vidLinkInfo)!=null&&a.over_18),t=o.jsxs("div",{className:"videoImageHolder",children:[cb("png",n.vidLinkInfo.channelPfp,"profile picture","profile picture",{width:"inherit",height:"100%"}),e&&o.jsx("div",{className:"video-18plus-indicator",title:"18+ Stream Only",children:o.jsx("span",{className:"video-18plus-badge",children:"18+"})}),o.jsxs("div",{className:"videoImageBottomBanner",children:[o.jsxs("p",{className:"videoImageChannelName",children:[o.jsx("b",{children:n.vidLinkInfo.channelName}),e&&o.jsx("span",{className:"video-18plus-tag",title:"18+ Stream Only",children:"18+"}),o.jsx("br",{}),n.vidLinkInfo.streamTitle||"No stream title provided"]}),o.jsx("p",{className:"videoImageCategory",style:{position:"absolute",left:"0",bottom:"0px"},children:n.vidLinkInfo.category}),o.jsx("br",{}),o.jsx("p",{className:"videoLiveCountText",children:n.vidLinkInfo.viewCount})]})]});return n.disableLink?t:o.jsx(Pt,{to:"/"+n.vidLinkInfo.channelName+"/stream",style:{height:"100%"},children:t})}function KQ(n){return n.videos===void 0?o.jsx("h3",{style:{textAlign:"center"},children:"No Streams Found!"}):n.videos.map((e,t)=>o.jsx(V5,{vidLinkInfo:e,videoId:e.category+t},e.category+t))}function fv(n){let{categoryUrl:e}=Ba();const[t,r]=S.useState({}),[s,i]=S.useState(!0);return S.useEffect(()=>{e?ij("/"+e).then(a=>{r({categoryName:a.categoryName,description:a.categoryDescription,videos:a.streams}),document.title=a.categoryName,i(!1)}).finally(()=>{i(!1)}):n.categoryKey&&sj("/"+n.categoryKey).then(a=>{r({categoryName:a.categoryName,description:a.categoryDescription,videos:a.streams}),i(!1)}).finally(()=>{i(!1)})},[e]),s||e===void 0?_n:o.jsxs(o.Fragment,{children:[o.jsx("h2",{children:t.categoryName}),o.jsx("hr",{}),o.jsx("h3",{children:o.jsx("i",{children:t.description})}),o.jsx("br",{}),o.jsx("div",{className:"videoContent",children:o.jsx(KQ,{videos:t.streams})})]})}function qQ(){return o.jsx("div",{className:"footer",children:o.jsxs("p",{className:"footer-text",children:["Have issues? Contact us on our ",o.jsx("a",{href:"https://discord.gg/qnCxZ3KHXp",target:"_blank",children:"DISCORD"})]})})}const YQ=n=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:400,zoomAndPan:"magnify",viewBox:"0 0 300 299.999988",he
1489ight:400,preserveAspectRatio:"xMidYMid meet",...n},S.createElement("defs",null,S.createElement("clipPath",{id:"c35dfda231"},S.createElement("path",{d:"M 14.25 0 L 285.75 0 C 289.53125 0 293.152344 1.5 295.828125 4.171875 C 298.5 6.847656 300 10.46875 300 14.25 L 300 285.75 C 300 289.53125 298.5 293.152344 295.828125 295.828125 C 293.152344 298.5 289.53125 300 285.75 300 L 14.25 300 C 10.46875 300 6.847656 298.5 4.171875 295.828125 C 1.5 293.152344 0 289.53125 0 285.75 L 0 14.25 C 0 10.46875 1.5 6.847656 4.171875 4.171875 C 6.847656 1.5 10.46875 0 14.25 0 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"af42d63b92"},S.createElement("path",{d:"M 26 15.328125 L 278 15.328125 L 278 284 L 26 284 Z M 26 15.328125 ",clipRule:"nonzero"})),S.createElement("clipPath",{id:"84244f7db0"},S.createElement("path",{d:"M 26 15.328125 L 278 15.328125 L 278 284 L 26 284 Z M 26 15.328125 ",clipRule:"nonzero"}))),S.createElement("g",{clipPath:"url(#c35dfda231)"},S.createElement("path",{fill:"#302926",d:"M 0 0 L 299.53125 0 L 299.53125 299.53125 L 0 299.53125 Z M 0 0 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("g",{clipPath:"url(#af42d63b92)"},S.createElement("path",{fill:"#60e1b7",d:"M 277.082031 191.523438 C 275.480469 185.601562 272.824219 176.246094 269.0625 165.117188 C 268.84375 164.453125 268.457031 163.84375 267.902344 163.457031 C 259.328125 137.21875 238.144531 80.09375 210.324219 59.609375 C 208.390625 57.617188 206.398438 55.734375 204.351562 53.855469 C 202.96875 52.636719 170.28125 24.625 132.117188 15.492188 C 131.507812 15.328125 130.898438 15.328125 130.347656 15.492188 C 129.351562 15.714844 105.511719 21.804688 95.058594 50.808594 C 92.902344 56.675781 92.679688 63.097656 94.5625 69.132812 C 97.769531 80.703125 106.894531 89.78125 118.453125 92.933594 C 122.4375 93.988281 126.695312 92.878906 129.683594 90.054688 C 132.945312 86.957031 137.8125 86.238281 141.796875 88.285156 C 147.601562 90.445312 154.074219 90.277344 159.769531 87.84375 C 161.097656 87.234375 162.59375 87.289062 163.863281 88.007812 C 171.773438 92.050781 180.566406 100.574219 177.46875 118.066406 C 177.414062 118.230469 177.414062 118.398438 177.414062 118.621094 L 175.976562 158.585938 C 164.582031 155.761719 135.988281 151.167969 119.285156 170.378906 C 110.378906 166.445312 86.707031 157.976562 64.308594 166.835938 C 48.046875 173.199219 35.820312 187.148438 27.914062 208.351562 C 27.859375 208.574219 27.800781 208.738281 27.746094 208.960938 C 27.414062 210.566406 20.5 248.761719 48.378906 271.566406 C 58.167969 279.429688 70.335938 283.636719 82.835938 283.523438 C 86.152344 283.523438 89.417969 283.246094 92.679688 282.695312 C 99.152344 281.699219 105.566406 280.148438 111.816406 278.15625 C 115.082031 277.046875 118.621094 276.882812 121.996094 277.546875 C 141.683594 281.53125 194.617188 284.578125 261.320312 226.507812 C 265.414062 222.410156 269.230469 218.039062 272.714844 213.445312 C 277.582031 207.1875 279.183594 199.105469 277.082031 191.523438 Z M 266.683594 208.792969 C 263.421875 213 259.882812 217.042969 256.175781 220.863281 C 192.292969 276.550781 142.183594 273.78125 123.597656 270.019531 C 118.898438 269.078125 114.03125 269.351562 109.441406 270.847656 C 103.578125 272.730469 97.546875 274.167969 91.464844 275.109375 C 77.96875 277.601562 64.03125 274.167969 53.246094 265.644531 C 30.179688 246.769531 34.714844 214.164062 35.269531 210.730469 C 42.402344 191.855469 53.078125 179.511719 67.128906 173.976562 C 85.933594 166.558594 106.011719 173.089844 114.859375 176.855469 C 109.769531 185.878906 107.171875 196.0625 107.335938 206.46875 C 107.28125 208.574219 108.941406 210.34375 111.042969 210.398438 L 111.152344 210.398438 C 113.199219 210.398438 114.914062 208.738281 114.96875 206.691406 C 114.75 196.339844 117.679688 186.210938 123.320312 177.574219 C 123.433594 177.40625 123.542969 177.296875 123.652344 177.128906 C 140.632812 154.878906 178.023438 167.113281 178.410156 167.222656 C 178.742188 167.332031 179.128906 167.386719 179.515625 167.445312 C 181.617188 167.5 183.390625 165.894531 183.5 163.734375 L 185.101562 119.117188 C 189.195312 95.203125 174.097656 84.632812 167.402344 81.199219 C 163.917969 79.316406 159.769531 79.261719 156.230469 81.035156 C 152.527344 82.472656 148.433594 82.472656 144.671875 81.144531 C 137.925781 77.933594 129.902344 79.207031 124.539062 84.355469 C 123.488281 85.40625 121.996094 85.847656 120.558594 85.515625 C 111.484375 82.972656 104.351562 75.886719 
1489101.863281 66.75 C 100.535156 62.378906 100.644531 57.671875 102.25 53.355469 C 106.675781 39.351562 117.402344 28.167969 131.285156 23.1875 C 167.238281 32.097656 199.042969 59.332031 199.316406 59.554688 C 205.125 64.8125 210.492188 70.570312 215.300781 76.714844 C 215.523438 76.992188 215.855469 77.269531 216.132812 77.492188 C 220.28125 82.75 224.980469 89.28125 229.902344 97.253906 C 230.015625 97.640625 230.125 97.972656 230.347656 98.359375 C 232.226562 101.515625 234.109375 104.671875 235.878906 107.882812 C 236.097656 108.269531 236.429688 108.65625 236.761719 108.933594 C 240.246094 115.242188 243.84375 122.273438 247.328125 130.078125 C 247.328125 130.632812 247.4375 131.1875 247.714844 131.683594 C 249.316406 135.226562 250.8125 138.660156 252.195312 142.089844 C 252.414062 142.589844 252.691406 142.976562 253.023438 143.363281 C 255.957031 150.617188 258.832031 158.421875 261.597656 166.78125 C 261.652344 167.054688 261.707031 167.277344 261.761719 167.554688 C 265.46875 178.515625 268.066406 187.703125 269.671875 193.515625 C 271.109375 198.832031 270.003906 204.476562 266.683594 208.792969 Z M 266.683594 208.792969 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("path",{fill:"#60e1b7",d:"M 202.027344 223.851562 C 200.148438 222.855469 197.824219 223.519531 196.828125 225.402344 C 192.957031 232.042969 187.703125 237.691406 181.34375 242.0625 C 167.238281 251.75 150.257812 253.023438 130.898438 245.882812 C 128.910156 245.164062 126.695312 246.160156 125.976562 248.152344 C 125.257812 250.144531 126.253906 252.359375 128.246094 253.078125 C 136.484375 256.289062 145.226562 257.949219 154.074219 258.0625 C 188.144531 258.0625 203.464844 229.277344 203.632812 228.945312 C 204.574219 227.0625 203.851562 224.847656 202.027344 223.851562 Z M 202.027344 223.851562 ",fillOpacity:1,fillRule:"nonzero"}),S.createElement("g",{clipPath:"url(#84244f7db0)"},S.createElement("path",{fill:"#60e1b7",d:"M 277.082031 191.523438 C 275.480469 185.601562 272.824219 176.246094 269.0625 165.117188 C 268.84375 164.453125 268.457031 163.84375 267.902344 163.457031 C 259.328125 137.21875 238.144531 80.09375 210.324219 59.609375 C 208.390625 57.617188 206.398438 55.734375 204.351562 53.855469 C 202.96875 52.636719 170.28125 24.625 132.117188 15.492188 C 131.507812 15.328125 130.898438 15.328125 130.347656 15.492188 C 129.351562 15.714844 105.511719 21.804688 95.058594 50.808594 C 92.902344 56.675781 92.679688 63.097656 94.5625 69.132812 C 97.769531 80.703125 106.894531 89.78125 118.453125 92.933594 C 122.4375 93.988281 126.695312 92.878906 129.683594 90.054688 C 132.945312 86.957031 137.8125 86.238281 141.796875 88.285156 C 147.601562 90.445312 154.074219 90.277344 159.769531 87.84375 C 161.097656 87.234375 162.59375 87.289062 163.863281 88.007812 C 171.773438 92.050781 180.566406 100.574219 177.46875 118.066406 C 177.414062 118.230469 177.414062 118.398438 177.414062 118.621094 L 175.976562 158.585938 C 164.582031 155.761719 135.988281 151.167969 119.285156 170.378906 C 110.378906 166.445312 86.707031 157.976562 64.308594 166.835938 C 48.046875 173.199219 35.820312 187.148438 27.914062 208.351562 C 27.859375 208.574219 27.800781 208.738281 27.746094 208.960938 C 27.414062 210.566406 20.5 248.761719 48.378906 271.566406 C 58.167969 279.429688 70.335938 283.636719 82.835938 283.523438 C 86.152344 283.523438 89.417969 283.246094 92.679688 282.695312 C 99.152344 281.699219 105.566406 280.148438 111.816406 278.15625 C 115.082031 277.046875 118.621094 276.882812 121.996094 277.546875 C 141.683594 281.53125 194.617188 284.578125 261.320312 226.507812 C 265.414062 222.410156 269.230469 218.039062 272.714844 213.445312 C 277.582031 207.1875 279.183594 199.105469 277.082031 191.523438 Z M 266.683594 208.792969 C 263.421875 213 259.882812 217.042969 256.175781 220.863281 C 192.292969 276.550781 142.183594 273.78125 123.597656 270.019531 C 118.898438 269.078125 114.03125 269.351562 109.441406 270.847656 C 103.578125 272.730469 97.546875 274.167969 91.464844 275.109375 C 77.96875 277.601562 64.03125 274.167969 53.246094 265.644531 C 30.179688 246.769531 34.714844 214.164062 35.269531 210.730469 C 42.402344 191.855469 53.078125 179.511719 67.128906 173.976562 C 85.933594 166.558594 106.011719 173.089844 114.859375 176.855469 C 109.769531 185.878906 107.171875 196.0625 107.335938 206.46875 C 107.28125 208.574219 108.941406 210.34375 111.042969 210.398438 L 111.152344 210.398438 C 113.199219 210.398438 114.914062 208.738281 114.96875 206.691406 C 114.75 196.339844 117.679688 186.210938 123.320312 177.574219 C 123.433594 177.40625 123.542969 177.296875 123.652344 177.128906 C 140.632812 154.878906 178.023438 167.113281 178.410156 167.222656 C 178.742188 167.332031 179.128906 167.386719 
1489179.515625 167.445312 C 181.617188 167.5 183.390625 165.894531 183.5 163.734375 L 185.101562 119.117188 C 189.195312 95.203125 174.097656 84.632812 167.402344 81.199219 C 163.917969 79.316406 159.769531 79.261719 156.230469 81.035156 C 152.527344 82.472656 148.433594 82.472656 144.671875 81.144531 C 137.925781 77.933594 129.902344 79.207031 124.539062 84.355469 C 123.488281 85.40625 121.996094 85.847656 120.558594 85.515625 C 111.484375 82.972656 104.351562 75.886719 101.863281 66.75 C 100.535156 62.378906 100.644531 57.671875 102.25 53.355469 C 106.675781 39.351562 117.402344 28.167969 131.285156 23.1875 C 167.238281 32.097656 199.042969 59.332031 199.316406 59.554688 C 205.125 64.8125 210.492188 70.570312 215.300781 76.714844 C 215.523438 76.992188 215.855469 77.269531 216.132812 77.492188 C 220.28125 82.75 224.980469 89.28125 229.902344 97.253906 C 230.015625 97.640625 230.125 97.972656 230.347656 98.359375 C 232.226562 101.515625 234.109375 104.671875 235.878906 107.882812 C 236.097656 108.269531 236.429688 108.65625 236.761719 108.933594 C 240.246094 115.242188 243.84375 122.273438 247.328125 130.078125 C 247.328125 130.632812 247.4375 131.1875 247.714844 131.683594 C 249.316406 135.226562 250.8125 138.660156 252.195312 142.089844 C 252.414062 142.589844 252.691406 142.976562 253.023438 143.363281 C 255.957031 150.617188 258.832031 158.421875 261.597656 166.78125 C 261.652344 167.054688 261.707031 167.277344 261.761719 167.554688 C 265.46875 178.515625 268.066406 187.703125 269.671875 193.515625 C 271.109375 198.832031 270.003906 204.476562 266.683594 208.792969 Z M 266.683594 208.792969 ",fillOpacity:1,fillRule:"nonzero"})),S.createElement("path",{fill:"#60e1b7",d:"M 202.027344 223.851562 C 200.148438 222.855469 197.824219 223.519531 196.828125 225.402344 C 192.957031 232.042969 187.703125 237.691406 181.34375 242.0625 C 167.238281 251.75 150.257812 253.023438 130.898438 245.882812 C 128.910156 245.164062 126.695312 246.160156 125.976562 248.152344 C 125.257812 250.144531 126.253906 252.359375 128.246094 253.078125 C 136.484375 256.289062 145.226562 257.949219 154.074219 258.0625 C 188.144531 258.0625 203.464844 229.277344 203.632812 228.945312 C 204.574219 227.0625 203.851562 224.847656 202.027344 223.851562 Z M 202.027344 223.851562 ",fillOpacity:1,fillRule:"nonzero"}));var z5=function(n,e){return z5=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&
1489(t[s]=r[s])},z5(n,e)};function XQ(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");z5(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var G5=function(){return G5=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},G5.apply(this,arguments)};function ZQ(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(n);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(n,r[s])&&(t[r[s]]=n[r[s]]);return t}var R1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function QQ(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var U8=QQ,JQ=typeof R1=="object"&&R1&&R1.Object===Object&&R1,eJ=JQ,tJ=eJ,nJ=typeof self=="object"&&self&&self.Object===Object&&self,rJ=tJ||nJ||Function("return this")(),ST=rJ,sJ=ST,iJ=function(){return sJ.Date.now()},aJ=iJ,oJ=/\s/;function lJ(n){for(var e=n.length;e--&&oJ.test(n.charAt(e)););return e}var cJ=lJ,uJ=cJ,dJ=/^\s+/;function fJ(n){return n&&n.slice(0,uJ(n)+1).replace(dJ,"")}var hJ=fJ,mJ=ST,pJ=mJ.Symbol,ET=pJ,hv=ET,wT=Object.prototype,gJ=wT.hasOwnProperty,yJ=wT.toString,rc=hv?hv.toStringTag:void 0;function vJ(n){var e=gJ.call(n,rc),t=n[rc];try{n[rc]=void 0;var r=!0}catch{}var s=yJ.call(n);return r&&(e?n[rc]=t:delete n[rc]),s}var xJ=vJ,CJ=Object.prototype,bJ=CJ.toString;function SJ(n){return bJ.call(n)}var EJ=SJ,mv=ET,wJ=xJ,TJ=EJ,IJ="[object Null]",RJ="[object Undefined]",pv=mv?mv.toStringTag:void 0;function AJ(n){return n==null?n===void 0?RJ:IJ:pv&&pv in Object(n)?wJ(n):TJ(n)}var LJ=AJ;function NJ(n){return n!=null&&typeof n=="object"}var kJ=NJ,PJ=LJ,_J=kJ,OJ="[object Symbol]";function DJ(n){return typeof n=="symbol"||_J(n)&&PJ(n)==OJ}var jJ=DJ,MJ=hJ,gv=U8,FJ=jJ,yv=NaN,$J=/^[-+]0x[0-9a-f]+$/i,BJ=/^0b[01]+$/i,UJ=/^0o[0-7]+$/i,VJ=parseInt;function zJ(n){if(typeof n=="number")return n;if(FJ(n))return yv;if(gv(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=gv(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=MJ(n);var t=BJ.test(n);return t||UJ.test(n)?VJ(n.slice(2),t?2:8):$J.test(n)?yv:+n}var GJ=zJ,HJ=U8,pm=aJ,vv=GJ,WJ="Expected a function",KJ=Math.max,qJ=Math.min;function YJ(n,e,t){var r,s,i,a,l,u,d=0,f=!1,m=!1,p=!0;if(typeof n!="function")throw new TypeError(WJ);e=vv(e)||0,HJ(t)&&(f=!!t.leading,m="maxWait"in t,i=m?KJ(vv(t.maxWait)||0,e):i,p="trailing"in t?!!t.trailing:p);function y(L){var N=r,_=s;return r=s=void 0,d=L,a=n.apply(_,N),a}function v(L){return d=L,l=setTimeout(E,e),f?y(L):a}function x(L){var N=L-u,_=L-d,j=e-N;return m?qJ(j,i-_):j}function b(L){var N=L-u,_=L-d;return u===void 0||N>=e||N<0||m&&_>=i}function E(){var L=pm();if(b(L))return T(L);l=setTimeout(E,x(L))}function T(L){return l=void 0,p&&r?y(L):(r=s=void 0,a)}function w(){l!==void 0&&clearTimeout(l),d=0,r=u=s=l=void 0}function R(){return l===void 0?a:T(pm())}function I(){var L=pm(),N=b(L);if(r=arguments,s=this,u=L,N){if(l===void 0)return v(u);if(m)return clearTimeout(l),l=setTimeout(E,e),y(u)}return l===void 0&&(l=setTimeout(E,e)),a}return I.cancel=w,I.flush=R,I}var TT=YJ,XJ=TT,ZJ=U8,QJ="Expected a function";function JJ(n,e,t){var r=!0,s=!0;if(typeof n!="function")throw new TypeError(QJ);return ZJ(t)&&(r="leading"in t?!!t.leading:r,s="trailing"in t?!!t.trailing:s),XJ(n,e,{leading:r,maxWait:e,trailing:s})}var eee=JJ,IT=function(n,e,t,r){switch(e){case"debounce":return TT(n,t,r);case"throttle":return eee(n,t,r);default:return n}},H5=function(n){return typeof n=="function"},ki=function(){return typeof window>"u"},xv=function(n){return n instanceof Element||n instanceof HTMLDocument},RT=function(n,e,t,r){return function(s){var i=s.width,a=s.height;e(function(l){return l.width===i&&l.height===a||l.width===i&&!r||l.height===a&&!t?l:(n&&H5(n)&&n(i,a),{width:i,height:a})})}};(function(n){XQ(e,n);function e(t){var r=n.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var d=r.props,f=d.targetRef,m=d.observerOptions;if(!ki()){f&&f.current&&(r.targetRef.current=f.current);var p=r.getElement();p&&(r.observableElement&&r.observableElement===p||(r.observableElement=p,r.resizeObserver.observe(p,m)))}},r.getElement=function(){var d=r.props,f=d.querySelector,m=d.targetDomEl;if(ki())return null;if(f)return document.querySelector(f);if(m&&xv(m))return m;if(r.targetRef&&xv(r.targetRef.current))return r.targetRef.current;var p=ax.findDOMNode(r);if(!p)return null;var y=r.getRenderType();switch(y){case"renderProp":return p;case"childFunction":return p;case"child":return p;case"childArray":return p;default:return p.parentElement}},r.createResizeHandler=function(d){var f=r.props,m=f.handleWidth,p=m===void 0?!0:m,y=f.handleHeight,v=y===void 0?!0:y,x=f.onResize;if(!(!p&&!v)){var b=RT(x,r.setState.bind(r),p,v);d.forEach(function(E){var T=E&&E.contentRect||{},w=T.width,R=T.height,I=!r.skipOnMount&&!ki();I&&b({width:w,height:R}),r.skipOnMount=!1})}},r.getRenderType=function(){var d=r.props,f=d.render,m=d.children;return H5(f)?"renderProp":H5(m)?"childFunction":S.isValidElement(m)?"child":Array.isArray(m)?"childArray":"parent"};var s=t.skipOnMount,i=t.refreshMode,a=t.refreshRate,l=a===void 0?1e3:a,u=t.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=s,r.targetRef=S.createRef(),r.observableElement=null,ki()||(r.resizeHandler=IT(r.createResizeHandler,i,l,u),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}return e.prototype.componentDidMount=function(){this.attachObserver()},e.prototype.componentDidUpdate=function(){this.attachObserver()},e.prototype.componentWillUnmount=function(){ki()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},e.prototype.render=function(){var t=this.props,r=t.render,s=t.children,i=t.nodeType,a=i===void 0?"div":i,l=this.state,u=l.width,d=l.height,f={width:u,height:d,targetRef
1489:this.targetRef},m=this.getRenderType(),p;switch(m){case"renderProp":return r&&r(f);case"childFunction":return p=s,p(f);case"child":if(p=s,p.type&&typeof p.type=="string"){f.targetRef;var y=ZQ(f,["targetRef"]);return S.cloneElement(p,y)}return S.cloneElement(p,f);case"childArray":return p=s,p.map(function(v){return!!v&&S.cloneElement(v,f)});default:return S.createElement(a,null)}},e})(S.PureComponent);var tee=ki()?S.useEffect:S.useLayoutEffect;function nee(n){n===void 0&&(n={});var e=n.skipOnMount,t=e===void 0?!1:e,r=n.refreshMode,s=n.refreshRate,i=s===void 0?1e3:s,a=n.refreshOptions,l=n.handleWidth,u=l===void 0?!0:l,d=n.handleHeight,f=d===void 0?!0:d,m=n.targetRef,p=n.observerOptions,y=n.onResize,v=S.useRef(t),x=S.useRef(null),b=m??x,E=S.useRef(),T=S.useState({width:void 0,height:void 0}),w=T[0],R=T[1];return tee(function(){if(!ki()){var I=RT(y,R,u,f),L=function(_){!u&&!f||_.forEach(function(j){var F=j&&j.contentRect||{},$=F.width,z=F.height,W=!v.current&&!ki();W&&I({width:$,height:z}),v.current=!1})};E.current=IT(L,r,i,a);var N=new window.ResizeObserver(E.current);return b.current&&N.observe(b.current,p),function(){N.disconnect();var _=E.current;_&&_.cancel&&_.cancel()}}},[r,i,a,u,f,y,p,b.current]),G5({ref:b},w)}function _o(){return _o=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_o.apply(this,arguments)}function ree(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,W5(n,e)}function W5(n,e){return W5=Object.setPrototypeOf||function(r,s){return r.__proto__=s,r},W5(n,e)}function see(n,e){if(n){if(typeof n=="string")return Cv(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Cv(n,e)}}function Cv(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function iee(n,e){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=see(n))||e){t&&(n=t);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1490In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V8=(function(n){ree(e,n);function e(r){var s;s=n.call(this,r)||this,s.validateProps=function(){var y=s.props,v=y.swipeSpeed,x=y.currentVisibleSlide,b=y.maxVisibleSlide,E=y.fadeDistance,T=y.customScales,w=y.data;if(w.length<(b+1)/2)throw Error("you must have more than (maxVisibleSlide + 1) / 2 data item");if(x&&x%2!==1||b%2!==1)throw Error("currentVisibleSlide or maxVisibleSlide must be an odd number");if(x&&x>b)throw Error("currentVisibleSlide must be smaller than maxVisibleSlide");if(E!==void 0&&(E>1||E<0))throw Error("fadeDistance is a percentage value in the range of 0 - 1");if(T&&T.length!==(b+3)/2)throw Error("customScales must have lengh (maxVisibleSlide + 3) / 2");if(v&&(v>.99||v<.01))throw Error("swipeSpeed must have a value between 0.01 and 0.99")},s.initializeProperties=function(y){y===void 0&&(y=!1),s.validateProps();for(var v=s.props,x=v.carouselWidth,b=v.slideWidth,E=v.currentVisibleSlide,T=v.maxVisibleSlide,w=E||T,R=(w-1)/2,I=Math.max(R+1,1),L=T+2,N=(T+1)/2,_=s.calculateScaleAndOffsets(I),j=_.offsets,F=_.scaledOffsets,$=_.scales,z=y?Array(L).fill(null):s.state.renderedSlides.filter(function(le){var pe=le.slideIndex,Ie=le.dataIndex;return Ie===-1||Math.abs(pe)<=s.slidePerSide}),W={},J=y?(L-1)/2:z.findIndex(function(le){var pe=le.slideIndex;return pe===0}),oe=y?0:z[J].dataIndex,ie=0,Z=x/2-b/2,X=function(pe){var Ie=j[pe],Ne=$[pe],Fe=ie+Ie;[-pe,pe].forEach(function(Me){var ke=J+Me,Ge=Me>=0?Fe:-Fe,K=pe===I?0:1,ne=s.modDataRange(oe+Me);z[ke]={dataIndex:ne,scale:Ne,position:Ge,slideIndex:Me,opacity:K,zIndex:N-Math.abs(Me),key:y?Me:z[ke].key},W[Me]={position:Ge,scale:Ne,opacity:K}}),pe!==0&&(ie+=F[pe])},ue=0;ue<=I;ue++)X(ue);for(var se=-I;se<=I;se++)W[se].maxTransformDistance={},W[se].maxTransformScale={},W[se].maxTransformOpacity={left:se===-I+1||se===I?1:0,right:se===-I||se===I-1?1:0},W[se].slideIndex=se,se===-I?(W[se].maxTransformDistance.left=0,W[se].maxTransformScale.left=0):(W[se].maxTransformDistance.left=W[se].position-W[se-1].position,W[se].maxTransformScale.left=Math.abs(W[se].scale-W[se-1].scale)),se===I?(W[se].maxTransformDistance.right=0,W[
1490se].maxTransformScale.right=0):(W[se].maxTransformDistance.right=W[se+1].position-W[se].position,W[se].maxTransformScale.right=Math.abs(W[se+1].scale-W[se].scale));if(T>w)for(var G=(T+1)/2,ee=I,Ee=ee+1;Ee<=G;Ee++)for(var Ce=1;Ce>=0;Ce--){var Ae=J+(Ce===1?Ee:-Ee),me=Ae+(Ce===1?-1:1),ve=Ce===1?Ee:-Ee,Q=y?me:Ae;z[Ae]={scale:z[Q].scale,position:z[Q].position,key:y?-ve:z[Ae].key,dataIndex:-1,slideIndex:ve,opacity:0,zIndex:0}}var ge=Object.values(W);return ge.sort(function(le,pe){return le.position-pe.position}),{renderedSlides:z,centerSlideRelativeIndex:J,slideInfoMap:W,slidePerSide:I,newRenderedSlides:z,sortedSlideInfo:ge,centerPosition:Z,renderedSlidePerSide:N}},s.calculateScaleAndOffsets=function(y){for(var v=s.props,x=v.carouselWidth,b=v.slideWidth,E=v.customScales,T=v.fadeDistance,w=x/2-b/2,R=[1],I=[b],L=1;L<=y;L++){var N=E?E[L]:Math.pow(e.defaultScaleFactor,L);R.push(N),I.push(b*N)}var _=I.slice(1),j=w;T!==void 0&&(_=I.slice(1,y),j=w*(1-T));for(var F=_.reduce(function(Z,X){return Z+X},0),$=F?j/F:0,z=[0],W=[0],J=1;J<=y;J++){var oe=T!==void 0&&J===y,ie=R[J];z[J]=oe?T*w:b*ie*$,W[J]=z[J]+b*((1-ie)/2)}return{offsets:W,scaledOffsets:z,scales:R}},s.getZIndex=function(y){return s.renderedSlidePerSide-Math.abs(y)},s.updateHeight=function(){var y=s.props.height;if(!y){var v=s.getSlideDOMInfo(0),x=v.slideDOM,b=parseInt(window.getComputedStyle(x).height);b!==s.height&&(s.height=b,s.forceUpdate())}},s.modDataRange=function(y){var v=s.props.data,x=v.length;return(y%x+x)%x},s.debouncedClearInvisibleSlide=function(){var y=s.props.transitionTime;clearTimeout(s.clearSlideTimeout),s.clearSlideTimeout=setTimeout(s.clearUselessSlide,y!==void 0?y:e.defaultTransitionTime)},s.clearUselessSlide=function(){s.addedSlide=0;var y=s.state.renderedSlides,v=y.filter(function(x){var b=x.slideIndex,E=x.dataIndex,T=Math.abs(b);return T<=s.slidePerSide||E===-1});s.setState({renderedSlides:v})},s.safeGetSlideInfo=function(y){var v=y;return v>s.slidePerSide?v=s.slidePerSide:v<-s.slidePerSide&&(v=-s.slidePerSide),s.slideInfoMap[v]},s.getInsertionInfo=function(y){var v=y>0?s.slidePerSide-y+1:-s.slidePerSide-y-1,x=y>0?s.slidePerSide:-s.slidePerSide,b=function(w,R){return y>0?w<=R:w>=R},E=y>0?1:-1;return{newAddedSlideIndex:v,targetSlideIndex:x,requireMoreSlide:b,updateCount:E}},s.moveCarousel=function(y,v){v===void 0&&(v=!1);var x=s.state.renderedSlides,b=s.props.onActiveSlideChange,E=0,T=x.map(function(w){var R=w.slideIndex,I=w.dataIndex;if(I===-1)return w;R===0&&(E=s.modDataRange(I+y));var L=R+-y,N=s.safeGetSlideInfo(L);return _o({},w,{slideIndex:L,position:N.position,scale:N.scale,opacity:N.opacity,zIndex:s.getZIndex(L)})});y!==0&&(function(){var w=y>0?s.slidePerSide:-s.slidePerSide;s.addedSlide+=Math.abs(y);for(var R=s.getInsertionInfo(y),I=R.newAddedSlideIndex,L=R.requireMoreSlide,N=R.updateCount,_=R.targetSlideIndex;L(I,_);){var j=T.find(function(Z){var X=Z.slideIndex;return X===I});if(!j){var F=T.findIndex(function(Z){var X=Z.slideIndex,ue=Z.dataIndex;return X===I-N&&ue!==-1}),$=s.slideInfoMap[w],z=$.scale,W=$.position,J=s.modDataRange(T[F].dataIndex+N);s.keyCount+=1;var oe=s.getZIndex(I),ie={scale:z,position:W,opacity:0,zIndex:oe-s.addedSlide,slideIndex:I,dataIndex:J,key:s.keyCount};T.splice(y>0?F+1:F,0,ie)}I+=N}})(),y!==0&&b&&b(E),s.setState(function(){return{swipeStarted:!1,renderedSlides:T,swipRight:v?!1:y<0}},function(){setTimeout(function(){s.resetSlides()},0)})},s.getSlideDOMInfo=function(y){var v=s.props.slideWidth,x=s.listRef.current,b=x.getElementsByClassName("react-stacked-center-carousel-slide-"+y)[0],E=b.getBoundingClientRect(),T=x.getBoundingClientRect(),w=T.left,R=E.width/v,I=v*.5*(1-R),L=E.left-w-I,N=L-s.centerPosition;return{scale:R,slideDOM:b,slideCenterOffset:N}},s.getSlideScaleAndOpacity=function(y){var v=s.sortedSlideInfo.find(function(_){var j=_.position;return Math.ceil(j)>=y})||s.sortedSlideInfo[s.sortedSlideInfo.length-1],x=v.position,b=v.slideIndex,E=v.scale,T=v.maxTransformDistance,w=v.maxTransformScale,R=v.maxTransformOpacity,I=v.opacity,L=Math.ceil(x)-y,N=T.left===0?0:L/T.left*(b<=0?-1:1);return{scale:E+w.left*N,opacity:I+R.left*N}},s.centerOffset=function(y){var v=s.getSlideDOMInfo(y),x=v.slideCenterOffset;return Math.abs(s.slideInfoMap[0].position-x)},s.onSwipeStart=function(y){var v=s.props,x=v.onActiveSlideChange,b=v.disableSwipe;if(!b){var E=s.getSwipeX(y),T=s.state.renderedSlides;clearTimeout(s.clearSlideTimeout);var w=0,R=0;s.centerOffset(-1)<s.centerOffset(0)?w=1:s.centerOffset(1)<s.centerOffset(0)&&(w=-1);for(var I=[],L=[],N=iee(T),_;!(_=N()).done;){var j=_.value,F=j.slideIndex,$=j.dataIndex;if($===-1){I.push(j),L.push({slideIndex:F,maxLeft:0,maxRight:0});continue}var z=F+w;if(!(Math.abs(z)>s.slidePerSide)){z===0&&(R=$);var W=s.getSlideDOMInfo(F),J=W.slideCenterOffset,oe=W.scale,ie=s.getSlideScaleAndOpacity(J),Z=ie.opacity,X=s.safeGetSlideInfo(z),ue=X.maxTransformDistance,se=X.position;L.push({slideIndex:z,maxLeft:J-se+ue.left,maxRight:se+ue.right-J}),I.push(_o({},j,{scale:oe,opacity:Z,position:J,slideIndex:z,zIndex:s.getZIndex(z)}))}}x&&w!==0&&x(R),s.setState({swipeStarted:!0,initalSwipeX:E,renderedSlides:I,prevRenderedSlides:[].concat(I
1490),swipePositionInfo:L})}},s.onSwipe=function(y){var v=s.state.swipeStarted;if(v){var x=s.state,b=x.initalSwipeX,E=x.prevRenderedSlides,T=x.swipePositionInfo,w=s.props.slideWidth,R=!1,I=s.getSwipeX(y),L=b-I,N=Math.abs(L),_=L>0,j=10/w*N,F=1-Math.pow(1-(s.props.swipeSpeed||.5),j),$=E.map(function(z,W){var J=z.position,oe=z.slideIndex,ie=z.dataIndex;if(ie===-1)return z;var Z=T[W][_?"maxLeft":"maxRight"],X=J+(_?-1:1)*Z*F,ue=s.getSlideScaleAndOpacity(X),se=ue.scale,G=ue.opacity,ee=z.zIndex;return Math.abs(oe)===1&&s.centerOffset(oe)<s.centerOffset(0)&&(ee=s.maxZIndex,R=!0),_o({},z,{position:X,scale:se,opacity:G,zIndex:ee})});s.setState({renderedSlides:$,tempShift:R})}},s.resetSlides=function(){var y=s.state.renderedSlides,v=y.map(function(x){var b=s.safeGetSlideInfo(x.slideIndex),E=b.opacity,T=b.scale,w=b.position;return _o({},x,{zIndex:s.getZIndex(x.slideIndex),opacity:E,scale:T,position:w})});s.setState(function(){return{renderedSlides:v,swipRight:!1}},s.debouncedClearInvisibleSlide)},s.onSwipeEnd=function(){var y=s.state.swipeStarted;if(y){var v=s.state.renderedSlides,x=v.find(function(b){var E=b.zIndex;return E===s.maxZIndex});s.moveCarousel((x==null?void 0:x.slideIndex)||0),s.setState({tempShift:!1})}},s.goNext=function(){s.moveCarousel(1)},s.goBack=function(){s.moveCarousel(-1)},s.swipeTo=function(y){s.moveCarousel(y)};var i=s.initializeProperties(!0),a=i.renderedSlides,l=i.slideInfoMap,u=i.slidePerSide,d=i.sortedSlideInfo,f=i.centerPosition,m=i.renderedSlidePerSide,p=s.props.onActiveSlideChange;return s.slideInfoMap=l,s.sortedSlideInfo=d,s.slidePerSide=u,s.height=s.props.height||0,s.listRef=Ke.createRef(),s.clearSlideTimeout=null,s.keyCount=r.data.length,s.addedSlide=0,s.centerPosition=f,s.maxZIndex=100,s.renderedSlidePerSide=m,p&&p(0),s.state={initalSwipeX:0,swipeStarted:!1,renderedSlides:a,prevRenderedSlides:[].concat(a),swipePositionInfo:[],swipRight:!1,tempShift:!1},s}var t=e.prototype;return t.componentDidMount=function(){this.updateHeight()},t.componentWillUnmount=function(){clearTimeout(this.clearSlideTimeout)},t.componentDidUpdate=function(s){if(aee(this.props,s)){var i=this.initializeProperties(this.props.maxVisibleSlide!==s.maxVisibleSlide),a=i.slideInfoMap,l=i.slidePerSide,u=i.newRenderedSlides,d=i.sortedSlideInfo,f=i.centerPosition;this.slideInfoMap=a,this.sortedSlideInfo=d,this.slidePerSide=l,this.centerPosition=f,this.setState(function(){return{initalSwipeX:0,renderedSlides:u,prevRenderedSlides:[].concat(u),swipRight:!1}},this.updateHeight)}},t.getSwipeX=function(s){if(s.type[0]==="m")return s.clientX;try{var i,a;return((i=s.touches[0])===null||i===void 0?void 0:i.clientX)||((a=s.changedTouches[0])===null||a===void 0?void 0:a.clientX)}catch{throw Error("Something went wrong with getting mouse position")}},t.render=function(){var s=this,i=this.state,a=i.swipeStarted,l=i.renderedSlides,u=i.swipRight,d=i.tempShift,f=this.props,m=f.slideComponent,p=f.transitionTime,y=p===void 0?e.defaultTransitionTime:p,v=f.className,x=f.data,b=f.slideWidth,E=f.customTransition,T=f.carouselWidth,w=f.useGrabCursor,R=f.height,I=w&&(a?"grabbing":"grab")||"default";return Ke.createElement("div",{className:"react-stacked-center-carousel "+(v||""),onMouseDown:this.onSwipeStart,onMouseUp:this.onSwipeEnd,onMouseMove:this.onSwipe,onMouseLeave:this.onSwipeEnd,onTouchStart:this.onSwipeStart,onTouchMove:this.onSwipe,onTouchEnd:this.onSwipeEnd,ref:this.listRef,style:{width:T,height:R||this.height,position:"relative",overflow:"hidden",cursor:I}},l.map(function(L){var N=L.opacity,_=L.slideIndex,j=L.dataIndex,F=L.position,$=L.scale,z=L.key,W=L.zIndex,J=j===-1?"hidden-"+z:_,oe=y*(u?.6:1),ie=a?"none":E||"all "+y+"ms ease, z-index "+oe+"ms ease",Z=d?W===s.maxZIndex:_===0;return Ke.createElement("div",{key:z,className:"react-stacked-center-carousel-slide-"+J,draggable:!1,style:{position:"absolute",display:"flex",left:"calc(50% - "+b/2+"px)",transform:"translateX("+F+"px) scale("+$+")",width:b,transition:ie,opacity:N,zIndex:W}},j!==-1&&Ke.createElement(m,{dataIndex:j,data:x,slideIndex:_,isCenterSlide:Z,swipeTo:s.swipeTo}))}))},e})(Ke.PureComponent);V8.defaultScaleFactor=.85;V8.defaultTransitionTime=450;function aee(n,e){var t,r;return n.slideWidth!==e.slideWidth||n.carouselWidth!==e.carouselWidth||n.maxVisibleSlide!==e.maxVisibleSlide||n.currentVisibleSlide!==e.currentVisibleSlide||n.fadeDistance!==e.fadeDistance||((t=n.customScales)===null||t===void 0?void 0:t.join(""))!==((r=e.customScales)===null||r===void 0?void 0:r.join(""))}function oee(n){var e=n.render,t=n.carouselRef,r=nee(),s=r.width,i=r.ref;return Ke.createElement("div",{ref:i,className:"stacked-carousel-responsive-container",style:{width:"100%"}},s&&e(s,t))}const bv="/assets/AxlPeek-B8nRzQ74.png";function lee(n){const e=S.useRef(null);let t=n.rouletteData;const r=n.isMobileView??n.mobileView??!1,s=S.useRef(null),i=S.useRef(!1),a=S.useRef(!1),l=S.useRef(null),[u,d]=S.useState(!1),f=v=>{var E,T,w,R;if(v.button!==void 0&&v.button!==0)return;i.current=!1,a.current=!1;const x=v.clientX??((T=(E=v.touches)==null?void 0:E[0])==null?void 0:T.clientX),b=v.clientY??((R=(w=v.touches)==null?void 0:w[0])==null?void 0:R.clientY);l.current={type:v.type,clientX:x,clientY:b,touches:v.touches?Array.from(v.touches):void 0,changedTouches:v.changedTouches?Array.from(v.changedTouches):void 0},clearTimeout(s.current),s.current=setTimeout(()=>{var I,L;a.current=!0,i.current=!0,d(!0),e.current&&(e.current.props&&(e.current.props={...e.current.props,disableSwipe:!1}),l.current&&((L=(I=e.current).onSwipeStart)==null||L.call(I,l.current)))},250)},m=v=>{var x,b;a.current&&e.current&&((b=(x=e.current).onSwipe)==null||b.call(x,v))},p=()=>{var v,x;clearTimeout(s.current),a.current?(e.current&&((x=(v=e.current).onSwipeEnd)==null||x.call(v)),a.current=!1,d(!1),setTimeout(()=>{i.current=!1},100)):i.current=!1},y=S.memo(function(v){const{data:x,dataIndex:b,isCenterSlide:E,swipeTo:T,slideIndex:w}=v,[R,I]=S.useState(),[L,N]=S.useState(),[_,j]=S.useState(!1);S.useEffect(()=>{clearTimeout(L),clearTimeout(R),E?(clearTimeout(L),I(setTimeout(()=>j(!0),1e3))):(clearTimeout(R),_&&N(setTimeout(()=>j(!1),1e3)))},[x,_,E]);let F=x[b];
1490if(!F)return o.jsxs("div",{className:"slide-card home-carousel-empty-card",draggable:!1,children:[o.jsxs("div",{className:`cover fill ${E&&_?"off":"on"}`,children:[o.jsx("div",{className:"card-overlay fill",onClick:()=>{E||T(w)}}),o.jsx(Ts,{src:bv,className:"home-carousel-placeholder-image",alt:"default holder picture"})]}),_&&E&&o.jsxs("div",{className:"detail fill",children:[o.jsx(Ts,{src:bv,className:"home-carousel-empty-image",alt:"default holder picture"}),o.jsxs("div",{className:"description home-carousel-empty-description",children:[o.jsx("h2",{className:"stream-title-card",children:"No one is live right now!"}),o.jsx("p",{children:"Unfortunately no one is live. Why not make a channel and knock the dust off?"})]})]})]});const $=o.jsxs("div",{className:"slide-card",draggable:!1,children:[o.jsxs("div",{className:`cover fill ${E&&_?"off":"on"}`,children:[o.jsx("div",{className:"card-overlay fill"}),o.jsx(V5,{vidLinkInfo:F,disableLink:!0})]}),_&&o.jsx("div",{className:"detail fill",children:o.jsx(V5,{vidLinkInfo:F,disableLink:!0})})]});return o.jsx(Pt,{to:"/"+F.channelName+"/stream",className:"home-carousel-card-link",onClick:z=>{i.current&&z.preventDefault()},children:$})});return(!t||t.length===0)&&(t=new Array(5)),o.jsxs("section",{className:"home-carousel-card","aria-label":"Featured live streams",children:[o.jsxs("div",{className:"home-carousel-header",children:[o.jsxs("div",{children:[o.jsx("p",{className:"home-carousel-eyebrow",children:"Live now"}),o.jsx("h2",{className:"home-carousel-title",children:"Featured Streams"})]}),o.jsx("p",{className:"home-carousel-subtitle",children:"Swipe or use the arrows to browse live channels."})]}),o.jsx("div",{className:"home-carousel-stage",children:n.isLoading||n.loading?o.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"250px",width:"100%"},children:o.jsx(Ua,{animation:"border",role:"status",variant:"light","aria-label":"Loading featured streams",children:o.jsx("span",{className:"visually-hidden",children:"Loading featured streams..."})})}):o.jsxs(o.Fragment,{children:[o.jsx(oee,{carouselRef:e,render:(v,x)=>o.jsx("div",{className:"home-carousel-interaction-wrapper",onMouseDownCapture:b=>{b.stopPropagation(),f(b)},onMouseMoveCapture:b=>{m(b)},onMouseUpCapture:()=>{p()},onMouseLeave:()=>{p()},onTouchStartCapture:b=>{b.stopPropagation(),f(b)},onTouchMoveCapture:b=>{m(b)},onTouchEndCapture:()=>{p()},onTouchCancelCapture:()=>{p()},style:{width:"100%",height:"100%",position:"relative"},children:o.jsx(V8,{ref:x,slideComponent:y,slideWidth:r?window.innerWidth*.78:window.innerWidth/3,carouselWidth:r?window.innerWidth:window.innerWidth*.8,data:t,customScales:r?[1,.5]:[1,.7,.6,.5],maxVisibleSlide:r?1:5,transitionTime:450,disableSwipe:!u})})}),o.jsx(rn,{icon:BG,style:{color:"var(--a-color)"}
1490,type:"button",className:"home-carousel-arrow home-carousel-arrow-right",onClick:()=>{var v;return(v=e.current)==null?void 0:v.goBack()},"aria-label":"Next featured stream"}),o.jsx(rn,{icon:GG,style:{color:"var(--a-color)"},type:"button",className:"home-carousel-arrow home-carousel-arrow-left",onClick:()=>{var v;return(v=e.current)==null?void 0:v.goNext()},"aria-label":"Previous featured stream"})]})})]})}function cee(n){const[e,t]=S.useState([0,0,0,0,0,0,0,0,0,0,0,0,0]),[r,s]=S.useState([]);S.useEffect(()=>{Pe.get(`${Ft}/supporters`).then(u=>{const d=typeof u.data=="string"?JSON.parse(u.data):u.data;s(d)}).catch(u=>{console.error("Failed to fetch supporters:",u)})},[]),S.useEffect(()=>{},[n.videoRoulette,n.celebratedStreamers,n.trendingClips]);const i=()=>{if(!n.mobileView){let d=[o.jsx(gT,{title:"Gaming",className:"category-select-icon-mini",link:"/category/gaming",livechannelnum:e[8]}),o.jsx(yT,{title:"Music",className:"category-select-icon-mini",link:"/category/music",livechannelnum:e[9]}),o.jsx(fT,{title:"Chatting",className:"category-select-icon-mini",link:"/category/livetalk",livechannelnum:e[3]}),o.jsx(cT,{title:"ASMR",className:"category-select-icon-mini",link:"/category/asmr",livechannelnum:e[1]}),o.jsx(bT,{title:"ESports",className:"category-select-icon-mini",link:"/category/esports",livechannelnum:e[7]}),o.jsx(YQ,{title:"Fitness",className:"category-select-icon-mini",link:"/category/fitness",livechannelnum:e[13]}),o.jsx(xT,{title:"Outdoors",className:"category-select-icon-mini",link:"/category/outdoors",livechannelnum:e[11]}),o.jsx(hT,{title:"Cooking",className:"category-select-icon-mini",link:"/category/cooking",livechannelnum:e[4]}),o.jsx(dT,{title:"Art",className:"category-select-icon-mini",link:"/category/artscrafts",livechannelnum:e[2]}),o.jsx(mT,{title:"Software",className:"category-select-icon-mini",link:"/category/technology",livechannelnum:e[5]}),o.jsx(CT,{title:"Podcasts",className:"category-select-icon-mini",link:"/category/podcasts",livechannelnum:e[12]}),o.jsx(vT,{title:"News",className:"category-select-icon-mini",link:"/category/globalnews",livechannelnum:e[10]}),o.jsx(pT,{title:"Events",className:"category-select-icon-mini",link:"/category/events",livechannelnum:e[6]}),o.jsx(uT,{title:"Animals",className:"category-select-icon-mini",link:"/category/animals",livechannelnum:e[0]})].map((f,m)=>o.jsxs("div",{className:"category-select",onClick:()=>{window.location.replace(f.props.link)},children:[f,o.jsx("h3",{style:{fontSize:"1em",marginLeft:"1vw"},children:f.props.title})]},"smallcat"+m));return o.jsxs("div",{children:[o.jsx("h3",{children:"Categories"}),o.jsx("div",{className:"category-selection-line",children:d.map((f,m)=>f)})]})}},a=()=>o.jsx(o.Fragment,{}),l=()=>{if(n.userData!==null){let u=[];for(let f=0;f<n.userData.channelLists.followedChannels.length;f++)n.userData.channelLists.followedChannels[f].isLive&&u.push(n.userData.channelLists.followedChannels[f]);let d;return u.length>0?d=u.map((f,m)=>o.jsxs(Pt,{to:"/"+f.channelName,className:"online-channel-card","aria-label":`Open ${f.channelName}`,children:[o.jsx("div",{className:"online-channel-image-wrapper",children:Ht("png",f.channelPfp,"","",{className:"online-channel-image"})}),o.jsxs("div",{className:"online-channel-meta",children:[o.jsx("span",{className:"online-channel-live-dot","aria-hidden":"true"}),o.jsx("span",{className:"online-channel-name",children:f.channelName})]})]},"friend"+m)):d=o.jsx("div",{className:"online-channels-empty-state",children:o.jsx("p",{children:o.jsx("i",{children:"No followed channels are online right now."})})}),o.jsxs("section",{className:"online-channels-section","aria-labelledby":"online-channels-title",children:[o.jsxs("div",{className:"online-channels-header",children:[o.jsxs("div",{children:[o.jsx("p",{className:"online-channels-eyebrow",children:"Following"}),o.jsx("h3",{id:"online-channels-title",children:"Your Online Channels"})]}),o.jsxs("span",{className:"online-channels-count",children:[u.length," Live"]})]}),o.jsx("div",{className:"online-channels-list",children:d})]})}return o.jsx(o.Fragment,{})};return o.jsxs("main",{children:[o.jsx("div",{className:"home-video-line",children:o.jsx(lee,{rouletteData:n.videoRoulette,mobileView:n.mobileView,isLoading:n.isLoadingVideos??n.isVideosLoading??n.loadingVideos??n.loading})}),l(),i(),a(),o.jsxs("section",{"data-nonippet":!0,children:[o.jsx("h4",{children:"And thank you so much to all of our supporters"}),o.jsxs("div",{className:"supportersLine",children:[o.jsxs("div",{className:"supporterBlock",children:[o.jsx("h3",{className:"legendary-tier",children:"LEGENDARY TIER: ( >$1000 USD)"}),o.jsx("div",{className:"marquee-vertical",children:o.jsxs("span",{className:"marquee-track",children:[r.filter(u=>u.rank===3).map((u,d)=>o.jsxs(Ke.Fragment,{children:[o.jsx("i",{children:u.name}),o.jsx("br",{})]},d)),r.filter(u=>u.rank===3).map((u,d)=>o.jsxs(Ke.Fragment,{children:[o.jsx("i",{children:u.name}),o.jsx("br",{})]},d))]})})]}),o.jsxs("div",{className:"supporterBlock",children:[o.jsx("h3",{className:"epic-tier",children:"Epic Tier: ($100 - $999 USD)"}),o.jsx("div",{className:"marquee-vertical",children:o.jsxs("span",{className:"marquee-track",children:[r.filter(u=>u.rank===2).map((u,d)=>o.jsxs(Ke.Fragment,{children:[o.jsx("i",{children:u.name}),o.jsx("br",{})]},d)),r.filter(u=>u.rank===2).map((u,d)=>o.jsxs(Ke.Fragment,{children:[o.jsx("i",{children:u.name}),o.jsx("br",{})]},d))]})})]}),o.jsxs("div",{className:"supporterBlock",children:[o.jsx("h3",{className:"rare-tier",children:"Rare Tier: ($0 - $99 USD)"}),o.jsx("div",{className:"marquee-vertical",children:o.jsxs("span",{className:"marquee-track",children:[r.filter(u=>u.rank===1).map((u,d)=>o.jsxs(Ke.Fragment,{children:[o.jsx("i",{children:u.name}),o.jsx("br",{})]},d)),r.filter(u=>u.rank===1).map((u,d)=>o.jsxs(Ke.Fragment,{children:[o.jsx("i",{children:u.name}),o.jsx("br",{})]},d))]})})]})]})]})]})}class uee extends S.Component{componentDidMount(){this.updateTabList()}updateTabList(){}tabList(){let e=[];return window.innerWidth>1023||this.props.tabList.length<3||this.props.tabList>3?e=this.props.tabList:(e.push(this.props.tabList[0]),e.push(this.props.tabList[1]),e.push(this.props.tabList[2])),e.map((t,r)=>o.jsx("a",{href:"/category"+t.url,style:{position:"relative",display:"inline-flex",alignItems:"stretch",justifyContent:"center",height:"40px",lineHeight:0,padding:0,margin:0,overflow:"hidden",boxShadow:"3px 2px 6px black",borderRadius:"0px 40px 0px 40px",textDecoration:"none"},children:o.jsx(zt,{text:t.title,onClick:()=>{},style:{display:"block",height:"40px"}})},"home-tab-link"+r))}render(){const e=this.props.isLoading||this.props.loading;return o.jsxs("div",{className:"tab-header",children:[this.tabList(
1490),e&&o.jsx("div",{className:"tab-loading-spinner",style:{display:"inline-flex",alignItems:"center",marginLeft:"10px",alignSelf:"center"},children:o.jsx(Ua,{animation:"border",size:"sm",variant:"light",role:"status","aria-label":"Loading tabs",children:o.jsx("span",{className:"visually-hidden",children:"Loading tabs..."})})})]})}}function Sv(){return document.title="About Info",o.jsxs("div",{className:"tos",children:[o.jsx("h2",{children:"About Strim FUN"}),o.jsx("h4",{children:"Who Are We?"}),o.jsxs("p",{children:["Strim FUN is a team of streamers, nerds, LGBTQIA+ members, and stream/content enjoyers!",o.jsx("br",{}),"We have been in communities throughout the internet, from video sites, to adult sites, to streaming platforms; and we noticed one thing in common: Every service did all they could to suck money from their creators and their users.",o.jsx("br",{}),"And that sucks!",o.jsx("br",{}),"So we decided to go a new route. We are entirely self-funded and self-sustained; a pet project of a few developers and gamers. And our goal is simple:",o.jsx("h4",{children:o.jsx("u",{children:"A Streaming Platform, By Streamers, for EVERYONE"})})]}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("p",{children:["A very long detailed wonderful About us will be here soon. But for now, here is the latest build date: ","OCT 01, 2026"]})]})}function dee(){return document.title="Accessibility Info",o.jsxs(o.Fragment,{children:[o.jsx("h2",{children:"Configureable Accessibility Options"}),o.jsx("p",{children:"Info comming soon"})]})}function Ev(){document.title="FAQ";const n=[{category:"General & Platform",items:[{question:"What is Strim.FUN?",answer:o.jsx("p",{children:"Strim.FUN is a community-first, self-sustained live streaming platform built by streamers and content creators for everyone. Our goal is to provide a fairer, more transparent streaming experience with higher revenue splits and creator-friendly tools."})},{question:"Is Strim free to use?",answer:o.jsx("p",{children:"Yes! Creating an account, watching streams, and broadcasting on Strim is completely free for all users."})}]},{category:"Streaming & Setup",items:[{question:"How do I start streaming on Strim?",answer:o.jsxs("p",{children:["You can stream using standard broadcasting software such as OBS Studio or Streamlabs. Navigate to our"," ",o.jsx(Pt,{to:"/info/setup",children:"Stream Setup Guide"})," to find your RTMPS server endpoint and retrieve your stream key."]})},{question:"Can I multi-stream to Strim and other platforms simultaneously?",answer:o.jsxs("p",{children:["Yes! You are welcome to multi-stream. We provide guidance on utilizing tools like OBS multi-RTMP plugins in our"," ",o.jsx(Pt,{to:"/info/setup",children:"Setup Instructions"}),"."]})},{question:"Is there a way to connect Stream Avatars to StrimFUN?",answer:o.jsx("p",{children:"At the moment no.  But we are working on a public api that will enable 3rd party accesses and integration."})},{question:"How Do I change my Channel Name?",answer:o.jsx("p",{children:"Once a channel is created, it requires the Strim FUN administration team to change your channel name, or certain identifying aspects about your channel. Please reach out directly or via the discord to request channel name update!"})},{question:"Can I use chat commands work to make someone mod on my channel?",answer:o.jsx("p",{children:"At the moment no. Channel mods are an upcoming feature.  Currently only the streamer has mod-privileges for a channel.  Next will be adding channel mods from your stream dashboard."})}]},{category:"Monetization & Creator Program",items:[{question:"How do creators earn money on Strim?",answer:o.jsxs("p",{children:["Creators can earn revenue through subscriptions and channel Drops (our paid support points). Affiliated channels keep at least 80% of subscription revenue. For full details on payout thresholds, ranking tiers, and requirements, visit our"," ",o.jsx(Pt,{to:"/info/monetization",children:"Monetization Guide"}),"."]})},{question:"How do I become an Affiliated channel?",answer:o.jsx("p",{children:"Once you have completed at least 2 streams totaling 5+ hours over a 2-week period, you can apply for Affiliate status directly from your Channel Settings dashboard."})}]}];return o.jsxs("main",{className:"faq-container",children:[o.jsxs("header",{className:"faq-header",children:[o.jsx("p",{className:"faq-eyebrow",children:"Help Center"}),o.jsx("h1",{children:"Frequently Asked Questions"}),o.jsx("p",{children:"Find quick answers to common questions about broadcasting, monetization, accounts, and community guidelines."})]}),n.map((e,t)=>o.jsxs("section",{className:"faq-category-section","aria-labelledby":`faq-cat-${t}`,children:[o.jsx("h2",{id:`faq-cat-${t}`,className:"faq-category-title",children:e.category}),o.jsx("div",{className:"faq-list",children:e.items.map((r,s)=>o.jsxs("article",{className:"faq-card",children:[o.jsxs("div",{className:"faq-question-block",children:[o.jsx("span",{className:"faq-badge-q","aria-hidden":"true",children:"Q"}),o.jsx("h3",{className:"faq-question-text",children:r.question})]}),o.jsxs("div",{className:"faq-answer-block",children:[o.jsx("span",{className:"faq-badge-a","aria-hidden":"true",children:"A"}),o.jsx("div",{className:"faq-answer-text",children:r.answer})]})]},s))})]},t)),o.jsxs("section",{className:"faq-contact-card","aria-labelledby":"faq-contact-heading",children:[o.jsx("h3",{id:"faq-contact-heading",children:"Still have questions?"}),o.jsx("p",{children:"Can't find the answer you're looking for? Join our official community Discord to chat with moderators, developers, and other streamers."}),o.jsx("a",{className:"info-help-primary-link",href:"https://discord.gg/qnCxZ3KHXp",target:"_blank",rel:"noreferrer",children:"Join Strim Discord"})]})]})}function fee(){document.title="Help Page";const n=[{title:"About Us",description:"Learn what Strim is, why it exists, and what the platform is trying to build.",link:"/info/about"},{title:"Accessibility",description:"Review accessibility information and learn how Strim supports a more usable experience.",link:"/info/accessibility"}
1490,{title:"FAQs",description:"Find answers to frequently asked questions and common platform inquiries.",link:"/info/faq"},{title:"Language & Translations",description:"Find information about language support and translation options.",link:"/info/language"},{title:"Monetization",description:"Want to understand how you get paid? Click here for information on creator monetization, purchases, subscriptions, and support features.",link:"/info/monetization"},{title:"Privacy & Safety",description:"Review privacy, safety, and platform protection information.",link:"/info/privacy"},{title:"Stream Setup",description:"Get started with stream setup instructions and broadcasting guidance.",link:"/info/setup"},{title:"Watch Parties",description:"COMING SOON!  Learn about watch parties and shared viewing features.",link:"/info/watchparties"},{title:"Layouts",description:"COMING SOON! Learn how stream layouts and viewing experiences work.",link:"/info/layouts"},{title:"Supporters",description:"See supporter information, and ways to help support the Strim.FUN platform!",link:"/supporters"},{title:"Terms of Service",description:"Read the terms that apply when using Strim.FUN",link:"/info/tos"}];return o.jsxs("main",{className:"info-help-page",children:[o.jsxs("section",{className:"info-help-hero",children:[o.jsx("p",{className:"info-help-eyebrow",children:"Help Center"}),o.jsx("h2",{className:"info-help-title",children:"How can we help?"}),o.jsx("p",{className:"info-help-subtitle",children:"Find information about Strim features, account safety, monetization, accessibility, and setup. If you still need help, join the community Discord!"})]}),o.jsxs("section",{className:"info-help-support-card","aria-labelledby":"community-support-title",children:[o.jsxs("div",{children:[o.jsx("p",{className:"info-help-card-kicker",children:"Need direct support?"}),o.jsx("h3",{id:"community-support-title",children:"Join the Strim Discord"}),o.jsx("p",{children:"Ask questions, report issues, get setup help, or connect with the community."})]}),o.jsx("a",{className:"info-help-primary-link",href:"https://discord.gg/qnCxZ3KHXp",target:"_blank",rel:"noreferrer",children:"Open Discord"})]}),o.jsxs("section",{className:"info-help-section","aria-labelledby":"informationals-title",children:[o.jsxs("div",{className:"info-help-section-header",children:[o.jsx("h3",{id:"informationals-title",children:"Informationals"}),o.jsx("p",{children:"Choose a topic below to learn more."})]}),o.jsx("div",{className:"info-help-grid",children:n.map(e=>o.jsxs(Pt,{to:e.link,className:"info-help-link-card","aria-label":`Open ${e.title}`,children:[o.jsx("span",{className:"info-help-link-card-title",children:e.title}),o.jsx("span",{className:"info-help-link-card-description",children:e.description}),o.jsx("span",{className:"info-help-link-card-action",children:"Read more →"})]},e.link))})]})]})}function hee(){return document.title="Info Home",o.jsxs("div",{className:"tos",children:[o.jsx("h2",{children:"Information"}),o.jsx("br",{}),o.jsxs("p",{children:["Welcome! Here you can find information all parts of the site! If you have any questions or concerns please don't hesitate to reach out on our ",o.jsx("a",{href:"https://discord.gg/qnCxZ3KHXp",children:"DISCORD"})]})]})}function mee(){return document.title="Language and Translation",o.jsxs("div",{className:"tos",children:[o.jsx("h2",{children:o.jsx("u",{children:"Locations, locales, translations"})}),o.jsxs("p",{children:["As we are a US based company, all legal discussions will be carried out in english (American dialects) and any/all translations will be done by 3rd parties as needed. In the event you are in a non-english-speaking country, or do not speak english fluently and have a legal question, comment, concern, or stipulation, strim.fun will perform all tasks needed to attempt to rectify the issue to the best of our understanding or ability.",o.jsx("br",{}),"We will do our best to provide locale translations quickly and timely, but cannot ever guarantee a locale translation to any particular region or language outside of the default english (American dialects) that the system is built/designed under.  If you have any questions or need support with locale translations or would like to assist with locale translations, please contact the admin team."]}),o.jsxs("h3",{style:{color:"var(--a-color)"},children:["Note: A full set of language information can be found on our ",o.jsx("a",{href:"/info/tos",children:"Terms Of Service"}),". This page may or may not be out of date with that information. The TOS information is always considered the most current and stateful contract. This information is secondary"]})]})}function pee(){return document.title="Layouts Info",o.jsxs(o.Fragment,{children:[o.jsx("h2",{children:"Customizeable Layouts"}),o.jsx("p",{children:"Info comming soon"})]})}const gee=n=>S.createElement("svg",{width:155.38557,height:150,viewBox:"0 0 116.53918 112.49999",id:"svg1",sodipodidocname:"LogoLotlBase.svg",inkscapeversion:"1.3 (0e150ed6c4, 2023-07-21)",xmlnsinkscape:"http://www.inkscape.org/namespaces/inkscape",xmlnssodipodi:"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd",xmlns:"http://www.w3.org/2000/svg",xmlnssvg:"http://www.w3.org/2000/svg",...n},S.createElement("sodipodinamedview",{id:"namedview1",pagecolor:"#ffffff",bordercolor:"#000000",borderopacity:.25,inkscapeshowpageshadow:2,inkscapepageopacity:0,inkscapepagecheckerboard:0,inkscapedeskcolor:"#d1d1d1","inkscapedocument-units":"pt",inkscapezoom:6.4239386,inkscapecx:68.026802,inkscapecy:73.864342,"inkscapewindow-width":2560,"inkscapewindow-height":1417,"inkscapewindow-x":1912,"inkscapewindow-y":-8,"inkscapewindow-maximized":1,"inkscapecurrent-layer":"svg1"}),S.createElement("defs",{id:"defs1"},S.createElement("filter",{style:{colorinterpolationfilters:"sRGB"}
1490,inkscapelabel:"Drop Shadow",id:"filter11",x:-.13129354,y:-.21673212,width:1.2625871,height:1.4337513},S.createElement("feFlood",{result:"flood",in:"SourceGraphic",floodOpacity:1,floodColor:"rgb(12,29,195)",id:"feFlood10"}),S.createElement("feGaussianBlur",{result:"blur",in:"SourceGraphic",stdDeviation:5,id:"feGaussianBlur10"}),S.createElement("feOffset",{result:"offset",in:"blur",dx:0,dy:0,id:"feOffset10"}),S.createElement("feComposite",{result:"comp1",operator:"in",in:"flood",in2:"offset",id:"feComposite10"}),S.createElement("feComposite",{result:"comp2",operator:"over",in:"SourceGraphic",in2:"comp1",id:"feComposite11"})),S.createElement("filter",{style:{colorinterpolationfilters:"sRGB"},inkscapelabel:"Drop Shadow",id:"filter42",x:-.13129354,y:-.21673212,width:1.2625871,height:1.4337513},S.createElement("feFlood",{result:"flood",in:"SourceGraphic",floodOpacity:1,floodColor:"rgb(0,149,23)",id:"feFlood41"}),S.createElement("feGaussianBlur",{result:"blur",in:"SourceGraphic",stdDeviation:5,id:"feGaussianBlur41"}),S.createElement("feOffset",{result:"offset",in:"blur",dx:0,dy:0,id:"feOffset41"}),S.createElement("feComposite",{result:"comp1",operator:"in",in:"flood",in2:"offset",id:"feComposite41"}),S.createElement("feComposite",{result:"comp2",operator:"over",in:"SourceGraphic",in2:"comp1",id:"feComposite42"}))),S.createElement("rect",{id:"shape0",fill:"none",strokeOpacity:0,stroke:"#000000",strokeWidth:0,strokeLinecap:"square",strokeLinejoin:"bevel",width:112.38,height:112.5,rx:2.1405714,ry:2.1428571,style:{fill:"none",fillopacity:1,stroke:"#241b1b",strokeOpacity:0},x:2.0795958,y:5e-7}),S.createElement("path",{id:"path1",fill:"#aac7fe",fillRule:"evenodd",stroke:"#aac7fe",strokeWidth:.24,strokeLinecap:"square",strokeLinejoin:"bevel",d:"m 80.062744,70.944084 c 0,-2.6116 -1.8276,-4.7287 -4.0821,-4.7287 -2.2545,0 -4.0821,2.1171 -4.0821,4.7287 0,2.6117 1.767,4.864 4.0215,4.864 2.2545,0 4.1427,-2.2523 4.1427,-4.864 m -43.7558,0.1628 c 0,-2.6117 1.8276,-4.7288 4.0821,-4.7288 2.2545,0 4.0821,2.1171 4.0821,4.7288 0,2.6116 -1.841,4.6889 -4.0955,4.6889 -2.173012,0.723032 -4.222277,-0.483033 -13.9583,-1.5274 4.313,5.6181 17.2068,9.8974 31.8523,9.8974 14.6455,0 27.5644,-4.267 31.8774,-9.8852 5.7455,0 8.8706,-3.3486 11.732096,-8.1814 0.38511,-1.0556 2.25951,-2.779699 2.54141,-4.6389 -1.0295,-0.2995 -2.71511,0.296301 -3.62141,0.6789 -1.795696,0.8276 -2.083096,0.8326 -3.839996,1.32 -0.9996,0.4794 -3.4624,0.4368 -4.32,0 1.2,-0.5904 1.7002,-0.844 2.16,-1.2 1.5782,-1.2216 2.099,-2.163 3.0109,-3.9598 2.0597,-4.0583 3.857396,-8.6361 3.179296,-13.2176 -0.2043,-1.3799 -0.3806,-3.7758 -1.270196,-4.9026 -1.1792,0.4663 -1.893,3.0211 -2.64,3.840001 -2.0253,3.120899 -2.4037,4.021099 -5.88,6.719999 -0.5487,0.527001 -2.2435,1.9011 -3.7015,1.6226 0.8586,-0.5822 2.266,-2.4097 3.258,-4.0584 2.2573,-4.720199 2.8362,-10.05957 1.3916,-15.210079 -0.4194,-1.49536 -0.5209,-2.10044 -1.4281,-3.35408 -0.3625,-0.500945 -1.1864,-1.088663 -1.7631,-1.42104 -0.4019,1.39428 -0.7189,3.975459 -1.1169,5.021039 -0.7307,2.670291 -1.4046,4.324711 -2.9502,6.56216 -1.0325,1.4946 -2.733,3.0134 -4.1631,4.1335 -0.3908,0.3061 -2.1946,1.6735 -2.7946,2.4556 -5.3425,-3.7665 -12.304,-6.1503 -19.6616,-6.0647 -7.3577,-0.0856 -14.3192,2.317 -19.6617,6.0835 -0.6,-0.7821 -2.4038,-2.1495 -2.7946,-2.4556 -1.4301,-1.1201 -3.1306,-2.6389 -4.163,-4.1334 -1.5456,-2.23749 -2.2196,-3.89192 -2.9503,-6.5622 -0.398,-1.04559 -0.715,-3.626769 -1.1168,-5.021044 -0.5768,0.332377 -1.4007,0.920095 -1.7632,1.421045 -0.9072,1.25364 -1.0087,1.858709 -1.4281,3.354069 -1.4446,5.15051 -0.8657,10.48993 1.3917,15.21013 0.992,1.6486 2.3993,3.4762 3.2579,4.0583 -1.458,0.2786 -3.1528,-1.0955 -3.7015,-1.6225 -3.4763,-2.699 -3.8547,-3.5991 -5.88,-6.72 -0.747,-0.8189 -1.4607,-3.3737 -2.64,-3.84 -0.8896,1.126801 -1.0659,3.5227 -1.2702,4.902501 -0.6781,4.5815 1.1196,9.1593 3.1793,13.2177 0.9119,1.7967 1.4327,2.7382 3.0109,3.9598 0.4598,0.3559 0.96,0.6096 2.16,1.2 -0.8576,0.4368 -3.3204,0.4794 -4.32,0 -1.7569,-0.4875 -2.0443,-0.4925 -3.84,-1.32 -0.9063,-0.3827 -2.5919,-0.9785 -3.6214,-0.6789 0.2819,1.8592 2.1563,3.5832 2.5414,4.6389 2.8615,4.8328 5.9866,8.1814 11.7321,8.1814 5.4909,0.636399 11.489824,1.645429 13.9835,1.4963 -2.2545,0 -4.0687,-2.0773 -4.0687,-4.6889",s
1490odipodinodetypes:"cccccccccccccccccccccccccccccccccccccccccccccccccccccccc",style:{display:"none",fill:"#000000",fillopacity:1,stroke:"#000000",strokeOpacity:1,filter:"url(#filter11)"}}),S.createElement("path",{id:"path2",fill:"#aac7fe",fillRule:"evenodd",stroke:"#aac7fe",strokeWidth:.24,strokeLinecap:"square",strokeLinejoin:"bevel",d:"m 80.062744,70.944084 c 0,-2.6116 -1.8276,-4.7287 -4.0821,-4.7287 -2.2545,0 -4.0821,2.1171 -4.0821,4.7287 0,2.6117 1.767,4.864 4.0215,4.864 2.2545,0 4.1427,-2.2523 4.1427,-4.864 m -43.7558,0.1628 c 0,-2.6117 1.8276,-4.7288 4.0821,-4.7288 2.2545,0 4.0821,2.1171 4.0821,4.7288 0,2.6116 -1.841,4.6889 -4.0955,4.6889 -2.173012,0.723032 -4.222277,-0.483033 -13.9583,-1.5274 4.313,5.6181 17.2068,9.8974 31.8523,9.8974 14.6455,0 27.5644,-4.267 31.8774,-9.8852 5.7455,0 8.8706,-3.3486 11.732096,-8.1814 0.38511,-1.0556 2.25951,-2.779699 2.54141,-4.6389 -1.0295,-0.2995 -2.71511,0.296301 -3.62141,0.6789 -1.795696,0.8276 -2.083096,0.8326 -3.839996,1.32 -0.9996,0.4794 -3.4624,0.4368 -4.32,0 1.2,-0.5904 1.7002,-0.844 2.16,-1.2 1.5782,-1.2216 2.099,-2.163 3.0109,-3.9598 2.0597,-4.0583 3.857396,-8.6361 3.179296,-13.2176 -0.2043,-1.3799 -0.3806,-3.7758 -1.270196,-4.9026 -1.1792,0.4663 -1.893,3.0211 -2.64,3.840001 -2.0253,3.120899 -2.4037,4.021099 -5.88,6.719999 -0.5487,0.527001 -2.2435,1.9011 -3.7015,1.6226 0.8586,-0.5822 2.266,-2.4097 3.258,-4.0584 2.2573,-4.720199 2.8362,-10.05957 1.3916,-15.210079 -0.4194,-1.49536 -0.5209,-2.10044 -1.4281,-3.35408 -0.3625,-0.500945 -1.1864,-1.088663 -1.7631,-1.42104 -0.4019,1.39428 -0.7189,3.975459 -1.1169,5.021039 -0.7307,2.670291 -1.4046,4.324711 -2.9502,6.56216 -1.0325,1.4946 -2.733,3.0134 -4.1631,4.1335 -0.3908,0.3061 -2.1946,1.6735 -2.7946,2.4556 -5.3425,-3.7665 -12.304,-6.1503 -19.6616,-6.0647 -7.3577,-0.0856 -14.3192,2.317 -19.6617,6.0835 -0.6,-0.7821 -2.4038,-2.1495 -2.7946,-2.4556 -1.4301,-1.1201 -3.1306,-2.6389 -4.163,-4.1334 -1.5456,-2.23749 -2.2196,-3.89192 -2.9503,-6.5622 -0.398,-1.04559 -0.715,-3.626769 -1.1168,-5.021044 -0.5768,0.332377 -1.4007,0.920095 -1.7632,1.421045 -0.9072,1.25364 -1.0087,1.858709 -1.4281,3.354069 -1.4446,5.15051 -0.8657,10.48993 1.3917,15.21013 0.992,1.6486 2.3993,3.4762 3.2579,4.0583 -1.458,0.2786 -3.1528,-1.0955 -3.7015,-1.6225 -3.4763,-2.699 -3.8547,-3.5991 -5.88,-6.72 -0.747,-0.8189 -1.4607,-3.3737 -2.64,-3.84 -0.8896,1.126801 -1.0659,3.5227 -1.2702,4.902501 -0.6781,4.5815 1.1196,9.1593 3.1793,13.2177 0.9119,1.7967 1.4327,2.7382 3.0109,3.9598 0.4598,0.3559 0.96,0.6096 2.16,1.2 -0.8576,0.4368 -3.3204,0.4794 -4.32,0 -1.7569,-0.4875 -2.0443,-0.4925 -3.84,-1.32 -0.9063,-0.3827 -2.5919,-0.9785 -3.6214,-0.6789 0.2819,1.8592 2.1563,3.5832 2.5414,4.6389 2.8615,4.8328 5.9866,8.1814 11.7321,8.1814 5.4909,0.636399 11.489824,1.645429 13.9835,1.4963 -2.2545,0 -4.0687,-2.0773 -4.0687,-4.6889",sodipodinodetypes:"cccccccccccccccccccccccccccccccccccccccccccccccccccccccc",style:{display:"inline",fill:"#ffffff",fillopacity:1,stroke:"#ffffff",strokeOpacity:1,filter:"url(#filter42)"}})),yee=n=>S.createElement("svg",{width:155.38557,height:150,viewBox:"0 0 116.53918 112.49999",id:"svg1",sodipodidocname:"LogoLotlBase.svg",inkscapeversion:"1.3 (0e150ed6c4, 2023-07-21)",xmlnsinkscape:"http://www.inkscape.org/namespaces/inkscape",xmlnssodipodi:"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd",xmlns:"http://www.w3.org/2000/svg",xmlnssvg:"http://www.w3.org/2000/svg",...n},S.createElement("sodipodinamedview",{id:"namedview1",pagecolor:"#ffffff",bordercolor:"#000000",borderopacity:.25,inkscapeshowpageshadow:2,inkscapepageopacity:0,inkscapepagecheckerboard:0,inkscapedeskcolor:"#d1d1d1","inkscapedocument-units":"pt",inkscapezoom:6.4239386,inkscapecx:68.026802,inkscapecy:73.864342,"inkscapewindow-width":2560,"inkscapewindow-height":1417,"inkscapewindow-x":1912,"inkscapewindow-y":-8,"inkscapewindow-maximized":1,"inkscapecurrent-layer":"svg1"}),S.createElement("defs",{id:"defs1"},S.createElement("filter",{style:{colorinterpolationfilters:"sRGB"},inkscapelabel:"Drop Shadow",id:"filter11",x:-.13129354,y:-.21673212,width:1.2625871,height:1.4337513},S.createElement("feFlood",{result:"flood",in:"SourceGraphic",floodOpacity:1,floodColor:"rgb(12,29,195)",id:"feFlood10"}),S.createElement("feGaussianBlur",{result:"blur",in:"SourceGraphic",stdDeviation:5,id:"feGaussianBlur10"}),S.createElement("feOffset",{result:"offset",in:"blur",dx:0,dy:0,id:"feOffset10"}),S.createElement("feComposite",{result:"comp1",operator:"in",in:"flood",in2:"offset",id:"feComposite10"}),S.createElement("feComposite",{result:"comp2",operator:"over",in:"SourceGraphic",in2:"comp1",id:"feComposite11"})),S.createElement("filter",{style:{colorinterpolationfilters:"sRGB"},inkscapelabel:"Drop Shadow",id:"filter30",x:-.13129354,y:-.21673212,width:1.2625871,height:1.4337513},S.createElement("feFlood",{result:"flood",in:"SourceGraphic",floodOpacity:1,floodColor:"rgb(0,30,171)",id:"feFlood29"}),S.createElement("feGaussianBlur",{result:"blur",in:"SourceGraphic",stdDeviation:5,id:"feGaussianBlur29"}),S.createElement("feOffset",{result:"offset",in:"blur",dx:0,dy:0,id:"feOffset29"}),S.createElement("feComposite",{result:"comp1",operator:"in",in:"flood",in2:"offset",id:"feComposite29"}),S.createElement("feComposite",{result:"comp2",operator:"over",in:"SourceGraphic",in2:"comp1",id:"feComposite30"}))),S.createElement("rect",{id:"shape0",fill:"none",strokeOpacity:0,stroke:"#000000",strokeWidth:0,strokeLinecap:"square",strokeLinejoin:"bevel",width:112.38,height:112.5,rx:2.1405714,ry:2.1428571,style:{fill:"none",fillopacity:1,stroke:"#241b1b",strokeOpacity:0},x:2.0795958,y:5e-7}),S.createElement("path",{id:"path1",fill:"#aac7fe",fillRule:"evenodd",stroke:"#aac7fe",strokeWidth:.24,strokeLinecap:"square",strokeLinejoin:"bevel",d:"m 80.062744,70.944084 c 0,-2.6116 -1.8276,-4.7287 -4.0821,-4.7287 -2.2545,0 -4.0821,2.1171 -4.0821,4.7287 0,2.6117 1.767,4.864 4.0215,4.864 2.2545,0 4.1427,-2.2523 4.1427,-4.864 m -43.7558,0.1628 c 0,-2.6117 1.8276,-4.7288 4.0821,-4.7288 2.2545,0 4.0821,2.1171 4.0821,4.7288 0,2.6116 -1.841,4.6889 -4.0955,4.6889 -2.173012,0.723032 -4.222277,-0.483033 -13.9583,-1.5274 4.313,5.6181 17.2068,9.8974 31.8523,9.8974 14.6455,0 27.5644,-4.267 31.8774,-9.8852 5.7455,0 8.8706,-3.3486 11.732096,-8.1814 0.38511,-1.0556 2.25951,-2.779699 2.54141,-4.6389 -1.0295,-0.2995 -2.71511,0.296301 -3.62141,0.6789 -1.795696,0.8276 -2.083096,0.8326 -3.839996,1.32 -0.9996,0.4794 -3.4624,0.4368 -4.32,0 1.2,-0.5904 1.7002,-0.844 2.16,-1.2 1.5782,-1.2216 2.099,-2.163 3.0109,-3.9598 2.0597,-4.0583 3.857396,-8.6361 3.179296,-13.2176 -0.2043,-1.3799 -0.3806,-3.7758 -1.270196,-4.9026 -1.1792,0.4663 -1.893,3.0211 -2.64,3.840001 -2.0253,3.120899 -2.4037,4.021099 -5.88,6.719999 -0.5487,0.527001 -2.2435,1.9011 -3.7015,1.6226 0.8586,-0.5822 2.266,-2.4097 3.258,-4.0584 2.2573,-4.720199 2.8362,-10.05957 1.3916,-15.210079 -0.4194,-1.49536 -0.5209,-2.10044 -1.4281,-3.35408 -0.3625,-0.500945 -1.1864,-1.
1490088663 -1.7631,-1.42104 -0.4019,1.39428 -0.7189,3.975459 -1.1169,5.021039 -0.7307,2.670291 -1.4046,4.324711 -2.9502,6.56216 -1.0325,1.4946 -2.733,3.0134 -4.1631,4.1335 -0.3908,0.3061 -2.1946,1.6735 -2.7946,2.4556 -5.3425,-3.7665 -12.304,-6.1503 -19.6616,-6.0647 -7.3577,-0.0856 -14.3192,2.317 -19.6617,6.0835 -0.6,-0.7821 -2.4038,-2.1495 -2.7946,-2.4556 -1.4301,-1.1201 -3.1306,-2.6389 -4.163,-4.1334 -1.5456,-2.23749 -2.2196,-3.89192 -2.9503,-6.5622 -0.398,-1.04559 -0.715,-3.626769 -1.1168,-5.021044 -0.5768,0.332377 -1.4007,0.920095 -1.7632,1.421045 -0.9072,1.25364 -1.0087,1.858709 -1.4281,3.354069 -1.4446,5.15051 -0.8657,10.48993 1.3917,15.21013 0.992,1.6486 2.3993,3.4762 3.2579,4.0583 -1.458,0.2786 -3.1528,-1.0955 -3.7015,-1.6225 -3.4763,-2.699 -3.8547,-3.5991 -5.88,-6.72 -0.747,-0.8189 -1.4607,-3.3737 -2.64,-3.84 -0.8896,1.126801 -1.0659,3.5227 -1.2702,4.902501 -0.6781,4.5815 1.1196,9.1593 3.1793,13.2177 0.9119,1.7967 1.4327,2.7382 3.0109,3.9598 0.4598,0.3559 0.96,0.6096 2.16,1.2 -0.8576,0.4368 -3.3204,0.4794 -4.32,0 -1.7569,-0.4875 -2.0443,-0.4925 -3.84,-1.32 -0.9063,-0.3827 -2.5919,-0.9785 -3.6214,-0.6789 0.2819,1.8592 2.1563,3.5832 2.5414,4.6389 2.8615,4.8328 5.9866,8.1814 11.7321,8.1814 5.4909,0.636399 11.489824,1.645429 13.9835,1.4963 -2.2545,0 -4.0687,-2.0773 -4.0687,-4.6889",sodipodinodetypes:"cccccccccccccccccccccccccccccccccccccccccccccccccccccccc",style:{display:"none",fill:"#000000",fillopacity:1,stroke:"#000000",strokeOpacity:1,filter:"url(#filter11)"}}),S.createElement("path",{id:"path2",fill:"#aac7fe",fillRule:"evenodd",stroke:"#aac7fe",strokeWidth:.24,strokeLinecap:"square",strokeLinejoin:"bevel",d:"m 80.062744,70.944084 c 0,-2.6116 -1.8276,-4.7287 -4.0821,-4.7287 -2.2545,0 -4.0821,2.1171 -4.0821,4.7287 0,2.6117 1.767,4.864 4.0215,4.864 2.2545,0 4.1427,-2.2523 4.1427,-4.864 m -43.7558,0.1628 c 0,-2.6117 1.8276,-4.7288 4.0821,-4.7288 2.2545,0 4.0821,2.1171 4.0821,4.7288 0,2.6116 -1.841,4.6889 -4.0955,4.6889 -2.173012,0.723032 -4.222277,-0.483033 -13.9583,-1.5274 4.313,5.6181 17.2068,9.8974 31.8523,9.8974 14.6455,0 27.5644,-4.267 31.8774,-9.8852 5.7455,0 8.8706,-3.3486 11.732096,-8.1814 0.38511,-1.0556 2.25951,-2.779699 2.54141,-4.6389 -1.0295,-0.2995 -2.71511,0.296301 -3.62141,0.6789 -1.795696,0.8276 -2.083096,0.8326 -3.839996,1.32 -0.9996,0.4794 -3.4624,0.4368 -4.32,0 1.2,-0.5904 1.7002,-0.844 2.16,-1.2 1.5782,-1.2216 2.099,-2.163 3.0109,-3.9598 2.0597,-4.0583 3.857396,-8.6361 3.179296,-13.2176 -0.2043,-1.3799 -0.3806,-3.7758 -1.270196,-4.9026 -1.1792,0.4663 -1.893,3.0211 -2.64,3.840001 -2.0253,3.120899 -2.4037,4.021099 -5.88,6.719999 -0.5487,0.527001 -2.2435,1.9011 -3.7015,1.6226 0.8586,-0.5822 2.266,-2.4097 3.258,-4.0584 2.2573,-4.720199 2.8362,-10.05957 1.3916,-15.210079 -0.4194,-1.49536 -0.5209,-2.10044 -1.4281,-3.35408 -0.3625,-0.500945 -1.1864,-1.088663 -1.7631,-1.42104 -0.4019,1.39428 -0.7189,3.975459 -1.1169,5.021039 -0.7307,2.670291 -1.4046,4.324711 -2.9502,6.56216 -1.0325,1.4946 -2.733,3.0134 -4.1631,4.1335 -0.3908,0.3061 -2.1946,1.6735 -2.7946,2.4556 -5.3425,-3.7665 -12.304,-6.1503 -19.6616,-6.0647 -7.3577,-0.0856 -14.3192,2.317 -19.6617,6.0835 -0.6,-0.7821 -2.4038,-2.1495 -2.7946,-2.4556 -1.4301,-1.1201 -3.1306,-2.6389 -4.163,-4.1334 -1.5456,-2.23749 -2.2196,-3.89192 -2.9503,-6.5622 -0.398,-1.04559 -0.715,-3.626769 -1.1168,-5.021044 -0.5768,0.332377 -1.4007,0.920095 -1.7632,1.421045 -0.9072,1.25364 -1.0087,1.858709 -1.4281,3.354069 -1.4446,5.15051 -0.8657,10.48993 1.3917,15.21013 0.992,1.6486 2.3993,3.4762 3.2579,4.0583 -1.458,0.2786 -3.1528,-1.0955 -3.7015,-1.6225 -3.4763,-2.699 -3.8547,-3.5991 -5.88,-6.72 -0.747,-0.8189 -1.4607,-3.3737 -2.64,-3.84 -0.8896,1.126801 -1.0659,3.5227 -1.2702,4.902501 -0.6781,4.5815 1.1196,9.1593 3.1793,13.2177 0.9119,1.7967 1.4327,2.7382 3.0109,3.9598 0.4598,0.3559 0.96,0.6096 2.16,1.2 -0.8576,0.4368 -3.3204,0.4794 -4.32,0 -1.7569,-0.4875 -2.0443,-0.4925 -3.84,-1.32 -0.9063,-0.3827 -2.5919,-0.9785 -3.6214,-0.6789 0.2819,1.8592 2.1563,3.5832 2.5414,4.6389 2.8615,4.8328 5.9866,8.1814 11.7321,8.1814 5.4909,0.636399 11.489824,1.645429 13.9835,1.4963 -2.2545,0 -4.0687,-2.0773 -4.0687,-4.6889",s
1490odipodinodetypes:"cccccccccccccccccccccccccccccccccccccccccccccccccccccccc",style:{display:"inline",fill:"#ffffff",fillopacity:1,stroke:"#ffffff",strokeOpacity:1,filter:"url(#filter30)"}})),vee=n=>S.createElement("svg",{width:155.38557,height:150,viewBox:"0 0 116.53918 112.49999",id:"svg1",sodipodidocname:"LogoLotlBase.svg",inkscapeversion:"1.3 (0e150ed6c4, 2023-07-21)",xmlnsinkscape:"http://www.inkscape.org/namespaces/inkscape",xmlnssodipodi:"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd",xmlns:"http://www.w3.org/2000/svg",xmlnssvg:"http://www.w3.org/2000/svg",...n},S.createElement("sodipodinamedview",{id:"namedview1",pagecolor:"#ffffff",bordercolor:"#000000",borderopacity:.25,inkscapeshowpageshadow:2,inkscapepageopacity:0,inkscapepagecheckerboard:0,inkscapedeskcolor:"#d1d1d1","inkscapedocument-units":"pt",inkscapezoom:6.4239386,inkscapecx:68.026802,inkscapecy:73.864342,"inkscapewindow-width":2560,"inkscapewindow-height":1417,"inkscapewindow-x":1912,"inkscapewindow-y":-8,"inkscapewindow-maximized":1,"inkscapecurrent-layer":"svg1"}),S.createElement("defs",{id:"defs1"},S.createElement("filter",{style:{colorinterpolationfilters:"sRGB"},inkscapelabel:"Drop Shadow",id:"filter11",x:-.13129354,y:-.21673212,width:1.2625871,height:1.4337513},S.createElement("feFlood",{result:"flood",in:"SourceGraphic",floodOpacity:1,floodColor:"rgb(12,29,195)",id:"feFlood10"}),S.createElement("feGaussianBlur",{result:"blur",in:"SourceGraphic",stdDeviation:5,id:"feGaussianBlur10"}),S.createElement("feOffset",{result:"offset",in:"blur",dx:0,dy:0,id:"feOffset10"}),S.createElement("feComposite",{result:"comp1",operator:"in",in:"flood",in2:"offset",id:"feComposite10"}),S.createElement("feComposite",{result:"comp2",operator:"over",in:"SourceGraphic",in2:"comp1",id:"feComposite11"})),S.createElement("filter",{style:{colorinterpolationfilters:"sRGB"},inkscapelabel:"Drop Shadow",id:"filter64",x:-.13129354,y:-.21673212,width:1.2625871,height:1.4337513},S.createElement("feFlood",{result:"flood",in:"SourceGraphic",floodOpacity:1,floodColor:"rgb(202,195,0)",id:"feFlood63"}),S.createElement("feGaussianBlur",{result:"blur",in:"SourceGraphic",stdDeviation:5,id:"feGaussianBlur63"}),S.createElement("feOffset",{result:"offset",in:"blur",dx:0,dy:0,id:"feOffset63"}),S.createElement("feComposite",{result:"comp1",operator:"in",in:"flood",in2:"offset",id:"feComposite63"}),S.createElement("feComposite",{result:"comp2",operator:"over",in:"SourceGraphic",in2:"comp1",id:"feComposite64"}))),S.createElement("rect",{id:"shape0",fill:"none",strokeOpacity:0,stroke:"#000000",strokeWidth:0,strokeLinecap:"square",strokeLinejoin:"bevel",width:112.38,height:112.5,rx:2.1405714,ry:2.1428571,style:{fill:"none",fillopacity:1,stroke:"#241b1b",strokeOpacity:0},x:2.0795958,y:5e-7}),S.createElement("path",{id:"path1",fill:"#aac7fe",fillRule:"evenodd",stroke:"#aac7fe",strokeWidth:.24,strokeLinecap:"square",strokeLinejoin:"bevel",d:"m 80.062744,70.944084 c 0,-2.6116 -1.8276,-4.7287 -4.0821,-4.7287 -2.2545,0 -4.0821,2.1171 -4.0821,4.7287 0,2.6117 1.767,4.864 4.0215,4.864 2.2545,0 4.1427,-2.2523 4.1427,-4.864 m -43.7558,0.1628 c 0,-2.6117 1.8276,-4.7288 4.0821,-4.7288 2.2545,0 4.0821,2.1171 4.0821,4.7288 0,2.6116 -1.841,4.6889 -4.0955,4.6889 -2.173012,0.723032 -4.222277,-0.483033 -13.9583,-1.5274 4.313,5.6181 17.2068,9.8974 31.8523,9.8974 14.6455,0 27.5644,-4.267 31.8774,-9.8852 5.7455,0 8.8706,-3.3486 11.732096,-8.1814 0.38511,-1.0556 2.25951,-2.779699 2.54141,-4.6389 -1.0295,-0.2995 -2.71511,0.296301 -3.62141,0.6789 -1.795696,0.8276 -2.083096,0.8326 -3.839996,1.32 -0.9996,0.4794 -3.4624,0.4368 -4.32,0 1.2,-0.5904 1.7002,-0.844 2.16,-1.2 1.5782,-1.2216 2.099,-2.163 3.0109,-3.9598 2.0597,-4.0583 3.857396,-8.6361 3.179296,-13.2176 -0.2043,-1.3799 -0.3806,-3.7758 -1.270196,-4.9026 -1.1792,0.4663 -1.893,3.0211 -2.64,3.840001 -2.0253,3.120899 -2.4037,4.021099 -5.88,6.719999 -0.5487,0.527001 -2.2435,1.9011 -3.7015,1.6226 0.8586,-0.5822 2.266,-2.4097 3.258,-4.0584 2.2573,-4.720199 2.8362,-10.05957 1.3916,-15.210079 -0.4194,-1.49536 -0.5209,-2.10044 -1.4281,-3.35408 -0.3625,-0.500945 -1.1864,-1.088663 -1.7631,-1.42104 -0.4019,1.39428 -0.7189,3.975459 -1.1169,5.021039 -0.7307,2.670291 -1.4046,4.324711 -2.9502,6.56216 -1.0325,1.4946 -2.733,3.0134 -4.1631,4.1335 -0.3908,0.3061 -2.1946,1.6735 -2.7946,2.4556 -5.3425,-3.7665 -12.304,-6.1503 -19.6616,-6.0647 -7.3577,-0.0856 -14.3192,2.317 -19.6617,6.0835 -0.6,-0.7821 -2.4038,-2.1495 -2.7946,-2.4556 -1.4301,-1.1201 -3.1306,-2.6389 -4.163,-4.1334 -1.5456,-2.23749 -2.2196,-3.89192 -2.9503,-6.5622 -0.398,-1.04559 -0.715,-3.626769 -1.1168,-5.021044 -0.5768,0.332377 -1.4007,0.920095 -1.7632,1.421045 -0.9072,1.25364 -1.0087,1.858709 -1.4281,3.354069 -1.4446,5.15051 -0.8657,10.48993 1.3917,15.21013 0.992,1.6486 2.3993,3.4762 3.2579,4.0583 -1.458,0.2786 -3.1528,-1.0955 -3.7015,-1.6225 -3.4763,-2.699 -3.8547,-3.5991 -5.88,-6.72 -0.747,-0.8189 -1.4607,-3.3737 -2.64,-3.84 -0.8896,1.126801 -1.0659,3.5227 -1.2702,4.902501 -0.6781,4.5815 1.1196,9.1593 3.1793,13.2177 0.9119,1.7967 1.4327,2.7382 3.0109,3.9598 0.4598,0.3559 0.96,0.6096 2.16,1.2 -0.8576,0.43
149068 -3.3204,0.4794 -4.32,0 -1.7569,-0.4875 -2.0443,-0.4925 -3.84,-1.32 -0.9063,-0.3827 -2.5919,-0.9785 -3.6214,-0.6789 0.2819,1.8592 2.1563,3.5832 2.5414,4.6389 2.8615,4.8328 5.9866,8.1814 11.7321,8.1814 5.4909,0.636399 11.489824,1.645429 13.9835,1.4963 -2.2545,0 -4.0687,-2.0773 -4.0687,-4.6889",sodipodinodetypes:"cccccccccccccccccccccccccccccccccccccccccccccccccccccccc",style:{display:"none",fill:"#000000",fillopacity:1,stroke:"#000000",strokeOpacity:1,filter:"url(#filter11)"}}),S.createElement("path",{id:"path2",fill:"#aac7fe",fillRule:"evenodd",stroke:"#aac7fe",strokeWidth:.24,strokeLinecap:"square",strokeLinejoin:"bevel",d:"m 80.062744,70.944084 c 0,-2.6116 -1.8276,-4.7287 -4.0821,-4.7287 -2.2545,0 -4.0821,2.1171 -4.0821,4.7287 0,2.6117 1.767,4.864 4.0215,4.864 2.2545,0 4.1427,-2.2523 4.1427,-4.864 m -43.7558,0.1628 c 0,-2.6117 1.8276,-4.7288 4.0821,-4.7288 2.2545,0 4.0821,2.1171 4.0821,4.7288 0,2.6116 -1.841,4.6889 -4.0955,4.6889 -2.173012,0.723032 -4.222277,-0.483033 -13.9583,-1.5274 4.313,5.6181 17.2068,9.8974 31.8523,9.8974 14.6455,0 27.5644,-4.267 31.8774,-9.8852 5.7455,0 8.8706,-3.3486 11.732096,-8.1814 0.38511,-1.0556 2.25951,-2.779699 2.54141,-4.6389 -1.0295,-0.2995 -2.71511,0.296301 -3.62141,0.6789 -1.795696,0.8276 -2.083096,0.8326 -3.839996,1.32 -0.9996,0.4794 -3.4624,0.4368 -4.32,0 1.2,-0.5904 1.7002,-0.844 2.16,-1.2 1.5782,-1.2216 2.099,-2.163 3.0109,-3.9598 2.0597,-4.0583 3.857396,-8.6361 3.179296,-13.2176 -0.2043,-1.3799 -0.3806,-3.7758 -1.270196,-4.9026 -1.1792,0.4663 -1.893,3.0211 -2.64,3.840001 -2.0253,3.120899 -2.4037,4.021099 -5.88,6.719999 -0.5487,0.527001 -2.2435,1.9011 -3.7015,1.6226 0.8586,-0.5822 2.266,-2.4097 3.258,-4.0584 2.2573,-4.720199 2.8362,-10.05957 1.3916,-15.210079 -0.4194,-1.49536 -0.5209,-2.10044 -1.4281,-3.35408 -0.3625,-0.500945 -1.1864,-1.088663 -1.7631,-1.42104 -0.4019,1.39428 -0.7189,3.975459 -1.1169,5.021039 -0.7307,2.670291 -1.4046,4.324711 -2.9502,6.56216 -1.0325,1.4946 -2.733,3.0134 -4.1631,4.1335 -0.3908,0.3061 -2.1946,1.6735 -2.7946,2.4556 -5.3425,-3.7665 -12.304,-6.1503 -19.6616,-6.0647 -7.3577,-0.0856 -14.3192,2.317 -19.6617,6.0835 -0.6,-0.7821 -2.4038,-2.1495 -2.7946,-2.4556 -1.4301,-1.1201 -3.1306,-2.6389 -4.163,-4.1334 -1.5456,-2.23749 -2.2196,-3.89192 -2.9503,-6.5622 -0.398,-1.04559 -0.715,-3.626769 -1.1168,-5.021044 -0.5768,0.332377 -1.4007,0.920095 -1.7632,1.421045 -0.9072,1.25364 -1.0087,1.858709 -1.4281,3.354069 -1.4446,5.15051 -0.8657,10.48993 1.3917,15.21013 0.992,1.6486 2.3993,3.4762 3.2579,4.0583 -1.458,0.2786 -3.1528,-1.0955 -3.7015,-1.6225 -3.4763,-2.699 -3.8547,-3.5991 -5.88,-6.72 -0.747,-0.8189 -1.4607,-3.3737 -2.64,-3.84 -0.8896,1.126801 -1.0659,3.5227 -1.2702,4.902501 -0.6781,4.5815 1.1196,9.1593 3.1793,13.2177 0.9119,1.7967 1.4327,2.7382 3.0109,3.9598 0.4598,0.3559 0.96,0.6096 2.16,1.2 -0.8576,0.4368 -3.3204,0.4794 -4.32,0 -1.7569,-0.4875 -2.0443,-0.4925 -3.84,-1.32 -0.9063,-0.3827 -2.5919,-0.9785 -3.6214,-0.6789 0.2819,1.8592 2.1563,3.5832 2.5414,4.6389 2.8615,4.8328 5.9866,8.1814 11.7321,8.1814 5.4909,0.636399 11.489824,1.645429 13.9835,1.4963 -2.2545,0 -4.0687,-2.0773 -4.0687,-4.6889",sodipodinodetypes:"cccccccccccccccccccccccccccccccccccccccccccccccccccccccc",style:{display:"inline",fill:"#ffffff",fillopacity:1,stroke:"#ffffff",strokeOpacity:1,filter:"url(#filter64)"}}));function xee(){return document.title="Monetization Info",o.jsxs("div",{className:"tos",children:[o.jsx("h2",{style:{textAlign:"center"},children:"Earn Money Doing What You Love!"}),o.jsx("h3",{children:o.jsx("u",{children:"Ads"})}),o.jsx("p",{children:"YOU will be in control of when ads play on your channel! not us!"}),o.jsx("p",{children:"Info coming soon"}),o.jsx("hr",{}),o.jsx("h3",{children:o.jsx("u",{children:"Drops (paid points) Terms and Rewards"})}),o.jsxs("h4",{children:["NOTE: All terms in the ",o.jsx("a",{href:"/info/tos",children:"TOS"})," section always apply"]}),o.jsxs("p",{children:["Drops are our paid channel point here at strim.fun, and have an exchange rate of 1 Drop = 0.01 USD (or one cent in USD). All drops and conversions will always be performed in US dollars before the final pay-out is made to a creator.",o.jsx("br",{}),o.jsx("br",{}),"A Channel may rename drops to whatever they would like (within certain limitations outlined in the tos) instead of 'Drops', but the conversion, value, and price of the paid point will not change. The name is simply a superficial title for the official Drop artifact.",o.jsx("br",{}),o.jsx("br",{}),o.jsx("u",{children:"DROPS ARE NOT LEGAL CURRENCY IN THE UNITED STATES OR ANY OTHER COUNTRY, REGION, PROVENCE, ETC. AND ARE NOT IMPLIED, SUGGESTED, OR IN ANY WAY MEANT TO BE A CURRENCY. "}),"When A User purchases drops, they are performing a function of buying an imaginary item that is owned, controlled, and solely the property of strim.fun.  A drop is used as a matter of account and gifting and has no direct net cash value. The value of a Drop is established solely by the strim.fun team and can not be altered or changed by any user, channel, or entity outside of the strim administration team.",o.jsx("br",{}),o.jsx("br",{}),"By default a channel will accumulate drops in their account until they request a payout. At this time, the minimum threshold to request a payout is ",o.jsx("u",{children:"$5 USD"}
1490),", and will be paid via paypal.  As noted in the tos, all fees/transaction fees/costs are the burden of the receiving channel owner, and will NOT be paid by strim.fun.  The final value of your payment will be reduced by any/all fees required to be paid by strim.fun to process the payment to you.",o.jsx("br",{}),o.jsx("br",{}),"A channel may accumulate up to 1 000 000 (one million) Drops before a payout is required (Base approximate value of $10,000 USD, keep in mind drops have no inherent cash value outside of strim). If a channel accumulates over this threshold and no payout has been requested, Drop accumulation will be frozen until a payout is requested. If a payout has been requested, the channel may accumulate up to another 1 000 000 (one million) drops.  If the payout has not been made and the second one million Drop threshold is hit, Drop accumulation will be frozen on the channel until ALL drops have been claimed.",o.jsx("br",{}),o.jsx("br",{}),"Drops in a channels account are a static entity and do not accrue any type of variance, interest, or change unless dictated by a transaction (gift, withdrawal, transfer, etc)"]}),o.jsx("hr",{}),o.jsx("h3",{children:o.jsx("u",{children:"Channel Affiliate Rankings"})}),o.jsxs("p",{children:["There are 5 main levels of affiliate/partnership between channels and Strim.FUN each with their own rewards, identifiers, and payout levels. All affiliated & approved channels earn ",o.jsx("u",{children:"no less than 80%"})," of their subscription revenue at any time.",o.jsx("br",{}),"The channel rankings and requirements are as follows:",o.jsx("h3",{style:{textAlign:"center"},children:o.jsx("u",{children:"Unaffiliated"})}),o.jsxs("h4",{children:[o.jsx("u",{children:"Prerequisites:"})," None"]}),o.jsxs("p",{children:["This level applies to all channels when they first sign up to Strim FUN, regardless of if their creator has other channels on the platform.  Unaffiliated channels may not earn subscription revenue until approved by a Strim FUN administrator. To become approved, the channel must submit for channel approval, via their channel settings dashboard.",o.jsx("br",{}),"Approval can take anywhere from hours to days depending on the backlog of channels awaiting approval. Once approved a channel will become affiliated, and be able to earn 80% of their revenue"]}),o.jsx("hr",{}),o.jsx("h3",{style:{textAlign:"center"},children:o.jsx("u",{children:"Affiliated"})}),o.jsxs("h4",{children:[o.jsx("u",{children:"Prerequisites:"}),o.jsxs("ol",{children:[o.jsx("li",{children:"Approval from Strim FUN team"}),"AND",o.jsx("li",{children:"At least 2 streams"}),"AND",o.jsx("li",{children:"At least 5 total hours streamed"}),"AND",o.jsx("li",{children:"Channel age of at least 2 weeks"}),"OR",o.jsx("li",{children:"Direct Approval from the Strim FUN team"})]})]}),o.jsx("p",{children:"This level applies to all affiliated channels with Strim FUN. The base revenue from this channel for subscriptions is an 80/20 split. 80% of all subscription revenue goes to the channel as soon as the channel is granted affiliate status. Affiliated channels receive the ability to be put on the front-page roulette, and will have their subscriptions enabled as soon as all requirements to receive payouts are met. To receive payouts, the channel owner must have set up payment methods with Strim FUN under their channel settings."}),o.jsx("hr",{}),o.jsx("h3",{style:{textAlign:"center"},children:o.jsx("u",{children:"Rare"})}),o.jsxs("h4",{children:[o.jsx("u",{children:"Prerequisites:"}),o.jsxs("ol",{children:[o.jsx("li",{children:"Affiliate"}),o.jsx("li",{children:"A watch time of over 1 000 hours total"}),o.jsx("li",{children:"A minimum of 1 000 followers"}),"AND ONE OF THE FOLLOWING:",o.jsx("li",{children:"A single monthly subscription count of more than 100 points"}),"OR",o.jsx("li",{children:"A running average subscription count of at least 10 points for 3 months in a row"}),"OR",o.jsx("li",{children:"Direct Approval from the Strim FUN team"})]})]}),o.jsxs("p",{children:["Rare streamers are just that: Rare! You have built a community around yourself and have people who love to watch you! For that reason we up your take-home to 85% of your subscription revenue, and offer you the potential to advertise your channel on the front page of Strim FUN during certain events!",o.jsx("br",{}),"In addition, you will receive a special RARE STRIM FUN ",o.jsx(gee,{})," icon that will be displayed next to your channel to let everyone know that you've achieved such an important milestone"]}),o.jsx("hr",{}),o.jsx("h3",{style:{textAlign:"center"},children:o.jsx("u",{children:"Epic"})}),o.jsxs("h4",{children:[o.jsx("u",{children:"Prerequisites:"}),o.jsxs("ol",{children:[o.jsx("li",{children:"RARE"}),o.jsx("li",{children:"A watch time of over 1 000 000 hours total"}),o.jsx("li",{children:"A minimum of 100 000 followers"}),"AND ONE OF THE FOLLOWING:",o.jsx("li",{children:"A single monthly subscription count of more than 10 000 points"}),"OR",o.jsx("li",{children:"A running average subscription count of at least 100 points for 3 months in a row"}),"OR",o.jsx("li",{children:"Direct Approval from the Strim FUN team"})]})]}),o.jsxs("p",{children:["Epic Streamers are of incredible talent; engaging and entertaining their communities to reach new heights of streaming and content creation. Your community knows you, loves you, and trusts you to continually provide content to them and 
1490you have delivered in all regards. You are a pinnacle of the Strim FUN community and we want to recognize your outstanding performance.",o.jsx("br",{}),"You will receive 90% of all subscription revenue, a unique EPIC STRIM FUN ",o.jsx(yee,{}),' icon by your name, and a low random chance of being displayed as one of our selected "streamers for the day", getting your profile and channel on the front page for a whole 24 hours!']}),o.jsx("hr",{}),o.jsx("h3",{style:{textAlign:"center"},children:o.jsx("u",{children:"Legendary"})}),o.jsxs("h4",{children:[o.jsx("u",{children:"Prerequisites:"}),o.jsxs("ol",{children:[o.jsx("li",{children:"EPIC"}),o.jsx("li",{children:"A watch time of over 10 000 000 hours total"}),o.jsx("li",{children:"A minimum of 1 000 000 followers"}),"AND ONE OF THE FOLLOWING:",o.jsx("li",{children:"A single monthly subscription count of more than 100 000 points"}),"OR",o.jsx("li",{children:"A running average subscription count of at least 1000 points for 3 months in a row"}),"OR",o.jsx("li",{children:"Special Selection/Acknowledgement by the Strim FUN team"})]})]}),o.jsxs("p",{children:["Legendary Streamers are the pinnacle of streaming. Having built literal *cities* worth of people who follow and engage with their content, they have created the backbone of Streaming and Content across the web. Their communities help support others, their content inspires others, and their streams are events that bring out thousands! Strim FUN recognizes these creators as the Legends that they are, and is eager to see their careers continue and grow!",o.jsx("br",{}),"You will receive 95% (OR MORE in special circumstances) of all subscription revenue, a unique LEGENDARY STRIM FUN ",o.jsx(vee,{}),' icon by your name and channel, and a much higher random chance of being displayed as one of our selected "streamers for the day", getting your profile and channel on the front page for a whole 24 hours!']}),o.jsx("hr",{})]})]})}function Cee(){return document.title="Privacy and Safety Info",o.jsxs("div",{className:"tos",children:[o.jsx("h2",{children:"Privacy & Safety"}),o.jsx("p",{children:"Here at Strim we take our users privacy, safety, and security very seriously and we will always do our best to respond to threats in the ever changing internet environment.  Should there be any event, fault, or known leak, you will be notified as soon as possible along with all information that Strim has about the incident, and if possible, its resolution. While we will do our best to keep all your information safe, we cannot provide a 100% guarantee account security without your help! Here are a few things you can do to keep yourself and your information safe while on Strim and the net in general:"}),o.jsxs("ol",{children:[o.jsx("li",{children:"NEVER SHARE PASSWORDS"}),o.jsxs("p",{children:["We know often times there may be a time where you wish to have someone else act on your behalf for things such as channel management.  To this end, we are working on allowing channels to have multiple people access them.  Please NEVER give out your personal account information.  If you feel like your account has been compromised, contact us immediately at ",o.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),", and change your passwords not only on your account, but on associated email addresses as well. We will attempt to perform an account recovery, but depending on the level of data that has been corrupted, we may recommend an account deletion."]}),o.jsx("li",{children:"Your data is encrypted end-to-end"}),o.jsxs("p",{children:["We follow strict security protocols to ensure that your information is not easily readable by malicious actors.  However, we cannot encrypt ",o.jsx("i",{children:"you"}),". So please make sure you are aware of your surroundings, not writing passwords down in plain text on papers around your computer, and always have a valid email on record so you can recover your account if needed."]}),o.jsx("li",{children:"We store data locally on your machine"}),o.jsxs("p",{children:["Like all modern sites we do utilize local storage mechanisms.  While we do ",o.jsx("i",{children:"NOT"})," use cookies, there is still data that is stored locally on a machine that can be used to compromise your account.  If you are using a public computer MAKE SURE YOU LOG OUT after you have finished your session. ",o.jsx("b",{children:o.jsx("u",{children:"SIMPLY CLOSING THE WEB PAGE WILL NOT CLEAR YOUR DATA"})}),"! Another option, is to utilize a browser in private mode (or any mode that deletes your data upon a session closing)"]}),o.jsx("li",{children:"We collect data on your behavioral habits on the site to provide a better experience for you"}),o.jsx("p",{children:`Yes, like all social media we take note of what you like to watch, what you click on, how long you are there, etc. This data will be available to you under the "ads & data" section of your user profile.  You always have the right to request this data, and we also give you the ability to be 'forgotten', deleting all your tracking information.`}),o.jsx("h3",{children:"WE DO NOT, WILL NOT, AND WILL NEVER SELL YOUR HABIT INFORMATION TO 3rd PARTIES"}),o.jsx("p",{children:"The information we collect for our analytics will be kept in-house only, and will never be sold to an auxillary party."}),o.jsx("li",{children:"We use google analytics to monitor overall site activity"}),o.jsx("p",{children:"We use a google analytic framework to monitor our overall site functionality, activity, and usage. For the vast majority of people, you will not notice anything at all.  If you are running a blocker such as Ghostery(trademark of their respective owner), that will prevent the monitor from working! We don't mind at all!"})]}),o.jsx("h3",{children:"Photosensitive Seizure Warning"}),o.jsxs("p",{children:["Strim allows you to watch streams of video game play and other types of visual content. A very small percentage of individuals may experience epileptic seizures when exp
1490osed to certain visual images, including light patterns or flashing lights that may appear in video games or other visual content. Exposure to certain patterns or backgrounds on a computer screen, or while watching video games or viewing chat, may induce an epileptic seizure in these individuals. Certain conditions may induce previously undetected epileptic symptoms even in persons who have no history of prior seizures or epilepsy. If you, or anyone in your family, have an epileptic condition, consult your physician prior to watching content on Strim.",o.jsx("br",{}),o.jsx("br",{}),"If you experience any of the following symptoms while watching: dizziness, altered vision, eye or muscle twitches, loss of awareness, disorientation, any involuntary movement, or convulsions; discontinue use IMMEDIATELY and consult your physician before resuming use of Strim."]}),o.jsx("hr",{}),o.jsx("h2",{children:"Privacy Disclosures"}),o.jsx("h3",{children:"Personal Information Strim Collects About You"}),o.jsxs("p",{children:["We obtain information about you through the means discussed below when we provide the Strim Services. Please note that we need certain types of information so that we can provide the Strim Services to you. If you do not provide us with such information, or ask us to delete it, you may no longer be able to access or use the Strim Services.",o.jsx("br",{}),o.jsx("br",{}),o.jsx("u",{children:"User-provided Information:"})," When you register for Strim Services; upload, purchase, view, or download certain content or products from the Strim Services; enter contests or sweepstakes; register for or attend a live (in-person) event; or otherwise use the features and functionality of the Strim Services, you may provide a variety of information about yourself to us, such as your name, voice, or image (in any content you upload, stream, or participate in), Strim username, email address, postal mailing address, telephone number, credit card number, and billing information.",o.jsx("br",{}),o.jsx("br",{}),o.jsx("u",{children:"Automatically Collected Information:"})," When you access the Strim Services or open one of our emails, we automatically record and store certain information about your system by using cookies and other types of technologies. Cookies are small text files containing a string of alphanumeric characters that are sent to your browser. For information about what cookies are, how they work, how Strim uses them, and how to remove them, please see our Cookie Notice . Examples of such information we automatically collect include Internet Protocol address (“IP Address”), a unique user ID, device and browser types and identifiers, referring and exit page addresses, software and system type, and information about your usage of Strim Services. Examples of how Strim uses automatically collected information include to:",o.jsx("br",{})," (a) automatically update the Strim application on your system;",o.jsx("br",{})," (b) remember your information so that you will not have to re-enter it during your visit or the next time you access the Strim Services;",o.jsx("br",{}),"(c) provide customized advertisements, content, and information;",o.jsx("br",{})," (d) monitor the effectiveness of marketing campaigns;",o.jsx("br",{}),"(f) track your entries, submissions, and status in any promotions or other activities.",o.jsx("br",{}),o.jsx("br",{}),o.jsx("u",{children:"Strim Live (in-person) Events:"})," Strim holds live (in-person) events that may include creators, speakers, and exhibitors. These events will be photographed, recorded, and streamed, both by Strim and by others, and these materials may be used for promotional purposes. In addition, attendees' badges may be scanned with their permission. There will be various places where you may be given the option to, or experiences for which you may be required to, scan your badge. If you scan your badge or agree to have your badge scanned by Strim events staff, the data will be used for various purposes such as analytics, promotional products, or prize fulfillment consistent with this Notice. Exhibitors may offer to scan your badge when you visit their area or events. By allowing exhibitors to scan your badge, you understand that Strim may transfer your personal information to the exhibitor and that, once transferred, your personal information is subject to the exhibitor's privacy notice and the exhibitor may contact you directly afterwards.",o.jsx("br",{}),o.jsx("br",{}),o.jsx("u",{children:"Information from Other Sources:"})," We may obtain additional information from third parties and sources other than the Strim Services. For example, we may obtain additional information from advertisers, games or services you use, or social media networks (such as Discord, Steam, or YouTube) for which you have approved our access. When you access the Strim Services through social media networks or when you connect the Strim Services to social media networks, you are authorizing Strim to collect, store, and use such additional information and content in accordance with this Privacy Notice. We may al
1490so obtain information from third-party services (such as Riot or Steam) regarding your use of such services, including about your use of the content you choose to broadcast through the Strim Services. We use this information to supplement the information we collect about you in order to provide more relevant, safer experiences for you with the Strim Services and improve the Strim Services, analytics, and advertising. If we combine or associate information from other sources with information that we collect through the Strim Services, we will treat the combined information in accordance with this Privacy Notice."]}),o.jsx("h3",{children:"How Strim Uses Personal Information"}),o.jsxs("p",{children:["Strim uses such information to operate, maintain, enhance, provide, create, and develop all of the features, functionality, and services (new or existing) found on the Strim Services; provide security for our websites, products, software, applications, or live (in-person) events; manage relationships with Strim account holders (e.g., Partners, Affiliates), including making or receiving payment; improve users' experience with Strim by providing content recommendations and by delivering content that we hope users will find relevant and interesting, including advertising and marketing messages; allow you to comment on content, and participate in online games, contests, or rewards programs; prevent fraud and abuse; and understand the usage trends of our users.",o.jsx("br",{}),o.jsx("br",{}),"We use your email address and/or telephone number to communicate with you, including to notify you of major Strim Services updates, for customer service purposes, or to contact you regarding any content that you have posted to or downloaded from the Strim Services. If you want to stop receiving notifications by telephone, reply STOP to any text message from us. Note that we may still send you additional informational or transactional notifications.",o.jsx("br",{}),o.jsx("br",{}),"Strim may periodically send promotional materials or notifications to you related to the Strim Services. If you want to stop receiving promotional materials, you can go to your account settings once you have logged in to the Strim Services or follow the unsubscribe instructions at the bottom of any email from us. If you have installed a mobile app and you wish to stop receiving push notifications, you can change the settings either on your mobile device or through the app.",o.jsx("br",{}),o.jsx("br",{}),"In order to meet legal obligations, Strim may collect and process user information if we believe in good faith that such collection and processing is necessary to comply with U.S. state and federal laws or other applicable laws around the world (for example, in the country of your residence), or respond to a court order, judicial, or other government request, subpoena, or warrant in the manner legally required.",o.jsx("br",{}),o.jsx("br",{}),"We may also ask for your consent to process your personal information for a specific purpose that we communicate to you. When you consent to our processing your personal information for a specified purpose, you may withdraw your consent at any time and we will stop the processing of your data for that purpose.",o.jsx("br",{}),o.jsx("br",{}),"Strim will rely on legal grounds to process your personal information to the extent permitted by applicable law, which may include, without limitation: to honor contractual commitments, to take steps in anticipation of entering into contract, to fulfill legal obligations, to document your consent, and to support Strim's legitimate interests. Some examples of these legitimate interests include: monitoring and analyzing the use of Strim services, communicating with registered users through notifications or emails regarding Strim products and services, advertising, responding to inquiries or complaints from potential or actual Strim users, taking appropriate or necessary actions to protect Strim from potential liability or from fraudulent, abusive, or unlawful uses; investigating and defending ourselves against third-party claims, or allegations; protecting the security or integrity of the Strim Services; or protecting the rights, property, or safety of Strim, our users, or others."]}
1490),o.jsx("h3",{children:"When Strim Discloses Personal Information"}),o.jsx("p",{children:"Information about Strim users is an important part of our business and our work to provide the best experience across Strim services. We take seriously the responsibility of safeguarding your personal information and honor the trust you place in Strim. Strim is not in the business of selling our users' personal information to others. Strim shares personal data only as described below and with our parent company, Amazon.com, Inc., and the subsidiaries that Amazon.com, Inc. controls, that are either subject to this Privacy Notice or follow practices at least as protective as those described in this Privacy Notice. We disclose such information to service providers working on our behalf, such as, to: provide website hosting, maintenance, and security services; fulfill orders; conduct data analysis and create reports; offer certain functionality; or assist Strim in improving the Strim Services and creating new services and features. We require that these parties process such information in compliance with this Privacy Notice, we authorize them to use the information only for the purposes for which it is provided to them, and we require them to use reasonable confidentiality measures. Strim may share personal information with, and receive personal information from, our affiliates (meaning entities controlled by, controlling, or under common control with Strim), including Amazon.com, Inc. and its subsidiaries that are either subject to this Privacy Notice or follow practices at least as protective as those described in this Privacy Notice. Personal information collected by Strim may be combined with personal information about Amazon customers, and that combined information may be used by both Strim and Amazon to operate, provide, develop, and improve Amazon's and Strim's products and services. Strim may disclose user information if we believe in good faith that such disclosure is necessary to comply with U.S. state and federal laws or other applicable laws around the world (for example, in the country of your residence), or respond to a court order, judicial or other government request, subpoena, or warrant in the manner legally required. Strim also reserves the right to disclose information that we believe, in good faith, is appropriate or necessary to protect Strim from potential liability or from fraudulent, abusive, or unlawful uses; investigate and defend ourselves against third-party claims, or allegations; protect the security or integrity of the Strim Services; or protect the rights, property, or safety of Strim, our users, or others. Other than as set out in this Privacy Notice, you will receive notice when personal information about you might be shared with third parties and you will have an opportunity to choose not to share the information."}),o.jsx("h3",{children:"Data Subject Rights and Your Choices"}),o.jsxs("p",{children:["You may decline to share certain information with Strim, in which case Strim may not be able to provide to you some of the features and functionality found on the Strim Services. If you have created a Strim Services account, depending on the service, you may be able to update your profile information and preferences or disable your account by logging in and going to the settings page",o.jsx("br",{}),o.jsx("br",{}),"For other requests to review, update, delete, or otherwise limit Strim's use of information that you have provided directly to Strim, contact us at our Discord, or email ",o.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),". To protect your privacy and security, we may take steps to verify your identity before granting you access or making corrections to your information. You are responsible for maintaining the secrecy of your unique password and account information at all times.",o.jsx("br",{}),o.jsx("br",{}),"We will comply with valid requests to exercise your data subject rights in accordance with the applicable laws in your region. Please note that in some circumstances, we may 
1490need to keep processing your information for certain legitimate interests or to comply with a legal obligation. If these rights apply to you, they may permit you to request that we:",o.jsx("br",{}),o.jsx("br",{}),"Obtain access to or a copy of certain personal information we hold about you. Prevent the processing of your personal information for direct marketing purposes (including any direct marketing processing based on profiling). Update personal information that is out of date or incorrect. Delete certain personal information we hold about you. Restrict the way that we process and disclose specific personal information about you. Transfer your personal information to a third-party provider of services. Revoke consent that you previously provided for the processing of your personal information. For more information on how to exercise these rights, click here. If applicable, you may make a complaint to the data protection supervisory authority in the country where you are based. Alternatively, you may seek a remedy through local courts if you believe your rights have been breached."]}),o.jsx("h3",{children:"Account Closure and Deletion"}),o.jsx("p",{children:'If you would like to close your account and delete your profile information on strim.fun simply log in to your user profile and under "Profile and Settings", select "Delete Account" at the bottom of the User Profile page.'}),o.jsx("h3",{children:"Third-Party Services and Websites"}),o.jsxs("p",{children:["The Strim Services may link to third-party websites or services. The privacy practices of those third parties are not governed by this Privacy Notice. We encourage you to review the privacy policies of these third-party websites and services to understand their practices.",o.jsx("br",{}),o.jsx("br",{}),"If you connect to a third-party service (such as Discord, Riot Games, or Xbox) through the Strim Services or otherwise link your Strim account with a third-party service, you are requesting and authorizing us to share or grant access to information on your behalf (such as your username, the fact that your connection originated from the Strim Services, and other relevant usage and diagnostic information) with such third party. We may also send information about the content you watch or your activities on the Strim Services to such third parties. For example, we may make information available to app developers, game developers, and game publishers to facilitate purchases and awards of digital goods, such as games and in-game items."]}),o.jsx("h3",{children:"Extensions and Applications"}),o.jsxs("p",{children:["The Strim Extensions program allows creators to embed interactive, custom, third-party content and applications on their channel pages. You can find out more about the specific Extension(s) operating on a given channel by clicking on the attribution links or icons that Strim will make available on the channel page, for example, on the Strim video player or at the bottom of an Extension's panel.",o.jsx("br",{}),o.jsx("br",{}),"Interaction by a viewer with an Extension or with the channel on which the Extension is activated will provide the developer that operates the Extension with viewer information of the nature described above in “Automatically Collected Information.” Strim does not provide access to your user name or ID to third-party Extension developers as part of the Strim Extensions program unless you click “Grant Access” within the Extension or you install an Extension on your channel. You are responsible for any information you provide to the developer independently, for example, through a web form on the Extension or visiting that developer's website.",o.jsx("br",{}),o.jsx("br",{}),"Developers may also create Applications that are not located on channel pages or on Strim. We require Extension and Application developers to process data about you only for the purposes set forth in our Developer Services Agreement. We encourage you to visit an Application's website or Extension's detail page to review any privacy policy posted by the developer, which may include additional information on their privacy practices.",o.jsx("br",{}),o.jsx("br",{})]}),o.jsx("h3",{children:"Advertisers and Analytics Providers"}),o.jsxs("p",{children:["Strim may use third-party Web analytics services in connection with the Strim Services. These service providers use a variety of tracking technologies such as cookies to analyze how users use the Strim Services. The information collected (described above in “Automatically Collected Information”) may be shared with or c
1490ollected directly by these services and processed to evaluate your use of the Strim Services.",o.jsx("br",{}),"Strim may also work with third-party ad networks, advertisers, and advertising analytics providers to target (and measure the performance of) ads to you both on and off the Strim Services. We may share with these third parties (or they may directly collect) data such as cookie and mobile ad identifiers in order to engage in advertising activity (including to understand how you respond to advertisements and to serve relevant ads). Strim also works with third parties to serve ads to you off Strim's Services. When we do so, we may share information such as your email address or resettable device identifier for that advertising partner to “match” to other information that may have about you.",o.jsx("br",{}),"Advertisers on Strim, or representatives or service providers working on their behalf (“Strim Advertisers”), sometimes use technology to serve ads that appear on our services directly to your device. They automatically receive certain data, such as your IP address, when this happens. They may also use cookies (or similar technologies) to measure the effectiveness of their ads and to personalize ad content. This Privacy Notice does not apply to, and we cannot control the tracking technologies and activities of Strim Advertisers and you should consult their respective privacy policies. For more information about Strim Advertisers and similar entities that use these technologies, and to opt-out of their advertising practices, go to our Privacy Choices page."]}),o.jsx("h3",{children:"Do Not Track"}),o.jsx("p",{children:"Do Not Track (“DNT”) is a privacy preference that users can set in certain web browsers. DNT is a way for users to inform websites and services that they do not want certain information about their webpage visits collected over time and across websites or online services. Strim does not recognize or respond to browser-initiated DNT signals. However your information is never sold or given to any 3rd party without your explicit consent with the exception of the Google Analytics platform"}),o.jsx("h3",{children:"Data Security"}),o.jsx("p",{children:"Strim uses a variety of managerial, technical, and physical measures to protect the integrity and security of your information. These measures may vary based on the sensitivity of your information. However, no security precautions or systems can be completely secure. We cannot ensure or warrant the security of any information you transmit to Strim, and you do so at your own risk. We cannot guarantee that such information may not be accessed, disclosed, altered, or destroyed by breach of any of our physical, technical, or managerial safeguards."}),o.jsx("h3",{children:"Retention of Your Information"}),o.jsx("p",{children:"Strim maintains data related to your usage of Strim for as long as it is required in order to fulfill the relevant purposes described in this Privacy Notice, as may be required (or permitted) by law such as for tax and accounting purposes, or as otherwise communicated to you. Once you have asked us to close your account and delete your profile information, we will delete all information that we are not required or permitted to retain by law."}),o.jsx("h3",{children:"Children's Privacy"}),o.jsxs("p",{children:["IF YOU ARE UNDER 13 YEARS OF AGE, THEN YOU MAY NOT USE OR ACCESS THE Strim SERVICES AT ANY TIME OR IN ANY MANNER.",o.jsx("br",{}),"Protecting the privacy of young children is especially important. For that reason, Strim does not knowingly collect or maintain personal information (as defined by the United States Children's Online Privacy Protection Act) from persons under 13 years-of-age. If Strim learns that personal information of persons under 13 has been collected on or through the Strim Services, Strim will take appropriate steps to delete this information.",o.jsx("br",{}),"If you are the parent or legal guardian of a child under 13 who has created an account on the Strim Services, then please Contact Support under the 'Privacy Questions' category to have that child's account terminated and personal information deleted.",o.jsx("br",{}),"For residents of countries and regions where the processing of personal information is based on consent, Strim will not knowingly engage in that processing for users under the age of consent established by applicable data protection law. If we learn that we are engaged in that processing with such users, we will halt such processing and will take reasonable measures to promptly remove applicable information from our records"]}),o.jsx("h3",{children:"Merger or Sale"}),o.jsx("p",{children:"In the event that Strim, or some or all assets related to the Strim Services are acquired by or merged with a third-party entity or in connection with a contemplated change-of-ownership transaction, we reserve the right, in any of these circumstances, to transfer or assign the information that we have collected from users as part of that merger, acquisition, sale, or other change-of-control event, including in the course of diligence."}),o.jsx("h3",{children:"International Data Transfers"}),o.jsx("p",{children:"Information collected by Strim may be stored and processed in your region, in the United States (for instance in our major data centers), or in any other country where Strim or its affiliates, subsidiaries, partners, or service providers are located or maintain facilities. If we provide any information about you to any such entities, we will take appropriate measures to ensure such companies protect your information adequately in accordance with this Privacy Notice and applicable law."}),o.jsx("h3",{children:"Changes and Updates to This Privacy Notice"}),o.jsx("p",{children:"Strim reserves the right to change, modify, add, or remove portions of this Privacy Notice at any time (for example to reflect updates to the Strim Services or to reflect changes in the law). Please check this Privacy Notice periodically for those changes. Your continued use of the Strim Services after the posting of changes constitutes your binding acceptance of such changes. We will not materially change our policies and practices to make them less protective of personal information collected in the past under a prior version of the Privacy Notice without the consent of affected 
1490individuals."}),o.jsx("h3",{children:"Strim Contact Information"}),o.jsx("p",{children:"Please contact Strim with any questions or comments about this Privacy Notice If you are a California resident, you may have information emailed to you by your request in the Discord or by contacting the administration team"})]})}const bee="/assets/how-to-add-chat-obs-1-DX6dmcBG.png",See="/assets/how-to-add-chat-obs-2-CWkjMBhE.png",Eee="/assets/how-to-add-chat-obs-3-DIeOhwTK.png";function wee(){return document.title="Stream Setup Info",o.jsxs("div",{className:"stream-setup-container",children:[o.jsxs("header",{className:"setup-header",children:[o.jsx("h1",{children:"Strim Setup for Streaming Platforms!"}),o.jsx("p",{children:"Everything you need to know to start streaming on Strim FUN"})]}),o.jsx("div",{className:"info-box",children:o.jsx("p",{children:o.jsx("i",{children:"The following instructions are for OBS, but the endpoints and functions should be the same across most major encoding platforms like SLOBS."})})}),o.jsxs("section",{className:"setup-section",children:[o.jsx("h2",{children:"Quick Start Guide"}),o.jsx("p",{children:"Setup is a breeze and will only take seconds!"}),o.jsxs("ol",{className:"setup-steps",children:[o.jsx("li",{children:o.jsx("span",{children:"Open your OBS studio"})}),o.jsx("li",{children:o.jsxs("span",{children:["Go to ",o.jsx("strong",{children:"File > Settings"})]})}),o.jsx("li",{children:o.jsxs("span",{children:["On the left-hand side select ",o.jsx("strong",{children:"Stream"})]})}),o.jsx("li",{children:o.jsxs("span",{children:["Under Service, select ",o.jsx("strong",{children:"Custom..."})]})}),o.jsxs("li",{children:[o.jsx("span",{children:"Under Server, enter:"}),o.jsx("code",{className:"code-snippet",children:"rtmps://strim.fun:1936/"})]}),o.jsxs("li",{children:[o.jsx("span",{children:"Under Stream key, enter your unique stream key"}),o.jsxs("div",{className:"warning-box",children:[o.jsx("h4",{children:"⚠️ SENSITIVE INFORMATION"}),o.jsxs("p",{children:["Your Stream key authenticates you. Anyone with this key can stream as you!",o.jsx("strong",{children:" DO NOT GIVE IT OUT!"})]}),o.jsx("p",{style:{marginTop:"0.5rem",fontSize:"0.8rem",fontStyle:"italic"},children:"If your key is compromised, alert Strim administrators IMMEDIATELY and change your password."})]})]})]})]}),o.jsxs("section",{className:"setup-section",children:[o.jsx("h2",{children:"Multi-Streaming"}),o.jsx("p",{children:"OBS does not natively support multi-streaming, but you can easily add this functionality with a free plugin. This allows you to forward your stream to multiple sites simultaneously."}),o.jsx("div",{className:"info-box",children:o.jsx("p",{children:o.jsx("i",{children:"Strim FUN is not directly associated with OBS or any 3rd party plugins. Please review other platforms' TOS regarding multi-streaming."})})}),o.jsx("h3",{children:"Recommended Plugin: obs-multi-rtmp"}),o.jsxs("div",{className:"download-card",children:[o.jsx("p",{children:"The most popular free and open-source solution for OBS."}),o.jsx("a",{href:"https://github.com/sorayuki/obs-multi-rtmp/releases/download/0.7.4.3/obs-multi-rtmp-0.7.4.0-windows-x64-Installer.exe",className:"download-button",children:"Download for Windows (v0.7.4.3 For OBS 32.2.1)"}),o.jsxs("div",{className:"plugin-links",children:[o.jsx("a",{href:"https://github.com/sorayuki/obs-multi-rtmp/releases/",children:"All Releases"}),o.jsx("a",{href:"https://sorayuki.github.io/obs-multi-rtmp/",children:"Official Website"})]})]}),o.jsxs("div",{style:{marginTop:"2rem"},children:[o.jsx("h4",{children:"How to install:"}),o.jsxs("ol",{className:"setup-steps",children:[o.jsx("li",{children:o.jsx("span",{children:"Run the downloaded installer (.exe)."})}),o.jsx("li",{children:o.jsx("span",{children:"Grant administrator permissions if prompted."})}),o.jsx("li",{children:o.jsx("span",{children:"Restart OBS after installation."})}),o.jsx("li",{children:o.jsxs("span",{children:["Find the plugin under ",o.jsx("strong",{children:"Docks > Multi-output"}),"."]})}),o.jsx("li",{children:o.jsx("span",{children:"Add a new target with your stream URL and key."})})]})]}),o.jsxs("p",{className:"footer-warning",children:[o.jsx("u",{children:"WARNING:"})," This download comes from a 3rd party and is not supported or endorsed by Strim FUN. Download at your own risk."]})]}),o.jsxs("section",{className:"setup-section",children:[o.jsx("h2",{children:"Strim Chat OBS Setup Guide"}),o.jsx("h4",{children:"Generously provided by LupoLycanth"}),o.jsx("hr",{}),o.jsx("h3",{children:"Step 1"}),o.jsx(Ts,{src:bee,style:{width:"100%",height:"100%"}}),o.jsx("br",{}),o.jsx("h3",{children:"Step 2"}),o.jsx(Ts,{src:See,style:{width:"100%",height:"100%"}}),o.jsx("br",{}),o.jsx("h3",{children:"Step 3"}),o.jsx(Ts,{src:Eee,style:{width:"100%",height:"100%"}})]})]})}function Tee(){document.title="Supporters Page";const[n,e]=S.useState([]);S.useEffect(()=>{Pe.get(`${Ft}/supporters`).then(i=>
1490{const a=typeof i.data=="string"?JSON.parse(i.data):i.data;e(a)}).catch(i=>{console.error("Failed to fetch supporters:",i)})},[]);const t=n.filter(i=>i.rank===3),r=n.filter(i=>i.rank===2),s=n.filter(i=>i.rank===1);return o.jsxs("div",{className:"supporters-container",children:[o.jsxs("header",{className:"supporters-header",children:[o.jsx("h1",{children:"Our Supporters"}),o.jsx("p",{children:"Thank you to everyone who helps keep Strim.Fun alive!"})]}),o.jsxs("div",{className:"tier-grid",children:[o.jsxs("article",{className:"tier-card legendary",children:[o.jsx("h2",{className:"legendary-tier",children:"Legendary Tier"}),o.jsx("p",{className:"tier-price",children:"$1000+ USD"}),o.jsxs("div",{className:"rewards-section",children:[o.jsx("h4",{children:"Rewards:"}),o.jsxs("ul",{className:"rewards-list",children:[o.jsx("li",{children:"Everything from previous Tier(s)"}),o.jsx("li",{children:"Lifetime Invitation to Strim.Fun Beta Program"}),o.jsx("li",{children:"Lifetime Spot on home-screen legendary roulette (for streamers)**"})]})]}),o.jsxs("div",{className:"supporters-section",children:[o.jsx("h5",{children:"Legendary Supporters"}),t.length>0?o.jsx("ul",{className:"supporter-names",children:t.map(i=>o.jsx("li",{children:i.name},i.name))}):o.jsx("p",{className:"empty-supporters",children:"None at this time! Be the first!"})]})]}),o.jsxs("article",{className:"tier-card epic",children:[o.jsx("h2",{className:"epic-tier",children:"Epic Tier"}),o.jsx("p",{className:"tier-price",children:"$100 - $999 USD"}),o.jsxs("div",{className:"rewards-section",children:[o.jsx("h4",{children:"Rewards:"}),o.jsxs("ul",{className:"rewards-list",children:[o.jsx("li",{children:"Everything from previous Tier(s)"}),o.jsx("li",{children:"Strim.Fun branded article of clothing*"}),o.jsx("li",{children:"One (1) Axl or Lottie Stuffie*"})]})]}),o.jsxs("div",{className:"supporters-section",children:[o.jsx("h5",{children:"Epic Supporters"}),r.length>0?o.jsx("ul",{className:"supporter-names",children:r.map(i=>o.jsx("li",{children:i.name},i.name))}):o.jsx("p",{className:"empty-supporters",children:"None at this time! Be the first!"})]})]}),o.jsxs("article",{className:"tier-card rare",children:[o.jsx("h2",{className:"rare-tier",children:"Rare Tier"}),o.jsx("p",{className:"tier-price",children:"$0 - $99 USD"}),o.jsxs("div",{className:"rewards-section",children:[o.jsx("h4",{children:"Rewards:"}),o.jsxs("ul",{className:"rewards-list",children:[o.jsx("li",{children:'Personalized "Thank You" Email'}),o.jsx("li",{children:"Early access to new features (when applicable)"}),o.jsx("li",{children:"Strim.fun Stickers*"})]})]}),o.jsxs("div",{className:"supporters-section",children:[o.jsx("h5",{children:"Rare Supporters"}),s.length>0?o.jsx("ul",{className:"supporter-names",children:s.map(i=>o.jsx("li",{children:i.name},i.name))}):o.jsx("p",{className:"empty-supporters",children:"None at this time! Be the first!"})]})]})]}),o.jsxs("footer",{className:"disclaimers",children:[o.jsx("p",{children:"*: Stickers, Merch, and Clothing will be announced once a certain income margin has been passed. Any/all donations up until that point will still be valid and counted towards your respective merch level. You will be notified when merch is released and asked to provide shipping information at that time!"}),o.jsx("p",{children:"**: Front page status available only to streamers who have streamed at least 100 Hours on Strim.fun and who do not violate Strim.Fun TOS or community agreements. Administration reserves the right to add or remove individuals from the front page at will."})]})]})}function Iee(){return document.title="Terms Of Service",o.jsx("div",{className:"channel-settings-page",children:o.jsxs("article",{className:"channel-settings-section tos-content",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"Legal"}),o.jsx("h2",{children:"Terms of Service"})]}),o.jsx("h3",{className:"tos-warning",children:o.jsx("u",{children:"Please read carefully! This is a legally binding contract!"})}),o.jsx("p",{className:"tos-paragraph",children:'The following outlines the terms of service for Strim.fun (including any/all services, sub services, related services owned by Stream.fun or Vulpes Vulpes Development LLC related to the creation, maintenance, utilization, upgrades or any other functions necessary to manage, maintain or otherwise improve Strim.fun). Any references to "the site", "strim", "streaming service", "company", "website", or related terms are all considered equivalent references to Strim.fun and its owning and operating parties.'}),o.jsxs("p",{className:"tos-paragraph",children:["Utilization of the service as a streamer or as a viewer constitutes agreement to all terms outlined below. Violation of these terms will result in actions taken against you/your account in accordance to the terms outlined below. If you have any questions, comments, or concerns you can always reach us at ",o.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})]}),o.jsx("p",{className:"tos-paragraph",children:"The Terms of Service apply whether you are a user that registers an account with the Strim.fun services or an unregistered user. You agree that by clicking “Sign Up” or otherwise registering, downloading, accessing, or using the Strim.fun services, you are entering into a legally binding agreement between you and Strim.fun regarding your use of the Strim.fun services. You acknowledge that you have read, understood, and agree to be bound by these Terms of Service. If you do not agree to these Terms of Service, do not access or otherwise use any of the Strim.fun services."}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"When using Strim.fun or opening an account with Strim.fun on behalf of a company, entity, or organization (collectively, “Subscribing Organization”), you represent, hold the ability to speak for, and warrant that you:"})}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"are an authorized representative of that Subscribing Organization with the authority to bind that organization to these Terms of Service and grant the licenses set forth herein; and"}),o.jsx("li",{children:"agree to these Terms of Service on behalf of such Subscribing Organization."})]}),o.jsx("hr",{className:"tos-divider"}),o.jsx("h2",{className:"tos-section-heading",children:"Utilization of the Site"}),o.jsx("p",{className:"tos-paragraph",children:"Strim.fun is here to create a friendly environment for all streamers and community members. We will tolerate no harassment, bullying, or any type of intentionally caused discomfort for a streamer, or an audie
1490nce member."}),o.jsx("p",{className:"tos-paragraph",children:"Strim.fun is an American company and will abide by all Laws, Regulations, and Restrictions of the USA. It is expected that all person(s) utilizing the site regardless of their affiliation to the site, their nationality, their physical location, will abide by these laws and regulations. Illegal activity of any kind will be reported to the authorities. Illegal propagation of pornographic material, pornographic material of anyone under 18 years of age, or any other type of abuse, harm, or harassment will be reported. In the case of international incidents, police reports will be filed in the country of the suspected offender as well."}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"Utilization of the site as a viewer, guest, audience member, streamer, channel owner, channel partner, or any other person, company, individual entity, constitutes agreement to the following terms, descriptions, rules, and functions of site utilization:"})}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Accounts:"})}),o.jsx("p",{className:"tos-paragraph",children:"Strim and its moderators reserve the right to terminate, restrict, remove, disable, prevent earnings on, or otherwise modify the content of, any channel, account, or user on the site. Reasons for any of these alterations can be violations of any of the terms listed below, or of any other violations that are seen, logged, or reported to the site or the site's moderators. While we at the site will make a decided effort to communicate for all strikes, bans and restrictions, it may take time for a team member to reach out to you. If you are under a ban or restriction and would like to reach a team member you are always welcome to contact us at the email noted above."}),o.jsx("h4",{className:"tos-subheading",children:o.jsx("u",{children:"Creating an account and a password"})}),o.jsx("p",{className:"tos-paragraph",children:"In order to open an account, you will be asked and required to provide the service with certain information such as an account name and password. This information will be utilized to verify and authenticate yourself on the service and is considered a legal identifier for your presence on the service."}),o.jsx("p",{className:"tos-paragraph",children:"You are solely responsible for maintaining the confidentiality of your account, your password and for restricting access to your computer. If you permit others to use your account credentials, you agree to these Terms of Service on behalf of all other persons who use the Services under your account or password, and 
1490you are responsible for all activities that occur under your account or password. Please make sure the information you provide to Strim upon registration and at all other times is true, accurate, current, and complete to the best of your knowledge."}),o.jsx("p",{className:"tos-paragraph",children:"Unless expressly permitted in writing by Strim, or its associated company VVD LLC, you may not sell, rent, lease, transfer, share, or provide access to your account to anyone else, including without limitation, charging anyone for access to administrative rights on your account. Strim reserves all available legal rights and remedies to prevent unauthorized use of the Strim Services, including, but not limited to, technological barriers, IP mapping, Blocking and Access prevention mechanisms, and, in serious cases, directly contacting your Internet Service Provider (ISP) regarding such unauthorized use."}),o.jsx("h4",{className:"tos-subheading",children:o.jsx("u",{children:"Exterior authorization and Access"})}),o.jsx("p",{className:"tos-paragraph",children:"Strim may permit you to register for and log on to the Strim Services via certain third-party services. The third party's collection, use, and disclosure of your information will be subject to that third-party service's privacy notice. Further information about how Strim collects, uses, and discloses your personal information when you link your Strim account with your account on any third-party service can be found in our Privacy Notice."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Harassment and Bullying:"})}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"Harassment of the streamer/audience will not be tolerated. Harassment may include things such as: verbal harassment, nonverbal/text harassment, action-based harassment, stalking, prowling, user tracking."}),o.jsx("li",{children:"Harassment of any sort by a streamer will result in a strike against their channel at the least, and an instant ban at most"}),o.jsx("li",{children:"Intentionally trying to avoid bans, timeouts, or restrictions by any means (including but not limited to creating new accounts) will result in a ban of all accounts."})]}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Streamers:"})}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"By being a streamer/content creator of/on the site the following directly pertain to you, your content, your revenue generation, and actions that can be taken against you/your channel"})}),o.jsx("h4",{className:"tos-subheading",children:o.jsx("u",{children:"Unrestricted channels"})}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"If a channel has no marking, then users as young as 13 are allowed to view the channel. There will be no age verification for these users to see if they are 18+ and the following rules apply to content that may be streamed"})}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"No nudity of any kind"}),o.jsx("li",{children:"No sexual actions of any kind (implied or otherwise)"}),o.jsxs("li",{children:["No continued verbose swearing (an occasional swear is fine, at the discretion of site moderators)",o.jsx("ol",{className:"tos-list",children:o.jsx("li",{children:"Continued swearing found by site moderators will require the channel to change to a marked 18+ channel"})})]}),o.jsx("li",{children:"No language that can be construed as: hate speech, inciting violence, or any other speech designed to intimidate, oppress, or harm a peron, persons, government, or entity. (with the exception of analytical discussions)"}),o.jsxs("li",{children:["Auditory effects such as Moaning, grunting,licking are ",o.jsx("i",{children:"allowed"})," within relevant context",o.jsx("ol",{className:"tos-list",children:o.jsxs("li",{children:[o.jsx("u",{children:"Relevant context consists of things such as but are not limited to only the following (final distinction is left to a site moderator and site admins/moderators reserve the right to require a channel to be flagged as 18+):"}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"ASMR"}),o.jsx("li",{children:"discussions that involve the sounds/noises of grunting (i.e discussion of a fight scene)"}),o.jsx("li",{children:"discussions that involve the sounds/noises of licking (i.e discussion eating an ice cream cone)"})]})]})})]}),o.jsxs("li",{children:[o.jsx("i",{children:"GAMBLING:"})," Monetary gambling will NOT be allowed. however things such as channel point gambling that DO NOT involve cash, purchased, or prizes of monetary value, will be allowed"]}),o.jsx("li",{children:"Any behavior not explicitly covered here but deemed by the moderation team of the site to be inappropriate can lead to the channel at minimum being required to carry an 18+ marking; but may include other adverse reactions such as channel strikes, temporary suspension of streaming rights, or an outright ban."})]}),o.jsx("h4",{className:"tos-subheading",children:o.jsx("u",{children:"Marking Channels for 18+"})}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"NOTE: If a user has not provided an age, they will NOT be able to restrict their channel. To provide age verification you MUST contact the administration team to update your age. You will be asked to provide valid identification. Users under age 18 may 
1490not create restricted channels"})}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"If a channel is marked for 18+, but is NOT on STRICT 18+ mode (requiring the viewers to verify their age), the following pertain"})}),o.jsxs("ol",{className:"tos-list",children:[o.jsxs("li",{children:["There are ",o.jsx("i",{children:"NO"})," general restrictions on language with the exception that hate speech, inciting violence, or any other speech designed to intimidate, oppress, or harm a peron, persons, government, or entity are not allowed (with the exception of analytical discussions)"]}),o.jsx("li",{children:"Streamers are still welcome to create their own banned word lists for chat moderation"}),o.jsx("li",{children:"Users repeatedly attempting to violate banned word lists will be flagged for removal by the streamer"}),o.jsxs("li",{children:[o.jsx("b",{children:"NO OVERT SEXUAL ACTIVITY OF ANY KIND IS ALLOWED"}),o.jsx("br",{}),o.jsx("u",{children:"This includes things such as (This list is not exhaustive, and the site moderators have final decision if an activity is deemed sexual):"}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"Intercourse"}),o.jsx("li",{children:"Oral (blowjobs, fellatio, eating out)"}),o.jsx("li",{children:"Direct physical sexual contact(hand jobs, foot jobs, breast jobs, etc)"}),o.jsx("li",{children:"Any exposure of genitalia"}),o.jsx("li",{children:"Masturbation"}),o.jsx("li",{children:'"camel toes" or "moose knuckles", where genitalia is technically covered, but still plainly visible'})]})]}),o.jsxs("li",{children:[o.jsx("u",{children:"There are NO restrictions however on the following:"}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"bathing suits/bikinis providing genitalia & nipples are covered"}),o.jsx("li",{children:"Topless content regardless of gender or gender expression PRO
1490VIDED STREAMER IS ABOVE 18 YEARS OF AGE"}),o.jsx("li",{children:"implied sexual sounds (i.e. moaning, whispering, liking, etc)"}),o.jsx("li",{children:"showing non-sexual parts of the body in a sexual manner (i.e feet)"})]})]}),o.jsxs("li",{children:[o.jsx("i",{children:"GAMBLING:"})," Monetary gambling will NOT be allowed. However things such as channel point gambling that DO NOT REQUIRE THE VIEWER TO SPEND ANY CURRENCY are allowed to have prizes."]})]}),o.jsx("h4",{className:"tos-subheading",children:o.jsx("u",{children:"Strict channel 18+ content"})}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"If a channel is marked 18+ AND is on STRICT 18+ mode (requiring users to re-certify their age before viewing the stream) the following pertain"})}),o.jsxs("ol",{className:"tos-list",children:[o.jsxs("li",{children:[o.jsx("u",{children:"There are NO restrictions on nudity or sexual content with the exception of the following:"}),o.jsxs("ul",{className:"tos-list",children:[o.jsx("li",{children:"No Minors of any kind (suspected minors will be IMMEDIATELY banned)"}),o.jsx("li",{children:"No Animals of any kind may be present on stream while sexual activity is taking place. This INCLUDES in the background."}),o.jsx("li",{children:"STREAMERS MUST BE APPROVED FOR SEXUAL ACTIVITY BEFORE THEY ARE ALLOWED TO STREAM SEXUAL ACTIVITY. The approval process is outlined in the next section."}),o.jsx("li",{children:"All sexual acts must be consensual. Verbal consent is REQUIRED to be seen on stream before any acts are taken. Performing any sexual acts without verbal consent is grounds for an immediate ban."}),o.jsx("li",{children:"This list is not exhaustive, and the strim.fun team reserves the right to remove the privilege of being able to show sexual activity at ANY TIME"})]})]}),o.jsx("li",{children:"Disclaimer: Strim.fun and its affiliates are NOT responsible for the content shown on a sexually explicit stream, nor do we inherently condone any content. It is the user's/viewer's obligation to ensure the content they are viewing is to their standards, and is NOT being shared with minors or anyone under the age of 18."})]}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"Approval process for Sexually explicit streams: "})}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"Set channel for Strict 18+ mode in your channel settings"}),o.jsx("li",{children:'Select "Verify my channel for explicit content" in your channel settings'}),o.jsx("li",{children:"Follow the steps provided including providing a Legally Identifying ID, Name, and Address"}),o.jsx("li",{children:'If approved, your channel will be marked with "Sexually Explicit". Once you have received this certification you may begin streaming sexually explicit content.'}),o.jsx("li",{children:"NOTE: Streaming sexually explicit content without receiving approval from STRIM.FUN is grounds for an immediate and permanent ban"})]}),o.jsx("h4",{className:"tos-subheading",children:o.jsx("u",{children:"Strikes"})}),o.jsxs("p",{className:"tos-paragraph",children:["A channel may receive up to two (2) strikes before it is under assessment for being banned or terminated. ",o.jsx("u",{children:"A strike can constitute a violation of these terms as a whole in any form, or any of the following:"})]}),o.jsxs("ol",{className:"tos-list",children:[o.jsxs("li",{children:["Violation of DMCA (references ",o.jsx("a",{href:"https://www.copyright.gov/dmca/",children:"here"}),")"]}),o.jsx("li",{children:"Publishing Pornographic or illegal material"}),o.jsx("li",{children:"Actions determined by the strim.fun administration team to not hold to the best use of the site or that are determined to be an abuse of the site."}),o.jsx("li",{children:"Any/All actions that incentivize harming others, creating or damaging a group, entity or person with falsehoods"}),o.jsx("li",{children:"Lying about factual information that has true personal or global impact"}),o.jsx("li",{children:"Suggesting that any given religion, religious figure, belief system about the afterlife, or any similar topic is absolute and infallible."})]}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Purchases:"})}),o.jsxs("p",{className:"tos-paragraph",children:["ANY AND ALL PURCHASES OF PAID CHANNEL REWARDS, SUBSCRIPTIONS, DRIPS, OR ANY OTHER PAYMENT MADE TO strim.fun FOR THE BENEFIT OF A STREAMER, GROUP, COMMUNITY, OR OTHER, IS ABSOLUTELY ",o.jsx("u",{children:o.jsx("i",{children:"NON REFUNDABLE"})}),". Transactional disputes can be filed by contacting strim.fun administration at ",o.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),", and refunds or changes in value ",o.jsx("b",{children:"MAY"})," be issued on a case-by-case basis. There is NEVER a guarantee of a refund, although compensation of similar or greater financial equivalent value may be offered at the discretion of the strim.fun administration team"]}),o.jsx("h4",{className:"tos-subheading",children:o.jsx("u",{children:"Drops (Paid channel points) "})}),o.jsx("p",{className:"tos-paragraph",children:"One drop is equivalent to one cent USD paid to the streamer ($0.01 USD). Paid channel points are available for purchase in various groupings, with prices decided by the strim.fun administration team. Any individual is welcome to purchase up to 1 million ($10,000 USD) in paid points value in total without any restrictions from the strim.fun team. NOTE: The restriction is in place with reference to the final number of paid points. The final COST of these points may vary and will exceed $10,000 USD."}),o.jsx("p",{className:"tos-paragraph",children:"Individual drop purchases may be made up to 100,000 drops at a time (a total of $1,000 USD) per strim.fun; but your personal financial institution may have other holds or limits on your account(s) for large purchases. Strim.fun is not in control of, does not monitor, nor has any involvement with your financial institution outside of a base transaction. YOU as the purchasing individual are agreeing to abide by any/all laws, rules, regulations in your place/country/state/city/etc. of residence; and understand that strim.fun makes no promises, guarantees, implied or otherwise, to attempt to process any transaction deemed suspicious, and that any/all transactions may be placed under review, with a hold palaced on the paid points before they are rewarded at the discretion of the strim.fun team."}),o.jsx("h4",{className:"tos-subheading",children:o.jsx("u",{children:"Subscriptions"})}),o.jsx("p",{className:"tos-paragraph",children:`Subscriptions are offered at 3 tiers for each channel, their default names are "Tier 1", "Tier 2", "Tier 3", "Tier 4", and "Tier 5", but may be changed by streamers/channels. The rewards and scaling of rewards are controlled by the chanel owners and NOT b
1490y the strim.fun team. If you feel that a channel's rewards violate some portion of the TOS, are offensive, or otherwise inappropriate, please contact the admin team.`}),o.jsx("p",{className:"tos-paragraph",children:"A channel may choose to pay the transaction fee (having it removed from their portion of the pay) or have the users pay for the transaction fee. In the case of the channel paying the transaction fee, the prices below are the prices that a user will pay. Otherwise, a transaction fee (variable by location) will be added in addition, and the prices below are what are awarded to the streamer (minus the portion paid to strim.fun)"}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"The price of a channel subscription varies depending on some of the channel's settings, events occurring during the time a user subscribes, and other variable incentives, but the base prices are as follows:"})}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"Tier 1: $4.99"}),o.jsx("li",{children:"Tier 2: $9.99"}),o.jsx("li",{children:"Tier 3: $14.99"}),o.jsx("li",{children:"Tier 4: $19.99"}),o.jsx("li",{children:"Tier 5: $24.99"})]}),o.jsx("p",{className:"tos-paragraph",children:"It is up to the channel what rewards in addition various emote and command availability can be rewarded for different tiers of subscriptions. Strim.fun makes no promises/guarantees or other agreements to provide anything outside of the terms of subscription outlined below."}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"Terms of subscriptions"})}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"Subscriptions on Strim.fun provide the following from the Strim.fun service. "})}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"The availability of emotes for each tier (both static and animated) up to a certain limit"}),o.jsx("li",{children:"Advertisement free viewing of streams for those who are subscribed to the channel"}),o.jsx("li",{children:"Unique icons to be displayed throughout Strim.fun for differing Subscription variation durations and levels"})]}),o.jsx("p",{className:"tos-paragraph",children:"Anything above and beyond these terms are offered by the streamer and are not endorsed, enforced, or supported in any way by Strim.fun or the Strim.fun team or its associates."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Payments:"})}),o.jsx("p",{className:"tos-paragraph",children:"Once a streamer is eligible to earn revenue via their streams, has earned enough to be above the minimum payout limit, and has requested a payout, payments will be made once a month on the 15th."}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"PLEASE NOTE: At this time, all transactions will be handled in USD regardless of location. All fees/conversion fees/bank fees are the responsibility of the receiving party and will NOT be covered by strim.fun in any instance."})}),o.jsx("p",{className:"tos-paragraph",children:"For the moment, all payments will be made via pay-pal. This means that all streamers are REQUIRED to have a pay-pal account to receive their funds. This will change in the future, but it is our stop-gap for the time being. If you do NOT have a pay-pal, you are REQUIRED to have a US Bank account (based in the United States of America) for financial transfers. All transfer fees will be taken from your payment."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Service Availability"})}),o.jsx("p",{className:"tos-paragraph",children:"Although strim will make every effort to maintain a 99.99% uptime outside of expected/planned outages, events can and will occur that can/will degrade or prevent the functioning of the site and the service for unknown periods of time. Use of the site constitutes acknowledgement of this, and an understanding that all reasonable effort will be made on the part of the strim.fun team to restore functionality as quickly as possible. Strim is not responsible for, nor claims any ownership or liability of, transactions that may or may not be attempted to be made when the system is in a degraded state."}),o.jsx("p",{className:"tos-paragraph",children:"Information on the status and state of the system will be available on the discord and published on various social medias when the strim.fun team is made aware of a degraded service or function. While all efforts will be made to rectify the issues as quickly as possible, oftentimes no direct timeline can be given or made available. By utilizing the site and the services therein you are acknowledging this, and are absolving the strim team of any legal obligation (suggested or otherwise) that there will be a guaranteed restore time-frame or that restoration may even be possible in certain circumstances."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Account Availability"})}),o.jsx("p",{className:"tos-paragraph",children:"Your account may be banned, suspended, restricted, or otherwise removed or limited at the discretion of the strim.fun team."}),o.jsx("p",{className:"tos-paragraph",children:'Your account may al
1490so be banned or restricted on a per-channel or per-user basis by the channel or user in question. If a channel or user bans or restricts your interaction with them and you continue to attempt to interact with them; or attempt to otherwise evade or doge ban/restriction by creating alternate accounts ("alts"), all of your accounts can and will be put under review and potentially terminated/removed by the strim.fun team.'}),o.jsx("p",{className:"tos-paragraph",children:"As stated earlier, there are NO refunds for purchases, including in the event your account is banned or restricted on the service."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Locations, locales, translations"})}),o.jsx("p",{className:"tos-paragraph",children:"As we are a US based company, all legal discussions will be carried out in english (American dialects) and any/all translations will be done by 3rd parties as needed. In the event you are in a non-english-speaking country, or do not speak english fluently and have a legal question, comment, concern, or stipulation, strim.fun will perform all tasks needed to attempt to rectify the issue to the best of our understanding or ability."}),o.jsx("p",{className:"tos-paragraph",children:"We will do our best to provide locale translations quickly and timely, but cannot ever guarantee a locale translation to any particular region or language outside of the default english (American dialects) that the system is built/designed under. If you have any questions or need support with locale translations or would like to assist with locale translations, please contact the admin team."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Use of the service by Minors or other restricted persons"})}),o.jsx("p",{className:"tos-paragraph",children:"The Strim Services are not available to persons under the age of 13. If you are between the ages of 13 and the age of legal majority in your jurisdiction of residence, you may only use the Strim Services under the supervision of a parent or legal guardian who agrees to be bound by these Terms of Service."}),o.jsx("p",{className:"tos-paragraph",children:"The Strim Services are also not available to any users previously removed from the Strim Services by Strim or to any persons barred from receiving them under the laws of the United States (such as its export and re-export restrictions and regulations) or applicable laws in any other jurisdiction."}),o.jsx("p",{className:"tos-paragraph",children:"BY DOWNLOADING, INSTALLING, OR OTHERWISE USING THE STRIM SERVICES, YOU REPRESENT THAT YOU ARE AT LEAST 13 YEARS OF AGE, THAT YOUR PARENT OR LEGAL GUARDIAN AGREES TO BE BOUND BY THESE TERMS OF SERVICE IF YOU ARE BETWEEN 13 AND THE AGE OF LEGAL MAJORITY IN YOUR JURISDICTION OF RESIDENCE, AND THAT YOU HAVE NOT BEEN PREVIOUSLY REMOVED FROM AND ARE NOT PROHIBITED FROM RECEIVING THE STRIM SERVICES."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Use of Devices, Services, and Technologies to Utilize or Access The Service"})}),o.jsx("p",{className:"tos-paragraph",children:"To access, use, view, or otherwise interact or engage with Strim will require utilization of a device as well as an internet connection. You as the end user, are responsible for any/all internet connection or mobile data fees, charges, or other costs related to accessing Strim Services."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Changes, Alterations, Modifications to these Terms"})}),o.jsx("p",{className:"tos-paragraph",children:"Strim retains the right to amend, alter, update, or otherwise change these terms. Reasonable notification will be given, or will be attempted to be given via email or other public means of exposure when these terms are updated."}),o.jsx("p",{className:"tos-paragraph",children:"If your country/state requires written acceptance of changes of these terms, you will be asked to accept the terms every time they are updated."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"License"})}),o.jsx("p",{className:"tos-paragraph",children:"The Strim Services are owned and operated by Strim, or its parent company VVD LLC. Unless otherwise indicated, all c
1490ontent, information, and other materials on the Strim Services,excluding User Content as described in the USER CONTENT section, including, without limitation, Strim's trademarks and logos, the visual interfaces, graphics, design, compilation, information, software, computer code (including source code or object code), services, text, pictures, information, data, sound files, other files, and the selection and arrangement thereof (collectively , the “Materials”) are protected by relevant intellectual property and proprietary rights and laws. All Materials are the property of Strim or its subsidiaries or affiliated companies and/or third-party licensors. Unless otherwise expressly stated in writing by Strim, by agreeing to these Terms of Service you are granted a limited, non-sublicence(d/able), and non-transferable license (i.e., a personal and limited right) to access and use the Strim Services for your personal use or internal business use only."}),o.jsxs("p",{className:"tos-paragraph",children:["Strim reserves all rights not expressly granted in these Terms of Service. ",o.jsx("u",{children:"This license is subject to these Terms of Service and does not permit you to engage in any of the following:"})]}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"resale or commercial use of the Strim Services or the Materials"}),o.jsx("li",{children:"distribution, public performance or public display of any Materials"}),o.jsx("li",{children:"modifying or otherwise making any derivative uses of the Strim Services or the Materials, or any portion of them"}),o.jsx("li",{children:"use of any data mining, robots, or similar data gathering or extraction methods"}),o.jsx("li",{children:"downloading (except page caching) of any portion of the Strim Services, the Materials, or any information contained in them, except as expressly permitted on the Strim Services"}),o.jsx("li",{children:"any use of the Strim Services or the Materials except for their intended purposes."})]}),o.jsx("p",{className:"tos-paragraph",children:"Any use of the Strim Services or the Materials except as specifically authorized in these Terms of Service, without the prior written permission of Strim, is strictly prohibited and may violate intellectual property rights or other laws. Unless explicitly stated in these Terms of Service, nothing in them shall be interpreted as conferring any license to intellectual property rights, whether by estoppel, implication, or other legal principles. Strim can terminate this license as set out in License Termination."}),o.jsx("h2",{className:"tos-section-heading",children:"CONTENT UPLOADED OR OTHERWISE PROVIDED TO STRIM"}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"License(s) To Strim"})}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"Unless otherwise agreed to in a written agreement between you and Strim that was signed by an authorized representative of Strim, if you submit, transmit, display, perform, post, or store User Content using the Strim Services, you grant Strim and its sub-licensees , to the furthest extent and for the maximum duration permitted by applicable law (including in perpetuity if permitted under applicable law), an unrestricted, worldwide, irrevocable, fully sub-licenseable, nonexclusive, and royalty -free right to:"})}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"use, reproduce, modify, adapt, publish, translate, create derivative works from, distribute , perform, and display such User Content (including without limitation for promoting and redistributing part or all of the Strim Services (and derivative works thereof) in any form, format, media, or media channels now known or later developed or discovered"}),o.jsx("li",{children:"use the name, identity, likeness, and voice (or other biographical information) that you submit in connection with such User Content. Strim can exercise these rights in connection with monetizing the Strim Services. Should such User Content contain the name, identity, likeness, and voice (or other biographical information) of third parties, you represent and warrant that you have obtained the appropriate consents and/or licenses for your use of such features and that Strim and its sub-licensees are allowed to use them to the extent indicated in these Terms of Service."})]}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"With respect to streaming live and pre-recorded audio-visual works, the rights granted by you hereunder terminate once you delete such User Content from the Strim Services, or generally by closing your account, except:"})}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"to the extent you shared it with others as part of the Strim Services and others copied or stored portions of the User Content (e.g., made a Clip)"}),o.jsx("li",{children:"Strim used it for promotional purpose"}),o.jsx("li",{children:"for the reasonable time it takes to remove from backup and other systems"}),o.jsx("li",{children:"Strim is required by applicable law to retain it."})]}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"User Content, Representations, Warranties"})}),o.jsxs("p",{className:"tos-paragraph",children:["You are solely responsible for your User Content and the consequences of posting or publishing it.",o.jsx("u",{children:"You represent and warrant that:"})]}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"you are the creator or own or c
1490ontrol all rights in and to the User Content or otherwise have sufficient rights and authority to grant the rights granted herein"}),o.jsxs("li",{children:[o.jsx("u",{children:"your User Content does not and will not:"}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"infringe, violate, or misappropriate any third-party right, including any copyright , trademark, patent, trade secret, moral right, privacy right, right of publicity, or any other intellectual property or proprietary right"}),o.jsx("li",{children:"defame any other person"})]})]}),o.jsx("li",{children:"your User Content does not contain any viruses, adware, spyware, worms, or other harmful or malicious code"}),o.jsx("li",{children:"unless you have received prior written authorization, your User Content specifically does not contain any pre-release or non-public beta software or game content or any confidential information of Strim or third parties. Strim reserves all rights and remedies against any users who breach these representations and warranties."})]}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Content is Uploaded at Your Own Risk"})}),o.jsx("p",{className:"tos-paragraph",children:"Strim uses reasonable security measures in order to attempt to protect User Content against unauthorized copying and distribution. However, Strim does not guarantee that any unauthorized copying, use, or distribution of User Content by third parties will not take place. To the furthest extent permitted by applicable law, you hereby agree that Strim shall not be liable for any unauthorized copying, use, or distribution of User Content by third parties and release and forever waive any claims you may have against Strim for any such unauthorized copying or usage of the User Content, under any theory. TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE SECURITY MEASURES TO PROTECT USER CONTENT USED BY Strim HEREIN ARE PROVIDED AND USED “AS-IS” AND WITH NO WARRANTIES, GUARANTEES, CONDITIONS, ASSURANCES, OR OTHER TERMS THAT SUCH SECURITY MEASURES WILL WITHSTAND ATTEMPTS TO EVADE SECURITY MECHANISMS OR THAT THERE WILL BE NO CRACKS, DISABLEMENTS, OR OTHER CIRCUMVENTION OF SUCH SECURITY MEASURES."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Promotions"})}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"Users may promote, administer, or conduct a promotion (e.g., a contest or sweepstakes) on, through, or utilizing the Strim Services (a “Promotion”), provided that if you choose to do so, you must adhere to the following rules:"})}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"You may carry out Promotions to the extent permitted by applicable law and you are solely responsible for ensuring that any Promotions comply with any and all applicable laws, obligations, and restrictions"}),o.jsx("li",{children:"You will be classified as the promoter of your Promotion in the applicable jurisdiction(s) and you will be solely responsible for all aspects of and expenses related to your Promotion, including without limitation the execution, administration, and operation of the Promotion; drafting and posting any official rules; selecting winners; issuing prizes; and obtaining all necessary third-party permissions and approvals, including without limitation filing any and all necessary registrations and bonds. Strim has the right to remove your Promotion from the Strim Services if Strim reasonably believes that your Promotion does not comply with the Terms of Service or applicable law"}),o.jsx("li",{children:"Strim is not responsible for and does not endorse or support any such Promotions. You may not indicate that Strim is a sponsor or co-sponsor of the Promotion;"}),o.jsx("li",{children:"You will display or read out the following disclaimer when promoting, administering, or conducting a Promotion: “This is a promotion by [Your Name]. Strim does not sponsor or endorse this promotion and is not responsible for it.”."})]}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Political Activity"})}),o.jsx("p",{className:"tos-paragraph",children:"Subject to these Terms of Service and the Community Guidelines, you may share political opinions; participate in political activity; provide links to a political committee's official website, including the contribution page of a political committee; and solicit viewers to make contributions directly to a political committee. You agree, however, that these activities are entirely your own. Moreover, by engaging in these activities, you represent and warrant that you are eligible to engage in them under applicable law, and that you will abide by all relevant laws and regulations while doing so."}),o.jsx("p",{className:"tos-paragraph",children:"You agree not to solicit the use of or use any Strim monetization tool (e.g., Drops or paid channel points of any kind, or subscriptions) for the purpose of making or delivering a contribution to a candidate, candidate's committee, political action committee, ballot committee, or any other campaign committee, or otherwise for the purpose of influencing any election. Candidates for political office are not eligible to use any Strim monetization tool on their channels."}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"YOU MAY NOT STREAM KNOWN FALSEHOODS, OUTRIGHT LIES, OR INTENTIONAL INACCURACIES FOR THE PURPOSE OF SKEWING, INFLUENCING, OR OTHERWISE INFORMING ANY POLITICAL AGENDA"})}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Branded Content"})}),o.jsx("p",{className:"tos-paragraph",children:"Strim recognizes that some Users collaborate with brands and may publish “Branded Content,” which is any User Content featuring, using, discussing, or promoting products, services, or specific content in exchange for something of value, such as being paid or provided with goods or services. Branded Content includes without limitation paid product placements, endorsements, and sponsorships. Strim allows you to publish Branded Content using the Strim Services provided that your Branded Content complies with these Terms of Service and applicable law."}),o.jsx("p",{className:"tos-paragraph",children:'If you choose to publish Branded Content on the Strim Services you agree to provide a written disclaimer that includes the following: "This stream is Sponsored/Branded by [sponsor] and is not endorsed in any way by Strim.fun or its related services. All opinions are solely that of the streamer and do not reflect upon the opinions/positions of Strim.fun or its related services".'}),o.jsx("p",{className:"tos-paragraph",children:"In addition, you agree that you are solely responsible for ensuring that your Branded Content complies with any and all applicable advertising laws, regulations, and guidelines, including without limitation the U.S. Federal Trade Commission's Guidelines (the “Advertising Guidelines”). For example, if you have been paid or provided with free products in exchange for discussing or promoting a product or service through the Strim Services, or if you are an employee of a company and you discuss or promote that company's products or services through the Strim Services, you agree to comply with the Advertising Guidelines' requirements for disclosing such relationships to indicate the commercial nature of the Branded Content."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Prohibited Conduct"})}),o.jsx("p",{className:"tos-paragraph",children:"YOU AGREE NOT TO violate any law, contract, intellectual property, or other third-party right; not to commit a tort, and that you are solely responsible for your conduct while on the Strim Services."}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"You agree that you will c
1490omply with these Terms of Service and Strim's Community Guidelines and will not:"})}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"Create, upload, transmit, distribute, or store any content that is inaccurate, unlawful, infringing, defamatory, obscene, pornographic, invasive of privacy or publicity rights, harassing, threatening, abusive, inflammatory, or otherwise objectionable"}),o.jsx("li",{children:"Impersonate any person or entity; falsely claim an affiliation with any person or entity; access the Strim Service accounts of others without permission; forge another person's digital signature; misrepresent the source, identity, or content of information transmitted via the Strim Services; or perform any other similar fraudulent activity"}),o.jsx("li",{children:"Send junk mail or spam to users of the Strim Services, including without limitation unsolicited advertising, promotional materials, or other solicitation material; bulk mailing of commercial advertising, chain mail, informational announcements, charity requests, petitions for signatures, or any of the preceding things related to promotional giveaways (such as raffles and contests); and other similar activities"}),o.jsx("li",{children:"Harvest or collect email addresses or other contact information of other users from the Strim Services"}),o.jsx("li",{children:"Defame, harass, abuse, threaten, or defraud users of the Strim Services, or collect or attempt to collect, personal information about users or third parties without their consent"}),o.jsxs("li",{children:[o.jsx("u",{children:"Delete, remove, circumvent, disable, damage, or otherwise interfere with:"}),o.jsxs("ol",{className:"tos-list",children:[o.jsx("li",{children:"security-related features of the Strim Services or User Content"}),o.jsx("li",{children:"features that prevent or restrict use or copying of any content accessible through the Strim Services"}),o.jsx("li",{children:"features that enforce limitations on the use of the Strim Services or User Content"}),o.jsx("li",{children:"the copyright or other proprietary rights notices on the Strim Services or User Content"})]})]}),o.jsx("li",{children:"reverse engineer, decompile, disassemble, or otherwise attempt to discover the source code of the Strim Services or any part thereof, except and only to the extent that this activity is expressly permitted by the law of your jurisdiction of residence"}),o.jsx("li",{children:"modify, adapt, translate, or create derivative works based upon the Strim Services or any part thereof, except and only to the extent that such activity is expressly permitted by applicable law notwithstanding this limitation"}),o.jsx("li",{children:"interfere with or damage the operation of the Strim Services or any user's enjoyment of them, by any means, including uploading or otherwise disseminating viruses, adware, spyware, worms, or other malicious code"}),o.jsx("li",{children:"relay email from a third party's mail servers without the permission of that third party"}),o.jsx("li",{children:"access any website, server, software application, or other computer resource owned, used, and/or licensed by Strim, including but not limited to the Strim Services, by means of any robot, spider, scraper, crawler, or other automated means for any purpose, or bypass any measures Strim may use to prevent or restrict access to any website, server, software application, or other computer resource owned, used, and/or licensed by Strim, including but not limited to the Strim Services"}),o.jsx("li",{children:"manipulate identifiers in order to disguise the origin of any User Content transmitted through the Strim Services"}),o.jsx("li",{children:"interfere with or disrupt the Strim Services or servers or networks connected to the Strim Services, or disobey any requirements, procedures, policies, or regulations of networks connected to the Strim Services; use the Strim Services in any manner that could interfere with, disrupt, negatively affect, or inhibit other users from fully enjoying the Strim Services, or that could damage, disable, overburden, or impair the functioning of the Strim Services in any manner"}),o.jsx("li",{children:"use or attempt to use another user's account without authorization from that user and Strim"}),o.jsx("li",{children:"attempt to circumvent any content filtering techniques we employ, or attempt to access any service or area of the Strim Services that you are not authorized to access"}),o.jsx("li",{children:"attempt to indicate in any manner, without our prior written permission, that you have a relationship with us or that we have endorsed you or any products or services for any purpose"}),o.jsx("li",{children:"use the Strim Services for any illegal purpose, or in violation of any local, state, national, or international law or regulation, including without limitation laws governing intellectual property and other proprietary rights, data protection, and privacy."})]}),o.jsx("p",{className:"tos-paragraph",children:"To the extent permitted by applicable law, Strim takes no responsibility and assumes no liability for any User Content or for any loss or damage resulting therefrom, nor is Strim liable for any mistakes, defamation, slander, libel, omissions, falsehoods, obscenity, pornography, or profanity you may encounter when using the Strim Services. Your use of the Strim Services is at your own risk. In addition, these rules do not create any private right of action on the part of any third party or any reasonable expectation that the Strim Services will not contain any content that is prohibited by such rules."}),o.jsx("p",{className:"tos-paragraph",children:"Strim is not liable for any statements or representations included in User Content. Strim does not endorse any User Content, opinion, recommendation, or advice expressed therein, and, to the extent permitted by applicable law, Strim expressly disclaims any and all liability in connection with User Content. To the fullest extent permitted by applicable law, Strim reserves the right to remove, screen, or edit any User Content posted or stored on the Strim Services at any time and without notice, including where such User Content violates these Terms of Service or applicable law, and you are solely responsible for creating backup copies of and replacing any User Content you post or store on the Strim Services at your sole cost and expense. Any use of the Strim Services in violation of the foregoing violates these Terms of Service and may result in, among other things, termination or suspension of your rights to use the Strim Services."}),o.jsx("p",{className:"tos-paragraph",children:"For residents of the Republic of Korea, except in the case where Strim reasonably considers that giving notice is legally prohibited (for instance, when providing notice would either (i) violate applicable laws, regulations, or orders from regulatory authorities or (ii) compromise an ongoing investigation conducted by a regulatory authority) or that any notice may cause harm to you, third parties, Strim, and/or its affiliates (for instance, when providing notice harms the security of the Strim Services), Strim will without delay notify you of the reason for taking the relevant step."}),o.jsx("p",{className:"tos-paragraph",children:"For residents of the European Union or the European Economic Area, the United Kingdom, or Switzerland who are acting as a Consumer, (i) Strim will only remove, screen, or edit User Content for justified reasons, including without limitation where such User Content violates these Terms of Service or applicable law, and (ii) except where such notice would be unreasonable or legally prohibited considering the specific circumstances of the individual case, Strim will without delay notify you of the reason for taking the relevant step."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Simulcasting"})}),o.jsx("p",{className:"tos-paragraph",children:"When you are streaming live on the Strim Services you are welcome to simultaneously live stream or broadcast (“Simulcast”) on any other streaming service. HOWEVER, Strim makes no promises, or claims to the content, availability, or quality of any stream while multi-streaming. Any simulcast stream on Strim.fun is bound by all the rules of Strim.fun AND by any other rules imposed by the other streaming services. Strim will make no effort to protect the streamer from the results of their actions on other platforms, and takes no ownership of any of the other services meaning any web-based network, platform, or service that supports live streaming of user generated content."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Advertisements"})}),o.jsx("p",{className:"tos-paragraph",children:"Strim has the exclusive right to monetize the Strim Services, including without limitation, the exclusive right to sell, serve, and display advertisements on the Strim Services. Third-party advertising networks are not allowed to serve advertising through the Strim Services. However, you can publish Branded Content using the Strim Services as set forth in Section 9 above."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Respecting Copyright"})}),o.jsxs("p",{className:"tos-paragraph",children:["Strim respects the intellectual property of others and follows the requirements set forth in the Digital Millennium Copyright Act (“DMCA”) and other applicable laws. If you are the copyright owner or agent thereof and believe that content posted on the Strim Services infringes upon your copyright, please submit a help ticket on Discord or send us an email at ",o.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),". Please provide legal information justifying your copyright claim."]}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Trademarks"})}),o.jsx("p",{className:"tos-paragraph",children:"Strim, the Strim logos, and any other product or service name, logo, or slogan used by Strim, and the look and feel of the Strim Services, including all page headers, custom graphics, button icons, and scripts, are trademarks or trade dress of Strim, and may not be used in whole or in part in connection with any product or service that is not Strim's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Strim, without our prior written permission. Any use of these trademarks must be in accordance with the Strim Trademark Guidelines."}),o.jsx("p",{className:"tos-paragraph",children:"All other trademarks referenced in the Strim Services are the property of their respective owners. Reference on the Strim Services to any products, services, processes, or other information by trade name, trademark, manufacturer, supplier, or otherwise does not constitute or imply endorsement, sponsorship, or recommendation thereof by us or any other affiliation."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Third-Party Content"})}),o.jsx("p",{className:"tos-paragraph",children:"In addition to the User Content, Strim may provide other third-party content on the Strim Services (collectively, the “Third-Party Content”). Strim does not control or endorse any Third-Party Content and makes no representation or warranties of any kind regarding the Third-Party Content, including without limitation regarding its accuracy or c
1490ompleteness. Please be aware that we do not create Third-Party Content, update, or monitor it. Therefore, to the extent permitted by applicable law, we are not responsible for any Third-Party Content on the Strim Services."}),o.jsx("p",{className:"tos-paragraph",children:"You are responsible for deciding if you want to access or use third-party websites or applications that link from the Strim Services (the “Reference Sites”). Strim does not control or endorse any such Reference Sites or the information, materials, products, or services contained on or accessible through Reference Sites, and makes no representations or warranties of any kind regarding the Reference Sites. In addition, your correspondence or business dealings with, or participation in promotions of, advertisers found on or through the Strim Services are solely between you and such advertiser. Access and use of Reference Sites, including the information, materials, products, and services on or available through Reference Sites is solely at your own risk."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Idea Submission"})}),o.jsx("p",{className:"tos-paragraph",children:"By submitting ideas, suggestions, documents, and/or proposals (the “Submissions”) to Strim or its employees, you acknowledge and agree that Strim shall be entitled to use or disclose such Submissions for any purpose in any way without providing compensation or credit to you."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Termination"})}),o.jsx("p",{className:"tos-paragraph",children:"You may terminate your license to use the Strim Services and this Terms of Service agreement at your discretion at any time by ceasing to use the Strim Services or, if you are a registered user, by deleting your Str
1490im account. For residents of the European Union or the European Economic Area, or of the United Kingdom, who are acting as a Consumer, you may have a right to withdraw from or cancel the agreement for the use of the Strim Services under these Terms of Service within a specific cooling-off period. When and how this right may apply is explained in our EU, EEA & UK Consumer Right of Withdrawal Information."}),o.jsxs("p",{className:"tos-paragraph",children:["To the fullest extent permitted by applicable law, Strim reserves the right, without notice and in our sole discretion, to stop providing the Services (or any features) to you or to users generally, to terminate this Terms of Service agreement with you, to terminate your license to use the Strim Services (including to post User Content), and to block or prevent your future access to and use of the Strim Services for any reason, ",o.jsx("u",{children:"including without limitation if:"})]}),o.jsxs("ol",{type:"a",className:"tos-list",children:[o.jsx("li",{children:"your use of the Strim Services violates these Terms of Service or applicable law;"}),o.jsx("li",{children:"you fraudulently use or misuse the Strim Services; or"}),o.jsx("li",{children:"we are unable to continue providing the Strim Services to you due to technical or legitimate business reasons. Our right to terminate our services, this agreement, and your license includes the ability to terminate or to suspend your access to any purchased products or services, including any subscriptions, Prime Gaming, or Turbo accounts."})]}),o.jsx("p",{className:"tos-paragraph",children:o.jsx("u",{children:"To the fullest extent permitted by applicable law, your only remedy with respect to any dissatisfaction with:"})}),o.jsxs("ol",{type:"i",className:"tos-list",children:[o.jsx("li",{children:"the Strim Services,"}),o.jsx("li",{children:"any term of these Terms of Service,"}),o.jsx("li",{children:"any policy or practice of Strim in operating the Strim Services, or"}),o.jsx("li",{children:"any content or information transmitted through the Strim Services, is to terminate your account and to discontinue use of any and all parts of the Strim Services."})]}),o.jsx("p",{className:"tos-paragraph",children:"For residents of the Republic of Korea and for residents of the European Union or the European Economic Area, the United Kingdom, or Switzerland who are acting as a Consumer, except in the case where Strim reasonably considers that giving notice is legally prohibited (for instance, when providing notice would either (i) violate applicable laws, regulations, or orders from regulatory authorities or (ii) compromise an ongoing investigation conducted by a regulatory authority) or that any notice may cause harm to you, third parties, Strim, and/or its affiliates (for instance, when providing notice harms the security of the Strim Services), Strim will without delay notify you of the reason for its action."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Disputes"})}),o.jsx("h4",{className:"tos-subheading",children:o.jsx("u",{children:"Indemnification"})}),o.jsx("p",{className:"tos-paragraph",children:"To the fullest extent permitted by applicable law, you agree to indemnify, defend, and hold harmless Strim, its affiliated companies, and each of our respective contractors, employees, officers, directors, agents, third-party suppliers, licensors, and partners (individually and collectively, the “Strim Parties”) from any claims, losses, damages, demands, expenses, costs, and liabilities, including legal fees and expenses, arising out of or related to your access, use, or misuse of the Strim Services, any User Content you post, store, or otherwise transmit in or through the Strim Services, your violation of the rights of any third party, any violation by you of these Terms of Service, or any breach of the representations, warranties, and covenants made by you herein. You agree to promptly notify the Strim Parties of any third-party claim, and Strim reserves the right, at your expense, to assume the exclusive defense and control of any matter for which you are required to indemnify Strim, and you agree to cooperate with Strim's defense of these claims. Strim will use reasonable efforts to notify you of any such claim, action, or proceeding upon becoming aware of it."}),o.jsx("h4",{className:"tos-subheading",children:o.jsx("u",{children:"Disclaimers; No Warranties"})}),o.jsx("p",{className:"tos-paragraph",children:"i. No Warranties"}),o.jsx("p",{className:"tos-paragraph",children:"TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW AND EXCEPT AS STATED IN SUBSECTION ii. BELOW: (A) THE Strim SERVICES AND THE CONTENT AND MATERIALS CONTAINED THEREIN ARE PROVIDED ON AN “AS IS” BASIS WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, EXCEPT AS EXPRESSLY PROVIDED TO THE CONTRARY IN WRITING BY Strim; (B) THE Strim PARTIES DISCLAIM ALL OTHER WARRANTIES, STATUTORY, EXPRESS, OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT AS TO THE Strim SERVICES, INCLUDING ANY INFORMATION, CONTENT, OR MATERIALS CONTAINED THEREIN; (C) Strim DOES NOT REPRESENT OR WARRANT THAT THE CONTENT OR MATERIALS ON THE Strim SERVICES ARE ACCURATE, COMPLETE, RELIABLE, CURRENT, OR ERROR-FREE;
1490 (D) Strim IS NOT RESPONSIBLE FOR TYPOGRAPHICAL ERRORS OR OMISSIONS RELATING TO TEXT OR PHOTOGRAPHY; AND (E) WHILE Strim ATTEMPTS TO MAKE YOUR ACCESS AND USE OF THE Strim SERVICES SAFE, Strim CANNOT AND DOES NOT REPRESENT OR WARRANT THAT THE Strim SERVICES OR OUR SERVER(S) ARE FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS, AND THEREFORE, YOU SHOULD USE INDUSTRY-RECOGNIZED SOFTWARE TO DETECT AND DISINFECT VIRUSES FROM ANY DOWNLOAD. NO ADVICE OR INFORMATION, WHETHER ORAL OR WRITTEN, OBTAINED BY YOU FROM Strim OR THROUGH THE Strim SERVICES WILL CREATE ANY WARRANTY NOT EXPRESSLY STATED HEREIN."}),o.jsx("p",{className:"tos-paragraph",children:"ii. EU/EEA/UK/CH Warranty Rights"}),o.jsx("p",{className:"tos-paragraph",children:"For residents of the European Union or the European Economic Area, the United Kingdom, or Switzerland who are acting as a Consumer, there are warranty rights under applicable law in case of any non-conformity of digital content and services. Such rights shall remain unaffected by these Terms of Service. In such a case, Strim offers no further implied or statutory warranties or conditions with regard to digital content and services, and explicitly disclaims all implied warranties and conditions to the maximum extent permitted by applicable law."}),o.jsx("p",{className:"tos-paragraph",children:"You acknowledge that we may change the Strim Services from time to time without causing its non-conformity, including when needed to comply with applicable law or regulation, or for justified commercial, security, or operational reasons, and including to make any improvements to your access to the Strim Services."}),o.jsx("h4",{className:"tos-subheading",children:o.jsx("u",{children:"Limitation of Liability and Damages"})}),o.jsx("p",{className:"tos-paragraph",children:"i. Limitation of Liability"}),o.jsx("p",{className:"tos-paragraph",children:"TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW: (A) IN NO EVENT SHALL Strim OR THE Strim PARTIES BE LIABLE FOR ANY DIRECT, SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES, OR ANY OTHER DAMAGES OF ANY KIND, INCLUDING BUT NOT LIMITED TO LOSS OF USE, LOSS OF PROFITS, OR LOSS OF DATA, WHETHER IN AN ACTION IN CONTRACT, TORT (INCLUDING BUT NOT LIMITED TO NEGLIGENCE), OR OTHERWISE, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE Strim SERVICES, THE CONTENT OR THE MATERIALS, INCLUDING WITHOUT LIMITATION ANY DAMAGES CAUSED BY OR RESULTING FROM RELIANCE ON ANY INFORMATION OBTAINED FROM Strim, OR THAT RESULT FROM MISTAKES, OMISSIONS, INTERRUPTIONS, DELETION OF FILES OR EMAIL, ERRORS, DEFECTS, VIRUSES, DELAYS IN OPERATION OR TRANSMISSION, OR ANY FAILURE OF PERFORMANCE, WHETHER OR NOT RESULTING FROM ACTS OF GOD, COMMUNICATIONS FAILURE, THEFT, DESTRUCTION, OR UNAUTHORIZED ACCESS TO Strim'S RECORDS, PROGRAMS, OR SERVICES; AND (B) IN NO EVENT SHALL THE AGGREGATE LIABILITY OF Strim, WHETHER IN CONTRACT, WARRANTY, TORT (INCLUDING NEGLIGENCE, WHETHER ACTIVE, PASSIVE, OR IMPUTED), PRODUCT LIABILITY, STRICT LIABILITY, OR OTHER THEORY, ARISING OUT OF OR RELATING TO THE USE OF OR INABILITY TO USE THE Strim SERVICES EXCEED THE AMOUNT PAID BY YOU, IF ANY, FOR ACCESSING THE Strim SERVICES DURING THE TWELVE (12) MONTHS IMMEDIATELY PRECEDING THE DATE OF THE CLAIM OR ONE HUNDRED DOLLARS, WHICHEVER IS GREATER. TO THE EXTENT THAT APPLICABLE LAW PROHIBITS LIMITATION OF SUCH LIABILITY, Strim SHALL LIMIT ITS LIABILITY TO THE FULL EXTENT ALLOWED BY APPLICABLE LAW."}),o.jsx("p",{className:"tos-paragraph",children:"To the extent required by applicable law, nothing in these Terms shall restrict our liability for death or personal injuries caused by Strim; for damages caused by Strim's fraud, willful misconduct, or gross negligence; and for other losses that may not be excluded or limited by applicable law."}),o.jsx("p",{className:"tos-paragraph",children:"ii. Reference Sites"}),o.jsx("p",{className:"tos-paragraph",children:"THESE LIMITATIONS OF LIABILITY ALSO APPLY WITH RESPECT TO DAMAGES INCURRED BY YOU BY REASON OF ANY PRODUCTS OR SERVICES SOLD OR PROVIDED ON ANY REFERENCE SITES OR OTHERWISE BY THIRD PARTIES OTHER THAN Strim AND RECEIVED THROUGH OR ADVERTISED ON THE Strim SERVICES OR RECEIVED THROUGH ANY REFERENCE SITES."}),o.jsx("p",{className:"tos-paragraph",children:"iii. Basis of the Bargain"}),o.jsx("p",{className:"tos-paragraph",children:"YOU ACKNOWLEDGE AND AGREE THAT Strim HAS OFFERED THE Strim SERVICES, USER CONTENT, MATERIALS, AND OTHER CONTENT AND INFORMATION, SET ITS PRICES, AND ENTERED INTO THESE TERMS OF SERVICE IN RELIANCE UPON THE WARRANTY DISCLAIMERS AND LIMITATIONS OF LIABILITY SET FORTH HEREIN, THAT THE WARRANTY DISCLAIMERS AND LIMITATIONS OF LIABILITY SET FORTH HEREIN REFLECT A REASONABLE AND FAIR ALLOCATION OF RISK BETWEEN YOU AND Strim, AND THAT THE WARRANTY DISCLAIMERS AND LIMITATIONS OF LIABILITY SET FORTH HEREIN FORM AN ESSENTIAL BASIS OF THE BARGAIN BETWEEN YOU AND Strim. Strim WOULD NOT BE ABLE TO PROVIDE THE Strim SERVICES TO YOU ON AN ECONOMICALLY REASONABLE BASIS WITHOUT THESE LIMITATIONS."}),o.jsx("h4",{className:"tos-subheading",children:o.jsx("u",{children:"Applicable Law and Venue"})}),o.jsx("p",{className:"tos-paragraph",children:"(i) To the fullest extent permitted by applicable law, you and Strim agree that if you are a Subscribing Organization or a consumer resident of a jurisdiction other than those in (ii) and (iii) below, the following governing law and arbitration provision applies:"}),o.jsx("p",{className:"tos-paragraph",children:"PLEASE READ THE FOLLOWING CAREFULLY BECAUSE IT REQUIRES YOU TO ARBITRATE DISPUTES WITH Strim AND LIMITS THE MANNER IN WHICH YOU CAN SEEK RELIEF FROM Strim."}),o.jsx("p",{className:"tos-paragraph",children:"(a) You and Strim agree to arbitrate any dispute arising from these Terms of Service or your use of the Strim Services, except that you and Strim are not required to arbitrate any dispute in which either party seeks equitable and other relief for the alleged unlawful use of copyrights, trademarks, trade names, logos, trade secrets, or patents. ARBITRATION PREVENTS YOU FROM SUING IN COURT OR FROM HAVING A JURY TRIAL. You and Strim agree that you will notify each other in writing of any dispute within thirty (30) days of when it arises. Notice to Strim shall be sent to: Strim.fun and Vulpes Vulpes Development LLC, Attn: Legal, 350 Bush Street, 2nd Floor, San Francisco, CA 94104. You and Strim further agree: to attempt informal resolution prior to any demand for arbitration; that any arbitration will occur in Santa Clara County, California; that arbitration will be conducted confidentially by a single arbitrator in accordance with the rules of JAMS; and that the state or federal courts in Santa Clara County, California have exclusive jurisdiction over any appeals of an arbitration award and over any suit between the parties not subject to arbitration. Other than class procedures and remedies discussed below, the arbitrator has the authority to grant any remedy that would otherwise be available in court."}),o.jsx("p",{className:"tos-paragraph",children:"(b) Any dispute between the parties will be governed by this Agreement and the laws of the State of California and applicable United States law, without giving effect to any conflict of laws principles that may provide for the application of the law of another jurisdiction."}),o.jsx("p",{className:"tos-paragraph",children:"(c) Whether the dispute is heard in arbitration or in court, you and Strim will not commence against the other a class action, class arbitration, or other representative action or proceeding."}),o.jsx("p",{className:"tos-paragraph",children:"(ii) For residents of the European Union or the European Economic Area, the United Kingdom, or Switzerland who are acting as a Consumer, these Terms of Service and any disputes, claims, or causes of action arising out of or in connection with them will be governed by the laws of the State of California and applicable United States law, provided that this choice of governing law will not deprive you of the protection afforded to you by provisions that cannot be derogated from by agreement by virtue of the laws applicable where you habitually reside. In such cases, disputes shall be resolved 
1490in the competent civil courts as determined by applicable law."}),o.jsx("p",{className:"tos-paragraph",children:"(iii) If you are a resident in any jurisdiction other than those named in (ii) in which the arbitration provision in the section (i)(a) above is found to be unenforceable, then any disputes, claims, or causes of action arising out of or in connection with these Terms of Service shall be brought and resolved by the state or federal courts in San Francisco County, California or, if required by applicable law, then by competent civil courts within your jurisdiction of residence. If the governing law provision in (i)(b) is found to be unenforceable, then the laws of your jurisdiction of residence shall govern."}),o.jsx("h4",{className:"tos-subheading",children:o.jsx("u",{children:"Claims"})}),o.jsx("p",{className:"tos-paragraph",children:"TO THE EXTENT PERMITTED BY APPLICABLE LAW, YOU AND Strim AGREE THAT ANY CAUSE OF ACTION ARISING OUT OF OR RELATED TO THE Strim SERVICES MUST COMMENCE WITHIN ONE (1) YEAR AFTER THE CAUSE OF ACTION ACCRUES. OTHERWISE, SUCH CAUSE OF ACTION IS PERMANENTLY BARRED."}),o.jsx("h2",{className:"tos-section-heading",children:"Miscellaneous"}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Waiver"})}),o.jsx("p",{className:"tos-paragraph",children:"If we fail to exercise or enforce any right or provision of these Terms of Service, it will not constitute a waiver of such right or provision. Any waiver of any provision of these Terms of Service will be effective only if in writing and signed by the relevant party."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Severability"})}),o.jsx("p",{className:"tos-paragraph",children:"If any provision of these Terms of Service is held to be unlawful, void, or for any reason unenforceable, then that provision will be limited or eliminated from these Terms of Service to the minimum extent necessary and will not affect the validity and enforceability of any remaining provisions."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Assignment"})}),o.jsx("p",{className:"tos-paragraph",children:"To the extent permitted by applicable law, these Terms of Service, and any rights and licenses granted hereunder, may not be transferred or assigned by you, but may be assigned by Strim without restriction. Any assignment attempted to be made in violation of this Terms of Service shall be void."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Survival"})}),o.jsx("p",{className:"tos-paragraph",children:"Upon termination of these Terms of Service, any provision which, by its nature or express terms should survive, will survive such termination or expiration, including, but not limited to the sections listed above in these terms."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Entire Agreement"})}),o.jsx("p",{className:"tos-paragraph",children:"The Terms of Service, which incorporate the Guidelines, is the entire agreement between you and Strim relating to the subject matter herein and will not be modified except by a writing signed by authorized representatives of both parties, or by a change to these Terms of Service made by Strim as set forth in Section 6 above."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Contact Information"})}),o.jsx("p",{className:"tos-paragraph",children:"The Strim Services are offered by:"}),o.jsx("p",{className:"tos-paragraph",children:"Strim.fun and Vulpes Vulpes Development LLC"}),o.jsx("p",{className:"tos-paragraph",children:"If you are a California resident, you may have this same information emailed to you by sending a letter to the foregoing address with your email address and a request for this information."}),o.jsx("p",{className:"tos-paragraph",children:"Strim.fun and Vulpes Vulpes Development LLC is a company registered in the US State of Colorado under Document 20151335409."}),o.jsx("p",{className:"tos-paragraph",children:"For questions or more information, please visit our Discord or email us at the addresses noted above."}),o.jsx("p",{className:"tos-paragraph",children:"The EU Commission provides a platform for online dispute resolution at https://ec.europa.eu/consumers/odr. Please note that Strim is not obliged to participate in such dispute resolution."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Requests for Information and How to Serve a Subpoena"})}),o.jsx("p",{className:"tos-paragraph",children:"All requests for information or documents related to potential, anticipated, or current legal proceedings, investigations, or disputes must be made using the appropriate level of legal process, and must be properly served on Strim via the C
1490orporation Service Company (CSC), Strim's national registered agent. Please find below the California address for CSC (the CSC office in your jurisdiction may be located through the Secretary of State's website):"}),o.jsx("p",{className:"tos-paragraph",children:"Strim.fun and Vulpes Vulpes Development LLC"}),o.jsx("p",{className:"tos-paragraph",children:"Please note that, to the extent permitted by applicable law, Strim does not accept requests for information or documents, or service of process, via e-mail or fax and will not respond to such requests. All requests must include the information you may have that will help us identify the relevant records (particularly, the Strim Service at issue, and the Strim username at issue), the specific information requested, and its relationship to your investigation. Please also note that limiting your request to the relevant records (e.g., a limited time period) will facilitate efficient processing of your request."}),o.jsx("h3",{className:"tos-subheading",children:o.jsx("u",{children:"Disclaimer of Certain Aspects"})}),o.jsx("p",{className:"tos-paragraph",children:"This disclaimer is notice that items such as credit card names, certain images owned by third parties, and other Images/Content such as external Logos, Items, and Names are property of their legal owners. Strim.FUN makes no claim of ownership of these and only utilizes them for informational purchases such as identifying credit cards or creating appropriate informationals."}),o.jsx("h4",{className:"tos-subheading",children:o.jsx("u",{children:"THIS SET OF TERMS WILL BE UPDATED AS NEEDED. LAST UPDATE WAS ON 31-AUG-24. FOR ANY QUESTIONS PLEASE CONTACT THE ADMIN TEAM"})}),o.jsx("br",{})]})})}function Ree(){return document.title="Watch Party Info",o.jsxs(o.Fragment,{children:[o.jsx("h2",{children:"Create and Join Watch parties"}),o.jsx("p",{children:"Bring parties of friends into channels together to share the fun!"}),o.jsx("p",{children:"Info coming soon"})]})}const Aee=n=>/[\s$@#^%!*()]/g.test(n);function Lee(n){let[e]=cL();const[t,r]=S.useState(!1),[s,i]=S.useState(!1),a=S.useRef(null);let l=e.get("source");document.title="Strim.FUN Login";const u=(m,p)=>{let y=m.username;p.validateForm().then(()=>{Pe.post(Ft+"/login",{userName:y,password:m.password}).then(v=>{document.cookie="userId="+y,lb().then(x=>{console.log(x),ib()}).catch(x=>{console.log(x)}),l?window.location.replace("/"+l):window.location.replace("/")}).catch(v=>{v.status===404&&je("User not found"),console.log(v)})}).catch(v=>{console.log(v)})},d=()=>t?o.jsx("div",{children:o.jsx(et,{children:o.jsxs(Ac,{children:[o.jsx(Ac.Text,{id:"pwdResetEmail",className:"input-lbl",children:"Email: "}),o.jsx(et.Control,{type:"textarea",id:"pwdResetEmailInput",ref:a,placeholder:"[email protected]",onChange:m=>{a.current.value=m.target.value},className:"input-form-control"}),o.jsx(zt,{onClick:()=>{i(!0)},children:"Submit"})]})})}):o.jsx(o.Fragment,{}),f=()=>{if(s){if(console.log(a.current.value),!a.current.value){je("Must provide an Email Address");return}return o.jsx(nT,{show:s,setShow:m=>i(m),email:a.current.value,S:!0})}};if(n.loggedIn)eA("/");else return o.jsxs("div",{style:{display:"flex",justifyContent:"center",flexWrap:"wrap"},children:[o.jsx(xr,{validationSchema:br({username:Bt().required("Username must be provided").min(5,"Username must be at least 5 characters").max(25,"Username must be no more than 25 characters").test("Username may not contain special characters","Username may not contain special characters",m=>!Aee(m)),password:Bt().required("Password is required")}),validateOnBlur:!0,onSubmit:(m,p)=>u(m,p),validateOnChange:!1,initialValues:{username:"",password:""},children:({handleSubmit:m,values:p,handleChange:y,errors:v})=>o.jsxs(et,{noValidate:!0,onSubmit:m,validateOnBlur:!0,className:"login-form",children:[o.jsx("h2",{children:"DIVE INTO ENTERTAINMENT"}),o.jsx("br",{}),o.jsxs("h4",{children:["Some channels require you to be logged in to view! If you're seeing this page after attempting to access a creators channel, they are likely a restricted channel requiring age verification. Please log in to verify yourself or please ",o.jsx("a",{href:"/signup",children:"Create An Account"}),"."]}),o.jsx("br",{}),o.jsx("h2",{children:"Login"}),o.jsx(en,{name:"username",value:p.username,placeholder:"Username",className:"login-input",error:v.username,onChange:x=>{y(x)},onKeyDown:x=>{x.key==="Enter"&&m()}}),o.jsx(en,{name:"password",type:"password",placeholder:"password",className:"login-input",value:p.password,error:v.password,onChange:x=>{y(x)},onKeyDown:x=>{x.key==="Enter"&&m()}}),o.jsx(zt,{text:"Log In",onClick:m})]})}),o.jsxs("div",{style:{marginTop:"2vh"},children:[o.jsxs("h4",{children:["Forget your password?  ",o.jsx(zt,{onClick:()=>{r(!0)},children:"CLICK HERE"})]}),d()]}),f()]})}function Nee(n){var f,m,p,y,v;let{channelName:e,component:t}=Ba();const r=typeof window<"u"&&window.location&&window.location.search?new URLSearchParams(window.location.search).get("streamMode")==="true":!1,[s,i]=S.useState(!0),[a,l]=S.useState({}),[u,d]=S.useState([]);if(S.useEffect(()=>{if(r){i(!1);return}n.userData?t!=="chat"?i(!1):ab(e).then(x=>{l(x.data)}).catch(x=>{console.log(x)}).finally(()=>{i(!1)}):n.loggedIn||i(!1)},[e,t,n.userData,n.loggedIn,r]),S.useEffect(()=>{Pe.get(`${kt}/stream/${e}/watchRedeem`).then(x=>{console.log(x),d(x.data)}).catch(x=>{console.log(x.response)})},[e]),s)return _n;switch(!n.loggedIn&&!r&&window.location.replace("/login?source="+(e?e+"/":"")+"popout/"+t),t){case"chat":return o.jsx(Gw,{userData:n.userData,dashView:!1,loggedIn:n.loggedIn,isMod:!r&&(((p=(m=(f=n.userData)==null?void 0:f.streamingInfo)==null?void 0:m.moddedChannels)==null?void 0:p.includes(e))||((v=(y=n.userData)==null?void 0:y.streamingInfo)==null?void 0:v.ownedChannelName)===e||!1),style:{height:r?"100%":"auto !important",width:"100%",overflow:"hidden",background:r?"transparent":void 0},channelWatchPoints:a.channelPoints,channelWatchPointName:a.channelPointsName,emotes:n.loggedIn&&n.userData?n.userData.emotes:[],channelPointRedeems:n.channelData?n.channelData.channelPointRedeems:[],isPopout:!0,streamMode:r});case"notifications":return o.jsx(Uw,{userData:n.userData,notifications:n.notifications});default:return o.jsx(o.Fragment,{})}}function gm(n){return o.jsx(ch,{variant:"event",svgComponent:n.svgComponent,title:n.title,emptyString:n.emptyString,content:n.content,isLink:n.isLink,linkTo:n.linkTo,data:n.data})}function kee(){const n=Ft+"/user/create";
1490document.title="Strim FUN Sign Up!";const[e,t]=S.useState(null),[r,s]=S.useState(null),[i,a]=S.useState(null),l=(m,p)=>{console.log(p),document.cookie="userId=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",document.cookie="userId=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/user;",document.cookie="token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",document.cookie="token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/user;",p.validateForm().then(()=>{Pe.post(n,{uuid:null,username:m.username,password:m.password1,email:m.email,birthday:i&&e&&r?i+"-"+e+"-"+r:null,phone:m.phone,nickname:m.nickname,pronouns:m.pronouns}).then(({data:y})=>{localStorage.setItem(ZD,m.username),localStorage.setItem(QD,y.token),localStorage.setItem(JD,JSON.parse(window.atob(y.token.split(".")[1])).exp),window.location.replace("/")}).catch(y=>{if(y.response.status>400&&y.response.status<500){je(y.response.data.error);return}(y.response.status===500||y.response.status===501)&&je("Unable to create user. Error: "+y.response.data.error)})}).catch(y=>{console.log("error!"),console.log(y)})},u=m=>{if(i&&e){let y=31,v=[];e==="09"||e==="04"||e==="06"||e==="11"?y=30:e==="02"&&(parseInt(i,10)%4===0?y=29:y=28);for(var p=1;p<y+1;p++)p<10?v.push("0"+p.toString()):v.push(p.toString());return o.jsxs(bt,{id:"dob-day",children:[o.jsx(bt.Toggle,{className:"user-settings-control",style:{width:"auto"},children:r||"Day"}),o.jsx(bt.Menu,{className:"sign-up-dob-menu",children:v.map((x,b)=>o.jsx(bt.Item,{onClick:E=>{m(E),s(x)},children:x},"dropDay-"+b))})]})}},d=m=>{let p=new Date().getFullYear(),y=1900,v=[];for(var x=p;x>=y;x--)v.push(x.toString());return o.jsxs(bt,{id:"dob-year",children:[o.jsx(bt.Toggle,{className:"user-settings-control",style:{width:"auto"},children:i||"Year"}),o.jsx(bt.Menu,{className:"sign-up-dob-menu",children:v.map((b,E)=>o.jsx(bt.Item,{onClick:T=>{m(T),a(b)},children:b},"dropYear-"+E))})]})},f=m=>{if(i){let y=12,v=1,x=[];for(var p=v;p<y+1;p++)p<10?x.push("0"+p.toString()):x.push(p.toString());return o.jsxs(bt,{id:"dob-month",children:[o.jsx(bt.Toggle,{className:"user-settings-control",style:{width:"auto"},children:e||"Month"}),o.jsx(bt.Menu,{className:"sign-up-dob-menu",style:{maxHeight:"200px",overflowY:"auto"},children:x.map((b,E)=>o.jsx(bt.Item,{onClick:T=>{m(T),t(b)},children:b},"dropMonth-"+E))})]})}};return o.jsx("div",{className:"channel-settings-page",children:o.jsx(xr,{validationSchema:br({nickname:Bt().required("Nickname must be provided").min(2,"Name must be at least 2 characters").max(100,"Name may be at most 100 characters").test("Nickname may not contain special characters","Nickname may not contain special characters",m=>!Da(m)),phone:Bt().trim().optional().matches(/((\d){3}-(\d){3}-(\d){4}|(\d){3}(\d){3}(\d){4})$/g,"Must be in the format XXX-XXX-XXXX or XXXYYYZZZZ, international numbers are currently not accepted"),email:Bt().required("Email is required").email("Must be a proper email account"),username:Bt().trim().required("Username must be provided").min(5,"Username must be at least 5 characters").max(25,"Username must be no more than 25 characters").test("Username may not contain special characters","Username may not contain special characters",m=>!Da(m)),password1:Bt().min(5,"Password must be at least 5 characters").required("Password is required"),password2:Bt().oneOf([Pw("password1"),null],"Passwords do not match").required("Confirmation password is required"),pronouns:Bt().optional().min(3,"must be at least one character, a slash, and another character: (ex: a/b)").max(30,"Pronouns may not exceed 30 characters total").test("pronouns may not contain special characters","pronouns may not contain special characters",m=>!uj(m))}),validateOnBlur:!0,onSubmit:(m,p)=>l(m,p),validateOnChange:!1,initialValues:{username:"",password1:"",password2:"",email:"",dob:"",phone:"",nickname:"",pronouns:""},children:({handleSubmit:m,values:p,handleChange:y,errors:v})=>o.jsxs(et,{noValidate:!0,onSubmit:m,validateOnBlur:!0,className:"user-settings-form sign-up-form",children:[o.jsxs("section",{className:"channel-settings-section",children:[o.jsxs("div",{className:"channel-settings-section-header",children:[o.jsx("p",{className:"channel-settings-eyebrow",children:"Sign Up"}),o.jsx("h2",{children:"DIVE INTO ENTERTAINMENT"}),o.jsxs("p",{children:["Join a growing community made by streamers for ",o.jsx("i",{children:"EVERYONE"}),"."]})]}),o.jsx("div",{className:"channel-settings-card",children:o.jsxs("ul",{style:{fontSize:"1.2em",listStyleType:"none",paddingLeft:0,margin:0},children:[o.jsxs("li",{children:["Built in ",o.jsx(Pt,{to:"/info/accessibility",children:"accessibility options"})," including closed captioning and ",o.jsx(Pt,{to:"/info/layouts",children:"highly configurable layouts"})]}),o.jsxs("li",{children:["Organize ",o.jsx(Pt,{to:"/info/watchparties",children:"watch parties"})," with your friends and chat over your favorite streams."]}),o.jsxs("li",{children:["Starting minimum ",o.jsx(Pt,{to:"/info/monetization",children:"80/20 revenue split"}),"! Keep more of what you earn than ever before!"]}),o.jsxs("li",{children:["Less intrusive ads, with ",o.jsx(Pt,{to:"/info/monetization",children:"more control"})," over how they're displayed on your channel."]})]})})]}),o.jsxs("section",{className:"channel-settings-card user-settings-profile-details",children:[o.jsx("h3",{children:"Create Your Account"}),o.jsx("p",{className:"channel-settings-muted",children:"Enter your details below to join Strim FUN."}),o.jsxs("div",{className:"user-settings-form-group",children:[o.jsxs("div",{className:"user-settings-input-wrapper",children:[o.jsx("span",{className:"user-settings-label",children:"Username"}),o.jsx(et.Control,{name:"username",value:p.username,placeholder:"Create Your Username",className:"user-settings-control",isInvalid:!!v.username,onChange:y,onKeyDown:x=>{x.key==="Enter"&&m()}})]}),v.username&&o.jsx("div",{className:"invalidText",children:v.username}),o.jsxs("div",{className:"user-settings-input-wrapper",children:[o.jsx("span",{className:"user-settings-label",children:"Password"}),o.jsx(et.Control,{name:"password1",type:"password",placeholder:"Password",className:"user-settings-control",value:p.password1,isInvalid:!!v.password1,onChange:y,onKeyDown:x=>{x.key==="Enter"&&m()}})]}),v.password1&&o.jsx("div",{className:"invalidText",children:v.password1}),o.jsxs("div",{className:"user-settings-input-wrapper",children:[o.jsx("span",{className:"user-settings-label",children:"Confirm Password"}),o.jsx(et.Control,{name:"password2",type:"password",placeholder:"Confirm Password",className:"user-settings-control",value:p.password2,isInvalid:!!v.password2,onChange:y,onKeyDown:x=>{x.key==="Enter"&&m()}})]}),v.password2&&o.jsx("div",{className:"invalidText",children:v.password2}),o.jsxs("div",{className:"user-settings-input-wrapper",children:[o.jsx("span",{className:"user-settings-label",children:"Nickname / Profile name"}),o.jsx(et.Control,{name:"nickname",placeholder:"First Name/Alias",className:"user-settings-control",value:p.nickname,isInvalid:!!v.nickname,onChange:y,onKeyDown:x=>{x.key==="Enter"&&m()}})]}),v.nickname&&o.jsx("div",{className:"invalidText",children:v.nickname}),o.jsxs("div",{className:"user-settings-input-wrapper",children:[o.jsx("span",{className:"user-settings-label",children:"Phone number"}),o.jsx(et.Control,{name:"phone",value:p.phone,placeholder:"Phone Number",className:"user-settings-control",isInvalid:!!v.phone,onChange:x=>{p.phone.length>12&&(x.target.value=p.phone.slice(0,11)),y(x)},onKeyDown:x=>{x.key==="Enter"&&m()}})]}),v.phone&&o.jsx("div",{className:"invalidText",children:v.phone}),o.jsxs("div",{className:"user-settings-input-wrapper",children:[o.jsx("span",{className:"user-settings-label",children:"Email"}),o.jsx(et.Control,{name:"email",value:p.email,placeholder:"[email protected]",className:"user-settings-control",isInvalid:!!v.email,onChange:y,onKeyDown:x=>{x.key==="Enter"&&m()}})]}),v.email&&o.jsx("div",{className:"invalidText",children:v.email}),o.jsxs("div",{className:"user-settings-input-wrapper",children:[o.jsx("span",{className:"user-settings-label",children:"Birthday"}),o.jsxs("div",{className:"d-flex align-items-center flex-wrap gap-2 px-3 py-2",children:[d(y),f(y),u(y)]})]}),o.jsxs("div",{className:"user-settings-input-wrapper",children:[o.jsx("span",{className:"user-settings-label",children:"Pronouns"}),o.jsx(et.Control,{name:"pronouns",value:p.pronouns,placeholder:"they/them",className:"user-settings-control",isInvalid:!!v.pronouns,onChange:y})]}),v.pronouns&&o.jsx("div",{className:"invalidText",children:v.pronouns}),o.jsx("div",{className:"user-settings-action-row mt-4",children:o.jsx(zt,{text:"Submit",onClick:m,style:{fontSize:"1.35em"}})})]})]}),o.jsxs("section",{className:"channel-settings-card",children:[o.jsx("h3",{children:"Why do we require entering your DOB?"}),o.jsx("p",{className:"channel-settings-muted",children:"Because we have channels that require str
1490ict age verification, you must provide a valid DOB that verifies you are at least 18 years of age."}),o.jsx("p",{className:"channel-settings-muted",children:"Rest assured this information is not given out to the public (unless you expressly allow it on your settings page)."}),o.jsx("hr",{}),o.jsx("h4",{className:"text-warning",children:"NOTE: Your DOB CAN NOT be changed once submitted without directly contacting the administration team and providing proof of a correct DOB. Please Select carefully!"})]})]})})})}function Pee(){const n=()=>{let e=document.getElementById("code-input").value;Pe.post(Ft+"/user/verifyemail",{code:e}).then(t=>{Tt(t.data),window.location.replace("/profile")}).catch(t=>{je(t.response.data.error)})};return o.jsxs(o.Fragment,{children:[o.jsx("h2",{children:"Paste your verification code here: "}),o.jsx("input",{type:"text",id:"code-input"}),o.jsx("br",{}),o.jsx("br",{}),o.jsx(zt,{onClick:n,text:"Submit"})]})}class ym{constructor(e,t,r,s){Gl(this,"title");Gl(this,"content");Gl(this,"url");Gl(this,"id");this.title=e,this.id=r,this.url=t,this.content=s}}function _ee(n){const e=Q5();let t=n.userData,r=n.loggedIn;const s=[{to:"/info/help",label:"Help & Information"},{to:"/info/tos",label:"Terms Of Service"},{to:"/info/monetization",label:"Monetization"},{to:"/info/accessibility",label:"Accessibility"},{to:"/info/layouts",label:"Layouts"},{to:"/info/setup",label:"Stream Setup"}],i=[{to:`/user/${va()}`,label:"Visit Public Profile"},{to:"/friends",label:"Friends"},{to:"/invite",label:"Invite your Friends!"},{to:"/subscriptions",label:"Subscriptions"},{to:"/profile",label:"Profile & Settings"}],a=({to:le,label:pe,title:Ie})=>le.startsWith("http")?o.jsx("a",{className:"menu-item home-mobile-menu-link",title:Ie,href:le,children:pe},le):o.jsx(Pt,{className:"menu-item home-mobile-menu-link",title:Ie,to:le,children:pe},le),[l,u]=S.useState([]),[d,f]=S.useState([]),[m,p]=S.useState([]),[y,v]=S.useState([new ym("All Categories","/allcategories","0000",o.jsx(I1,{}))]),[x,b]=S.useState([]),[E,T]=S.useState([]),[w,R]=S.useState([]),[I,L]=S.useState([]),[N,_]=S.useState(!0),[j,F]=S.useState(!0),[$,z]=S.useState(!1),[W,J]=S.useState(!0),[oe,ie]=S.useState(!0),[Z,X]=S.useState(!0);S.useEffect(()=>{n.loggedIn&&rj()&&ib();const le=kt+"/home",pe=typeof EventSource<"u"?new EventSource(le):null;return pe&&(pe.onopen=()=>{},pe.onmessage=Ie=>{console.log(Ie.data)},pe.addEventListener("homeData",Ie=>{const Ne=JSON.parse(Ie.data);T(Ne.videoRoulette??[]),R(Ne.celebratedStreamers??[])}),pe.onerror=Ie=>{pe.close(),console.error("SSE error:",Ie)}),J(!0),cj().then(Ie=>{if(Ie!=null&&Ie.tabs){const Ne=[new ym("All Categories","/allcategories","0000",o.jsx(I1,{}))];Ie.tabs.forEach(Fe=>{Ne.push(new ym(Fe.categoryName,Fe.categoryUrl,Fe.categoryKey,o.jsx(fv,{categoryUrl:Fe.categoryUrl})))}),v(Ne)}}).catch(Ie=>{var Ne,Fe;console.log(Ie),je(((Fe=(Ne=Ie.response)==null?void 0:Ne.data)==null?void 0:Fe.error)||"Failed to load home tabs")}).finally(()=>{J(!1)}),ie(!0),aj().then(Ie=>{Ie&&(T(Ie.videoRoulette??[]),R(Ie.celebratedStreamers??[]),L(Ie.trendingClips??[]))}).catch(Ie=>{var Ne,Fe;console.log(Ie),je(((Fe=(Ne=Ie.response)==null?void 0:Ne.data)==null?void 0:Fe.error)||"Failed to load home video data")}).finally(()=>{ie(!1)}),X(!0),oj().then(Ie=>{Ie&&b(Ie.liveChannels??[])}).catch(Ie=>{var Ne,Fe;console.log(Ie),je(((Fe=(Ne=Ie.response)==null?void 0:Ne.data)==null?void 0:Fe.error)||"Failed to load live channels")}).finally(()=>{X(!1)}),f(n.loggedIn&&t?t.channelLists.favoriteChannels:[]),p(n.loggedIn&&t?t.channelLists.followedChannels:[]),()=>{pe==null||pe.close()}},[n.mobileView,n.loggedIn,t]);const ue=()=>{_(!N)},se=()=>{F(!j)},G=()=>n.mobileView?null:o.jsxs(o.Fragment,{children:[o.jsxs("aside",{className:`side-bar side-bar-left ${N?"side-bar-expanded":"side-bar-collapsed"}`,"aria-label":"Favorite and followed channels",children:[o.jsx("button",{className:"side-bar-toggle side-bar-close-left-icon",type:"button",onClick:ue,"aria-label":"Collapse left sidebar",children:o.jsx(T1,{})}),o.jsx(FX,{svgComponent:o.jsx(UQ,{}),channels:d,emptyString:"No favorites yet! Go find a channel you love!"}),o.jsx(BX,{svgComponent:o.jsx(zQ,{}),channels:m,emptyString:"No follows yet! Go find a channel you love!"})]}),o.jsx("button",{className:`side-bar-toggle side-bar-open-left ${N?"side-bar-toggle-hidden":""}`,type:"button",onClick:ue,"aria-label":"Open left sidebar",children:o.jsx(T1,{})})]}),ee=()=>n.mobileView?null:o.jsxs(o.Fragment,{children:[o.jsxs("aside",{className:`side-bar side-bar-right ${j?"side-bar-expanded":"side-bar-collapsed"}`,"aria-label":"Featured channels and events",children:[o.jsx("button",{className:"side-bar-toggle side-bar-close-right-icon",type:"button",onClick:se,"aria-label":"Collapse right sidebar",children:o.jsx(T1,{})}),o.jsx(gm,{isLink:!0,linkTo:"/supporters",title:"SUPPORT",svgComponent:o.jsx(WQ,{}),content:o.jsxs("div",{className:"home-support-sidebar-content",children:[o.jsx("p",{children:"We are currently a zero-revenue group doing this for the good of the streaming community. If you’d like to supp
1490ort us, please"}),o.jsx("a",{href:"https://ko-fi.com/M4M2NY4OW",target:"_blank",rel:"noreferrer",children:o.jsx("img",{className:"home-kofi-button",src:"https://storage.ko-fi.com/cdn/kofi4.png?v=3",alt:"Buy Me a Coffee at ko-fi.com"})}),o.jsx("p",{children:"It means the world and helps us more than you know!"})]})}),o.jsx($X,{svgComponent:o.jsx(VQ,{}),channels:l,emptyString:"Keep an eye out! We will have featured channels soon!"}),o.jsx(gm,{title:"Special Events!",svgComponent:o.jsx(BQ,{}),emptyString:"Special Events will be listed here! Check back soon!"}),o.jsx(gm,{title:"Advertise Here!",emptyString:o.jsxs(o.Fragment,{children:["Your ad here! Contact:"," ",o.jsx("a",{className:"home-sidebar-email-link",href:"mailto:[email protected]?subject=Advertisement%20info%20please!",children:"[email protected]"})," ","for more information!"]})})]}),o.jsx("button",{className:`side-bar-toggle side-bar-open-right ${j?"side-bar-toggle-hidden":""}`,type:"button",onClick:se,"aria-label":"Open right sidebar",children:o.jsx(T1,{})})]}),Ee=()=>n.mobileView?o.jsxs("header",{className:"home-mobile-header",children:[o.jsxs($_.slide,{children:[o.jsx(Pt,{to:"/",reloadDocument:!0,className:"home-mobile-menu-logo-link",children:o.jsx(mm,{className:"logo home-brand-logo",title:"LOTL LOGO",alt:"Lotl Logo"})}),me()]}),o.jsxs(Pt,{to:"/",reloadDocument:!0,className:"home-mobile-brand",children:[o.jsx(mm,{className:"logo home-brand-logo",title:"LOTL LOGO",alt:"Lotl Logo"}),o.jsx("h3",{className:"shinyText home-mobile-brand-title",children:"Strim.FUN"})]})]}):o.jsxs("header",{className:"App-header home-site-header",children:[o.jsxs(Pt,{to:"/",reloadDocument:!0,className:"home-brand-link",children:[o.jsx(mm,{className:"logo home-brand-logo",title:"LOTL LOGO",alt:"Lotl Logo"}),o.jsx("h3",{className:"shinyText home-brand-title",children:"Strim.FUN"})]}),o.jsx("div",{className:"home-header-search",children:o.jsx(FQ,{className:"searchBar",placeholder:"Search"})}),o.jsxs("nav",{className:"home-header-actions","aria-label":"Header actions",children:[o.jsx("div",{className:"header-button-holder",children:o.jsxs(bt,{id:"settings-dropdown",children:[o.jsx(bt.Toggle,{className:"dropdownHolder",children:o.jsx(GQ,{className:"settingsWheel",title:"Settings",alt:"Settings"})}),o.jsxs(bt.Menu,{className:"dropdownMenu header-dropdown-menu",align:"end",popperConfig:{strategy:"fixed"},children:[o.jsx(bt.Item,{eventKey:20,href:"/settings",children:"Site Settings"}),o.jsx(bt.Item,{eventKey:21,href:"/info/language",children:"Language"}),o.jsx(bt.Item,{eventKey:22,href:"/info/about",children:"About Us"}),o.jsx(bt.Item,{eventKey:23,href:"/info/help",children:"Help & Information"}),o.jsx(bt.Item,{eventKey:2,href:"/info/tos",children:"Terms of Service"}),o.jsx(bt.Item,{eventKey:24,href:"/info/faq",children:"FAQs"})]})]})}),ge(),Ae()]})]}),Ce=()=>{var le;if((le=t==null?void 0:t.streamingInfo)!=null&&le.ownedChannelName){const pe=t.streamingInfo.ownedChannelName;return n.mobileView?o.jsxs(o.Fragment,{children:[a({to:`/${pe}`,label:`View Channel ${pe}`}),a({to:"/info/setup",label:"Setup Instructions"}),a({to:"/channel-settings",label:"Channel Settings"}),a({to:`/${pe}/vods`,label:"Channel Vods"}),a({to:"https://dashboard.strim.fun/",label:"Stream Dashboard"})]}):o.jsxs(o.Fragment,{children:[o.jsxs(bt.Item,{eventKey:101,href:`/${pe}`,children:["View Channel ",pe]}),o.jsx(bt.Item,{eventKey:102,href:"/info/setup",children:"Setup Instructions"}),o.jsx(bt.Item,{eventKey:103,href:"/channel-settings",children:"Channel Settings"}),o.jsx(bt.Item,{eventKey:105,href:`/${pe}/vods`,children:"Channel Vods"}),o.jsx(bt.Item,{eventKey:104,href:"https://dashboard.strim.fun/",children:"Stream Dashboard"})]})}return n.mobileView?a({to:"/createChannel",label:"Create Channel"}):o.jsx(bt.Item,{eventKey:101,href:"/createChannel",children:"Create Channel"})},Ae=()=>{if(r)return o.jsxs("div",{className:"header-button-holder",children:[Q(),o.jsxs(bt,{id:"profile-dropdown",children:[o.jsx(bt.Toggle,{className:"dropdownHolder",children:n.userPfp}),o.jsxs(bt.Menu,{className:"dropdownMenu header-dropdown-menu",align:"end",popperConfig:{strategy:"fixed"},children:[o.jsxs(bt.Header,{children:["User Profile for ",va()]}),o.jsx(bt.Item,{eventKey:3,href:"/user/"+va(),children:"Visit Public Profile"}),o.jsx(bt.Item,{eventKey:10,href:"/friends",children:"Friends"}),o.jsx(bt.Item,{eventKey:13,href:"/invite",children:"Invite your Friends!"}),o.jsx(bt.Item,{eventKey:12,href:"/subscriptions",children:"Subscriptions"}),o.jsx(bt.Item,{eventKey:1,title:"Navigate to user profile and settings page",href:"/profile",children:"Profile & Settings"}),o.jsx(bt.Item,{eventKey:2,title:"Terms of Service",href:"/info/tos",children:"Terms of Service"}),o.jsx(bt.Item,{eventKey:777,title:"Support",href:"/supporters",children:"Supporters"}),o.jsx(bt.Divider,{}),o.jsx(bt.Header,{children:"Channel Profile"}),Ce(),o.jsx(bt.Divider,{}),o.jsx(bt.Item,{eventKey:999,onClick:()=>n.logOut(),children:"Log Out"})]})]})]})},me=()=>r?o.jsxs("div",{className:"home-mobile-menu-content",children:[o.jsxs("section",{className:"home-mobile-menu-section",children:[o.jsx("h3",{className:"menu-item home-mobile-menu-heading",children:"Categories"}),a({to:"/categories",label:"All Categories"})]}),o.jsxs("section",{className:"home-mobile-menu-section",children:[o.jsxs("h3",{className:"menu-item home-mobile-menu-heading",children:["User Profile for ",va()]}),i.map(a)]}),o.jsxs("section",{className:"home-mobile-menu-section",children:[o.jsx("h3",{className:"menu-item home-mobile-menu-heading",children:"Channel Profile"}),Ce()]}),o.jsxs("section",{className:"home-mobile-menu-section",children:[o.jsx("h3",{className:"menu-item home-mobile-menu-heading",children:"Information"}),s.map(a)]}),o.jsx("section",{className:"home-mobile-menu-section",children:o.jsx(Pt,{className:"menu-item home-mobile-menu-link",onClick:()=>n.logOut(),children:"Log Out"})})]}):o.jsxs("div",{className:"home-mobile-menu-content",children:[o.jsxs("section",{className:"home-mobile-menu-section",children:[a({to:"/login",label:"Log In"}),a({to:"/signup",label:"Sign Up"})]}),o.jsxs("section",{className:"home-mobile-menu-section",children:[o.jsx("h3",{className:"menu-item home-mobile-menu-heading",children:"Information"}),s.map(a)]})]}),ve=()=>{var Ie,Ne;const le=((Ie=t==null?void 0:t.notifications)==null?void 0:Ie.length)??0,pe=((Ne=t==null?void 0:t.messages)==null?void 0:Ne.unreadCount)??0;return le+pe},Q=()=>
1490{if(!r)return null;const le=ve();return o.jsxs(Pt,{to:"/messages",className:"home-notification-link","aria-label":`Notifications ${le>0?`(${le})`:""}`,children:[o.jsx(HQ,{className:"notification-icon",title:"Notifications",alt:"notifications"}),le>0&&o.jsx("div",{className:"notification-count-holder",children:o.jsx("p",{className:"notification-number-text",children:le})})]})},ge=()=>$?_n:!r&&!n.mobileView?o.jsxs("div",{className:"header-button-holder home-auth-actions",children:[o.jsx(zt,{onClick:()=>e("/login"),children:"Log In"}),o.jsx(zt,{onClick:()=>e("/signup"),children:"Sign Up"})]}):null;return $?_n:o.jsxs(_A,{children:[o.jsxs(Rt,{element:o.jsxs("div",{className:"home-shell",children:[Ee(),o.jsxs("div",{className:"home-wrapper",children:[G(),o.jsxs("main",{className:"home-body",children:[o.jsx(uee,{tabList:y,isLoading:W}),o.jsx(O3,{})]}),ee()]}),o.jsx(sx,{}),o.jsx(qQ,{})]}),children:[o.jsx(Rt,{exact:!0,path:"/",element:o.jsx(cee,{userData:t,videoRoulette:E,celebratedStreamers:w,trendingClips:I,liveChannels:x,mobileView:n.mobileView,isLoadingVideos:oe,isLoadingLiveChannels:Z,isLoadingTabs:W})}),o.jsx(Rt,{exact:!0,path:"/signup",element:o.jsx(kee,{})}),o.jsx(Rt,{exact:!0,path:"/createChannel",element:o.jsx(_X,{...n})}),o.jsx(Rt,{exact:!0,path:"/login",element:o.jsx(Lee,{loggedIn:n.loggedIn,props:n})}),o.jsx(Rt,{exact:!0,path:"/friends",element:o.jsx(iQ,{})}),o.jsx(Rt,{exact:!0,path:"/messages",element:o.jsx(aQ,{loggedIn:n.loggedIn,userData:t,logOut:n.logOut,removeNotification:le=>n.removeNotification(le)})}),o.jsx(Rt,{exact:!0,path:"/category/allcategories",element:o.jsx(I1,{})}),o.jsx(Rt,{exact:!0,path:"/categories",element:o.jsx(I1,{})}),o.jsx(Rt,{exact:!0,path:"/category/:categoryUrl",element:o.jsx(fv,{})}),o.jsx(Rt,{exact:!0,path:"/info",element:o.jsx(hee,{})}),o.jsx(Rt,{exact:!0,path:"/about",element:o.jsx(Sv,{})}),o.jsx(Rt,{exact:!0,path:"/info/about",element:o.jsx(Sv,{})}),o.jsx(Rt,{exact:!0,path:"/faq",element:o.jsx(Ev,{})}),o.jsx(Rt,{exact:!0,path:"/info/faq",element:o.jsx(Ev,{})}),o.jsx(Rt,{exact:!0,path:"/info/help",element:o.jsx(fee,{})}),o.jsx(Rt,{exact:!0,path:"/info/layouts",element:o.jsx(pee,{})}),o.jsx(Rt,{exact:!0,path:"/info/language",element:o.jsx(mee,{})}),o.jsx(Rt,{exact:!0,path:"/info/accessibility",element:o.jsx(dee,{})}),o.jsx(Rt,{exact:!0,path:"/info/watchparties",element:o.jsx(Ree,{})}),o.jsx(Rt,{exact:!0,path:"/info/monetization",element:o.jsx(xee,{})}),o.jsx(Rt,{exact:!0,path:"/info/setup",element:o.jsx(wee,{})}),o.jsx(Rt,{exact:!0,path:"/info/tos",element:o.jsx(Iee,{})}),o.jsx(Rt,{exact:!0,path:"/info/privacy",element:o.jsx(Cee,{})}),o.jsx(Rt,{path:"/user/:userName",element:o.jsx(MQ,{friends:n.loggedIn?t==null?void 0:t.friends:[],mobileView:n.mobileView})}),o.jsx(Rt,{path:"/invite",element:o.jsx(eT,{})}),o.jsx(Rt,{path:"/profile",element:o.jsx(DQ,{userData:t,loggedIn:n.loggedIn,logOut:n.logOut})}),o.jsx(Rt,{path:"/settings",element:o.jsx(oQ,{userData:t,loggedIn:n.loggedIn,logOut:n.logOut})}),o.jsx(Rt,{path:"/subscriptions",element:o.jsx(rT,{userData:t,loggedIn:n.loggedIn,logOut:n.logOut})}),o.jsx(Rt,{path:"/channel-settings",element:o.jsx(PX,{userData:t,loggedIn:n.loggedIn,logOut:n.logOut,channelName:n.loggedIn?t==null?void 0:t.streamingInfo.ownedChannelName:null})}),o.jsx(Rt,{path:"/watchParties",element:o.jsx(rQ,{})}),o.jsx(Rt,{path:"/supporters",element:o.jsx(Tee,{})}),o.jsx(Rt,{path:"/verifyEmail",element:o.jsx(Pee,{})}),o.jsx(Rt,{exact:!0,path:":channelName",element:o.jsx(aH,{loggedIn:n.loggedIn,userData:t,logOut:n.logOut,mobileView:n.mobileView})}),o.jsx(Rt,{exact:!0,path:":channelName/stream",element:o.jsx(nQ,{loggedIn:n.loggedIn,userData:t,logOut:n.logOut,isMobileView:n.mobileView})}),o.jsx(Rt,{exact:!0,path:":channelName/vods",element:o.jsx($Q,{loggedIn:n.loggedIn,userData:t,logOut:n.logOut})})]}),o.jsx(Rt,{path:"/:channelName/popout",element:o.jsx(O3,{style:{height:"98vh",width:"inherit"}}),children:o.jsx(Rt,{path:":component",element:o.jsx(Nee,{userData:t,loggedIn:n.loggedIn})})})]})}function Oee(){const n=bn()!==null&&Lo(),[e,t]=S.useState(n),[r,s]=S.useState(!1),[i,a]=S.useState(n),[l,u]=S.useState(null),[d,f]=S.useState(o.jsx(o.Fragment,{})),[m,p]=S.useState(typeof window<"u"?window.innerWidth<1024:!1);S.useEffect(()=>
1490{v()},[]),S.useEffect(()=>{e&&!l&&bn()!=null?(a(!0),lb().then(E=>{u(E.data),f(cb("png",E.data.profile_picture,"profile picture","profile picture",{width:"auto",height:"4vh"}))}).catch(E=>{var T,w,R;((T=E.response)==null?void 0:T.status)>=400||((w=E.response)==null?void 0:w.status)===401||((R=E.response)==null?void 0:R.status)===403?(Et("Please Log In Again"),x()):console.log(E)}).finally(()=>{a(!1)})):e||a(!1),p(window.innerWidth<1024)},[l,e]),window.addEventListener("resize",()=>{p(window.innerWidth<1024)});const y=E=>{if(!l||!l.notifications)return;let T=[];l.notifications.forEach(w=>{w.requestingUser!==E&&T.push(w)}),u({...l,notifications:[{...T}]})},v=()=>{bn()===null||!Lo()?(t(!1),a(!1)):t(!0)},x=()=>{document.cookie="userId=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.strim.fun;",document.cookie="token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.strim.fun;",document.cookie="userId=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",document.cookie="token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",sb(null),u(null),t(!1),window.location.replace("/")},b=(E,T,w,R,I)=>r?o.jsx($8,{channelName:E,cards:l.cards,show:r,setShow:L=>s(L),transactionInfo:{item:T,quantity:w,costPerUnit:R,totalCost:I}}):o.jsx(o.Fragment,{});return i||e&&!l?_n:o.jsxs("div",{className:"App",children:[o.jsx(sL,{children:o.jsx(_ee,{loggedIn:e,userData:l,userPfp:d,removeNotification:E=>y(E),mobileView:m,logOut:()=>x()})}),o.jsx(sx,{limit:3}),b()]})}const Dee=window.location.host.includes(":3000")?window.location.host.substring(0,window.location.host.indexOf(":")):window.location.host?window.location.host:"localhost",jee="https://users.strim.fun",Mee="https://videos.strim.fun",Fee="https://chat.strim.fun",$ee="https://content.strim.fun",Bee="https://payment.strim.fun",Uee="https://stream.strim.fun",Vee="wss://chat.strim.fun",zee="wss://content.strim.fun",Gee="sq0idp-cXJHWY43ElVoouHm3LTeBA",Hee="TDWRSDP29CHG7",Ft=jee,Oo=Mee,kt=$ee,K5=Fee,es=Bee,AT=Gee,LT=Hee,z8=Uee,wv=Vee,Wee=zee;Pe.defaults.withCredentials=!0;console.log("new version OCT 01, 2026");const Tv=document.getElementById("root");Tv&&NR.createRoot(Tv).render(o.jsx(Ke.StrictMode,{children:o.jsx(Oee,{})}))});export default Kee();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.