hamrahi-player-library 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { aE as e, aG as i, aF as y } from "./index-DtMbWZxg.js";
1
+ import { aE as e, aG as i, aF as y } from "./index-ZWJuIKJB.js";
2
2
  export {
3
3
  e as FeatureExcept,
4
4
  i as MiniPlayerLibrary,
@@ -36,7 +36,7 @@ Take a look at the reducer(s) handling this action type: ${g.type}.
36
36
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(r=>n.set(r)),n}static accessor(e){const n=(this[vo]=this[vo]={accessors:{}}).accessors,r=this.prototype;function i(a){const o=hs(a);n[o]||(Vf(r,a),n[o]=!0)}return _.isArray(e)?e.forEach(i):i(e),this}}Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_.reduceDescriptors(Fe.prototype,({value:s},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>s,set(n){this[t]=n}}}),_.freezeMethods(Fe);function Lr(s,e){const t=this||fs,n=e||t,r=Fe.from(n.headers);let i=n.data;return _.forEach(s,function(o){i=o.call(t,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function bo(s){return!!(s&&s.__CANCEL__)}function Wt(s,e,t){ee.call(this,s??"canceled",ee.ERR_CANCELED,e,t),this.name="CanceledError"}_.inherits(Wt,ee,{__CANCEL__:!0});function Co(s,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?s(t):e(new ee("Request failed with status code "+t.status,[ee.ERR_BAD_REQUEST,ee.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Gf(s){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(s);return e&&e[1]||""}function Hf(s,e){s=s||10;const t=new Array(s),n=new Array(s);let r=0,i=0,a;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=n[i];a||(a=c),t[r]=l,n[r]=c;let d=i,f=0;for(;d!==r;)f+=t[d++],d=d%s;if(r=(r+1)%s,r===i&&(i=(i+1)%s),c-a<e)return;const g=u&&c-u;return g?Math.round(f*1e3/g):void 0}}function Kf(s,e){let t=0,n=1e3/e,r,i;const a=(c,u=Date.now())=>{t=u,r=null,i&&(clearTimeout(i),i=null),s.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-t;d>=n?a(c,u):(r=c,i||(i=setTimeout(()=>{i=null,a(r)},n-d)))},()=>r&&a(r)]}const nn=(s,e,t=3)=>{let n=0;const r=Hf(50,250);return Kf(i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,l=a-n,c=r(l),u=a<=o;n=a;const d={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o&&u?(o-a)/c:void 0,event:i,lengthComputable:o!=null,[e?"download":"upload"]:!0};s(d)},t)},wo=(s,e)=>{const t=s!=null;return[n=>e[0]({lengthComputable:t,total:s,loaded:n}),e[1]]},Lo=s=>(...e)=>_.asap(()=>s(...e)),Wf=ke.hasStandardBrowserEnv?((s,e)=>t=>(t=new URL(t,ke.origin),s.protocol===t.protocol&&s.host===t.host&&(e||s.port===t.port)))(new URL(ke.origin),ke.navigator&&/(msie|trident)/i.test(ke.navigator.userAgent)):()=>!0,jf=ke.hasStandardBrowserEnv?{write(s,e,t,n,r,i){const a=[s+"="+encodeURIComponent(e)];_.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),_.isString(n)&&a.push("path="+n),_.isString(r)&&a.push("domain="+r),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(s){const e=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(s){this.write(s,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zf(s){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s)}function qf(s,e){return e?s.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):s}function Ao(s,e){return s&&!zf(e)?qf(s,e):e}const Do=s=>s instanceof Fe?{...s}:s;function Dt(s,e){e=e||{};const t={};function n(c,u,d,f){return _.isPlainObject(c)&&_.isPlainObject(u)?_.merge.call({caseless:f},c,u):_.isPlainObject(u)?_.merge({},u):_.isArray(u)?u.slice():u}function r(c,u,d,f){if(_.isUndefined(u)){if(!_.isUndefined(c))return n(void 0,c,d,f)}else return n(c,u,d,f)}function i(c,u){if(!_.isUndefined(u))return n(void 0,u)}function a(c,u){if(_.isUndefined(u)){if(!_.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function o(c,u,d){if(d in e)return n(c,u);if(d in s)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage: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,responseEncoding:a,validateStatus:o,headers:(c,u,d)=>r(Do(c),Do(u),d,!0)};return _.forEach(Object.keys(Object.assign({},s,e)),function(u){const d=l[u]||r,f=d(s[u],e[u],u);_.isUndefined(f)&&d!==o||(t[u]=f)}),t}const Io=s=>{const e=Dt({},s);let{data:t,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:i,headers:a,auth:o}=e;e.headers=a=Fe.from(a),e.url=Eo(Ao(e.baseURL,e.url),s.params,s.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(_.isFormData(t)){if(ke.hasStandardBrowserEnv||ke.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(ke.hasStandardBrowserEnv&&(n&&_.isFunction(n)&&(n=n(e)),n||n!==!1&&Wf(e.url))){const c=r&&i&&jf.read(i);c&&a.set(r,c)}return e},Yf=typeof XMLHttpRequest<"u"&&function(s){return new Promise(function(t,n){const r=Io(s);let i=r.data;const a=Fe.from(r.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:c}=r,u,d,f,g,h;function m(){g&&g(),h&&h(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(r.method.toUpperCase(),r.url,!0),p.timeout=r.timeout;function E(){if(!p)return;const v=Fe.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:v,config:s,request:p};Co(function(A){t(A),m()},function(A){n(A),m()},b),p=null}"onloadend"in p?p.onloadend=E:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(E)},p.onabort=function(){p&&(n(new ee("Request aborted",ee.ECONNABORTED,s,p)),p=null)},p.onerror=function(){n(new ee("Network Error",ee.ERR_NETWORK,s,p)),p=null},p.ontimeout=function(){let w=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const b=r.transitional||To;r.timeoutErrorMessage&&(w=r.timeoutErrorMessage),n(new ee(w,b.clarifyTimeoutError?ee.ETIMEDOUT:ee.ECONNABORTED,s,p)),p=null},i===void 0&&a.setContentType(null),"setRequestHeader"in p&&_.forEach(a.toJSON(),function(w,b){p.setRequestHeader(b,w)}),_.isUndefined(r.withCredentials)||(p.withCredentials=!!r.withCredentials),o&&o!=="json"&&(p.responseType=r.responseType),c&&([f,h]=nn(c,!0),p.addEventListener("progress",f)),l&&p.upload&&([d,g]=nn(l),p.upload.addEventListener("progress",d),p.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(u=v=>{p&&(n(!v||v.type?new Wt(null,s,p):v),p.abort(),p=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const x=Gf(r.url);if(x&&ke.protocols.indexOf(x)===-1){n(new ee("Unsupported protocol "+x+":",ee.ERR_BAD_REQUEST,s));return}p.send(i||null)})},Xf=(s,e)=>{const{length:t}=s=s?s.filter(Boolean):[];if(e||t){let n=new AbortController,r;const i=function(c){if(!r){r=!0,o();const u=c instanceof Error?c:this.reason;n.abort(u instanceof ee?u:new Wt(u instanceof Error?u.message:u))}};let a=e&&setTimeout(()=>{a=null,i(new ee(`timeout ${e} of ms exceeded`,ee.ETIMEDOUT))},e);const o=()=>{s&&(a&&clearTimeout(a),a=null,s.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),s=null)};s.forEach(c=>c.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>_.asap(o),l}},Zf=function*(s,e){let t=s.byteLength;if(t<e){yield s;return}let n=0,r;for(;n<t;)r=n+e,yield s.slice(n,r),n=r},Qf=async function*(s,e){for await(const t of Jf(s))yield*Zf(t,e)},Jf=async function*(s){if(s[Symbol.asyncIterator]){yield*s;return}const e=s.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},Ro=(s,e,t,n)=>{const r=Qf(s,e);let i=0,a,o=l=>{a||(a=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await r.next();if(c){o(),l.close();return}let d=u.byteLength;if(t){let f=i+=d;t(f)}l.enqueue(new Uint8Array(u))}catch(c){throw o(c),c}},cancel(l){return o(l),r.return()}},{highWaterMark:2})},rn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ko=rn&&typeof ReadableStream=="function",eh=rn&&(typeof TextEncoder=="function"?(s=>e=>s.encode(e))(new TextEncoder):async s=>new Uint8Array(await new Response(s).arrayBuffer())),Po=(s,...e)=>{try{return!!s(...e)}catch{return!1}},th=ko&&Po(()=>{let s=!1;const e=new Request(ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return s=!0,"half"}}).headers.has("Content-Type");return s&&!e}),_o=64*1024,Ar=ko&&Po(()=>_.isReadableStream(new Response("").body)),an={stream:Ar&&(s=>s.body)};rn&&(s=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!an[e]&&(an[e]=_.isFunction(s[e])?t=>t[e]():(t,n)=>{throw new ee(`Response type '${e}' is not supported`,ee.ERR_NOT_SUPPORT,n)})})})(new Response);const sh=async s=>{if(s==null)return 0;if(_.isBlob(s))return s.size;if(_.isSpecCompliantForm(s))return(await new Request(ke.origin,{method:"POST",body:s}).arrayBuffer()).byteLength;if(_.isArrayBufferView(s)||_.isArrayBuffer(s))return s.byteLength;if(_.isURLSearchParams(s)&&(s=s+""),_.isString(s))return(await eh(s)).byteLength},nh=async(s,e)=>{const t=_.toFiniteNumber(s.getContentLength());return t??sh(e)},Dr={http:Cf,xhr:Yf,fetch:rn&&(async s=>{let{url:e,method:t,data:n,signal:r,cancelToken:i,timeout:a,onDownloadProgress:o,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Io(s);c=c?(c+"").toLowerCase():"text";let g=Xf([r,i&&i.toAbortSignal()],a),h;const m=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let p;try{if(l&&th&&t!=="get"&&t!=="head"&&(p=await nh(u,n))!==0){let b=new Request(e,{method:"POST",body:n,duplex:"half"}),I;if(_.isFormData(n)&&(I=b.headers.get("content-type"))&&u.setContentType(I),b.body){const[A,F]=wo(p,nn(Lo(l)));n=Ro(b.body,_o,A,F)}}_.isString(d)||(d=d?"include":"omit");const E="credentials"in Request.prototype;h=new Request(e,{...f,signal:g,method:t.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:E?d:void 0});let x=await fetch(h);const v=Ar&&(c==="stream"||c==="response");if(Ar&&(o||v&&m)){const b={};["status","statusText","headers"].forEach(U=>{b[U]=x[U]});const I=_.toFiniteNumber(x.headers.get("content-length")),[A,F]=o&&wo(I,nn(Lo(o),!0))||[];x=new Response(Ro(x.body,_o,A,()=>{F&&F(),m&&m()}),b)}c=c||"text";let w=await an[_.findKey(an,c)||"text"](x,s);return!v&&m&&m(),await new Promise((b,I)=>{Co(b,I,{data:w,headers:Fe.from(x.headers),status:x.status,statusText:x.statusText,config:s,request:h})})}catch(E){throw m&&m(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new ee("Network Error",ee.ERR_NETWORK,s,h),{cause:E.cause||E}):ee.from(E,E&&E.code,s,h)}})};_.forEach(Dr,(s,e)=>{if(s){try{Object.defineProperty(s,"name",{value:e})}catch{}Object.defineProperty(s,"adapterName",{value:e})}});const Oo=s=>`- ${s}`,rh=s=>_.isFunction(s)||s===null||s===!1,Fo={getAdapter:s=>{s=_.isArray(s)?s:[s];const{length:e}=s;let t,n;const r={};for(let i=0;i<e;i++){t=s[i];let a;if(n=t,!rh(t)&&(n=Dr[(a=String(t)).toLowerCase()],n===void 0))throw new ee(`Unknown adapter '${a}'`);if(n)break;r[a||"#"+i]=n}if(!n){const i=Object.entries(r).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?i.length>1?`since :
37
37
  `+i.map(Oo).join(`
38
38
  `):" "+Oo(i[0]):"as no adapter specified";throw new ee("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Dr};function Ir(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new Wt(null,s)}function Mo(s){return Ir(s),s.headers=Fe.from(s.headers),s.data=Lr.call(s,s.transformRequest),["post","put","patch"].indexOf(s.method)!==-1&&s.headers.setContentType("application/x-www-form-urlencoded",!1),Fo.getAdapter(s.adapter||fs.adapter)(s).then(function(n){return Ir(s),n.data=Lr.call(s,s.transformResponse,n),n.headers=Fe.from(n.headers),n},function(n){return bo(n)||(Ir(s),n&&n.response&&(n.response.data=Lr.call(s,s.transformResponse,n.response),n.response.headers=Fe.from(n.response.headers))),Promise.reject(n)})}const No="1.7.9",on={};["object","boolean","number","function","string","symbol"].forEach((s,e)=>{on[s]=function(n){return typeof n===s||"a"+(e<1?"n ":" ")+s}});const Bo={};on.transitional=function(e,t,n){function r(i,a){return"[Axios v"+No+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,o)=>{if(e===!1)throw new ee(r(a," has been removed"+(t?" in "+t:"")),ee.ERR_DEPRECATED);return t&&!Bo[a]&&(Bo[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,a,o):!0}},on.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function ih(s,e,t){if(typeof s!="object")throw new ee("options must be an object",ee.ERR_BAD_OPTION_VALUE);const n=Object.keys(s);let r=n.length;for(;r-- >0;){const i=n[r],a=e[i];if(a){const o=s[i],l=o===void 0||a(o,i,s);if(l!==!0)throw new ee("option "+i+" must be "+l,ee.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new ee("Unknown option "+i,ee.ERR_BAD_OPTION)}}const ln={assertOptions:ih,validators:on},Qe=ln.validators;class It{constructor(e){this.defaults=e,this.interceptors={request:new So,response:new So}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
39
- `+i):n.stack=i}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Dt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&ln.assertOptions(n,{silentJSONParsing:Qe.transitional(Qe.boolean),forcedJSONParsing:Qe.transitional(Qe.boolean),clarifyTimeoutError:Qe.transitional(Qe.boolean)},!1),r!=null&&(_.isFunction(r)?t.paramsSerializer={serialize:r}:ln.assertOptions(r,{encode:Qe.function,serialize:Qe.function},!0)),ln.assertOptions(t,{baseUrl:Qe.spelling("baseURL"),withXsrfToken:Qe.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&_.merge(i.common,i[t.method]);i&&_.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),t.headers=Fe.concat(a,i);const o=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(t)===!1||(l=l&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const h=[Mo.bind(this),void 0];for(h.unshift.apply(h,o),h.push.apply(h,c),f=h.length,u=Promise.resolve(t);d<f;)u=u.then(h[d++],h[d++]);return u}f=o.length;let g=t;for(d=0;d<f;){const h=o[d++],m=o[d++];try{g=h(g)}catch(p){m.call(this,p);break}}try{u=Mo.call(this,g)}catch(h){return Promise.reject(h)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=Dt(this.defaults,e);const t=Ao(e.baseURL,e.url);return Eo(t,e.params,e.paramsSerializer)}}_.forEach(["delete","get","head","options"],function(e){It.prototype[e]=function(t,n){return this.request(Dt(n||{},{method:e,url:t,data:(n||{}).data}))}}),_.forEach(["post","put","patch"],function(e){function t(n){return function(i,a,o){return this.request(Dt(o||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}It.prototype[e]=t(),It.prototype[e+"Form"]=t(!0)});class Rr{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 n=this;this.promise.then(r=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](r);n._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(o=>{n.subscribe(o),i=o}).then(r);return a.cancel=function(){n.unsubscribe(i)},a},e(function(i,a,o){n.reason||(n.reason=new Wt(i,a,o),t(n.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=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Rr(function(r){e=r}),cancel:e}}}function ah(s){return function(t){return s.apply(null,t)}}function oh(s){return _.isObject(s)&&s.isAxiosError===!0}const kr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent: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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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};Object.entries(kr).forEach(([s,e])=>{kr[e]=s});function Uo(s){const e=new It(s),t=to(It.prototype.request,e);return _.extend(t,It.prototype,e,{allOwnKeys:!0}),_.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Uo(Dt(s,r))},t}const ge=Uo(fs);ge.Axios=It,ge.CanceledError=Wt,ge.CancelToken=Rr,ge.isCancel=bo,ge.VERSION=No,ge.toFormData=tn,ge.AxiosError=ee,ge.Cancel=ge.CanceledError,ge.all=function(e){return Promise.all(e)},ge.spread=ah,ge.isAxiosError=oh,ge.mergeConfig=Dt,ge.AxiosHeaders=Fe,ge.formToJSON=s=>xo(_.isHTMLForm(s)?new FormData(s):s),ge.getAdapter=Fo.getAdapter,ge.HttpStatusCode=kr,ge.default=ge;const Pr={baseUrl:"https://hamrahi.cloud",fluentdUrl:"https://hamrahi.cloud"},$o=()=>Pr.baseUrl+"/live/api",Vo=()=>Pr.fluentdUrl,lh=()=>Pr.baseUrl+"/emoji",_r=()=>({vod:{getVodUrl:`${$o()}/v1/live/details/vod/`,getMarkerUrl:s=>`${$o()}/v1/live/list-event/vod/${s}/`},videoTimelineLog:`${Vo()}/video-timeline.log`,logs:`${Vo()}/drive-endpoint.log`}),oe=s=>{const{details:e,params:t}=R.getState().videoData;let n={...s,timestamp:Date.now(),clientUUID:lt(),uuid:lt(),link:window.location.href,user_id:e.user_id,live_id:null,format:void 0,content_type:e.content_type,content_id:e.content_id,daaniHashCode:t.daaniHashCode};un({url:_r().logs,method:"post",data:n})},ch=s=>{const{params:e,details:t}=R.getState().videoData,{settings:n}=R.getState().user;return{category:"speedChange",previousSelectedSpeed:n.speed,selectedSpeed:s,id:Number(e.id),type:e.type,src:C(T.hasStreamLink)?t.stream_link:e.id,provider:e.provider}},uh=s=>{const{params:e,details:t}=R.getState().videoData,{qualityLevels:n,manualQuality:r,autoQuality:i}=R.getState().controller;return{category:"qualityChangeRequest",currentPlayingQuality:`${n[C(T.isAutoQuality)?i??r:r]}P`,previousSelectedQuality:C(T.isAutoQuality)?"auto":`${n[r]}P`,selectedQuality:s,id:Number(e.id),type:e.type,src:C(T.hasStreamLink)?t.stream_link:e.id,provider:e.provider}},dh=s=>{const{params:e,details:t}=R.getState().videoData,{qualityLevels:n,autoQuality:r}=R.getState().controller,{settings:i}=R.getState().user;return{category:"catchUpLoading",previousVideoTime:Number(sessionStorage.getItem("previousVideoTime")),currentVideoTime:N().currentTime,duration:s,quality:`${C(T.isAutoQuality)?n[r]:n[i.quality]}P`,isAutoQuality:C(T.isAutoQuality),id:Number(e.id),type:e.type,src:C(T.hasStreamLink)?t.stream_link:e.id,provider:e.provider}},fh=s=>{const{params:e,details:t}=R.getState().videoData;return{category:s==="backward"?"backward":"forward",id:Number(e.id),type:e.type,src:t.stream_link?t.stream_link:e.id,provider:e.provider}},Or=s=>{const{params:e,details:t}=R.getState().videoData;return{category:s,id:Number(e.id),type:e.type,src:C(T.hasStreamLink)?t.stream_link:e.id}},hh=(s,e)=>{const{params:t,details:n}=R.getState().videoData;return{category:"brightnessChange",source:s,target:e,id:Number(t.id),type:t.type,src:C(T.hasStreamLink)?n.stream_link:t.id}},cn=(s,e)=>{const{params:t,details:n}=R.getState().videoData;return{category:"volumeChange",source:s,target:e,id:Number(t.id),type:t.type,src:C(T.hasStreamLink)?n.stream_link:t.id}},ph=s=>{const{params:e,details:t}=R.getState().videoData;return{category:s,id:Number(e.id),type:e.type,src:C(T.hasStreamLink)?t.stream_link:e.id}},gh=(s,e,t,n)=>({category:"player-error",type:s,message:e,statusCode:t,url:n}),mh=(s,e)=>{const{params:t,details:n}=R.getState().videoData,{duration:r}=R.getState().controller;return{category:"video-timeline",video_id:+t.id,video_type:t.type,start:s,end:e,watchedDuration:e-s,video_duration:Math.floor(r),clientUUID:lt(),user_id:n.user_id,content_type:n.content_type,content_id:n.content_id}},Go=(s,e,t)=>{const{params:n,details:r}=R.getState().videoData;return{category:"autoQualityChange",sourceQuality:s,targetQuality:e,diffQuality:t,id:Number(n.id),type:n.type,src:C(T.hasStreamLink)?r.stream_link:n.id,provider:n.provider}},yh=(s,e)=>{const{params:t,details:n}=R.getState().videoData;return{category:"pingpong",id:Number(t.id),type:t.type,src:C(T.hasStreamLink)?n.stream_link:t.id,PingPongDuration:Number((new Date().getTime()-s).toFixed(2)),PingPongSourceQuality:`${e[0]}P`,PingPongTargetQuality:`${e[1]}P`,provider:t.provider}},Ho=s=>{const{params:e,details:t}=R.getState().videoData;return{category:s?"playVideo":"pauseVideo",id:Number(e.id),type:e.type,src:t.stream_link?t.stream_link:e.id,provider:e.provider}},Ko=(s,e,t,n,r)=>{const{params:i,details:a}=R.getState().videoData,o=Date.now()-r.current+s+e,l=window.performance.memory,c=JSON.parse(JSON.stringify(window.performance.timing));return{category:"initLog",id:Number(i.id),type:i.type,origin:new URL(C(T.hasStreamLink)?a.stream_link:i.id).origin,src:C(T.hasStreamLink)?a.stream_link:i.id,loading:s,bannerLoading:!C(T.hasBanner)||t<0?0:t,waiting:e,firstChunkPlaying:n<0?0:n,totalTime:o,provider:i.provider,performance:Qa({memory:l,timing:c},"performance"),userAgent:window.navigator.userAgent}},Eh=(s,e,t,n,r)=>{const{params:i,details:a}=R.getState().videoData,{settings:o}=R.getState().user,l=Date.now()-t.current;return{category:"loading",id:Number(i.id),type:i.type,src:C(T.hasStreamLink)?a.stream_link:i.id,duration:s,quality:`${e}P`,isAutoQuality:C(T.isAutoQuality),previousLoaderDiff:l,counter:n.current,loadingPercentile:Number((s/l).toFixed(2)),videoTime:N().currentTime,videoEntranceTime:r,speed:o.speed,provider:i.provider}},ps=s=>{const{params:e,details:t}=R.getState().videoData;return{category:"subtitle",language:s,id:Number(e.id),type:e.type,src:C(T.hasStreamLink)?t.stream_link:e.id}},Wo=(s,e,t,n,r)=>{const{params:i,details:a}=R.getState().videoData;return{category:"eventMarkerClick",video_id:Number(i.id),markerId:s,markerTime:e,markerTitle:t,markerDescription:n,markerSticker:r,type:i.type,src:C(T.hasStreamLink)?a.stream_link:i.id,provider:i.provider}},ct=s=>{s&&oe(gh(s.type,s.message,s.statusCode,s.url))},un=async({url:s,method:e="GET",data:t,headers:n,retryCount:r=1,maxRetryCount:i=0,errorMessage:a,retryPolicy:o,errorCallback:l,timeoutCount:c})=>{let u={url:s,method:e,headers:{...n,"Content-Type":"application/json"},timeout:c?c*1e3:void 0};t?e==="GET"?u={...u,params:{uuid:R.getState().videoData.params.uuid,provider:R.getState().videoData.params.provider==="unknown"?void 0:R.getState().videoData.params.provider,...t}}:u={...u,data:{uuid:R.getState().videoData.params.uuid,provider:R.getState().videoData.params.provider==="unknown"?void 0:R.getState().videoData.params.provider,...t}}:e==="GET"?u={...u,params:{uuid:R.getState().videoData.params.uuid,provider:R.getState().videoData.params.provider==="unknown"?void 0:R.getState().videoData.params.provider}}:u={...u,data:{uuid:R.getState().videoData.params.uuid,provider:R.getState().videoData.params.provider==="unknown"?void 0:R.getState().videoData.params.provider}};try{return await ge(u)}catch(d){if(ct({type:"API-ERROR",message:d.message?d.message:"",statusCode:d.response&&d.response.status?d.response.status:void 0,url:s}),!(d&&d.response&&d.response.status===401)){l&&l(d.response.status,d.response.message);let f=0,g=0;if(o!==void 0){for(let h=0;h<o.length;h++)if((o[h].codeAbove&&d.response.status>=o[h].codeAbove||o[h].codeBelow&&d.response.status<=o[h].codeBelow)&&(o[h].excludeCodes.length===0||!o[h].excludeCodes.includes(d.response.status))||o[h].includeCodes.length===0||o[h].includeCodes.includes(d.response.status)){g=o[h].count,f=o[h].delay;break}}else g=i,f=r+1;if(r<g)return await D0(f),un({url:s,method:e,data:t,headers:n,retryCount:r+1,newMaxRetryCount:g,errorMessage:a,retryPolicy:o,errorCallback:l});if(d.response)return{data:d.response.data?d.response.data:{detail:"عملیات با خطا مواجه شده است."},status:d.response.status}}}},Fr=s=>{if(s===null||s.target.nodeName!=="INPUT"){const e=R.dispatch;s!==null&&(s.stopPropagation(),s.preventDefault()),N().paused?N().play():N().pause(),e(Ze(!N().paused)),Ge()&&Ge().played&&(Ge().pause(),e(mt(!1)))}},Sh=()=>{const s=R.dispatch,{play:e}=R.getState().controller;s(Ze(e)),setTimeout(()=>{N()&&(e?N().play():N().pause())},0)},Th=s=>{if(s===null||s.target.nodeName!=="INPUT"){const e=R.dispatch;Ge().paused?Ge().play():Ge().pause(),e(mt(!Ge().paused)),N()&&N().played&&(N().pause(),e(Ze(!1)))}},dn=s=>{const e=R.dispatch,{settings:t}=R.getState().user;e(ot({...t,volume:s})),C(T.isIOS)?N().muted=!N().muted:N().volume=s/100},Rt=(s,e=15,t)=>{if(s==="touchBackward"?s="backward":s==="touchForward"&&(s="forward"),t&&t.target.nodeName==="INPUT"||s==="backward"&&N().currentTime<15||s==="forward"&&N().duration-N().currentTime<15)return;oe(fh(s));let n=0;s==="backward"?e===0?n=0:n=N().currentTime-e:s==="forward"&&(e===N().duration?n=e:n=N().currentTime+e),N().currentTime=n},Mr=()=>{const s=R.dispatch,e=document.fullscreenElement;C(T.isIOS)?N().webkitEnterFullScreen?(s(Ze(!1)),N().webkitEnterFullScreen()):(s(js()),oe(Or("fullScreen"))):e?(s(as(!1)),document.exitFullscreen()):(s(js()),document.documentElement.requestFullscreen(),s(as(!0)),oe(Or("fullScreen")))},Nr=()=>{C(T.isTouchScreen)&&!C(T.isIOS)&&(C(T.isLandscape)&&!C(T.isFullScreen)?window.screen.orientation.lock("portrait"):window.screen.orientation.lock("landscape"))},jo=s=>{const e=R.dispatch;e(u0(s==="lock")),oe(ph(s)),s==="unlock"&&localStorage.setItem("unlock-click","true")},gs=(s,e)=>{if(C(T.isSendTimelineLog)){const t=R.dispatch,{videoTimelines:n}=R.getState().videoData;let r=Math.floor(s),i=Math.floor(e);n.length===0?t(Vs([r>=N().duration?i:r])):(n[0]<r&&un({url:_r().videoTimelineLog,method:"post",data:mh(n[0],r)}),i&&i>=N().duration?t(Vs([])):t(Vs([i])))}},zo=()=>{var t;const s=R.dispatch,e=(t=document.getElementById("video-area"))==null?void 0:t.getBoundingClientRect();e.height=e.width*9/16,e&&s(Ba(e))},xh=s=>{!C(T.isTouchScreen)&&s.target.nodeName!=="INPUT"&&Mr()},vh=s=>{const{params:e}=R.getState().videoData;return _r().vod.getVodUrl+(s||e.id)},ms={url:"",maxRetryCount:0,headers:{},retryPolicy:[],errorCallback:void 0},bh=s=>(ms.url=vh(s),ms.maxRetryCount=3,ms.retryPolicy=[{codeAbove:500,codeBelow:null,excludeCodes:[],includeCodes:[409],delay:1,count:3},{codeAbove:null,codeBelow:404,excludeCodes:[403,402,401,400],includeCodes:[],delay:10,count:6}],ms),Ch=s=>(bh(s),ms),qo=async s=>{const e=R.dispatch;try{const t=await un({...Ch(s)});if(_0(t.status)){if(await ge.head("https://"+Ya(t.data.hls_links)+t.data.path),s)return e(C0(t.data));wh(t.data)}else throw new Error(JSON.stringify({status:t.status,message:t.data}))}catch{e(Ua(!0)),e($a(!1))}},wh=s=>{const e=R.dispatch,{params:t}=R.getState().videoData;e(Na({...s,subtitles:C(T.hasSubtitlesInParams)?t.subtitles:s.subtitles,stream_link:!!s.stream_link&&k0("https://"+Ya(s.hls_links)+s.path)})),e(Ua(!0)),e($a(!0))},fn=()=>{const s=R.dispatch,{subtitles:e,selectedSubtitle:t}=R.getState().videoData,n=e.find(r=>r.language==="fa");t?(Object.values(N().textTracks).find(r=>r.mode==="showing").mode="disabled",s(ls(void 0)),oe(ps("empty"))):n?(n.mode="showing",s(ls(n)),oe(ps(n.language))):(N().textTracks[0].mode="showing",s(ls(N().textTracks[0])),oe(ps(N().textTracks[0].language)))},kt=(s,e)=>{const t=P.useRef(e);P.useEffect(()=>{t.current=e},[]),P.useEffect(()=>{const n=r=>{r.code===s&&!["INPUT","TEXTAREA"].includes(r.target.nodeName)&&!r.target.isContentEditable&&t.current(r)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[s])},Lh=()=>{kt("Space",s=>{C(T.isPressKeySpace)&&Fr(s)}),kt("ArrowRight",s=>{C(T.isPressKeyArrowRight)&&Rt("forward",15,s)}),kt("ArrowLeft",s=>{C(T.isPressKeyArrowLeft)&&Rt("backward",15,s)}),kt("KeyI",()=>{C(T.isPressKeyI)&&N().requestPictureInPicture()}),kt("KeyF",()=>{C(T.isPressKeyF)&&Mr()}),kt("KeyM",()=>{if(C(T.isPressKeyM)){const{settings:s}=R.getState().user;dn(s.volume?0:50)}}),kt("KeyC",()=>{C(T.isPressKeyC)&&fn()})},Ah=P.lazy(()=>Promise.resolve().then(()=>Iy)),Dh=P.lazy(()=>Promise.resolve().then(()=>Fy)),Ih=s=>{const{params:e}=V(({videoData:{isReady:n,params:r}})=>({isReady:n,params:r}),K);P.useEffect(()=>(e.id&&s.params.id!==e.id&&(e.type===xt.static&&(N().pause(),N().removeAttribute("src"),N().load()),qa()),()=>qa()),[s.params.id]),N0(s.params),Lh(),V(({controller:{isFullScreen:n}})=>({isFullScreen:n}),K);let t=S.jsx(S.Fragment,{});return C(T.isReady)?t=S.jsx(P.Suspense,{fallback:"",children:S.jsx("div",{className:`pl-h-full !pl-select-none desktop:pl-h-auto ${!C(T.isTouchScreen)&&"pl-rounded-[12px]"} ${C(T.isFullScreen)&&"pl-fixed pl-right-0 pl-top-0 pl-h-screen pl-w-screen !pl-overflow-hidden"}`,style:{zIndex:_e.videoPlayerInFullScreen,touchAction:"pan-y"},children:C(T.isStaticFormat)?S.jsx(Ah,{}):S.jsx(Dh,{})})}):t=S.jsx("div",{className:"!pl-aspect-video pl-max-h-screen pl-w-full pl-overflow-hidden pl-rounded-[12px] pl-bg-white"}),S.jsx("div",{dir:"rtl",className:"pl-h-full pl-w-full pl-rounded-[12px]",id:"parent-player",children:t})};class Yo extends P.Component{constructor(){super(...arguments);Ru(this,"state",{hasError:!1,error:null,errorInfo:null})}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,n){this.setState({error:t,errorInfo:n}),ct({type:"OTHER_ERROR",message:t.message})}render(){return this.state.hasError?S.jsx(S.Fragment,{}):this.props.children}}const Rh=({params:s})=>(P.useEffect(()=>{if(document){let e=document.createElement("div");e.id="dialog-react-root-videoPlayer",document.body.append(e)}},[]),P.useEffect(()=>{s.primaryColor&&document.documentElement.style.setProperty("--color-primary",s.primaryColor)},[s.primaryColor]),S.jsx(Yi,{store:R,children:S.jsx(Yo,{children:S.jsx(Ih,{params:s})})})),re={fullScreen:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%209.75C1.59%209.75%201.25%209.41%201.25%209V6.5C1.25%203.61%203.61%201.25%206.5%201.25H9C9.41%201.25%209.75%201.59%209.75%202C9.75%202.41%209.41%202.75%209%202.75H6.5C4.43%202.75%202.75%204.43%202.75%206.5V9C2.75%209.41%202.41%209.75%202%209.75Z'%20fill='white'/%3e%3cpath%20d='M22%209.75C21.59%209.75%2021.25%209.41%2021.25%209V6.5C21.25%204.43%2019.57%202.75%2017.5%202.75H15C14.59%202.75%2014.25%202.41%2014.25%202C14.25%201.59%2014.59%201.25%2015%201.25H17.5C20.39%201.25%2022.75%203.61%2022.75%206.5V9C22.75%209.41%2022.41%209.75%2022%209.75Z'%20fill='white'/%3e%3cpath%20d='M17.5%2022.75H16C15.59%2022.75%2015.25%2022.41%2015.25%2022C15.25%2021.59%2015.59%2021.25%2016%2021.25H17.5C19.57%2021.25%2021.25%2019.57%2021.25%2017.5V16C21.25%2015.59%2021.59%2015.25%2022%2015.25C22.41%2015.25%2022.75%2015.59%2022.75%2016V17.5C22.75%2020.39%2020.39%2022.75%2017.5%2022.75Z'%20fill='white'/%3e%3cpath%20d='M9%2022.75H6.5C3.61%2022.75%201.25%2020.39%201.25%2017.5V15C1.25%2014.59%201.59%2014.25%202%2014.25C2.41%2014.25%202.75%2014.59%202.75%2015V17.5C2.75%2019.57%204.43%2021.25%206.5%2021.25H9C9.41%2021.25%209.75%2021.59%209.75%2022C9.75%2022.41%209.41%2022.75%209%2022.75Z'%20fill='white'/%3e%3c/svg%3e",nonFullScreen:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.875%201.41667C8.21667%201.41667%208.5%201.7%208.5%202.04167L8.5%204.125C8.5%206.53333%206.53333%208.5%204.125%208.5L2.04167%208.5C1.7%208.5%201.41667%208.21667%201.41667%207.875C1.41667%207.53333%201.7%207.25%202.04167%207.25L4.125%207.25C5.85%207.25%207.25%205.85%207.25%204.125L7.25%202.04167C7.25%201.7%207.53333%201.41667%207.875%201.41667Z'%20fill='white'/%3e%3cpath%20d='M12.0417%201.41667C12.3833%201.41667%2012.6667%201.7%2012.6667%202.04167L12.6667%204.125C12.6667%205.85%2014.0667%207.25%2015.7917%207.25L17.875%207.25C18.2167%207.25%2018.5%207.53333%2018.5%207.875C18.5%208.21667%2018.2167%208.5%2017.875%208.5L15.7917%208.5C13.3833%208.5%2011.4167%206.53333%2011.4167%204.125L11.4167%202.04167C11.4167%201.7%2011.7%201.41667%2012.0417%201.41667Z'%20fill='white'/%3e%3cpath%20d='M16.376%2011.42L17.792%2011.42C18.179%2011.42%2018.5%2011.741%2018.5%2012.128C18.5%2012.515%2018.179%2012.836%2017.792%2012.836L16.376%2012.836C14.4219%2012.836%2012.836%2014.4219%2012.836%2016.376L12.836%2017.792C12.836%2018.179%2012.515%2018.5%2012.128%2018.5C11.741%2018.5%2011.42%2018.179%2011.42%2017.792L11.42%2016.376C11.42%2013.6478%2013.6478%2011.42%2016.376%2011.42Z'%20fill='white'/%3e%3cpath%20d='M2.04167%2011.4167L4.125%2011.4167C6.53333%2011.4167%208.5%2013.3833%208.5%2015.7917L8.5%2017.875C8.5%2018.2167%208.21667%2018.5%207.875%2018.5C7.53333%2018.5%207.25%2018.2167%207.25%2017.875L7.25%2015.7917C7.25%2014.0667%205.85%2012.6667%204.125%2012.6667L2.04167%2012.6667C1.7%2012.6667%201.41667%2012.3833%201.41667%2012.0417C1.41667%2011.7%201.7%2011.4167%202.04167%2011.4167Z'%20fill='white'/%3e%3c/svg%3e",settings:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%2013.125C8.275%2013.125%206.875%2011.725%206.875%2010C6.875%208.275%208.275%206.875%2010%206.875C11.725%206.875%2013.125%208.275%2013.125%2010C13.125%2011.725%2011.725%2013.125%2010%2013.125ZM10%208.125C8.96667%208.125%208.125%208.96667%208.125%2010C8.125%2011.0333%208.96667%2011.875%2010%2011.875C11.0333%2011.875%2011.875%2011.0333%2011.875%2010C11.875%208.96667%2011.0333%208.125%2010%208.125Z'%20fill='white'/%3e%3cpath%20d='M12.675%2018.4916C12.5%2018.4916%2012.325%2018.4666%2012.15%2018.425C11.6333%2018.2833%2011.2%2017.9583%2010.925%2017.5L10.825%2017.3333C10.3333%2016.4833%209.65829%2016.4833%209.16663%2017.3333L9.07496%2017.4916C8.79996%2017.9583%208.36663%2018.2916%207.84996%2018.425C7.32496%2018.5666%206.78329%2018.4916%206.32496%2018.2166L4.89163%2017.3916C4.38329%2017.1%204.01663%2016.625%203.85829%2016.05C3.70829%2015.475%203.78329%2014.8833%204.07496%2014.375C4.31663%2013.95%204.38329%2013.5666%204.24163%2013.325C4.09996%2013.0833%203.74163%2012.9416%203.24996%2012.9416C2.03329%2012.9416%201.04163%2011.95%201.04163%2010.7333V9.26662C1.04163%208.04995%202.03329%207.05829%203.24996%207.05829C3.74163%207.05829%204.09996%206.91662%204.24163%206.67495C4.38329%206.43329%204.32496%206.04995%204.07496%205.62495C3.78329%205.11662%203.70829%204.51662%203.85829%203.94995C4.00829%203.37495%204.37496%202.89995%204.89163%202.60829L6.33329%201.78329C7.27496%201.22495%208.51663%201.54995%209.08329%202.50829L9.18329%202.67495C9.67496%203.52495%2010.35%203.52495%2010.8416%202.67495L10.9333%202.51662C11.5%201.54995%2012.7416%201.22495%2013.6916%201.79162L15.125%202.61662C15.6333%202.90829%2016%203.38329%2016.1583%203.95829C16.3083%204.53329%2016.2333%205.12495%2015.9416%205.63329C15.7%206.05829%2015.6333%206.44162%2015.775%206.68329C15.9166%206.92495%2016.275%207.06662%2016.7666%207.06662C17.9833%207.06662%2018.975%208.05829%2018.975%209.27495V10.7416C18.975%2011.9583%2017.9833%2012.95%2016.7666%2012.95C16.275%2012.95%2015.9166%2013.0916%2015.775%2013.3333C15.6333%2013.575%2015.6916%2013.9583%2015.9416%2014.3833C16.2333%2014.8916%2016.3166%2015.4916%2016.1583%2016.0583C16.0083%2016.6333%2015.6416%2017.1083%2015.125%2017.4L13.6833%2018.225C13.3666%2018.4%2013.025%2018.4916%2012.675%2018.4916ZM9.99996%2015.4083C10.7416%2015.4083%2011.4333%2015.875%2011.9083%2016.7L12%2016.8583C12.1%2017.0333%2012.2666%2017.1583%2012.4666%2017.2083C12.6666%2017.2583%2012.8666%2017.2333%2013.0333%2017.1333L14.475%2016.3C14.6916%2016.175%2014.8583%2015.9666%2014.925%2015.7166C14.9916%2015.4666%2014.9583%2015.2083%2014.8333%2014.9916C14.3583%2014.175%2014.3%2013.3333%2014.6666%2012.6916C15.0333%2012.05%2015.7916%2011.6833%2016.7416%2011.6833C17.275%2011.6833%2017.7%2011.2583%2017.7%2010.725V9.25829C17.7%208.73329%2017.275%208.29995%2016.7416%208.29995C15.7916%208.29995%2015.0333%207.93329%2014.6666%207.29162C14.3%206.64995%2014.3583%205.80829%2014.8333%204.99162C14.9583%204.77495%2014.9916%204.51662%2014.925%204.26662C14.8583%204.01662%2014.7%203.81662%2014.4833%203.68329L13.0416%202.85829C12.6833%202.64162%2012.2083%202.76662%2011.9916%203.13329L11.9%203.29162C11.425%204.11662%2010.7333%204.58329%209.99163%204.58329C9.24996%204.58329%208.55829%204.11662%208.08329%203.29162L7.99163%203.12495C7.78329%202.77495%207.31663%202.64995%206.95829%202.85829L5.51663%203.69162C5.29996%203.81662%205.13329%204.02495%205.06663%204.27495C4.99996%204.52495%205.03329%204.78329%205.15829%204.99995C5.63329%205.81662%205.69163%206.65829%205.32496%207.29995C4.95829%207.94162%204.19996%208.30829%203.24996%208.30829C2.71663%208.30829%202.29163%208.73329%202.29163%209.26662V10.7333C2.29163%2011.2583%202.71663%2011.6916%203.24996%2011.6916C4.19996%2011.6916%204.95829%2012.0583%205.32496%2012.7C5.69163%2013.3416%205.63329%2014.1833%205.15829%2015C5.03329%2015.2166%204.99996%2015.475%205.06663%2015.725C5.13329%2015.975%205.29163%2016.175%205.50829%2016.3083L6.94996%2017.1333C7.12496%2017.2416%207.33329%2017.2666%207.52496%2017.2166C7.72496%2017.1666%207.89163%2017.0333%207.99996%2016.8583L8.09163%2016.7C8.56663%2015.8833%209.25829%2015.4083%209.99996%2015.4083Z'%20fill='white'/%3e%3c/svg%3e",bigPlay:"data:image/svg+xml,%3csvg%20width='29'%20height='29'%20viewBox='0%200%2029%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.333252%205.20762V23.4614C0.333252%2027.1999%204.78234%2029.546%208.33325%2027.6768L17.0017%2023.1181L25.6701%2018.5403C29.221%2016.6711%2029.221%2011.998%2025.6701%2010.1287L17.0017%205.55095L8.33325%200.992273C4.78234%20-0.876977%200.333252%201.45005%200.333252%205.20762Z'%20fill='white'/%3e%3c/svg%3e",bigPause:"data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.75%2031.85V8.15C17.75%205.9%2016.8%205%2014.4%205H8.35C5.95%205%205%205.9%205%208.15V31.85C5%2034.1%205.95%2035%208.35%2035H14.4C16.8%2035%2017.75%2034.1%2017.75%2031.85Z'%20fill='white'/%3e%3cpath%20d='M35%2031.85V8.15C35%205.9%2034.05%205%2031.65%205H25.6C23.2167%205%2022.25%205.9%2022.25%208.15V31.85C22.25%2034.1%2023.2%2035%2025.6%2035H31.65C34.05%2035%2035%2034.1%2035%2031.85Z'%20fill='white'/%3e%3c/svg%3e",mute:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5%206.97499V6.17499C12.5%203.69165%2010.775%202.74165%208.67496%204.05832L6.24163%205.58332C5.97496%205.74165%205.66663%205.83332%205.35829%205.83332H4.16663C2.49996%205.83332%201.66663%206.66665%201.66663%208.33332V11.6667C1.66663%2013.3333%202.49996%2014.1667%204.16663%2014.1667H5.83329'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.67505%2015.9417C10.775%2017.2584%2012.5%2016.3001%2012.5%2013.8251V10.7917'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15.675%207.8501C16.425%209.64176%2016.2%2011.7334%2015%2013.3334'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.625%206.5C18.85%209.40833%2018.4834%2012.8083%2016.525%2015.4167'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M18.3333%201.66675L1.66663%2018.3334'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",unMute:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.66663%208.33332V11.6667C1.66663%2013.3333%202.49996%2014.1667%204.16663%2014.1667H5.35829C5.66663%2014.1667%205.97496%2014.2583%206.24163%2014.4167L8.67496%2015.9417C10.775%2017.2583%2012.5%2016.3%2012.5%2013.825V6.17499C12.5%203.69165%2010.775%202.74165%208.67496%204.05832L6.24163%205.58332C5.97496%205.74165%205.66663%205.83332%205.35829%205.83332H4.16663C2.49996%205.83332%201.66663%206.66665%201.66663%208.33332Z'%20stroke='white'%20stroke-width='1.5'/%3e%3cpath%20d='M15%206.66663C16.4833%208.64163%2016.4833%2011.3583%2015%2013.3333'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M16.525%204.58337C18.9334%207.79171%2018.9334%2012.2084%2016.525%2015.4167'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",backward15:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.4301%2016.9199H12.1401C11.7301%2016.9199%2011.3901%2016.5799%2011.3901%2016.1699C11.3901%2015.7599%2011.7301%2015.4199%2012.1401%2015.4199H14.4301C14.8601%2015.4199%2015.2101%2015.0699%2015.2101%2014.6399C15.2101%2014.2099%2014.8601%2013.8599%2014.4301%2013.8599H12.1401C11.9001%2013.8599%2011.6701%2013.7399%2011.5301%2013.5499C11.3901%2013.3599%2011.3501%2013.0999%2011.4301%2012.8699L12.1901%2010.5799C12.2901%2010.2699%2012.5801%2010.0699%2012.9001%2010.0699H15.9601C16.3701%2010.0699%2016.7101%2010.4099%2016.7101%2010.8199C16.7101%2011.2299%2016.3701%2011.5699%2015.9601%2011.5699H13.4401L13.1801%2012.3599H14.4301C15.6901%2012.3599%2016.7101%2013.3799%2016.7101%2014.6399C16.7101%2015.8999%2015.6801%2016.9199%2014.4301%2016.9199Z'%20fill='white'/%3e%3cpath%20d='M9.54004%2016.92C9.13004%2016.92%208.79004%2016.58%208.79004%2016.17V12.78L8.60004%2013C8.32004%2013.31%207.85004%2013.33%207.54004%2013.06C7.24004%2012.78%207.21004%2012.31%207.49004%2012L8.99004%2010.33C9.20004%2010.1%209.53004%2010.02%209.82004%2010.13C10.11%2010.24%2010.3%2010.52%2010.3%2010.83V16.18C10.29%2016.59%209.96004%2016.92%209.54004%2016.92Z'%20fill='white'/%3e%3cpath%20d='M12%203.48006C11.92%203.48006%2011.84%203.49006%2011.76%203.49006L12.58%202.47006C12.84%202.15006%2012.79%201.67006%2012.46%201.42006C12.13%201.17006%2011.67%201.21006%2011.41%201.54006L9.43998%204.00006C9.42998%204.01006%209.42998%204.02006%209.41998%204.04006C9.38998%204.08006%209.36998%204.13006%209.34998%204.17006C9.32998%204.22006%209.30998%204.26006%209.29998%204.30006C9.28998%204.35006%209.28998%204.39006%209.28998%204.44006C9.28998%204.49006%209.28998%204.54006%209.28998%204.59006C9.28998%204.61006%209.28998%204.62006%209.28998%204.64006C9.29998%204.67006%209.31998%204.69006%209.32998%204.72006C9.34998%204.77006%209.36998%204.81006%209.38998%204.86006C9.41998%204.90006%209.44998%204.94006%209.48998%204.97006C9.50998%205.00006%209.51998%205.03006%209.54998%205.05006C9.56998%205.06006%209.57998%205.07006%209.59998%205.08006C9.61998%205.10006%209.64998%205.11006%209.67998%205.12006C9.72998%205.15006%209.78998%205.17006%209.83998%205.18006C9.87998%205.20006%209.90998%205.20006%209.93998%205.20006C9.96998%205.20006%209.98998%205.21006%2010.02%205.21006C10.05%205.21006%2010.07%205.20006%2010.09%205.19006C10.12%205.19006%2010.15%205.20006%2010.18%205.19006C10.82%205.04006%2011.42%204.97006%2011.99%204.97006C16.48%204.97006%2020.13%208.62006%2020.13%2013.1101C20.13%2017.6001%2016.48%2021.2501%2011.99%2021.2501C7.49998%2021.2501%203.84998%2017.6001%203.84998%2013.1101C3.84998%2011.3701%204.41998%209.69006%205.49998%208.25006C5.74998%207.92006%205.67998%207.45006%205.34998%207.20006C5.01998%206.95006%204.54998%207.02006%204.29998%207.35006C3.01998%209.05006%202.34998%2011.0401%202.34998%2013.1101C2.34998%2018.4201%206.66997%2022.7501%2011.99%2022.7501C17.31%2022.7501%2021.63%2018.4301%2021.63%2013.1101C21.63%207.79006%2017.31%203.48006%2012%203.48006Z'%20fill='white'/%3e%3c/svg%3e",forward15:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.4301%2016.9199H12.1401C11.7301%2016.9199%2011.3901%2016.5799%2011.3901%2016.1699C11.3901%2015.7599%2011.7301%2015.4199%2012.1401%2015.4199H14.4301C14.8601%2015.4199%2015.2101%2015.0699%2015.2101%2014.6399C15.2101%2014.2099%2014.8601%2013.8599%2014.4301%2013.8599H12.1401C11.9001%2013.8599%2011.6701%2013.7399%2011.5301%2013.5499C11.3901%2013.3599%2011.3501%2013.0999%2011.4301%2012.8699L12.1901%2010.5799C12.2901%2010.2699%2012.5801%2010.0699%2012.9001%2010.0699H15.9601C16.3701%2010.0699%2016.7101%2010.4099%2016.7101%2010.8199C16.7101%2011.2299%2016.3701%2011.5699%2015.9601%2011.5699H13.4401L13.1801%2012.3599H14.4301C15.6901%2012.3599%2016.7101%2013.3799%2016.7101%2014.6399C16.7101%2015.8999%2015.6801%2016.9199%2014.4301%2016.9199Z'%20fill='white'/%3e%3cpath%20d='M9.54004%2016.92C9.13004%2016.92%208.79004%2016.58%208.79004%2016.17V12.78L8.60004%2013C8.32004%2013.31%207.85004%2013.33%207.54004%2013.06C7.24004%2012.78%207.21004%2012.31%207.49004%2012L8.99004%2010.33C9.20004%2010.1%209.53004%2010.02%209.82004%2010.13C10.11%2010.24%2010.3%2010.52%2010.3%2010.83V16.18C10.29%2016.59%209.96004%2016.92%209.54004%2016.92Z'%20fill='white'/%3e%3cpath%20d='M19.69%207.35002C19.44%207.02002%2018.97%206.95002%2018.64%207.20002C18.31%207.45002%2018.24%207.92002%2018.49%208.25002C19.57%209.69002%2020.14%2011.37%2020.14%2013.11C20.14%2017.6%2016.49%2021.25%2012%2021.25C7.50998%2021.25%203.85998%2017.6%203.85998%2013.11C3.85998%208.62002%207.50998%204.98002%2012%204.98002C12.58%204.98002%2013.17%205.05002%2013.81%205.20002C13.84%205.21002%2013.87%205.20002%2013.9%205.20002C13.93%205.20002%2013.95%205.22002%2013.97%205.22002C14%205.22002%2014.02%205.21002%2014.05%205.21002C14.08%205.21002%2014.11%205.20002%2014.15%205.19002C14.21%205.18002%2014.26%205.15002%2014.31%205.13002C14.34%205.11002%2014.37%205.10002%2014.4%205.08002C14.41%205.07002%2014.43%205.07002%2014.44%205.06002C14.47%205.04002%2014.48%205.01002%2014.5%204.99002C14.54%204.95002%2014.57%204.92002%2014.6%204.87002C14.63%204.83002%2014.64%204.78002%2014.66%204.73002C14.67%204.70002%2014.69%204.67002%2014.7%204.64002C14.7%204.62002%2014.7%204.61002%2014.7%204.59002C14.71%204.54002%2014.71%204.49002%2014.7%204.44002C14.7%204.39002%2014.7%204.35002%2014.69%204.30002C14.68%204.26002%2014.66%204.22002%2014.64%204.17002C14.62%204.12002%2014.6%204.07002%2014.57%204.03002C14.57%204.02002%2014.57%204.01002%2014.56%204.00002L12.58%201.53002C12.32%201.21002%2011.85%201.15002%2011.53%201.41002C11.21%201.67002%2011.16%202.14002%2011.41%202.46002L12.23%203.48002C12.15%203.48002%2012.07%203.47002%2011.99%203.47002C6.67998%203.47002%202.34998%207.79002%202.34998%2013.11C2.34998%2018.43%206.66997%2022.75%2011.99%2022.75C17.31%2022.75%2021.63%2018.43%2021.63%2013.11C21.64%2011.04%2020.96%209.05002%2019.69%207.35002Z'%20fill='white'/%3e%3c/svg%3e",chevronRight:"data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.75004%202.49761C6.89254%202.49761%207.03504%202.55011%207.14754%202.66261L12.0375%207.55261C12.8325%208.34761%2012.8325%209.65261%2012.0375%2010.4476L7.14754%2015.3376C6.93004%2015.5551%206.57004%2015.5551%206.35254%2015.3376C6.13504%2015.1201%206.13504%2014.7601%206.35254%2014.5426L11.2425%209.65261C11.6025%209.29261%2011.6025%208.70761%2011.2425%208.34761L6.35254%203.45761C6.13504%203.24011%206.13504%202.88011%206.35254%202.66261C6.46504%202.55761%206.60754%202.49761%206.75004%202.49761Z'%20fill='white'/%3e%3c/svg%3e",pictureInPicture:"data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.13013%207.72396C8.49563%207.72396%207.93338%207.95288%207.53288%208.38254C7.13682%208.80737%206.9443%209.37888%206.9443%209.98921V11.773C6.9443%2012.3826%207.1354%2012.9545%207.53121%2013.3799C7.9318%2013.8104%208.49446%2014.039%209.13013%2014.039H11.8836C12.5192%2014.039%2013.082%2013.8104%2013.4827%2013.38C13.8788%2012.9547%2014.0702%2012.3829%2014.0702%2011.773V9.98921C14.0702%209.37954%2013.8787%208.80796%2013.4827%208.38271C13.082%207.95254%2012.5192%207.72396%2011.8836%207.72396H9.13013ZM8.1943%209.98921C8.1943%209.63863%208.30255%209.39004%208.44721%209.23496C8.58721%209.08471%208.80538%208.97396%209.13013%208.97396H11.8836C12.2105%208.97396%2012.4285%209.08496%2012.568%209.23471C12.7122%209.38954%2012.8202%209.63804%2012.8202%209.98921V11.773C12.8202%2012.1247%2012.7121%2012.3734%2012.568%2012.5282C12.4285%2012.678%2012.2105%2012.789%2011.8836%2012.789H9.13013C8.80338%2012.789%208.58563%2012.678%208.44638%2012.5284C8.30238%2012.3736%208.1943%2012.1249%208.1943%2011.773V9.98921Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.55509%200.875C4.17553%200.875%203.00718%201.36764%202.18678%202.24781C1.37092%203.12309%200.944946%204.33172%200.944946%205.68865V12.3113C0.944946%2013.6675%201.36863%2014.8763%202.18376%2015.7519C3.0036%2016.6326%204.17229%2017.125%205.55509%2017.125H12.5832C13.9663%2017.125%2015.1354%2016.6327%2015.9555%2015.752C16.771%2014.8763%2017.195%2013.6676%2017.195%2012.3113V5.68865C17.195%204.33241%2016.771%203.12367%2015.9556%202.24804C15.1356%201.36737%2013.9668%200.875%2012.584%200.875H5.55509ZM2.19495%205.68865C2.19495%204.59126%202.53681%203.70555%203.10116%203.1001C3.66096%202.49952%204.48518%202.125%205.55509%202.125H12.584C13.658%202.125%2014.4821%202.49979%2015.0409%203.09987C15.6043%203.70497%2015.945%204.59057%2015.945%205.68865V12.3113C15.945%2013.4094%2015.6043%2014.295%2015.0408%2014.9001C14.482%2015.5002%2013.6576%2015.875%2012.5832%2015.875H5.55509C4.48113%2015.875%203.65725%2015.5002%203.0987%2014.9002C2.53545%2014.2951%202.19495%2013.4095%202.19495%2012.3113V5.68865Z'%20fill='white'/%3e%3c/svg%3e",lock:"data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.99975%2012.4695C6.62095%2012.4687%206.25087%2012.3556%205.93631%2012.1445C5.62167%2011.9335%205.37671%2011.634%205.23231%2011.2837C5.08797%2010.9335%205.05065%2010.5484%205.12509%2010.1769C5.19954%209.80548%205.38239%209.46444%205.65063%209.19692C5.91879%208.9294%206.26031%208.7474%206.63191%208.67388C7.00351%208.60036%207.38855%208.63868%207.73839%208.78388C8.08831%208.92916%208.38719%209.17492%208.59751%209.48996C8.80775%209.80508%208.91991%2010.1755%208.91975%2010.5543C8.91847%2011.0627%208.71559%2011.5498%208.35567%2011.9088C7.99575%2012.2678%207.50815%2012.4695%206.99975%2012.4695ZM6.99975%209.83828C6.85847%209.83908%206.72063%209.88164%206.60343%209.9606C6.48631%2010.0396%206.39519%2010.1514%206.34151%2010.2821C6.28775%2010.4128%206.27391%2010.5564%206.30167%2010.6949C6.32943%2010.8334%206.39759%2010.9607%206.49743%2011.0605C6.59735%2011.1604%206.72455%2011.2285%206.86311%2011.2563C7.00159%2011.284%207.14519%2011.2702%207.27591%2011.2165C7.40655%2011.1628%207.51839%2011.0716%207.59735%2010.9545C7.67639%2010.8374%207.71895%2010.6996%207.71975%2010.5583C7.71975%2010.3673%207.64383%2010.1842%207.50887%2010.0492C7.37383%209.91412%207.19071%209.83828%206.99975%209.83828Z'%20fill='white'/%3e%3cpath%20d='M10.56%206.56697C10.4009%206.56697%2010.2483%206.50377%2010.1358%206.39125C10.0232%206.27873%209.96004%206.12612%209.96004%205.96698V4.28699C9.94804%203.50988%209.63092%202.76865%209.07708%202.22337C8.52332%201.67808%207.77724%201.37249%207.00004%201.37258H6.96244C6.19148%201.3786%205.45372%201.6867%204.90742%202.23073C4.36116%202.77474%204.05001%203.51129%204.04082%204.28218V5.96218C4.04082%206.12131%203.97761%206.27393%203.86509%206.38645C3.75256%206.49897%203.59995%206.56217%203.44082%206.56217C3.28169%206.56217%203.12908%206.49897%203.01656%206.38645C2.90403%206.27393%202.84082%206.12131%202.84082%205.96218V4.27418C2.85189%203.18905%203.28844%202.15162%204.05652%201.38503C4.8246%200.618446%205.86292%200.183934%206.94804%200.174982C8.04956%200.169374%209.10988%200.59323%209.90404%201.35658C10.2962%201.73705%2010.609%202.19153%2010.8244%202.69371C11.0396%203.19589%2011.1532%203.73581%2011.1584%204.28218V5.96698C11.1584%206.12584%2011.0954%206.27821%2010.9832%206.39069C10.8711%206.50313%2010.7189%206.56657%2010.56%206.56697Z'%20fill='white'/%3e%3cpath%20d='M9.1601%2015.7892H4.84009C3.9404%2015.8864%203.03035%2015.7856%202.17371%2015.494C1.55896%2015.1986%201.06319%2014.7025%200.768099%2014.0876C0.475555%2013.2312%200.374515%2012.3209%200.472099%2011.4212V9.71636C0.374659%208.81636%200.475691%207.90596%200.768099%207.04916C1.06391%206.435%201.55951%205.93942%202.17371%205.6436C3.03034%205.35189%203.9404%205.25113%204.84009%205.3484H9.1601C10.0598%205.25113%2010.9699%205.35189%2011.8265%205.6436C12.4407%205.93942%2012.9363%206.435%2013.2321%207.04916C13.5245%207.90596%2013.6255%208.81636%2013.5281%209.71636V11.4212C13.6256%2012.3212%2013.5246%2013.2316%2013.2321%2014.0884C12.9369%2014.7028%2012.4415%2015.1984%2011.8273%2015.494C10.9703%2015.7856%2010.0601%2015.8864%209.1601%2015.7892ZM4.84009%206.54836C4.11926%206.47548%203.39116%206.53564%202.6921%206.72596C2.32372%206.90356%202.02647%207.20084%201.84891%207.56916C1.65927%208.26812%201.59935%208.99588%201.6721%209.71636V11.4212C1.59943%2012.142%201.65936%2012.87%201.84891%2013.5692C2.02679%2013.9376%202.32431%2014.2348%202.6929%2014.4124C3.39183%2014.602%204.11957%2014.6619%204.84009%2014.5892H9.1601C9.8809%2014.6618%2010.6089%2014.6019%2011.3081%2014.4124C11.6763%2014.2346%2011.9735%2013.9374%2012.1513%2013.5692C12.3408%2012.87%2012.4007%2012.142%2012.3281%2011.4212V9.71636C12.4008%208.99588%2012.3409%208.26812%2012.1513%207.56916C11.9737%207.20084%2011.6765%206.90356%2011.3081%206.72596C10.6091%206.53564%209.88098%206.47548%209.1601%206.54836H4.84009Z'%20fill='white'/%3e%3c/svg%3e",unlock:"data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.1601%2015.8053H4.84006C3.94037%2015.9025%203.03032%2015.8017%202.17368%2015.5101C1.55957%2015.2137%201.06405%2014.7179%200.768064%2014.1037C0.475576%2013.2472%200.374536%2012.337%200.472072%2011.4373V9.73166C0.374624%208.83166%200.475664%207.92118%200.768064%207.06446C1.06431%206.44918%201.56076%205.95269%202.17607%205.65645C3.03282%205.36405%203.94325%205.26301%204.84326%205.36045H9.1601C10.0599%205.26293%2010.97%205.36397%2011.8265%205.65645C12.4409%205.95237%2012.9365%206.4483%2013.2321%207.06286C13.5247%207.91902%2013.6257%208.82894%2013.5281%209.72846V11.4341C13.6255%2012.3341%2013.5245%2013.2445%2013.2321%2014.1013C12.9363%2014.7153%2012.4411%2015.2108%2011.8273%2015.5069C10.9706%2015.7995%2010.0603%2015.9013%209.1601%2015.8053ZM4.84006%206.56366C4.11945%206.49038%203.39151%206.55086%202.69287%206.74206C2.32455%206.91934%202.0273%207.2163%201.84968%207.58446C1.65937%208.28326%201.59916%209.0111%201.67207%209.73166V11.4373C1.59905%2012.1578%201.65926%2012.8857%201.84968%2013.5845C2.02747%2013.9529%202.32462%2014.2503%202.69287%2014.4285C3.3918%2014.618%204.11954%2014.6779%204.84006%2014.6053H9.1601C9.88089%2014.6782%2010.609%2014.618%2011.3081%2014.4277C11.6763%2014.2502%2011.9735%2013.9533%2012.1513%2013.5853C12.3407%2012.8861%2012.4007%2012.1581%2012.3281%2011.4373V9.73166C12.4009%209.01142%2012.341%208.2839%2012.1513%207.58526C11.9739%207.2167%2011.6766%206.91942%2011.3081%206.74206C10.6091%206.55086%209.88097%206.49038%209.1601%206.56366H4.84006Z'%20fill='white'/%3e%3cpath%20d='M6.99975%2012.4985C6.62159%2012.4985%206.25191%2012.3863%205.93751%2012.1763C5.62303%2011.9661%205.37799%2011.6675%205.23327%2011.3182C5.08856%2010.9687%205.05069%2010.5843%205.12447%2010.2135C5.19823%209.84258%205.38039%209.50186%205.64775%209.2345C5.91519%208.96706%206.25583%208.78498%206.62671%208.71122C6.99759%208.63746%207.38207%208.6753%207.73143%208.82002C8.08079%208.96474%208.37943%209.20978%208.58951%209.52418C8.79959%209.83866%208.91175%2010.2083%208.91175%2010.5865C8.91111%2011.0934%208.70943%2011.5793%208.35103%2011.9378C7.99263%2012.2962%207.50663%2012.4979%206.99975%2012.4985ZM6.99975%209.8745C6.85895%209.8745%206.72127%209.91618%206.60415%209.99442C6.48711%2010.0727%206.39583%2010.1839%206.34191%2010.314C6.28807%2010.4441%206.27391%2010.5872%206.30143%2010.7254C6.32887%2010.8635%206.39671%2010.9903%206.49623%2011.0899C6.59583%2011.1895%206.72271%2011.2573%206.86079%2011.2847C6.99895%2011.3123%207.14207%2011.2982%207.27223%2011.2443C7.40231%2011.1903%207.51351%2011.0991%207.59175%2010.982C7.66999%2010.8649%207.71175%2010.7273%207.71175%2010.5865C7.71151%2010.3977%207.63647%2010.2167%207.50295%2010.0832C7.36951%209.94978%207.18847%209.87466%206.99975%209.8745Z'%20fill='white'/%3e%3cpath%20d='M3.45181%206.56472C3.29268%206.56472%203.14006%206.50152%203.02754%206.38896C2.91502%206.27644%202.85181%206.12383%202.85181%205.96469V4.2767C2.85965%203.29932%203.21213%202.35606%203.84714%201.61303C4.48216%200.870007%205.35897%200.374879%206.32321%200.214847C7.28745%200.0548071%208.27721%200.240135%209.11817%200.738183C9.95913%201.23623%2010.5974%202.01506%2010.9206%202.9375C10.9492%203.0125%2010.9624%203.09246%2010.9595%203.17267C10.9566%203.25288%2010.9377%203.3317%2010.9038%203.40445C10.8699%203.47721%2010.8218%203.54242%2010.7622%203.59624C10.7027%203.65006%2010.633%203.69139%2010.5572%203.71778C10.4814%203.74417%2010.4011%203.75509%2010.321%203.74988C10.241%203.74467%2010.1626%203.72345%2010.091%203.68747C10.0192%203.65149%209.95544%203.60148%209.90336%203.54041C9.85128%203.47933%209.81201%203.40843%209.78784%203.33189C9.55912%202.67479%209.10569%202.1196%208.50745%201.76434C7.90929%201.40908%207.20473%201.27659%206.51833%201.39028C5.83193%201.50396%205.20777%201.8565%204.75601%202.38565C4.30426%202.91481%204.05401%203.58655%204.04941%204.28229V5.96629C4.049%206.12473%203.98591%206.27657%203.87395%206.38869C3.762%206.5008%203.61025%206.56408%203.45181%206.56472Z'%20fill='white'/%3e%3c/svg%3e",arrowLeft:"data:image/svg+xml,%3csvg%20width='23'%20height='24'%20viewBox='0%200%2023%2024'%20fill='white'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.0182%2023.9979C21.4008%2023.9432%2022.6699%2022.815%2022.6699%2021.295L22.6699%202.70464C22.6699%200.677986%2020.4125%20-0.651722%2018.6399%200.330475L1.86725%209.62567C0.0436726%2010.6363%200.0436726%2013.3634%201.86725%2014.374L18.6399%2023.6692C19.0831%2023.9147%2019.5573%2024.0162%2020.0182%2023.9979Z'%20fill='white'/%3e%3c/svg%3e",speed:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.1543%202.49976C8.1543%202.15458%208.43405%201.87476%208.7793%201.87476H12.285C12.6301%201.87476%2012.91%202.15458%2012.91%202.49976C12.91%202.84493%2012.6301%203.12476%2012.285%203.12476H8.7793C8.43405%203.12476%208.1543%202.84493%208.1543%202.49976Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20d='M3.52295%2011.1133C3.52295%207.24291%206.66036%204.10457%2010.5317%204.10457C14.4022%204.10457%2017.5395%207.24296%2017.5395%2011.1133C17.5395%2014.9833%2014.4025%2018.1234%2010.5319%2018.1236L7.2249%2018.1253C6.87972%2018.1254%206.59977%2017.8457%206.5996%2017.5005C6.59942%2017.1553%206.87911%2016.8754%207.22429%2016.8753L10.5313%2016.8736C13.7111%2016.8736%2016.2895%2014.2937%2016.2895%2011.1133C16.2895%207.93311%2013.7116%205.35457%2010.5317%205.35457C7.35082%205.35457%204.77295%207.93316%204.77295%2011.1133C4.77295%2011.4584%204.49312%2011.7383%204.14795%2011.7383C3.80277%2011.7383%203.52295%2011.4584%203.52295%2011.1133Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20d='M4.52962%2015.3888C4.52962%2015.0436%204.80944%2014.7638%205.15462%2014.7638H8.73116C9.07633%2014.7638%209.35616%2015.0436%209.35616%2015.3888C9.35616%2015.7339%209.07633%2016.0138%208.73116%2016.0138H5.15462C4.80944%2016.0138%204.52962%2015.7339%204.52962%2015.3888Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20d='M3.08594%2012.6528C2.74076%2012.6528%202.46094%2012.9326%202.46094%2013.2778C2.46094%2013.6229%202.74076%2013.9028%203.08594%2013.9028H6.66247C7.00765%2013.9028%207.28747%2013.6229%207.28747%2013.2778C7.28747%2012.9326%207.00765%2012.6528%206.66247%2012.6528H3.08594Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20d='M13.415%209.08101C13.6591%208.83693%2013.6591%208.44126%2013.415%208.19714C13.1709%207.95306%2012.7752%207.95306%2012.5311%208.19714L10.0805%2010.6477C9.83644%2010.8918%209.83644%2011.2875%2010.0805%2011.5316C10.3246%2011.7757%2010.7204%2011.7757%2010.9644%2011.5316L13.415%209.08101Z'%20fill='black'%20fill-opacity='0.5'/%3e%3c/svg%3e",speed1:"data:image/svg+xml,%3csvg%20width='18'%20height='15'%20viewBox='0%200%2018%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.5488%201.53559C8.20532%201.02852%205.66339%201.68608%203.84359%203.50588C1.15649%206.19298%201.00481%2010.4572%203.39041%2013.3215C3.55135%2013.5148%203.8176%2013.6347%204.13036%2013.6347H13.8687C14.1816%2013.6347%2014.4476%2013.5149%2014.6085%2013.3217C16.0815%2011.5533%2016.5884%209.25027%2016.1258%207.11249C16.0528%206.77512%2016.2671%206.44245%2016.6045%206.36945C16.9418%206.29645%2017.2745%206.51077%2017.3475%206.84814C17.8886%209.34866%2017.2968%2012.0474%2015.569%2014.1217C15.1326%2014.6455%2014.489%2014.8847%2013.8687%2014.8847H4.13036C3.50995%2014.8847%202.86616%2014.6453%202.42991%2014.1215C-0.36559%2010.765%20-0.188583%205.77029%202.95971%202.622C5.09241%200.489299%208.07189%20-0.279272%2010.8132%200.31386C11.1505%200.386857%2011.3648%200.719527%2011.2918%201.0569C11.2188%201.39427%2010.8862%201.60859%2010.5488%201.53559Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.9976%202.66523C15.2417%202.9093%2015.2417%203.30503%2014.9976%203.54911L10.7129%207.83399C10.8469%208.09798%2010.9225%208.39667%2010.9225%208.713C10.9225%209.78688%2010.0519%2010.6574%208.97805%2010.6574C7.90417%2010.6574%207.03362%209.78688%207.03362%208.713C7.03362%207.63912%207.90417%206.76856%208.97805%206.76856C9.27953%206.76856%209.56498%206.83718%209.81965%206.95963C9.82222%206.95697%209.82483%206.95432%209.82746%206.95168L14.1137%202.66525C14.3578%202.42116%2014.7535%202.42115%2014.9976%202.66523ZM9.67249%208.713C9.67249%209.09652%209.36158%209.40743%208.97805%209.40743C8.59453%209.40743%208.28362%209.09652%208.28362%208.713C8.28362%208.32947%208.59453%208.01856%208.97805%208.01856C9.36158%208.01856%209.67249%208.32947%209.67249%208.713Z'%20fill='white'/%3e%3c/svg%3e",tick:"data:image/svg+xml,%3csvg%20width='15'%20height='11'%20viewBox='0%200%2015%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.36893%2010.7566C5.06878%2010.7566%204.78364%2010.6366%204.57354%2010.4265L0.326413%206.17934C-0.108804%205.74412%20-0.108804%205.02376%200.326413%204.58854C0.761631%204.15333%201.48199%204.15333%201.91721%204.58854L5.36893%208.04027L13.0828%200.326413C13.518%20-0.108804%2014.2384%20-0.108804%2014.6736%200.326413C15.1088%200.761631%2015.1088%201.48199%2014.6736%201.91721L6.16433%2010.4265C5.95423%2010.6366%205.66908%2010.7566%205.36893%2010.7566Z'%20fill='white'/%3e%3c/svg%3e",qualitySetting:"data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.11683%202.24781C2.93723%201.36764%204.10557%200.875%205.48513%200.875H12.5141C13.8968%200.875%2015.0657%201.36737%2015.8857%202.24804C16.7011%203.12367%2017.125%204.33241%2017.125%205.68865V12.3113C17.125%2013.6676%2016.7011%2014.8763%2015.8856%2015.752C15.0654%2016.6327%2013.8964%2017.125%2012.5133%2017.125H5.48513C4.10233%2017.125%202.93365%2016.6326%202.11381%2015.7519C1.29868%2014.8763%200.875%2013.6675%200.875%2012.3113V5.68865C0.875%204.33172%201.30098%203.12309%202.11683%202.24781ZM3.03121%203.1001C2.46687%203.70556%202.125%204.59126%202.125%205.68865V12.3113C2.125%2013.4095%202.46551%2014.2951%203.02876%2014.9002C3.58729%2015.5002%204.41117%2015.875%205.48513%2015.875H12.5133C13.5877%2015.875%2014.412%2015.5002%2014.9708%2014.9001C15.5343%2014.295%2015.875%2013.4094%2015.875%2012.3113V5.68865C15.875%204.59057%2015.5343%203.70497%2014.9709%203.09987C14.4122%202.49979%2013.588%202.125%2012.5141%202.125H5.48513C4.41523%202.125%203.59101%202.49952%203.03121%203.1001ZM7.45442%204.75486C7.79958%204.75486%208.07942%205.03467%208.07942%205.37986V6.42142C8.0795%206.42605%208.07958%206.43068%208.07958%206.43533C8.07958%206.43998%208.0795%206.44462%208.07942%206.44925V7.49042C8.07942%207.83558%207.79958%208.11542%207.45442%208.11542C7.10925%208.11542%206.82942%207.83558%206.82942%207.49042V7.06033H5.52238C5.1772%207.06033%204.89738%206.78052%204.89738%206.43533C4.89738%206.09016%205.1772%205.81033%205.52238%205.81033H6.82942V5.37986C6.82942%205.03467%207.10925%204.75486%207.45442%204.75486ZM8.87858%206.43533C8.87858%206.09016%209.15842%205.81033%209.50358%205.81033H12.476C12.8212%205.81033%2013.101%206.09016%2013.101%206.43533C13.101%206.78052%2012.8212%207.06033%2012.476%207.06033H9.50358C9.15842%207.06033%208.87858%206.78052%208.87858%206.43533ZM9.88683%209.88417C10.232%209.88417%2010.5118%2010.164%2010.5118%2010.5092V11.55C10.5119%2011.5546%2010.512%2011.5592%2010.512%2011.5638C10.512%2011.5685%2010.5119%2011.5732%2010.5118%2011.5777V12.6198C10.5118%2012.9649%2010.232%2013.2448%209.88683%2013.2448C9.54167%2013.2448%209.26183%2012.9649%209.26183%2012.6198V12.1888H5.52238C5.1772%2012.1888%204.89738%2011.9091%204.89738%2011.5638C4.89738%2011.2187%205.1772%2010.9388%205.52238%2010.9388H9.26183V10.5092C9.26183%2010.164%209.54167%209.88417%209.88683%209.88417ZM11.3102%2011.5638C11.3102%2011.2187%2011.5901%2010.9388%2011.9353%2010.9388H12.4752C12.8204%2010.9388%2013.1002%2011.2187%2013.1002%2011.5638C13.1002%2011.9091%2012.8204%2012.1888%2012.4752%2012.1888H11.9353C11.5901%2012.1888%2011.3102%2011.9091%2011.3102%2011.5638Z'%20fill='black'%20fill-opacity='0.5'/%3e%3c/svg%3e",qualitySetting1:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.11683%203.24781C3.93723%202.36764%205.10557%201.875%206.48513%201.875H13.5141C14.8968%201.875%2016.0657%202.36737%2016.8857%203.24804C17.7011%204.12367%2018.125%205.33241%2018.125%206.68865V13.3113C18.125%2014.6676%2017.7011%2015.8763%2016.8856%2016.752C16.0654%2017.6327%2014.8964%2018.125%2013.5133%2018.125H6.48513C5.10233%2018.125%203.93365%2017.6326%203.11381%2016.7519C2.29868%2015.8763%201.875%2014.6675%201.875%2013.3113V6.68865C1.875%205.33172%202.30098%204.12309%203.11683%203.24781ZM4.03121%204.1001C3.46687%204.70556%203.125%205.59126%203.125%206.68865V13.3113C3.125%2014.4095%203.46551%2015.2951%204.02876%2015.9002C4.58729%2016.5002%205.41117%2016.875%206.48513%2016.875H13.5133C14.5877%2016.875%2015.412%2016.5002%2015.9708%2015.9001C16.5343%2015.295%2016.875%2014.4094%2016.875%2013.3113V6.68865C16.875%205.59057%2016.5343%204.70497%2015.9709%204.09987C15.4122%203.49979%2014.588%203.125%2013.5141%203.125H6.48513C5.41523%203.125%204.59101%203.49952%204.03121%204.1001ZM8.45442%205.75486C8.79958%205.75486%209.07942%206.03467%209.07942%206.37986V7.42142C9.0795%207.42605%209.07958%207.43068%209.07958%207.43533C9.07958%207.43998%209.0795%207.44462%209.07942%207.44925V8.49042C9.07942%208.83558%208.79958%209.11542%208.45442%209.11542C8.10925%209.11542%207.82942%208.83558%207.82942%208.49042V8.06033H6.52238C6.1772%208.06033%205.89738%207.78052%205.89738%207.43533C5.89738%207.09016%206.1772%206.81033%206.52238%206.81033H7.82942V6.37986C7.82942%206.03467%208.10925%205.75486%208.45442%205.75486ZM9.87858%207.43533C9.87858%207.09016%2010.1584%206.81033%2010.5036%206.81033H13.476C13.8212%206.81033%2014.101%207.09016%2014.101%207.43533C14.101%207.78052%2013.8212%208.06033%2013.476%208.06033H10.5036C10.1584%208.06033%209.87858%207.78052%209.87858%207.43533ZM10.8868%2010.8842C11.232%2010.8842%2011.5118%2011.164%2011.5118%2011.5092V12.55C11.5119%2012.5546%2011.512%2012.5592%2011.512%2012.5638C11.512%2012.5685%2011.5119%2012.5732%2011.5118%2012.5777V13.6198C11.5118%2013.9649%2011.232%2014.2448%2010.8868%2014.2448C10.5417%2014.2448%2010.2618%2013.9649%2010.2618%2013.6198V13.1888H6.52238C6.1772%2013.1888%205.89738%2012.9091%205.89738%2012.5638C5.89738%2012.2187%206.1772%2011.9388%206.52238%2011.9388H10.2618V11.5092C10.2618%2011.164%2010.5417%2010.8842%2010.8868%2010.8842ZM12.3102%2012.5638C12.3102%2012.2187%2012.5901%2011.9388%2012.9353%2011.9388H13.4752C13.8204%2011.9388%2014.1002%2012.2187%2014.1002%2012.5638C14.1002%2012.9091%2013.8204%2013.1888%2013.4752%2013.1888H12.9353C12.5901%2013.1888%2012.3102%2012.9091%2012.3102%2012.5638Z'%20fill='white'/%3e%3c/svg%3e",notFound:"data:image/svg+xml,%3csvg%20width='123'%20height='72'%20viewBox='0%200%20123%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.5'%3e%3cg%20opacity='0.3'%20filter='url(%23filter0_f_113_8034)'%3e%3cellipse%20cx='59.429'%20cy='67.3152'%20rx='56.5'%20ry='2.5'%20fill='url(%23paint0_linear_113_8034)'/%3e%3c/g%3e%3cpath%20d='M31.1913%205.75171H89.5312C95.4885%205.75171%20100.323%2010.5866%20100.323%2016.5438V56.0536C100.323%2062.0109%2095.4885%2066.8457%2089.5312%2066.8457H31.1913C25.234%2066.8457%2020.3992%2062.0109%2020.3992%2056.0536V16.5438C20.3992%2010.5866%2025.234%205.75171%2031.1913%205.75171Z'%20fill='%23E3E3E3'/%3e%3cpath%20d='M113.586%2042.8287L119.243%2048.4856'%20stroke='%23C0BCBC'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M119.243%2042.8286L113.586%2048.4855'%20stroke='%23C0BCBC'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.75732%2019.8287L10.4142%2025.4856'%20stroke='%23C0BCBC'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10.4142%2019.8286L4.75732%2025.4855'%20stroke='%23C0BCBC'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M100.327%2022.8965V16.5438C100.327%2010.5832%2095.4952%205.75171%2089.5345%205.75171H31.1913C25.2307%205.75171%2020.3992%2010.5866%2020.3992%2016.5438V22.8965H100.327Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M32.7025%2014.3256C32.7025%2015.8434%2031.4695%2017.0764%2029.9517%2017.0764C28.4339%2017.0764%2027.1975%2015.8434%2027.1975%2014.3256C27.1975%2012.8078%2028.4305%2011.5748%2029.9517%2011.5748C31.4728%2011.5748%2032.7025%2012.8078%2032.7025%2014.3256Z'%20fill='%23DADADA'/%3e%3cpath%20d='M40.2545%2014.3255C40.2545%2015.8433%2039.0215%2017.0763%2037.5037%2017.0763C35.9859%2017.0763%2034.7495%2015.8433%2034.7495%2014.3255C34.7495%2012.8077%2035.9792%2011.5747%2037.5037%2011.5747C39.0282%2011.5747%2040.2545%2012.8077%2040.2545%2014.3255Z'%20fill='%23DADADA'/%3e%3cpath%20d='M47.8069%2014.3255C47.8069%2015.8433%2046.5739%2017.0763%2045.0594%2017.0763C43.5449%2017.0763%2042.3086%2015.8433%2042.3086%2014.3255C42.3086%2012.8077%2043.5416%2011.5747%2045.0594%2011.5747C46.5772%2011.5747%2047.8069%2012.8077%2047.8069%2014.3255Z'%20fill='%23DADADA'/%3e%3cpath%20d='M92.7577%2014.3257C92.7577%2016.0479%2091.3639%2017.4417%2089.6417%2017.4417H57.9622C56.2434%2017.4417%2054.8462%2016.0446%2054.8462%2014.3257C54.8462%2012.6035%2056.2434%2011.2097%2057.9622%2011.2097H89.6417C91.3639%2011.2097%2092.7577%2012.6035%2092.7577%2014.3257Z'%20fill='white'/%3e%3cpath%20d='M50.0952%2051.0009V35.528C50.0952%2031.7318%2052.7857%2030.1805%2056.076%2032.0736L57.5234%2032.9112C60.8069%2034.8076%2066.1913%2037.9169%2069.4748%2039.8133L70.9256%2040.651C74.2159%2042.5508%2074.2159%2045.6534%2070.9256%2047.5531L69.4748%2048.3874C66.1913%2050.2872%2060.8103%2053.3932%2057.5234%2055.2896L56.076%2056.1238C52.7857%2058.0203%2050.0952%2056.469%2050.0952%2052.6728V51.0009Z'%20fill='%23AAAAAA'/%3e%3c/g%3e%3ccircle%20cx='96.6863'%20cy='13.6848'%20r='12.5'%20fill='%23DC1964'%20stroke='%23C80250'%20stroke-width='2'/%3e%3cpath%20d='M100.98%206.29301C101.37%205.90249%20102.004%205.90249%20102.394%206.29302L104.121%208.01955C104.511%208.41008%20104.511%209.04324%20104.121%209.43376L92.62%2020.9345C92.2294%2021.325%2091.5963%2021.325%2091.2058%2020.9345L89.4792%2019.2079C89.0887%2018.8174%2089.0887%2018.1842%2089.4792%2017.7937L100.98%206.29301Z'%20fill='white'/%3e%3cpath%20d='M92.6199%206.29301C92.2294%205.90249%2091.5962%205.90249%2091.2057%206.29302L89.4792%208.01955C89.0886%208.41008%2089.0886%209.04324%2089.4792%209.43376L100.98%2020.9345C101.37%2021.325%20102.004%2021.325%20102.394%2020.9345L104.121%2019.2079C104.511%2018.8174%20104.511%2018.1842%20104.121%2017.7937L92.6199%206.29301Z'%20fill='white'/%3e%3cdefs%3e%3cfilter%20id='filter0_f_113_8034'%20x='0.928955'%20y='62.8152'%20width='117'%20height='9'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1'%20result='effect1_foregroundBlur_113_8034'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_113_8034'%20x1='2.92896'%20y1='67.3152'%20x2='115.929'%20y2='67.3152'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-opacity='0'/%3e%3cstop%20offset='0.342341'/%3e%3cstop%20offset='0.694197'/%3e%3cstop%20offset='1'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",closeSquare:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.11357%2010.3867C5.9869%2010.3867%205.86023%2010.34%205.76023%2010.24C5.5669%2010.0467%205.5669%209.72666%205.76023%209.53332L9.53357%205.75999C9.7269%205.56666%2010.0469%205.56666%2010.2402%205.75999C10.4336%205.95332%2010.4336%206.27332%2010.2402%206.46666L6.4669%2010.24C6.37357%2010.34%206.24023%2010.3867%206.11357%2010.3867Z'%20fill='white'/%3e%3cpath%20d='M9.8869%2010.3867C9.76023%2010.3867%209.63357%2010.34%209.53357%2010.24L5.76023%206.46666C5.5669%206.27332%205.5669%205.95332%205.76023%205.75999C5.95357%205.56666%206.27357%205.56666%206.4669%205.75999L10.2402%209.53332C10.4336%209.72666%2010.4336%2010.0467%2010.2402%2010.24C10.1402%2010.34%2010.0136%2010.3867%209.8869%2010.3867Z'%20fill='white'/%3e%3cpath%20d='M10.0002%2015.1666H6.00016C2.38016%2015.1666%200.833496%2013.62%200.833496%209.99998V5.99998C0.833496%202.37998%202.38016%200.833313%206.00016%200.833313H10.0002C13.6202%200.833313%2015.1668%202.37998%2015.1668%205.99998V9.99998C15.1668%2013.62%2013.6202%2015.1666%2010.0002%2015.1666ZM6.00016%201.83331C2.92683%201.83331%201.8335%202.92665%201.8335%205.99998V9.99998C1.8335%2013.0733%202.92683%2014.1666%206.00016%2014.1666H10.0002C13.0735%2014.1666%2014.1668%2013.0733%2014.1668%209.99998V5.99998C14.1668%202.92665%2013.0735%201.83331%2010.0002%201.83331H6.00016Z'%20fill='white'/%3e%3c/svg%3e",sun:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.99935%2015.8327C13.221%2015.8327%2015.8327%2013.221%2015.8327%209.99935C15.8327%206.77769%2013.221%204.16602%209.99935%204.16602C6.77769%204.16602%204.16602%206.77769%204.16602%209.99935C4.16602%2013.221%206.77769%2015.8327%209.99935%2015.8327Z'%20fill='%23FAD832'/%3e%3cpath%20d='M10.0007%2019.134C9.54232%2019.134%209.16732%2018.7923%209.16732%2018.334V18.2673C9.16732%2017.809%209.54232%2017.434%2010.0007%2017.434C10.459%2017.434%2010.834%2017.809%2010.834%2018.2673C10.834%2018.7257%2010.459%2019.134%2010.0007%2019.134ZM15.9507%2016.784C15.734%2016.784%2015.5257%2016.7007%2015.359%2016.5423L15.2507%2016.434C14.9256%2016.109%2014.9256%2015.584%2015.2507%2015.259C15.5757%2014.934%2016.1006%2014.934%2016.4256%2015.259L16.534%2015.3673C16.859%2015.6923%2016.859%2016.2173%2016.534%2016.5423C16.3757%2016.7007%2016.1673%2016.784%2015.9507%2016.784ZM4.05065%2016.784C3.83398%2016.784%203.62565%2016.7007%203.45898%2016.5423C3.13398%2016.2173%203.13398%2015.6923%203.45898%2015.3673L3.56732%2015.259C3.89232%2014.934%204.41732%2014.934%204.74232%2015.259C5.06732%2015.584%205.06732%2016.109%204.74232%2016.434L4.63398%2016.5423C4.47565%2016.7007%204.25898%2016.784%204.05065%2016.784ZM18.334%2010.834H18.2673C17.809%2010.834%2017.434%2010.459%2017.434%2010.0007C17.434%209.54232%2017.809%209.16732%2018.2673%209.16732C18.7257%209.16732%2019.134%209.54232%2019.134%2010.0007C19.134%2010.459%2018.7923%2010.834%2018.334%2010.834ZM1.73398%2010.834H1.66732C1.20898%2010.834%200.833984%2010.459%200.833984%2010.0007C0.833984%209.54232%201.20898%209.16732%201.66732%209.16732C2.12565%209.16732%202.53398%209.54232%202.53398%2010.0007C2.53398%2010.459%202.19232%2010.834%201.73398%2010.834ZM15.8423%204.99232C15.6257%204.99232%2015.4173%204.90898%2015.2507%204.75065C14.9256%204.42565%2014.9256%203.90065%2015.2507%203.57565L15.359%203.46732C15.684%203.14232%2016.209%203.14232%2016.534%203.46732C16.859%203.79232%2016.859%204.31732%2016.534%204.64232L16.4256%204.75065C16.2673%204.90898%2016.059%204.99232%2015.8423%204.99232ZM4.15898%204.99232C3.94232%204.99232%203.73398%204.90898%203.56732%204.75065L3.45898%204.63398C3.13398%204.30898%203.13398%203.78398%203.45898%203.45898C3.78398%203.13398%204.30898%203.13398%204.63398%203.45898L4.74232%203.56732C5.06732%203.89232%205.06732%204.41732%204.74232%204.74232C4.58398%204.90898%204.36732%204.99232%204.15898%204.99232ZM10.0007%202.53398C9.54232%202.53398%209.16732%202.19232%209.16732%201.73398V1.66732C9.16732%201.20898%209.54232%200.833984%2010.0007%200.833984C10.459%200.833984%2010.834%201.20898%2010.834%201.66732C10.834%202.12565%2010.459%202.53398%2010.0007%202.53398Z'%20fill='%23FAD832'/%3e%3c/svg%3e",subtitleFill:"data:image/svg+xml,%3csvg%20width='18'%20height='16'%20viewBox='0%200%2018%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1.55605%201.58869C2.4097%200.672867%203.63139%200.151733%205.09542%200.151733H12.9053C14.3732%200.151733%2015.5952%200.672683%2016.4483%201.58885C17.2983%202.50166%2017.7508%203.77289%2017.7508%205.22246V10.7792C17.7508%2012.2288%2017.2983%2013.5%2016.4482%2014.4129C15.595%2015.329%2014.3727%2015.85%2012.9044%2015.85H5.09542C3.62761%2015.85%202.40569%2015.329%201.55282%2014.4128C0.703099%2013.5%200.250824%2012.2287%200.250824%2010.7792V5.22246C0.250824%203.77242%200.705432%202.50128%201.55605%201.58869ZM14.3827%205.87049C13.2061%204.69387%2011.2978%204.69417%2010.1207%205.87028C8.94399%207.04688%208.94407%208.95529%2010.1202%2010.1325C11.2974%2011.3086%2013.2061%2011.3094%2014.3827%2010.1328C14.6267%209.88871%2014.6267%209.49296%2014.3827%209.24888C14.1386%209.00479%2013.7428%209.00479%2013.4988%209.24888C12.8107%209.93704%2011.6937%209.93738%2011.0043%209.24888C10.3158%208.55954%2010.3162%207.44279%2011.0041%206.75462C11.6935%206.06583%2012.8106%206.06614%2013.4988%206.75438C13.7428%206.99846%2014.1386%206.99846%2014.3827%206.75438C14.6267%206.51029%2014.6267%206.11457%2014.3827%205.87049ZM5.20517%206.75454C5.82661%206.12646%206.81647%206.07034%207.50899%206.59638C7.78382%206.80521%208.17591%206.75163%208.38474%206.47671C8.59349%206.20188%208.53999%205.80979%208.26507%205.60099C7.08453%204.70423%205.39123%204.79152%204.31885%205.87306C3.13605%207.04688%203.13987%208.95613%204.31896%2010.1352C5.39081%2011.207%207.08204%2011.2945%208.26199%2010.4095C8.53816%2010.2024%208.59416%209.81063%208.38699%209.53454C8.17991%209.25838%207.78816%209.20238%207.51199%209.40946C6.81814%209.92988%205.82469%209.87321%205.20284%209.25138C4.5088%208.55729%204.51188%207.44121%205.2007%206.75896L5.20517%206.75454Z'%20fill='white'/%3e%3c/svg%3e",subtitleOutline:"data:image/svg+xml,%3csvg%20width='18'%20height='17'%20viewBox='0%200%2018%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.3817%207.54529C14.1375%207.78953%2013.7416%207.78953%2013.4983%207.54529C12.8099%206.85699%2011.6925%206.85699%2011.0032%207.54529C10.3151%208.23362%2010.3151%209.35112%2011.0032%2010.0403C11.6925%2010.7286%2012.8099%2010.7278%2013.4983%2010.0403C13.7416%209.79612%2014.1375%209.79612%2014.3817%2010.0403C14.6259%2010.2836%2014.6259%2010.6795%2014.3817%2010.9236C13.205%2012.1003%2011.2966%2012.1003%2010.1199%2010.9245L10.5137%2010.5297L10.119%2010.9236C8.94345%209.74612%208.94345%207.83779%2010.119%206.66193L10.5617%207.10362L10.1199%206.66112C11.2966%205.48528%2013.205%205.48528%2014.3817%206.66193C14.6259%206.90526%2014.6259%207.30112%2014.3817%207.54529Z'%20fill='white'/%3e%3cpath%20d='M8.38602%2010.3253C8.59352%2010.6019%208.53735%2010.9936%208.26069%2011.2003C7.08067%2012.0853%205.39%2011.9978%204.31822%2010.9261C3.1382%209.7461%203.13495%207.83527%204.31985%206.66191C5.39285%205.58251%207.08433%205.49553%208.26435%206.39193C8.53902%206.60108%208.59227%206.99277%208.38394%207.26779C8.17486%207.54277%207.78335%207.5961%207.50835%207.38777C6.81578%206.86109%205.82579%206.9178%205.20404%207.54527L5.19997%207.55026C4.51068%208.23193%204.50824%209.3486%205.2016%2010.0428C5.82415%2010.6644%206.81741%2010.7211%207.51077%2010.2003C7.78744%209.9936%208.17927%2010.0494%208.38602%2010.3253Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.09499%200.734375C3.57929%200.734375%202.29999%201.2752%201.40236%202.23772C0.510029%203.19521%200.041687%204.52023%200.041687%206.01356V11.5702C0.041687%2013.0627%200.507587%2014.3877%201.39911%2015.346C2.29592%2016.3085%203.57521%2016.8494%205.09499%2016.8494H12.9034C14.4232%2016.8494%2015.7033%2016.3085%2016.6001%2015.346C17.4916%2014.3877%2017.9584%2013.0627%2017.9584%2011.5702V6.01356C17.9584%204.52105%2017.4916%203.19608%2016.6001%202.23772C15.7033%201.2752%2014.424%200.734375%2012.9043%200.734375H5.09499ZM1.29169%206.01356C1.29169%204.77938%201.6758%203.77774%202.31749%203.09023C2.95347%202.40689%203.88853%201.98438%205.09499%201.98438H12.9043C14.1152%201.98438%2015.0499%202.4077%2015.685%203.08937C16.325%203.77688%2016.7084%204.77938%2016.7084%206.01356V11.5702C16.7084%2012.8044%2016.325%2013.8069%2015.685%2014.4935C15.0499%2015.176%2014.1144%2015.5994%2012.9034%2015.5994H5.09499C3.88405%2015.5994%202.949%2015.176%202.31423%2014.4944C1.67499%2013.8069%201.29169%2012.8044%201.29169%2011.5702V6.01356Z'%20fill='white'/%3e%3c/svg%3e",subtitleOutlineGray:"data:image/svg+xml,%3csvg%20width='18'%20height='17'%20viewBox='0%200%2018%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.382%207.54529C14.1378%207.78953%2013.7419%207.78953%2013.4986%207.54529C12.8102%206.85699%2011.6928%206.85699%2011.0035%207.54529C10.3154%208.23362%2010.3154%209.35112%2011.0035%2010.0403C11.6928%2010.7286%2012.8102%2010.7278%2013.4986%2010.0403C13.7419%209.79612%2014.1378%209.79612%2014.382%2010.0403C14.6262%2010.2836%2014.6262%2010.6795%2014.382%2010.9236C13.2053%2012.1003%2011.2969%2012.1003%2010.1202%2010.9245L10.514%2010.5297L10.1193%2010.9236C8.94376%209.74612%208.94376%207.83779%2010.1193%206.66193L10.562%207.10362L10.1202%206.66112C11.2969%205.48528%2013.2053%205.48528%2014.382%206.66193C14.6262%206.90526%2014.6262%207.30112%2014.382%207.54529Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20d='M8.38633%2010.3253C8.59383%2010.6019%208.53766%2010.9936%208.26099%2011.2003C7.08098%2012.0853%205.3903%2011.9978%204.31853%2010.9261C3.13851%209.7461%203.13525%207.83527%204.32015%206.66191C5.39315%205.58251%207.08463%205.49553%208.26466%206.39193C8.53933%206.60108%208.59258%206.99277%208.38424%207.26779C8.17516%207.54277%207.78366%207.5961%207.50866%207.38777C6.81608%206.86109%205.82609%206.9178%205.20434%207.54527L5.20028%207.55026C4.51098%208.23193%204.50854%209.3486%205.2019%2010.0428C5.82446%2010.6644%206.81771%2010.7211%207.51108%2010.2003C7.78774%209.9936%208.17958%2010.0494%208.38633%2010.3253Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.09529%200.734375C3.57959%200.734375%202.30029%201.2752%201.40267%202.23772C0.510334%203.19521%200.0419922%204.52023%200.0419922%206.01356V11.5702C0.0419922%2013.0627%200.507892%2014.3877%201.39942%2015.346C2.29623%2016.3085%203.57552%2016.8494%205.09529%2016.8494H12.9037C14.4235%2016.8494%2015.7036%2016.3085%2016.6004%2015.346C17.4919%2014.3877%2017.9587%2013.0627%2017.9587%2011.5702V6.01356C17.9587%204.52105%2017.4919%203.19608%2016.6004%202.23772C15.7036%201.2752%2014.4243%200.734375%2012.9046%200.734375H5.09529ZM1.29199%206.01356C1.29199%204.77938%201.67611%203.77774%202.31779%203.09023C2.95378%202.40689%203.88883%201.98438%205.09529%201.98438H12.9046C14.1155%201.98438%2015.0502%202.4077%2015.6853%203.08937C16.3253%203.77688%2016.7087%204.77938%2016.7087%206.01356V11.5702C16.7087%2012.8044%2016.3253%2013.8069%2015.6853%2014.4935C15.0502%2015.176%2014.1147%2015.5994%2012.9037%2015.5994H5.09529C3.88436%2015.5994%202.9493%2015.176%202.31453%2014.4944C1.67529%2013.8069%201.29199%2012.8044%201.29199%2011.5702V6.01356Z'%20fill='black'%20fill-opacity='0.5'/%3e%3c/svg%3e",close:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.66797%202.66675L9.05507%209.05385'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.66797%209.05371L9.05507%202.66661'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e"},kh=()=>(V(({miniPlayer:{play:s}})=>({play:s}),K),S.jsx("div",{className:`${!C(T.isTouchScreen)&&"hover:pl-scale-125"} pl-cursor-pointer pl-transition-transform pl-ease-in-out`,onContextMenu:s=>s.preventDefault(),children:S.jsx("img",{src:C(T.isPlayMiniPlayer)?re.bigPause:re.bigPlay,alt:C(T.isPlayMiniPlayer)?"pause":"play",onClick:s=>Th(s),onDoubleClick:s=>s.stopPropagation(),className:`pl-size-5 ${C(T.isPlayMiniPlayer)?"pl-big-play-icon":"pl-big-pause-icon"}`})}));function Ph(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Xo={exports:{}};(function(s,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(l,c,u){if(u=u||{},l=l.trim(),c=c.trim(),!c){if(!u.alwaysNormalize)return l;var d=o.parseURL(l);if(!d)throw new Error("Error trying to parse base URL.");return d.path=o.normalizePath(d.path),o.buildURLFromParts(d)}var f=o.parseURL(c);if(!f)throw new Error("Error trying to parse relative URL.");if(f.scheme)return u.alwaysNormalize?(f.path=o.normalizePath(f.path),o.buildURLFromParts(f)):c;var g=o.parseURL(l);if(!g)throw new Error("Error trying to parse base URL.");if(!g.netLoc&&g.path&&g.path[0]!=="/"){var h=r.exec(g.path);g.netLoc=h[1],g.path=h[2]}g.netLoc&&!g.path&&(g.path="/");var m={scheme:g.scheme,netLoc:f.netLoc,path:null,params:f.params,query:f.query,fragment:f.fragment};if(!f.netLoc&&(m.netLoc=g.netLoc,f.path[0]!=="/"))if(!f.path)m.path=g.path,f.params||(m.params=g.params,f.query||(m.query=g.query));else{var p=g.path,E=p.substring(0,p.lastIndexOf("/")+1)+f.path;m.path=o.normalizePath(E)}return m.path===null&&(m.path=u.alwaysNormalize?o.normalizePath(f.path):f.path),o.buildURLFromParts(m)},parseURL:function(l){var c=n.exec(l);return c?{scheme:c[1]||"",netLoc:c[2]||"",path:c[3]||"",params:c[4]||"",query:c[5]||"",fragment:c[6]||""}:null},normalizePath:function(l){for(l=l.split("").reverse().join("").replace(i,"");l.length!==(l=l.replace(a,"")).length;);return l.split("").reverse().join("")},buildURLFromParts:function(l){return l.scheme+l.netLoc+l.path+l.params+l.query+l.fragment}};s.exports=o})()})(Xo);var Br=Xo.exports;function Zo(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(s);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(s,r).enumerable})),t.push.apply(t,n)}return t}function be(s){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Zo(Object(t),!0).forEach(function(n){Fh(s,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):Zo(Object(t)).forEach(function(n){Object.defineProperty(s,n,Object.getOwnPropertyDescriptor(t,n))})}return s}function _h(s,e){if(typeof s!="object"||!s)return s;var t=s[Symbol.toPrimitive];if(t!==void 0){var n=t.call(s,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(s)}function Oh(s){var e=_h(s,"string");return typeof e=="symbol"?e:String(e)}function Fh(s,e,t){return e=Oh(e),e in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function ye(){return ye=Object.assign?Object.assign.bind():function(s){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(s[n]=t[n])}return s},ye.apply(this,arguments)}const H=Number.isFinite||function(s){return typeof s=="number"&&isFinite(s)},Mh=Number.isSafeInteger||function(s){return typeof s=="number"&&Math.abs(s)<=Nh},Nh=Number.MAX_SAFE_INTEGER||9007199254740991;let y=function(s){return s.MEDIA_ATTACHING="hlsMediaAttaching",s.MEDIA_ATTACHED="hlsMediaAttached",s.MEDIA_DETACHING="hlsMediaDetaching",s.MEDIA_DETACHED="hlsMediaDetached",s.BUFFER_RESET="hlsBufferReset",s.BUFFER_CODECS="hlsBufferCodecs",s.BUFFER_CREATED="hlsBufferCreated",s.BUFFER_APPENDING="hlsBufferAppending",s.BUFFER_APPENDED="hlsBufferAppended",s.BUFFER_EOS="hlsBufferEos",s.BUFFER_FLUSHING="hlsBufferFlushing",s.BUFFER_FLUSHED="hlsBufferFlushed",s.MANIFEST_LOADING="hlsManifestLoading",s.MANIFEST_LOADED="hlsManifestLoaded",s.MANIFEST_PARSED="hlsManifestParsed",s.LEVEL_SWITCHING="hlsLevelSwitching",s.LEVEL_SWITCHED="hlsLevelSwitched",s.LEVEL_LOADING="hlsLevelLoading",s.LEVEL_LOADED="hlsLevelLoaded",s.LEVEL_UPDATED="hlsLevelUpdated",s.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",s.LEVELS_UPDATED="hlsLevelsUpdated",s.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",s.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",s.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",s.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",s.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",s.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",s.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",s.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",s.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",s.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",s.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",s.CUES_PARSED="hlsCuesParsed",s.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",s.INIT_PTS_FOUND="hlsInitPtsFound",s.FRAG_LOADING="hlsFragLoading",s.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",s.FRAG_LOADED="hlsFragLoaded",s.FRAG_DECRYPTED="hlsFragDecrypted",s.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",s.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",s.FRAG_PARSING_METADATA="hlsFragParsingMetadata",s.FRAG_PARSED="hlsFragParsed",s.FRAG_BUFFERED="hlsFragBuffered",s.FRAG_CHANGED="hlsFragChanged",s.FPS_DROP="hlsFpsDrop",s.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",s.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",s.ERROR="hlsError",s.DESTROYING="hlsDestroying",s.KEY_LOADING="hlsKeyLoading",s.KEY_LOADED="hlsKeyLoaded",s.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",s.BACK_BUFFER_REACHED="hlsBackBufferReached",s.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",s}({}),Z=function(s){return s.NETWORK_ERROR="networkError",s.MEDIA_ERROR="mediaError",s.KEY_SYSTEM_ERROR="keySystemError",s.MUX_ERROR="muxError",s.OTHER_ERROR="otherError",s}({}),k=function(s){return s.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",s.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",s.KEY_SYSTEM_NO_SESSION="keySystemNoSession",s.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",s.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",s.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",s.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",s.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",s.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",s.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",s.MANIFEST_LOAD_ERROR="manifestLoadError",s.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",s.MANIFEST_PARSING_ERROR="manifestParsingError",s.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",s.LEVEL_EMPTY_ERROR="levelEmptyError",s.LEVEL_LOAD_ERROR="levelLoadError",s.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",s.LEVEL_PARSING_ERROR="levelParsingError",s.LEVEL_SWITCH_ERROR="levelSwitchError",s.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",s.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",s.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",s.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",s.FRAG_LOAD_ERROR="fragLoadError",s.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",s.FRAG_DECRYPT_ERROR="fragDecryptError",s.FRAG_PARSING_ERROR="fragParsingError",s.FRAG_GAP="fragGap",s.REMUX_ALLOC_ERROR="remuxAllocError",s.KEY_LOAD_ERROR="keyLoadError",s.KEY_LOAD_TIMEOUT="keyLoadTimeOut",s.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",s.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",s.BUFFER_APPEND_ERROR="bufferAppendError",s.BUFFER_APPENDING_ERROR="bufferAppendingError",s.BUFFER_STALLED_ERROR="bufferStalledError",s.BUFFER_FULL_ERROR="bufferFullError",s.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",s.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",s.INTERNAL_EXCEPTION="internalException",s.INTERNAL_ABORTED="aborted",s.UNKNOWN="unknown",s}({});const Pt=function(){},Ur={trace:Pt,debug:Pt,log:Pt,warn:Pt,info:Pt,error:Pt};let ys=Ur;function Bh(s){const e=self.console[s];return e?e.bind(self.console,`[${s}] >`):Pt}function Uh(s,...e){e.forEach(function(t){ys[t]=s[t]?s[t].bind(s):Bh(t)})}function $h(s,e){if(typeof console=="object"&&s===!0||typeof s=="object"){Uh(s,"debug","log","info","warn","error");try{ys.log(`Debug logs enabled for "${e}" in hls.js version 1.5.20`)}catch{ys=Ur}}else ys=Ur}const L=ys,Vh=/^(\d+)x(\d+)$/,Qo=/(.+?)=(".*?"|.*?)(?:,|$)/g;class pe{constructor(e){typeof e=="string"&&(e=pe.parseAttrList(e)),ye(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 n=new Uint8Array(t.length/2);for(let r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(r*2,r*2+2),16);return n}else 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 n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}bool(e){return this[e]==="YES"}decimalResolution(e){const t=Vh.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e){let t;const n={},r='"';for(Qo.lastIndex=0;(t=Qo.exec(e))!==null;){let i=t[2];i.indexOf(r)===0&&i.lastIndexOf(r)===i.length-1&&(i=i.slice(1,-1));const a=t[1].trim();n[a]=i}return n}}function Gh(s){return s!=="ID"&&s!=="CLASS"&&s!=="START-DATE"&&s!=="DURATION"&&s!=="END-DATE"&&s!=="END-ON-NEXT"}function Hh(s){return s==="SCTE35-OUT"||s==="SCTE35-IN"}class Jo{constructor(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){const n=t.attr;for(const r in n)if(Object.prototype.hasOwnProperty.call(e,r)&&e[r]!==n[r]){L.warn(`DATERANGE tag attribute: "${r}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=r;break}e=ye(new pe({}),n,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const n=new Date(this.attr["END-DATE"]);H(n.getTime())&&(this._endDate=n)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get startDate(){return this._startDate}get endDate(){if(this._endDate)return this._endDate;const e=this.duration;return e!==null?new Date(this._startDate.getTime()+e*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(H(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 isValid(){return!!this.id&&!this._badValueForSameId&&H(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class hn{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}}}var le={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class el{constructor(e){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[le.AUDIO]:null,[le.VIDEO]:null,[le.AUDIOVIDEO]:null},this.baseurl=e}setByteRange(e,t){const n=e.split("@",2);let r;n.length===1?r=(t==null?void 0:t.byteRangeEndOffset)||0:r=parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}get byteRange(){return this._byteRange?this._byteRange:[]}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Br.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class $r extends el{constructor(e,t){super(t),this._decryptdata=null,this.rawProgramDateTime=null,this.programDateTime=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.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.stats=new hn,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 decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const n=Object.keys(this.levelkeys);if(n.length===1)return this._decryptdata=this.levelkeys[n[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null||!H(this.programDateTime))return null;const e=H(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){const t=Object.keys(this.levelkeys),n=t.length;if(n>1||n===1&&this.levelkeys[t[0]].encrypted)return!0}return!1}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,n,r,i,a=!1){const{elementaryStreams:o}=this,l=o[e];if(!l){o[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:a};return}l.startPTS=Math.min(l.startPTS,t),l.endPTS=Math.max(l.endPTS,n),l.startDTS=Math.min(l.startDTS,r),l.endDTS=Math.max(l.endDTS,i)}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[le.AUDIO]=null,e[le.VIDEO]=null,e[le.AUDIOVIDEO]=null}}class Kh extends el{constructor(e,t,n,r,i){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.stats=new hn,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=r;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)}}const Wh=10;class jh{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.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 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.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,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&n>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay}get hasProgramDateTime(){return this.fragments.length?H(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Wh}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(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[this.fragments.length-1].end: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 lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}function Vr(s){return Uint8Array.from(atob(s),e=>e.charCodeAt(0))}function zh(s){const e=Gr(s).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function qh(s){const e=function(n,r,i){const a=n[r];n[r]=n[i],n[i]=a};e(s,0,3),e(s,1,2),e(s,4,5),e(s,6,7)}function Yh(s){const e=s.split(":");let t=null;if(e[0]==="data"&&e.length===2){const n=e[1].split(";"),r=n[n.length-1].split(",");if(r.length===2){const i=r[0]==="base64",a=r[1];i?(n.splice(-1,1),t=Vr(a)):t=zh(a)}}return t}function Gr(s){return Uint8Array.from(unescape(encodeURIComponent(s)),e=>e.charCodeAt(0))}const jt=typeof self<"u"?self:void 0;var ae={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Me={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Hr(s){switch(s){case Me.FAIRPLAY:return ae.FAIRPLAY;case Me.PLAYREADY:return ae.PLAYREADY;case Me.WIDEVINE:return ae.WIDEVINE;case Me.CLEARKEY:return ae.CLEARKEY}}var pn={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function Kr(s){if(s===pn.WIDEVINE)return ae.WIDEVINE;if(s===pn.PLAYREADY)return ae.PLAYREADY;if(s===pn.CENC||s===pn.CLEARKEY)return ae.CLEARKEY}function Wr(s){switch(s){case ae.FAIRPLAY:return Me.FAIRPLAY;case ae.PLAYREADY:return Me.PLAYREADY;case ae.WIDEVINE:return Me.WIDEVINE;case ae.CLEARKEY:return Me.CLEARKEY}}function gn(s){const{drmSystems:e,widevineLicenseUrl:t}=s,n=e?[ae.FAIRPLAY,ae.WIDEVINE,ae.PLAYREADY,ae.CLEARKEY].filter(r=>!!e[r]):[];return!n[ae.WIDEVINE]&&t&&n.push(ae.WIDEVINE),n}const tl=function(s){return jt!=null&&(s=jt.navigator)!=null&&s.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Xh(s,e,t,n){let r;switch(s){case ae.FAIRPLAY:r=["cenc","sinf"];break;case ae.WIDEVINE:case ae.PLAYREADY:r=["cenc"];break;case ae.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${s}`)}return Zh(r,e,t,n)}function Zh(s,e,t,n){return[{initDataTypes:s,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map(i=>({contentType:`audio/mp4; codecs="${i}"`,robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null})),videoCapabilities:t.map(i=>({contentType:`video/mp4; codecs="${i}"`,robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}))}]}function sl(s){const e=new Uint16Array(s.buffer,s.byteOffset,s.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),n=t.substring(t.indexOf("<"),t.length),a=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("KID")[0];if(a){const o=a.childNodes[0]?a.childNodes[0].nodeValue:a.getAttribute("VALUE");if(o){const l=Vr(o).subarray(0,16);return qh(l),l}}return null}function _t(s,e,t){return Uint8Array.prototype.slice?s.slice(e,t):new Uint8Array(Array.prototype.slice.call(s,e,t))}const jr=(s,e)=>e+10<=s.length&&s[e]===73&&s[e+1]===68&&s[e+2]===51&&s[e+3]<255&&s[e+4]<255&&s[e+6]<128&&s[e+7]<128&&s[e+8]<128&&s[e+9]<128,nl=(s,e)=>e+10<=s.length&&s[e]===51&&s[e+1]===68&&s[e+2]===73&&s[e+3]<255&&s[e+4]<255&&s[e+6]<128&&s[e+7]<128&&s[e+8]<128&&s[e+9]<128,Es=(s,e)=>{const t=e;let n=0;for(;jr(s,e);){n+=10;const r=mn(s,e+6);n+=r,nl(s,e+10)&&(n+=10),e+=n}if(n>0)return s.subarray(t,t+n)},mn=(s,e)=>{let t=0;return t=(s[e]&127)<<21,t|=(s[e+1]&127)<<14,t|=(s[e+2]&127)<<7,t|=s[e+3]&127,t},Qh=(s,e)=>jr(s,e)&&mn(s,e+6)+10<=s.length-e,zr=s=>{const e=il(s);for(let t=0;t<e.length;t++){const n=e[t];if(rl(n))return r2(n)}},rl=s=>s&&s.key==="PRIV"&&s.info==="com.apple.streaming.transportStreamTimestamp",Jh=s=>{const e=String.fromCharCode(s[0],s[1],s[2],s[3]),t=mn(s,4),n=10;return{type:e,size:t,data:s.subarray(n,n+t)}},il=s=>{let e=0;const t=[];for(;jr(s,e);){const n=mn(s,e+6);e+=10;const r=e+n;for(;e+8<r;){const i=Jh(s.subarray(e)),a=e2(i);a&&t.push(a),e+=i.size+10}nl(s,e)&&(e+=10)}return t},e2=s=>s.type==="PRIV"?t2(s):s.type[0]==="W"?n2(s):s2(s),t2=s=>{if(s.size<2)return;const e=Je(s.data,!0),t=new Uint8Array(s.data.subarray(e.length+1));return{key:s.type,info:e,data:t.buffer}},s2=s=>{if(s.size<2)return;if(s.type==="TXXX"){let t=1;const n=Je(s.data.subarray(t),!0);t+=n.length+1;const r=Je(s.data.subarray(t));return{key:s.type,info:n,data:r}}const e=Je(s.data.subarray(1));return{key:s.type,data:e}},n2=s=>{if(s.type==="WXXX"){if(s.size<2)return;let t=1;const n=Je(s.data.subarray(t),!0);t+=n.length+1;const r=Je(s.data.subarray(t));return{key:s.type,info:n,data:r}}const e=Je(s.data);return{key:s.type,data:e}},r2=s=>{if(s.data.byteLength===8){const e=new Uint8Array(s.data),t=e[3]&1;let n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,t&&(n+=4772185884e-2),Math.round(n)}},Je=(s,e=!1)=>{const t=i2();if(t){const c=t.decode(s);if(e){const u=c.indexOf("\0");return u!==-1?c.substring(0,u):c}return c.replace(/\0/g,"")}const n=s.length;let r,i,a,o="",l=0;for(;l<n;){if(r=s[l++],r===0&&e)return o;if(r===0||r===3)continue;switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:o+=String.fromCharCode(r);break;case 12:case 13:i=s[l++],o+=String.fromCharCode((r&31)<<6|i&63);break;case 14:i=s[l++],a=s[l++],o+=String.fromCharCode((r&15)<<12|(i&63)<<6|(a&63)<<0);break}}return o};let qr;function i2(){if(!navigator.userAgent.includes("PlayStation 4"))return!qr&&typeof self.TextDecoder<"u"&&(qr=new self.TextDecoder("utf-8")),qr}const et={hexDump:function(s){let e="";for(let t=0;t<s.length;t++){let n=s[t].toString(16);n.length<2&&(n="0"+n),e+=n}return e}},yn=Math.pow(2,32)-1,a2=[].push,al={video:1,audio:2,id3:3,text:4};function Te(s){return String.fromCharCode.apply(null,s)}function ol(s,e){const t=s[e]<<8|s[e+1];return t<0?65536+t:t}function z(s,e){const t=cl(s,e);return t<0?4294967296+t:t}function ll(s,e){let t=z(s,e);return t*=Math.pow(2,32),t+=z(s,e+4),t}function cl(s,e){return s[e]<<24|s[e+1]<<16|s[e+2]<<8|s[e+3]}function Yr(s,e,t){s[e]=t>>24,s[e+1]=t>>16&255,s[e+2]=t>>8&255,s[e+3]=t&255}function o2(s){const e=s.byteLength;for(let t=0;t<e;){const n=z(s,t);if(n>8&&s[t+4]===109&&s[t+5]===111&&s[t+6]===111&&s[t+7]===102)return!0;t=n>1?t+n:e}return!1}function J(s,e){const t=[];if(!e.length)return t;const n=s.byteLength;for(let r=0;r<n;){const i=z(s,r),a=Te(s.subarray(r+4,r+8)),o=i>1?r+i:n;if(a===e[0])if(e.length===1)t.push(s.subarray(r+8,o));else{const l=J(s.subarray(r+8,o),e.slice(1));l.length&&a2.apply(t,l)}r=o}return t}function l2(s){const e=[],t=s[0];let n=8;const r=z(s,n);n+=4;let i=0,a=0;t===0?(i=z(s,n),a=z(s,n+4),n+=8):(i=ll(s,n),a=ll(s,n+8),n+=16),n+=2;let o=s.length+a;const l=ol(s,n);n+=2;for(let c=0;c<l;c++){let u=n;const d=z(s,u);u+=4;const f=d&2147483647;if((d&2147483648)>>>31===1)return L.warn("SIDX has hierarchical references (not supported)"),null;const h=z(s,u);u+=4,e.push({referenceSize:f,subsegmentDuration:h,info:{duration:h/r,start:o,end:o+f-1}}),o+=f,u+=4,n=u}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:l,references:e}}function ul(s){const e=[],t=J(s,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],a=J(i,["tkhd"])[0];if(a){let o=a[0];const l=z(a,o===0?12:20),c=J(i,["mdia","mdhd"])[0];if(c){o=c[0];const u=z(c,o===0?12:20),d=J(i,["mdia","hdlr"])[0];if(d){const f=Te(d.subarray(8,12)),g={soun:le.AUDIO,vide:le.VIDEO}[f];if(g){const h=J(i,["mdia","minf","stbl","stsd"])[0],m=c2(h);e[l]={timescale:u,type:g},e[g]=be({timescale:u,id:l},m)}}}}}return J(s,["moov","mvex","trex"]).forEach(r=>{const i=z(r,4),a=e[i];a&&(a.default={duration:z(r,12),flags:z(r,20)})}),e}function c2(s){const e=s.subarray(8),t=e.subarray(86),n=Te(e.subarray(4,8));let r=n;const i=n==="enca"||n==="encv";if(i){const o=J(e,[n])[0].subarray(n==="enca"?28:78);J(o,["sinf"]).forEach(c=>{const u=J(c,["schm"])[0];if(u){const d=Te(u.subarray(4,8));if(d==="cbcs"||d==="cenc"){const f=J(c,["frma"])[0];f&&(r=Te(f))}}})}switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const a=J(t,["avcC"])[0];r+="."+En(a[1])+En(a[2])+En(a[3]);break}case"mp4a":{const a=J(e,[n])[0],o=J(a.subarray(28),["esds"])[0];if(o&&o.length>12){let l=4;if(o[l++]!==3)break;l=Xr(o,l),l+=2;const c=o[l++];if(c&128&&(l+=2),c&64&&(l+=o[l++]),o[l++]!==4)break;l=Xr(o,l);const u=o[l++];if(u===64)r+="."+En(u);else break;if(l+=12,o[l++]!==5)break;l=Xr(o,l);const d=o[l++];let f=(d&248)>>3;f===31&&(f+=1+((d&7)<<3)+((o[l]&224)>>5)),r+="."+f}break}case"hvc1":case"hev1":{const a=J(t,["hvcC"])[0],o=a[1],l=["","A","B","C"][o>>6],c=o&31,u=z(a,2),d=(o&32)>>5?"H":"L",f=a[12],g=a.subarray(6,12);r+="."+l+c,r+="."+u.toString(16).toUpperCase(),r+="."+d+f;let h="";for(let m=g.length;m--;){const p=g[m];(p||h)&&(h="."+p.toString(16).toUpperCase()+h)}r+=h;break}case"dvh1":case"dvhe":{const a=J(t,["dvcC"])[0],o=a[2]>>1&127,l=a[2]<<5&32|a[3]>>3&31;r+="."+tt(o)+"."+tt(l);break}case"vp09":{const a=J(t,["vpcC"])[0],o=a[4],l=a[5],c=a[6]>>4&15;r+="."+tt(o)+"."+tt(l)+"."+tt(c);break}case"av01":{const a=J(t,["av1C"])[0],o=a[1]>>>5,l=a[1]&31,c=a[2]>>>7?"H":"M",u=(a[2]&64)>>6,d=(a[2]&32)>>5,f=o===2&&u?d?12:10:u?10:8,g=(a[2]&16)>>4,h=(a[2]&8)>>3,m=(a[2]&4)>>2,p=a[2]&3;r+="."+o+"."+tt(l)+c+"."+tt(f)+"."+g+"."+h+m+p+"."+tt(1)+"."+tt(1)+"."+tt(1)+"."+0;break}}return{codec:r,encrypted:i}}function Xr(s,e){const t=e+5;for(;s[e++]&128&&e<t;);return e}function En(s){return("0"+s.toString(16).toUpperCase()).slice(-2)}function tt(s){return(s<10?"0":"")+s}function u2(s,e){if(!s||!e)return s;const t=e.keyId;return t&&e.isCommonEncryption&&J(s,["moov","trak"]).forEach(r=>{const a=J(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let o=J(a,["enca"]);const l=o.length>0;l||(o=J(a,["encv"])),o.forEach(c=>{const u=l?c.subarray(28):c.subarray(78);J(u,["sinf"]).forEach(f=>{const g=dl(f);if(g){const h=g.subarray(8,24);h.some(m=>m!==0)||(L.log(`[eme] Patching keyId in 'enc${l?"a":"v"}>sinf>>tenc' box: ${et.hexDump(h)} -> ${et.hexDump(t)}`),g.set(t,8))}})})}),s}function dl(s){const e=J(s,["schm"])[0];if(e){const t=Te(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return J(s,["schi","tenc"])[0]}return null}function d2(s,e){return J(e,["moof","traf"]).reduce((t,n)=>{const r=J(n,["tfdt"])[0],i=r[0],a=J(n,["tfhd"]).reduce((o,l)=>{const c=z(l,4),u=s[c];if(u){let d=z(r,4);if(i===1){if(d===yn)return L.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),o;d*=yn+1,d+=z(r,8)}const f=u.timescale||9e4,g=d/f;if(H(g)&&(o===null||g<o))return g}return o},null);return a!==null&&H(a)&&(t===null||a<t)?a:t},null)}function f2(s,e){let t=0,n=0,r=0;const i=J(s,["moof","traf"]);for(let a=0;a<i.length;a++){const o=i[a],l=J(o,["tfhd"])[0],c=z(l,4),u=e[c];if(!u)continue;const d=u.default,f=z(l,0)|(d==null?void 0:d.flags);let g=d==null?void 0:d.duration;f&8&&(f&2?g=z(l,12):g=z(l,8));const h=u.timescale||9e4,m=J(o,["trun"]);for(let p=0;p<m.length;p++){if(t=h2(m[p]),!t&&g){const E=z(m[p],4);t=g*E}u.type===le.VIDEO?n+=t/h:u.type===le.AUDIO&&(r+=t/h)}}if(n===0&&r===0){let a=1/0,o=0,l=0;const c=J(s,["sidx"]);for(let u=0;u<c.length;u++){const d=l2(c[u]);if(d!=null&&d.references){a=Math.min(a,d.earliestPresentationTime/d.timescale);const f=d.references.reduce((g,h)=>g+h.info.duration||0,0);o=Math.max(o,f+d.earliestPresentationTime/d.timescale),l=o-a}}if(l&&H(l))return l}return n||r}function h2(s){const e=z(s,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let n=0;const r=z(s,4);for(let i=0;i<r;i++){if(e&256){const a=z(s,t);n+=a,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return n}function p2(s,e,t){J(e,["moof","traf"]).forEach(n=>{J(n,["tfhd"]).forEach(r=>{const i=z(r,4),a=s[i];if(!a)return;const o=a.timescale||9e4;J(n,["tfdt"]).forEach(l=>{const c=l[0],u=t*o;if(u){let d=z(l,4);if(c===0)d-=u,d=Math.max(d,0),Yr(l,4,d);else{d*=Math.pow(2,32),d+=z(l,8),d-=u,d=Math.max(d,0);const f=Math.floor(d/(yn+1)),g=Math.floor(d%(yn+1));Yr(l,4,f),Yr(l,8,g)}}})})})}function g2(s){const e={valid:null,remainder:null},t=J(s,["moof"]);if(t.length<2)return e.remainder=s,e;const n=t[t.length-1];return e.valid=_t(s,0,n.byteOffset-8),e.remainder=_t(s,n.byteOffset-8),e}function He(s,e){const t=new Uint8Array(s.length+e.length);return t.set(s),t.set(e,s.length),t}function fl(s,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let a=!1;return J(n,["moof"]).map(l=>{const c=l.byteOffset-8;J(l,["traf"]).map(d=>{const f=J(d,["tfdt"]).map(g=>{const h=g[0];let m=z(g,4);return h===1&&(m*=Math.pow(2,32),m+=z(g,8)),m/r})[0];return f!==void 0&&(s=f),J(d,["tfhd"]).map(g=>{const h=z(g,4),m=z(g,0)&16777215,p=(m&1)!==0,E=(m&2)!==0,x=(m&8)!==0;let v=0;const w=(m&16)!==0;let b=0;const I=(m&32)!==0;let A=8;h===i&&(p&&(A+=8),E&&(A+=4),x&&(v=z(g,A),A+=4),w&&(b=z(g,A),A+=4),I&&(A+=4),e.type==="video"&&(a=m2(e.codec)),J(d,["trun"]).map(F=>{const U=F[0],O=z(F,0)&16777215,B=(O&1)!==0;let Y=0;const $=(O&4)!==0,j=(O&256)!==0;let Q=0;const X=(O&512)!==0;let ne=0;const ue=(O&1024)!==0,W=(O&2048)!==0;let G=0;const ie=z(F,4);let te=8;B&&(Y=z(F,te),te+=4),$&&(te+=4);let ce=Y+c;for(let Ee=0;Ee<ie;Ee++){if(j?(Q=z(F,te),te+=4):Q=v,X?(ne=z(F,te),te+=4):ne=b,ue&&(te+=4),W&&(U===0?G=z(F,te):G=cl(F,te),te+=4),e.type===le.VIDEO){let Le=0;for(;Le<ne;){const Re=z(n,ce);if(ce+=4,y2(a,n[ce])){const je=n.subarray(ce,ce+Re);hl(je,a?2:1,s+G/r,t)}ce+=Re,Le+=Re+4}}s+=Q/r}}))})})}),t}function m2(s){if(!s)return!1;const e=s.indexOf("."),t=e<0?s:s.substring(0,e);return t==="hvc1"||t==="hev1"||t==="dvh1"||t==="dvhe"}function y2(s,e){if(s){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function hl(s,e,t,n){const r=pl(s);let i=0;i+=e;let a=0,o=0,l=0;for(;i<r.length;){a=0;do{if(i>=r.length)break;l=r[i++],a+=l}while(l===255);o=0;do{if(i>=r.length)break;l=r[i++],o+=l}while(l===255);const c=r.length-i;let u=i;if(o<c)i+=o;else if(o>c){L.error(`Malformed SEI payload. ${o} is too small, only ${c} bytes left to parse.`);break}if(a===4){if(r[u++]===181){const f=ol(r,u);if(u+=2,f===49){const g=z(r,u);if(u+=4,g===1195456820){const h=r[u++];if(h===3){const m=r[u++],p=31&m,E=64&m,x=E?2+p*3:0,v=new Uint8Array(x);if(E){v[0]=m;for(let w=1;w<x;w++)v[w]=r[u++]}n.push({type:h,payloadType:a,pts:t,bytes:v})}}}}}else if(a===5&&o>16){const d=[];for(let h=0;h<16;h++){const m=r[u++].toString(16);d.push(m.length==1?"0"+m:m),(h===3||h===5||h===7||h===9)&&d.push("-")}const f=o-16,g=new Uint8Array(f);for(let h=0;h<f;h++)g[h]=r[u++];n.push({payloadType:a,pts:t,uuid:d.join(""),userData:Je(g),userDataBytes:g})}}}function pl(s){const e=s.byteLength,t=[];let n=1;for(;n<e-2;)s[n]===0&&s[n+1]===0&&s[n+2]===3?(t.push(n+2),n+=2):n++;if(t.length===0)return s;const r=e-t.length,i=new Uint8Array(r);let a=0;for(n=0;n<r;a++,n++)a===t[0]&&(a++,t.shift()),i[n]=s[a];return i}function E2(s){const e=s[0];let t="",n="",r=0,i=0,a=0,o=0,l=0,c=0;if(e===0){for(;Te(s.subarray(c,c+1))!=="\0";)t+=Te(s.subarray(c,c+1)),c+=1;for(t+=Te(s.subarray(c,c+1)),c+=1;Te(s.subarray(c,c+1))!=="\0";)n+=Te(s.subarray(c,c+1)),c+=1;n+=Te(s.subarray(c,c+1)),c+=1,r=z(s,12),i=z(s,16),o=z(s,20),l=z(s,24),c=28}else if(e===1){c+=4,r=z(s,c),c+=4;const d=z(s,c);c+=4;const f=z(s,c);for(c+=4,a=2**32*d+f,Mh(a)||(a=Number.MAX_SAFE_INTEGER,L.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),o=z(s,c),c+=4,l=z(s,c),c+=4;Te(s.subarray(c,c+1))!=="\0";)t+=Te(s.subarray(c,c+1)),c+=1;for(t+=Te(s.subarray(c,c+1)),c+=1;Te(s.subarray(c,c+1))!=="\0";)n+=Te(s.subarray(c,c+1)),c+=1;n+=Te(s.subarray(c,c+1)),c+=1}const u=s.subarray(c,s.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:a,presentationTimeDelta:i,eventDuration:o,id:l,payload:u}}function S2(s,...e){const t=e.length;let n=8,r=t;for(;r--;)n+=e[r].byteLength;const i=new Uint8Array(n);for(i[0]=n>>24&255,i[1]=n>>16&255,i[2]=n>>8&255,i[3]=n&255,i.set(s,4),r=0,n=8;r<t;r++)i.set(e[r],n),n+=e[r].byteLength;return i}function T2(s,e,t){if(s.byteLength!==16)throw new RangeError("Invalid system id");let n,r;n=0,r=new Uint8Array;let i;n>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&&t.byteLength>0&&new DataView(a.buffer).setUint32(0,t.byteLength,!1),S2([112,115,115,104],new Uint8Array([n,0,0,0]),s,i,r,a,t||new Uint8Array)}function x2(s){const e=[];if(s instanceof ArrayBuffer){const t=s.byteLength;let n=0;for(;n+32<t;){const r=new DataView(s,n),i=v2(r);e.push(i),n+=i.size}}return e}function v2(s){const e=s.getUint32(0),t=s.byteOffset,n=s.byteLength;if(n<e)return{offset:t,size:n};if(s.getUint32(4)!==1886614376)return{offset:t,size:e};const i=s.getUint32(8)>>>24;if(i!==0&&i!==1)return{offset:t,size:e};const a=s.buffer,o=et.hexDump(new Uint8Array(a,t+12,16)),l=s.getUint32(28);let c=null,u=null;if(i===0){if(e-32<l||l<22)return{offset:t,size:e};u=new Uint8Array(a,t+32,l)}else if(i===1){if(!l||n<t+32+l*16+16)return{offset:t,size:e};c=[];for(let d=0;d<l;d++)c.push(new Uint8Array(a,t+32+d*16,16))}return{version:i,systemId:o,kids:c,data:u,offset:t,size:e}}let Sn={};class Ss{static clearKeyUriToKeyIdMap(){Sn={}}constructor(e,t,n,r=[1],i=null){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.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&e!=="AES-128"}isSupported(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Me.FAIRPLAY:case Me.WIDEVINE:case Me.PLAYREADY:case Me.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof e!="number"&&(this.method==="AES-128"&&!this.iv&&L.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const n=b2(e);return new Ss(this.method,this.uri,"identity",this.keyFormatVersions,n)}const t=Yh(this.uri);if(t)switch(this.keyFormat){case Me.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Me.PLAYREADY:{const n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=T2(n,null,t),this.keyId=sl(t);break}default:{let n=t.subarray(0,16);if(n.length!==16){const r=new Uint8Array(16);r.set(n,16-n.length),n=r}this.keyId=n;break}}if(!this.keyId||this.keyId.byteLength!==16){let n=Sn[this.uri];if(!n){const r=Object.keys(Sn).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),Sn[this.uri]=n}this.keyId=n}return this}}function b2(s){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=s>>8*(15-t)&255;return e}const gl=/\{\$([a-zA-Z0-9-_]+)\}/g;function ml(s){return gl.test(s)}function Ne(s,e,t){if(s.variableList!==null||s.hasVariableRefs)for(let n=t.length;n--;){const r=t[n],i=e[r];i&&(e[r]=Zr(s,i))}}function Zr(s,e){if(s.variableList!==null||s.hasVariableRefs){const t=s.variableList;return e.replace(gl,n=>{const r=n.substring(2,n.length-1),i=t==null?void 0:t[r];return i===void 0?(s.playlistParsingError||(s.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),n):i})}return e}function yl(s,e,t){let n=s.variableList;n||(s.variableList=n={});let r,i;if("QUERYPARAM"in e){r=e.QUERYPARAM;try{const a=new self.URL(t).searchParams;if(a.has(r))i=a.get(r);else throw new Error(`"${r}" does not match any query parameter in URI: "${t}"`)}catch(a){s.playlistParsingError||(s.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${a.message}`))}}else r=e.NAME,i=e.VALUE;r in n?s.playlistParsingError||(s.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):n[r]=i||""}function C2(s,e,t){const n=e.IMPORT;if(t&&n in t){let r=s.variableList;r||(s.variableList=r={}),r[n]=t[n]}else s.playlistParsingError||(s.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}function Ot(s=!0){return typeof self>"u"?void 0:(s||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function w2(s){return typeof self<"u"&&s===self.ManagedMediaSource}const Tn={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,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}};function L2(s,e){const t=Tn[e];return!!t&&!!t[s.slice(0,4)]}function Qr(s,e,t=!0){return!s.split(",").some(n=>!El(n,e,t))}function El(s,e,t=!0){var n;const r=Ot(t);return(n=r==null?void 0:r.isTypeSupported(Ts(s,e)))!=null?n:!1}function Ts(s,e){return`${e}/mp4;codecs="${s}"`}function Sl(s){if(s){const e=s.substring(0,4);return Tn.video[e]}return 2}function xn(s){return s.split(",").reduce((e,t)=>{const n=Tn.video[t];return n?(n*2+e)/(e?3:2):(Tn.audio[t]+e)/(e?2:1)},0)}const Jr={};function A2(s,e=!0){if(Jr[s])return Jr[s];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[s];for(let n=0;n<t.length;n++)if(El(t[n],"audio",e))return Jr[s]=t[n],t[n];return s}const D2=/flac|opus/i;function vn(s,e=!0){return s.replace(D2,t=>A2(t.toLowerCase(),e))}function Tl(s,e){return s&&s!=="mp4a"?s:e&&e.split(",")[0]}function I2(s){const e=s.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(".");if(n.length>2){let r=n.shift()+".";r+=parseInt(n.shift()).toString(16),r+=("000"+parseInt(n.shift()).toString(16)).slice(-4),e[t]=r}}return e.join(",")}const xl=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,vl=/#EXT-X-MEDIA:(.*)/g,R2=/^#EXT(?:INF|-X-TARGETDURATION):/m,bl=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),k2=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(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)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class st{static findGroup(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.id===t)return r}}static resolve(e,t){return Br.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return R2.test(e)}static parseMasterPlaylist(e,t){const n=ml(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];xl.lastIndex=0;let a;for(;(a=xl.exec(e))!=null;)if(a[1]){var o;const c=new pe(a[1]);Ne(r,c,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const u=Zr(r,a[2]),d={attrs:c,bitrate:c.decimalInteger("BANDWIDTH")||c.decimalInteger("AVERAGE-BANDWIDTH"),name:c.NAME,url:st.resolve(u,t)},f=c.decimalResolution("RESOLUTION");f&&(d.width=f.width,d.height=f.height),P2(c.CODECS,d),(o=d.unknownCodecs)!=null&&o.length||i.push(d),r.levels.push(d)}else if(a[3]){const c=a[3],u=a[4];switch(c){case"SESSION-DATA":{const d=new pe(u);Ne(r,d,["DATA-ID","LANGUAGE","VALUE","URI"]);const f=d["DATA-ID"];f&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[f]=d);break}case"SESSION-KEY":{const d=Cl(u,t,r);d.encrypted&&d.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(d)):L.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${u}"`);break}case"DEFINE":{{const d=new pe(u);Ne(r,d,["NAME","VALUE","QUERYPARAM"]),yl(r,d,t)}break}case"CONTENT-STEERING":{const d=new pe(u);Ne(r,d,["SERVER-URI","PATHWAY-ID"]),r.contentSteering={uri:st.resolve(d["SERVER-URI"],t),pathwayId:d["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=wl(u);break}}}const l=i.length>0&&i.length<r.levels.length;return r.levels=l?i:r.levels,r.levels.length===0&&(r.playlistParsingError=new Error("no levels found in manifest")),r}static parseMasterPlaylistMedia(e,t,n){let r;const i={},a=n.levels,o={AUDIO:a.map(c=>({id:c.attrs.AUDIO,audioCodec:c.audioCodec})),SUBTITLES:a.map(c=>({id:c.attrs.SUBTITLES,textCodec:c.textCodec})),"CLOSED-CAPTIONS":[]};let l=0;for(vl.lastIndex=0;(r=vl.exec(e))!==null;){const c=new pe(r[1]),u=c.TYPE;if(u){const d=o[u],f=i[u]||[];i[u]=f,Ne(n,c,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const g=c.LANGUAGE,h=c["ASSOC-LANGUAGE"],m=c.CHANNELS,p=c.CHARACTERISTICS,E=c["INSTREAM-ID"],x={attrs:c,bitrate:0,id:l++,groupId:c["GROUP-ID"]||"",name:c.NAME||g||"",type:u,default:c.bool("DEFAULT"),autoselect:c.bool("AUTOSELECT"),forced:c.bool("FORCED"),lang:g,url:c.URI?st.resolve(c.URI,t):""};if(h&&(x.assocLang=h),m&&(x.channels=m),p&&(x.characteristics=p),E&&(x.instreamId=E),d!=null&&d.length){const v=st.findGroup(d,x.groupId)||d[0];Ll(x,v,"audioCodec"),Ll(x,v,"textCodec")}f.push(x)}}return i}static parseLevelPlaylist(e,t,n,r,i,a){const o=new jh(t),l=o.fragments;let c=null,u=0,d=0,f=0,g=0,h=null,m=new $r(r,t),p,E,x,v=-1,w=!1,b=null;for(bl.lastIndex=0,o.m3u8=e,o.hasVariableRefs=ml(e);(p=bl.exec(e))!==null;){w&&(w=!1,m=new $r(r,t),m.start=f,m.sn=u,m.cc=g,m.level=n,c&&(m.initSegment=c,m.rawProgramDateTime=c.rawProgramDateTime,c.rawProgramDateTime=null,b&&(m.setByteRange(b),b=null)));const U=p[1];if(U){m.duration=parseFloat(U);const O=(" "+p[2]).slice(1);m.title=O||null,m.tagList.push(O?["INF",U,O]:["INF",U])}else if(p[3]){if(H(m.duration)){m.start=f,x&&Il(m,x,o),m.sn=u,m.level=n,m.cc=g,l.push(m);const O=(" "+p[3]).slice(1);m.relurl=Zr(o,O),Al(m,h),h=m,f+=m.duration,u++,d=0,w=!0}}else if(p[4]){const O=(" "+p[4]).slice(1);h?m.setByteRange(O,h):m.setByteRange(O)}else if(p[5])m.rawProgramDateTime=(" "+p[5]).slice(1),m.tagList.push(["PROGRAM-DATE-TIME",m.rawProgramDateTime]),v===-1&&(v=l.length);else{if(p=p[0].match(k2),!p){L.warn("No matches on slow regex match for level playlist!");continue}for(E=1;E<p.length&&!(typeof p[E]<"u");E++);const O=(" "+p[E]).slice(1),B=(" "+p[E+1]).slice(1),Y=p[E+2]?(" "+p[E+2]).slice(1):"";switch(O){case"PLAYLIST-TYPE":o.type=B.toUpperCase();break;case"MEDIA-SEQUENCE":u=o.startSN=parseInt(B);break;case"SKIP":{const $=new pe(B);Ne(o,$,["RECENTLY-REMOVED-DATERANGES"]);const j=$.decimalInteger("SKIPPED-SEGMENTS");if(H(j)){o.skippedSegments=j;for(let X=j;X--;)l.unshift(null);u+=j}const Q=$.enumeratedString("RECENTLY-REMOVED-DATERANGES");Q&&(o.recentlyRemovedDateranges=Q.split(" "));break}case"TARGETDURATION":o.targetduration=Math.max(parseInt(B),1);break;case"VERSION":o.version=parseInt(B);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":o.live=!1;break;case"#":(B||Y)&&m.tagList.push(Y?[B,Y]:[B]);break;case"DISCONTINUITY":g++,m.tagList.push(["DIS"]);break;case"GAP":m.gap=!0,m.tagList.push([O]);break;case"BITRATE":m.tagList.push([O,B]);break;case"DATERANGE":{const $=new pe(B);Ne(o,$,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Ne(o,$,$.clientAttrs);const j=new Jo($,o.dateRanges[$.ID]);j.isValid||o.skippedSegments?o.dateRanges[j.id]=j:L.warn(`Ignoring invalid DATERANGE tag: "${B}"`),m.tagList.push(["EXT-X-DATERANGE",B]);break}case"DEFINE":{{const $=new pe(B);Ne(o,$,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in $?C2(o,$,a):yl(o,$,t)}break}case"DISCONTINUITY-SEQUENCE":g=parseInt(B);break;case"KEY":{const $=Cl(B,t,o);if($.isSupported()){if($.method==="NONE"){x=void 0;break}x||(x={}),x[$.keyFormat]&&(x=ye({},x)),x[$.keyFormat]=$}else L.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${B}"`);break}case"START":o.startTimeOffset=wl(B);break;case"MAP":{const $=new pe(B);if(Ne(o,$,["BYTERANGE","URI"]),m.duration){const j=new $r(r,t);Dl(j,$,n,x),c=j,m.initSegment=c,c.rawProgramDateTime&&!m.rawProgramDateTime&&(m.rawProgramDateTime=c.rawProgramDateTime)}else{const j=m.byteRangeEndOffset;if(j){const Q=m.byteRangeStartOffset;b=`${j-Q}@${Q}`}else b=null;Dl(m,$,n,x),c=m,w=!0}break}case"SERVER-CONTROL":{const $=new pe(B);o.canBlockReload=$.bool("CAN-BLOCK-RELOAD"),o.canSkipUntil=$.optionalFloat("CAN-SKIP-UNTIL",0),o.canSkipDateRanges=o.canSkipUntil>0&&$.bool("CAN-SKIP-DATERANGES"),o.partHoldBack=$.optionalFloat("PART-HOLD-BACK",0),o.holdBack=$.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const $=new pe(B);o.partTarget=$.decimalFloatingPoint("PART-TARGET");break}case"PART":{let $=o.partList;$||($=o.partList=[]);const j=d>0?$[$.length-1]:void 0,Q=d++,X=new pe(B);Ne(o,X,["BYTERANGE","URI"]);const ne=new Kh(X,m,t,Q,j);$.push(ne),m.duration+=ne.duration;break}case"PRELOAD-HINT":{const $=new pe(B);Ne(o,$,["URI"]),o.preloadHint=$;break}case"RENDITION-REPORT":{const $=new pe(B);Ne(o,$,["URI"]),o.renditionReports=o.renditionReports||[],o.renditionReports.push($);break}default:L.warn(`line parsed but not handled: ${p}`);break}}}h&&!h.relurl?(l.pop(),f-=h.duration,o.partList&&(o.fragmentHint=h)):o.partList&&(Al(m,h),m.cc=g,o.fragmentHint=m,x&&Il(m,x,o));const I=l.length,A=l[0],F=l[I-1];if(f+=o.skippedSegments*o.targetduration,f>0&&I&&F){o.averagetargetduration=f/I;const U=F.sn;o.endSN=U!=="initSegment"?U:0,o.live||(F.endList=!0),A&&(o.startCC=A.cc)}else o.endSN=0,o.startCC=0;return o.fragmentHint&&(f+=o.fragmentHint.duration),o.totalduration=f,o.endCC=g,v>0&&_2(l,v),o}}function Cl(s,e,t){var n,r;const i=new pe(s);Ne(t,i,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const a=(n=i.METHOD)!=null?n:"",o=i.URI,l=i.hexadecimalInteger("IV"),c=i.KEYFORMATVERSIONS,u=(r=i.KEYFORMAT)!=null?r:"identity";o&&i.IV&&!l&&L.error(`Invalid IV: ${i.IV}`);const d=o?st.resolve(o,e):"",f=(c||"1").split("/").map(Number).filter(Number.isFinite);return new Ss(a,d,u,f,l)}function wl(s){const t=new pe(s).decimalFloatingPoint("TIME-OFFSET");return H(t)?t:null}function P2(s,e){let t=(s||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>L2(i,n));r.length&&(e[`${n}Codec`]=r.join(","),t=t.filter(i=>r.indexOf(i)===-1))}),e.unknownCodecs=t}function Ll(s,e,t){const n=e[t];n&&(s[t]=n)}function _2(s,e){let t=s[e];for(let n=e;n--;){const r=s[n];if(!r)return;r.programDateTime=t.programDateTime-r.duration*1e3,t=r}}function Al(s,e){s.rawProgramDateTime?s.programDateTime=Date.parse(s.rawProgramDateTime):e!=null&&e.programDateTime&&(s.programDateTime=e.endProgramDateTime),H(s.programDateTime)||(s.programDateTime=null,s.rawProgramDateTime=null)}function Dl(s,e,t,n){s.relurl=e.URI,e.BYTERANGE&&s.setByteRange(e.BYTERANGE),s.level=t,s.sn="initSegment",n&&(s.levelkeys=n),s.initSegment=null}function Il(s,e,t){s.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(r=>e[r].isCommonEncryption)&&n.push(s)}var se={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},q={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function Rl(s){const{type:e}=s;switch(e){case se.AUDIO_TRACK:return q.AUDIO;case se.SUBTITLE_TRACK:return q.SUBTITLE;default:return q.MAIN}}function ei(s,e){let t=s.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class O2{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(y.LEVEL_LOADING,this.onLevelLoading,this),e.on(y.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(y.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:e}=this;e.off(y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(y.LEVEL_LOADING,this.onLevelLoading,this),e.off(y.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(y.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,r=t.loader,i=n||r,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:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:se.MANIFEST,url:n,deliveryDirectives:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:a,deliveryDirectives:o}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:se.LEVEL,url:a,deliveryDirectives:o})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:a}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:se.AUDIO_TRACK,url:i,deliveryDirectives:a})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:a}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:se.SUBTITLE_TRACK,url:i,deliveryDirectives:a})}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const c=r.context;if(c&&c.url===e.url&&c.level===e.level){L.trace("[playlist-loader]: playlist request ongoing");return}L.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===se.MANIFEST?i=n.manifestLoadPolicy.default:i=ye({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),H((t=e.deliveryDirectives)==null?void 0:t.part)){let c;if(e.type===se.LEVEL&&e.level!==null?c=this.hls.levels[e.level].details:e.type===se.AUDIO_TRACK&&e.id!==null?c=this.hls.audioTracks[e.id].details:e.type===se.SUBTITLE_TRACK&&e.id!==null&&(c=this.hls.subtitleTracks[e.id].details),c){const u=c.partTarget,d=c.targetduration;if(u&&d){const f=Math.max(u*3,d*.8)*1e3;i=ye({},i,{maxTimeToFirstByteMs:Math.min(f,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(f,i.maxTimeToFirstByteMs)})}}}const a=i.errorRetry||i.timeoutRetry||{},o={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},l={onSuccess:(c,u,d,f)=>{const g=this.getInternalLoader(d);this.resetInternalLoader(d.type);const h=c.data;if(h.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(c,d,new Error("no EXTM3U delimiter"),f||null,u);return}u.parsing.start=performance.now(),st.isMediaPlaylist(h)?this.handleTrackOrLevelPlaylist(c,u,d,f||null,g):this.handleMasterPlaylist(c,u,d,f)},onError:(c,u,d,f)=>{this.handleNetworkError(u,d,!1,c,f)},onTimeout:(c,u,d)=>{this.handleNetworkError(u,d,!0,void 0,c)}};r.load(e,o,l)}handleMasterPlaylist(e,t,n,r){const i=this.hls,a=e.data,o=ei(e,n),l=st.parseMasterPlaylist(a,o);if(l.playlistParsingError){this.handleManifestParsingError(e,n,l.playlistParsingError,r,t);return}const{contentSteering:c,levels:u,sessionData:d,sessionKeys:f,startTimeOffset:g,variableList:h}=l;this.variableList=h;const{AUDIO:m=[],SUBTITLES:p,"CLOSED-CAPTIONS":E}=st.parseMasterPlaylistMedia(a,o,l);m.length&&!m.some(v=>!v.url)&&u[0].audioCodec&&!u[0].attrs.AUDIO&&(L.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),m.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new pe({}),bitrate:0,url:""})),i.trigger(y.MANIFEST_LOADED,{levels:u,audioTracks:m,subtitles:p,captions:E,contentSteering:c,url:o,stats:t,networkDetails:r,sessionData:d,sessionKeys:f,startTimeOffset:g,variableList:h})}handleTrackOrLevelPlaylist(e,t,n,r,i){const a=this.hls,{id:o,level:l,type:c}=n,u=ei(e,n),d=0,f=H(l)?l:H(o)?o:0,g=Rl(n),h=st.parseLevelPlaylist(e.data,u,f,g,d,this.variableList);if(c===se.MANIFEST){const m={attrs:new pe({}),bitrate:0,details:h,name:"",url:u};a.trigger(y.MANIFEST_LOADED,{levels:[m],audioTracks:[],url:u,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=h,this.handlePlaylistLoaded(h,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(y.ERROR,{type:Z.NETWORK_ERROR,details:k.MANIFEST_PARSING_ERROR,fatal:t.type===se.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}handleNetworkError(e,t,n=!1,r,i){let a=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===se.LEVEL?a+=`: ${e.level} id: ${e.id}`:(e.type===se.AUDIO_TRACK||e.type===se.SUBTITLE_TRACK)&&(a+=` id: ${e.id} group-id: "${e.groupId}"`);const o=new Error(a);L.warn(`[playlist-loader]: ${a}`);let l=k.UNKNOWN,c=!1;const u=this.getInternalLoader(e);switch(e.type){case se.MANIFEST:l=n?k.MANIFEST_LOAD_TIMEOUT:k.MANIFEST_LOAD_ERROR,c=!0;break;case se.LEVEL:l=n?k.LEVEL_LOAD_TIMEOUT:k.LEVEL_LOAD_ERROR,c=!1;break;case se.AUDIO_TRACK:l=n?k.AUDIO_TRACK_LOAD_TIMEOUT:k.AUDIO_TRACK_LOAD_ERROR,c=!1;break;case se.SUBTITLE_TRACK:l=n?k.SUBTITLE_TRACK_LOAD_TIMEOUT:k.SUBTITLE_LOAD_ERROR,c=!1;break}u&&this.resetInternalLoader(e.type);const d={type:Z.NETWORK_ERROR,details:l,fatal:c,url:e.url,loader:u,context:e,error:o,networkDetails:t,stats:i};if(r){const f=(t==null?void 0:t.url)||e.url;d.response=be({url:f,data:void 0},r)}this.hls.trigger(y.ERROR,d)}handlePlaylistLoaded(e,t,n,r,i,a){const o=this.hls,{type:l,level:c,id:u,groupId:d,deliveryDirectives:f}=r,g=ei(t,r),h=Rl(r),m=typeof r.level=="number"&&h===q.MAIN?c:void 0;if(!e.fragments.length){const E=new Error("No Segments found in Playlist");o.trigger(y.ERROR,{type:Z.NETWORK_ERROR,details:k.LEVEL_EMPTY_ERROR,fatal:!1,url:g,error:E,reason:E.message,response:t,context:r,level:m,parent:h,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const p=e.playlistParsingError;if(p){o.trigger(y.ERROR,{type:Z.NETWORK_ERROR,details:k.LEVEL_PARSING_ERROR,fatal:!1,url:g,error:p,reason:p.message,response:t,context:r,level:m,parent:h,networkDetails:i,stats:n});return}switch(e.live&&a&&(a.getCacheAge&&(e.ageHeader=a.getCacheAge()||0),(!a.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),l){case se.MANIFEST:case se.LEVEL:o.trigger(y.LEVEL_LOADED,{details:e,level:m||0,id:u||0,stats:n,networkDetails:i,deliveryDirectives:f});break;case se.AUDIO_TRACK:o.trigger(y.AUDIO_TRACK_LOADED,{details:e,id:u||0,groupId:d||"",stats:n,networkDetails:i,deliveryDirectives:f});break;case se.SUBTITLE_TRACK:o.trigger(y.SUBTITLE_TRACK_LOADED,{details:e,id:u||0,groupId:d||"",stats:n,networkDetails:i,deliveryDirectives:f});break}}}function kl(s,e){let t;try{t=new Event("addtrack")}catch{t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=s,e.dispatchEvent(t)}function Pl(s,e){const t=s.mode;if(t==="disabled"&&(s.mode="hidden"),s.cues&&!s.cues.getCueById(e.id))try{if(s.addCue(e),!s.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){L.debug(`[texttrack-utils]: ${n}`);try{const r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,s.addCue(r)}catch(r){L.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(s.mode=t)}function zt(s){const e=s.mode;if(e==="disabled"&&(s.mode="hidden"),s.cues)for(let t=s.cues.length;t--;)s.removeCue(s.cues[t]);e==="disabled"&&(s.mode=e)}function ti(s,e,t,n){const r=s.mode;if(r==="disabled"&&(s.mode="hidden"),s.cues&&s.cues.length>0){const i=M2(s.cues,e,t);for(let a=0;a<i.length;a++)(!n||n(i[a]))&&s.removeCue(i[a])}r==="disabled"&&(s.mode=r)}function F2(s,e){if(e<s[0].startTime)return 0;const t=s.length-1;if(e>s[t].endTime)return-1;let n=0,r=t;for(;n<=r;){const i=Math.floor((r+n)/2);if(e<s[i].startTime)r=i-1;else if(e>s[i].startTime&&n<t)n=i+1;else return i}return s[n].startTime-e<e-s[r].startTime?n:r}function M2(s,e,t){const n=[],r=F2(s,e);if(r>-1)for(let i=r,a=s.length;i<a;i++){const o=s[i];if(o.startTime>=e&&o.endTime<=t)n.push(o);else if(o.startTime>t)return n}return n}function bn(s){const e=[];for(let t=0;t<s.length;t++){const n=s[t];(n.kind==="subtitles"||n.kind==="captions")&&n.label&&e.push(s[t])}return e}var qe={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const N2=.25;function si(){if(!(typeof self>"u"))return self.VTTCue||self.TextTrackCue}function _l(s,e,t,n,r){let i=new s(e,t,"");try{i.value=n,r&&(i.type=r)}catch{i=new s(e,t,JSON.stringify(r?be({type:r},n):n))}return i}const Cn=(()=>{const s=si();try{s&&new s(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function ni(s,e){return s.getTime()/1e3-e}function B2(s){return Uint8Array.from(s.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class U2{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}_registerListeners(){const{hls:e}=this;e.on(y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(y.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(y.LEVEL_UPDATED,this.onLevelUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(y.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(y.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(e,t){this.media=t.media}onMediaDetaching(){this.id3Track&&(zt(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const n=e[t];if(n.kind==="metadata"&&n.label==="id3")return kl(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:n,enableID3MetadataCues:r}}}=this;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const a=si();if(a)for(let o=0;o<i.length;o++){const l=i[o].type;if(l===qe.emsg&&!n||!r)continue;const c=il(i[o].data);if(c){const u=i[o].pts;let d=u+i[o].duration;d>Cn&&(d=Cn),d-u<=0&&(d=u+N2);for(let g=0;g<c.length;g++){const h=c[g];if(!rl(h)){this.updateId3CueEnds(u,l);const m=_l(a,u,d,h,l);m&&this.id3Track.addCue(m)}}}}}updateId3CueEnds(e,t){var n;const r=(n=this.id3Track)==null?void 0:n.cues;if(r)for(let i=r.length;i--;){const a=r[i];a.type===t&&a.startTime<e&&a.endTime===Cn&&(a.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:a}=this;if(!a)return;const{config:{enableEmsgMetadataCues:o,enableID3MetadataCues:l}}=a;if(i&&(o||l)){let c;r==="audio"?c=u=>u.type===qe.audioId3&&l:r==="video"?c=u=>u.type===qe.emsg&&o:c=u=>u.type===qe.audioId3&&l||u.type===qe.emsg&&o,ti(i,t,n,c)}}onLevelUpdated(e,{details:t}){if(!this.media||!t.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:n,id3Track:r}=this,{dateRanges:i}=t,a=Object.keys(i);if(r){const u=Object.keys(n).filter(d=>!a.includes(d));for(let d=u.length;d--;){const f=u[d];Object.keys(n[f].cues).forEach(g=>{r.removeCue(n[f].cues[g])}),delete n[f]}}const o=t.fragments[t.fragments.length-1];if(a.length===0||!H(o==null?void 0:o.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const l=o.programDateTime/1e3-o.start,c=si();for(let u=0;u<a.length;u++){const d=a[u],f=i[d],g=ni(f.startDate,l),h=n[d],m=(h==null?void 0:h.cues)||{};let p=(h==null?void 0:h.durationKnown)||!1,E=Cn;const x=f.endDate;if(x)E=ni(x,l),p=!0;else if(f.endOnNext&&!p){const w=a.reduce((b,I)=>{if(I!==f.id){const A=i[I];if(A.class===f.class&&A.startDate>f.startDate&&(!b||f.startDate<b.startDate))return A}return b},null);w&&(E=ni(w.startDate,l),p=!0)}const v=Object.keys(f.attr);for(let w=0;w<v.length;w++){const b=v[w];if(!Gh(b))continue;const I=m[b];if(I)p&&!h.durationKnown&&(I.endTime=E);else if(c){let A=f.attr[b];Hh(b)&&(A=B2(A));const F=_l(c,g,E,{key:b,data:A},qe.dateRange);F&&(F.id=d,this.id3Track.addCue(F),m[b]=F)}}n[d]={cues:m,dateRange:f,durationKnown:p}}}}class $2{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=()=>this.timeupdate(),this.hls=e,this.config=e.config,this.registerListeners()}get latency(){return this._latency||0}get maxLatency(){const{config:e,levelDetails:t}=this;return e.liveMaxLatencyDuration!==void 0?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const{levelDetails:e}=this;if(e===null)return null;const{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:i,liveSyncDurationCount:a,lowLatencyMode:o}=this.config,l=this.hls.userConfig;let c=o&&n||t;(l.liveSyncDuration||l.liveSyncDurationCount||c===0)&&(c=i!==void 0?i:a*r);const u=r;return c+Math.min(this.stallCount*1,u)}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency,n=this.levelDetails;if(e===null||t===null||n===null)return null;const r=n.edge,i=e-t-this.edgeStalled,a=r-n.totalduration,o=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(a,i),o)}get drift(){const{levelDetails:e}=this;return e===null?1:e.drift}get edgeStalled(){const{levelDetails:e}=this;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e,levelDetails:t}=this;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(y.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(y.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(y.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(y.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(y.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(y.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(y.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(y.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(y.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(y.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}onManifestLoading(){this.levelDetails=null,this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){this.levelDetails=t,t.advanced&&this.timeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}onError(e,t){var n;t.details===k.BUFFER_STALLED_ERROR&&(this.stallCount++,(n=this.levelDetails)!=null&&n.live&&L.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}timeupdate(){const{media:e,levelDetails:t}=this;if(!e||!t)return;this.currentTime=e.currentTime;const n=this.computeLatency();if(n===null)return;this._latency=n;const{lowLatencyMode:r,maxLiveSyncPlaybackRate:i}=this.config;if(!r||i===1||!t.live)return;const a=this.targetLatency;if(a===null)return;const o=n-a,l=Math.min(this.maxLatency,a+t.targetduration);if(o<l&&o>.05&&this.forwardBufferLength>1){const u=Math.min(2,Math.max(1,i)),d=Math.round(2/(1+Math.exp(-.75*o-this.edgeStalled))*20)/20;e.playbackRate=Math.min(u,Math.max(1,d))}else e.playbackRate!==1&&e.playbackRate!==0&&(e.playbackRate=1)}estimateLiveEdge(){const{levelDetails:e}=this;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}const ri=["NONE","TYPE-0","TYPE-1",null];function V2(s){return ri.indexOf(s)>-1}const wn=["SDR","PQ","HLG"];function G2(s){return!!s&&wn.indexOf(s)>-1}var Ln={No:"",Yes:"YES",v2:"v2"};function Ol(s){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=s,r=n<e/2;return e&&r?t?Ln.v2:Ln.Yes:Ln.No}class Fl{constructor(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}addDirectives(e){const t=new self.URL(e);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class qt{constructor(e){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.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=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,this.codecSet=[e.videoCodec,e.audioCodec].filter(t=>!!t).map(t=>t.substring(0,4)).join(","),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 Ml(this._audioGroups,e)}hasSubtitleGroup(e){return Ml(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let n=this._audioGroups;n||(n=this._audioGroups=[]),n.indexOf(t)===-1&&n.push(t)}else if(e==="text"){let n=this._subtitleGroups;n||(n=this._subtitleGroups=[]),n.indexOf(t)===-1&&n.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 Ml(s,e){return!e||!s?!1:s.indexOf(e)!==-1}function ii(s,e){const t=e.startPTS;if(H(t)){let n=0,r;e.sn>s.sn?(n=t-s.start,r=s):(n=s.start-t,r=e),r.duration!==n&&(r.duration=n)}else e.sn>s.sn?s.cc===e.cc&&s.minEndPTS?e.start=s.start+(s.minEndPTS-s.start):e.start=s.start+s.duration:e.start=Math.max(s.start-e.duration,0)}function Nl(s,e,t,n,r,i){n-t<=0&&(L.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let o=t,l=n;const c=e.startPTS,u=e.endPTS;if(H(c)){const p=Math.abs(c-t);H(e.deltaPTS)?e.deltaPTS=Math.max(p,e.deltaPTS):e.deltaPTS=p,o=Math.max(t,c),t=Math.min(t,c),r=Math.min(r,e.startDTS),l=Math.min(n,u),n=Math.max(n,u),i=Math.max(i,e.endDTS)}const d=t-e.start;e.start!==0&&(e.start=t),e.duration=n-e.start,e.startPTS=t,e.maxStartPTS=o,e.startDTS=r,e.endPTS=n,e.minEndPTS=l,e.endDTS=i;const f=e.sn;if(!s||f<s.startSN||f>s.endSN)return 0;let g;const h=f-s.startSN,m=s.fragments;for(m[h]=e,g=h;g>0;g--)ii(m[g],m[g-1]);for(g=h;g<m.length-1;g++)ii(m[g],m[g+1]);return s.fragmentHint&&ii(m[m.length-1],s.fragmentHint),s.PTSKnown=s.alignedSliding=!0,d}function H2(s,e){let t=null;const n=s.fragments;for(let o=n.length-1;o>=0;o--){const l=n[o].initSegment;if(l){t=l;break}}s.fragmentHint&&delete s.fragmentHint.endPTS;let r;j2(s,e,(o,l,c,u)=>{if(e.skippedSegments&&l.cc!==o.cc){const d=o.cc-l.cc;for(let f=c;f<u.length;f++)u[f].cc+=d}H(o.startPTS)&&H(o.endPTS)&&(l.start=l.startPTS=o.startPTS,l.startDTS=o.startDTS,l.maxStartPTS=o.maxStartPTS,l.endPTS=o.endPTS,l.endDTS=o.endDTS,l.minEndPTS=o.minEndPTS,l.duration=o.endPTS-o.startPTS,l.duration&&(r=l),e.PTSKnown=e.alignedSliding=!0),l.elementaryStreams=o.elementaryStreams,l.loader=o.loader,l.stats=o.stats,o.initSegment&&(l.initSegment=o.initSegment,t=o.initSegment)});const i=e.fragments;if(t&&(e.fragmentHint?i.concat(e.fragmentHint):i).forEach(l=>{var c;l&&(!l.initSegment||l.initSegment.relurl===((c=t)==null?void 0:c.relurl))&&(l.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=i.some(o=>!o),e.deltaUpdateFailed){L.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let o=e.skippedSegments;o--;)i.shift();e.startSN=i[0].sn}else e.canSkipDateRanges&&(e.dateRanges=K2(s.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=i[i.length-1].cc}W2(s.partList,e.partList,(o,l)=>{l.elementaryStreams=o.elementaryStreams,l.stats=o.stats}),r?Nl(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):Bl(s,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=s.driftStartTime,e.driftStart=s.driftStart;const a=e.advancedDateTime;if(e.advanced&&a){const o=e.edge;e.driftStart||(e.driftStartTime=a,e.driftStart=o),e.driftEndTime=a,e.driftEnd=o}else e.driftEndTime=s.driftEndTime,e.driftEnd=s.driftEnd,e.advancedDateTime=s.advancedDateTime}function K2(s,e,t){const n=ye({},s);return t&&t.forEach(r=>{delete n[r]}),Object.keys(e).forEach(r=>{const i=new Jo(e[r].attr,n[r]);i.isValid?n[r]=i:L.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[r].attr)}"`)}),n}function W2(s,e,t){if(s&&e){let n=0;for(let r=0,i=s.length;r<=i;r++){const a=s[r],o=e[r+n];a&&o&&a.index===o.index&&a.fragment.sn===o.fragment.sn?t(a,o):n--}}}function j2(s,e,t){const n=e.skippedSegments,r=Math.max(s.startSN,e.startSN)-e.startSN,i=(s.fragmentHint?1:0)+(n?e.endSN:Math.min(s.endSN,e.endSN))-e.startSN,a=e.startSN-s.startSN,o=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,l=s.fragmentHint?s.fragments.concat(s.fragmentHint):s.fragments;for(let c=r;c<=i;c++){const u=l[a+c];let d=o[c];n&&!d&&c<n&&(d=e.fragments[c]=u),u&&d&&t(u,d,c,o)}}function Bl(s,e){const t=e.startSN+e.skippedSegments-s.startSN,n=s.fragments;t<0||t>=n.length||ai(e,n[t].start)}function ai(s,e){if(e){const t=s.fragments;for(let n=s.skippedSegments;n<t.length;n++)t[n].start+=e;s.fragmentHint&&(s.fragmentHint.start+=e)}}function z2(s,e=1/0){let t=1e3*s.targetduration;if(s.updated){const n=s.fragments;if(n.length&&t*4>e){const i=n[n.length-1].duration*1e3;i<t&&(t=i)}}else t/=2;return Math.round(t)}function q2(s,e,t){if(!(s!=null&&s.details))return null;const n=s.details;let r=n.fragments[e-n.startSN];return r||(r=n.fragmentHint,r&&r.sn===e)?r:e<n.startSN&&t&&t.sn===e?t:null}function Ul(s,e,t){var n;return s!=null&&s.details?$l((n=s.details)==null?void 0:n.partList,e,t):null}function $l(s,e,t){if(s)for(let n=s.length;n--;){const r=s[n];if(r.index===t&&r.fragment.sn===e)return r}return null}function Vl(s){s.forEach((e,t)=>{const{details:n}=e;n!=null&&n.fragments&&n.fragments.forEach(r=>{r.level=t})})}function An(s){switch(s.details){case k.FRAG_LOAD_TIMEOUT:case k.KEY_LOAD_TIMEOUT:case k.LEVEL_LOAD_TIMEOUT:case k.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Gl(s,e){const t=An(e);return s.default[`${t?"timeout":"error"}Retry`]}function oi(s,e){const t=s.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*s.retryDelayMs,s.maxRetryDelayMs)}function Hl(s){return be(be({},s),{errorRetry:null,timeoutRetry:null})}function Dn(s,e,t,n){if(!s)return!1;const r=n==null?void 0:n.code,i=e<s.maxNumRetry&&(Y2(r)||!!t);return s.shouldRetry?s.shouldRetry(s,e,t,n,i):i}function Y2(s){return s===0&&navigator.onLine===!1||!!s&&(s<400||s>499)}const Kl={search:function(s,e){let t=0,n=s.length-1,r=null,i=null;for(;t<=n;){r=(t+n)/2|0,i=s[r];const a=e(i);if(a>0)t=r+1;else if(a<0)n=r-1;else return i}return null}};function X2(s,e,t){if(e===null||!Array.isArray(s)||!s.length||!H(e))return null;const n=s[0].programDateTime;if(e<(n||0))return null;const r=s[s.length-1].endProgramDateTime;if(e>=(r||0))return null;t=t||0;for(let i=0;i<s.length;++i){const a=s[i];if(Q2(e,t,a))return a}return null}function In(s,e,t=0,n=0,r=.005){let i=null;if(s){i=e[s.sn-e[0].sn+1]||null;const o=s.endDTS-t;o>0&&o<15e-7&&(t+=15e-7)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!s||s.level===i.level)&&li(t,n,i)===0||Z2(i,s,Math.min(r,n))))return i;const a=Kl.search(e,li.bind(null,t,n));return a&&(a!==s||!i)?a:i}function Z2(s,e,t){if(e&&e.start===0&&e.level<s.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((r,i)=>(i[0]==="INF"&&(r+=parseFloat(i[1])),r),t);return s.start<=n}return!1}function li(s=0,e=0,t){if(t.start<=s&&t.start+t.duration>s)return 0;const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-n<=s?1:t.start-n>s&&t.start?-1:0}function Q2(s,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>s}function J2(s,e){return Kl.search(s,t=>t.cc<e?1:t.cc>e?-1:0)}var Ie={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Ye={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class ep{constructor(e){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=e,this.log=L.log.bind(L,"[info]:"),this.warn=L.warn.bind(L,"[warning]:"),this.error=L.error.bind(L,"[error]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(y.ERROR,this.onError,this),e.on(y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(y.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(y.ERROR,this.onError,this),e.off(y.ERROR,this.onErrorOut,this),e.off(y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(y.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===q.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n,r;if(t.fatal)return;const i=this.hls,a=t.context;switch(t.details){case k.FRAG_LOAD_ERROR:case k.FRAG_LOAD_TIMEOUT:case k.KEY_LOAD_ERROR:case k.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case k.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction={action:Ie.DoNothing,flags:Ye.None};return}case k.FRAG_GAP:case k.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Ie.SendAlternateToPenaltyBox;return}case k.LEVEL_EMPTY_ERROR:case k.LEVEL_PARSING_ERROR:{var o,l;const c=t.parent===q.MAIN?t.level:i.loadLevel;t.details===k.LEVEL_EMPTY_ERROR&&((o=t.context)!=null&&(l=o.levelDetails)!=null&&l.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,c):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,c))}return;case k.LEVEL_LOAD_ERROR:case k.LEVEL_LOAD_TIMEOUT:typeof(a==null?void 0:a.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,a.level));return;case k.AUDIO_TRACK_LOAD_ERROR:case k.AUDIO_TRACK_LOAD_TIMEOUT:case k.SUBTITLE_LOAD_ERROR:case k.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){const c=i.levels[i.loadLevel];if(c&&(a.type===se.AUDIO_TRACK&&c.hasAudioGroup(a.groupId)||a.type===se.SUBTITLE_TRACK&&c.hasSubtitleGroup(a.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=Ie.SendAlternateToPenaltyBox,t.errorAction.flags=Ye.MoveAllAlternatesMatchingHost;return}}return;case k.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const c=i.levels[i.loadLevel],u=c==null?void 0:c.attrs["HDCP-LEVEL"];u?t.errorAction={action:Ie.SendAlternateToPenaltyBox,flags:Ye.MoveAllAlternatesMatchingHDCP,hdcpLevel:u}:this.keySystemError(t)}return;case k.BUFFER_ADD_CODEC_ERROR:case k.REMUX_ALLOC_ERROR:case k.BUFFER_APPEND_ERROR:t.errorAction=this.getLevelSwitchAction(t,(r=t.level)!=null?r:i.loadLevel);return;case k.INTERNAL_EXCEPTION:case k.BUFFER_APPENDING_ERROR:case k.BUFFER_FULL_ERROR:case k.LEVEL_SWITCH_ERROR:case k.BUFFER_STALLED_ERROR:case k.BUFFER_SEEK_OVER_HOLE:case k.BUFFER_NUDGE_ON_STALL:t.errorAction={action:Ie.DoNothing,flags:Ye.None};return}t.type===Z.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,r=Gl(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(Dn(r,i,An(e),e.response))return{action:Ie.RetryRequest,flags:Ye.None,retryConfig:r,retryCount:i};const o=this.getLevelSwitchAction(e,t);return r&&(o.retryConfig=r,o.retryCount=i),o}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:a}=t.config,o=Gl(e.details.startsWith("key")?a:i,e),l=t.levels.reduce((u,d)=>u+d.fragmentError,0);if(r&&(e.details!==k.FRAG_GAP&&r.fragmentError++,Dn(o,l,An(e),e.response)))return{action:Ie.RetryRequest,flags:Ye.None,retryConfig:o,retryCount:l};const c=this.getLevelSwitchAction(e,n);return o&&(c.retryConfig=o,c.retryCount=l),c}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,a;const c=e.details;r.loadError++,c===k.BUFFER_APPEND_ERROR&&r.fragmentError++;let u=-1;const{levels:d,loadLevel:f,minAutoLevel:g,maxAutoLevel:h}=n;n.autoLevelEnabled||(n.loadLevel=-1);const m=(i=e.frag)==null?void 0:i.type,E=(m===q.AUDIO&&c===k.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(c===k.BUFFER_ADD_CODEC_ERROR||c===k.BUFFER_APPEND_ERROR))&&d.some(({audioCodec:I})=>r.audioCodec!==I),v=e.sourceBufferName==="video"&&(c===k.BUFFER_ADD_CODEC_ERROR||c===k.BUFFER_APPEND_ERROR)&&d.some(({codecSet:I,audioCodec:A})=>r.codecSet!==I&&r.audioCodec===A),{type:w,groupId:b}=(a=e.context)!=null?a:{};for(let I=d.length;I--;){const A=(I+f)%d.length;if(A!==f&&A>=g&&A<=h&&d[A].loadError===0){var o,l;const F=d[A];if(c===k.FRAG_GAP&&m===q.MAIN&&e.frag){const U=d[A].details;if(U){const O=In(e.frag,U.fragments,e.frag.start);if(O!=null&&O.gap)continue}}else{if(w===se.AUDIO_TRACK&&F.hasAudioGroup(b)||w===se.SUBTITLE_TRACK&&F.hasSubtitleGroup(b))continue;if(m===q.AUDIO&&(o=r.audioGroups)!=null&&o.some(U=>F.hasAudioGroup(U))||m===q.SUBTITLE&&(l=r.subtitleGroups)!=null&&l.some(U=>F.hasSubtitleGroup(U))||E&&r.audioCodec===F.audioCodec||!E&&r.audioCodec!==F.audioCodec||v&&r.codecSet===F.codecSet)continue}u=A;break}}if(u>-1&&n.loadLevel!==u)return e.levelRetry=!0,this.playlistError=0,{action:Ie.SendAlternateToPenaltyBox,flags:Ye.None,nextAutoLevel:u}}return{action:Ie.SendAlternateToPenaltyBox,flags:Ye.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case Ie.DoNothing:break;case Ie.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==k.FRAG_GAP?t.fatal=!0:/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r,hdcpLevel:i,nextAutoLevel:a}=n;switch(r){case Ye.None:this.switchLevel(e,a);break;case Ye.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=ri[ri.indexOf(i)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}n.resolved||this.switchLevel(e,a)}switchLevel(e,t){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)}}class ci{constructor(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=L.log.bind(L,`${t}:`),this.warn=L.warn.bind(L,`${t}:`),this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const r=t==null?void 0:t.renditionReports;if(r){let i=-1;for(let a=0;a<r.length;a++){const o=r[a];let l;try{l=new self.URL(o.URI,t.url).href}catch(c){L.warn(`Could not construct new URL for Rendition Report: ${c}`),l=o.URI||""}if(l===e){i=a;break}else l===e.substring(0,l.length)&&(i=a)}if(i!==-1){const a=r[i],o=parseInt(a["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let l=parseInt(a["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const u=Math.min(t.age-t.partTarget,t.targetduration);l>=0&&u>t.partTarget&&(l+=1)}const c=n&&Ol(n);return new Fl(o,l>=0?l:void 0,c)}}}loadPlaylist(e){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}shouldReloadPlaylist(e){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(e)}playlistLoaded(e,t,n){const{details:r,stats:i}=t,a=self.performance.now(),o=i.loading.first?Math.max(0,a-i.loading.first):0;if(r.advancedDateTime=Date.now()-o,r.live||n!=null&&n.live){if(r.reloaded(n),n&&this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),n&&r.fragments.length>0&&H2(n,r),!this.canLoad||!r.live)return;let l,c,u;if(r.canBlockReload&&r.endSN&&r.advanced){const p=this.hls.config.lowLatencyMode,E=r.lastPartSn,x=r.endSN,v=r.lastPartIndex,w=v!==-1,b=E===x,I=p?0:v;w?(c=b?x+1:E,u=b?I:v+1):c=x+1;const A=r.age,F=A+r.ageHeader;let U=Math.min(F-r.partTarget,r.targetduration*1.5);if(U>0){if(n&&U>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${U} with playlist age: ${r.age}`),U=0;else{const O=Math.floor(U/r.targetduration);if(c+=O,u!==void 0){const B=Math.round(U%r.targetduration/r.partTarget);u+=B}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${A.toFixed(2)}s goal: ${U} skip sn ${O} to part ${u}`)}r.tuneInGoal=U}if(l=this.getDeliveryDirectives(r,t.deliveryDirectives,c,u),p||!b){this.loadPlaylist(l);return}}else(r.canBlockReload||r.canSkipUntil)&&(l=this.getDeliveryDirectives(r,t.deliveryDirectives,c,u));const d=this.hls.mainForwardBufferInfo,f=d?d.end-d.len:0,g=(r.edge-f)*1e3,h=z2(r,g);r.updated&&a>this.requestScheduled+h&&(this.requestScheduled=i.loading.start),c!==void 0&&r.canBlockReload?this.requestScheduled=i.loading.first+h-(r.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+h<a?this.requestScheduled=a:this.requestScheduled-a<=0&&(this.requestScheduled+=h);let m=this.requestScheduled-a;m=Math.max(0,m),this.log(`reload live playlist ${e} in ${Math.round(m)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(l),m)}else this.clearTimer()}getDeliveryDirectives(e,t,n,r){let i=Ol(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=Ln.No),new Fl(n,r,i)}checkRetry(e){const t=e.details,n=An(e),r=e.errorAction,{action:i,retryCount:a=0,retryConfig:o}=r||{},l=!!r&&!!o&&(i===Ie.RetryRequest||!r.resolved&&i===Ie.SendAlternateToPenaltyBox);if(l){var c;if(this.requestScheduled=-1,a>=o.maxNumRetry)return!1;if(n&&(c=e.context)!=null&&c.deliveryDirectives)this.warn(`Retrying playlist loading ${a+1}/${o.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const u=oi(o,a);this.timer=self.setTimeout(()=>this.loadPlaylist(),u),this.warn(`Retrying playlist loading ${a+1}/${o.maxNumRetry} after "${t}" in ${u}ms`)}e.levelRetry=!0,r.resolved=!0}return l}}class Yt{constructor(e,t=0,n=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_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*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 tp{constructor(e,t,n,r=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_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Yt(e),this.fast_=new Yt(t),this.defaultTTFB_=r,this.ttfb_=new Yt(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new Yt(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new Yt(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new Yt(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const n=8*t,r=e/1e3,i=n/r;this.fast_.sample(r,i),this.slow_.sample(r,i)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,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_}destroy(){}}const Wl={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},jl={};function sp(s,e,t,n,r,i){const a=s.audioCodec?s.audioGroups:null,o=i==null?void 0:i.audioCodec,l=i==null?void 0:i.channels,c=l?parseInt(l):o?1/0:2;let u=null;if(a!=null&&a.length)try{a.length===1&&a[0]?u=e.groups[a[0]].channels:u=a.reduce((d,f)=>{if(f){const g=e.groups[f];if(!g)throw new Error(`Audio track group ${f} not found`);Object.keys(g.channels).forEach(h=>{d[h]=(d[h]||0)+g.channels[h]})}return d},{2:0})}catch{return!0}return s.videoCodec!==void 0&&(s.width>1920&&s.height>1088||s.height>1920&&s.width>1088||s.frameRate>Math.max(n,30)||s.videoRange!=="SDR"&&s.videoRange!==t||s.bitrate>Math.max(r,8e6))||!!u&&H(c)&&Object.keys(u).some(d=>parseInt(d)>c)}function np(s,e,t){const n=s.videoCodec,r=s.audioCodec;if(!n||!r||!t)return Promise.resolve(Wl);const i={width:s.width,height:s.height,bitrate:Math.ceil(Math.max(s.bitrate*.9,s.averageBitrate)),framerate:s.frameRate||30},a=s.videoRange;a!=="SDR"&&(i.transferFunction=a.toLowerCase());const o=n.split(",").map(l=>({type:"media-source",video:be(be({},i),{},{contentType:Ts(l,"video")})}));return r&&s.audioGroups&&s.audioGroups.forEach(l=>{var c;l&&((c=e.groups[l])==null||c.tracks.forEach(u=>{if(u.groupId===l){const d=u.channels||"",f=parseFloat(d);H(f)&&f>2&&o.push.apply(o,r.split(",").map(g=>({type:"media-source",audio:{contentType:Ts(g,"audio"),channels:""+f}})))}}))}),Promise.all(o.map(l=>{const c=rp(l);return jl[c]||(jl[c]=t.decodingInfo(l))})).then(l=>({supported:!l.some(c=>!c.supported),configurations:o,decodingInfoResults:l})).catch(l=>({supported:!1,configurations:o,decodingInfoResults:[],error:l}))}function rp(s){const{audio:e,video:t}=s,n=t||e;if(n){const r=n.contentType.split('"')[1];if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${r}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${r}`}return""}function ip(){if(typeof matchMedia=="function"){const s=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(s.media!==e.media)return s.matches===!0}return!1}function ap(s,e){let t=!1,n=[];return s&&(t=s!=="SDR",n=[s]),e&&(n=e.allowedVideoRanges||wn.slice(0),t=e.preferHDR!==void 0?e.preferHDR:ip(),t?n=n.filter(r=>r!=="SDR"):n=["SDR"]),{preferHDR:t,allowedVideoRanges:n}}function op(s,e,t,n,r){const i=Object.keys(s),a=n==null?void 0:n.channels,o=n==null?void 0:n.audioCodec,l=a&&parseInt(a)===2;let c=!0,u=!1,d=1/0,f=1/0,g=1/0,h=0,m=[];const{preferHDR:p,allowedVideoRanges:E}=ap(e,r);for(let b=i.length;b--;){const I=s[i[b]];c=I.channels[2]>0,d=Math.min(d,I.minHeight),f=Math.min(f,I.minFramerate),g=Math.min(g,I.minBitrate);const A=E.filter(F=>I.videoRanges[F]>0);A.length>0&&(u=!0,m=A)}d=H(d)?d:0,f=H(f)?f:0;const x=Math.max(1080,d),v=Math.max(30,f);return g=H(g)?g:t,t=Math.max(g,t),u||(e=void 0,m=[]),{codecSet:i.reduce((b,I)=>{const A=s[I];if(I===b)return b;if(A.minBitrate>t)return ut(I,`min bitrate of ${A.minBitrate} > current estimate of ${t}`),b;if(!A.hasDefaultAudio)return ut(I,"no renditions with default or auto-select sound found"),b;if(o&&I.indexOf(o.substring(0,4))%5!==0)return ut(I,`audio codec preference "${o}" not found`),b;if(a&&!l){if(!A.channels[a])return ut(I,`no renditions with ${a} channel sound found (channels options: ${Object.keys(A.channels)})`),b}else if((!o||l)&&c&&A.channels[2]===0)return ut(I,"no renditions with stereo sound found"),b;return A.minHeight>x?(ut(I,`min resolution of ${A.minHeight} > maximum of ${x}`),b):A.minFramerate>v?(ut(I,`min framerate of ${A.minFramerate} > maximum of ${v}`),b):m.some(F=>A.videoRanges[F]>0)?A.maxScore<h?(ut(I,`max score of ${A.maxScore} < selected max of ${h}`),b):b&&(xn(I)>=xn(b)||A.fragmentError>s[b].fragmentError)?b:(h=A.maxScore,I):(ut(I,`no variants with VIDEO-RANGE of ${JSON.stringify(m)} found`),b)},void 0),videoRanges:m,preferHDR:p,minFramerate:f,minBitrate:g}}function ut(s,e){L.log(`[abr] start candidates with "${s}" ignored because ${e}`)}function lp(s){return s.reduce((e,t)=>{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);const r=t.channels||"2";return n.channels[r]=(n.channels[r]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function cp(s,e,t,n){return s.slice(t,n+1).reduce((r,i)=>{if(!i.codecSet)return r;const a=i.audioGroups;let o=r[i.codecSet];o||(r[i.codecSet]=o={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!a,fragmentError:0}),o.minBitrate=Math.min(o.minBitrate,i.bitrate);const l=Math.min(i.height,i.width);return o.minHeight=Math.min(o.minHeight,l),o.minFramerate=Math.min(o.minFramerate,i.frameRate),o.maxScore=Math.max(o.maxScore,i.score),o.fragmentError+=i.fragmentError,o.videoRanges[i.videoRange]=(o.videoRanges[i.videoRange]||0)+1,a&&a.forEach(c=>{if(!c)return;const u=e.groups[c];u&&(o.hasDefaultAudio=o.hasDefaultAudio||e.hasDefaultAudio?u.hasDefault:u.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(u.channels).forEach(d=>{o.channels[d]=(o.channels[d]||0)+u.channels[d]}))}),r},{})}function nt(s,e,t){if("attrs"in s){const n=e.indexOf(s);if(n!==-1)return n}for(let n=0;n<e.length;n++){const r=e[n];if(Ft(s,r,t))return n}return-1}function Ft(s,e,t){const{groupId:n,name:r,lang:i,assocLang:a,default:o}=s,l=s.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(i===void 0||e.lang===i)&&(i===void 0||e.assocLang===a)&&(o===void 0||e.default===o)&&(l===void 0||e.forced===l)&&(!("characteristics"in s)||up(s.characteristics||"",e.characteristics))&&(t===void 0||t(s,e))}function up(s,e=""){const t=s.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function Mt(s,e){const{audioCodec:t,channels:n}=s;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(n===void 0||n===(e.channels||"2"))}function dp(s,e,t,n,r){const i=e[n],o=e.reduce((f,g,h)=>{const m=g.uri;return(f[m]||(f[m]=[])).push(h),f},{})[i.uri];o.length>1&&(n=Math.max.apply(Math,o));const l=i.videoRange,c=i.frameRate,u=i.codecSet.substring(0,4),d=zl(e,n,f=>{if(f.videoRange!==l||f.frameRate!==c||f.codecSet.substring(0,4)!==u)return!1;const g=f.audioGroups,h=t.filter(m=>!g||g.indexOf(m.groupId)!==-1);return nt(s,h,r)>-1});return d>-1?d:zl(e,n,f=>{const g=f.audioGroups,h=t.filter(m=>!g||g.indexOf(m.groupId)!==-1);return nt(s,h,r)>-1})}function zl(s,e,t){for(let n=e;n>-1;n--)if(t(s[n]))return n;for(let n=e+1;n<s.length;n++)if(t(s[n]))return n;return-1}class fp{constructor(e){this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-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.bwEstimator=void 0,this._abandonRulesCheck=()=>{const{fragCurrent:t,partCurrent:n,hls:r}=this,{autoLevelEnabled:i,media:a}=r;if(!t||!a)return;const o=performance.now(),l=n?n.stats:t.stats,c=n?n.duration:t.duration,u=o-l.loading.start,d=r.minAutoLevel;if(l.aborted||l.loaded&&l.loaded===l.total||t.level<=d){this.clearTimer(),this._nextAutoLevel=-1;return}if(!i||a.paused||!a.playbackRate||!a.readyState)return;const f=r.mainForwardBufferInfo;if(f===null)return;const g=this.bwEstimator.getEstimateTTFB(),h=Math.abs(a.playbackRate);if(u<=Math.max(g,1e3*(c/(h*2))))return;const m=f.len/h,p=l.loading.first?l.loading.first-l.loading.start:-1,E=l.loaded&&p>-1,x=this.getBwEstimate(),v=r.levels,w=v[t.level],b=l.total||Math.max(l.loaded,Math.round(c*w.averageBitrate/8));let I=E?u-p:u;I<1&&E&&(I=Math.min(u,l.loaded*8/x));const A=E?l.loaded*1e3/I:0,F=A?(b-l.loaded)/A:b*8/x+g/1e3;if(F<=m)return;const U=A?A*8:x;let O=Number.POSITIVE_INFINITY,B;for(B=t.level-1;B>d;B--){const $=v[B].maxBitrate;if(O=this.getTimeToLoadFrag(g/1e3,U,c*$,!v[B].details),O<m)break}if(O>=F||O>c*10)return;r.nextLoadLevel=r.nextAutoLevel=B,E?this.bwEstimator.sample(u-Math.min(g,p),l.loaded):this.bwEstimator.sampleTTFB(u);const Y=v[B].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>Y&&this.resetEstimator(Y),this.clearTimer(),L.warn(`[abr] Fragment ${t.sn}${n?" part "+n.index:""} of level ${t.level} is loading too slowly;
39
+ `+i):n.stack=i}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Dt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&ln.assertOptions(n,{silentJSONParsing:Qe.transitional(Qe.boolean),forcedJSONParsing:Qe.transitional(Qe.boolean),clarifyTimeoutError:Qe.transitional(Qe.boolean)},!1),r!=null&&(_.isFunction(r)?t.paramsSerializer={serialize:r}:ln.assertOptions(r,{encode:Qe.function,serialize:Qe.function},!0)),ln.assertOptions(t,{baseUrl:Qe.spelling("baseURL"),withXsrfToken:Qe.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&_.merge(i.common,i[t.method]);i&&_.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),t.headers=Fe.concat(a,i);const o=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(t)===!1||(l=l&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const h=[Mo.bind(this),void 0];for(h.unshift.apply(h,o),h.push.apply(h,c),f=h.length,u=Promise.resolve(t);d<f;)u=u.then(h[d++],h[d++]);return u}f=o.length;let g=t;for(d=0;d<f;){const h=o[d++],m=o[d++];try{g=h(g)}catch(p){m.call(this,p);break}}try{u=Mo.call(this,g)}catch(h){return Promise.reject(h)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=Dt(this.defaults,e);const t=Ao(e.baseURL,e.url);return Eo(t,e.params,e.paramsSerializer)}}_.forEach(["delete","get","head","options"],function(e){It.prototype[e]=function(t,n){return this.request(Dt(n||{},{method:e,url:t,data:(n||{}).data}))}}),_.forEach(["post","put","patch"],function(e){function t(n){return function(i,a,o){return this.request(Dt(o||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}It.prototype[e]=t(),It.prototype[e+"Form"]=t(!0)});class Rr{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 n=this;this.promise.then(r=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](r);n._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(o=>{n.subscribe(o),i=o}).then(r);return a.cancel=function(){n.unsubscribe(i)},a},e(function(i,a,o){n.reason||(n.reason=new Wt(i,a,o),t(n.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=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Rr(function(r){e=r}),cancel:e}}}function ah(s){return function(t){return s.apply(null,t)}}function oh(s){return _.isObject(s)&&s.isAxiosError===!0}const kr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent: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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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};Object.entries(kr).forEach(([s,e])=>{kr[e]=s});function Uo(s){const e=new It(s),t=to(It.prototype.request,e);return _.extend(t,It.prototype,e,{allOwnKeys:!0}),_.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Uo(Dt(s,r))},t}const ge=Uo(fs);ge.Axios=It,ge.CanceledError=Wt,ge.CancelToken=Rr,ge.isCancel=bo,ge.VERSION=No,ge.toFormData=tn,ge.AxiosError=ee,ge.Cancel=ge.CanceledError,ge.all=function(e){return Promise.all(e)},ge.spread=ah,ge.isAxiosError=oh,ge.mergeConfig=Dt,ge.AxiosHeaders=Fe,ge.formToJSON=s=>xo(_.isHTMLForm(s)?new FormData(s):s),ge.getAdapter=Fo.getAdapter,ge.HttpStatusCode=kr,ge.default=ge;const Pr={baseUrl:"https://hamrahi.cloud",fluentdUrl:"https://hamrahi.cloud"},$o=()=>Pr.baseUrl+"/live/api",Vo=()=>Pr.fluentdUrl,lh=()=>Pr.baseUrl+"/emoji",_r=()=>({vod:{getVodUrl:`${$o()}/v1/live/details/vod/`,getMarkerUrl:s=>`${$o()}/v1/live/list-event/vod/${s}/`},videoTimelineLog:`${Vo()}/video-timeline.log`,logs:`${Vo()}/drive-endpoint.log`}),oe=s=>{const{details:e,params:t}=R.getState().videoData;let n={...s,timestamp:Date.now(),clientUUID:lt(),uuid:lt(),link:window.location.href,user_id:e.user_id,live_id:null,format:void 0,content_type:e.content_type,content_id:e.content_id,daaniHashCode:t.daaniHashCode};un({url:_r().logs,method:"post",data:n})},ch=s=>{const{params:e,details:t}=R.getState().videoData,{settings:n}=R.getState().user;return{category:"speedChange",previousSelectedSpeed:n.speed,selectedSpeed:s,id:Number(e.id),type:e.type,src:C(T.hasStreamLink)?t.stream_link:e.id,provider:e.provider}},uh=s=>{const{params:e,details:t}=R.getState().videoData,{qualityLevels:n,manualQuality:r,autoQuality:i}=R.getState().controller;return{category:"qualityChangeRequest",currentPlayingQuality:`${n[C(T.isAutoQuality)?i??r:r]}P`,previousSelectedQuality:C(T.isAutoQuality)?"auto":`${n[r]}P`,selectedQuality:s,id:Number(e.id),type:e.type,src:C(T.hasStreamLink)?t.stream_link:e.id,provider:e.provider}},dh=s=>{const{params:e,details:t}=R.getState().videoData,{qualityLevels:n,autoQuality:r}=R.getState().controller,{settings:i}=R.getState().user;return{category:"catchUpLoading",previousVideoTime:Number(sessionStorage.getItem("previousVideoTime")),currentVideoTime:N().currentTime,duration:s,quality:`${C(T.isAutoQuality)?n[r]:n[i.quality]}P`,isAutoQuality:C(T.isAutoQuality),id:Number(e.id),type:e.type,src:C(T.hasStreamLink)?t.stream_link:e.id,provider:e.provider}},fh=s=>{const{params:e,details:t}=R.getState().videoData;return{category:s==="backward"?"backward":"forward",id:Number(e.id),type:e.type,src:t.stream_link?t.stream_link:e.id,provider:e.provider}},Or=s=>{const{params:e,details:t}=R.getState().videoData;return{category:s,id:Number(e.id),type:e.type,src:C(T.hasStreamLink)?t.stream_link:e.id}},hh=(s,e)=>{const{params:t,details:n}=R.getState().videoData;return{category:"brightnessChange",source:s,target:e,id:Number(t.id),type:t.type,src:C(T.hasStreamLink)?n.stream_link:t.id}},cn=(s,e)=>{const{params:t,details:n}=R.getState().videoData;return{category:"volumeChange",source:s,target:e,id:Number(t.id),type:t.type,src:C(T.hasStreamLink)?n.stream_link:t.id}},ph=s=>{const{params:e,details:t}=R.getState().videoData;return{category:s,id:Number(e.id),type:e.type,src:C(T.hasStreamLink)?t.stream_link:e.id}},gh=(s,e,t,n)=>({category:"player-error",type:s,message:e,statusCode:t,url:n}),mh=(s,e)=>{const{params:t,details:n}=R.getState().videoData,{duration:r}=R.getState().controller;return{category:"video-timeline",video_id:+t.id,video_type:t.type,start:s,end:e,watchedDuration:e-s,video_duration:Math.floor(r),clientUUID:lt(),user_id:n.user_id,content_type:n.content_type,content_id:n.content_id}},Go=(s,e,t)=>{const{params:n,details:r}=R.getState().videoData;return{category:"autoQualityChange",sourceQuality:s,targetQuality:e,diffQuality:t,id:Number(n.id),type:n.type,src:C(T.hasStreamLink)?r.stream_link:n.id,provider:n.provider}},yh=(s,e)=>{const{params:t,details:n}=R.getState().videoData;return{category:"pingpong",id:Number(t.id),type:t.type,src:C(T.hasStreamLink)?n.stream_link:t.id,PingPongDuration:Number((new Date().getTime()-s).toFixed(2)),PingPongSourceQuality:`${e[0]}P`,PingPongTargetQuality:`${e[1]}P`,provider:t.provider}},Ho=s=>{const{params:e,details:t}=R.getState().videoData;return{category:s?"playVideo":"pauseVideo",id:Number(e.id),type:e.type,src:t.stream_link?t.stream_link:e.id,provider:e.provider}},Ko=(s,e,t,n,r)=>{const{params:i,details:a}=R.getState().videoData,o=Date.now()-r.current+s+e,l=window.performance.memory,c=JSON.parse(JSON.stringify(window.performance.timing));return{category:"initLog",id:Number(i.id),type:i.type,origin:new URL(C(T.hasStreamLink)?a.stream_link:i.id).origin,src:C(T.hasStreamLink)?a.stream_link:i.id,loading:s,bannerLoading:!C(T.hasBanner)||t<0?0:t,waiting:e,firstChunkPlaying:n<0?0:n,totalTime:o,provider:i.provider,performance:Qa({memory:l,timing:c},"performance"),userAgent:window.navigator.userAgent}},Eh=(s,e,t,n,r)=>{const{params:i,details:a}=R.getState().videoData,{settings:o}=R.getState().user,l=Date.now()-t.current;return{category:"loading",id:Number(i.id),type:i.type,src:C(T.hasStreamLink)?a.stream_link:i.id,duration:s,quality:`${e}P`,isAutoQuality:C(T.isAutoQuality),previousLoaderDiff:l,counter:n.current,loadingPercentile:Number((s/l).toFixed(2)),videoTime:N().currentTime,videoEntranceTime:r,speed:o.speed,provider:i.provider}},ps=s=>{const{params:e,details:t}=R.getState().videoData;return{category:"subtitle",language:s,id:Number(e.id),type:e.type,src:C(T.hasStreamLink)?t.stream_link:e.id}},Wo=(s,e,t,n,r)=>{const{params:i,details:a}=R.getState().videoData;return{category:"eventMarkerClick",video_id:Number(i.id),markerId:s,markerTime:e,markerTitle:t,markerDescription:n,markerSticker:r,type:i.type,src:C(T.hasStreamLink)?a.stream_link:i.id,provider:i.provider}},ct=s=>{s&&oe(gh(s.type,s.message,s.statusCode,s.url))},un=async({url:s,method:e="GET",data:t,headers:n,retryCount:r=1,maxRetryCount:i=0,errorMessage:a,retryPolicy:o,errorCallback:l,timeoutCount:c})=>{let u={url:s,method:e,headers:{...n,"Content-Type":"application/json"},timeout:c?c*1e3:void 0};t?e==="GET"?u={...u,params:{uuid:R.getState().videoData.params.uuid,provider:R.getState().videoData.params.provider==="unknown"?void 0:R.getState().videoData.params.provider,...t}}:u={...u,data:{uuid:R.getState().videoData.params.uuid,provider:R.getState().videoData.params.provider==="unknown"?void 0:R.getState().videoData.params.provider,...t}}:e==="GET"?u={...u,params:{uuid:R.getState().videoData.params.uuid,provider:R.getState().videoData.params.provider==="unknown"?void 0:R.getState().videoData.params.provider}}:u={...u,data:{uuid:R.getState().videoData.params.uuid,provider:R.getState().videoData.params.provider==="unknown"?void 0:R.getState().videoData.params.provider}};try{return await ge(u)}catch(d){if(ct({type:"API-ERROR",message:d.message?d.message:"",statusCode:d.response&&d.response.status?d.response.status:void 0,url:s}),!(d&&d.response&&d.response.status===401)){l&&l(d.response.status,d.response.message);let f=0,g=0;if(o!==void 0){for(let h=0;h<o.length;h++)if((o[h].codeAbove&&d.response.status>=o[h].codeAbove||o[h].codeBelow&&d.response.status<=o[h].codeBelow)&&(o[h].excludeCodes.length===0||!o[h].excludeCodes.includes(d.response.status))||o[h].includeCodes.length===0||o[h].includeCodes.includes(d.response.status)){g=o[h].count,f=o[h].delay;break}}else g=i,f=r+1;if(r<g)return await D0(f),un({url:s,method:e,data:t,headers:n,retryCount:r+1,newMaxRetryCount:g,errorMessage:a,retryPolicy:o,errorCallback:l});if(d.response)return{data:d.response.data?d.response.data:{detail:"عملیات با خطا مواجه شده است."},status:d.response.status}}}},Fr=s=>{if(s===null||s.target.nodeName!=="INPUT"){const e=R.dispatch;s!==null&&(s.stopPropagation(),s.preventDefault()),N().paused?N().play():N().pause(),e(Ze(!N().paused)),Ge()&&Ge().played&&(Ge().pause(),e(mt(!1)))}},Sh=()=>{const s=R.dispatch,{play:e}=R.getState().controller;s(Ze(e)),setTimeout(()=>{N()&&(e?N().play():N().pause())},0)},Th=s=>{if(s===null||s.target.nodeName!=="INPUT"){const e=R.dispatch;Ge().paused?Ge().play():Ge().pause(),e(mt(!Ge().paused)),N()&&N().played&&(N().pause(),e(Ze(!1)))}},dn=s=>{const e=R.dispatch,{settings:t}=R.getState().user;e(ot({...t,volume:s})),C(T.isIOS)?N().muted=!N().muted:N().volume=s/100},Rt=(s,e=15,t)=>{if(s==="touchBackward"?s="backward":s==="touchForward"&&(s="forward"),t&&t.target.nodeName==="INPUT"||s==="backward"&&N().currentTime<15||s==="forward"&&N().duration-N().currentTime<15)return;oe(fh(s));let n=0;s==="backward"?e===0?n=0:n=N().currentTime-e:s==="forward"&&(e===N().duration?n=e:n=N().currentTime+e),N().currentTime=n},Mr=()=>{const s=R.dispatch,e=document.fullscreenElement;C(T.isIOS)?N().webkitEnterFullScreen?(s(Ze(!1)),N().webkitEnterFullScreen()):(s(js()),oe(Or("fullScreen"))):e?(s(as(!1)),document.exitFullscreen()):(s(js()),document.documentElement.requestFullscreen(),s(as(!0)),oe(Or("fullScreen")))},Nr=()=>{C(T.isTouchScreen)&&!C(T.isIOS)&&(C(T.isLandscape)&&!C(T.isFullScreen)?window.screen.orientation.lock("portrait"):window.screen.orientation.lock("landscape"))},jo=s=>{const e=R.dispatch;e(u0(s==="lock")),oe(ph(s)),s==="unlock"&&localStorage.setItem("unlock-click","true")},gs=(s,e)=>{if(C(T.isSendTimelineLog)){const t=R.dispatch,{videoTimelines:n}=R.getState().videoData;let r=Math.floor(s),i=Math.floor(e);n.length===0?t(Vs([r>=N().duration?i:r])):(n[0]<r&&un({url:_r().videoTimelineLog,method:"post",data:mh(n[0],r)}),i&&i>=N().duration?t(Vs([])):t(Vs([i])))}},zo=()=>{var t;const s=R.dispatch,e=(t=document.getElementById("video-area"))==null?void 0:t.getBoundingClientRect();e.height=e.width*9/16,e&&s(Ba(e))},xh=s=>{!C(T.isTouchScreen)&&s.target.nodeName!=="INPUT"&&Mr()},vh=s=>{const{params:e}=R.getState().videoData;return _r().vod.getVodUrl+(s||e.id)},ms={url:"",maxRetryCount:0,headers:{},retryPolicy:[],errorCallback:void 0},bh=s=>(ms.url=vh(s),ms.maxRetryCount=3,ms.retryPolicy=[{codeAbove:500,codeBelow:null,excludeCodes:[],includeCodes:[409],delay:1,count:3},{codeAbove:null,codeBelow:404,excludeCodes:[403,402,401,400],includeCodes:[],delay:10,count:6}],ms),Ch=s=>(bh(s),ms),qo=async s=>{const e=R.dispatch;try{const t=await un({...Ch(s)});if(_0(t.status)){if(await ge.head("https://"+Ya(t.data.hls_links)+t.data.path),s)return e(C0(t.data));wh(t.data)}else throw new Error(JSON.stringify({status:t.status,message:t.data}))}catch{e(Ua(!0)),e($a(!1))}},wh=s=>{const e=R.dispatch,{params:t}=R.getState().videoData;e(Na({...s,subtitles:C(T.hasSubtitlesInParams)?t.subtitles:s.subtitles,stream_link:!!s.stream_link&&k0("https://"+Ya(s.hls_links)+s.path)})),e(Ua(!0)),e($a(!0))},fn=()=>{const s=R.dispatch,{subtitles:e,selectedSubtitle:t}=R.getState().videoData,n=e.find(r=>r.language==="fa");t?(Object.values(N().textTracks).find(r=>r.mode==="showing").mode="disabled",s(ls(void 0)),oe(ps("empty"))):n?(n.mode="showing",s(ls(n)),oe(ps(n.language))):(N().textTracks[0].mode="showing",s(ls(N().textTracks[0])),oe(ps(N().textTracks[0].language)))},kt=(s,e)=>{const t=P.useRef(e);P.useEffect(()=>{t.current=e},[]),P.useEffect(()=>{const n=r=>{r.code===s&&!["INPUT","TEXTAREA"].includes(r.target.nodeName)&&!r.target.isContentEditable&&t.current(r)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[s])},Lh=()=>{kt("Space",s=>{C(T.isPressKeySpace)&&Fr(s)}),kt("ArrowRight",s=>{C(T.isPressKeyArrowRight)&&Rt("forward",15,s)}),kt("ArrowLeft",s=>{C(T.isPressKeyArrowLeft)&&Rt("backward",15,s)}),kt("KeyI",()=>{C(T.isPressKeyI)&&N().requestPictureInPicture()}),kt("KeyF",()=>{C(T.isPressKeyF)&&Mr()}),kt("KeyM",()=>{if(C(T.isPressKeyM)){const{settings:s}=R.getState().user;dn(s.volume?0:50)}}),kt("KeyC",()=>{C(T.isPressKeyC)&&fn()})},Ah=P.lazy(()=>Promise.resolve().then(()=>Iy)),Dh=P.lazy(()=>Promise.resolve().then(()=>Fy)),Ih=s=>{const{params:e}=V(({videoData:{isReady:n,params:r}})=>({isReady:n,params:r}),K);P.useEffect(()=>(e.id&&s.params.id!==e.id&&(e.type===xt.static&&(N().pause(),N().removeAttribute("src"),N().load()),qa()),()=>qa()),[s.params.id]),N0(s.params),Lh(),V(({controller:{isFullScreen:n}})=>({isFullScreen:n}),K);let t=S.jsx(S.Fragment,{});return C(T.isReady)?t=S.jsx(P.Suspense,{fallback:"",children:S.jsx("div",{className:`pl-size-full !pl-select-none desktop:pl-h-auto ${!C(T.isTouchScreen)&&"pl-rounded-[12px]"} ${C(T.isFullScreen)&&"pl-fixed pl-right-0 pl-top-0 pl-h-screen pl-w-screen !pl-overflow-hidden"}`,style:{zIndex:_e.videoPlayerInFullScreen,touchAction:"pan-y"},children:C(T.isStaticFormat)?S.jsx(Ah,{}):S.jsx(Dh,{})})}):t=S.jsx("div",{className:"!pl-aspect-video pl-max-h-screen pl-w-full pl-overflow-hidden pl-rounded-[12px] pl-bg-white"}),S.jsx("div",{dir:"rtl",className:"pl-flex pl-h-full pl-w-full pl-items-center pl-justify-center pl-rounded-[12px]",id:"parent-player",children:t})};class Yo extends P.Component{constructor(){super(...arguments);Ru(this,"state",{hasError:!1,error:null,errorInfo:null})}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,n){this.setState({error:t,errorInfo:n}),ct({type:"OTHER_ERROR",message:t.message})}render(){return this.state.hasError?S.jsx(S.Fragment,{}):this.props.children}}const Rh=({params:s})=>(P.useEffect(()=>{if(document){let e=document.createElement("div");e.id="dialog-react-root-videoPlayer",document.body.append(e)}},[]),P.useEffect(()=>{s.primaryColor&&document.documentElement.style.setProperty("--color-primary",s.primaryColor)},[s.primaryColor]),S.jsx(Yi,{store:R,children:S.jsx(Yo,{children:S.jsx(Ih,{params:s})})})),re={fullScreen:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%209.75C1.59%209.75%201.25%209.41%201.25%209V6.5C1.25%203.61%203.61%201.25%206.5%201.25H9C9.41%201.25%209.75%201.59%209.75%202C9.75%202.41%209.41%202.75%209%202.75H6.5C4.43%202.75%202.75%204.43%202.75%206.5V9C2.75%209.41%202.41%209.75%202%209.75Z'%20fill='white'/%3e%3cpath%20d='M22%209.75C21.59%209.75%2021.25%209.41%2021.25%209V6.5C21.25%204.43%2019.57%202.75%2017.5%202.75H15C14.59%202.75%2014.25%202.41%2014.25%202C14.25%201.59%2014.59%201.25%2015%201.25H17.5C20.39%201.25%2022.75%203.61%2022.75%206.5V9C22.75%209.41%2022.41%209.75%2022%209.75Z'%20fill='white'/%3e%3cpath%20d='M17.5%2022.75H16C15.59%2022.75%2015.25%2022.41%2015.25%2022C15.25%2021.59%2015.59%2021.25%2016%2021.25H17.5C19.57%2021.25%2021.25%2019.57%2021.25%2017.5V16C21.25%2015.59%2021.59%2015.25%2022%2015.25C22.41%2015.25%2022.75%2015.59%2022.75%2016V17.5C22.75%2020.39%2020.39%2022.75%2017.5%2022.75Z'%20fill='white'/%3e%3cpath%20d='M9%2022.75H6.5C3.61%2022.75%201.25%2020.39%201.25%2017.5V15C1.25%2014.59%201.59%2014.25%202%2014.25C2.41%2014.25%202.75%2014.59%202.75%2015V17.5C2.75%2019.57%204.43%2021.25%206.5%2021.25H9C9.41%2021.25%209.75%2021.59%209.75%2022C9.75%2022.41%209.41%2022.75%209%2022.75Z'%20fill='white'/%3e%3c/svg%3e",nonFullScreen:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.875%201.41667C8.21667%201.41667%208.5%201.7%208.5%202.04167L8.5%204.125C8.5%206.53333%206.53333%208.5%204.125%208.5L2.04167%208.5C1.7%208.5%201.41667%208.21667%201.41667%207.875C1.41667%207.53333%201.7%207.25%202.04167%207.25L4.125%207.25C5.85%207.25%207.25%205.85%207.25%204.125L7.25%202.04167C7.25%201.7%207.53333%201.41667%207.875%201.41667Z'%20fill='white'/%3e%3cpath%20d='M12.0417%201.41667C12.3833%201.41667%2012.6667%201.7%2012.6667%202.04167L12.6667%204.125C12.6667%205.85%2014.0667%207.25%2015.7917%207.25L17.875%207.25C18.2167%207.25%2018.5%207.53333%2018.5%207.875C18.5%208.21667%2018.2167%208.5%2017.875%208.5L15.7917%208.5C13.3833%208.5%2011.4167%206.53333%2011.4167%204.125L11.4167%202.04167C11.4167%201.7%2011.7%201.41667%2012.0417%201.41667Z'%20fill='white'/%3e%3cpath%20d='M16.376%2011.42L17.792%2011.42C18.179%2011.42%2018.5%2011.741%2018.5%2012.128C18.5%2012.515%2018.179%2012.836%2017.792%2012.836L16.376%2012.836C14.4219%2012.836%2012.836%2014.4219%2012.836%2016.376L12.836%2017.792C12.836%2018.179%2012.515%2018.5%2012.128%2018.5C11.741%2018.5%2011.42%2018.179%2011.42%2017.792L11.42%2016.376C11.42%2013.6478%2013.6478%2011.42%2016.376%2011.42Z'%20fill='white'/%3e%3cpath%20d='M2.04167%2011.4167L4.125%2011.4167C6.53333%2011.4167%208.5%2013.3833%208.5%2015.7917L8.5%2017.875C8.5%2018.2167%208.21667%2018.5%207.875%2018.5C7.53333%2018.5%207.25%2018.2167%207.25%2017.875L7.25%2015.7917C7.25%2014.0667%205.85%2012.6667%204.125%2012.6667L2.04167%2012.6667C1.7%2012.6667%201.41667%2012.3833%201.41667%2012.0417C1.41667%2011.7%201.7%2011.4167%202.04167%2011.4167Z'%20fill='white'/%3e%3c/svg%3e",settings:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%2013.125C8.275%2013.125%206.875%2011.725%206.875%2010C6.875%208.275%208.275%206.875%2010%206.875C11.725%206.875%2013.125%208.275%2013.125%2010C13.125%2011.725%2011.725%2013.125%2010%2013.125ZM10%208.125C8.96667%208.125%208.125%208.96667%208.125%2010C8.125%2011.0333%208.96667%2011.875%2010%2011.875C11.0333%2011.875%2011.875%2011.0333%2011.875%2010C11.875%208.96667%2011.0333%208.125%2010%208.125Z'%20fill='white'/%3e%3cpath%20d='M12.675%2018.4916C12.5%2018.4916%2012.325%2018.4666%2012.15%2018.425C11.6333%2018.2833%2011.2%2017.9583%2010.925%2017.5L10.825%2017.3333C10.3333%2016.4833%209.65829%2016.4833%209.16663%2017.3333L9.07496%2017.4916C8.79996%2017.9583%208.36663%2018.2916%207.84996%2018.425C7.32496%2018.5666%206.78329%2018.4916%206.32496%2018.2166L4.89163%2017.3916C4.38329%2017.1%204.01663%2016.625%203.85829%2016.05C3.70829%2015.475%203.78329%2014.8833%204.07496%2014.375C4.31663%2013.95%204.38329%2013.5666%204.24163%2013.325C4.09996%2013.0833%203.74163%2012.9416%203.24996%2012.9416C2.03329%2012.9416%201.04163%2011.95%201.04163%2010.7333V9.26662C1.04163%208.04995%202.03329%207.05829%203.24996%207.05829C3.74163%207.05829%204.09996%206.91662%204.24163%206.67495C4.38329%206.43329%204.32496%206.04995%204.07496%205.62495C3.78329%205.11662%203.70829%204.51662%203.85829%203.94995C4.00829%203.37495%204.37496%202.89995%204.89163%202.60829L6.33329%201.78329C7.27496%201.22495%208.51663%201.54995%209.08329%202.50829L9.18329%202.67495C9.67496%203.52495%2010.35%203.52495%2010.8416%202.67495L10.9333%202.51662C11.5%201.54995%2012.7416%201.22495%2013.6916%201.79162L15.125%202.61662C15.6333%202.90829%2016%203.38329%2016.1583%203.95829C16.3083%204.53329%2016.2333%205.12495%2015.9416%205.63329C15.7%206.05829%2015.6333%206.44162%2015.775%206.68329C15.9166%206.92495%2016.275%207.06662%2016.7666%207.06662C17.9833%207.06662%2018.975%208.05829%2018.975%209.27495V10.7416C18.975%2011.9583%2017.9833%2012.95%2016.7666%2012.95C16.275%2012.95%2015.9166%2013.0916%2015.775%2013.3333C15.6333%2013.575%2015.6916%2013.9583%2015.9416%2014.3833C16.2333%2014.8916%2016.3166%2015.4916%2016.1583%2016.0583C16.0083%2016.6333%2015.6416%2017.1083%2015.125%2017.4L13.6833%2018.225C13.3666%2018.4%2013.025%2018.4916%2012.675%2018.4916ZM9.99996%2015.4083C10.7416%2015.4083%2011.4333%2015.875%2011.9083%2016.7L12%2016.8583C12.1%2017.0333%2012.2666%2017.1583%2012.4666%2017.2083C12.6666%2017.2583%2012.8666%2017.2333%2013.0333%2017.1333L14.475%2016.3C14.6916%2016.175%2014.8583%2015.9666%2014.925%2015.7166C14.9916%2015.4666%2014.9583%2015.2083%2014.8333%2014.9916C14.3583%2014.175%2014.3%2013.3333%2014.6666%2012.6916C15.0333%2012.05%2015.7916%2011.6833%2016.7416%2011.6833C17.275%2011.6833%2017.7%2011.2583%2017.7%2010.725V9.25829C17.7%208.73329%2017.275%208.29995%2016.7416%208.29995C15.7916%208.29995%2015.0333%207.93329%2014.6666%207.29162C14.3%206.64995%2014.3583%205.80829%2014.8333%204.99162C14.9583%204.77495%2014.9916%204.51662%2014.925%204.26662C14.8583%204.01662%2014.7%203.81662%2014.4833%203.68329L13.0416%202.85829C12.6833%202.64162%2012.2083%202.76662%2011.9916%203.13329L11.9%203.29162C11.425%204.11662%2010.7333%204.58329%209.99163%204.58329C9.24996%204.58329%208.55829%204.11662%208.08329%203.29162L7.99163%203.12495C7.78329%202.77495%207.31663%202.64995%206.95829%202.85829L5.51663%203.69162C5.29996%203.81662%205.13329%204.02495%205.06663%204.27495C4.99996%204.52495%205.03329%204.78329%205.15829%204.99995C5.63329%205.81662%205.69163%206.65829%205.32496%207.29995C4.95829%207.94162%204.19996%208.30829%203.24996%208.30829C2.71663%208.30829%202.29163%208.73329%202.29163%209.26662V10.7333C2.29163%2011.2583%202.71663%2011.6916%203.24996%2011.6916C4.19996%2011.6916%204.95829%2012.0583%205.32496%2012.7C5.69163%2013.3416%205.63329%2014.1833%205.15829%2015C5.03329%2015.2166%204.99996%2015.475%205.06663%2015.725C5.13329%2015.975%205.29163%2016.175%205.50829%2016.3083L6.94996%2017.1333C7.12496%2017.2416%207.33329%2017.2666%207.52496%2017.2166C7.72496%2017.1666%207.89163%2017.0333%207.99996%2016.8583L8.09163%2016.7C8.56663%2015.8833%209.25829%2015.4083%209.99996%2015.4083Z'%20fill='white'/%3e%3c/svg%3e",bigPlay:"data:image/svg+xml,%3csvg%20width='29'%20height='29'%20viewBox='0%200%2029%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.333252%205.20762V23.4614C0.333252%2027.1999%204.78234%2029.546%208.33325%2027.6768L17.0017%2023.1181L25.6701%2018.5403C29.221%2016.6711%2029.221%2011.998%2025.6701%2010.1287L17.0017%205.55095L8.33325%200.992273C4.78234%20-0.876977%200.333252%201.45005%200.333252%205.20762Z'%20fill='white'/%3e%3c/svg%3e",bigPause:"data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.75%2031.85V8.15C17.75%205.9%2016.8%205%2014.4%205H8.35C5.95%205%205%205.9%205%208.15V31.85C5%2034.1%205.95%2035%208.35%2035H14.4C16.8%2035%2017.75%2034.1%2017.75%2031.85Z'%20fill='white'/%3e%3cpath%20d='M35%2031.85V8.15C35%205.9%2034.05%205%2031.65%205H25.6C23.2167%205%2022.25%205.9%2022.25%208.15V31.85C22.25%2034.1%2023.2%2035%2025.6%2035H31.65C34.05%2035%2035%2034.1%2035%2031.85Z'%20fill='white'/%3e%3c/svg%3e",mute:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5%206.97499V6.17499C12.5%203.69165%2010.775%202.74165%208.67496%204.05832L6.24163%205.58332C5.97496%205.74165%205.66663%205.83332%205.35829%205.83332H4.16663C2.49996%205.83332%201.66663%206.66665%201.66663%208.33332V11.6667C1.66663%2013.3333%202.49996%2014.1667%204.16663%2014.1667H5.83329'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.67505%2015.9417C10.775%2017.2584%2012.5%2016.3001%2012.5%2013.8251V10.7917'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15.675%207.8501C16.425%209.64176%2016.2%2011.7334%2015%2013.3334'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.625%206.5C18.85%209.40833%2018.4834%2012.8083%2016.525%2015.4167'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M18.3333%201.66675L1.66663%2018.3334'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",unMute:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.66663%208.33332V11.6667C1.66663%2013.3333%202.49996%2014.1667%204.16663%2014.1667H5.35829C5.66663%2014.1667%205.97496%2014.2583%206.24163%2014.4167L8.67496%2015.9417C10.775%2017.2583%2012.5%2016.3%2012.5%2013.825V6.17499C12.5%203.69165%2010.775%202.74165%208.67496%204.05832L6.24163%205.58332C5.97496%205.74165%205.66663%205.83332%205.35829%205.83332H4.16663C2.49996%205.83332%201.66663%206.66665%201.66663%208.33332Z'%20stroke='white'%20stroke-width='1.5'/%3e%3cpath%20d='M15%206.66663C16.4833%208.64163%2016.4833%2011.3583%2015%2013.3333'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M16.525%204.58337C18.9334%207.79171%2018.9334%2012.2084%2016.525%2015.4167'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",backward15:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.4301%2016.9199H12.1401C11.7301%2016.9199%2011.3901%2016.5799%2011.3901%2016.1699C11.3901%2015.7599%2011.7301%2015.4199%2012.1401%2015.4199H14.4301C14.8601%2015.4199%2015.2101%2015.0699%2015.2101%2014.6399C15.2101%2014.2099%2014.8601%2013.8599%2014.4301%2013.8599H12.1401C11.9001%2013.8599%2011.6701%2013.7399%2011.5301%2013.5499C11.3901%2013.3599%2011.3501%2013.0999%2011.4301%2012.8699L12.1901%2010.5799C12.2901%2010.2699%2012.5801%2010.0699%2012.9001%2010.0699H15.9601C16.3701%2010.0699%2016.7101%2010.4099%2016.7101%2010.8199C16.7101%2011.2299%2016.3701%2011.5699%2015.9601%2011.5699H13.4401L13.1801%2012.3599H14.4301C15.6901%2012.3599%2016.7101%2013.3799%2016.7101%2014.6399C16.7101%2015.8999%2015.6801%2016.9199%2014.4301%2016.9199Z'%20fill='white'/%3e%3cpath%20d='M9.54004%2016.92C9.13004%2016.92%208.79004%2016.58%208.79004%2016.17V12.78L8.60004%2013C8.32004%2013.31%207.85004%2013.33%207.54004%2013.06C7.24004%2012.78%207.21004%2012.31%207.49004%2012L8.99004%2010.33C9.20004%2010.1%209.53004%2010.02%209.82004%2010.13C10.11%2010.24%2010.3%2010.52%2010.3%2010.83V16.18C10.29%2016.59%209.96004%2016.92%209.54004%2016.92Z'%20fill='white'/%3e%3cpath%20d='M12%203.48006C11.92%203.48006%2011.84%203.49006%2011.76%203.49006L12.58%202.47006C12.84%202.15006%2012.79%201.67006%2012.46%201.42006C12.13%201.17006%2011.67%201.21006%2011.41%201.54006L9.43998%204.00006C9.42998%204.01006%209.42998%204.02006%209.41998%204.04006C9.38998%204.08006%209.36998%204.13006%209.34998%204.17006C9.32998%204.22006%209.30998%204.26006%209.29998%204.30006C9.28998%204.35006%209.28998%204.39006%209.28998%204.44006C9.28998%204.49006%209.28998%204.54006%209.28998%204.59006C9.28998%204.61006%209.28998%204.62006%209.28998%204.64006C9.29998%204.67006%209.31998%204.69006%209.32998%204.72006C9.34998%204.77006%209.36998%204.81006%209.38998%204.86006C9.41998%204.90006%209.44998%204.94006%209.48998%204.97006C9.50998%205.00006%209.51998%205.03006%209.54998%205.05006C9.56998%205.06006%209.57998%205.07006%209.59998%205.08006C9.61998%205.10006%209.64998%205.11006%209.67998%205.12006C9.72998%205.15006%209.78998%205.17006%209.83998%205.18006C9.87998%205.20006%209.90998%205.20006%209.93998%205.20006C9.96998%205.20006%209.98998%205.21006%2010.02%205.21006C10.05%205.21006%2010.07%205.20006%2010.09%205.19006C10.12%205.19006%2010.15%205.20006%2010.18%205.19006C10.82%205.04006%2011.42%204.97006%2011.99%204.97006C16.48%204.97006%2020.13%208.62006%2020.13%2013.1101C20.13%2017.6001%2016.48%2021.2501%2011.99%2021.2501C7.49998%2021.2501%203.84998%2017.6001%203.84998%2013.1101C3.84998%2011.3701%204.41998%209.69006%205.49998%208.25006C5.74998%207.92006%205.67998%207.45006%205.34998%207.20006C5.01998%206.95006%204.54998%207.02006%204.29998%207.35006C3.01998%209.05006%202.34998%2011.0401%202.34998%2013.1101C2.34998%2018.4201%206.66997%2022.7501%2011.99%2022.7501C17.31%2022.7501%2021.63%2018.4301%2021.63%2013.1101C21.63%207.79006%2017.31%203.48006%2012%203.48006Z'%20fill='white'/%3e%3c/svg%3e",forward15:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.4301%2016.9199H12.1401C11.7301%2016.9199%2011.3901%2016.5799%2011.3901%2016.1699C11.3901%2015.7599%2011.7301%2015.4199%2012.1401%2015.4199H14.4301C14.8601%2015.4199%2015.2101%2015.0699%2015.2101%2014.6399C15.2101%2014.2099%2014.8601%2013.8599%2014.4301%2013.8599H12.1401C11.9001%2013.8599%2011.6701%2013.7399%2011.5301%2013.5499C11.3901%2013.3599%2011.3501%2013.0999%2011.4301%2012.8699L12.1901%2010.5799C12.2901%2010.2699%2012.5801%2010.0699%2012.9001%2010.0699H15.9601C16.3701%2010.0699%2016.7101%2010.4099%2016.7101%2010.8199C16.7101%2011.2299%2016.3701%2011.5699%2015.9601%2011.5699H13.4401L13.1801%2012.3599H14.4301C15.6901%2012.3599%2016.7101%2013.3799%2016.7101%2014.6399C16.7101%2015.8999%2015.6801%2016.9199%2014.4301%2016.9199Z'%20fill='white'/%3e%3cpath%20d='M9.54004%2016.92C9.13004%2016.92%208.79004%2016.58%208.79004%2016.17V12.78L8.60004%2013C8.32004%2013.31%207.85004%2013.33%207.54004%2013.06C7.24004%2012.78%207.21004%2012.31%207.49004%2012L8.99004%2010.33C9.20004%2010.1%209.53004%2010.02%209.82004%2010.13C10.11%2010.24%2010.3%2010.52%2010.3%2010.83V16.18C10.29%2016.59%209.96004%2016.92%209.54004%2016.92Z'%20fill='white'/%3e%3cpath%20d='M19.69%207.35002C19.44%207.02002%2018.97%206.95002%2018.64%207.20002C18.31%207.45002%2018.24%207.92002%2018.49%208.25002C19.57%209.69002%2020.14%2011.37%2020.14%2013.11C20.14%2017.6%2016.49%2021.25%2012%2021.25C7.50998%2021.25%203.85998%2017.6%203.85998%2013.11C3.85998%208.62002%207.50998%204.98002%2012%204.98002C12.58%204.98002%2013.17%205.05002%2013.81%205.20002C13.84%205.21002%2013.87%205.20002%2013.9%205.20002C13.93%205.20002%2013.95%205.22002%2013.97%205.22002C14%205.22002%2014.02%205.21002%2014.05%205.21002C14.08%205.21002%2014.11%205.20002%2014.15%205.19002C14.21%205.18002%2014.26%205.15002%2014.31%205.13002C14.34%205.11002%2014.37%205.10002%2014.4%205.08002C14.41%205.07002%2014.43%205.07002%2014.44%205.06002C14.47%205.04002%2014.48%205.01002%2014.5%204.99002C14.54%204.95002%2014.57%204.92002%2014.6%204.87002C14.63%204.83002%2014.64%204.78002%2014.66%204.73002C14.67%204.70002%2014.69%204.67002%2014.7%204.64002C14.7%204.62002%2014.7%204.61002%2014.7%204.59002C14.71%204.54002%2014.71%204.49002%2014.7%204.44002C14.7%204.39002%2014.7%204.35002%2014.69%204.30002C14.68%204.26002%2014.66%204.22002%2014.64%204.17002C14.62%204.12002%2014.6%204.07002%2014.57%204.03002C14.57%204.02002%2014.57%204.01002%2014.56%204.00002L12.58%201.53002C12.32%201.21002%2011.85%201.15002%2011.53%201.41002C11.21%201.67002%2011.16%202.14002%2011.41%202.46002L12.23%203.48002C12.15%203.48002%2012.07%203.47002%2011.99%203.47002C6.67998%203.47002%202.34998%207.79002%202.34998%2013.11C2.34998%2018.43%206.66997%2022.75%2011.99%2022.75C17.31%2022.75%2021.63%2018.43%2021.63%2013.11C21.64%2011.04%2020.96%209.05002%2019.69%207.35002Z'%20fill='white'/%3e%3c/svg%3e",chevronRight:"data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.75004%202.49761C6.89254%202.49761%207.03504%202.55011%207.14754%202.66261L12.0375%207.55261C12.8325%208.34761%2012.8325%209.65261%2012.0375%2010.4476L7.14754%2015.3376C6.93004%2015.5551%206.57004%2015.5551%206.35254%2015.3376C6.13504%2015.1201%206.13504%2014.7601%206.35254%2014.5426L11.2425%209.65261C11.6025%209.29261%2011.6025%208.70761%2011.2425%208.34761L6.35254%203.45761C6.13504%203.24011%206.13504%202.88011%206.35254%202.66261C6.46504%202.55761%206.60754%202.49761%206.75004%202.49761Z'%20fill='white'/%3e%3c/svg%3e",pictureInPicture:"data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.13013%207.72396C8.49563%207.72396%207.93338%207.95288%207.53288%208.38254C7.13682%208.80737%206.9443%209.37888%206.9443%209.98921V11.773C6.9443%2012.3826%207.1354%2012.9545%207.53121%2013.3799C7.9318%2013.8104%208.49446%2014.039%209.13013%2014.039H11.8836C12.5192%2014.039%2013.082%2013.8104%2013.4827%2013.38C13.8788%2012.9547%2014.0702%2012.3829%2014.0702%2011.773V9.98921C14.0702%209.37954%2013.8787%208.80796%2013.4827%208.38271C13.082%207.95254%2012.5192%207.72396%2011.8836%207.72396H9.13013ZM8.1943%209.98921C8.1943%209.63863%208.30255%209.39004%208.44721%209.23496C8.58721%209.08471%208.80538%208.97396%209.13013%208.97396H11.8836C12.2105%208.97396%2012.4285%209.08496%2012.568%209.23471C12.7122%209.38954%2012.8202%209.63804%2012.8202%209.98921V11.773C12.8202%2012.1247%2012.7121%2012.3734%2012.568%2012.5282C12.4285%2012.678%2012.2105%2012.789%2011.8836%2012.789H9.13013C8.80338%2012.789%208.58563%2012.678%208.44638%2012.5284C8.30238%2012.3736%208.1943%2012.1249%208.1943%2011.773V9.98921Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.55509%200.875C4.17553%200.875%203.00718%201.36764%202.18678%202.24781C1.37092%203.12309%200.944946%204.33172%200.944946%205.68865V12.3113C0.944946%2013.6675%201.36863%2014.8763%202.18376%2015.7519C3.0036%2016.6326%204.17229%2017.125%205.55509%2017.125H12.5832C13.9663%2017.125%2015.1354%2016.6327%2015.9555%2015.752C16.771%2014.8763%2017.195%2013.6676%2017.195%2012.3113V5.68865C17.195%204.33241%2016.771%203.12367%2015.9556%202.24804C15.1356%201.36737%2013.9668%200.875%2012.584%200.875H5.55509ZM2.19495%205.68865C2.19495%204.59126%202.53681%203.70555%203.10116%203.1001C3.66096%202.49952%204.48518%202.125%205.55509%202.125H12.584C13.658%202.125%2014.4821%202.49979%2015.0409%203.09987C15.6043%203.70497%2015.945%204.59057%2015.945%205.68865V12.3113C15.945%2013.4094%2015.6043%2014.295%2015.0408%2014.9001C14.482%2015.5002%2013.6576%2015.875%2012.5832%2015.875H5.55509C4.48113%2015.875%203.65725%2015.5002%203.0987%2014.9002C2.53545%2014.2951%202.19495%2013.4095%202.19495%2012.3113V5.68865Z'%20fill='white'/%3e%3c/svg%3e",lock:"data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.99975%2012.4695C6.62095%2012.4687%206.25087%2012.3556%205.93631%2012.1445C5.62167%2011.9335%205.37671%2011.634%205.23231%2011.2837C5.08797%2010.9335%205.05065%2010.5484%205.12509%2010.1769C5.19954%209.80548%205.38239%209.46444%205.65063%209.19692C5.91879%208.9294%206.26031%208.7474%206.63191%208.67388C7.00351%208.60036%207.38855%208.63868%207.73839%208.78388C8.08831%208.92916%208.38719%209.17492%208.59751%209.48996C8.80775%209.80508%208.91991%2010.1755%208.91975%2010.5543C8.91847%2011.0627%208.71559%2011.5498%208.35567%2011.9088C7.99575%2012.2678%207.50815%2012.4695%206.99975%2012.4695ZM6.99975%209.83828C6.85847%209.83908%206.72063%209.88164%206.60343%209.9606C6.48631%2010.0396%206.39519%2010.1514%206.34151%2010.2821C6.28775%2010.4128%206.27391%2010.5564%206.30167%2010.6949C6.32943%2010.8334%206.39759%2010.9607%206.49743%2011.0605C6.59735%2011.1604%206.72455%2011.2285%206.86311%2011.2563C7.00159%2011.284%207.14519%2011.2702%207.27591%2011.2165C7.40655%2011.1628%207.51839%2011.0716%207.59735%2010.9545C7.67639%2010.8374%207.71895%2010.6996%207.71975%2010.5583C7.71975%2010.3673%207.64383%2010.1842%207.50887%2010.0492C7.37383%209.91412%207.19071%209.83828%206.99975%209.83828Z'%20fill='white'/%3e%3cpath%20d='M10.56%206.56697C10.4009%206.56697%2010.2483%206.50377%2010.1358%206.39125C10.0232%206.27873%209.96004%206.12612%209.96004%205.96698V4.28699C9.94804%203.50988%209.63092%202.76865%209.07708%202.22337C8.52332%201.67808%207.77724%201.37249%207.00004%201.37258H6.96244C6.19148%201.3786%205.45372%201.6867%204.90742%202.23073C4.36116%202.77474%204.05001%203.51129%204.04082%204.28218V5.96218C4.04082%206.12131%203.97761%206.27393%203.86509%206.38645C3.75256%206.49897%203.59995%206.56217%203.44082%206.56217C3.28169%206.56217%203.12908%206.49897%203.01656%206.38645C2.90403%206.27393%202.84082%206.12131%202.84082%205.96218V4.27418C2.85189%203.18905%203.28844%202.15162%204.05652%201.38503C4.8246%200.618446%205.86292%200.183934%206.94804%200.174982C8.04956%200.169374%209.10988%200.59323%209.90404%201.35658C10.2962%201.73705%2010.609%202.19153%2010.8244%202.69371C11.0396%203.19589%2011.1532%203.73581%2011.1584%204.28218V5.96698C11.1584%206.12584%2011.0954%206.27821%2010.9832%206.39069C10.8711%206.50313%2010.7189%206.56657%2010.56%206.56697Z'%20fill='white'/%3e%3cpath%20d='M9.1601%2015.7892H4.84009C3.9404%2015.8864%203.03035%2015.7856%202.17371%2015.494C1.55896%2015.1986%201.06319%2014.7025%200.768099%2014.0876C0.475555%2013.2312%200.374515%2012.3209%200.472099%2011.4212V9.71636C0.374659%208.81636%200.475691%207.90596%200.768099%207.04916C1.06391%206.435%201.55951%205.93942%202.17371%205.6436C3.03034%205.35189%203.9404%205.25113%204.84009%205.3484H9.1601C10.0598%205.25113%2010.9699%205.35189%2011.8265%205.6436C12.4407%205.93942%2012.9363%206.435%2013.2321%207.04916C13.5245%207.90596%2013.6255%208.81636%2013.5281%209.71636V11.4212C13.6256%2012.3212%2013.5246%2013.2316%2013.2321%2014.0884C12.9369%2014.7028%2012.4415%2015.1984%2011.8273%2015.494C10.9703%2015.7856%2010.0601%2015.8864%209.1601%2015.7892ZM4.84009%206.54836C4.11926%206.47548%203.39116%206.53564%202.6921%206.72596C2.32372%206.90356%202.02647%207.20084%201.84891%207.56916C1.65927%208.26812%201.59935%208.99588%201.6721%209.71636V11.4212C1.59943%2012.142%201.65936%2012.87%201.84891%2013.5692C2.02679%2013.9376%202.32431%2014.2348%202.6929%2014.4124C3.39183%2014.602%204.11957%2014.6619%204.84009%2014.5892H9.1601C9.8809%2014.6618%2010.6089%2014.6019%2011.3081%2014.4124C11.6763%2014.2346%2011.9735%2013.9374%2012.1513%2013.5692C12.3408%2012.87%2012.4007%2012.142%2012.3281%2011.4212V9.71636C12.4008%208.99588%2012.3409%208.26812%2012.1513%207.56916C11.9737%207.20084%2011.6765%206.90356%2011.3081%206.72596C10.6091%206.53564%209.88098%206.47548%209.1601%206.54836H4.84009Z'%20fill='white'/%3e%3c/svg%3e",unlock:"data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.1601%2015.8053H4.84006C3.94037%2015.9025%203.03032%2015.8017%202.17368%2015.5101C1.55957%2015.2137%201.06405%2014.7179%200.768064%2014.1037C0.475576%2013.2472%200.374536%2012.337%200.472072%2011.4373V9.73166C0.374624%208.83166%200.475664%207.92118%200.768064%207.06446C1.06431%206.44918%201.56076%205.95269%202.17607%205.65645C3.03282%205.36405%203.94325%205.26301%204.84326%205.36045H9.1601C10.0599%205.26293%2010.97%205.36397%2011.8265%205.65645C12.4409%205.95237%2012.9365%206.4483%2013.2321%207.06286C13.5247%207.91902%2013.6257%208.82894%2013.5281%209.72846V11.4341C13.6255%2012.3341%2013.5245%2013.2445%2013.2321%2014.1013C12.9363%2014.7153%2012.4411%2015.2108%2011.8273%2015.5069C10.9706%2015.7995%2010.0603%2015.9013%209.1601%2015.8053ZM4.84006%206.56366C4.11945%206.49038%203.39151%206.55086%202.69287%206.74206C2.32455%206.91934%202.0273%207.2163%201.84968%207.58446C1.65937%208.28326%201.59916%209.0111%201.67207%209.73166V11.4373C1.59905%2012.1578%201.65926%2012.8857%201.84968%2013.5845C2.02747%2013.9529%202.32462%2014.2503%202.69287%2014.4285C3.3918%2014.618%204.11954%2014.6779%204.84006%2014.6053H9.1601C9.88089%2014.6782%2010.609%2014.618%2011.3081%2014.4277C11.6763%2014.2502%2011.9735%2013.9533%2012.1513%2013.5853C12.3407%2012.8861%2012.4007%2012.1581%2012.3281%2011.4373V9.73166C12.4009%209.01142%2012.341%208.2839%2012.1513%207.58526C11.9739%207.2167%2011.6766%206.91942%2011.3081%206.74206C10.6091%206.55086%209.88097%206.49038%209.1601%206.56366H4.84006Z'%20fill='white'/%3e%3cpath%20d='M6.99975%2012.4985C6.62159%2012.4985%206.25191%2012.3863%205.93751%2012.1763C5.62303%2011.9661%205.37799%2011.6675%205.23327%2011.3182C5.08856%2010.9687%205.05069%2010.5843%205.12447%2010.2135C5.19823%209.84258%205.38039%209.50186%205.64775%209.2345C5.91519%208.96706%206.25583%208.78498%206.62671%208.71122C6.99759%208.63746%207.38207%208.6753%207.73143%208.82002C8.08079%208.96474%208.37943%209.20978%208.58951%209.52418C8.79959%209.83866%208.91175%2010.2083%208.91175%2010.5865C8.91111%2011.0934%208.70943%2011.5793%208.35103%2011.9378C7.99263%2012.2962%207.50663%2012.4979%206.99975%2012.4985ZM6.99975%209.8745C6.85895%209.8745%206.72127%209.91618%206.60415%209.99442C6.48711%2010.0727%206.39583%2010.1839%206.34191%2010.314C6.28807%2010.4441%206.27391%2010.5872%206.30143%2010.7254C6.32887%2010.8635%206.39671%2010.9903%206.49623%2011.0899C6.59583%2011.1895%206.72271%2011.2573%206.86079%2011.2847C6.99895%2011.3123%207.14207%2011.2982%207.27223%2011.2443C7.40231%2011.1903%207.51351%2011.0991%207.59175%2010.982C7.66999%2010.8649%207.71175%2010.7273%207.71175%2010.5865C7.71151%2010.3977%207.63647%2010.2167%207.50295%2010.0832C7.36951%209.94978%207.18847%209.87466%206.99975%209.8745Z'%20fill='white'/%3e%3cpath%20d='M3.45181%206.56472C3.29268%206.56472%203.14006%206.50152%203.02754%206.38896C2.91502%206.27644%202.85181%206.12383%202.85181%205.96469V4.2767C2.85965%203.29932%203.21213%202.35606%203.84714%201.61303C4.48216%200.870007%205.35897%200.374879%206.32321%200.214847C7.28745%200.0548071%208.27721%200.240135%209.11817%200.738183C9.95913%201.23623%2010.5974%202.01506%2010.9206%202.9375C10.9492%203.0125%2010.9624%203.09246%2010.9595%203.17267C10.9566%203.25288%2010.9377%203.3317%2010.9038%203.40445C10.8699%203.47721%2010.8218%203.54242%2010.7622%203.59624C10.7027%203.65006%2010.633%203.69139%2010.5572%203.71778C10.4814%203.74417%2010.4011%203.75509%2010.321%203.74988C10.241%203.74467%2010.1626%203.72345%2010.091%203.68747C10.0192%203.65149%209.95544%203.60148%209.90336%203.54041C9.85128%203.47933%209.81201%203.40843%209.78784%203.33189C9.55912%202.67479%209.10569%202.1196%208.50745%201.76434C7.90929%201.40908%207.20473%201.27659%206.51833%201.39028C5.83193%201.50396%205.20777%201.8565%204.75601%202.38565C4.30426%202.91481%204.05401%203.58655%204.04941%204.28229V5.96629C4.049%206.12473%203.98591%206.27657%203.87395%206.38869C3.762%206.5008%203.61025%206.56408%203.45181%206.56472Z'%20fill='white'/%3e%3c/svg%3e",arrowLeft:"data:image/svg+xml,%3csvg%20width='23'%20height='24'%20viewBox='0%200%2023%2024'%20fill='white'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.0182%2023.9979C21.4008%2023.9432%2022.6699%2022.815%2022.6699%2021.295L22.6699%202.70464C22.6699%200.677986%2020.4125%20-0.651722%2018.6399%200.330475L1.86725%209.62567C0.0436726%2010.6363%200.0436726%2013.3634%201.86725%2014.374L18.6399%2023.6692C19.0831%2023.9147%2019.5573%2024.0162%2020.0182%2023.9979Z'%20fill='white'/%3e%3c/svg%3e",speed:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.1543%202.49976C8.1543%202.15458%208.43405%201.87476%208.7793%201.87476H12.285C12.6301%201.87476%2012.91%202.15458%2012.91%202.49976C12.91%202.84493%2012.6301%203.12476%2012.285%203.12476H8.7793C8.43405%203.12476%208.1543%202.84493%208.1543%202.49976Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20d='M3.52295%2011.1133C3.52295%207.24291%206.66036%204.10457%2010.5317%204.10457C14.4022%204.10457%2017.5395%207.24296%2017.5395%2011.1133C17.5395%2014.9833%2014.4025%2018.1234%2010.5319%2018.1236L7.2249%2018.1253C6.87972%2018.1254%206.59977%2017.8457%206.5996%2017.5005C6.59942%2017.1553%206.87911%2016.8754%207.22429%2016.8753L10.5313%2016.8736C13.7111%2016.8736%2016.2895%2014.2937%2016.2895%2011.1133C16.2895%207.93311%2013.7116%205.35457%2010.5317%205.35457C7.35082%205.35457%204.77295%207.93316%204.77295%2011.1133C4.77295%2011.4584%204.49312%2011.7383%204.14795%2011.7383C3.80277%2011.7383%203.52295%2011.4584%203.52295%2011.1133Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20d='M4.52962%2015.3888C4.52962%2015.0436%204.80944%2014.7638%205.15462%2014.7638H8.73116C9.07633%2014.7638%209.35616%2015.0436%209.35616%2015.3888C9.35616%2015.7339%209.07633%2016.0138%208.73116%2016.0138H5.15462C4.80944%2016.0138%204.52962%2015.7339%204.52962%2015.3888Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20d='M3.08594%2012.6528C2.74076%2012.6528%202.46094%2012.9326%202.46094%2013.2778C2.46094%2013.6229%202.74076%2013.9028%203.08594%2013.9028H6.66247C7.00765%2013.9028%207.28747%2013.6229%207.28747%2013.2778C7.28747%2012.9326%207.00765%2012.6528%206.66247%2012.6528H3.08594Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20d='M13.415%209.08101C13.6591%208.83693%2013.6591%208.44126%2013.415%208.19714C13.1709%207.95306%2012.7752%207.95306%2012.5311%208.19714L10.0805%2010.6477C9.83644%2010.8918%209.83644%2011.2875%2010.0805%2011.5316C10.3246%2011.7757%2010.7204%2011.7757%2010.9644%2011.5316L13.415%209.08101Z'%20fill='black'%20fill-opacity='0.5'/%3e%3c/svg%3e",speed1:"data:image/svg+xml,%3csvg%20width='18'%20height='15'%20viewBox='0%200%2018%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.5488%201.53559C8.20532%201.02852%205.66339%201.68608%203.84359%203.50588C1.15649%206.19298%201.00481%2010.4572%203.39041%2013.3215C3.55135%2013.5148%203.8176%2013.6347%204.13036%2013.6347H13.8687C14.1816%2013.6347%2014.4476%2013.5149%2014.6085%2013.3217C16.0815%2011.5533%2016.5884%209.25027%2016.1258%207.11249C16.0528%206.77512%2016.2671%206.44245%2016.6045%206.36945C16.9418%206.29645%2017.2745%206.51077%2017.3475%206.84814C17.8886%209.34866%2017.2968%2012.0474%2015.569%2014.1217C15.1326%2014.6455%2014.489%2014.8847%2013.8687%2014.8847H4.13036C3.50995%2014.8847%202.86616%2014.6453%202.42991%2014.1215C-0.36559%2010.765%20-0.188583%205.77029%202.95971%202.622C5.09241%200.489299%208.07189%20-0.279272%2010.8132%200.31386C11.1505%200.386857%2011.3648%200.719527%2011.2918%201.0569C11.2188%201.39427%2010.8862%201.60859%2010.5488%201.53559Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.9976%202.66523C15.2417%202.9093%2015.2417%203.30503%2014.9976%203.54911L10.7129%207.83399C10.8469%208.09798%2010.9225%208.39667%2010.9225%208.713C10.9225%209.78688%2010.0519%2010.6574%208.97805%2010.6574C7.90417%2010.6574%207.03362%209.78688%207.03362%208.713C7.03362%207.63912%207.90417%206.76856%208.97805%206.76856C9.27953%206.76856%209.56498%206.83718%209.81965%206.95963C9.82222%206.95697%209.82483%206.95432%209.82746%206.95168L14.1137%202.66525C14.3578%202.42116%2014.7535%202.42115%2014.9976%202.66523ZM9.67249%208.713C9.67249%209.09652%209.36158%209.40743%208.97805%209.40743C8.59453%209.40743%208.28362%209.09652%208.28362%208.713C8.28362%208.32947%208.59453%208.01856%208.97805%208.01856C9.36158%208.01856%209.67249%208.32947%209.67249%208.713Z'%20fill='white'/%3e%3c/svg%3e",tick:"data:image/svg+xml,%3csvg%20width='15'%20height='11'%20viewBox='0%200%2015%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.36893%2010.7566C5.06878%2010.7566%204.78364%2010.6366%204.57354%2010.4265L0.326413%206.17934C-0.108804%205.74412%20-0.108804%205.02376%200.326413%204.58854C0.761631%204.15333%201.48199%204.15333%201.91721%204.58854L5.36893%208.04027L13.0828%200.326413C13.518%20-0.108804%2014.2384%20-0.108804%2014.6736%200.326413C15.1088%200.761631%2015.1088%201.48199%2014.6736%201.91721L6.16433%2010.4265C5.95423%2010.6366%205.66908%2010.7566%205.36893%2010.7566Z'%20fill='white'/%3e%3c/svg%3e",qualitySetting:"data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.11683%202.24781C2.93723%201.36764%204.10557%200.875%205.48513%200.875H12.5141C13.8968%200.875%2015.0657%201.36737%2015.8857%202.24804C16.7011%203.12367%2017.125%204.33241%2017.125%205.68865V12.3113C17.125%2013.6676%2016.7011%2014.8763%2015.8856%2015.752C15.0654%2016.6327%2013.8964%2017.125%2012.5133%2017.125H5.48513C4.10233%2017.125%202.93365%2016.6326%202.11381%2015.7519C1.29868%2014.8763%200.875%2013.6675%200.875%2012.3113V5.68865C0.875%204.33172%201.30098%203.12309%202.11683%202.24781ZM3.03121%203.1001C2.46687%203.70556%202.125%204.59126%202.125%205.68865V12.3113C2.125%2013.4095%202.46551%2014.2951%203.02876%2014.9002C3.58729%2015.5002%204.41117%2015.875%205.48513%2015.875H12.5133C13.5877%2015.875%2014.412%2015.5002%2014.9708%2014.9001C15.5343%2014.295%2015.875%2013.4094%2015.875%2012.3113V5.68865C15.875%204.59057%2015.5343%203.70497%2014.9709%203.09987C14.4122%202.49979%2013.588%202.125%2012.5141%202.125H5.48513C4.41523%202.125%203.59101%202.49952%203.03121%203.1001ZM7.45442%204.75486C7.79958%204.75486%208.07942%205.03467%208.07942%205.37986V6.42142C8.0795%206.42605%208.07958%206.43068%208.07958%206.43533C8.07958%206.43998%208.0795%206.44462%208.07942%206.44925V7.49042C8.07942%207.83558%207.79958%208.11542%207.45442%208.11542C7.10925%208.11542%206.82942%207.83558%206.82942%207.49042V7.06033H5.52238C5.1772%207.06033%204.89738%206.78052%204.89738%206.43533C4.89738%206.09016%205.1772%205.81033%205.52238%205.81033H6.82942V5.37986C6.82942%205.03467%207.10925%204.75486%207.45442%204.75486ZM8.87858%206.43533C8.87858%206.09016%209.15842%205.81033%209.50358%205.81033H12.476C12.8212%205.81033%2013.101%206.09016%2013.101%206.43533C13.101%206.78052%2012.8212%207.06033%2012.476%207.06033H9.50358C9.15842%207.06033%208.87858%206.78052%208.87858%206.43533ZM9.88683%209.88417C10.232%209.88417%2010.5118%2010.164%2010.5118%2010.5092V11.55C10.5119%2011.5546%2010.512%2011.5592%2010.512%2011.5638C10.512%2011.5685%2010.5119%2011.5732%2010.5118%2011.5777V12.6198C10.5118%2012.9649%2010.232%2013.2448%209.88683%2013.2448C9.54167%2013.2448%209.26183%2012.9649%209.26183%2012.6198V12.1888H5.52238C5.1772%2012.1888%204.89738%2011.9091%204.89738%2011.5638C4.89738%2011.2187%205.1772%2010.9388%205.52238%2010.9388H9.26183V10.5092C9.26183%2010.164%209.54167%209.88417%209.88683%209.88417ZM11.3102%2011.5638C11.3102%2011.2187%2011.5901%2010.9388%2011.9353%2010.9388H12.4752C12.8204%2010.9388%2013.1002%2011.2187%2013.1002%2011.5638C13.1002%2011.9091%2012.8204%2012.1888%2012.4752%2012.1888H11.9353C11.5901%2012.1888%2011.3102%2011.9091%2011.3102%2011.5638Z'%20fill='black'%20fill-opacity='0.5'/%3e%3c/svg%3e",qualitySetting1:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.11683%203.24781C3.93723%202.36764%205.10557%201.875%206.48513%201.875H13.5141C14.8968%201.875%2016.0657%202.36737%2016.8857%203.24804C17.7011%204.12367%2018.125%205.33241%2018.125%206.68865V13.3113C18.125%2014.6676%2017.7011%2015.8763%2016.8856%2016.752C16.0654%2017.6327%2014.8964%2018.125%2013.5133%2018.125H6.48513C5.10233%2018.125%203.93365%2017.6326%203.11381%2016.7519C2.29868%2015.8763%201.875%2014.6675%201.875%2013.3113V6.68865C1.875%205.33172%202.30098%204.12309%203.11683%203.24781ZM4.03121%204.1001C3.46687%204.70556%203.125%205.59126%203.125%206.68865V13.3113C3.125%2014.4095%203.46551%2015.2951%204.02876%2015.9002C4.58729%2016.5002%205.41117%2016.875%206.48513%2016.875H13.5133C14.5877%2016.875%2015.412%2016.5002%2015.9708%2015.9001C16.5343%2015.295%2016.875%2014.4094%2016.875%2013.3113V6.68865C16.875%205.59057%2016.5343%204.70497%2015.9709%204.09987C15.4122%203.49979%2014.588%203.125%2013.5141%203.125H6.48513C5.41523%203.125%204.59101%203.49952%204.03121%204.1001ZM8.45442%205.75486C8.79958%205.75486%209.07942%206.03467%209.07942%206.37986V7.42142C9.0795%207.42605%209.07958%207.43068%209.07958%207.43533C9.07958%207.43998%209.0795%207.44462%209.07942%207.44925V8.49042C9.07942%208.83558%208.79958%209.11542%208.45442%209.11542C8.10925%209.11542%207.82942%208.83558%207.82942%208.49042V8.06033H6.52238C6.1772%208.06033%205.89738%207.78052%205.89738%207.43533C5.89738%207.09016%206.1772%206.81033%206.52238%206.81033H7.82942V6.37986C7.82942%206.03467%208.10925%205.75486%208.45442%205.75486ZM9.87858%207.43533C9.87858%207.09016%2010.1584%206.81033%2010.5036%206.81033H13.476C13.8212%206.81033%2014.101%207.09016%2014.101%207.43533C14.101%207.78052%2013.8212%208.06033%2013.476%208.06033H10.5036C10.1584%208.06033%209.87858%207.78052%209.87858%207.43533ZM10.8868%2010.8842C11.232%2010.8842%2011.5118%2011.164%2011.5118%2011.5092V12.55C11.5119%2012.5546%2011.512%2012.5592%2011.512%2012.5638C11.512%2012.5685%2011.5119%2012.5732%2011.5118%2012.5777V13.6198C11.5118%2013.9649%2011.232%2014.2448%2010.8868%2014.2448C10.5417%2014.2448%2010.2618%2013.9649%2010.2618%2013.6198V13.1888H6.52238C6.1772%2013.1888%205.89738%2012.9091%205.89738%2012.5638C5.89738%2012.2187%206.1772%2011.9388%206.52238%2011.9388H10.2618V11.5092C10.2618%2011.164%2010.5417%2010.8842%2010.8868%2010.8842ZM12.3102%2012.5638C12.3102%2012.2187%2012.5901%2011.9388%2012.9353%2011.9388H13.4752C13.8204%2011.9388%2014.1002%2012.2187%2014.1002%2012.5638C14.1002%2012.9091%2013.8204%2013.1888%2013.4752%2013.1888H12.9353C12.5901%2013.1888%2012.3102%2012.9091%2012.3102%2012.5638Z'%20fill='white'/%3e%3c/svg%3e",notFound:"data:image/svg+xml,%3csvg%20width='123'%20height='72'%20viewBox='0%200%20123%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.5'%3e%3cg%20opacity='0.3'%20filter='url(%23filter0_f_113_8034)'%3e%3cellipse%20cx='59.429'%20cy='67.3152'%20rx='56.5'%20ry='2.5'%20fill='url(%23paint0_linear_113_8034)'/%3e%3c/g%3e%3cpath%20d='M31.1913%205.75171H89.5312C95.4885%205.75171%20100.323%2010.5866%20100.323%2016.5438V56.0536C100.323%2062.0109%2095.4885%2066.8457%2089.5312%2066.8457H31.1913C25.234%2066.8457%2020.3992%2062.0109%2020.3992%2056.0536V16.5438C20.3992%2010.5866%2025.234%205.75171%2031.1913%205.75171Z'%20fill='%23E3E3E3'/%3e%3cpath%20d='M113.586%2042.8287L119.243%2048.4856'%20stroke='%23C0BCBC'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M119.243%2042.8286L113.586%2048.4855'%20stroke='%23C0BCBC'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.75732%2019.8287L10.4142%2025.4856'%20stroke='%23C0BCBC'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10.4142%2019.8286L4.75732%2025.4855'%20stroke='%23C0BCBC'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M100.327%2022.8965V16.5438C100.327%2010.5832%2095.4952%205.75171%2089.5345%205.75171H31.1913C25.2307%205.75171%2020.3992%2010.5866%2020.3992%2016.5438V22.8965H100.327Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M32.7025%2014.3256C32.7025%2015.8434%2031.4695%2017.0764%2029.9517%2017.0764C28.4339%2017.0764%2027.1975%2015.8434%2027.1975%2014.3256C27.1975%2012.8078%2028.4305%2011.5748%2029.9517%2011.5748C31.4728%2011.5748%2032.7025%2012.8078%2032.7025%2014.3256Z'%20fill='%23DADADA'/%3e%3cpath%20d='M40.2545%2014.3255C40.2545%2015.8433%2039.0215%2017.0763%2037.5037%2017.0763C35.9859%2017.0763%2034.7495%2015.8433%2034.7495%2014.3255C34.7495%2012.8077%2035.9792%2011.5747%2037.5037%2011.5747C39.0282%2011.5747%2040.2545%2012.8077%2040.2545%2014.3255Z'%20fill='%23DADADA'/%3e%3cpath%20d='M47.8069%2014.3255C47.8069%2015.8433%2046.5739%2017.0763%2045.0594%2017.0763C43.5449%2017.0763%2042.3086%2015.8433%2042.3086%2014.3255C42.3086%2012.8077%2043.5416%2011.5747%2045.0594%2011.5747C46.5772%2011.5747%2047.8069%2012.8077%2047.8069%2014.3255Z'%20fill='%23DADADA'/%3e%3cpath%20d='M92.7577%2014.3257C92.7577%2016.0479%2091.3639%2017.4417%2089.6417%2017.4417H57.9622C56.2434%2017.4417%2054.8462%2016.0446%2054.8462%2014.3257C54.8462%2012.6035%2056.2434%2011.2097%2057.9622%2011.2097H89.6417C91.3639%2011.2097%2092.7577%2012.6035%2092.7577%2014.3257Z'%20fill='white'/%3e%3cpath%20d='M50.0952%2051.0009V35.528C50.0952%2031.7318%2052.7857%2030.1805%2056.076%2032.0736L57.5234%2032.9112C60.8069%2034.8076%2066.1913%2037.9169%2069.4748%2039.8133L70.9256%2040.651C74.2159%2042.5508%2074.2159%2045.6534%2070.9256%2047.5531L69.4748%2048.3874C66.1913%2050.2872%2060.8103%2053.3932%2057.5234%2055.2896L56.076%2056.1238C52.7857%2058.0203%2050.0952%2056.469%2050.0952%2052.6728V51.0009Z'%20fill='%23AAAAAA'/%3e%3c/g%3e%3ccircle%20cx='96.6863'%20cy='13.6848'%20r='12.5'%20fill='%23DC1964'%20stroke='%23C80250'%20stroke-width='2'/%3e%3cpath%20d='M100.98%206.29301C101.37%205.90249%20102.004%205.90249%20102.394%206.29302L104.121%208.01955C104.511%208.41008%20104.511%209.04324%20104.121%209.43376L92.62%2020.9345C92.2294%2021.325%2091.5963%2021.325%2091.2058%2020.9345L89.4792%2019.2079C89.0887%2018.8174%2089.0887%2018.1842%2089.4792%2017.7937L100.98%206.29301Z'%20fill='white'/%3e%3cpath%20d='M92.6199%206.29301C92.2294%205.90249%2091.5962%205.90249%2091.2057%206.29302L89.4792%208.01955C89.0886%208.41008%2089.0886%209.04324%2089.4792%209.43376L100.98%2020.9345C101.37%2021.325%20102.004%2021.325%20102.394%2020.9345L104.121%2019.2079C104.511%2018.8174%20104.511%2018.1842%20104.121%2017.7937L92.6199%206.29301Z'%20fill='white'/%3e%3cdefs%3e%3cfilter%20id='filter0_f_113_8034'%20x='0.928955'%20y='62.8152'%20width='117'%20height='9'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1'%20result='effect1_foregroundBlur_113_8034'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_113_8034'%20x1='2.92896'%20y1='67.3152'%20x2='115.929'%20y2='67.3152'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-opacity='0'/%3e%3cstop%20offset='0.342341'/%3e%3cstop%20offset='0.694197'/%3e%3cstop%20offset='1'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",closeSquare:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.11357%2010.3867C5.9869%2010.3867%205.86023%2010.34%205.76023%2010.24C5.5669%2010.0467%205.5669%209.72666%205.76023%209.53332L9.53357%205.75999C9.7269%205.56666%2010.0469%205.56666%2010.2402%205.75999C10.4336%205.95332%2010.4336%206.27332%2010.2402%206.46666L6.4669%2010.24C6.37357%2010.34%206.24023%2010.3867%206.11357%2010.3867Z'%20fill='white'/%3e%3cpath%20d='M9.8869%2010.3867C9.76023%2010.3867%209.63357%2010.34%209.53357%2010.24L5.76023%206.46666C5.5669%206.27332%205.5669%205.95332%205.76023%205.75999C5.95357%205.56666%206.27357%205.56666%206.4669%205.75999L10.2402%209.53332C10.4336%209.72666%2010.4336%2010.0467%2010.2402%2010.24C10.1402%2010.34%2010.0136%2010.3867%209.8869%2010.3867Z'%20fill='white'/%3e%3cpath%20d='M10.0002%2015.1666H6.00016C2.38016%2015.1666%200.833496%2013.62%200.833496%209.99998V5.99998C0.833496%202.37998%202.38016%200.833313%206.00016%200.833313H10.0002C13.6202%200.833313%2015.1668%202.37998%2015.1668%205.99998V9.99998C15.1668%2013.62%2013.6202%2015.1666%2010.0002%2015.1666ZM6.00016%201.83331C2.92683%201.83331%201.8335%202.92665%201.8335%205.99998V9.99998C1.8335%2013.0733%202.92683%2014.1666%206.00016%2014.1666H10.0002C13.0735%2014.1666%2014.1668%2013.0733%2014.1668%209.99998V5.99998C14.1668%202.92665%2013.0735%201.83331%2010.0002%201.83331H6.00016Z'%20fill='white'/%3e%3c/svg%3e",sun:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.99935%2015.8327C13.221%2015.8327%2015.8327%2013.221%2015.8327%209.99935C15.8327%206.77769%2013.221%204.16602%209.99935%204.16602C6.77769%204.16602%204.16602%206.77769%204.16602%209.99935C4.16602%2013.221%206.77769%2015.8327%209.99935%2015.8327Z'%20fill='%23FAD832'/%3e%3cpath%20d='M10.0007%2019.134C9.54232%2019.134%209.16732%2018.7923%209.16732%2018.334V18.2673C9.16732%2017.809%209.54232%2017.434%2010.0007%2017.434C10.459%2017.434%2010.834%2017.809%2010.834%2018.2673C10.834%2018.7257%2010.459%2019.134%2010.0007%2019.134ZM15.9507%2016.784C15.734%2016.784%2015.5257%2016.7007%2015.359%2016.5423L15.2507%2016.434C14.9256%2016.109%2014.9256%2015.584%2015.2507%2015.259C15.5757%2014.934%2016.1006%2014.934%2016.4256%2015.259L16.534%2015.3673C16.859%2015.6923%2016.859%2016.2173%2016.534%2016.5423C16.3757%2016.7007%2016.1673%2016.784%2015.9507%2016.784ZM4.05065%2016.784C3.83398%2016.784%203.62565%2016.7007%203.45898%2016.5423C3.13398%2016.2173%203.13398%2015.6923%203.45898%2015.3673L3.56732%2015.259C3.89232%2014.934%204.41732%2014.934%204.74232%2015.259C5.06732%2015.584%205.06732%2016.109%204.74232%2016.434L4.63398%2016.5423C4.47565%2016.7007%204.25898%2016.784%204.05065%2016.784ZM18.334%2010.834H18.2673C17.809%2010.834%2017.434%2010.459%2017.434%2010.0007C17.434%209.54232%2017.809%209.16732%2018.2673%209.16732C18.7257%209.16732%2019.134%209.54232%2019.134%2010.0007C19.134%2010.459%2018.7923%2010.834%2018.334%2010.834ZM1.73398%2010.834H1.66732C1.20898%2010.834%200.833984%2010.459%200.833984%2010.0007C0.833984%209.54232%201.20898%209.16732%201.66732%209.16732C2.12565%209.16732%202.53398%209.54232%202.53398%2010.0007C2.53398%2010.459%202.19232%2010.834%201.73398%2010.834ZM15.8423%204.99232C15.6257%204.99232%2015.4173%204.90898%2015.2507%204.75065C14.9256%204.42565%2014.9256%203.90065%2015.2507%203.57565L15.359%203.46732C15.684%203.14232%2016.209%203.14232%2016.534%203.46732C16.859%203.79232%2016.859%204.31732%2016.534%204.64232L16.4256%204.75065C16.2673%204.90898%2016.059%204.99232%2015.8423%204.99232ZM4.15898%204.99232C3.94232%204.99232%203.73398%204.90898%203.56732%204.75065L3.45898%204.63398C3.13398%204.30898%203.13398%203.78398%203.45898%203.45898C3.78398%203.13398%204.30898%203.13398%204.63398%203.45898L4.74232%203.56732C5.06732%203.89232%205.06732%204.41732%204.74232%204.74232C4.58398%204.90898%204.36732%204.99232%204.15898%204.99232ZM10.0007%202.53398C9.54232%202.53398%209.16732%202.19232%209.16732%201.73398V1.66732C9.16732%201.20898%209.54232%200.833984%2010.0007%200.833984C10.459%200.833984%2010.834%201.20898%2010.834%201.66732C10.834%202.12565%2010.459%202.53398%2010.0007%202.53398Z'%20fill='%23FAD832'/%3e%3c/svg%3e",subtitleFill:"data:image/svg+xml,%3csvg%20width='18'%20height='16'%20viewBox='0%200%2018%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1.55605%201.58869C2.4097%200.672867%203.63139%200.151733%205.09542%200.151733H12.9053C14.3732%200.151733%2015.5952%200.672683%2016.4483%201.58885C17.2983%202.50166%2017.7508%203.77289%2017.7508%205.22246V10.7792C17.7508%2012.2288%2017.2983%2013.5%2016.4482%2014.4129C15.595%2015.329%2014.3727%2015.85%2012.9044%2015.85H5.09542C3.62761%2015.85%202.40569%2015.329%201.55282%2014.4128C0.703099%2013.5%200.250824%2012.2287%200.250824%2010.7792V5.22246C0.250824%203.77242%200.705432%202.50128%201.55605%201.58869ZM14.3827%205.87049C13.2061%204.69387%2011.2978%204.69417%2010.1207%205.87028C8.94399%207.04688%208.94407%208.95529%2010.1202%2010.1325C11.2974%2011.3086%2013.2061%2011.3094%2014.3827%2010.1328C14.6267%209.88871%2014.6267%209.49296%2014.3827%209.24888C14.1386%209.00479%2013.7428%209.00479%2013.4988%209.24888C12.8107%209.93704%2011.6937%209.93738%2011.0043%209.24888C10.3158%208.55954%2010.3162%207.44279%2011.0041%206.75462C11.6935%206.06583%2012.8106%206.06614%2013.4988%206.75438C13.7428%206.99846%2014.1386%206.99846%2014.3827%206.75438C14.6267%206.51029%2014.6267%206.11457%2014.3827%205.87049ZM5.20517%206.75454C5.82661%206.12646%206.81647%206.07034%207.50899%206.59638C7.78382%206.80521%208.17591%206.75163%208.38474%206.47671C8.59349%206.20188%208.53999%205.80979%208.26507%205.60099C7.08453%204.70423%205.39123%204.79152%204.31885%205.87306C3.13605%207.04688%203.13987%208.95613%204.31896%2010.1352C5.39081%2011.207%207.08204%2011.2945%208.26199%2010.4095C8.53816%2010.2024%208.59416%209.81063%208.38699%209.53454C8.17991%209.25838%207.78816%209.20238%207.51199%209.40946C6.81814%209.92988%205.82469%209.87321%205.20284%209.25138C4.5088%208.55729%204.51188%207.44121%205.2007%206.75896L5.20517%206.75454Z'%20fill='white'/%3e%3c/svg%3e",subtitleOutline:"data:image/svg+xml,%3csvg%20width='18'%20height='17'%20viewBox='0%200%2018%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.3817%207.54529C14.1375%207.78953%2013.7416%207.78953%2013.4983%207.54529C12.8099%206.85699%2011.6925%206.85699%2011.0032%207.54529C10.3151%208.23362%2010.3151%209.35112%2011.0032%2010.0403C11.6925%2010.7286%2012.8099%2010.7278%2013.4983%2010.0403C13.7416%209.79612%2014.1375%209.79612%2014.3817%2010.0403C14.6259%2010.2836%2014.6259%2010.6795%2014.3817%2010.9236C13.205%2012.1003%2011.2966%2012.1003%2010.1199%2010.9245L10.5137%2010.5297L10.119%2010.9236C8.94345%209.74612%208.94345%207.83779%2010.119%206.66193L10.5617%207.10362L10.1199%206.66112C11.2966%205.48528%2013.205%205.48528%2014.3817%206.66193C14.6259%206.90526%2014.6259%207.30112%2014.3817%207.54529Z'%20fill='white'/%3e%3cpath%20d='M8.38602%2010.3253C8.59352%2010.6019%208.53735%2010.9936%208.26069%2011.2003C7.08067%2012.0853%205.39%2011.9978%204.31822%2010.9261C3.1382%209.7461%203.13495%207.83527%204.31985%206.66191C5.39285%205.58251%207.08433%205.49553%208.26435%206.39193C8.53902%206.60108%208.59227%206.99277%208.38394%207.26779C8.17486%207.54277%207.78335%207.5961%207.50835%207.38777C6.81578%206.86109%205.82579%206.9178%205.20404%207.54527L5.19997%207.55026C4.51068%208.23193%204.50824%209.3486%205.2016%2010.0428C5.82415%2010.6644%206.81741%2010.7211%207.51077%2010.2003C7.78744%209.9936%208.17927%2010.0494%208.38602%2010.3253Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.09499%200.734375C3.57929%200.734375%202.29999%201.2752%201.40236%202.23772C0.510029%203.19521%200.041687%204.52023%200.041687%206.01356V11.5702C0.041687%2013.0627%200.507587%2014.3877%201.39911%2015.346C2.29592%2016.3085%203.57521%2016.8494%205.09499%2016.8494H12.9034C14.4232%2016.8494%2015.7033%2016.3085%2016.6001%2015.346C17.4916%2014.3877%2017.9584%2013.0627%2017.9584%2011.5702V6.01356C17.9584%204.52105%2017.4916%203.19608%2016.6001%202.23772C15.7033%201.2752%2014.424%200.734375%2012.9043%200.734375H5.09499ZM1.29169%206.01356C1.29169%204.77938%201.6758%203.77774%202.31749%203.09023C2.95347%202.40689%203.88853%201.98438%205.09499%201.98438H12.9043C14.1152%201.98438%2015.0499%202.4077%2015.685%203.08937C16.325%203.77688%2016.7084%204.77938%2016.7084%206.01356V11.5702C16.7084%2012.8044%2016.325%2013.8069%2015.685%2014.4935C15.0499%2015.176%2014.1144%2015.5994%2012.9034%2015.5994H5.09499C3.88405%2015.5994%202.949%2015.176%202.31423%2014.4944C1.67499%2013.8069%201.29169%2012.8044%201.29169%2011.5702V6.01356Z'%20fill='white'/%3e%3c/svg%3e",subtitleOutlineGray:"data:image/svg+xml,%3csvg%20width='18'%20height='17'%20viewBox='0%200%2018%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.382%207.54529C14.1378%207.78953%2013.7419%207.78953%2013.4986%207.54529C12.8102%206.85699%2011.6928%206.85699%2011.0035%207.54529C10.3154%208.23362%2010.3154%209.35112%2011.0035%2010.0403C11.6928%2010.7286%2012.8102%2010.7278%2013.4986%2010.0403C13.7419%209.79612%2014.1378%209.79612%2014.382%2010.0403C14.6262%2010.2836%2014.6262%2010.6795%2014.382%2010.9236C13.2053%2012.1003%2011.2969%2012.1003%2010.1202%2010.9245L10.514%2010.5297L10.1193%2010.9236C8.94376%209.74612%208.94376%207.83779%2010.1193%206.66193L10.562%207.10362L10.1202%206.66112C11.2969%205.48528%2013.2053%205.48528%2014.382%206.66193C14.6262%206.90526%2014.6262%207.30112%2014.382%207.54529Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20d='M8.38633%2010.3253C8.59383%2010.6019%208.53766%2010.9936%208.26099%2011.2003C7.08098%2012.0853%205.3903%2011.9978%204.31853%2010.9261C3.13851%209.7461%203.13525%207.83527%204.32015%206.66191C5.39315%205.58251%207.08463%205.49553%208.26466%206.39193C8.53933%206.60108%208.59258%206.99277%208.38424%207.26779C8.17516%207.54277%207.78366%207.5961%207.50866%207.38777C6.81608%206.86109%205.82609%206.9178%205.20434%207.54527L5.20028%207.55026C4.51098%208.23193%204.50854%209.3486%205.2019%2010.0428C5.82446%2010.6644%206.81771%2010.7211%207.51108%2010.2003C7.78774%209.9936%208.17958%2010.0494%208.38633%2010.3253Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.09529%200.734375C3.57959%200.734375%202.30029%201.2752%201.40267%202.23772C0.510334%203.19521%200.0419922%204.52023%200.0419922%206.01356V11.5702C0.0419922%2013.0627%200.507892%2014.3877%201.39942%2015.346C2.29623%2016.3085%203.57552%2016.8494%205.09529%2016.8494H12.9037C14.4235%2016.8494%2015.7036%2016.3085%2016.6004%2015.346C17.4919%2014.3877%2017.9587%2013.0627%2017.9587%2011.5702V6.01356C17.9587%204.52105%2017.4919%203.19608%2016.6004%202.23772C15.7036%201.2752%2014.4243%200.734375%2012.9046%200.734375H5.09529ZM1.29199%206.01356C1.29199%204.77938%201.67611%203.77774%202.31779%203.09023C2.95378%202.40689%203.88883%201.98438%205.09529%201.98438H12.9046C14.1155%201.98438%2015.0502%202.4077%2015.6853%203.08937C16.3253%203.77688%2016.7087%204.77938%2016.7087%206.01356V11.5702C16.7087%2012.8044%2016.3253%2013.8069%2015.6853%2014.4935C15.0502%2015.176%2014.1147%2015.5994%2012.9037%2015.5994H5.09529C3.88436%2015.5994%202.9493%2015.176%202.31453%2014.4944C1.67529%2013.8069%201.29199%2012.8044%201.29199%2011.5702V6.01356Z'%20fill='black'%20fill-opacity='0.5'/%3e%3c/svg%3e",close:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.66797%202.66675L9.05507%209.05385'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.66797%209.05371L9.05507%202.66661'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e"},kh=()=>(V(({miniPlayer:{play:s}})=>({play:s}),K),S.jsx("div",{className:`${!C(T.isTouchScreen)&&"hover:pl-scale-125"} pl-cursor-pointer pl-transition-transform pl-ease-in-out`,onContextMenu:s=>s.preventDefault(),children:S.jsx("img",{src:C(T.isPlayMiniPlayer)?re.bigPause:re.bigPlay,alt:C(T.isPlayMiniPlayer)?"pause":"play",onClick:s=>Th(s),onDoubleClick:s=>s.stopPropagation(),className:`pl-size-5 ${C(T.isPlayMiniPlayer)?"pl-big-play-icon":"pl-big-pause-icon"}`})}));function Ph(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Xo={exports:{}};(function(s,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(l,c,u){if(u=u||{},l=l.trim(),c=c.trim(),!c){if(!u.alwaysNormalize)return l;var d=o.parseURL(l);if(!d)throw new Error("Error trying to parse base URL.");return d.path=o.normalizePath(d.path),o.buildURLFromParts(d)}var f=o.parseURL(c);if(!f)throw new Error("Error trying to parse relative URL.");if(f.scheme)return u.alwaysNormalize?(f.path=o.normalizePath(f.path),o.buildURLFromParts(f)):c;var g=o.parseURL(l);if(!g)throw new Error("Error trying to parse base URL.");if(!g.netLoc&&g.path&&g.path[0]!=="/"){var h=r.exec(g.path);g.netLoc=h[1],g.path=h[2]}g.netLoc&&!g.path&&(g.path="/");var m={scheme:g.scheme,netLoc:f.netLoc,path:null,params:f.params,query:f.query,fragment:f.fragment};if(!f.netLoc&&(m.netLoc=g.netLoc,f.path[0]!=="/"))if(!f.path)m.path=g.path,f.params||(m.params=g.params,f.query||(m.query=g.query));else{var p=g.path,E=p.substring(0,p.lastIndexOf("/")+1)+f.path;m.path=o.normalizePath(E)}return m.path===null&&(m.path=u.alwaysNormalize?o.normalizePath(f.path):f.path),o.buildURLFromParts(m)},parseURL:function(l){var c=n.exec(l);return c?{scheme:c[1]||"",netLoc:c[2]||"",path:c[3]||"",params:c[4]||"",query:c[5]||"",fragment:c[6]||""}:null},normalizePath:function(l){for(l=l.split("").reverse().join("").replace(i,"");l.length!==(l=l.replace(a,"")).length;);return l.split("").reverse().join("")},buildURLFromParts:function(l){return l.scheme+l.netLoc+l.path+l.params+l.query+l.fragment}};s.exports=o})()})(Xo);var Br=Xo.exports;function Zo(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(s);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(s,r).enumerable})),t.push.apply(t,n)}return t}function be(s){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Zo(Object(t),!0).forEach(function(n){Fh(s,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):Zo(Object(t)).forEach(function(n){Object.defineProperty(s,n,Object.getOwnPropertyDescriptor(t,n))})}return s}function _h(s,e){if(typeof s!="object"||!s)return s;var t=s[Symbol.toPrimitive];if(t!==void 0){var n=t.call(s,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(s)}function Oh(s){var e=_h(s,"string");return typeof e=="symbol"?e:String(e)}function Fh(s,e,t){return e=Oh(e),e in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function ye(){return ye=Object.assign?Object.assign.bind():function(s){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(s[n]=t[n])}return s},ye.apply(this,arguments)}const H=Number.isFinite||function(s){return typeof s=="number"&&isFinite(s)},Mh=Number.isSafeInteger||function(s){return typeof s=="number"&&Math.abs(s)<=Nh},Nh=Number.MAX_SAFE_INTEGER||9007199254740991;let y=function(s){return s.MEDIA_ATTACHING="hlsMediaAttaching",s.MEDIA_ATTACHED="hlsMediaAttached",s.MEDIA_DETACHING="hlsMediaDetaching",s.MEDIA_DETACHED="hlsMediaDetached",s.BUFFER_RESET="hlsBufferReset",s.BUFFER_CODECS="hlsBufferCodecs",s.BUFFER_CREATED="hlsBufferCreated",s.BUFFER_APPENDING="hlsBufferAppending",s.BUFFER_APPENDED="hlsBufferAppended",s.BUFFER_EOS="hlsBufferEos",s.BUFFER_FLUSHING="hlsBufferFlushing",s.BUFFER_FLUSHED="hlsBufferFlushed",s.MANIFEST_LOADING="hlsManifestLoading",s.MANIFEST_LOADED="hlsManifestLoaded",s.MANIFEST_PARSED="hlsManifestParsed",s.LEVEL_SWITCHING="hlsLevelSwitching",s.LEVEL_SWITCHED="hlsLevelSwitched",s.LEVEL_LOADING="hlsLevelLoading",s.LEVEL_LOADED="hlsLevelLoaded",s.LEVEL_UPDATED="hlsLevelUpdated",s.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",s.LEVELS_UPDATED="hlsLevelsUpdated",s.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",s.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",s.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",s.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",s.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",s.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",s.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",s.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",s.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",s.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",s.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",s.CUES_PARSED="hlsCuesParsed",s.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",s.INIT_PTS_FOUND="hlsInitPtsFound",s.FRAG_LOADING="hlsFragLoading",s.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",s.FRAG_LOADED="hlsFragLoaded",s.FRAG_DECRYPTED="hlsFragDecrypted",s.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",s.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",s.FRAG_PARSING_METADATA="hlsFragParsingMetadata",s.FRAG_PARSED="hlsFragParsed",s.FRAG_BUFFERED="hlsFragBuffered",s.FRAG_CHANGED="hlsFragChanged",s.FPS_DROP="hlsFpsDrop",s.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",s.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",s.ERROR="hlsError",s.DESTROYING="hlsDestroying",s.KEY_LOADING="hlsKeyLoading",s.KEY_LOADED="hlsKeyLoaded",s.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",s.BACK_BUFFER_REACHED="hlsBackBufferReached",s.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",s}({}),Z=function(s){return s.NETWORK_ERROR="networkError",s.MEDIA_ERROR="mediaError",s.KEY_SYSTEM_ERROR="keySystemError",s.MUX_ERROR="muxError",s.OTHER_ERROR="otherError",s}({}),k=function(s){return s.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",s.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",s.KEY_SYSTEM_NO_SESSION="keySystemNoSession",s.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",s.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",s.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",s.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",s.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",s.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",s.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",s.MANIFEST_LOAD_ERROR="manifestLoadError",s.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",s.MANIFEST_PARSING_ERROR="manifestParsingError",s.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",s.LEVEL_EMPTY_ERROR="levelEmptyError",s.LEVEL_LOAD_ERROR="levelLoadError",s.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",s.LEVEL_PARSING_ERROR="levelParsingError",s.LEVEL_SWITCH_ERROR="levelSwitchError",s.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",s.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",s.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",s.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",s.FRAG_LOAD_ERROR="fragLoadError",s.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",s.FRAG_DECRYPT_ERROR="fragDecryptError",s.FRAG_PARSING_ERROR="fragParsingError",s.FRAG_GAP="fragGap",s.REMUX_ALLOC_ERROR="remuxAllocError",s.KEY_LOAD_ERROR="keyLoadError",s.KEY_LOAD_TIMEOUT="keyLoadTimeOut",s.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",s.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",s.BUFFER_APPEND_ERROR="bufferAppendError",s.BUFFER_APPENDING_ERROR="bufferAppendingError",s.BUFFER_STALLED_ERROR="bufferStalledError",s.BUFFER_FULL_ERROR="bufferFullError",s.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",s.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",s.INTERNAL_EXCEPTION="internalException",s.INTERNAL_ABORTED="aborted",s.UNKNOWN="unknown",s}({});const Pt=function(){},Ur={trace:Pt,debug:Pt,log:Pt,warn:Pt,info:Pt,error:Pt};let ys=Ur;function Bh(s){const e=self.console[s];return e?e.bind(self.console,`[${s}] >`):Pt}function Uh(s,...e){e.forEach(function(t){ys[t]=s[t]?s[t].bind(s):Bh(t)})}function $h(s,e){if(typeof console=="object"&&s===!0||typeof s=="object"){Uh(s,"debug","log","info","warn","error");try{ys.log(`Debug logs enabled for "${e}" in hls.js version 1.5.20`)}catch{ys=Ur}}else ys=Ur}const L=ys,Vh=/^(\d+)x(\d+)$/,Qo=/(.+?)=(".*?"|.*?)(?:,|$)/g;class pe{constructor(e){typeof e=="string"&&(e=pe.parseAttrList(e)),ye(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 n=new Uint8Array(t.length/2);for(let r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(r*2,r*2+2),16);return n}else 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 n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}bool(e){return this[e]==="YES"}decimalResolution(e){const t=Vh.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e){let t;const n={},r='"';for(Qo.lastIndex=0;(t=Qo.exec(e))!==null;){let i=t[2];i.indexOf(r)===0&&i.lastIndexOf(r)===i.length-1&&(i=i.slice(1,-1));const a=t[1].trim();n[a]=i}return n}}function Gh(s){return s!=="ID"&&s!=="CLASS"&&s!=="START-DATE"&&s!=="DURATION"&&s!=="END-DATE"&&s!=="END-ON-NEXT"}function Hh(s){return s==="SCTE35-OUT"||s==="SCTE35-IN"}class Jo{constructor(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){const n=t.attr;for(const r in n)if(Object.prototype.hasOwnProperty.call(e,r)&&e[r]!==n[r]){L.warn(`DATERANGE tag attribute: "${r}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=r;break}e=ye(new pe({}),n,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const n=new Date(this.attr["END-DATE"]);H(n.getTime())&&(this._endDate=n)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get startDate(){return this._startDate}get endDate(){if(this._endDate)return this._endDate;const e=this.duration;return e!==null?new Date(this._startDate.getTime()+e*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(H(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 isValid(){return!!this.id&&!this._badValueForSameId&&H(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class hn{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}}}var le={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class el{constructor(e){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[le.AUDIO]:null,[le.VIDEO]:null,[le.AUDIOVIDEO]:null},this.baseurl=e}setByteRange(e,t){const n=e.split("@",2);let r;n.length===1?r=(t==null?void 0:t.byteRangeEndOffset)||0:r=parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}get byteRange(){return this._byteRange?this._byteRange:[]}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Br.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class $r extends el{constructor(e,t){super(t),this._decryptdata=null,this.rawProgramDateTime=null,this.programDateTime=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.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.stats=new hn,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 decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const n=Object.keys(this.levelkeys);if(n.length===1)return this._decryptdata=this.levelkeys[n[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null||!H(this.programDateTime))return null;const e=H(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){const t=Object.keys(this.levelkeys),n=t.length;if(n>1||n===1&&this.levelkeys[t[0]].encrypted)return!0}return!1}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,n,r,i,a=!1){const{elementaryStreams:o}=this,l=o[e];if(!l){o[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:a};return}l.startPTS=Math.min(l.startPTS,t),l.endPTS=Math.max(l.endPTS,n),l.startDTS=Math.min(l.startDTS,r),l.endDTS=Math.max(l.endDTS,i)}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[le.AUDIO]=null,e[le.VIDEO]=null,e[le.AUDIOVIDEO]=null}}class Kh extends el{constructor(e,t,n,r,i){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.stats=new hn,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=r;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)}}const Wh=10;class jh{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.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 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.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,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&n>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay}get hasProgramDateTime(){return this.fragments.length?H(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Wh}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(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[this.fragments.length-1].end: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 lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}function Vr(s){return Uint8Array.from(atob(s),e=>e.charCodeAt(0))}function zh(s){const e=Gr(s).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function qh(s){const e=function(n,r,i){const a=n[r];n[r]=n[i],n[i]=a};e(s,0,3),e(s,1,2),e(s,4,5),e(s,6,7)}function Yh(s){const e=s.split(":");let t=null;if(e[0]==="data"&&e.length===2){const n=e[1].split(";"),r=n[n.length-1].split(",");if(r.length===2){const i=r[0]==="base64",a=r[1];i?(n.splice(-1,1),t=Vr(a)):t=zh(a)}}return t}function Gr(s){return Uint8Array.from(unescape(encodeURIComponent(s)),e=>e.charCodeAt(0))}const jt=typeof self<"u"?self:void 0;var ae={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Me={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Hr(s){switch(s){case Me.FAIRPLAY:return ae.FAIRPLAY;case Me.PLAYREADY:return ae.PLAYREADY;case Me.WIDEVINE:return ae.WIDEVINE;case Me.CLEARKEY:return ae.CLEARKEY}}var pn={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function Kr(s){if(s===pn.WIDEVINE)return ae.WIDEVINE;if(s===pn.PLAYREADY)return ae.PLAYREADY;if(s===pn.CENC||s===pn.CLEARKEY)return ae.CLEARKEY}function Wr(s){switch(s){case ae.FAIRPLAY:return Me.FAIRPLAY;case ae.PLAYREADY:return Me.PLAYREADY;case ae.WIDEVINE:return Me.WIDEVINE;case ae.CLEARKEY:return Me.CLEARKEY}}function gn(s){const{drmSystems:e,widevineLicenseUrl:t}=s,n=e?[ae.FAIRPLAY,ae.WIDEVINE,ae.PLAYREADY,ae.CLEARKEY].filter(r=>!!e[r]):[];return!n[ae.WIDEVINE]&&t&&n.push(ae.WIDEVINE),n}const tl=function(s){return jt!=null&&(s=jt.navigator)!=null&&s.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Xh(s,e,t,n){let r;switch(s){case ae.FAIRPLAY:r=["cenc","sinf"];break;case ae.WIDEVINE:case ae.PLAYREADY:r=["cenc"];break;case ae.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${s}`)}return Zh(r,e,t,n)}function Zh(s,e,t,n){return[{initDataTypes:s,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map(i=>({contentType:`audio/mp4; codecs="${i}"`,robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null})),videoCapabilities:t.map(i=>({contentType:`video/mp4; codecs="${i}"`,robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}))}]}function sl(s){const e=new Uint16Array(s.buffer,s.byteOffset,s.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),n=t.substring(t.indexOf("<"),t.length),a=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("KID")[0];if(a){const o=a.childNodes[0]?a.childNodes[0].nodeValue:a.getAttribute("VALUE");if(o){const l=Vr(o).subarray(0,16);return qh(l),l}}return null}function _t(s,e,t){return Uint8Array.prototype.slice?s.slice(e,t):new Uint8Array(Array.prototype.slice.call(s,e,t))}const jr=(s,e)=>e+10<=s.length&&s[e]===73&&s[e+1]===68&&s[e+2]===51&&s[e+3]<255&&s[e+4]<255&&s[e+6]<128&&s[e+7]<128&&s[e+8]<128&&s[e+9]<128,nl=(s,e)=>e+10<=s.length&&s[e]===51&&s[e+1]===68&&s[e+2]===73&&s[e+3]<255&&s[e+4]<255&&s[e+6]<128&&s[e+7]<128&&s[e+8]<128&&s[e+9]<128,Es=(s,e)=>{const t=e;let n=0;for(;jr(s,e);){n+=10;const r=mn(s,e+6);n+=r,nl(s,e+10)&&(n+=10),e+=n}if(n>0)return s.subarray(t,t+n)},mn=(s,e)=>{let t=0;return t=(s[e]&127)<<21,t|=(s[e+1]&127)<<14,t|=(s[e+2]&127)<<7,t|=s[e+3]&127,t},Qh=(s,e)=>jr(s,e)&&mn(s,e+6)+10<=s.length-e,zr=s=>{const e=il(s);for(let t=0;t<e.length;t++){const n=e[t];if(rl(n))return r2(n)}},rl=s=>s&&s.key==="PRIV"&&s.info==="com.apple.streaming.transportStreamTimestamp",Jh=s=>{const e=String.fromCharCode(s[0],s[1],s[2],s[3]),t=mn(s,4),n=10;return{type:e,size:t,data:s.subarray(n,n+t)}},il=s=>{let e=0;const t=[];for(;jr(s,e);){const n=mn(s,e+6);e+=10;const r=e+n;for(;e+8<r;){const i=Jh(s.subarray(e)),a=e2(i);a&&t.push(a),e+=i.size+10}nl(s,e)&&(e+=10)}return t},e2=s=>s.type==="PRIV"?t2(s):s.type[0]==="W"?n2(s):s2(s),t2=s=>{if(s.size<2)return;const e=Je(s.data,!0),t=new Uint8Array(s.data.subarray(e.length+1));return{key:s.type,info:e,data:t.buffer}},s2=s=>{if(s.size<2)return;if(s.type==="TXXX"){let t=1;const n=Je(s.data.subarray(t),!0);t+=n.length+1;const r=Je(s.data.subarray(t));return{key:s.type,info:n,data:r}}const e=Je(s.data.subarray(1));return{key:s.type,data:e}},n2=s=>{if(s.type==="WXXX"){if(s.size<2)return;let t=1;const n=Je(s.data.subarray(t),!0);t+=n.length+1;const r=Je(s.data.subarray(t));return{key:s.type,info:n,data:r}}const e=Je(s.data);return{key:s.type,data:e}},r2=s=>{if(s.data.byteLength===8){const e=new Uint8Array(s.data),t=e[3]&1;let n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,t&&(n+=4772185884e-2),Math.round(n)}},Je=(s,e=!1)=>{const t=i2();if(t){const c=t.decode(s);if(e){const u=c.indexOf("\0");return u!==-1?c.substring(0,u):c}return c.replace(/\0/g,"")}const n=s.length;let r,i,a,o="",l=0;for(;l<n;){if(r=s[l++],r===0&&e)return o;if(r===0||r===3)continue;switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:o+=String.fromCharCode(r);break;case 12:case 13:i=s[l++],o+=String.fromCharCode((r&31)<<6|i&63);break;case 14:i=s[l++],a=s[l++],o+=String.fromCharCode((r&15)<<12|(i&63)<<6|(a&63)<<0);break}}return o};let qr;function i2(){if(!navigator.userAgent.includes("PlayStation 4"))return!qr&&typeof self.TextDecoder<"u"&&(qr=new self.TextDecoder("utf-8")),qr}const et={hexDump:function(s){let e="";for(let t=0;t<s.length;t++){let n=s[t].toString(16);n.length<2&&(n="0"+n),e+=n}return e}},yn=Math.pow(2,32)-1,a2=[].push,al={video:1,audio:2,id3:3,text:4};function Te(s){return String.fromCharCode.apply(null,s)}function ol(s,e){const t=s[e]<<8|s[e+1];return t<0?65536+t:t}function z(s,e){const t=cl(s,e);return t<0?4294967296+t:t}function ll(s,e){let t=z(s,e);return t*=Math.pow(2,32),t+=z(s,e+4),t}function cl(s,e){return s[e]<<24|s[e+1]<<16|s[e+2]<<8|s[e+3]}function Yr(s,e,t){s[e]=t>>24,s[e+1]=t>>16&255,s[e+2]=t>>8&255,s[e+3]=t&255}function o2(s){const e=s.byteLength;for(let t=0;t<e;){const n=z(s,t);if(n>8&&s[t+4]===109&&s[t+5]===111&&s[t+6]===111&&s[t+7]===102)return!0;t=n>1?t+n:e}return!1}function J(s,e){const t=[];if(!e.length)return t;const n=s.byteLength;for(let r=0;r<n;){const i=z(s,r),a=Te(s.subarray(r+4,r+8)),o=i>1?r+i:n;if(a===e[0])if(e.length===1)t.push(s.subarray(r+8,o));else{const l=J(s.subarray(r+8,o),e.slice(1));l.length&&a2.apply(t,l)}r=o}return t}function l2(s){const e=[],t=s[0];let n=8;const r=z(s,n);n+=4;let i=0,a=0;t===0?(i=z(s,n),a=z(s,n+4),n+=8):(i=ll(s,n),a=ll(s,n+8),n+=16),n+=2;let o=s.length+a;const l=ol(s,n);n+=2;for(let c=0;c<l;c++){let u=n;const d=z(s,u);u+=4;const f=d&2147483647;if((d&2147483648)>>>31===1)return L.warn("SIDX has hierarchical references (not supported)"),null;const h=z(s,u);u+=4,e.push({referenceSize:f,subsegmentDuration:h,info:{duration:h/r,start:o,end:o+f-1}}),o+=f,u+=4,n=u}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:l,references:e}}function ul(s){const e=[],t=J(s,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],a=J(i,["tkhd"])[0];if(a){let o=a[0];const l=z(a,o===0?12:20),c=J(i,["mdia","mdhd"])[0];if(c){o=c[0];const u=z(c,o===0?12:20),d=J(i,["mdia","hdlr"])[0];if(d){const f=Te(d.subarray(8,12)),g={soun:le.AUDIO,vide:le.VIDEO}[f];if(g){const h=J(i,["mdia","minf","stbl","stsd"])[0],m=c2(h);e[l]={timescale:u,type:g},e[g]=be({timescale:u,id:l},m)}}}}}return J(s,["moov","mvex","trex"]).forEach(r=>{const i=z(r,4),a=e[i];a&&(a.default={duration:z(r,12),flags:z(r,20)})}),e}function c2(s){const e=s.subarray(8),t=e.subarray(86),n=Te(e.subarray(4,8));let r=n;const i=n==="enca"||n==="encv";if(i){const o=J(e,[n])[0].subarray(n==="enca"?28:78);J(o,["sinf"]).forEach(c=>{const u=J(c,["schm"])[0];if(u){const d=Te(u.subarray(4,8));if(d==="cbcs"||d==="cenc"){const f=J(c,["frma"])[0];f&&(r=Te(f))}}})}switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const a=J(t,["avcC"])[0];r+="."+En(a[1])+En(a[2])+En(a[3]);break}case"mp4a":{const a=J(e,[n])[0],o=J(a.subarray(28),["esds"])[0];if(o&&o.length>12){let l=4;if(o[l++]!==3)break;l=Xr(o,l),l+=2;const c=o[l++];if(c&128&&(l+=2),c&64&&(l+=o[l++]),o[l++]!==4)break;l=Xr(o,l);const u=o[l++];if(u===64)r+="."+En(u);else break;if(l+=12,o[l++]!==5)break;l=Xr(o,l);const d=o[l++];let f=(d&248)>>3;f===31&&(f+=1+((d&7)<<3)+((o[l]&224)>>5)),r+="."+f}break}case"hvc1":case"hev1":{const a=J(t,["hvcC"])[0],o=a[1],l=["","A","B","C"][o>>6],c=o&31,u=z(a,2),d=(o&32)>>5?"H":"L",f=a[12],g=a.subarray(6,12);r+="."+l+c,r+="."+u.toString(16).toUpperCase(),r+="."+d+f;let h="";for(let m=g.length;m--;){const p=g[m];(p||h)&&(h="."+p.toString(16).toUpperCase()+h)}r+=h;break}case"dvh1":case"dvhe":{const a=J(t,["dvcC"])[0],o=a[2]>>1&127,l=a[2]<<5&32|a[3]>>3&31;r+="."+tt(o)+"."+tt(l);break}case"vp09":{const a=J(t,["vpcC"])[0],o=a[4],l=a[5],c=a[6]>>4&15;r+="."+tt(o)+"."+tt(l)+"."+tt(c);break}case"av01":{const a=J(t,["av1C"])[0],o=a[1]>>>5,l=a[1]&31,c=a[2]>>>7?"H":"M",u=(a[2]&64)>>6,d=(a[2]&32)>>5,f=o===2&&u?d?12:10:u?10:8,g=(a[2]&16)>>4,h=(a[2]&8)>>3,m=(a[2]&4)>>2,p=a[2]&3;r+="."+o+"."+tt(l)+c+"."+tt(f)+"."+g+"."+h+m+p+"."+tt(1)+"."+tt(1)+"."+tt(1)+"."+0;break}}return{codec:r,encrypted:i}}function Xr(s,e){const t=e+5;for(;s[e++]&128&&e<t;);return e}function En(s){return("0"+s.toString(16).toUpperCase()).slice(-2)}function tt(s){return(s<10?"0":"")+s}function u2(s,e){if(!s||!e)return s;const t=e.keyId;return t&&e.isCommonEncryption&&J(s,["moov","trak"]).forEach(r=>{const a=J(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let o=J(a,["enca"]);const l=o.length>0;l||(o=J(a,["encv"])),o.forEach(c=>{const u=l?c.subarray(28):c.subarray(78);J(u,["sinf"]).forEach(f=>{const g=dl(f);if(g){const h=g.subarray(8,24);h.some(m=>m!==0)||(L.log(`[eme] Patching keyId in 'enc${l?"a":"v"}>sinf>>tenc' box: ${et.hexDump(h)} -> ${et.hexDump(t)}`),g.set(t,8))}})})}),s}function dl(s){const e=J(s,["schm"])[0];if(e){const t=Te(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return J(s,["schi","tenc"])[0]}return null}function d2(s,e){return J(e,["moof","traf"]).reduce((t,n)=>{const r=J(n,["tfdt"])[0],i=r[0],a=J(n,["tfhd"]).reduce((o,l)=>{const c=z(l,4),u=s[c];if(u){let d=z(r,4);if(i===1){if(d===yn)return L.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),o;d*=yn+1,d+=z(r,8)}const f=u.timescale||9e4,g=d/f;if(H(g)&&(o===null||g<o))return g}return o},null);return a!==null&&H(a)&&(t===null||a<t)?a:t},null)}function f2(s,e){let t=0,n=0,r=0;const i=J(s,["moof","traf"]);for(let a=0;a<i.length;a++){const o=i[a],l=J(o,["tfhd"])[0],c=z(l,4),u=e[c];if(!u)continue;const d=u.default,f=z(l,0)|(d==null?void 0:d.flags);let g=d==null?void 0:d.duration;f&8&&(f&2?g=z(l,12):g=z(l,8));const h=u.timescale||9e4,m=J(o,["trun"]);for(let p=0;p<m.length;p++){if(t=h2(m[p]),!t&&g){const E=z(m[p],4);t=g*E}u.type===le.VIDEO?n+=t/h:u.type===le.AUDIO&&(r+=t/h)}}if(n===0&&r===0){let a=1/0,o=0,l=0;const c=J(s,["sidx"]);for(let u=0;u<c.length;u++){const d=l2(c[u]);if(d!=null&&d.references){a=Math.min(a,d.earliestPresentationTime/d.timescale);const f=d.references.reduce((g,h)=>g+h.info.duration||0,0);o=Math.max(o,f+d.earliestPresentationTime/d.timescale),l=o-a}}if(l&&H(l))return l}return n||r}function h2(s){const e=z(s,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let n=0;const r=z(s,4);for(let i=0;i<r;i++){if(e&256){const a=z(s,t);n+=a,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return n}function p2(s,e,t){J(e,["moof","traf"]).forEach(n=>{J(n,["tfhd"]).forEach(r=>{const i=z(r,4),a=s[i];if(!a)return;const o=a.timescale||9e4;J(n,["tfdt"]).forEach(l=>{const c=l[0],u=t*o;if(u){let d=z(l,4);if(c===0)d-=u,d=Math.max(d,0),Yr(l,4,d);else{d*=Math.pow(2,32),d+=z(l,8),d-=u,d=Math.max(d,0);const f=Math.floor(d/(yn+1)),g=Math.floor(d%(yn+1));Yr(l,4,f),Yr(l,8,g)}}})})})}function g2(s){const e={valid:null,remainder:null},t=J(s,["moof"]);if(t.length<2)return e.remainder=s,e;const n=t[t.length-1];return e.valid=_t(s,0,n.byteOffset-8),e.remainder=_t(s,n.byteOffset-8),e}function He(s,e){const t=new Uint8Array(s.length+e.length);return t.set(s),t.set(e,s.length),t}function fl(s,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let a=!1;return J(n,["moof"]).map(l=>{const c=l.byteOffset-8;J(l,["traf"]).map(d=>{const f=J(d,["tfdt"]).map(g=>{const h=g[0];let m=z(g,4);return h===1&&(m*=Math.pow(2,32),m+=z(g,8)),m/r})[0];return f!==void 0&&(s=f),J(d,["tfhd"]).map(g=>{const h=z(g,4),m=z(g,0)&16777215,p=(m&1)!==0,E=(m&2)!==0,x=(m&8)!==0;let v=0;const w=(m&16)!==0;let b=0;const I=(m&32)!==0;let A=8;h===i&&(p&&(A+=8),E&&(A+=4),x&&(v=z(g,A),A+=4),w&&(b=z(g,A),A+=4),I&&(A+=4),e.type==="video"&&(a=m2(e.codec)),J(d,["trun"]).map(F=>{const U=F[0],O=z(F,0)&16777215,B=(O&1)!==0;let Y=0;const $=(O&4)!==0,j=(O&256)!==0;let Q=0;const X=(O&512)!==0;let ne=0;const ue=(O&1024)!==0,W=(O&2048)!==0;let G=0;const ie=z(F,4);let te=8;B&&(Y=z(F,te),te+=4),$&&(te+=4);let ce=Y+c;for(let Ee=0;Ee<ie;Ee++){if(j?(Q=z(F,te),te+=4):Q=v,X?(ne=z(F,te),te+=4):ne=b,ue&&(te+=4),W&&(U===0?G=z(F,te):G=cl(F,te),te+=4),e.type===le.VIDEO){let Le=0;for(;Le<ne;){const Re=z(n,ce);if(ce+=4,y2(a,n[ce])){const je=n.subarray(ce,ce+Re);hl(je,a?2:1,s+G/r,t)}ce+=Re,Le+=Re+4}}s+=Q/r}}))})})}),t}function m2(s){if(!s)return!1;const e=s.indexOf("."),t=e<0?s:s.substring(0,e);return t==="hvc1"||t==="hev1"||t==="dvh1"||t==="dvhe"}function y2(s,e){if(s){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function hl(s,e,t,n){const r=pl(s);let i=0;i+=e;let a=0,o=0,l=0;for(;i<r.length;){a=0;do{if(i>=r.length)break;l=r[i++],a+=l}while(l===255);o=0;do{if(i>=r.length)break;l=r[i++],o+=l}while(l===255);const c=r.length-i;let u=i;if(o<c)i+=o;else if(o>c){L.error(`Malformed SEI payload. ${o} is too small, only ${c} bytes left to parse.`);break}if(a===4){if(r[u++]===181){const f=ol(r,u);if(u+=2,f===49){const g=z(r,u);if(u+=4,g===1195456820){const h=r[u++];if(h===3){const m=r[u++],p=31&m,E=64&m,x=E?2+p*3:0,v=new Uint8Array(x);if(E){v[0]=m;for(let w=1;w<x;w++)v[w]=r[u++]}n.push({type:h,payloadType:a,pts:t,bytes:v})}}}}}else if(a===5&&o>16){const d=[];for(let h=0;h<16;h++){const m=r[u++].toString(16);d.push(m.length==1?"0"+m:m),(h===3||h===5||h===7||h===9)&&d.push("-")}const f=o-16,g=new Uint8Array(f);for(let h=0;h<f;h++)g[h]=r[u++];n.push({payloadType:a,pts:t,uuid:d.join(""),userData:Je(g),userDataBytes:g})}}}function pl(s){const e=s.byteLength,t=[];let n=1;for(;n<e-2;)s[n]===0&&s[n+1]===0&&s[n+2]===3?(t.push(n+2),n+=2):n++;if(t.length===0)return s;const r=e-t.length,i=new Uint8Array(r);let a=0;for(n=0;n<r;a++,n++)a===t[0]&&(a++,t.shift()),i[n]=s[a];return i}function E2(s){const e=s[0];let t="",n="",r=0,i=0,a=0,o=0,l=0,c=0;if(e===0){for(;Te(s.subarray(c,c+1))!=="\0";)t+=Te(s.subarray(c,c+1)),c+=1;for(t+=Te(s.subarray(c,c+1)),c+=1;Te(s.subarray(c,c+1))!=="\0";)n+=Te(s.subarray(c,c+1)),c+=1;n+=Te(s.subarray(c,c+1)),c+=1,r=z(s,12),i=z(s,16),o=z(s,20),l=z(s,24),c=28}else if(e===1){c+=4,r=z(s,c),c+=4;const d=z(s,c);c+=4;const f=z(s,c);for(c+=4,a=2**32*d+f,Mh(a)||(a=Number.MAX_SAFE_INTEGER,L.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),o=z(s,c),c+=4,l=z(s,c),c+=4;Te(s.subarray(c,c+1))!=="\0";)t+=Te(s.subarray(c,c+1)),c+=1;for(t+=Te(s.subarray(c,c+1)),c+=1;Te(s.subarray(c,c+1))!=="\0";)n+=Te(s.subarray(c,c+1)),c+=1;n+=Te(s.subarray(c,c+1)),c+=1}const u=s.subarray(c,s.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:a,presentationTimeDelta:i,eventDuration:o,id:l,payload:u}}function S2(s,...e){const t=e.length;let n=8,r=t;for(;r--;)n+=e[r].byteLength;const i=new Uint8Array(n);for(i[0]=n>>24&255,i[1]=n>>16&255,i[2]=n>>8&255,i[3]=n&255,i.set(s,4),r=0,n=8;r<t;r++)i.set(e[r],n),n+=e[r].byteLength;return i}function T2(s,e,t){if(s.byteLength!==16)throw new RangeError("Invalid system id");let n,r;n=0,r=new Uint8Array;let i;n>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&&t.byteLength>0&&new DataView(a.buffer).setUint32(0,t.byteLength,!1),S2([112,115,115,104],new Uint8Array([n,0,0,0]),s,i,r,a,t||new Uint8Array)}function x2(s){const e=[];if(s instanceof ArrayBuffer){const t=s.byteLength;let n=0;for(;n+32<t;){const r=new DataView(s,n),i=v2(r);e.push(i),n+=i.size}}return e}function v2(s){const e=s.getUint32(0),t=s.byteOffset,n=s.byteLength;if(n<e)return{offset:t,size:n};if(s.getUint32(4)!==1886614376)return{offset:t,size:e};const i=s.getUint32(8)>>>24;if(i!==0&&i!==1)return{offset:t,size:e};const a=s.buffer,o=et.hexDump(new Uint8Array(a,t+12,16)),l=s.getUint32(28);let c=null,u=null;if(i===0){if(e-32<l||l<22)return{offset:t,size:e};u=new Uint8Array(a,t+32,l)}else if(i===1){if(!l||n<t+32+l*16+16)return{offset:t,size:e};c=[];for(let d=0;d<l;d++)c.push(new Uint8Array(a,t+32+d*16,16))}return{version:i,systemId:o,kids:c,data:u,offset:t,size:e}}let Sn={};class Ss{static clearKeyUriToKeyIdMap(){Sn={}}constructor(e,t,n,r=[1],i=null){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.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&e!=="AES-128"}isSupported(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Me.FAIRPLAY:case Me.WIDEVINE:case Me.PLAYREADY:case Me.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof e!="number"&&(this.method==="AES-128"&&!this.iv&&L.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const n=b2(e);return new Ss(this.method,this.uri,"identity",this.keyFormatVersions,n)}const t=Yh(this.uri);if(t)switch(this.keyFormat){case Me.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Me.PLAYREADY:{const n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=T2(n,null,t),this.keyId=sl(t);break}default:{let n=t.subarray(0,16);if(n.length!==16){const r=new Uint8Array(16);r.set(n,16-n.length),n=r}this.keyId=n;break}}if(!this.keyId||this.keyId.byteLength!==16){let n=Sn[this.uri];if(!n){const r=Object.keys(Sn).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),Sn[this.uri]=n}this.keyId=n}return this}}function b2(s){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=s>>8*(15-t)&255;return e}const gl=/\{\$([a-zA-Z0-9-_]+)\}/g;function ml(s){return gl.test(s)}function Ne(s,e,t){if(s.variableList!==null||s.hasVariableRefs)for(let n=t.length;n--;){const r=t[n],i=e[r];i&&(e[r]=Zr(s,i))}}function Zr(s,e){if(s.variableList!==null||s.hasVariableRefs){const t=s.variableList;return e.replace(gl,n=>{const r=n.substring(2,n.length-1),i=t==null?void 0:t[r];return i===void 0?(s.playlistParsingError||(s.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),n):i})}return e}function yl(s,e,t){let n=s.variableList;n||(s.variableList=n={});let r,i;if("QUERYPARAM"in e){r=e.QUERYPARAM;try{const a=new self.URL(t).searchParams;if(a.has(r))i=a.get(r);else throw new Error(`"${r}" does not match any query parameter in URI: "${t}"`)}catch(a){s.playlistParsingError||(s.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${a.message}`))}}else r=e.NAME,i=e.VALUE;r in n?s.playlistParsingError||(s.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):n[r]=i||""}function C2(s,e,t){const n=e.IMPORT;if(t&&n in t){let r=s.variableList;r||(s.variableList=r={}),r[n]=t[n]}else s.playlistParsingError||(s.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}function Ot(s=!0){return typeof self>"u"?void 0:(s||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function w2(s){return typeof self<"u"&&s===self.ManagedMediaSource}const Tn={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,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}};function L2(s,e){const t=Tn[e];return!!t&&!!t[s.slice(0,4)]}function Qr(s,e,t=!0){return!s.split(",").some(n=>!El(n,e,t))}function El(s,e,t=!0){var n;const r=Ot(t);return(n=r==null?void 0:r.isTypeSupported(Ts(s,e)))!=null?n:!1}function Ts(s,e){return`${e}/mp4;codecs="${s}"`}function Sl(s){if(s){const e=s.substring(0,4);return Tn.video[e]}return 2}function xn(s){return s.split(",").reduce((e,t)=>{const n=Tn.video[t];return n?(n*2+e)/(e?3:2):(Tn.audio[t]+e)/(e?2:1)},0)}const Jr={};function A2(s,e=!0){if(Jr[s])return Jr[s];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[s];for(let n=0;n<t.length;n++)if(El(t[n],"audio",e))return Jr[s]=t[n],t[n];return s}const D2=/flac|opus/i;function vn(s,e=!0){return s.replace(D2,t=>A2(t.toLowerCase(),e))}function Tl(s,e){return s&&s!=="mp4a"?s:e&&e.split(",")[0]}function I2(s){const e=s.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(".");if(n.length>2){let r=n.shift()+".";r+=parseInt(n.shift()).toString(16),r+=("000"+parseInt(n.shift()).toString(16)).slice(-4),e[t]=r}}return e.join(",")}const xl=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,vl=/#EXT-X-MEDIA:(.*)/g,R2=/^#EXT(?:INF|-X-TARGETDURATION):/m,bl=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),k2=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(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)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class st{static findGroup(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.id===t)return r}}static resolve(e,t){return Br.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return R2.test(e)}static parseMasterPlaylist(e,t){const n=ml(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];xl.lastIndex=0;let a;for(;(a=xl.exec(e))!=null;)if(a[1]){var o;const c=new pe(a[1]);Ne(r,c,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const u=Zr(r,a[2]),d={attrs:c,bitrate:c.decimalInteger("BANDWIDTH")||c.decimalInteger("AVERAGE-BANDWIDTH"),name:c.NAME,url:st.resolve(u,t)},f=c.decimalResolution("RESOLUTION");f&&(d.width=f.width,d.height=f.height),P2(c.CODECS,d),(o=d.unknownCodecs)!=null&&o.length||i.push(d),r.levels.push(d)}else if(a[3]){const c=a[3],u=a[4];switch(c){case"SESSION-DATA":{const d=new pe(u);Ne(r,d,["DATA-ID","LANGUAGE","VALUE","URI"]);const f=d["DATA-ID"];f&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[f]=d);break}case"SESSION-KEY":{const d=Cl(u,t,r);d.encrypted&&d.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(d)):L.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${u}"`);break}case"DEFINE":{{const d=new pe(u);Ne(r,d,["NAME","VALUE","QUERYPARAM"]),yl(r,d,t)}break}case"CONTENT-STEERING":{const d=new pe(u);Ne(r,d,["SERVER-URI","PATHWAY-ID"]),r.contentSteering={uri:st.resolve(d["SERVER-URI"],t),pathwayId:d["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=wl(u);break}}}const l=i.length>0&&i.length<r.levels.length;return r.levels=l?i:r.levels,r.levels.length===0&&(r.playlistParsingError=new Error("no levels found in manifest")),r}static parseMasterPlaylistMedia(e,t,n){let r;const i={},a=n.levels,o={AUDIO:a.map(c=>({id:c.attrs.AUDIO,audioCodec:c.audioCodec})),SUBTITLES:a.map(c=>({id:c.attrs.SUBTITLES,textCodec:c.textCodec})),"CLOSED-CAPTIONS":[]};let l=0;for(vl.lastIndex=0;(r=vl.exec(e))!==null;){const c=new pe(r[1]),u=c.TYPE;if(u){const d=o[u],f=i[u]||[];i[u]=f,Ne(n,c,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const g=c.LANGUAGE,h=c["ASSOC-LANGUAGE"],m=c.CHANNELS,p=c.CHARACTERISTICS,E=c["INSTREAM-ID"],x={attrs:c,bitrate:0,id:l++,groupId:c["GROUP-ID"]||"",name:c.NAME||g||"",type:u,default:c.bool("DEFAULT"),autoselect:c.bool("AUTOSELECT"),forced:c.bool("FORCED"),lang:g,url:c.URI?st.resolve(c.URI,t):""};if(h&&(x.assocLang=h),m&&(x.channels=m),p&&(x.characteristics=p),E&&(x.instreamId=E),d!=null&&d.length){const v=st.findGroup(d,x.groupId)||d[0];Ll(x,v,"audioCodec"),Ll(x,v,"textCodec")}f.push(x)}}return i}static parseLevelPlaylist(e,t,n,r,i,a){const o=new jh(t),l=o.fragments;let c=null,u=0,d=0,f=0,g=0,h=null,m=new $r(r,t),p,E,x,v=-1,w=!1,b=null;for(bl.lastIndex=0,o.m3u8=e,o.hasVariableRefs=ml(e);(p=bl.exec(e))!==null;){w&&(w=!1,m=new $r(r,t),m.start=f,m.sn=u,m.cc=g,m.level=n,c&&(m.initSegment=c,m.rawProgramDateTime=c.rawProgramDateTime,c.rawProgramDateTime=null,b&&(m.setByteRange(b),b=null)));const U=p[1];if(U){m.duration=parseFloat(U);const O=(" "+p[2]).slice(1);m.title=O||null,m.tagList.push(O?["INF",U,O]:["INF",U])}else if(p[3]){if(H(m.duration)){m.start=f,x&&Il(m,x,o),m.sn=u,m.level=n,m.cc=g,l.push(m);const O=(" "+p[3]).slice(1);m.relurl=Zr(o,O),Al(m,h),h=m,f+=m.duration,u++,d=0,w=!0}}else if(p[4]){const O=(" "+p[4]).slice(1);h?m.setByteRange(O,h):m.setByteRange(O)}else if(p[5])m.rawProgramDateTime=(" "+p[5]).slice(1),m.tagList.push(["PROGRAM-DATE-TIME",m.rawProgramDateTime]),v===-1&&(v=l.length);else{if(p=p[0].match(k2),!p){L.warn("No matches on slow regex match for level playlist!");continue}for(E=1;E<p.length&&!(typeof p[E]<"u");E++);const O=(" "+p[E]).slice(1),B=(" "+p[E+1]).slice(1),Y=p[E+2]?(" "+p[E+2]).slice(1):"";switch(O){case"PLAYLIST-TYPE":o.type=B.toUpperCase();break;case"MEDIA-SEQUENCE":u=o.startSN=parseInt(B);break;case"SKIP":{const $=new pe(B);Ne(o,$,["RECENTLY-REMOVED-DATERANGES"]);const j=$.decimalInteger("SKIPPED-SEGMENTS");if(H(j)){o.skippedSegments=j;for(let X=j;X--;)l.unshift(null);u+=j}const Q=$.enumeratedString("RECENTLY-REMOVED-DATERANGES");Q&&(o.recentlyRemovedDateranges=Q.split(" "));break}case"TARGETDURATION":o.targetduration=Math.max(parseInt(B),1);break;case"VERSION":o.version=parseInt(B);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":o.live=!1;break;case"#":(B||Y)&&m.tagList.push(Y?[B,Y]:[B]);break;case"DISCONTINUITY":g++,m.tagList.push(["DIS"]);break;case"GAP":m.gap=!0,m.tagList.push([O]);break;case"BITRATE":m.tagList.push([O,B]);break;case"DATERANGE":{const $=new pe(B);Ne(o,$,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Ne(o,$,$.clientAttrs);const j=new Jo($,o.dateRanges[$.ID]);j.isValid||o.skippedSegments?o.dateRanges[j.id]=j:L.warn(`Ignoring invalid DATERANGE tag: "${B}"`),m.tagList.push(["EXT-X-DATERANGE",B]);break}case"DEFINE":{{const $=new pe(B);Ne(o,$,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in $?C2(o,$,a):yl(o,$,t)}break}case"DISCONTINUITY-SEQUENCE":g=parseInt(B);break;case"KEY":{const $=Cl(B,t,o);if($.isSupported()){if($.method==="NONE"){x=void 0;break}x||(x={}),x[$.keyFormat]&&(x=ye({},x)),x[$.keyFormat]=$}else L.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${B}"`);break}case"START":o.startTimeOffset=wl(B);break;case"MAP":{const $=new pe(B);if(Ne(o,$,["BYTERANGE","URI"]),m.duration){const j=new $r(r,t);Dl(j,$,n,x),c=j,m.initSegment=c,c.rawProgramDateTime&&!m.rawProgramDateTime&&(m.rawProgramDateTime=c.rawProgramDateTime)}else{const j=m.byteRangeEndOffset;if(j){const Q=m.byteRangeStartOffset;b=`${j-Q}@${Q}`}else b=null;Dl(m,$,n,x),c=m,w=!0}break}case"SERVER-CONTROL":{const $=new pe(B);o.canBlockReload=$.bool("CAN-BLOCK-RELOAD"),o.canSkipUntil=$.optionalFloat("CAN-SKIP-UNTIL",0),o.canSkipDateRanges=o.canSkipUntil>0&&$.bool("CAN-SKIP-DATERANGES"),o.partHoldBack=$.optionalFloat("PART-HOLD-BACK",0),o.holdBack=$.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const $=new pe(B);o.partTarget=$.decimalFloatingPoint("PART-TARGET");break}case"PART":{let $=o.partList;$||($=o.partList=[]);const j=d>0?$[$.length-1]:void 0,Q=d++,X=new pe(B);Ne(o,X,["BYTERANGE","URI"]);const ne=new Kh(X,m,t,Q,j);$.push(ne),m.duration+=ne.duration;break}case"PRELOAD-HINT":{const $=new pe(B);Ne(o,$,["URI"]),o.preloadHint=$;break}case"RENDITION-REPORT":{const $=new pe(B);Ne(o,$,["URI"]),o.renditionReports=o.renditionReports||[],o.renditionReports.push($);break}default:L.warn(`line parsed but not handled: ${p}`);break}}}h&&!h.relurl?(l.pop(),f-=h.duration,o.partList&&(o.fragmentHint=h)):o.partList&&(Al(m,h),m.cc=g,o.fragmentHint=m,x&&Il(m,x,o));const I=l.length,A=l[0],F=l[I-1];if(f+=o.skippedSegments*o.targetduration,f>0&&I&&F){o.averagetargetduration=f/I;const U=F.sn;o.endSN=U!=="initSegment"?U:0,o.live||(F.endList=!0),A&&(o.startCC=A.cc)}else o.endSN=0,o.startCC=0;return o.fragmentHint&&(f+=o.fragmentHint.duration),o.totalduration=f,o.endCC=g,v>0&&_2(l,v),o}}function Cl(s,e,t){var n,r;const i=new pe(s);Ne(t,i,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const a=(n=i.METHOD)!=null?n:"",o=i.URI,l=i.hexadecimalInteger("IV"),c=i.KEYFORMATVERSIONS,u=(r=i.KEYFORMAT)!=null?r:"identity";o&&i.IV&&!l&&L.error(`Invalid IV: ${i.IV}`);const d=o?st.resolve(o,e):"",f=(c||"1").split("/").map(Number).filter(Number.isFinite);return new Ss(a,d,u,f,l)}function wl(s){const t=new pe(s).decimalFloatingPoint("TIME-OFFSET");return H(t)?t:null}function P2(s,e){let t=(s||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>L2(i,n));r.length&&(e[`${n}Codec`]=r.join(","),t=t.filter(i=>r.indexOf(i)===-1))}),e.unknownCodecs=t}function Ll(s,e,t){const n=e[t];n&&(s[t]=n)}function _2(s,e){let t=s[e];for(let n=e;n--;){const r=s[n];if(!r)return;r.programDateTime=t.programDateTime-r.duration*1e3,t=r}}function Al(s,e){s.rawProgramDateTime?s.programDateTime=Date.parse(s.rawProgramDateTime):e!=null&&e.programDateTime&&(s.programDateTime=e.endProgramDateTime),H(s.programDateTime)||(s.programDateTime=null,s.rawProgramDateTime=null)}function Dl(s,e,t,n){s.relurl=e.URI,e.BYTERANGE&&s.setByteRange(e.BYTERANGE),s.level=t,s.sn="initSegment",n&&(s.levelkeys=n),s.initSegment=null}function Il(s,e,t){s.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(r=>e[r].isCommonEncryption)&&n.push(s)}var se={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},q={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function Rl(s){const{type:e}=s;switch(e){case se.AUDIO_TRACK:return q.AUDIO;case se.SUBTITLE_TRACK:return q.SUBTITLE;default:return q.MAIN}}function ei(s,e){let t=s.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class O2{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(y.LEVEL_LOADING,this.onLevelLoading,this),e.on(y.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(y.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:e}=this;e.off(y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(y.LEVEL_LOADING,this.onLevelLoading,this),e.off(y.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(y.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,r=t.loader,i=n||r,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:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:se.MANIFEST,url:n,deliveryDirectives:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:a,deliveryDirectives:o}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:se.LEVEL,url:a,deliveryDirectives:o})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:a}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:se.AUDIO_TRACK,url:i,deliveryDirectives:a})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:a}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:se.SUBTITLE_TRACK,url:i,deliveryDirectives:a})}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const c=r.context;if(c&&c.url===e.url&&c.level===e.level){L.trace("[playlist-loader]: playlist request ongoing");return}L.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===se.MANIFEST?i=n.manifestLoadPolicy.default:i=ye({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),H((t=e.deliveryDirectives)==null?void 0:t.part)){let c;if(e.type===se.LEVEL&&e.level!==null?c=this.hls.levels[e.level].details:e.type===se.AUDIO_TRACK&&e.id!==null?c=this.hls.audioTracks[e.id].details:e.type===se.SUBTITLE_TRACK&&e.id!==null&&(c=this.hls.subtitleTracks[e.id].details),c){const u=c.partTarget,d=c.targetduration;if(u&&d){const f=Math.max(u*3,d*.8)*1e3;i=ye({},i,{maxTimeToFirstByteMs:Math.min(f,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(f,i.maxTimeToFirstByteMs)})}}}const a=i.errorRetry||i.timeoutRetry||{},o={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},l={onSuccess:(c,u,d,f)=>{const g=this.getInternalLoader(d);this.resetInternalLoader(d.type);const h=c.data;if(h.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(c,d,new Error("no EXTM3U delimiter"),f||null,u);return}u.parsing.start=performance.now(),st.isMediaPlaylist(h)?this.handleTrackOrLevelPlaylist(c,u,d,f||null,g):this.handleMasterPlaylist(c,u,d,f)},onError:(c,u,d,f)=>{this.handleNetworkError(u,d,!1,c,f)},onTimeout:(c,u,d)=>{this.handleNetworkError(u,d,!0,void 0,c)}};r.load(e,o,l)}handleMasterPlaylist(e,t,n,r){const i=this.hls,a=e.data,o=ei(e,n),l=st.parseMasterPlaylist(a,o);if(l.playlistParsingError){this.handleManifestParsingError(e,n,l.playlistParsingError,r,t);return}const{contentSteering:c,levels:u,sessionData:d,sessionKeys:f,startTimeOffset:g,variableList:h}=l;this.variableList=h;const{AUDIO:m=[],SUBTITLES:p,"CLOSED-CAPTIONS":E}=st.parseMasterPlaylistMedia(a,o,l);m.length&&!m.some(v=>!v.url)&&u[0].audioCodec&&!u[0].attrs.AUDIO&&(L.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),m.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new pe({}),bitrate:0,url:""})),i.trigger(y.MANIFEST_LOADED,{levels:u,audioTracks:m,subtitles:p,captions:E,contentSteering:c,url:o,stats:t,networkDetails:r,sessionData:d,sessionKeys:f,startTimeOffset:g,variableList:h})}handleTrackOrLevelPlaylist(e,t,n,r,i){const a=this.hls,{id:o,level:l,type:c}=n,u=ei(e,n),d=0,f=H(l)?l:H(o)?o:0,g=Rl(n),h=st.parseLevelPlaylist(e.data,u,f,g,d,this.variableList);if(c===se.MANIFEST){const m={attrs:new pe({}),bitrate:0,details:h,name:"",url:u};a.trigger(y.MANIFEST_LOADED,{levels:[m],audioTracks:[],url:u,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=h,this.handlePlaylistLoaded(h,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(y.ERROR,{type:Z.NETWORK_ERROR,details:k.MANIFEST_PARSING_ERROR,fatal:t.type===se.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}handleNetworkError(e,t,n=!1,r,i){let a=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===se.LEVEL?a+=`: ${e.level} id: ${e.id}`:(e.type===se.AUDIO_TRACK||e.type===se.SUBTITLE_TRACK)&&(a+=` id: ${e.id} group-id: "${e.groupId}"`);const o=new Error(a);L.warn(`[playlist-loader]: ${a}`);let l=k.UNKNOWN,c=!1;const u=this.getInternalLoader(e);switch(e.type){case se.MANIFEST:l=n?k.MANIFEST_LOAD_TIMEOUT:k.MANIFEST_LOAD_ERROR,c=!0;break;case se.LEVEL:l=n?k.LEVEL_LOAD_TIMEOUT:k.LEVEL_LOAD_ERROR,c=!1;break;case se.AUDIO_TRACK:l=n?k.AUDIO_TRACK_LOAD_TIMEOUT:k.AUDIO_TRACK_LOAD_ERROR,c=!1;break;case se.SUBTITLE_TRACK:l=n?k.SUBTITLE_TRACK_LOAD_TIMEOUT:k.SUBTITLE_LOAD_ERROR,c=!1;break}u&&this.resetInternalLoader(e.type);const d={type:Z.NETWORK_ERROR,details:l,fatal:c,url:e.url,loader:u,context:e,error:o,networkDetails:t,stats:i};if(r){const f=(t==null?void 0:t.url)||e.url;d.response=be({url:f,data:void 0},r)}this.hls.trigger(y.ERROR,d)}handlePlaylistLoaded(e,t,n,r,i,a){const o=this.hls,{type:l,level:c,id:u,groupId:d,deliveryDirectives:f}=r,g=ei(t,r),h=Rl(r),m=typeof r.level=="number"&&h===q.MAIN?c:void 0;if(!e.fragments.length){const E=new Error("No Segments found in Playlist");o.trigger(y.ERROR,{type:Z.NETWORK_ERROR,details:k.LEVEL_EMPTY_ERROR,fatal:!1,url:g,error:E,reason:E.message,response:t,context:r,level:m,parent:h,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const p=e.playlistParsingError;if(p){o.trigger(y.ERROR,{type:Z.NETWORK_ERROR,details:k.LEVEL_PARSING_ERROR,fatal:!1,url:g,error:p,reason:p.message,response:t,context:r,level:m,parent:h,networkDetails:i,stats:n});return}switch(e.live&&a&&(a.getCacheAge&&(e.ageHeader=a.getCacheAge()||0),(!a.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),l){case se.MANIFEST:case se.LEVEL:o.trigger(y.LEVEL_LOADED,{details:e,level:m||0,id:u||0,stats:n,networkDetails:i,deliveryDirectives:f});break;case se.AUDIO_TRACK:o.trigger(y.AUDIO_TRACK_LOADED,{details:e,id:u||0,groupId:d||"",stats:n,networkDetails:i,deliveryDirectives:f});break;case se.SUBTITLE_TRACK:o.trigger(y.SUBTITLE_TRACK_LOADED,{details:e,id:u||0,groupId:d||"",stats:n,networkDetails:i,deliveryDirectives:f});break}}}function kl(s,e){let t;try{t=new Event("addtrack")}catch{t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=s,e.dispatchEvent(t)}function Pl(s,e){const t=s.mode;if(t==="disabled"&&(s.mode="hidden"),s.cues&&!s.cues.getCueById(e.id))try{if(s.addCue(e),!s.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){L.debug(`[texttrack-utils]: ${n}`);try{const r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,s.addCue(r)}catch(r){L.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(s.mode=t)}function zt(s){const e=s.mode;if(e==="disabled"&&(s.mode="hidden"),s.cues)for(let t=s.cues.length;t--;)s.removeCue(s.cues[t]);e==="disabled"&&(s.mode=e)}function ti(s,e,t,n){const r=s.mode;if(r==="disabled"&&(s.mode="hidden"),s.cues&&s.cues.length>0){const i=M2(s.cues,e,t);for(let a=0;a<i.length;a++)(!n||n(i[a]))&&s.removeCue(i[a])}r==="disabled"&&(s.mode=r)}function F2(s,e){if(e<s[0].startTime)return 0;const t=s.length-1;if(e>s[t].endTime)return-1;let n=0,r=t;for(;n<=r;){const i=Math.floor((r+n)/2);if(e<s[i].startTime)r=i-1;else if(e>s[i].startTime&&n<t)n=i+1;else return i}return s[n].startTime-e<e-s[r].startTime?n:r}function M2(s,e,t){const n=[],r=F2(s,e);if(r>-1)for(let i=r,a=s.length;i<a;i++){const o=s[i];if(o.startTime>=e&&o.endTime<=t)n.push(o);else if(o.startTime>t)return n}return n}function bn(s){const e=[];for(let t=0;t<s.length;t++){const n=s[t];(n.kind==="subtitles"||n.kind==="captions")&&n.label&&e.push(s[t])}return e}var qe={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const N2=.25;function si(){if(!(typeof self>"u"))return self.VTTCue||self.TextTrackCue}function _l(s,e,t,n,r){let i=new s(e,t,"");try{i.value=n,r&&(i.type=r)}catch{i=new s(e,t,JSON.stringify(r?be({type:r},n):n))}return i}const Cn=(()=>{const s=si();try{s&&new s(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function ni(s,e){return s.getTime()/1e3-e}function B2(s){return Uint8Array.from(s.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class U2{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}_registerListeners(){const{hls:e}=this;e.on(y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(y.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(y.LEVEL_UPDATED,this.onLevelUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(y.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(y.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(e,t){this.media=t.media}onMediaDetaching(){this.id3Track&&(zt(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const n=e[t];if(n.kind==="metadata"&&n.label==="id3")return kl(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:n,enableID3MetadataCues:r}}}=this;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const a=si();if(a)for(let o=0;o<i.length;o++){const l=i[o].type;if(l===qe.emsg&&!n||!r)continue;const c=il(i[o].data);if(c){const u=i[o].pts;let d=u+i[o].duration;d>Cn&&(d=Cn),d-u<=0&&(d=u+N2);for(let g=0;g<c.length;g++){const h=c[g];if(!rl(h)){this.updateId3CueEnds(u,l);const m=_l(a,u,d,h,l);m&&this.id3Track.addCue(m)}}}}}updateId3CueEnds(e,t){var n;const r=(n=this.id3Track)==null?void 0:n.cues;if(r)for(let i=r.length;i--;){const a=r[i];a.type===t&&a.startTime<e&&a.endTime===Cn&&(a.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:a}=this;if(!a)return;const{config:{enableEmsgMetadataCues:o,enableID3MetadataCues:l}}=a;if(i&&(o||l)){let c;r==="audio"?c=u=>u.type===qe.audioId3&&l:r==="video"?c=u=>u.type===qe.emsg&&o:c=u=>u.type===qe.audioId3&&l||u.type===qe.emsg&&o,ti(i,t,n,c)}}onLevelUpdated(e,{details:t}){if(!this.media||!t.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:n,id3Track:r}=this,{dateRanges:i}=t,a=Object.keys(i);if(r){const u=Object.keys(n).filter(d=>!a.includes(d));for(let d=u.length;d--;){const f=u[d];Object.keys(n[f].cues).forEach(g=>{r.removeCue(n[f].cues[g])}),delete n[f]}}const o=t.fragments[t.fragments.length-1];if(a.length===0||!H(o==null?void 0:o.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const l=o.programDateTime/1e3-o.start,c=si();for(let u=0;u<a.length;u++){const d=a[u],f=i[d],g=ni(f.startDate,l),h=n[d],m=(h==null?void 0:h.cues)||{};let p=(h==null?void 0:h.durationKnown)||!1,E=Cn;const x=f.endDate;if(x)E=ni(x,l),p=!0;else if(f.endOnNext&&!p){const w=a.reduce((b,I)=>{if(I!==f.id){const A=i[I];if(A.class===f.class&&A.startDate>f.startDate&&(!b||f.startDate<b.startDate))return A}return b},null);w&&(E=ni(w.startDate,l),p=!0)}const v=Object.keys(f.attr);for(let w=0;w<v.length;w++){const b=v[w];if(!Gh(b))continue;const I=m[b];if(I)p&&!h.durationKnown&&(I.endTime=E);else if(c){let A=f.attr[b];Hh(b)&&(A=B2(A));const F=_l(c,g,E,{key:b,data:A},qe.dateRange);F&&(F.id=d,this.id3Track.addCue(F),m[b]=F)}}n[d]={cues:m,dateRange:f,durationKnown:p}}}}class $2{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=()=>this.timeupdate(),this.hls=e,this.config=e.config,this.registerListeners()}get latency(){return this._latency||0}get maxLatency(){const{config:e,levelDetails:t}=this;return e.liveMaxLatencyDuration!==void 0?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const{levelDetails:e}=this;if(e===null)return null;const{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:i,liveSyncDurationCount:a,lowLatencyMode:o}=this.config,l=this.hls.userConfig;let c=o&&n||t;(l.liveSyncDuration||l.liveSyncDurationCount||c===0)&&(c=i!==void 0?i:a*r);const u=r;return c+Math.min(this.stallCount*1,u)}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency,n=this.levelDetails;if(e===null||t===null||n===null)return null;const r=n.edge,i=e-t-this.edgeStalled,a=r-n.totalduration,o=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(a,i),o)}get drift(){const{levelDetails:e}=this;return e===null?1:e.drift}get edgeStalled(){const{levelDetails:e}=this;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e,levelDetails:t}=this;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(y.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(y.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(y.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(y.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(y.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(y.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(y.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(y.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(y.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(y.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}onManifestLoading(){this.levelDetails=null,this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){this.levelDetails=t,t.advanced&&this.timeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}onError(e,t){var n;t.details===k.BUFFER_STALLED_ERROR&&(this.stallCount++,(n=this.levelDetails)!=null&&n.live&&L.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}timeupdate(){const{media:e,levelDetails:t}=this;if(!e||!t)return;this.currentTime=e.currentTime;const n=this.computeLatency();if(n===null)return;this._latency=n;const{lowLatencyMode:r,maxLiveSyncPlaybackRate:i}=this.config;if(!r||i===1||!t.live)return;const a=this.targetLatency;if(a===null)return;const o=n-a,l=Math.min(this.maxLatency,a+t.targetduration);if(o<l&&o>.05&&this.forwardBufferLength>1){const u=Math.min(2,Math.max(1,i)),d=Math.round(2/(1+Math.exp(-.75*o-this.edgeStalled))*20)/20;e.playbackRate=Math.min(u,Math.max(1,d))}else e.playbackRate!==1&&e.playbackRate!==0&&(e.playbackRate=1)}estimateLiveEdge(){const{levelDetails:e}=this;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}const ri=["NONE","TYPE-0","TYPE-1",null];function V2(s){return ri.indexOf(s)>-1}const wn=["SDR","PQ","HLG"];function G2(s){return!!s&&wn.indexOf(s)>-1}var Ln={No:"",Yes:"YES",v2:"v2"};function Ol(s){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=s,r=n<e/2;return e&&r?t?Ln.v2:Ln.Yes:Ln.No}class Fl{constructor(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}addDirectives(e){const t=new self.URL(e);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class qt{constructor(e){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.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=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,this.codecSet=[e.videoCodec,e.audioCodec].filter(t=>!!t).map(t=>t.substring(0,4)).join(","),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 Ml(this._audioGroups,e)}hasSubtitleGroup(e){return Ml(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let n=this._audioGroups;n||(n=this._audioGroups=[]),n.indexOf(t)===-1&&n.push(t)}else if(e==="text"){let n=this._subtitleGroups;n||(n=this._subtitleGroups=[]),n.indexOf(t)===-1&&n.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 Ml(s,e){return!e||!s?!1:s.indexOf(e)!==-1}function ii(s,e){const t=e.startPTS;if(H(t)){let n=0,r;e.sn>s.sn?(n=t-s.start,r=s):(n=s.start-t,r=e),r.duration!==n&&(r.duration=n)}else e.sn>s.sn?s.cc===e.cc&&s.minEndPTS?e.start=s.start+(s.minEndPTS-s.start):e.start=s.start+s.duration:e.start=Math.max(s.start-e.duration,0)}function Nl(s,e,t,n,r,i){n-t<=0&&(L.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let o=t,l=n;const c=e.startPTS,u=e.endPTS;if(H(c)){const p=Math.abs(c-t);H(e.deltaPTS)?e.deltaPTS=Math.max(p,e.deltaPTS):e.deltaPTS=p,o=Math.max(t,c),t=Math.min(t,c),r=Math.min(r,e.startDTS),l=Math.min(n,u),n=Math.max(n,u),i=Math.max(i,e.endDTS)}const d=t-e.start;e.start!==0&&(e.start=t),e.duration=n-e.start,e.startPTS=t,e.maxStartPTS=o,e.startDTS=r,e.endPTS=n,e.minEndPTS=l,e.endDTS=i;const f=e.sn;if(!s||f<s.startSN||f>s.endSN)return 0;let g;const h=f-s.startSN,m=s.fragments;for(m[h]=e,g=h;g>0;g--)ii(m[g],m[g-1]);for(g=h;g<m.length-1;g++)ii(m[g],m[g+1]);return s.fragmentHint&&ii(m[m.length-1],s.fragmentHint),s.PTSKnown=s.alignedSliding=!0,d}function H2(s,e){let t=null;const n=s.fragments;for(let o=n.length-1;o>=0;o--){const l=n[o].initSegment;if(l){t=l;break}}s.fragmentHint&&delete s.fragmentHint.endPTS;let r;j2(s,e,(o,l,c,u)=>{if(e.skippedSegments&&l.cc!==o.cc){const d=o.cc-l.cc;for(let f=c;f<u.length;f++)u[f].cc+=d}H(o.startPTS)&&H(o.endPTS)&&(l.start=l.startPTS=o.startPTS,l.startDTS=o.startDTS,l.maxStartPTS=o.maxStartPTS,l.endPTS=o.endPTS,l.endDTS=o.endDTS,l.minEndPTS=o.minEndPTS,l.duration=o.endPTS-o.startPTS,l.duration&&(r=l),e.PTSKnown=e.alignedSliding=!0),l.elementaryStreams=o.elementaryStreams,l.loader=o.loader,l.stats=o.stats,o.initSegment&&(l.initSegment=o.initSegment,t=o.initSegment)});const i=e.fragments;if(t&&(e.fragmentHint?i.concat(e.fragmentHint):i).forEach(l=>{var c;l&&(!l.initSegment||l.initSegment.relurl===((c=t)==null?void 0:c.relurl))&&(l.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=i.some(o=>!o),e.deltaUpdateFailed){L.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let o=e.skippedSegments;o--;)i.shift();e.startSN=i[0].sn}else e.canSkipDateRanges&&(e.dateRanges=K2(s.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=i[i.length-1].cc}W2(s.partList,e.partList,(o,l)=>{l.elementaryStreams=o.elementaryStreams,l.stats=o.stats}),r?Nl(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):Bl(s,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=s.driftStartTime,e.driftStart=s.driftStart;const a=e.advancedDateTime;if(e.advanced&&a){const o=e.edge;e.driftStart||(e.driftStartTime=a,e.driftStart=o),e.driftEndTime=a,e.driftEnd=o}else e.driftEndTime=s.driftEndTime,e.driftEnd=s.driftEnd,e.advancedDateTime=s.advancedDateTime}function K2(s,e,t){const n=ye({},s);return t&&t.forEach(r=>{delete n[r]}),Object.keys(e).forEach(r=>{const i=new Jo(e[r].attr,n[r]);i.isValid?n[r]=i:L.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[r].attr)}"`)}),n}function W2(s,e,t){if(s&&e){let n=0;for(let r=0,i=s.length;r<=i;r++){const a=s[r],o=e[r+n];a&&o&&a.index===o.index&&a.fragment.sn===o.fragment.sn?t(a,o):n--}}}function j2(s,e,t){const n=e.skippedSegments,r=Math.max(s.startSN,e.startSN)-e.startSN,i=(s.fragmentHint?1:0)+(n?e.endSN:Math.min(s.endSN,e.endSN))-e.startSN,a=e.startSN-s.startSN,o=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,l=s.fragmentHint?s.fragments.concat(s.fragmentHint):s.fragments;for(let c=r;c<=i;c++){const u=l[a+c];let d=o[c];n&&!d&&c<n&&(d=e.fragments[c]=u),u&&d&&t(u,d,c,o)}}function Bl(s,e){const t=e.startSN+e.skippedSegments-s.startSN,n=s.fragments;t<0||t>=n.length||ai(e,n[t].start)}function ai(s,e){if(e){const t=s.fragments;for(let n=s.skippedSegments;n<t.length;n++)t[n].start+=e;s.fragmentHint&&(s.fragmentHint.start+=e)}}function z2(s,e=1/0){let t=1e3*s.targetduration;if(s.updated){const n=s.fragments;if(n.length&&t*4>e){const i=n[n.length-1].duration*1e3;i<t&&(t=i)}}else t/=2;return Math.round(t)}function q2(s,e,t){if(!(s!=null&&s.details))return null;const n=s.details;let r=n.fragments[e-n.startSN];return r||(r=n.fragmentHint,r&&r.sn===e)?r:e<n.startSN&&t&&t.sn===e?t:null}function Ul(s,e,t){var n;return s!=null&&s.details?$l((n=s.details)==null?void 0:n.partList,e,t):null}function $l(s,e,t){if(s)for(let n=s.length;n--;){const r=s[n];if(r.index===t&&r.fragment.sn===e)return r}return null}function Vl(s){s.forEach((e,t)=>{const{details:n}=e;n!=null&&n.fragments&&n.fragments.forEach(r=>{r.level=t})})}function An(s){switch(s.details){case k.FRAG_LOAD_TIMEOUT:case k.KEY_LOAD_TIMEOUT:case k.LEVEL_LOAD_TIMEOUT:case k.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Gl(s,e){const t=An(e);return s.default[`${t?"timeout":"error"}Retry`]}function oi(s,e){const t=s.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*s.retryDelayMs,s.maxRetryDelayMs)}function Hl(s){return be(be({},s),{errorRetry:null,timeoutRetry:null})}function Dn(s,e,t,n){if(!s)return!1;const r=n==null?void 0:n.code,i=e<s.maxNumRetry&&(Y2(r)||!!t);return s.shouldRetry?s.shouldRetry(s,e,t,n,i):i}function Y2(s){return s===0&&navigator.onLine===!1||!!s&&(s<400||s>499)}const Kl={search:function(s,e){let t=0,n=s.length-1,r=null,i=null;for(;t<=n;){r=(t+n)/2|0,i=s[r];const a=e(i);if(a>0)t=r+1;else if(a<0)n=r-1;else return i}return null}};function X2(s,e,t){if(e===null||!Array.isArray(s)||!s.length||!H(e))return null;const n=s[0].programDateTime;if(e<(n||0))return null;const r=s[s.length-1].endProgramDateTime;if(e>=(r||0))return null;t=t||0;for(let i=0;i<s.length;++i){const a=s[i];if(Q2(e,t,a))return a}return null}function In(s,e,t=0,n=0,r=.005){let i=null;if(s){i=e[s.sn-e[0].sn+1]||null;const o=s.endDTS-t;o>0&&o<15e-7&&(t+=15e-7)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!s||s.level===i.level)&&li(t,n,i)===0||Z2(i,s,Math.min(r,n))))return i;const a=Kl.search(e,li.bind(null,t,n));return a&&(a!==s||!i)?a:i}function Z2(s,e,t){if(e&&e.start===0&&e.level<s.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((r,i)=>(i[0]==="INF"&&(r+=parseFloat(i[1])),r),t);return s.start<=n}return!1}function li(s=0,e=0,t){if(t.start<=s&&t.start+t.duration>s)return 0;const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-n<=s?1:t.start-n>s&&t.start?-1:0}function Q2(s,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>s}function J2(s,e){return Kl.search(s,t=>t.cc<e?1:t.cc>e?-1:0)}var Ie={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Ye={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class ep{constructor(e){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=e,this.log=L.log.bind(L,"[info]:"),this.warn=L.warn.bind(L,"[warning]:"),this.error=L.error.bind(L,"[error]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(y.ERROR,this.onError,this),e.on(y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(y.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(y.ERROR,this.onError,this),e.off(y.ERROR,this.onErrorOut,this),e.off(y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(y.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===q.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n,r;if(t.fatal)return;const i=this.hls,a=t.context;switch(t.details){case k.FRAG_LOAD_ERROR:case k.FRAG_LOAD_TIMEOUT:case k.KEY_LOAD_ERROR:case k.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case k.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction={action:Ie.DoNothing,flags:Ye.None};return}case k.FRAG_GAP:case k.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Ie.SendAlternateToPenaltyBox;return}case k.LEVEL_EMPTY_ERROR:case k.LEVEL_PARSING_ERROR:{var o,l;const c=t.parent===q.MAIN?t.level:i.loadLevel;t.details===k.LEVEL_EMPTY_ERROR&&((o=t.context)!=null&&(l=o.levelDetails)!=null&&l.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,c):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,c))}return;case k.LEVEL_LOAD_ERROR:case k.LEVEL_LOAD_TIMEOUT:typeof(a==null?void 0:a.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,a.level));return;case k.AUDIO_TRACK_LOAD_ERROR:case k.AUDIO_TRACK_LOAD_TIMEOUT:case k.SUBTITLE_LOAD_ERROR:case k.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){const c=i.levels[i.loadLevel];if(c&&(a.type===se.AUDIO_TRACK&&c.hasAudioGroup(a.groupId)||a.type===se.SUBTITLE_TRACK&&c.hasSubtitleGroup(a.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=Ie.SendAlternateToPenaltyBox,t.errorAction.flags=Ye.MoveAllAlternatesMatchingHost;return}}return;case k.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const c=i.levels[i.loadLevel],u=c==null?void 0:c.attrs["HDCP-LEVEL"];u?t.errorAction={action:Ie.SendAlternateToPenaltyBox,flags:Ye.MoveAllAlternatesMatchingHDCP,hdcpLevel:u}:this.keySystemError(t)}return;case k.BUFFER_ADD_CODEC_ERROR:case k.REMUX_ALLOC_ERROR:case k.BUFFER_APPEND_ERROR:t.errorAction=this.getLevelSwitchAction(t,(r=t.level)!=null?r:i.loadLevel);return;case k.INTERNAL_EXCEPTION:case k.BUFFER_APPENDING_ERROR:case k.BUFFER_FULL_ERROR:case k.LEVEL_SWITCH_ERROR:case k.BUFFER_STALLED_ERROR:case k.BUFFER_SEEK_OVER_HOLE:case k.BUFFER_NUDGE_ON_STALL:t.errorAction={action:Ie.DoNothing,flags:Ye.None};return}t.type===Z.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,r=Gl(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(Dn(r,i,An(e),e.response))return{action:Ie.RetryRequest,flags:Ye.None,retryConfig:r,retryCount:i};const o=this.getLevelSwitchAction(e,t);return r&&(o.retryConfig=r,o.retryCount=i),o}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:a}=t.config,o=Gl(e.details.startsWith("key")?a:i,e),l=t.levels.reduce((u,d)=>u+d.fragmentError,0);if(r&&(e.details!==k.FRAG_GAP&&r.fragmentError++,Dn(o,l,An(e),e.response)))return{action:Ie.RetryRequest,flags:Ye.None,retryConfig:o,retryCount:l};const c=this.getLevelSwitchAction(e,n);return o&&(c.retryConfig=o,c.retryCount=l),c}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,a;const c=e.details;r.loadError++,c===k.BUFFER_APPEND_ERROR&&r.fragmentError++;let u=-1;const{levels:d,loadLevel:f,minAutoLevel:g,maxAutoLevel:h}=n;n.autoLevelEnabled||(n.loadLevel=-1);const m=(i=e.frag)==null?void 0:i.type,E=(m===q.AUDIO&&c===k.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(c===k.BUFFER_ADD_CODEC_ERROR||c===k.BUFFER_APPEND_ERROR))&&d.some(({audioCodec:I})=>r.audioCodec!==I),v=e.sourceBufferName==="video"&&(c===k.BUFFER_ADD_CODEC_ERROR||c===k.BUFFER_APPEND_ERROR)&&d.some(({codecSet:I,audioCodec:A})=>r.codecSet!==I&&r.audioCodec===A),{type:w,groupId:b}=(a=e.context)!=null?a:{};for(let I=d.length;I--;){const A=(I+f)%d.length;if(A!==f&&A>=g&&A<=h&&d[A].loadError===0){var o,l;const F=d[A];if(c===k.FRAG_GAP&&m===q.MAIN&&e.frag){const U=d[A].details;if(U){const O=In(e.frag,U.fragments,e.frag.start);if(O!=null&&O.gap)continue}}else{if(w===se.AUDIO_TRACK&&F.hasAudioGroup(b)||w===se.SUBTITLE_TRACK&&F.hasSubtitleGroup(b))continue;if(m===q.AUDIO&&(o=r.audioGroups)!=null&&o.some(U=>F.hasAudioGroup(U))||m===q.SUBTITLE&&(l=r.subtitleGroups)!=null&&l.some(U=>F.hasSubtitleGroup(U))||E&&r.audioCodec===F.audioCodec||!E&&r.audioCodec!==F.audioCodec||v&&r.codecSet===F.codecSet)continue}u=A;break}}if(u>-1&&n.loadLevel!==u)return e.levelRetry=!0,this.playlistError=0,{action:Ie.SendAlternateToPenaltyBox,flags:Ye.None,nextAutoLevel:u}}return{action:Ie.SendAlternateToPenaltyBox,flags:Ye.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case Ie.DoNothing:break;case Ie.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==k.FRAG_GAP?t.fatal=!0:/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r,hdcpLevel:i,nextAutoLevel:a}=n;switch(r){case Ye.None:this.switchLevel(e,a);break;case Ye.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=ri[ri.indexOf(i)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}n.resolved||this.switchLevel(e,a)}switchLevel(e,t){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)}}class ci{constructor(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=L.log.bind(L,`${t}:`),this.warn=L.warn.bind(L,`${t}:`),this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const r=t==null?void 0:t.renditionReports;if(r){let i=-1;for(let a=0;a<r.length;a++){const o=r[a];let l;try{l=new self.URL(o.URI,t.url).href}catch(c){L.warn(`Could not construct new URL for Rendition Report: ${c}`),l=o.URI||""}if(l===e){i=a;break}else l===e.substring(0,l.length)&&(i=a)}if(i!==-1){const a=r[i],o=parseInt(a["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let l=parseInt(a["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const u=Math.min(t.age-t.partTarget,t.targetduration);l>=0&&u>t.partTarget&&(l+=1)}const c=n&&Ol(n);return new Fl(o,l>=0?l:void 0,c)}}}loadPlaylist(e){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}shouldReloadPlaylist(e){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(e)}playlistLoaded(e,t,n){const{details:r,stats:i}=t,a=self.performance.now(),o=i.loading.first?Math.max(0,a-i.loading.first):0;if(r.advancedDateTime=Date.now()-o,r.live||n!=null&&n.live){if(r.reloaded(n),n&&this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),n&&r.fragments.length>0&&H2(n,r),!this.canLoad||!r.live)return;let l,c,u;if(r.canBlockReload&&r.endSN&&r.advanced){const p=this.hls.config.lowLatencyMode,E=r.lastPartSn,x=r.endSN,v=r.lastPartIndex,w=v!==-1,b=E===x,I=p?0:v;w?(c=b?x+1:E,u=b?I:v+1):c=x+1;const A=r.age,F=A+r.ageHeader;let U=Math.min(F-r.partTarget,r.targetduration*1.5);if(U>0){if(n&&U>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${U} with playlist age: ${r.age}`),U=0;else{const O=Math.floor(U/r.targetduration);if(c+=O,u!==void 0){const B=Math.round(U%r.targetduration/r.partTarget);u+=B}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${A.toFixed(2)}s goal: ${U} skip sn ${O} to part ${u}`)}r.tuneInGoal=U}if(l=this.getDeliveryDirectives(r,t.deliveryDirectives,c,u),p||!b){this.loadPlaylist(l);return}}else(r.canBlockReload||r.canSkipUntil)&&(l=this.getDeliveryDirectives(r,t.deliveryDirectives,c,u));const d=this.hls.mainForwardBufferInfo,f=d?d.end-d.len:0,g=(r.edge-f)*1e3,h=z2(r,g);r.updated&&a>this.requestScheduled+h&&(this.requestScheduled=i.loading.start),c!==void 0&&r.canBlockReload?this.requestScheduled=i.loading.first+h-(r.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+h<a?this.requestScheduled=a:this.requestScheduled-a<=0&&(this.requestScheduled+=h);let m=this.requestScheduled-a;m=Math.max(0,m),this.log(`reload live playlist ${e} in ${Math.round(m)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(l),m)}else this.clearTimer()}getDeliveryDirectives(e,t,n,r){let i=Ol(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=Ln.No),new Fl(n,r,i)}checkRetry(e){const t=e.details,n=An(e),r=e.errorAction,{action:i,retryCount:a=0,retryConfig:o}=r||{},l=!!r&&!!o&&(i===Ie.RetryRequest||!r.resolved&&i===Ie.SendAlternateToPenaltyBox);if(l){var c;if(this.requestScheduled=-1,a>=o.maxNumRetry)return!1;if(n&&(c=e.context)!=null&&c.deliveryDirectives)this.warn(`Retrying playlist loading ${a+1}/${o.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const u=oi(o,a);this.timer=self.setTimeout(()=>this.loadPlaylist(),u),this.warn(`Retrying playlist loading ${a+1}/${o.maxNumRetry} after "${t}" in ${u}ms`)}e.levelRetry=!0,r.resolved=!0}return l}}class Yt{constructor(e,t=0,n=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_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*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 tp{constructor(e,t,n,r=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_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Yt(e),this.fast_=new Yt(t),this.defaultTTFB_=r,this.ttfb_=new Yt(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new Yt(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new Yt(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new Yt(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const n=8*t,r=e/1e3,i=n/r;this.fast_.sample(r,i),this.slow_.sample(r,i)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,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_}destroy(){}}const Wl={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},jl={};function sp(s,e,t,n,r,i){const a=s.audioCodec?s.audioGroups:null,o=i==null?void 0:i.audioCodec,l=i==null?void 0:i.channels,c=l?parseInt(l):o?1/0:2;let u=null;if(a!=null&&a.length)try{a.length===1&&a[0]?u=e.groups[a[0]].channels:u=a.reduce((d,f)=>{if(f){const g=e.groups[f];if(!g)throw new Error(`Audio track group ${f} not found`);Object.keys(g.channels).forEach(h=>{d[h]=(d[h]||0)+g.channels[h]})}return d},{2:0})}catch{return!0}return s.videoCodec!==void 0&&(s.width>1920&&s.height>1088||s.height>1920&&s.width>1088||s.frameRate>Math.max(n,30)||s.videoRange!=="SDR"&&s.videoRange!==t||s.bitrate>Math.max(r,8e6))||!!u&&H(c)&&Object.keys(u).some(d=>parseInt(d)>c)}function np(s,e,t){const n=s.videoCodec,r=s.audioCodec;if(!n||!r||!t)return Promise.resolve(Wl);const i={width:s.width,height:s.height,bitrate:Math.ceil(Math.max(s.bitrate*.9,s.averageBitrate)),framerate:s.frameRate||30},a=s.videoRange;a!=="SDR"&&(i.transferFunction=a.toLowerCase());const o=n.split(",").map(l=>({type:"media-source",video:be(be({},i),{},{contentType:Ts(l,"video")})}));return r&&s.audioGroups&&s.audioGroups.forEach(l=>{var c;l&&((c=e.groups[l])==null||c.tracks.forEach(u=>{if(u.groupId===l){const d=u.channels||"",f=parseFloat(d);H(f)&&f>2&&o.push.apply(o,r.split(",").map(g=>({type:"media-source",audio:{contentType:Ts(g,"audio"),channels:""+f}})))}}))}),Promise.all(o.map(l=>{const c=rp(l);return jl[c]||(jl[c]=t.decodingInfo(l))})).then(l=>({supported:!l.some(c=>!c.supported),configurations:o,decodingInfoResults:l})).catch(l=>({supported:!1,configurations:o,decodingInfoResults:[],error:l}))}function rp(s){const{audio:e,video:t}=s,n=t||e;if(n){const r=n.contentType.split('"')[1];if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${r}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${r}`}return""}function ip(){if(typeof matchMedia=="function"){const s=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(s.media!==e.media)return s.matches===!0}return!1}function ap(s,e){let t=!1,n=[];return s&&(t=s!=="SDR",n=[s]),e&&(n=e.allowedVideoRanges||wn.slice(0),t=e.preferHDR!==void 0?e.preferHDR:ip(),t?n=n.filter(r=>r!=="SDR"):n=["SDR"]),{preferHDR:t,allowedVideoRanges:n}}function op(s,e,t,n,r){const i=Object.keys(s),a=n==null?void 0:n.channels,o=n==null?void 0:n.audioCodec,l=a&&parseInt(a)===2;let c=!0,u=!1,d=1/0,f=1/0,g=1/0,h=0,m=[];const{preferHDR:p,allowedVideoRanges:E}=ap(e,r);for(let b=i.length;b--;){const I=s[i[b]];c=I.channels[2]>0,d=Math.min(d,I.minHeight),f=Math.min(f,I.minFramerate),g=Math.min(g,I.minBitrate);const A=E.filter(F=>I.videoRanges[F]>0);A.length>0&&(u=!0,m=A)}d=H(d)?d:0,f=H(f)?f:0;const x=Math.max(1080,d),v=Math.max(30,f);return g=H(g)?g:t,t=Math.max(g,t),u||(e=void 0,m=[]),{codecSet:i.reduce((b,I)=>{const A=s[I];if(I===b)return b;if(A.minBitrate>t)return ut(I,`min bitrate of ${A.minBitrate} > current estimate of ${t}`),b;if(!A.hasDefaultAudio)return ut(I,"no renditions with default or auto-select sound found"),b;if(o&&I.indexOf(o.substring(0,4))%5!==0)return ut(I,`audio codec preference "${o}" not found`),b;if(a&&!l){if(!A.channels[a])return ut(I,`no renditions with ${a} channel sound found (channels options: ${Object.keys(A.channels)})`),b}else if((!o||l)&&c&&A.channels[2]===0)return ut(I,"no renditions with stereo sound found"),b;return A.minHeight>x?(ut(I,`min resolution of ${A.minHeight} > maximum of ${x}`),b):A.minFramerate>v?(ut(I,`min framerate of ${A.minFramerate} > maximum of ${v}`),b):m.some(F=>A.videoRanges[F]>0)?A.maxScore<h?(ut(I,`max score of ${A.maxScore} < selected max of ${h}`),b):b&&(xn(I)>=xn(b)||A.fragmentError>s[b].fragmentError)?b:(h=A.maxScore,I):(ut(I,`no variants with VIDEO-RANGE of ${JSON.stringify(m)} found`),b)},void 0),videoRanges:m,preferHDR:p,minFramerate:f,minBitrate:g}}function ut(s,e){L.log(`[abr] start candidates with "${s}" ignored because ${e}`)}function lp(s){return s.reduce((e,t)=>{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);const r=t.channels||"2";return n.channels[r]=(n.channels[r]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function cp(s,e,t,n){return s.slice(t,n+1).reduce((r,i)=>{if(!i.codecSet)return r;const a=i.audioGroups;let o=r[i.codecSet];o||(r[i.codecSet]=o={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!a,fragmentError:0}),o.minBitrate=Math.min(o.minBitrate,i.bitrate);const l=Math.min(i.height,i.width);return o.minHeight=Math.min(o.minHeight,l),o.minFramerate=Math.min(o.minFramerate,i.frameRate),o.maxScore=Math.max(o.maxScore,i.score),o.fragmentError+=i.fragmentError,o.videoRanges[i.videoRange]=(o.videoRanges[i.videoRange]||0)+1,a&&a.forEach(c=>{if(!c)return;const u=e.groups[c];u&&(o.hasDefaultAudio=o.hasDefaultAudio||e.hasDefaultAudio?u.hasDefault:u.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(u.channels).forEach(d=>{o.channels[d]=(o.channels[d]||0)+u.channels[d]}))}),r},{})}function nt(s,e,t){if("attrs"in s){const n=e.indexOf(s);if(n!==-1)return n}for(let n=0;n<e.length;n++){const r=e[n];if(Ft(s,r,t))return n}return-1}function Ft(s,e,t){const{groupId:n,name:r,lang:i,assocLang:a,default:o}=s,l=s.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(i===void 0||e.lang===i)&&(i===void 0||e.assocLang===a)&&(o===void 0||e.default===o)&&(l===void 0||e.forced===l)&&(!("characteristics"in s)||up(s.characteristics||"",e.characteristics))&&(t===void 0||t(s,e))}function up(s,e=""){const t=s.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function Mt(s,e){const{audioCodec:t,channels:n}=s;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(n===void 0||n===(e.channels||"2"))}function dp(s,e,t,n,r){const i=e[n],o=e.reduce((f,g,h)=>{const m=g.uri;return(f[m]||(f[m]=[])).push(h),f},{})[i.uri];o.length>1&&(n=Math.max.apply(Math,o));const l=i.videoRange,c=i.frameRate,u=i.codecSet.substring(0,4),d=zl(e,n,f=>{if(f.videoRange!==l||f.frameRate!==c||f.codecSet.substring(0,4)!==u)return!1;const g=f.audioGroups,h=t.filter(m=>!g||g.indexOf(m.groupId)!==-1);return nt(s,h,r)>-1});return d>-1?d:zl(e,n,f=>{const g=f.audioGroups,h=t.filter(m=>!g||g.indexOf(m.groupId)!==-1);return nt(s,h,r)>-1})}function zl(s,e,t){for(let n=e;n>-1;n--)if(t(s[n]))return n;for(let n=e+1;n<s.length;n++)if(t(s[n]))return n;return-1}class fp{constructor(e){this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-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.bwEstimator=void 0,this._abandonRulesCheck=()=>{const{fragCurrent:t,partCurrent:n,hls:r}=this,{autoLevelEnabled:i,media:a}=r;if(!t||!a)return;const o=performance.now(),l=n?n.stats:t.stats,c=n?n.duration:t.duration,u=o-l.loading.start,d=r.minAutoLevel;if(l.aborted||l.loaded&&l.loaded===l.total||t.level<=d){this.clearTimer(),this._nextAutoLevel=-1;return}if(!i||a.paused||!a.playbackRate||!a.readyState)return;const f=r.mainForwardBufferInfo;if(f===null)return;const g=this.bwEstimator.getEstimateTTFB(),h=Math.abs(a.playbackRate);if(u<=Math.max(g,1e3*(c/(h*2))))return;const m=f.len/h,p=l.loading.first?l.loading.first-l.loading.start:-1,E=l.loaded&&p>-1,x=this.getBwEstimate(),v=r.levels,w=v[t.level],b=l.total||Math.max(l.loaded,Math.round(c*w.averageBitrate/8));let I=E?u-p:u;I<1&&E&&(I=Math.min(u,l.loaded*8/x));const A=E?l.loaded*1e3/I:0,F=A?(b-l.loaded)/A:b*8/x+g/1e3;if(F<=m)return;const U=A?A*8:x;let O=Number.POSITIVE_INFINITY,B;for(B=t.level-1;B>d;B--){const $=v[B].maxBitrate;if(O=this.getTimeToLoadFrag(g/1e3,U,c*$,!v[B].details),O<m)break}if(O>=F||O>c*10)return;r.nextLoadLevel=r.nextAutoLevel=B,E?this.bwEstimator.sample(u-Math.min(g,p),l.loaded):this.bwEstimator.sampleTTFB(u);const Y=v[B].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>Y&&this.resetEstimator(Y),this.clearTimer(),L.warn(`[abr] Fragment ${t.sn}${n?" part "+n.index:""} of level ${t.level} is loading too slowly;
40
40
  Time to underbuffer: ${m.toFixed(3)} s
41
41
  Estimated load time for current fragment: ${F.toFixed(3)} s
42
42
  Estimated load time for down switch fragment: ${O.toFixed(3)} s
@@ -4493,18 +4493,18 @@ const Hi = {
4493
4493
  }), ut("KeyC", () => {
4494
4494
  B(w.isPressKeyC) && uf();
4495
4495
  });
4496
- }, ff = Za(() => import("./staticPlayer-DRgWOGDJ.js")), hf = Za(() => import("./vodPlayer-CXVFY8GY.js")), gf = (n) => {
4496
+ }, ff = Za(() => import("./staticPlayer-D08nz1FW.js")), hf = Za(() => import("./vodPlayer-DUoJh151.js")), gf = (n) => {
4497
4497
  const { params: e } = Ue(({ videoData: { isReady: s, params: i } }) => ({ isReady: s, params: i }), si);
4498
4498
  $e(() => (e.id && n.params.id !== e.id && (e.type === xt.static && (W().pause(), W().removeAttribute("src"), W().load()), Ir()), () => Ir()), [n.params.id]), S0(n.params), df(), Ue(({ controller: { isFullScreen: s } }) => ({ isFullScreen: s }), si);
4499
4499
  let t = /* @__PURE__ */ se(es, {});
4500
4500
  return B(w.isReady) ? t = /* @__PURE__ */ se(wc, { fallback: "", children: /* @__PURE__ */ se(
4501
4501
  "div",
4502
4502
  {
4503
- className: `pl-h-full !pl-select-none desktop:pl-h-auto ${!B(w.isTouchScreen) && "pl-rounded-[12px]"} ${B(w.isFullScreen) && "pl-fixed pl-right-0 pl-top-0 pl-h-screen pl-w-screen !pl-overflow-hidden"}`,
4503
+ className: `pl-size-full !pl-select-none desktop:pl-h-auto ${!B(w.isTouchScreen) && "pl-rounded-[12px]"} ${B(w.isFullScreen) && "pl-fixed pl-right-0 pl-top-0 pl-h-screen pl-w-screen !pl-overflow-hidden"}`,
4504
4504
  style: { zIndex: Oi.videoPlayerInFullScreen, touchAction: "pan-y" },
4505
4505
  children: B(w.isStaticFormat) ? /* @__PURE__ */ se(ff, {}) : /* @__PURE__ */ se(hf, {})
4506
4506
  }
4507
- ) }) : t = /* @__PURE__ */ se("div", { className: "!pl-aspect-video pl-max-h-screen pl-w-full pl-overflow-hidden pl-rounded-[12px] pl-bg-white" }), /* @__PURE__ */ se("div", { dir: "rtl", className: "pl-h-full pl-w-full pl-rounded-[12px]", id: "parent-player", children: t });
4507
+ ) }) : t = /* @__PURE__ */ se("div", { className: "!pl-aspect-video pl-max-h-screen pl-w-full pl-overflow-hidden pl-rounded-[12px] pl-bg-white" }), /* @__PURE__ */ se("div", { dir: "rtl", className: "pl-flex pl-h-full pl-w-full pl-items-center pl-justify-center pl-rounded-[12px]", id: "parent-player", children: t });
4508
4508
  };
4509
4509
  class dl extends Pi.Component {
4510
4510
  constructor() {
@@ -1,9 +1,9 @@
1
1
  import { jsx as L, Fragment as B, jsxs as Q } from "react/jsx-runtime";
2
- import { u as g, s as v, c as h, C as m, e as P, z as w, A as $, a as z, m as a, H as r, B as W, j, D, E as S, F as I, G as V, J, K as F, L as _, M as q, N as K, O as X, P as C, Q as Y, R as k, S as Z, r as ee, T as H, U as ae, V as ne, W as te, X as se, Y as ie, Z as de, _ as re, $ as oe, t as le, w as ue, x as ce } from "./index-DtMbWZxg.js";
2
+ import { u as g, s as v, c as h, C as m, e as P, z as w, A as $, a as z, m as a, H as r, B as W, j, D, E as S, F as I, G as V, J, K as F, L as _, M as q, N as K, O as X, P as C, Q as Y, R as k, S as Z, r as ee, T as H, U as ae, V as ne, W as te, X as se, Y as ie, Z as de, _ as re, $ as oe, t as le, w as ue, x as ce } from "./index-ZWJuIKJB.js";
3
3
  import { useEffect as E, useState as A, useRef as c, useLayoutEffect as Ee } from "react";
4
- import { c as fe } from "./videoArea-DrZnBS8m.js";
5
- import { a as x } from "./user.actions-CnQfrrYz.js";
6
- import { u as he, a as me } from "./useHideSubtitle-BzV4wid4.js";
4
+ import { c as fe } from "./videoArea-BYZhr3JK.js";
5
+ import { a as x } from "./user.actions-CLqkbEsY.js";
6
+ import { u as he, a as me } from "./useHideSubtitle-B1deqWDW.js";
7
7
  const pe = () => {
8
8
  let i = null;
9
9
  const { isEnded: s } = g(({ controller: { isEnded: f } }) => ({ isEnded: f }), v);
@@ -1,5 +1,5 @@
1
1
  import { jsxs as e, jsx as l } from "react/jsx-runtime";
2
- import { I as s, t } from "./index-DtMbWZxg.js";
2
+ import { I as s, t } from "./index-ZWJuIKJB.js";
3
3
  const a = () => /* @__PURE__ */ e("div", { className: "pl-flex pl-h-full pl-w-full pl-flex-col pl-items-center pl-justify-center pl-rounded-2xl", children: [
4
4
  /* @__PURE__ */ l("div", { className: "pl-flex pl-justify-center", children: /* @__PURE__ */ l("img", { src: s.notFound, alt: "notFound", width: 120, height: 70 }) }),
5
5
  /* @__PURE__ */ l("h1", { className: "pl-mb-2 pl-mt-4 pl-text-xs pl-font-medium pl-text-black/[0.87]", children: t("notFoundVideo") }),
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { c as o, C as r } from "./index-DtMbWZxg.js";
3
- import { V as i } from "./videoArea-DrZnBS8m.js";
2
+ import { c as o, C as r } from "./index-ZWJuIKJB.js";
3
+ import { V as i } from "./videoArea-BYZhr3JK.js";
4
4
  const a = () => /* @__PURE__ */ e(
5
5
  "div",
6
6
  {
@@ -1,7 +1,7 @@
1
1
  import { jsxs as h, jsx as u } from "react/jsx-runtime";
2
2
  import { useRef as n, useEffect as m } from "react";
3
- import { a as y, u as p, s as f, j as P, c as t, C as s, k as S, l as V, n as b, o as w, p as L, q as v, r as D, t as E, w as R, x as T, m as A, y as C } from "./index-DtMbWZxg.js";
4
- import { u as x, a as k } from "./useHideSubtitle-BzV4wid4.js";
3
+ import { a as y, u as p, s as f, j as P, c as t, C as s, k as S, l as V, n as b, o as w, p as L, q as v, r as D, t as E, w as R, x as T, m as A, y as C } from "./index-ZWJuIKJB.js";
4
+ import { u as x, a as k } from "./useHideSubtitle-B1deqWDW.js";
5
5
  const N = () => {
6
6
  const g = y(), { params: e } = p(({ videoData: { params: a } }) => ({ params: a }), f);
7
7
  p(({ controller: { firstPlay: a } }) => ({ firstPlay: a }), f);
@@ -1,6 +1,6 @@
1
1
  import { jsx as l, jsxs as p, Fragment as C } from "react/jsx-runtime";
2
2
  import { useState as j, useRef as b, useEffect as x } from "react";
3
- import { a as H, u as T, s as V, I as P, c as N, C as L, b as E, d as w, e as M, f as B, v as z, h as R, i as m, m as k } from "./index-DtMbWZxg.js";
3
+ import { a as H, u as T, s as V, I as P, c as N, C as L, b as E, d as w, e as M, f as B, v as z, h as R, i as m, m as k } from "./index-ZWJuIKJB.js";
4
4
  const A = ({ className: s, onClick: i }) => /* @__PURE__ */ l(
5
5
  "svg",
6
6
  {
@@ -1,5 +1,5 @@
1
1
  import { useEffect as r } from "react";
2
- import { a as l, u as c, s as o, c as d, C as p, m as u, a1 as T } from "./index-DtMbWZxg.js";
2
+ import { a as l, u as c, s as o, c as d, C as p, m as u, a1 as T } from "./index-ZWJuIKJB.js";
3
3
  const y = () => {
4
4
  const a = l(), { params: e } = c(({ videoData: { params: t } }) => ({ params: t }), o);
5
5
  r(() => {
@@ -1,4 +1,4 @@
1
- import { d as n, a0 as l, m as s } from "./index-DtMbWZxg.js";
1
+ import { d as n, a0 as l, m as s } from "./index-ZWJuIKJB.js";
2
2
  const v = () => {
3
3
  const { params: a } = n.getState().videoData, o = s().currentTime;
4
4
  if (o !== 0) {
@@ -1,6 +1,6 @@
1
1
  import { jsx as t, jsxs as u, Fragment as P } from "react/jsx-runtime";
2
2
  import { useRef as F, useCallback as Xe, useState as k, useEffect as C, memo as Q, forwardRef as Ve, lazy as re, Suspense as he } from "react";
3
- import { u as g, s as v, c as s, C as o, I as T, a2 as $e, t as I, a as O, h as E, m as y, a3 as Y, a4 as Ae, a5 as Ie, a6 as z, d as b, a7 as Re, a8 as se, a9 as qe, aa as oe, ab as Me, ac as xe, ad as we, e as D, ae as He, af as X, ag as We, ah as Ue, ai as _e, aj as Qe, ak as Ze, al as ue, v as me, i as be, am as te, an as N, ao as Ge, ap as R, aq as ke, ar as Ye, as as Pe, at as Je, au as le, av as Se, aw as ie, ax as Ke, ay as et, az as Ne, aA as Fe, aB as tt, aC as ze, b as lt, aD as it } from "./index-DtMbWZxg.js";
3
+ import { u as g, s as v, c as s, C as o, I as T, a2 as $e, t as I, a as O, h as E, m as y, a3 as Y, a4 as Ae, a5 as Ie, a6 as z, d as b, a7 as Re, a8 as se, a9 as qe, aa as oe, ab as Me, ac as xe, ad as we, e as D, ae as He, af as X, ag as We, ah as Ue, ai as _e, aj as Qe, ak as Ze, al as ue, v as me, i as be, am as te, an as N, ao as Ge, ap as R, aq as ke, ar as Ye, as as Pe, at as Je, au as le, av as Se, aw as ie, ax as Ke, ay as et, az as Ne, aA as Fe, aB as tt, aC as ze, b as lt, aD as it } from "./index-ZWJuIKJB.js";
4
4
  import { createPortal as st } from "react-dom";
5
5
  const ot = () => {
6
6
  const { details: e, params: l } = g(({ videoData: { details: i, params: n } }) => ({ details: i, params: n }), v);
@@ -1221,7 +1221,7 @@ const jt = ({ className: e, onClick: l, onMouseOver: i, onMouseLeave: n }) => /*
1221
1221
  }
1222
1222
  ) })
1223
1223
  ] }) });
1224
- }, ll = re(() => import("./staticVideoTag-CsjUAv8x.js")), il = re(() => import("./nonStaticVideoTag-OaMI7bIc.js")), sl = () => /* @__PURE__ */ t(he, { fallback: "", children: s(o.isStaticFormat) ? /* @__PURE__ */ t(ll, {}) : /* @__PURE__ */ t(il, {}) }), ol = () => {
1224
+ }, ll = re(() => import("./staticVideoTag-Dli76zRK.js")), il = re(() => import("./nonStaticVideoTag-C4AFBc5w.js")), sl = () => /* @__PURE__ */ t(he, { fallback: "", children: s(o.isStaticFormat) ? /* @__PURE__ */ t(ll, {}) : /* @__PURE__ */ t(il, {}) }), ol = () => {
1225
1225
  const e = O();
1226
1226
  g(({ videoData: { params: l } }) => ({ params: l }), v), C(() => {
1227
1227
  const l = () => {
@@ -1300,7 +1300,7 @@ const jt = ({ className: e, onClick: l, onMouseOver: i, onMouseLeave: n }) => /*
1300
1300
  g(({ videoData: { details: l } }) => ({ details: l }), v), C(() => {
1301
1301
  s(o.setSubtitleFirstPlay) && Se();
1302
1302
  }, [e]);
1303
- }, pl = re(() => import("./touchVolumeBrightness-0vXsUanO.js")), Ee = re(() => Promise.resolve().then(() => pt)), cl = () => {
1303
+ }, pl = re(() => import("./touchVolumeBrightness-B8-wTHwJ.js")), Ee = re(() => Promise.resolve().then(() => pt)), cl = () => {
1304
1304
  const [e, l] = k(!1), [i, n] = k(!1);
1305
1305
  return g(
1306
1306
  ({ videoData: { details: r, params: a, videoElementSizeInfo: m } }) => ({
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, Fragment as d } from "react/jsx-runtime";
2
- import { u as i, s as o, c as l, C as t, g as m } from "./index-DtMbWZxg.js";
2
+ import { u as i, s as o, c as l, C as t, g as m } from "./index-ZWJuIKJB.js";
3
3
  import { useEffect as u, lazy as c, Suspense as r } from "react";
4
- import { h as f } from "./user.actions-CnQfrrYz.js";
4
+ import { h as f } from "./user.actions-CLqkbEsY.js";
5
5
  const h = () => {
6
6
  const { params: a } = i(({ videoData: { params: s } }) => ({ params: s }), o);
7
7
  i(({ controller: { isEnded: s } }) => ({ isEnded: s }), o), u(() => {
@@ -9,7 +9,7 @@ const h = () => {
9
9
  }, [a.id, a.type]);
10
10
  }, v = () => {
11
11
  h();
12
- }, D = c(() => import("./videoArea-DrZnBS8m.js").then((a) => a.v)), y = c(() => import("./notActive-BFSYdvKl.js")), b = () => (i(
12
+ }, D = c(() => import("./videoArea-BYZhr3JK.js").then((a) => a.v)), y = c(() => import("./notActive-Cuu2-1Kw.js")), b = () => (i(
13
13
  ({ videoData: { params: a, details: s, isFetchDetails: p, isValidAddress: n } }) => ({ params: a, details: s, isFetchDetails: p, isValidAddress: n }),
14
14
  o
15
15
  ), v(), f(), /* @__PURE__ */ e(d, { children: l(t.isFetchDetails) ? l(t.isValidAddress) ? /* @__PURE__ */ e(r, { fallback: "", children: /* @__PURE__ */ e(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hamrahi-player-library",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"